/* Gospel Bookmarks - base stylesheet.
   "Illuminated" visual design pass (phase 3): a warm, manuscript-inspired
   palette - burgundy and antique gold on parchment - built on the token set
   phase 2 left in place. Every colour and font below is a token; component
   rules read from the tokens rather than hard-coding a shade, so light/dark
   and any future theme stay in sync automatically. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-variable.260c81a4759b.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-variable.260c81a4759b.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-variable.260c81a4759b.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-700.9401d0214a93.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-600italic.7ac3358f7c5a.woff2") format("woff2");
}

:root {
  --ground: #faf6ee;
  --surface: #ffffff;
  --surface-alt: #f5eee0;
  --ink: #2b2420;
  --ink-2: #6e6259;
  --ink-3: #9a8d80;
  --rule: #e8dec9;
  --accent: #7a2331;
  --accent-2: #a6404b;
  --accent-tint: #f4e7bf;
  --accent-ink: #ffffff;
  --danger: #b23a34;
  --ok: #3f7d58;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(43, 22, 16, .05), 0 4px 14px rgba(43, 22, 16, .07);
  --shadow-hover: 0 10px 26px rgba(43, 22, 16, .14);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Highlight colours (plan §09) - must stay in sync with
     highlights.models.HighlightColor. */
  --hl-yellow: #fdf1a0;
  --hl-green: #b9e6b0;
  --hl-blue: #b8dcf5;
  --hl-pink: #f7c6dd;
  --hl-orange: #fad2a6;
  --hl-ink: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1a1013;
    --surface: #241318;
    --surface-alt: #2c1920;
    --ink: #f1e8dd;
    --ink-2: #c7b9ac;
    --ink-3: #8f8177;
    --rule: #3a2530;
    --accent: #d9b863;
    /* Lifted from the light theme's #a6404b: on the dark ground that shade
       lands at 4.16:1, under the 4.5:1 AA floor for body-size link text. */
    --accent-2: #d67c8c;
    --accent-tint: #3b2e15;
    --accent-ink: #241318;
    --danger: #e0847c;
    --ok: #79c199;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .28);
    --shadow-hover: 0 10px 26px rgba(0, 0, 0, .4);

    --hl-yellow: #6b5e12;
    --hl-green: #285c2c;
    --hl-blue: #234a63;
    --hl-pink: #6b2b49;
    --hl-orange: #6b3d12;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }

a { color: var(--accent-2); text-decoration-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: .5rem .75rem;
  border-radius: var(--radius);
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: .9rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.brand::before {
  content: "";
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.site-nav, .site-account { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.site-account { margin-left: auto; gap: 1rem; }

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent-tint); }

.site-search { margin: 0; }
.site-search input {
  padding: .4rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  width: 11rem;
  transition: border-color .15s ease, box-shadow .15s ease, width .2s ease;
}
.site-search input:focus { width: 14rem; border-color: var(--accent-2); }
.whoami { color: var(--ink-3); font-size: .88rem; }
.inline-form { display: inline; margin: 0; }

.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent-2);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.linklike:hover { color: var(--accent); }

/* --- Layout ---------------------------------------------------------------- */

main { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }
.detail { max-width: 44rem; }
.prose { max-width: 42rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 1.75rem 0 .6rem; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--rule);
}

.muted { color: var(--ink-3); font-size: .9rem; }
.empty { color: var(--ink-2); padding: 1.5rem 0; }

/* --- Messages -------------------------------------------------------------- */

.messages { list-style: none; margin: 0; padding: .75rem 1.5rem; }
/* Each background is declared twice: a flat token first, then the tinted
   color-mix. Browsers without color-mix drop the second declaration and keep
   the first, so the message still reads as a raised panel. */
.message {
  padding: .65rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-2);
  background: var(--surface);
  background: color-mix(in srgb, var(--accent-2) 8%, var(--surface));
  margin-bottom: .4rem;
}
.message--success {
  border-left-color: var(--ok);
  background: var(--surface);
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
}
.message--error {
  border-left-color: var(--danger);
  background: var(--surface);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
}

/* --- Cards ----------------------------------------------------------------- */

.card-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card-list .card:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent-2) 25%, var(--rule));
  transform: translateY(-1px);
}
.card h2, .card h3 { margin: 0 0 .35rem; font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent-2); }
.card h2 .swatch { vertical-align: middle; margin-right: .4rem; }
.card p { margin: .25rem 0; color: var(--ink-2); }

.item-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }

