.namcha-hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 213, 79, 0.16), transparent 29%),
    radial-gradient(circle at 18% 8%, rgba(37, 217, 247, 0.17), transparent 35%),
    linear-gradient(145deg, rgba(9, 28, 49, 0.94), rgba(5, 13, 32, 0.98));
}

.namcha-hero h1 {
  max-width: 1180px;
  font-size: clamp(2.15rem, 4.7vw, 4.8rem);
  line-height: 1.24;
}

.parallel-titles {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.parallel-titles span[lang="bo"] { font-size: 1.28em; line-height: 1.7; }

.literary-chapter {
  padding: 52px 56px;
}

#poem > h2 {
  max-width: 1180px;
  font-size: clamp(2.15rem, 3vw, 3.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.translation-boundary {
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 213, 79, 0.07);
  color: var(--muted);
  line-height: 1.7;
}

.translation-boundary strong { color: #fff; }

.language-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.language-tabs button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 213, 79, 0.34);
  border-radius: 999px;
  background: rgba(5, 13, 32, 0.74);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.language-tabs button:hover,
.language-tabs button:focus-visible {
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

.language-tabs button[aria-selected="true"] {
  border-color: var(--gold);
  background: rgba(255, 213, 79, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.18);
}

.poem-single {
  max-width: 820px;
  margin: 26px auto;
  padding: 30px clamp(22px, 5vw, 54px);
  border: 1px solid rgba(255, 213, 79, 0.35);
  border-radius: 22px;
  background: rgba(5, 13, 32, 0.58);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.poem-single p { font-size: 1.08rem; line-height: 2.05; }
.poem-single p + p { margin-top: 1.7em; }
.poem-single[hidden] { display: none; }
.poem-single h3 { margin: 8px 0 24px; color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.45; }
.translation-label { margin: 0 0 8px !important; color: var(--gold); font-family: inherit; font-size: 0.86rem !important; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.draft-note { margin: 0 0 20px !important; padding: 12px 14px; border: 1px solid rgba(37, 217, 247, 0.3); border-radius: 12px; background: rgba(37, 217, 247, 0.06); color: var(--muted); font-family: system-ui, "Microsoft YaHei", sans-serif; font-size: 0.9rem !important; line-height: 1.7 !important; }
.tibetan-draft { font-family: "Microsoft Himalaya", "Noto Serif Tibetan", "Jomolhari", serif; }
.tibetan-draft p { font-size: 1.2rem; line-height: 2.25; }
.tibetan-draft .translation-label { font-family: system-ui, "Microsoft YaHei", sans-serif; }

.tibetan-name-block {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 25px 28px;
  border: 1px solid rgba(255, 213, 79, 0.38);
  border-radius: 18px;
  background: rgba(255, 213, 79, 0.06);
}

.tibetan-name-block strong {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.35;
}

.tibetan-name-block span { color: var(--gold); font-size: 1rem; }
.table-wrap { margin: 22px 0; overflow-x: auto; }
.translation-assessment { min-width: 760px; }
.translation-assessment th:first-child { width: 24%; }
.translation-assessment th:nth-child(2) { width: 22%; }
.translation-assessment td { vertical-align: top; }

.entry-image {
  margin: 26px 0 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 79, 0.3);
  border-radius: 22px;
  background: rgba(5, 13, 32, 0.72);
}

.entry-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.entry-image figcaption {
  padding: 16px 20px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.entry-image figcaption strong { color: #fff; }
.evidence-photo { border-color: rgba(37, 217, 247, 0.42); }
.literary-image { border-color: rgba(255, 213, 79, 0.42); }

@media (max-width: 820px) {
  .namcha-hero h1 { font-size: clamp(2rem, 8.4vw, 3.25rem); }
  .literary-chapter { padding: 34px 24px; }
  #poem > h2 { font-size: clamp(1.85rem, 8vw, 2.25rem); }
  .language-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poem-single { padding: 24px 20px; }
  .tibetan-name-block { padding: 21px 18px; }
}

@media (max-width: 460px) {
  .language-tabs { grid-template-columns: 1fr; }
}
