:root {
  --bg: #f3eadb;
  --panel: #fffaf0;
  --paper: #f8f0e3;
  --primary: #285b72;
  --primary-strong: #173e51;
  --accent: #a94b2b;
  --text: #342a25;
  --muted: #756b60;
  --border: rgba(82, 57, 39, 0.16);
  --shadow: 0 16px 36px rgba(73, 47, 29, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Verdana, sans-serif;
}

* { box-sizing: border-box; }
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--primary-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
}

.site-footer {
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; }

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100vw - 1280px) / 2));
  background: rgba(46, 38, 31, 0.96);
  border-bottom: 1px solid var(--border);
  color: #fffaf0;
  z-index: 10;
}

.brand-wrap { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-weight: 800;
  overflow: hidden;
}
.topbar h1 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; }
.topbar .eyebrow { color: #d8c8b3; }
.topnav, .site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 2rem); margin-left: auto; }
.topnav a, .site-nav a { color: #f7eddf; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.language-control { display: inline-flex; align-items: center; gap: .35rem; margin-left: .5rem; color: #f7eddf; font-size: .75rem; font-weight: 700; }
.language-control select { padding: .3rem .4rem; border: 1px solid #d7b875; border-radius: 4px; background: #fff4d6; color: #2e261f; font: inherit; font-weight: 700; }
.version-control { min-width: 0; }
.version-control select { width: 8rem; min-width: 0; }
.version-license { max-width: 4.5rem; overflow: hidden; color: #f7eddf; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.site-footer-attribution a { color: inherit; }
.site-footer p.site-footer-attribution { max-width: 62rem; margin: .5rem auto 0; font-size: .78rem; line-height: 1.45; }
.offline-status { margin-left: .5rem; color: #f7eddf; font-size: .7rem; font-weight: 700; opacity: .85; }
.topnav a:hover, .topnav a:focus-visible, .site-nav a:hover, .site-nav a:focus-visible { color: #e4a56c; }
.brand-link { color: inherit; text-decoration: none; }
.brand-link strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.site-header { position: sticky; }
.topbar .menu-button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid #f1d27f;
  border-radius: 5px;
  background: #fff4d6;
  color: #2e261f;
  font-size: 1.35rem;
  line-height: 1;
}
.topbar .menu-button:hover, .topbar .menu-button:focus-visible {
  border-color: #ffe08a;
  background: #ffe8a8;
  color: #1f1a16;
  outline: 3px solid rgba(255, 224, 138, 0.4);
  outline-offset: 2px;
}

.study-hero {
  position: relative;
  min-height: 23rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem) max(1rem, calc((100vw - 1280px) / 2));
  overflow: hidden;
  background-color: #6a492f;
  background-image: url('../assets/hero-background.jpg');
  background-position: center;
  background-size: cover;
  color: #fffaf0;
}
.study-hero::before { content: ''; position: absolute; inset: 0; background: rgba(37, 27, 20, 0.48); }
.hero-content, .hero-stats { position: relative; z-index: 1; }
.hero-content { max-width: 47rem; }
.hero-eyebrow { color: #e8ba87; }
.study-hero h2 { max-width: 42rem; margin: 0.55rem 0 0.8rem; font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.25rem); font-weight: 500; line-height: 0.98; letter-spacing: 0; }
.study-hero p:not(.eyebrow) { max-width: 36rem; margin-bottom: 1.35rem; color: #f5e9d6; font-size: 1.05rem; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-button, .hero-link { display: inline-block; padding: 0.8rem 1.15rem; border-radius: 5px; font: inherit; font-weight: 700; text-decoration: none; }
.hero-button { border: 1px solid #d78752; background: var(--accent); color: white; cursor: pointer; }
.hero-button:hover, .hero-button:focus-visible { background: #c46138; }
.hero-link { border: 0; color: #fffaf0; background: transparent; border-bottom: 1px solid #fffaf0; cursor: pointer; }
.hero-link:hover, .hero-link:focus-visible { color: #e4a56c; border-color: #e4a56c; }
.hero-stats { display: grid; gap: 0.25rem; min-width: 12rem; padding: 1rem 1.2rem; border-left: 2px solid #d78752; background: rgba(26, 27, 23, 0.42); }
.hero-stats strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.hero-stats span { color: #ead7c0; font-size: 0.8rem; }
.daily-verse {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 1rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.daily-verse h2 { margin: 0.25rem 0 0.35rem; font-size: 1.45rem; }
.daily-verse-reference { margin: 0 0 0.35rem; color: var(--accent); font-weight: 700; }
.daily-verse-text { max-width: 58rem; margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.daily-verse-button { flex: 0 0 auto; padding: 0.7rem 1rem; border: 1px solid var(--primary); border-radius: 4px; background: var(--primary); color: white; cursor: pointer; font: inherit; font-weight: 700; }
.daily-verse-button:hover, .daily-verse-button:focus-visible { background: var(--primary-strong); }
.daily-verse-button:disabled { cursor: wait; opacity: 0.6; }

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; }
h2, h3 { font-family: var(--serif); }

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.page-layout { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0; }
.page-heading { max-width: 48rem; margin-bottom: 2rem; }
.page-heading h1 { margin: 0.35rem 0 0.6rem; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; }
.page-heading p:last-child { color: var(--muted); line-height: 1.6; }
.home-layout { padding-top: 0; }
.home-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; min-height: 28rem; margin: 0 calc((1180px - 100vw) / 2) 1rem; padding: clamp(2rem, 7vw, 5rem) max(1rem, calc((100vw - 1180px) / 2)); background: linear-gradient(100deg, rgba(37,27,20,.78), rgba(37,27,20,.35)), url('../assets/hero-background.jpg') center/cover; color: #fffaf0; }
.home-hero h1 { max-width: 45rem; margin: 0.5rem 0 0.8rem; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; line-height: .98; }
.home-hero > div:first-child > p:not(.eyebrow) { max-width: 38rem; color: #f5e9d6; font-size: 1.1rem; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; gap: .25rem; min-width: 13rem; padding: 1rem 1.2rem; border-left: 2px solid #d78752; background: rgba(26,27,23,.48); }
.hero-stats strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.hero-stats span { color: #ead7c0; font-size: .8rem; }
.dark-link { color: var(--primary-strong); border-color: var(--primary-strong); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-panel, .search-page-panel { padding: 1.5rem; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.feature-panel h2 { margin: .35rem 0 .6rem; font-size: 1.8rem; }
.feature-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.library-summary { margin-bottom: 1.5rem; color: var(--muted); }
.library-index { position: sticky; top: 4.5rem; z-index: 5; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: rgba(248, 240, 227, .96); box-shadow: 0 8px 18px rgba(73, 47, 29, .1); }
.library-index strong { font-family: var(--serif); }
.library-index a { padding: .45rem .65rem; border-radius: 4px; color: var(--primary-strong); font-weight: 700; text-decoration: none; }
.library-index a:hover, .library-index a:focus-visible { background: #ead8c2; outline: none; }
.library-index span { color: var(--muted); font-size: .75rem; font-weight: 400; }
.library-section { margin-top: 2.5rem; }
.library-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.library-section-heading h2 { margin: .35rem 0 0; font-size: 1.8rem; }
.library-section-actions { display: flex; align-items: center; gap: .8rem; }
.library-section-actions span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.library-section-actions a { color: var(--primary-strong); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.library-section-actions a:hover, .library-section-actions a:focus-visible { color: var(--accent); text-decoration: underline; }
.library-grid-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.library-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 12rem; padding: 1.25rem; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.library-card h3 { margin: .35rem 0; font-size: 1.8rem; }
.library-card p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.search-page-panel { max-width: 58rem; }
.search-page-panel #pageSearchInput { width: 100%; margin: .5rem 0 1rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--text); font: inherit; font-size: 1.05rem; }
.library-filters { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(16rem, 1.25fr); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.library-filters label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.library-filters select, .library-filters input { width: 100%; min-height: 3.25rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.library-filters select { cursor: pointer; }
.library-filters select option { padding: .8rem; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.35rem; font-weight: 700; }
.library-filters select:focus-visible, .library-filters input:focus-visible { border-color: var(--primary); outline: 3px solid rgba(40, 91, 114, .16); }
.book-filter-field { position: relative; }
.book-suggestions { position: absolute; z-index: 8; top: calc(100% + .3rem); right: 0; left: 0; max-height: 20rem; overflow-y: auto; padding: .35rem; border: 1px solid var(--border); border-radius: 4px; background: #fffdf8; box-shadow: 0 14px 28px rgba(73, 47, 29, .2); }
.book-suggestions[hidden] { display: none; }
.book-suggestion { display: block; width: 100%; padding: .8rem .9rem; border: 0; border-bottom: 1px solid rgba(82, 57, 39, .1); background: transparent; color: var(--text); cursor: pointer; font-family: var(--sans); font-size: 1.2rem; font-weight: 700; text-align: left; text-decoration: none; }
.book-suggestion:last-child { border-bottom: 0; }
.progress-management { margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.progress-management p:not(.eyebrow) { margin: .35rem 0 .8rem; color: var(--muted); }
.progress-management-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.progress-management-actions label.secondary-button { display: inline-flex; align-items: center; cursor: pointer; }
.import-preview { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 4px; background: var(--paper); }
.import-preview-list { margin: 0.5rem 0; padding-left: 1.2rem; }
.import-overwrite-warning { margin: 0.5rem 0; color: var(--accent); font-weight: 700; }
.import-preview-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.book-suggestion:hover, .book-suggestion:focus-visible { background: #f2dfb8; color: var(--primary-strong); outline: none; }
.timeline-layout { max-width: 1280px; }
.map-stage { position: relative; min-height: 30rem; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: #cba76d; box-shadow: var(--shadow); }
.map-stage img { display: block; width: 100%; height: 100%; min-height: 30rem; object-fit: cover; }
.map-copy { position: absolute; z-index: 1; top: 1.5rem; left: 1.5rem; max-width: 25rem; padding: 1.25rem; border-left: 3px solid var(--accent); background: rgba(255, 250, 240, .9); box-shadow: var(--shadow); }
.map-copy h2 { margin: .35rem 0 .6rem; font-size: 1.8rem; }
.map-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.timeline-section { margin-top: 3rem; }
.timeline-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.timeline-heading h2 { margin: .35rem 0 0; font-size: 2.3rem; }
.timeline-heading > p { max-width: 28rem; margin: 0; color: var(--muted); line-height: 1.5; }
.timeline-track { position: relative; display: grid; gap: 1.5rem; padding: 1rem 0; }
.timeline-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #c79b67; transform: translateX(-50%); }
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; min-height: 10rem; }
.timeline-item-offset .timeline-card { grid-column: 2; }
.timeline-marker { position: absolute; z-index: 1; top: 1.5rem; left: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); color: #fffaf0; font-family: var(--serif); font-weight: 700; transform: translateX(-50%); }
.timeline-card { grid-column: 1; padding: 1.25rem; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.timeline-card h3 { margin: .35rem 0; font-size: 1.55rem; }
.timeline-card p:not(.eyebrow):not(.timeline-region) { color: var(--muted); line-height: 1.55; }
.timeline-region { margin: 0 0 .65rem; color: var(--accent); font-size: .85rem; font-weight: 700; }

.sidebar { display: none; }
.sidebar.is-open { display: block; }

.panel, .chapter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.panel { padding: 1rem; }
.progress-summary { margin-bottom: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.search-label { display: block; margin-bottom: 0.65rem; font-weight: 600; }
#searchInput {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7;
}

.book-list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.book-button, .secondary-button, .menu-button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
}

.book-button {
  width: 100%;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font-weight: 600;
}
.book-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.chapter-card { padding: 1rem; }
.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.chapter-title { margin-bottom: 0; }
.chapter-book-title { color: var(--accent); font-size: .9rem; font-weight: 800; }
.book-progress { display: flex; align-items: center; gap: 0.65rem; max-width: 18rem; margin-top: 0.65rem; }
.book-progress-track { flex: 1; height: 0.35rem; overflow: hidden; border-radius: 99px; background: #ded0bd; }
.book-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 180ms ease; }
.book-progress-label { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.chapter-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chapter-select-label { align-self: center; color: var(--muted); font-size: 0.85rem; }
.chapter-select, .secondary-button { padding: 0.55rem 0.8rem; }
.action-status { min-height: 1.2rem; margin: -0.4rem 0 0.8rem; color: var(--muted); font-size: 0.8rem; text-align: right; }
.completion-button[aria-pressed="true"] {
  background: #dcebe4;
  border-color: #9cc4b2;
  color: var(--primary-strong);
}
.chapter-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}
.verses { display: grid; gap: 0.85rem; }
.verse {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.verse-highlight { background: #ffe8a8; border-color: var(--accent); }
.verse-highlight:focus-visible { outline: none; }
.verse-number { min-width: 2.2rem; font-weight: 700; color: var(--primary-strong); }
.verse-content { min-width: 0; }
.verse-text { margin-bottom: 0; font-family: var(--serif); font-size: var(--verse-font-size, 1rem); line-height: 1.7; }
.verse-share { margin-top: .55rem; padding: .35rem .55rem; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--primary-strong); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.verse-share:hover, .verse-share:focus-visible { background: #ead8c2; outline: none; }
.reading-tools { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); }
.text-size-button { min-width: 2rem; padding: 0.38rem 0.45rem; border: 0; border-radius: 3px; background: transparent; color: var(--primary-strong); cursor: pointer; font: inherit; font-weight: 700; }
.text-size-button:hover:not(:disabled), .text-size-button:focus-visible { background: #ead8c2; outline: none; }
.text-size-button:disabled { cursor: not-allowed; opacity: 0.4; }
.text-size-label { min-width: 2.8rem; color: var(--muted); font-size: 0.72rem; text-align: center; }
.notes-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.notes-panel h3 { margin: 0.25rem 0 0.7rem; }
.chapter-notes {
  width: 100%;
  min-height: 7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.chapter-notes:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50, 93, 82, 0.12);
  outline: none;
}
.notes-status { min-height: 1.25rem; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.8rem; }
.notes-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.notes-footer .notes-status { margin: 0; }
.search-summary { margin: 0; color: var(--muted); font-size: 0.85rem; }
.search-results { margin-top: 1rem; }
.search-results-list { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.search-results > .secondary-button { margin-top: 1rem; }
.result-item {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #faf7f2;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.result-item:hover, .result-item:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50, 93, 82, 0.12);
  outline: none;
}
.result-book { display: block; margin-bottom: 0.25rem; font-weight: 700; color: var(--primary-strong); }
.result-text { margin: 0; line-height: 1.6; }
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 760px) {
  .sidebar, .sidebar.is-open { display: block; }
  .layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem;
  }
  .topbar .menu-button { display: none; }
}

@media (max-width: 759px) {
  .topnav, .site-nav { display: none; }
  .topbar .site-nav.is-open {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    margin: 0;
    padding: .45rem;
    border: 1px solid #d7b875;
    border-radius: 5px;
    background: #fff4d6;
    box-shadow: 0 14px 28px rgba(35, 27, 20, .24);
  }
  .topbar .site-nav.is-open a {
    display: block;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(82, 57, 39, .14);
    color: #2e261f;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .topbar .site-nav.is-open a:last-child { border-bottom: 0; }
  .topbar .site-nav.is-open .language-control { justify-content: space-between; margin: 0; padding: .7rem .8rem .3rem; color: #2e261f; }
  .topbar .site-nav.is-open .offline-status { display: block; margin: 0; padding: 0 .8rem .7rem; color: #756b60; }
  .topbar .site-nav.is-open a:hover, .topbar .site-nav.is-open a:focus-visible { background: #ffe8a8; color: #173e51; outline: none; }
  .brand-mark { width: 2.8rem; height: 2.8rem; }
  .study-hero { min-height: 28rem; display: block; }
  .hero-stats { width: fit-content; margin-top: 2rem; }
  .daily-verse { align-items: stretch; flex-direction: column; margin: 1rem; }
  .page-layout { width: min(100% - 2rem, 44rem); }
  .home-hero { min-height: 32rem; margin: 0 -1rem 1rem; padding: 2rem 1rem; display: block; }
  .home-stats { margin-top: 2rem; width: fit-content; }
  .home-grid, .library-grid-inner { grid-template-columns: 1fr; }
  .library-filters { grid-template-columns: 1fr; }
  .library-index { top: 4.35rem; }
  .library-section-heading { align-items: start; flex-direction: column; }
  .library-section-actions { align-items: start; flex-direction: column; gap: .35rem; width: 100%; }
  .map-stage { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
  .map-stage img { order: 1; width: 100%; height: auto; min-height: 0; object-fit: contain; }
  .map-copy { position: static; order: 2; max-width: none; padding: 1rem; border-top: 3px solid var(--accent); border-left: 0; box-shadow: none; }
  .timeline-heading { display: block; }
  .timeline-heading > p { margin-top: 1rem; }
  .timeline-track, .timeline-item, .timeline-card { min-width: 0; }
  .timeline-track { overflow-x: clip; }
  .timeline-track::before { left: 1rem; }
  .timeline-item, .timeline-item-offset .timeline-card { box-sizing: border-box; display: block; padding-left: 3rem; width: 100%; }
  .timeline-marker { left: 1rem; top: 1rem; }
  .chapter-card { padding: .9rem; }
  .chapter-header { display: block; margin-bottom: 1rem; }
  .chapter-title { margin-top: .3rem; font-size: 2.15rem; line-height: 1.05; }
  .chapter-book-title { margin-bottom: .25rem; font-size: 1rem; }
  .chapter-header .book-progress { max-width: none; margin: .75rem 0 1rem; }
  .chapter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .chapter-actions > button, .chapter-actions > select, .chapter-actions > .reading-tools { width: 100%; min-height: 3rem; }
  .chapter-actions .completion-button, .chapter-actions [data-action="copy"] { grid-column: 1 / -1; }
  .chapter-actions .reading-tools { justify-self: stretch; }
  .chapter-actions .chapter-select { min-width: 0; }
  .chapter-actions .secondary-button { padding: .7rem .6rem; font-size: .9rem; }
}
