/* =========================================================================
   Samaha Law Firm - stylesheet, v2
   Version this filename when the file changes. _headers caches /assets/*
   for a year as immutable, so an edit under the same name will not reach
   anyone who has already loaded the site.

   PALETTE - every value sampled from the supplied business card artwork,
   not chosen. Source of each is stated. Do not revise without saying why.
     #182476  navy      1,014,235 px, the card field itself
     #71C5EA  accent    the rule under the name on the reverse
     #D4D4D6  paper     158,532 px, the mount the card sits on
   The tagline "ROOTED IN JUSTICE" measures nearer #7EB6EE, a hair more
   violet than the rule. Two near-identical blues is drift, not design, so
   the rule value wins and is used everywhere. One accent, defined once.

   CSS ORDER RULE: every base rule is declared before any max-width media
   query that overrides it. A media query adds no specificity and wins on
   source order alone.
   ========================================================================= */

/* iOS zooms the whole page when a field under 16px takes focus. First rule,
   always. */
input, textarea, select, button { font-size: 16px; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #182476;
  --navy-deep: #101a56;
  --navy-lift: #1e2c8c;
  --accent: #71C5EA;
  --paper: #D4D4D6;
  --page: #F4F4F6;
  --ink: #14173a;
  --muted: #5a5f7d;
  --muted-on-navy: #b9c2e8;
  --border: #d8d9e2;
  --border-on-navy: rgba(113, 197, 234, 0.28);

  --wrap: 1120px;
  --gap: clamp(18px, 4vw, 40px);
  --sans: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

/* Arabic swaps direction and the whole type stack. Set on <html> by app.js. */
html[dir="rtl"] body { font-family: var(--arabic); line-height: 1.9; }
html[dir="rtl"] .brand-mark,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .eyebrow, html[dir="rtl"] .btn, html[dir="rtl"] nav a {
  font-family: var(--arabic);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.grid > * { min-width: 0; }

h1, h2, h3, .eyebrow, .brand-mark, .btn, nav a, .stat-num {
  font-family: var(--sans);
  font-weight: 300;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 400; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.eyebrow-dark { color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .lead, .section-navy p { color: #e7ebff; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); line-height: 1.6; color: var(--muted); }

.rule {
  height: 4px;
  background: var(--accent);
  border: 0;
  width: 100%;
  max-width: 640px;
  margin: 22px 0 0;
}

/* --------------------------------------------------------------------- */
/* Skip link and header                                                   */
/* --------------------------------------------------------------------- */
/* The skip link must be off-screen without being off-canvas. The usual
   left:-9999px trick is safe in LTR, where left overflow does not scroll,
   and wrong in RTL, where it does: it added 9,999px of scrollable width to
   every Arabic page and nothing looked broken. Clip to a 1px box instead,
   which occupies no layout in either direction. */
.skip {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 1000;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  background: var(--accent); color: var(--navy);
  padding: 12px 18px; font-family: var(--sans);
}
.skip:focus {
  width: auto; height: auto; overflow: visible;
  clip: auto; clip-path: none;
  top: 8px; inset-inline-start: 8px;
}

header.site {
  position: sticky; top: 0; z-index: 800;
  background: var(--navy);
  border-bottom: 1px solid var(--border-on-navy);
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gap);
  display: flex; align-items: center; gap: 20px;
  /* Wrap, never overflow. Eight nav items plus a three-way language switch
     exceed 1440px in French, and an overflowing header scrolls the whole
     document sideways on every page at once. */
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { font-size: 1.28rem; letter-spacing: 0.3em; text-transform: uppercase; }
.brand-sub {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent);
}
nav.primary { margin-inline-start: auto; display: flex; align-items: center;
  gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav.primary a {
  color: #dfe4ff; text-decoration: none; font-size: 0.74rem; white-space: nowrap;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a:focus-visible { color: #fff; border-bottom-color: var(--accent); }
nav.primary a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

/* Three languages cannot be a toggle. A cycling button hides French from
   anyone who does not press twice, so all three states are always visible. */
.lang-switch {
  display: inline-flex; border: 1px solid var(--border-on-navy); flex-shrink: 0;
}
.lang-switch button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted-on-navy); font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 11px; min-height: 42px; min-width: 44px;
}
.lang-switch button + button { border-inline-start: 1px solid var(--border-on-navy); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--navy); }
.lang-switch button:hover[aria-pressed="false"] { background: rgba(113, 197, 234, 0.14); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.menu-btn { display: none; }

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 11vw, 128px) 0 clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -14%; top: -28%;
  width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  border: 1px solid rgba(113, 197, 234, 0.16); border-radius: 50%;
  pointer-events: none;
}
.hero h1 { max-width: 17ch; }
.hero .lead { color: #ccd4ff; max-width: 56ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--navy);
}
.btn:hover { background: #8ed4f2; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--border-on-navy); }
.btn-ghost:hover { background: rgba(113, 197, 234, 0.14); }
.btn-solid-navy { background: var(--navy); color: #fff; }
.btn-solid-navy:hover { background: var(--navy-lift); }

/* --------------------------------------------------------------------- */
/* Credential strip                                                       */
/* --------------------------------------------------------------------- */
.creds { background: var(--navy-deep); color: #fff; }
.creds .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-on-navy);
}
.cred { background: var(--navy-deep); padding: 30px 24px; }
.cred .stat-num { display: block; font-size: 1.9rem; color: var(--accent); }
.cred p { font-size: 0.92rem; color: var(--muted-on-navy); margin-top: 8px; line-height: 1.5; }

/* --------------------------------------------------------------------- */
/* Two readings - the signature control                                   */
/* --------------------------------------------------------------------- */
.readings-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; justify-content: space-between; }

.reading-switch {
  display: inline-flex; border: 1px solid var(--border);
  background: #fff; padding: 4px;
}
.reading-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 12px 18px; min-height: 44px;
  color: var(--muted);
}
.reading-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.reading-switch button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.section-navy .reading-switch { border-color: var(--border-on-navy); background: transparent; }
.section-navy .reading-switch button { color: var(--muted-on-navy); }
.section-navy .reading-switch button[aria-pressed="true"] { background: var(--accent); color: var(--navy); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--accent); padding: 30px 26px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 14px; color: var(--navy); }
.card p { color: var(--muted); font-size: 1rem; }
.card .reading { display: none; }
.card .reading.is-on { display: block; }