.badge {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.badge--public { border-color: var(--ok); color: var(--ok); }
.badge--unlisted { border-color: var(--accent); color: var(--accent); }

.topic-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; padding: 0; }
.topic {
  font-size: .8rem;
  padding: .12rem .55rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.topic:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* --- Detail ---------------------------------------------------------------- */

.byline { color: var(--ink-2); margin: 0 0 .5rem; }
.bookmark-url { word-break: break-all; }

.quote-body {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-body footer {
  color: var(--ink-2);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .01em;
  margin-top: .75rem;
}
.talk-body { white-space: normal; }

/* --- Timeline -------------------------------------------------------------- */

.timeline { list-style: none; margin: 1rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--rule); }
.timeline-event { padding: 0 0 1.5rem 1rem; position: relative; }
.timeline-event::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: .5rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-event h2 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.event-date { color: var(--ink-3); font-size: .85rem; margin: 0; font-weight: 600; }
.event-location { color: var(--ink-3); font-size: .85rem; margin: 0 0 .4rem; font-style: italic; }
.timeline-event img { max-width: 100%; height: auto; border-radius: var(--radius); margin: .5rem 0; box-shadow: var(--shadow); }
.event-quote {
  margin: .6rem 0;
  padding: .7rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: .96rem;
  color: var(--ink-2);
}

/* --- Stats ----------------------------------------------------------------- */

.stat-row {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem;
}
.stat a {
  display: block;
  padding: 1.1rem 1rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.stat a:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent-2) 30%, var(--rule));
  transform: translateY(-2px);
}
.stat-n { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.stat-l { display: block; color: var(--ink-3); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }

/* --- Forms ----------------------------------------------------------------- */

.stacked-form { max-width: 38rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .92rem; }

.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent);
}

.field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
.field ul.errorlist { color: var(--danger); font-size: .85rem; margin: .25rem 0 0; padding-left: 1rem; }
.help { color: var(--ink-3); font-size: .85rem; margin: .25rem 0 0; }

/* --- Buttons --------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.actions--small { margin-top: .5rem; font-size: .88rem; }

.button {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.button:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-1px); }
.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.button--primary:hover { color: var(--accent-ink); filter: brightness(1.08); box-shadow: var(--shadow-hover); }
.button--danger { border-color: var(--danger); color: var(--danger); }
.button--danger:hover { background: var(--danger); color: #fff; }
/* Sits inline in the header, where the standard button height is too tall. */
.button--compact { padding: .35rem .8rem; font-size: .88rem; }

/* --- Landing page (signed-out home) ---------------------------------------- */
/* The one page with a marketing job to do. It still uses the same tokens and
   card components as the app, so the visitor recognises the place once they
   sign in - the hero is the only element that does not appear elsewhere. */

.hero {
  margin: -1.5rem -1.5rem 0;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  /* Plain gradient first; the color-mix wash on top is an enhancement that
     older browsers drop without losing the panel itself. */
  background: linear-gradient(180deg, var(--surface-alt), var(--ground));
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-tint) 55%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-alt), var(--ground));
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  max-width: 20ch;
  margin: 0 auto .9rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 0;
}

.hero-note { margin: 1.25rem 0 0; font-size: .85rem; color: var(--ink-3); }

/* Section headings on this page carry a short gold rule, which is the one
   ornament the design uses to mark a top-level break. */
.section-heading {
  position: relative;
  padding-top: 1.1rem;
  margin-bottom: .35rem;
}
.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.features { margin-top: 2.75rem; }

.feature-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.feature h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}
.feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }

.landing-public, .landing-topics { margin-top: 3rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.section-more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.landing-public .card-list {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.topic-list--large { gap: .5rem; margin-top: 1.25rem; }
.topic-list--large .topic { font-size: .9rem; padding: .3rem .85rem; }

.landing-cta {
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.landing-cta h2 { margin-top: 0; }
.landing-cta p { color: var(--ink-2); }

/* --- Pagination & footer --------------------------------------------------- */

.pagination { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0; }

.site-footer {
  position: relative;
  margin-top: 2rem;
  padding: 2.25rem 1.5rem 1.75rem;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: .9rem;
  text-align: center;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2));
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.footer-verse {
  max-width: 34rem;
  margin: .5rem auto 0;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Favourites & collections ---------------------------------------------- */

.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }

.chip {
  display: inline-block;
  padding: .25rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent-2); color: var(--accent-2); }
.chip--on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip--on:hover { color: var(--accent-ink); filter: brightness(1.08); }

.card .inline-form { display: inline-flex; gap: .4rem; align-items: center; margin-right: .75rem; }
.card .inline-form select { padding: .3rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--ground); color: var(--ink); font: inherit; }

/* Visible to screen readers only. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Topics ---------------------------------------------------------------- */

.search-form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; max-width: 34rem; }
.search-form--filtered { max-width: 48rem; }
.search-form input[type="text"] {
  flex: 1 1 14rem;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form select {
  flex: 0 1 10rem;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.search-form input[type="text"]:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent);
}

