:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5c6862;
  --paper: #fffdf8;
  --ground: #f4f1e9;
  --ground-strong: #e8e2d5;
  --forest: #173f34;
  --forest-light: #245849;
  --gold: #b47a2a;
  --gold-soft: #f1e1c5;
  --line: #d8d3c8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.08);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--forest-light);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

img,
video,
audio {
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--forest);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
}

.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark span {
  margin-inline-end: 0.2rem;
  color: var(--gold);
}

.primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.2rem;
}

.primary-nav a,
.language-link {
  padding: 0.45rem 0.65rem;
  border-radius: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.language-link:hover {
  color: var(--forest);
  background: var(--gold-soft);
}

.language-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2rem, 3vw, 3.5rem);
  text-align: center;
}

.hero h1 {
  max-width: none;
}

.eyebrow,
.section-label {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero blockquote {
  max-width: 48rem;
  margin: 2rem auto 2.5rem;
}

.hero blockquote p {
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
  font-style: italic;
  line-height: 1.4;
}

.hero cite {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.hero-art {
  max-width: 58rem;
  margin: clamp(2.5rem, 6vw, 4.75rem) auto 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 22px 60px rgba(23, 33, 29, 0.12);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--forest);
  border-radius: 0.35rem;
  font-weight: 750;
  text-decoration: none;
}

.button span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.78;
}

.button-primary {
  color: var(--white);
  background: var(--forest);
}

.button-primary:hover {
  color: var(--white);
  background: var(--forest-light);
}

.button-secondary {
  color: var(--forest);
  background: transparent;
}