.reading-note {
  margin-top: 34px; font-size: 0.94rem; color: var(--muted);
  border-inline-start: 3px solid var(--accent); padding-inline-start: 16px; max-width: 68ch;
}

/* --------------------------------------------------------------------- */
/* Split, profile, lists                                                  */
/* --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.split-narrow { grid-template-columns: 0.8fr 1.2fr; }

.portrait-slot {
  aspect-ratio: 4 / 5; background: var(--navy);
  border: 1px solid var(--border-on-navy);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 28px; color: var(--muted-on-navy);
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em;
}

ul.ticks { list-style: none; margin-top: 22px; }
ul.ticks li {
  position: relative; padding-inline-start: 26px; margin-bottom: 14px;
  color: var(--muted);
}
ul.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.72em;
  width: 12px; height: 2px; background: var(--accent);
}
.section-navy ul.ticks li { color: #dfe4ff; }

.timeline { list-style: none; margin-top: 30px; border-inline-start: 1px solid var(--border); }
.timeline li { padding: 0 0 26px 26px; position: relative; }
html[dir="rtl"] .timeline li { padding: 0 26px 26px 0; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: -5px; top: 8px;
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
}
.timeline h3 { color: var(--navy); font-size: 1.05rem; }
.timeline p { color: var(--muted); font-size: 0.96rem; }

/* --------------------------------------------------------------------- */
/* Contact                                                                */
/* --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 64px); }
.contact-list { list-style: none; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--border-on-navy); }
.contact-list .label {
  display: block; font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; word-break: break-word; }
.contact-list a:hover { border-bottom-color: var(--accent); }

form.enquiry { display: grid; gap: 16px; }
form.enquiry label {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 7px;
}
form.enquiry input, form.enquiry textarea, form.enquiry select {
  width: 100%; padding: 13px 14px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-navy); color: #fff;
  font-family: var(--serif);
}
html[dir="rtl"] form.enquiry input,
html[dir="rtl"] form.enquiry textarea,
html[dir="rtl"] form.enquiry select { font-family: var(--arabic); }
form.enquiry input:focus, form.enquiry textarea:focus, form.enquiry select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
form.enquiry textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted-on-navy); }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
footer.site { background: var(--navy-deep); color: #fff; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer.site h3 {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: #d5dbff; text-decoration: none; font-size: 0.96rem; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-tag {
  font-family: var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-size: 0.72rem; margin-top: 14px;
}
/* Three cells: location, studio credit, copyright. Grid rather than
   space-between, because with three flex children the middle one drifts off
   centre as soon as the outer two differ in width, and they always do once
   the language changes. justify-self uses logical values, so the row mirrors
   itself in Arabic with no separate rule. */
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-on-navy);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 20px;
  align-items: center;
  font-size: 0.82rem; color: var(--muted-on-navy);
}
.foot-base > :first-child { justify-self: start; }
.foot-base > :last-child { justify-self: end; }
.foot-credit { justify-self: center; text-align: center; }
.foot-credit span, .foot-credit a { font-family: var(--sans); letter-spacing: 0.06em; color: var(--accent); }
/* The studio credit is a link, so it needs a hover and a focus ring like any
   other. The underline is on the accent rule colour rather than the text, so
   it reads as part of the palette instead of a default browser link. */