.topic-grid {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .6rem;
}
.topic-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.topic-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent-2) 25%, var(--rule));
  transform: translateY(-1px);
}
.topic-name { font-weight: 700; text-decoration: none; color: var(--ink); }
.topic-name:hover { color: var(--accent-2); }

/* --- Scriptures ------------------------------------------------------------ */

.volume { margin-bottom: 2.25rem; }
.volume h2 {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.book-list {
  list-style: none;
  margin: .75rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .3rem .5rem;
}
.book-list a {
  display: block;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.book-list a:hover { background: var(--surface-alt); color: var(--accent-2); }

.verse-list { list-style: none; margin: 1rem 0; padding: 0; max-width: 44rem; }
.verse { padding: .7rem 0; border-bottom: 1px solid var(--rule-soft, var(--rule)); }
.verse p { margin: .2rem 0; font-family: var(--font-head); font-size: 1.05rem; }
.verse-ref { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--accent-2); font-family: var(--font-body); }
.verse-ref:hover { color: var(--accent); }
.verse-number { color: var(--ink-3); font-size: .8rem; font-weight: 600; font-family: var(--font-body); }
.verse-list--chapter .verse { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; }

.report-link { font-size: .88rem; color: var(--ink-3); align-self: center; margin-left: .5rem; }

/* --- allauth pages (login, signup, password reset, MFA, sessions) ---------- */
/* allauth's element templates (allauth/elements/*.html) emit bare, unclassed
   form / p / label / input / button tags - there is no .field wrapper to hang
   the usual form rules off, so this styles the tags directly, scoped to
   .auth-page so it cannot leak onto forms elsewhere in the site. */

.auth-page {
  max-width: 26rem;
  margin: 2rem auto;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-page h1 { margin-bottom: 1rem; }
.auth-page p { margin: .6rem 0; }
.auth-page a { color: var(--accent-2); }
.auth-page a:hover { color: var(--accent); }

.auth-page form { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.auth-page form p { margin: 0; display: flex; flex-direction: column; gap: .3rem; }

.auth-page label { font-weight: 600; font-size: .92rem; }

.auth-page input:not([type="checkbox"]):not([type="radio"]),
.auth-page textarea,
.auth-page select {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.auth-page input[type="checkbox"],
.auth-page input[type="radio"] { margin-right: .4rem; }

/* Field errors: allauth prints {{ attrs.errors }} as raw markup immediately
   before the <p> that wraps the field. */
.auth-page form ul { color: var(--danger); font-size: .85rem; margin: 0; padding-left: 1.1rem; }

/* Buttons and button-styled links share one look; allauth renders a submit
   as <button> and a same-purpose action (e.g. "Resend code") as <a>. */
.auth-page button,
.auth-page form a[href] {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: filter .15s ease, box-shadow .15s ease;
}
.auth-page button:hover,
.auth-page form a[href]:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-hover);
}

.auth-page hr { border: none; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

/* --- Highlighting (plan §09) ------------------------------------------------ */
/* static/js/highlights.js measures character offsets against this element's
   plain text content, so nothing here may add or remove characters - only
   `white-space: pre-wrap` stands in for the `linebreaks` filter used
   elsewhere, reproducing line breaks visually without restructuring the DOM. */

.highlightable { white-space: pre-wrap; }

.highlight-mark {
  border-radius: 2px;
  padding: 0 .1em;
  cursor: pointer;
  color: var(--hl-ink);
}
.highlight-mark--yellow { background: var(--hl-yellow); }
.highlight-mark--green { background: var(--hl-green); }
.highlight-mark--blue { background: var(--hl-blue); }
.highlight-mark--pink { background: var(--hl-pink); }
.highlight-mark--orange { background: var(--hl-orange); }

.highlight-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: .6rem 0;
  padding: .5rem .75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
/* Author rules otherwise beat the UA [hidden] rule on equal specificity -
   this is what actually keeps the toolbar hidden until a selection is made. */
.highlight-toolbar[hidden] { display: none; }

.highlight-toolbar__label { font-size: .85rem; color: var(--ink-2); }

.highlight-toolbar__cancel { padding: .3rem .7rem; font-size: .85rem; }

.highlight-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  padding: 0;
  cursor: pointer;
}
.highlight-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.highlight-swatch--yellow { background: var(--hl-yellow); }
.highlight-swatch--green { background: var(--hl-green); }
.highlight-swatch--blue { background: var(--hl-blue); }
.highlight-swatch--pink { background: var(--hl-pink); }
.highlight-swatch--orange { background: var(--hl-orange); }

.highlight-orphan-notice { font-size: .85rem; color: var(--ink-3); margin-top: .5rem; }
