/* Men of Grace & Granite — design system.
   The look of the 2019 MDBootstrap site, hand-rolled: transparent scrolling
   navbar, Material side nav, jumbotron refs card, blue-gradient rules,
   morpheus-den FAB. Three themes (light / dark / paper) and two typefaces
   (serif / sans) switched entirely through custom properties on
   <html data-theme data-font>. */

/* ---------- Fonts (Linguistics Pro, SIL OFL — see assets/fonts/) ---------- */

@font-face {
  font-family: 'Linguistics Pro';
  src: url('fonts/LinguisticsPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Linguistics Pro';
  src: url('fonts/LinguisticsPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Linguistics Pro';
  src: url('fonts/LinguisticsPro-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Linguistics Pro';
  src: url('fonts/LinguisticsPro-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --serif: 'Linguistics Pro', Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: 'Gill Sans', 'Gill Sans Nova', 'Gill Sans MT', Lato, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --content-font: var(--serif);

  /* Accents: blue-gradient rules + morpheus-den FAB in light/dark;
     paper swaps the whole accent family to the LSB gold (#c9a57d). */
  --grad-rule: linear-gradient(40deg, #45cafc, #303f9f);
  --grad-fab: linear-gradient(to top, #30cfd0 0%, #330867 100%);
  --accent: var(--link);
  --accent-ink: #ffffff;

  /* MDB material shadows */
  --z1: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  --z1-half: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);

  /* light theme (default) — the old site's Bootstrap/MDB palette */
  --bg: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --link: #3f729b;
  --quote: #607d8b;
  --surface: #ffffff;
  --hairline: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.88);
  --panel-bg: #ffffff;
  --card-bg: transparent;
  --card-border: transparent;

  --drawer-bg: #e5e5e5;
  --drawer-text: #555555;
  --drawer-weight: 400;
  --drawer-sub-bg: rgba(0, 0, 0, 0.1);
  --drawer-sub-hover: rgba(0, 0, 0, 0.15);
  --drawer-head-hover: rgba(0, 0, 0, 0.05);
  --drawer-active: #4285f4;
}

[data-font='sans'] {
  --content-font: var(--sans);
}

[data-theme='dark'] {
  --bg: #212121;
  --text: #fafafa;
  --muted: #9e9e9e;
  --link: #3f729b;
  --quote: #607d8b;
  --surface: #2e2e2e;
  --hairline: rgba(255, 255, 255, 0.14);
  --hover: rgba(255, 255, 255, 0.07);
  --header-bg: rgba(33, 33, 33, 0.88);
  --panel-bg: #2e2e2e;
  --card-bg: transparent;
  --card-border: transparent;

  --drawer-bg: #2c2f34;
  --drawer-text: #ffffff;
  --drawer-weight: 300;
  --drawer-sub-bg: rgba(0, 0, 0, 0.15);
  --drawer-sub-hover: rgba(0, 0, 0, 0.15);
  --drawer-head-hover: rgba(255, 255, 255, 0.15);
  --drawer-active: #ffffff;
}

[data-theme='paper'] {
  --bg: #f0ecea;
  --text: #333333;
  --muted: #99948e;
  --link: #436cae;
  --quote: #607d8b;
  --surface: #ffffff;
  --hairline: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.045);
  --header-bg: rgba(240, 236, 234, 0.88);
  --panel-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #d8d2cc;

  --grad-rule: linear-gradient(40deg, #ddc094, #8a6134);
  --grad-fab: linear-gradient(to top, #c9a57d 0%, #5d4420 100%);
  --accent: #c9a57d;
  --accent-ink: #3d2e14;

  --drawer-bg: #e9e4e1;
  --drawer-text: #555555;
  --drawer-weight: 400;
  --drawer-sub-bg: rgba(0, 0, 0, 0.08);
  --drawer-sub-hover: rgba(0, 0, 0, 0.13);
  --drawer-head-hover: rgba(0, 0, 0, 0.05);
  --drawer-active: #8a6134;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

[hidden] {
  display: none !important;
}

/* Links never change color once visited (owner requirement, gg-xt7).
   The author rule already suppresses the UA :visited default in every
   engine probed (firefox/webkit/chromium, 2026-08-08); the explicit
   :visited pair is insurance against any styled-state gap. */
a,
a:visited {
  color: var(--link);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

/* ---------- Top bar: frosted glass, shrinks on scroll ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.5s ease-in-out;
}

.topbar.top-collapse {
  padding-top: 5px;
  padding-bottom: 5px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* ---------- Settings popover ---------- */

.settings {
  position: relative;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  width: 230px;
  padding: 0.9rem 1rem 0.5rem;
  background: var(--panel-bg);
  border-radius: 0.125rem;
  box-shadow: var(--z1-half);
}

.settings-panel fieldset {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
}

.settings-panel legend {
  padding: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: 0.125rem;
  overflow: hidden;
}

.seg button {
  flex: 1;
  padding: 0.45rem 0.3rem;
  border: 0;
  border-left: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.seg button:first-child {
  border-left: 0;
}

.seg button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

/* ---------- Drawer: the MDB Material side nav ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.5);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0; /* the menu control lives at the bar's right end */
  z-index: 40;
  width: 90%;
  padding: 0 0 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--drawer-bg);
  color: var(--drawer-text);
  transform: translateX(105%);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .drawer {
    width: 50%;
  }
}

@media (min-width: 1224px) {
  .drawer {
    width: 30%;
  }
}

@media (min-width: 1824px) {
  .drawer {
    width: 20%;
  }
}

.drawer.open {
  transform: none;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 0 50px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.logo-text {
  font-variant: small-caps;
  font-size: 1.35rem;
  line-height: 1.2;
}

.logo-sub {
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-height: 992px) {
  .logo-wrapper {
    height: 80px;
  }
}

.drawer details {
  border-radius: 2px;
}

.drawer summary {
  position: relative;
  height: 56px;
  line-height: 56px;
  padding: 0 44px 0 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: var(--drawer-weight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.drawer summary:hover,
.drawer details[open] summary {
  background: var(--drawer-head-hover);
}

.drawer summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease-in;
}

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

.drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer li a {
  display: block;
  height: 36px;
  line-height: 36px;
  padding: 0 16px 0 47px;
  background: var(--drawer-sub-bg);
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: var(--drawer-weight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer li a:hover {
  background: var(--drawer-sub-hover);
}

.drawer a[aria-current='page'] {
  color: var(--drawer-active);
  font-weight: 500;
}

/* ---------- Main layout: the 800px column ---------- */

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 5.5rem 1rem 3rem;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

[data-theme='paper'] .content-card {
  border-radius: 0.125rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Prose ---------- */

.prose {
  font-family: var(--content-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.prose p {
  margin: 0 0 1rem;
}

/* Series line above the study title — a sans eyebrow, the same voice
   as the JERRY WRAGG byline on home. The rule (docs/visual-language.md):
   serif is the CONTENT voice, sans is the STRUCTURAL voice. */

.crumb {
  margin: 0 0 0.6rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--link);
}

.crumb-sep {
  margin: 0 0.55em;
  color: var(--muted);
  opacity: 0.6;
}

.page-head {
  margin: 0 0 3rem;
  text-align: center;
}

.prose h1 {
  margin: 0;
  font-weight: 400;
  font-variant: small-caps;
  font-size: clamp(1.9rem, 5.5vw, 2.5rem);
  line-height: 1.2;
}

/* The study-summary paragraph (the one the refs card follows) rendered
   at the old h4 scale. */

.prose > p:has(+ .bible-refs) {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Outline headings — the old bold h4 with the blue-gradient break rule. */

.prose h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.prose h2:not(.refs-title)::after {
  content: '';
  display: block;
  margin-top: 0.6rem;
  height: 1px;
  background: var(--grad-rule);
}

.prose h3 {
  margin: 2.5rem 0 0.6em;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.prose hr {
  margin: 2.2em auto;
  border: 0;
  height: 1px;
  background: var(--hairline);
}

.prose hr.blue-gradient {
  margin: 1rem 0;
  width: 100%;
  background: var(--grad-rule);
}

/* Outline lists: 1. -> a) -> i) -> (1) -> dash, matching the source notes. */

@counter-style snr-alpha-paren {
  system: extends lower-alpha;
  suffix: ') ';
}
@counter-style snr-roman-paren {
  system: extends lower-roman;
  suffix: ') ';
}
@counter-style snr-decimal-paren {
  system: extends decimal;
  prefix: '(';
  suffix: ') ';
}
@counter-style snr-dash {
  system: cyclic;
  symbols: '\2013';
  suffix: '\2002';
}
@counter-style snr-num-paren {
  system: extends decimal;
  suffix: ') ';
}

.prose ol {
  margin: 0.9em 0;
  padding-left: 1.6em;
  list-style: decimal;
}

/* The notes' own paren enumeration ("1) ... 2) ...") keeps its marker. */
.prose ol.paren {
  list-style: snr-num-paren;
}

.prose ol ol {
  margin: 0.4em 0;
  list-style: snr-alpha-paren;
}

.prose ol ol ol {
  list-style: snr-roman-paren;
}

.prose ol ol ol ol {
  list-style: snr-decimal-paren;
}

.prose ul {
  margin: 0.9em 0;
  padding-left: 1.5em;
  list-style: snr-dash;
}

.prose li {
  margin: 0.45em 0;
}

.prose li::marker {
  color: var(--muted);
}

/* Pull quotes: the old site's italic blue-grey voice — plain paragraphs,
   no border. */

.prose blockquote {
  margin: 1rem 0;
  padding: 0;
  color: var(--quote);
  font-style: italic;
}

.prose blockquote p {
  margin: 0 0 1rem;
}

/* Closing epigraph — the study's final quote on a quiet card (the
   original design's "substantial without obnoxious" treatment; the
   old StudyQuote's right-aligned italic voice). The wrapper's padding
   lets the card's shadow breathe in element-clipped evidence. */

.epigraph {
  margin: 2.5rem -8px 0;
  padding: 8px;
}

.prose .epigraph blockquote {
  margin: 0;
  padding: 1.5rem 2rem;
  border-radius: 0.125rem;
  background: var(--surface);
  box-shadow: var(--z1);
  text-align: right;
}

[data-theme='paper'] .prose .epigraph blockquote {
  border: 1px solid var(--card-border);
}

/* Bible passages card — the old site's Jumbotron. */

.bible-refs {
  margin: 0 0 2rem;
  padding: 2rem 1rem;
  border-radius: 0.125rem;
  background: var(--surface);
  box-shadow: var(--z1);
}

@media (min-width: 576px) {
  .bible-refs {
    padding: 4rem 2rem;
  }
}

[data-theme='paper'] .bible-refs {
  border: 1px solid var(--card-border);
}

.bible-refs .refs-title,
.main-text .refs-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

/* The main-passage card (snr-xe8): the sermon's text, LSB, verse per
   line, in the refs-card jumbotron voice. */
.main-text {
  margin: 0 0 2rem;
  padding: 2rem 1rem;
  border-radius: 0.125rem;
  background: var(--surface);
  box-shadow: var(--z1);
}

@media (min-width: 576px) {
  .main-text {
    padding: 3rem 2rem;
  }
}

.mt-body {
  margin-top: 1.2rem;
}

/* The LSB reader's gutter alignment (MR !5 review): every text block
   shares ONE left column; verse numbers hang in the gutter to its left
   and never disturb the alignment — wrapped prose lines stay on the
   column. (The reader's huge chapter drop-cap is deliberately NOT
   adopted.) */
.mt-line {
  display: block;
  padding-left: 2.6em;
  margin: 0.15em 0;
}

.mt-line[data-indent='1'] {
  padding-left: 3.6em;
}

.mt-line[data-indent='2'] {
  padding-left: 4.6em;
}

.mt-vn {
  display: inline-block;
  width: 1.8em;
  margin-left: -2.6em;
  margin-right: 0.8em;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.68em;
  color: var(--muted);
}

.mt-line[data-indent='1'] .mt-vn {
  margin-left: -3.6em;
}

.mt-line[data-indent='2'] .mt-vn {
  margin-left: -4.6em;
}

.mt-credit {
  margin: 1.2rem 0 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
}

.bible-refs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 1.5rem;
}

@media (min-width: 576px) {
  .bible-refs ul {
    column-count: 4;
    column-gap: 2rem;
  }
}

.bible-refs li {
  margin: 0 0 1rem;
  break-inside: avoid;
}

/* Footnotes — separated by a short rule, as in the PDF; no injected heading. */

.fn-ref a {
  font-weight: 600;
  text-decoration: none;
}

.footnotes {
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footnotes::before {
  content: '';
  display: block;
  width: 33%;
  height: 1px;
  margin-bottom: 1.1rem;
  background: var(--hairline);
}

.footnotes ol {
  margin: 0;
  padding-left: 1.4em;
  list-style: decimal;
}

.footnotes li {
  margin: 0.6em 0;
}

.fn-back {
  text-decoration: none;
}

/* Tables */

.table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.prose th,
.prose td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  border-bottom: 2px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.8em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* LSB reference links — the tagger inlines LSB's gold (#c9a57d) on every
   link, so light/dark need !important to win; paper keeps the gold, which
   belongs to the LSB reader look. */

.prose a.lsb-reftagger-link {
  text-decoration: none;
}

.prose a.lsb-reftagger-link:hover {
  text-decoration: underline;
}

[data-theme='light'] .prose a.lsb-reftagger-link,
[data-theme='dark'] .prose a.lsb-reftagger-link {
  color: var(--link) !important;
}

/* ---------- Home: the old cover — title over an empty page ---------- */

.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0; /* text-only hero: no mark above (the gg mark slot is empty until CBC art lands) */
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.2;
  font-variant: small-caps;
}

.byline,
.passage {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The series part number: legible but subtle (snr-31v). On the sermon
   page it sits between the title and the passage line, quieter than
   both; in lists it trails the title as a small muted tag. */
.page-head .part {
  margin: 0.5rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

.part-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* The preacher attribution: the byline voice — uppercase, the gg
   "JERRY WRAGG" treatment — but ever so slightly smaller than the
   Scripture reference above it, so the passage stays the more
   prominent line (MR !6 review rounds 1+2; snr-259). */
.page-head .preacher {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kind-notfound .hero {
  min-height: 60vh;
}

.toc-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.toc-title::after {
  content: '';
  display: block;
  margin-top: 0.6rem;
  height: 1px;
  background: var(--grad-rule);
}

.toc-series {
  margin: 1.6rem 0;
}

.toc-series h3 {
  margin: 0.2rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.toc-series h3 a {
  color: inherit;
  text-decoration: none;
}

.toc-series h3 a:hover {
  color: var(--link);
}

.toc-series ul {
  margin: 0.35rem 0;
  padding-left: 1.1rem;
  list-style: none;
}

.toc-series li {
  margin: 0.3em 0;
}

.toc-series li a {
  text-decoration: none;
}

.toc-series li a:hover {
  text-decoration: underline;
}

/* ---------- Series landing ---------- */

.study-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.study-list li {
  margin: 0.6rem 0;
  border-radius: 0.125rem;
  background: var(--surface);
  box-shadow: var(--z1);
}

.study-list a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

.study-list a:hover {
  background: var(--hover);
}

.study-kicker {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pager ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.pager a {
  max-width: 48%;
  color: var(--link);
  text-decoration: none;
}

.pager a:hover {
  text-decoration: underline;
}

.pager-next {
  margin-left: auto;
  text-align: right;
}

/* ---------- Footer ---------- */

.site-foot {
  margin: 3.5rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-foot p {
  margin: 0.3em 0;
}

.site-foot a {
  color: inherit;
}

.site-foot .fine {
  font-size: 0.78rem;
}

/* ---------- FAB (morpheus-den, exactly as on the old site) ---------- */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 0;
  border-radius: 50%;
  background-image: var(--grad-fab);
  color: #fff;
  box-shadow: var(--z1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s, box-shadow 0.15s ease-in-out;
}

.fab:hover {
  box-shadow: var(--z1-half);
}

.fab.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .drawer,
  .fab,
  .topbar,
  .drawer summary::after,
  body {
    transition: none;
  }
}
