/* Textbook companion: /textbook-companion and the Jinan series, book and lesson pages */
.tc-card h2 a { color: var(--chalk); text-decoration: none; }
.tc-card h2 a:hover { color: var(--coral); }
.tc-badge { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: #fff2c5; color: #805512 !important; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }

.tc-empty { padding: 30px 20px; border: 1px dashed var(--line); border-radius: 18px; background: var(--paper); color: var(--muted); text-align: center; }

.tc-lessons { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-lessons a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tc-lessons a:hover { transform: translateY(-2px); } }
.tc-lessons a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.tc-lesson-no { min-width: 4.5em; color: var(--coral); font-size: .85rem; font-weight: 900; }
.tc-lesson-title { color: var(--chalk); font-size: 1.1rem; font-weight: 800; }
.tc-lesson-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.tc-members { margin: 0 0 26px; padding: 22px; border: 1px solid #ecd58a; border-radius: 18px; background: #fffaf0; }
.tc-members-title { margin: 0 0 6px; color: #805512; font-weight: 900; }
.tc-members p { color: var(--ink); line-height: 1.7; }
.tc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 4px 8px 0 0; padding: 9px 18px; border: 1px solid transparent; border-radius: 999px; background: var(--coral); box-shadow: 0 4px 0 #9d392f; color: #fff; font: inherit; font-size: .95rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.tc-button.is-secondary { border-color: var(--line); background: var(--paper); box-shadow: 0 4px 0 var(--line); color: var(--chalk); }
.tc-button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.tc-lesson-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.tc-hero-no { display: block; margin-bottom: 6px; color: #ffe18a; font-family: inherit; font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.tc-block { margin: 0 0 26px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.tc-block h2 { margin: 0 0 14px; color: var(--chalk); font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-size: 1.5rem; font-weight: 400; }
.tc-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tc-block-head h2 { margin: 0; }
.tc-count { color: var(--muted); font-family: inherit; font-size: 1rem; }
.tc-status { min-height: 1.3em; margin: 8px 0; color: var(--leaf); font-weight: 800; }
.tc-words { width: 100%; border-collapse: collapse; }
.tc-words th, .tc-words td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tc-words th { background: #eef5df; color: var(--chalk); font-size: .85rem; }
.tc-words td[lang="zh"] { font-size: 1.2rem; font-weight: 700; }
.tc-list { margin: 0; padding-left: 1.3em; line-height: 1.9; }
.tc-list li[lang="zh"] { font-size: 1.1rem; }
.tc-list a { color: var(--leaf); font-weight: 800; }
.tc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-links a, .tc-links span { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--chalk); font-weight: 800; text-decoration: none; }
.tc-links a:hover { border-color: var(--leaf-light); }
.tc-go { margin-left: auto; color: var(--leaf); }
.tc-files { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-files a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.tc-files a:hover { border-color: var(--leaf-light); }
.tc-file-icon { font-size: 1.5rem; }
.tc-file-name { display: block; color: var(--muted); font-size: .82rem; }
.tc-file-get { color: var(--leaf); font-weight: 900; }
.is-locked .tc-file-name { display: inline; margin-left: 6px; }
.tc-locked-list { margin: 0; padding: 0; list-style: none; line-height: 2; color: var(--muted); }

@media (max-width: 640px) {
  .tc-lessons a { grid-template-columns: 1fr; gap: 4px; }
  .tc-words th:nth-child(4), .tc-words td:nth-child(4) { display: none; }
}
@media print { .tc-actions, .tc-members, .text-link { display: none; } }
