/* ============================================================
   MediationFirst.Pro — shared styles
   Black vertical toolbar · warm light content · gold accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500&display=swap');

:root {
  --bg:        #F7F4ED;   /* warm off-white content */
  --bg-alt:    #EFEADF;   /* slightly deeper warm panel */
  --bg-ink:    #15120E;   /* toolbar / dark sections */
  --bg-ink-2:  #1F1B15;   /* raised dark surface */
  --ink:       #1A1714;   /* primary text on light */
  --ink-soft:  #57504593; /* muted text on light */
  --ink-muted: #5A534A;
  --paper:     #FFFFFF;
  --cream:     #FBF9F4;

  --gold:      #C9A227;
  --gold-deep: #7A6312;   /* oval outline / hairlines */
  --gold-lite: #E4CB7A;
  --gold-soft: rgba(201,162,39,0.12);

  --line:      rgba(26,23,20,0.12);
  --line-dark: rgba(228,203,122,0.16);

  --sans: 'Montserrat', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --times: 'Times New Roman', Times, serif;

  --rail: 280px;
  --maxw: 1120px;

  --shadow-sm: 0 1px 2px rgba(26,23,20,.06), 0 4px 16px rgba(26,23,20,.05);
  --shadow-md: 0 8px 30px rgba(26,23,20,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .sans { font-family: var(--sans); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; }

/* Times italic emphasis used inside sans headings — family signature */
.em {
  font-family: var(--times);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: 1.5px solid var(--gold-deep);
  border-radius: 999px;
  color: #15120E;
  padding: 0.6em 24px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 10px rgba(122,99,18,.25);
}
.logo .l-sans  { font-family: var(--sans); font-weight: 600; font-size: 1em; letter-spacing: 0.01em; }
.logo .l-first { font-family: var(--times); font-style: italic; font-weight: 700; font-size: 1em; margin: 0 0.04em; display: inline-block; transform: translateY(-0.04em); }
.logo .l-pro   { font-family: var(--sans); font-weight: 500; font-size: 1em; }
.logo .l-dot   { font-family: var(--sans); font-weight: 500; }

/* ============================================================
   SIDEBAR  (the black vertical toolbar)
   ============================================================ */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  background: var(--bg-ink);
  color: #E9E3D6;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-dark);
  z-index: 50;
  overflow-y: auto;
}
.rail::-webkit-scrollbar { width: 0; }

.rail-logo {
  padding: 30px 26px 22px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line-dark);
}
.rail-logo .logo { font-size: 23px; }

.rail-nav { padding: 22px 18px 8px; display: flex; flex-direction: column; gap: 2px; }
.rail-nav a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #CFC8B8;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: background .18s, color .18s;
}
.rail-nav a .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0; transition: opacity .18s;
  flex: none;
}
.rail-nav a:hover { background: rgba(228,203,122,.07); color: #fff; }
.rail-nav a.active { background: rgba(228,203,122,.10); color: #fff; }
.rail-nav a.active .dot { opacity: 1; }

.rail-cta {
  margin: 16px 22px 6px;
}
.rail-spacer { flex: 1 1 auto; min-height: 18px; }

.rail-contact {
  padding: 0 26px 14px;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.rail-contact .phone {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: block;
}
.rail-contact .mail {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--gold-lite);
  text-decoration: none;
  display: block;
  margin-top: 5px;
}
.rail-contact .loc {
  font-family: var(--sans);
  font-size: 11.5px;
  color: #8E877A;
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-family {
  padding: 16px 26px 26px;
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,.18);
}
.rail-family .fam-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8E877A;
  margin-bottom: 12px;
}
.rail-family a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #C6BFB0;
  text-decoration: none;
  padding: 5px 0;
  transition: color .18s;
}
.rail-family a:hover { color: var(--gold-lite); }
.rail-family a::before {
  content: '';
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ============================================================
   CONTENT
   ============================================================ */
.main { margin-left: var(--rail); min-height: 100vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section.ink {
  background: var(--bg-ink);
  color: #E9E3D6;
}
.section.ink h1, .section.ink h2, .section.ink h3 { color: #fff; }
.divider { height: 1px; background: var(--line); }

/* eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before { content:''; width: 26px; height: 1.5px; background: var(--gold); }
.section.ink .eyebrow { color: var(--gold-lite); }

h1.display { font-size: clamp(40px, 5.2vw, 64px); font-weight: 800; }
h2.title   { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
h3.sub     { font-size: 22px; font-weight: 700; }
.lead {
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #15120E; border-color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-lite); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #322b22; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.section.ink .btn-ghost { color: #E9E3D6; border-color: var(--line-dark); }
.section.ink .btn-ghost:hover { border-color: var(--gold-lite); color: #fff; }
.btn .arr { font-size: 17px; line-height: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Floating booking widget (top-right, all pages) ---------- */
.book-widget {
  position: fixed;
  top: 22px;
  right: 30px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
}
.book-widget .bw-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: rgba(251,249,244,0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px 8px 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.book-widget .pulse {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1F9D63;
  flex: none;
}
.book-widget .pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(31,157,99,0.45);
  animation: bw-pulse 1.9s ease-out infinite;
}
@keyframes bw-pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}
.book-widget .bw-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: #15120E;
  background: var(--gold);
  border: 1.5px solid var(--gold-deep);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 16px rgba(122,99,18,.22);
  transition: transform .15s, background .18s;
}
.book-widget .bw-btn:hover { transform: translateY(-1px); background: var(--gold-lite); }
.book-widget .bw-btn .arr { font-size: 15px; line-height: 1; }

/* image slots & placeholders */
image-slot { display: block; width: 100%; }
.ph {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(26,23,20,.035) 0 12px, rgba(26,23,20,.06) 12px 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.ph .ph-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a8175;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 7px;
  text-align: center;
  max-width: 80%;
}

/* cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.card .num {
  font-family: var(--times);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  color: var(--gold-deep);
}

/* bullet list with gold diamond marker */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}

/* grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* pull-quote / statement block */
.statement {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(122,99,18,.35); }
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-card:hover .thumb img { transform: scale(1.035); }
.post-card .cat {
  position: absolute;
  top: 14px; left: 14px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #15120E;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 5px 11px;
  border-radius: 999px;
}
.post-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .p-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.post-card .p-excerpt { font-size: 17px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 20px; }
.post-card .p-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.post-card .p-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.post-card .p-more {
  margin-top: 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-card:hover .p-more .arr { transform: translateX(3px); }
.post-card .p-more .arr { transition: transform .2s; }

/* Featured post — full-width split */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(122,99,18,.35); }
.featured .f-img { position: relative; overflow: hidden; min-height: 340px; background: var(--bg-alt); }
.featured .f-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured:hover .f-img img { transform: scale(1.03); }
.featured .f-body { padding: 48px 50px; display: flex; flex-direction: column; justify-content: center; }
.featured .f-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 18px 0 16px;
  color: var(--ink);
}
.featured .f-excerpt { font-size: 19px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 24px; }
.featured .badge {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  padding: 5px 13px;
  border-radius: 999px;
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article-hero { position: relative; height: 460px; overflow: hidden; background: var(--bg-ink); }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,12,8,.30) 0%, rgba(15,12,8,.10) 40%, rgba(15,12,8,.82) 100%);
}
.article-hero .a-head {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 0 48px;
}
.article-hero .a-head .wrap { max-width: 820px; }
.article-hero .a-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #15120E;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
}
.article-hero h1 {
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.article-hero .a-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #E4DCC9;
}
.article-hero .a-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-lite); }

.article { max-width: 760px; margin: 0 auto; padding: 72px 56px 40px; }
.article .standfirst {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.article p { font-size: 19px; line-height: 1.72; color: var(--ink); margin: 0 0 1.3em; }
.article h2 {
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.article .pull {
  font-family: var(--times);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.35;
  color: var(--gold-deep);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 36px 0;
}
.article .a-list { margin: 0 0 1.3em; }
.byline { display: flex; align-items: center; gap: 16px; margin: 8px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.byline .b-name { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); }
.byline .b-role { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

.back-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link:hover { color: var(--ink); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .f-img { min-height: 240px; }
  .featured .f-body { padding: 36px 30px; }
  .article-hero { height: 360px; }
  .article { padding: 48px 28px 32px; }
}

/* credentials & training list */
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cred-list li:first-child { padding-top: 0; }
.cred-list li:last-child { border-bottom: 0; }
.cred-list .yr { font-family: var(--times); font-style: italic; font-weight: 700; font-size: 23px; color: var(--gold-deep); white-space: nowrap; }
.cred-list .ct { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cred-list .ct .sub { display: block; font-weight: 500; color: var(--ink-muted); font-size: 14px; margin-top: 3px; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.quote-card .qmark {
  font-family: var(--times);
  font-style: italic;
  font-weight: 700;
  font-size: 58px;
  color: var(--gold);
  line-height: 0.5;
  height: 30px;
  margin-bottom: 14px;
}
.quote-card p { font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0 0 20px; }
.quote-card .attr { margin-top: auto; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.quote-card .attr .role { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }

@media (max-width: 980px) {
  .quote-grid { grid-template-columns: 1fr; }
  .cred-list li { grid-template-columns: 92px 1fr; gap: 14px; }
}

/* FAQ accordion */
.faq-list { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .15s;
}
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qx { flex: none; width: 24px; height: 24px; position: relative; margin-top: 4px; }
.faq-item summary .qx::before, .faq-item summary .qx::after {
  content: ''; position: absolute; background: var(--gold-deep); transition: transform .25s ease;
}
.faq-item summary .qx::before { left: 0; top: 11px; width: 24px; height: 2px; }
.faq-item summary .qx::after { left: 11px; top: 0; width: 2px; height: 24px; }
.faq-item[open] summary .qx::after { transform: scaleY(0); }
.faq-item .ans { padding: 0 0 26px 44px; color: var(--ink-muted); font-size: 18px; line-height: 1.65; }
.faq-item .ans p { margin: 0 0 1em; }
.faq-item .ans p:last-child { margin: 0; }
@media (max-width: 980px) {
  .faq-item .ans { padding-left: 0; }
}

/* accessibility — skip link & focus */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top .15s;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  top: 14px;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

/* article reading progress */
.read-progress {
  position: fixed;
  top: 0; left: var(--rail); right: 0;
  height: 3px;
  background: rgba(26,23,20,.08);
  z-index: 70;
}
.read-progress .bar { height: 100%; width: 0; background: var(--gold); }
@media (max-width: 980px) { .read-progress { left: 0; } }

/* footer */
.foot {
  background: var(--bg-ink);
  color: #9A9286;
  padding: 40px 0;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}
.foot a { color: var(--gold-lite); text-decoration: none; }
.foot .disc { max-width: 70ch; line-height: 1.6; margin: 0 auto; }

/* ============================================================
   RESPONSIVE — toolbar collapses to top bar
   ============================================================ */
@media (max-width: 980px) {
  .rail {
    position: static;
    width: 100%;
    flex-direction: column;
    overflow: visible;
  }
  .rail-spacer { display: none; }
  .main { margin-left: 0; }
  .book-widget { display: none; }
  .wrap { padding: 0 28px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