.foot-credit a.studio {
  text-decoration: none; border-bottom: 1px solid transparent;
  padding-bottom: 2px; transition: border-color .2s, color .2s;
}
.foot-credit a.studio:hover { color: #fff; border-bottom-color: var(--accent); }
.foot-credit a.studio:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.disclaimer { max-width: 72ch; font-size: 0.85rem; color: var(--muted-on-navy); margin-top: 18px; }

/* 404 */
.oops { min-height: 68vh; display: flex; align-items: center; background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------- */
/* v2 components: prose, plain cards, empty states, legal, map, CTA band   */
/* Declared here, before the media queries, per the CSS order rule.        */
/* --------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.section-navy .prose p { color: #dfe4ff; }

.plaincards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.plaincard {
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--accent); padding: 28px 26px;
}
.plaincard h3 { color: var(--navy); margin-bottom: 12px; }
.plaincard p { color: var(--muted); font-size: 1rem; }
.plaincard a.more {
  display: inline-block; margin-top: 16px; font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.plaincard a.more:hover { color: var(--navy-lift); }
.section-navy .plaincard { background: rgba(255,255,255,.04); border-color: var(--border-on-navy); }
.section-navy .plaincard h3 { color: #fff; }
.section-navy .plaincard p { color: var(--muted-on-navy); }

/* Empty state. Used where a section is built but has no content yet. It is
   deliberately visible rather than hidden: a law firm that pads an empty
   page with filler is telling a prospective client how it drafts. */
.empty {
  border: 1px dashed var(--border-on-navy);
  padding: clamp(30px, 6vw, 56px);
  max-width: 74ch;
}
.empty h2 { margin-bottom: 16px; }
.empty p { color: #dfe4ff; }
.empty p + p { margin-top: 1em; }
.empty .mark { width: 26px; height: 26px; display: block; margin-bottom: 20px; }
.empty .mark path { fill: var(--accent); }

/* The A from the wordmark, reused as a section marker. Same shape as the
   favicon, so the identity carries through at every scale. */
.sectionmark { width: 22px; height: 22px; display: block; margin-bottom: 18px; }
.sectionmark path { fill: var(--accent); }

.legal-body { max-width: 72ch; }
.legal-body section { margin-top: 40px; }
.legal-body h2 {
  font-size: 1.22rem; color: var(--navy);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.legal-body p { margin-top: 16px; color: var(--muted); }
.legal-meta {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

.notice {
  border-inline-start: 3px solid var(--accent);
  padding: 4px 0 4px 18px; margin-top: 34px;
  max-width: 72ch; color: var(--muted); font-size: 0.95rem;
}
html[dir="rtl"] .notice { padding: 4px 18px 4px 0; }
.section-navy .notice { color: var(--muted-on-navy); }

.map-slot {
  margin-top: 26px; border: 1px dashed var(--border-on-navy);
  padding: 30px; color: var(--muted-on-navy); font-size: 0.92rem;
}

.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band .wrap { max-width: 720px; }
.cta-band .lead { color: #ccd4ff; margin: 20px auto 0; }
.cta-band .hero-actions { justify-content: center; }
.cta-band hr.rule { margin: 22px auto 0; max-width: 220px; }

.pagehead-sub {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-top: 26px;
}

/* --------------------------------------------------------------------- */
/* Floating stack                                                         */
/*                                                                        */
/* They rise together above the footer rather than sitting on top of it,   */
/* and they hide together when the mobile menu opens.                      */
/*                                                                        */
/* WhatsApp is NOT its brand green here. That is a deliberate departure    */
/* from WhatsApp's own brand guidance, made because a green disc on a navy */
/* page is the one element that reads as bolted on. The tradeoff is real:  */
/* the green is instantly recognised and recolouring costs some of that    */
/* recognition, which is why the glyph itself is left completely intact.   */
/* --------------------------------------------------------------------- */
.float-stack {
  position: fixed; inset-inline-end: 20px; z-index: 900;
  display: flex; flex-direction: column-reverse; gap: 12px;
  transition: bottom .15s linear;
  bottom: var(--float-bottom, 28px);
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-navy); cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(16, 26, 86, .28);
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.float-btn svg { width: 24px; height: 24px; }
.float-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* visibility, not opacity alone. An opacity:0 button stays in the tab order,
   so keyboard users land on an invisible control and cannot tell where focus
   went. visibility:hidden removes it from the tab order; the delayed
   transition keeps the fade. */
.float-hidden {
  opacity: 0; pointer-events: none; transform: scale(.85);
  visibility: hidden;
}
.float-btn { transition: opacity .2s, transform .2s, background .2s, border-color .2s, visibility 0s linear .2s; }
.float-btn:not(.float-hidden) { transition-delay: 0s; }

/* Back to top: the balance, resting on the pointed A from the wordmark. */
#backTop { background: var(--navy); }
#backTop:hover { background: var(--navy-lift); border-color: var(--accent); }
#backTop svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#backTop .beam, #backTop .stem, #backTop .base {
  stroke: var(--accent); stroke-width: 1.6;
}
#backTop .pan { fill: none; stroke: var(--accent); stroke-width: 1.4; }
/* The apex is solid. It is the wordmark letterform and the arrowhead at the
   same time, and an outline at 24px loses both readings. */
#backTop .apex { fill: #fff; stroke: none; }

#waFloat { background: var(--accent); color: var(--navy); }
#waFloat:hover { background: #8ed4f2; }
#waFloat svg { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .float-stack, .float-btn { transition: none; }
}

/* --------------------------------------------------------------------- */
/* Media queries last, per the CSS order rule                             */
/* --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .creds .grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .plaincards { grid-template-columns: 1fr 1fr; }
  .split, .split-narrow, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    margin-inline-start: auto; min-width: 44px; min-height: 44px;
    background: transparent; border: 1px solid var(--border-on-navy);
    color: var(--accent); cursor: pointer; font-family: var(--sans);
    letter-spacing: 0.1em; padding: 0 12px;
  }
  nav.primary {
    position: fixed; inset: 66px 0 auto 0; margin: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gap) 22px;
    border-bottom: 1px solid var(--border-on-navy);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  nav.primary[hidden] { display: none; }
  nav.primary a {
    padding: 15px 0; border-bottom: 1px solid var(--border-on-navy);
    font-size: 0.9rem;
  }
  nav.primary .lang-switch { margin-top: 18px; width: 100%; }
  nav.primary .lang-switch button { flex: 1; }
  .cards, .plaincards { grid-template-columns: 1fr; }
  .creds .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { grid-template-columns: 1fr; text-align: center; }
  .foot-base > :first-child,
  .foot-base > :last-child,
  .foot-credit { justify-self: center; }
  .readings-head { align-items: flex-start; }
  .reading-switch { width: 100%; }
  .reading-switch button { flex: 1; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