.button-secondary:hover {
  color: var(--forest);
  background: var(--gold-soft);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tint {
  background: var(--ground);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.hero + .mission-grid {
  padding-top: clamp(2rem, 3vw, 3.5rem);
}

.prose {
  font-size: 1.08rem;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.narrow-prose {
  max-width: 52rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
}

.feature-card p:not(.card-number) {
  color: var(--muted);
}

.card-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.text-link {
  font-weight: 750;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats div {
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--gold);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.stats span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header {
  padding-block: clamp(4rem, 10vw, 7rem) 3rem;
}

.compact-header h1 {
  max-width: 22ch;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

.lede {
  max-width: 48rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.breadcrumbs a {
  color: inherit;
}

.bible-books {
  padding-bottom: 0;
}

.bible-page-header {
  padding-bottom: 2.75rem;
  text-align: center;
}

.bible-page-header h1,
.bible-page-header .lede {
  margin-inline: auto;
}

.bible-page-header .lede {
  max-width: 54rem;
}

.translation-switcher {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 32px rgba(23, 33, 29, 0.07);
  text-align: start;
}

.reader > .translation-switcher {
  margin-top: 0;
}

.translation-switcher > p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.translation-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 44.01rem) {
  .translation-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.3rem);
    justify-self: center;
  }
}

.translation-tab {
  display: grid;
  gap: 0.12rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  text-decoration: none;
}

.translation-tab strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.translation-tab span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.translation-tab:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.translation-tab[aria-current="page"] {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.translation-tab[aria-current="page"] span {
  color: rgba(255, 255, 255, 0.78);
}

.chapter-grid,
.alphabet-grid,
.word-list,
.reference-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bible-chart {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(29rem, 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(0.85rem, 2.5vw, 1.6rem);
  border: 1px solid #ddd5c6;
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 233, 0.9)),
    var(--ground);
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.12);
}

.testament-panel {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 0.85rem;
}

.testament-old {
  background: linear-gradient(180deg, #edf7fb 0%, #f8fbfc 100%);
}

.testament-new {
  background: linear-gradient(180deg, #fff8df 0%, #fffdf6 100%);
}

.testament-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.55rem;
  color: var(--white);
  background: linear-gradient(135deg, #173f34, #245849);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.testament-old .testament-heading {
  background: linear-gradient(135deg, #17435d, #246f8c);
}

.testament-new .testament-heading {
  background: linear-gradient(135deg, #705016, #a77619);
}

.testament-heading small {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16);
}

.category-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.75rem;
}

.category-column {
  display: grid;
  gap: 0.75rem;
}

.book-category {
  --category-heading: #b8dcea;
  --category-surface: #e7f3f7;
  --category-accent: #397d98;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-top: 4px solid var(--category-accent);
  border-radius: 0.65rem;
  background: var(--category-surface);
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.08);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.book-category:hover {
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.13);
  transform: translateY(-2px);
}

.book-category h3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 3rem;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  background: var(--category-heading);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.book-category h3 span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.book-category h3 small {
  justify-self: end;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.category-paul-churches h3,
.category-paul-friends h3,
.category-general-letters h3 {
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.category-paul-churches h3 span,
.category-paul-friends h3 span,
.category-general-letters h3 span {
  overflow-wrap: normal;
  word-break: normal;
}

.category-paul-churches h3 small,
.category-paul-friends h3 small,
.category-general-letters h3 small {
  justify-self: end;
}

.book-category table {
  width: 100%;
  border-collapse: collapse;
}

.book-category th {
  padding: 0;
  border-top: 1px solid rgba(23, 33, 29, 0.14);
  font-weight: 750;
  text-align: start;
}

.book-category a {
  display: block;
  padding: 0.48rem 0.7rem;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, padding-inline-start 140ms ease;
}

.book-category tr:nth-child(even) a {
  background: rgba(255, 255, 255, 0.2);
}

.book-category a:hover {
  color: var(--forest);
  padding-inline-start: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.category-law,
.category-history {
  --category-heading: #8dcced;
  --category-surface: #dff2fb;
  --category-accent: #247b9f;
}

.category-poetry {
  --category-heading: #bcb4ea;
  --category-surface: #ebe8fa;
  --category-accent: #6f63aa;
}

.category-major-prophets,
.category-minor-prophets {
  --category-heading: #e1a0bf;
  --category-surface: #f6dfeb;
  --category-accent: #a84876;
}

.category-gospels,
.category-acts {
  --category-heading: #efb936;
  --category-surface: #fde8ac;
  --category-accent: #aa7011;
}

.category-paul-churches,
.category-paul-friends {
  --category-heading: #eee351;
  --category-surface: #fbf5a8;
  --category-accent: #a4910b;
}

.category-general-letters {
  --category-heading: #a5cd5e;
  --category-surface: #dff0bd;
  --category-accent: #5b8b27;
}

.chapter-directory {
  padding-top: 0;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr));
  gap: 0.5rem;
}

.chapter-grid a {
  display: grid;
  min-height: 3.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.chapter-grid a:hover,
.chapter-grid a[aria-current="page"] {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.reader {
  max-width: 58rem;
  padding-block: 2.5rem 6rem;
}

.reader-header {
  padding-block: 2rem;
  text-align: center;
}

.reader-header h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

.reader-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.reader-pagination a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.reader-pagination > :last-child {
  text-align: end;
}

.reader-pagination-bottom {
  margin-top: 3rem;
}

.chapter-picker {
  margin-block: 1.25rem 0.75rem;
}

.verse-picker {
  margin-block: 0 3rem;
}

.chapter-picker,
.verse-picker {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--ground);
}

.chapter-picker summary,
.verse-picker summary,
.topic-list summary {
  cursor: pointer;
  font-weight: 750;
}

.chapter-picker summary,
.verse-picker summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.chapter-picker summary span,
.verse-picker summary span {
  color: var(--muted);
  font-weight: 500;
}

.compact-grid {
  padding: 0 1rem 1rem;
}

.verse-grid {
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
}

.verse-grid a {
  min-height: 2.75rem;
}

.scripture {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2.4vw, 1.35rem);
  line-height: 1.8;
}

.verse {
  scroll-margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.verse:target {
  padding: 0.25rem 0.45rem;
  margin-inline: -0.45rem;
  border-radius: 0.2rem;
  background: var(--gold-soft);
}

.verse-number {
  display: inline-block;
  min-width: 2.2rem;
  margin-inline-end: 0.35rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 800;
  text-align: end;
  text-decoration: none;
  vertical-align: 0.15em;
}

.source-omission {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75em;
  font-style: italic;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(2.8rem, 1fr));
  gap: 0.45rem;
}

.alphabet-grid a {
  display: grid;
  min-height: 3.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.alphabet-grid a:hover {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.note {
  margin-top: 3rem;
  padding: 1.5rem;
  border-inline-start: 4px solid var(--gold);
  background: var(--ground);
}

.note h2 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 750;
}

.note p:last-child {
  margin-bottom: 0;
}

.word-list {
  columns: 3 15rem;
  column-gap: 2rem;
}

.word-list li {
  break-inside: avoid;
}

.word-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px dotted var(--line);
  text-decoration: none;
}

.word-list small {
  color: var(--muted);
  white-space: nowrap;
}

.reference-groups {
  padding-top: 0;
}

.concordance-group-header {
  padding-bottom: 1.5rem;
}

.concordance-pagination {
  margin-top: 2rem;
}

.concordance-group-page {
  padding-top: 2rem;
}

.concordance-page-words {
  margin-bottom: 4rem;
}

.concordance-entry {
  scroll-margin-top: 1rem;
}

.concordance-entry + .concordance-entry {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.concordance-entry-header {
  margin-bottom: 2rem;
  padding: 1rem;
  border-inline-start: 0.25rem solid var(--gold);
  background: var(--ground);
}

.concordance-entry:target .concordance-entry-header {
  background: var(--gold-soft);
}

.concordance-entry-header h2 {
  margin-bottom: 0.5rem;
}

.concordance-entry-header .lede {
  margin-bottom: 0;
}

.reference-group + .reference-group {
  margin-top: 2.5rem;
}

.reference-group h2,
.reference-group h3 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.6rem;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reference-list a {
  display: block;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
}

.reference-list a:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.compact-reference-note {
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.concordance-entry > h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.concordance-entry > h2 a {
  color: var(--ink);
}

.concordance-entry-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-reference-text {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-top: 1rem;
}

.topic-list details {
  border-top: 1px solid var(--line);
}

.topic-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-list summary {
  padding: 1.25rem 0;
  font-size: 1.05rem;
}

.topic-list details > div {
  padding-block: 0 1.25rem;
  padding-inline-start: 1.2rem;
  color: var(--muted);
}

.download-list {
  padding-top: 1rem;
}

.translation-download {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--ground);
}

.translation-download > h2 {
  margin-bottom: 0.35rem;
}

.source-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.source-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 0.75rem;
  background: var(--ground);
}

.source-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.download-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

code {
  overflow-wrap: anywhere;
  color: var(--forest);
  font-size: 0.8rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.verse-number,
.chapter-grid a,
.alphabet-grid a {
  unicode-bidi: isolate;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] blockquote,
html[dir="rtl"] .scripture {
  font-family: "Traditional Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  letter-spacing: 0;
}

html[dir="rtl"] .scripture {
  line-height: 2;
}

html[lang="zh-Hans"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] blockquote,
html[lang="zh-Hans"] .scripture {
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", "Microsoft YaHei", serif;
  letter-spacing: 0;
}

html[lang="zh-Hans"] .scripture {
  line-height: 1.9;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.principles-grid h2 {
  font-size: 1.5rem;
}

.metadata-list {
  margin: 1.5rem 0 3rem;
}

.metadata-list div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.metadata-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.metadata-list dt {
  color: var(--muted);
  font-weight: 700;
}

.metadata-list dd {
  margin: 0;
}

.language-list {
  padding-top: 1rem;
}

.language-list > article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.language-list > article > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-list h2,
.language-list p {
  margin-bottom: 0;
}

.language-code {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  font-weight: 800;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--ground);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 66rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-block: 0.75rem;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .language-link {
    margin-inline-start: auto;
  }

  .bible-chart {
    grid-template-columns: 1fr;
  }

  .alphabet-grid {
    grid-template-columns: repeat(9, minmax(2.8rem, 1fr));
  }
}

@media (max-width: 44rem) {
  .hero {
    padding-block: 3rem 3.5rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero h1 {
    margin-bottom: 1.5rem;
  }

  .hero blockquote {
    margin-block: 0 1.5rem;
  }

  .hero .button-row {
    gap: 0.5rem;
  }

  .hero .button {
    min-height: 2.65rem;
    padding-block: 0.55rem;
  }

  .hero-art {
    margin-top: 1.75rem;
  }

  .hero-art img {
    border-radius: 0.65rem;
  }

  .mission-grid,
  .guide-layout,
  .download-item {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .principles-grid,
  .source-cards,
  .translation-tabs {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .category-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alphabet-grid {
    grid-template-columns: repeat(6, minmax(2.8rem, 1fr));
  }

  .footer-inner,
  .language-list > article {
    align-items: flex-start;
    flex-direction: column;
  }

  .metadata-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 28rem) {
  .shell {
    width: min(100% - 1.25rem, 72rem);
  }

  .wordmark {
    font-size: 1.2rem;
  }

  .primary-nav {
    margin-inline: -0.4rem;
  }

  .primary-nav a,
  .language-link {
    padding-inline: 0.45rem;
    font-size: 0.82rem;
  }

  .button-row .button,
  .download-item .button {
    width: 100%;
  }

  .hero {
    padding-block: 2.5rem 3rem;
  }

  .hero-art {
    max-width: 15.5rem;
  }

  .bible-chart {
    padding: 0.55rem;
    border-radius: 0.8rem;
  }

  .testament-panel {
    padding: 0.5rem;
  }

  .category-columns {
    grid-template-columns: 1fr;
  }

  .alphabet-grid {
    grid-template-columns: repeat(4, minmax(2.8rem, 1fr));
  }

  .concordance-page-words {
    margin-bottom: 3rem;
  }

  .concordance-entry + .concordance-entry {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .scripture {
    font-size: 1.08rem;
  }

  .verse-number {
    min-width: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-category,
  .book-category a {
    transition: none;
  }

  .book-category:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .chapter-picker,
  .verse-picker,
  .reader-pagination,
  .translation-switcher,
  .skip-link {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .reader {
    max-width: none;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
