@font-face {
    font-family: "Testament Noto Sans";
    src: url("../fonts/noto-sans/NotoSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --ink: #1d2925;
    --muted: #65716d;
    --paper: #f7f5ef;
    --surface: #fffefa;
    --line: #dedfd8;
    --sage: #41675b;
    --sage-dark: #294b41;
    --sage-soft: #e7eee9;
    --gold: #b28b52;
    --shadow: 0 18px 50px rgba(35, 55, 48, 0.09);
    --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --scripture-font: "Testament Noto Sans", Arial, "Arial Unicode MS", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.testament-site {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--site-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-shell {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(65, 103, 91, 0.12);
    background: rgba(247, 245, 239, 0.92);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: var(--sage);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

.brand__text {
    display: grid;
    gap: 1px;
}

.brand__text strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand__text small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 34px;
    color: #44534e;
    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a {
    transition: color 180ms ease;
}

.desktop-nav a:hover {
    color: var(--sage);
}

.icon-button,
.soft-icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    cursor: pointer;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
}

.icon-button svg,
.soft-icon-button svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mobile-menu {
    display: grid;
    gap: 2px;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(65, 103, 91, 0.1);
    background: var(--paper);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a {
    padding: 13px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 126px;
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    top: -190px;
    right: -210px;
    width: 430px;
    height: 430px;
    background: rgba(65, 103, 91, 0.08);
}

.hero::after {
    bottom: 16px;
    left: -145px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(178, 139, 82, 0.18);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    color: var(--sage);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin-top: 13px;
    font-size: clamp(38px, 10vw, 72px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--sage);
}

.hero__intro {
    max-width: 590px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.scripture-search {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 11px;
    max-width: 690px;
    margin-top: 31px;
    padding: 8px 8px 8px 17px;
    border: 1px solid rgba(65, 103, 91, 0.17);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.scripture-search > svg {
    width: 21px;
    fill: none;
    stroke: var(--sage);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.scripture-search input {
    min-width: 0;
    height: 45px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.scripture-search button {
    grid-column: 1 / -1;
    min-height: 48px;
    cursor: pointer;
    border-radius: 13px;
    background: var(--sage);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

.scripture-search button:hover {
    background: var(--sage-dark);
}

.scripture-search button:active {
    transform: scale(0.985);
}

.search-hint {
    min-height: 20px;
    margin: 10px 3px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.search-hint button {
    cursor: pointer;
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.translation-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.translation-credit > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--sage-soft);
    color: var(--sage);
}

.translation-credit svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.translation-credit p {
    display: grid;
    gap: 2px;
}

.translation-credit small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.translation-credit strong {
    font-size: 13px;
    font-weight: 600;
}

.home__content {
    display: grid;
    gap: 20px;
    margin-top: -76px;
    padding-bottom: 72px;
}

.continue-card,
.daily-word,
.book-card {
    border: 1px solid rgba(65, 103, 91, 0.13);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 45px rgba(35, 55, 48, 0.06);
}

.continue-card {
    padding: 24px;
}

.continue-card__top,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.continue-card h2,
.section-heading h2 {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.continue-card__top p:last-child {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.continue-card__icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    background: var(--sage-soft);
    color: var(--sage);
}

.continue-card__icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.reading-progress {
    height: 5px;
    margin-top: 23px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e9e4;
}

.reading-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
}

.primary-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 19px;
    border-radius: 15px;
    background: var(--sage);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.primary-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.daily-word {
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(65, 103, 91, 0.97), rgba(41, 75, 65, 0.98)),
        var(--sage);
    color: #fff;
}

.daily-word .section-kicker {
    color: #cbd9d2;
}

.daily-word .soft-icon-button {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.09);
}

.daily-word blockquote {
    margin-top: 25px;
    font-family: var(--scripture-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

.verse-reference {
    margin-top: 17px;
    color: #dce7e1;
    font-size: 12px;
    font-weight: 600;
}

.annotation-section {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid rgba(65, 103, 91, 0.13);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 45px rgba(35, 55, 48, 0.06);
}

.annotation-section__mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
}

.annotation-section__intro {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.annotation-details {
    margin-top: 18px;
    border: 1px solid rgba(65, 103, 91, 0.13);
    border-radius: 16px;
    background: var(--paper);
}

.annotation-details summary {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 17px 48px 17px 17px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.annotation-details summary::-webkit-details-marker {
    display: none;
}

.annotation-details summary::after {
    position: absolute;
    top: 50%;
    right: 19px;
    width: 9px;
    height: 9px;
    content: "";
    border-right: 2px solid var(--sage);
    border-bottom: 2px solid var(--sage);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 180ms ease;
}

.annotation-details[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.annotation-details summary small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.annotation-details__body {
    padding: 3px 17px 20px;
    border-top: 1px solid rgba(65, 103, 91, 0.1);
}

.annotation-details ol {
    display: grid;
    gap: 17px;
    margin-top: 18px;
    counter-reset: annotation-item;
}

.annotation-details li {
    position: relative;
    padding-left: 34px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.72;
    list-style: none;
    counter-increment: annotation-item;
}

.annotation-details li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 24px;
    height: 24px;
    content: counter(annotation-item);
    place-items: center;
    border-radius: 8px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 10px;
    font-weight: 700;
}

.books-section {
    padding-top: 36px;
}

.books-section > .section-heading {
    align-items: end;
    margin-bottom: 17px;
}

.book-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 11px;
    font-weight: 700;
}

.book-card {
    overflow: hidden;
}

.book-card + .book-card {
    margin-top: 12px;
}

.books-list {
    display: grid;
    gap: 10px;
}

.books-list .book-card + .book-card {
    margin-top: 0;
}

.book-card.is-unavailable {
    box-shadow: none;
}

.book-card.is-unavailable .book-card__summary {
    cursor: default;
    opacity: 0.67;
}

.book-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #efeee8;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.book-card__summary {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    gap: 13px;
    padding: 18px;
    text-align: left;
}

.book-card__number {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
}

.book-card__name {
    display: grid;
    flex: 1;
    gap: 3px;
}

.book-card__name strong {
    font-size: 14px;
    font-weight: 700;
}

.book-card__name small {
    color: var(--muted);
    font-size: 11px;
}

.book-card__chevron {
    width: 19px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.book-card__summary[aria-expanded="false"] .book-card__chevron {
    transform: rotate(-90deg);
}

.chapter-panel {
    padding: 19px 18px 21px;
    border-top: 1px solid #e6e7e2;
    background: #fbfaf6;
}

.chapter-panel[hidden] {
    display: none;
}

.chapter-panel > p {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.chapter-grid a {
    display: grid;
    min-height: 57px;
    place-content: center;
    border: 1px solid #e0e2dc;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.chapter-grid a:hover {
    border-color: var(--sage);
    background: var(--sage);
    color: #fff;
}

.chapter-grid span {
    font-size: 14px;
    font-weight: 700;
}

.chapter-grid small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 8px;
}

.chapter-grid a:hover small {
    color: #dbe5e0;
}

.reader-page {
    padding: 34px 0 72px;
}

.reader-shell {
    max-width: 780px;
}

.reader-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.reader-breadcrumbs a {
    color: var(--sage);
}

.reader-breadcrumbs svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.reader-header {
    padding: 36px 0 27px;
    border-bottom: 1px solid var(--line);
}

.reader-header h1 {
    max-width: 690px;
    margin-top: 9px;
    font-size: clamp(27px, 7vw, 46px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.reader-chapter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 21px;
    color: var(--muted);
    font-size: 13px;
}

.reader-chapter-row strong {
    color: var(--ink);
    font-size: 18px;
}

.reader-tool {
    display: grid;
    width: 43px;
    height: 43px;
    cursor: pointer;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--sage);
    font-size: 14px;
    font-weight: 700;
}

.scripture-text {
    padding: 30px 0 15px;
    font-family: var(--scripture-font);
    font-size: 16px;
    line-height: 1.75;
}

.scripture-text.is-reading-large {
    font-size: 18px;
}

.scripture-text.is-reading-larger {
    font-size: 20px;
}

.scripture-text h2 {
    margin: 38px 0 16px;
    color: var(--sage);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.45;
}

.scripture-text h2:first-child {
    margin-top: 0;
}

.verse {
    position: relative;
    margin-bottom: 9px;
    padding-left: 31px;
}

.verse:target {
    border-radius: 10px;
    background: rgba(178, 139, 82, 0.12);
    box-shadow: 0 0 0 6px rgba(178, 139, 82, 0.12);
}

.verse__number {
    position: absolute;
    top: 0.38em;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    cursor: pointer;
    place-items: center;
    border-radius: 8px;
    color: var(--sage);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.selection-help {
    margin-top: 20px;
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 11px;
    line-height: 1.5;
}

.selection-toolbar {
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: 88px;
    left: 12px;
    padding: 12px;
    border: 1px solid rgba(65, 103, 91, 0.18);
    border-radius: 16px;
    background: rgba(29, 41, 37, 0.97);
    color: #fff;
    box-shadow: 0 18px 55px rgba(20, 32, 28, 0.28);
}

.selection-toolbar[hidden] {
    display: none;
}

.selection-toolbar p {
    overflow: hidden;
    margin-bottom: 9px;
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-toolbar > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.selection-toolbar button {
    min-height: 38px;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
}

.share-dialog,
.saved-dialog {
    width: min(100% - 28px, 520px);
    max-height: min(82vh, 720px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 25px 80px rgba(20, 32, 28, 0.28);
}

.share-dialog::backdrop,
.saved-dialog::backdrop {
    background: rgba(18, 27, 24, 0.55);
    backdrop-filter: blur(4px);
}

.share-dialog__header,
.saved-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.share-dialog__header button,
.saved-dialog__header button {
    width: 34px;
    height: 34px;
    cursor: pointer;
    border-radius: 10px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 22px;
}

.share-dialog > p {
    max-height: 160px;
    padding: 18px 20px;
    overflow: auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 0 20px 20px;
}

.share-options a,
.share-options button {
    display: grid;
    min-height: 45px;
    cursor: pointer;
    place-items: center;
    border-radius: 12px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 12px;
    font-weight: 700;
}

.saved-dialog__header small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.saved-dialog__list {
    display: grid;
    max-height: 58vh;
    gap: 10px;
    padding: 16px;
    overflow: auto;
}

.saved-dialog__list article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.saved-dialog__list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--sage);
    font-size: 12px;
}

.saved-dialog__list p {
    font-family: var(--scripture-font);
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.saved-dialog__list button {
    cursor: pointer;
    color: #9b4e45;
    font-size: 10px;
}

.saved-dialog__empty {
    padding: 30px 20px 36px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.search-page {
    min-height: 70vh;
    padding: 42px 0 90px;
}

.search-shell {
    max-width: 850px;
}

.search-page__header h1 {
    margin-top: 8px;
    font-size: clamp(30px, 8vw, 50px);
    font-weight: 600;
    letter-spacing: -0.045em;
}

.scripture-search--page {
    margin-top: 24px;
}

.search-empty {
    margin-top: 32px;
    padding: 30px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    text-align: center;
}

.search-empty h2 {
    font-size: 18px;
    font-weight: 700;
}

.search-empty p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.search-results {
    margin-top: 34px;
}

.search-results__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.search-results__heading h2 {
    font-size: 18px;
    font-weight: 700;
}

.search-results__heading span {
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 11px;
    font-weight: 700;
}

.search-results__list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.search-result {
    display: block;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.search-result strong {
    color: var(--sage);
    font-size: 12px;
}

.search-result p {
    margin-top: 7px;
    font-family: var(--scripture-font);
    font-size: 14px;
    line-height: 1.6;
}

.search-result > span {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.verse__number:hover,
.verse__number.is-copied {
    background: var(--sage-soft);
}

.chapter-notes {
    margin-top: 34px;
    font-family: var(--scripture-font);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.chapter-notes summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
}

.chapter-notes > div {
    display: grid;
    gap: 13px;
    padding: 3px 20px 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.chapter-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.chapter-navigation--top {
    margin-top: 14px;
    margin-bottom: 24px;
}

.chapter-navigation a {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.chapter-navigation a.is-next {
    justify-content: flex-end;
    text-align: right;
}

.chapter-navigation small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapter-navigation svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--sage);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.availability-note {
    max-width: 460px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-footer {
    padding: 34px 0 112px;
    border-top: 1px solid var(--line);
    background: #efeee8;
}

.site-footer__inner {
    display: grid;
    gap: 25px;
}

.brand--footer .brand__mark {
    background: var(--ink);
}

.site-footer__inner > p {
    color: var(--muted);
    font-size: 11px;
}

.bottom-nav {
    position: fixed;
    z-index: 60;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 7px;
    border: 1px solid rgba(65, 103, 91, 0.14);
    border-radius: 20px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: 0 15px 45px rgba(33, 49, 43, 0.16);
    backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav button {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
}

.bottom-nav a:hover,
.bottom-nav button:hover {
    color: var(--sage);
}

.bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.bottom-nav .is-active {
    background: var(--sage-soft);
    color: var(--sage);
}

@media (min-width: 560px) {
    .scripture-search {
        grid-template-columns: auto 1fr auto;
    }

    .scripture-search button {
        grid-column: auto;
        min-width: 118px;
        padding-inline: 24px;
    }

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

@media (min-width: 800px) {
    .site-header__inner {
        min-height: 82px;
    }

    .desktop-nav {
        display: flex;
    }

    .icon-button,
    .mobile-menu,
    .bottom-nav {
        display: none;
    }

    .hero {
        padding: 82px 0 145px;
    }

    .hero__intro {
        font-size: 17px;
    }

    .home__content {
        grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
        gap: 24px;
        margin-top: -86px;
        padding-bottom: 100px;
    }

    .continue-card,
    .daily-word {
        min-height: 325px;
        padding: 31px;
    }

    .continue-card {
        display: flex;
        flex-direction: column;
    }

    .continue-card .primary-button {
        margin-top: auto;
    }

    .daily-word blockquote {
        font-size: 20px;
    }

    .annotation-section {
        padding: 31px;
    }

    .annotation-details__body {
        padding-right: 24px;
        padding-bottom: 25px;
        padding-left: 24px;
    }

    .annotation-details ol {
        max-width: 900px;
    }

    .books-section {
        grid-column: 1 / -1;
        padding-top: 48px;
    }

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

    .site-footer {
        padding-bottom: 38px;
    }

    .reader-page {
        padding: 58px 0 100px;
    }

    .scripture-text {
        padding-top: 42px;
        font-size: 17px;
    }

    .selection-toolbar {
        right: 50%;
        bottom: 24px;
        left: auto;
        width: min(520px, calc(100% - 32px));
        transform: translateX(50%);
    }

    .site-footer__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
