/* Revival Times Blog — chrome copied from the revivaltimes.com homepage; post layout adapted from the Grace and Truth (Richard Manus) blog */
  :root {
    --cream: #FEFFF9;
    --cream-dark: #F5F0E6;
    --brown: #6B4F1D;
    --brown-dark: #402100;
    --brown-deep: #2A1608;
    --gold: #C9A227;
    --gold-soft: #E8D48B;
    --ink: #1A1208;
    --muted: #5C4E3A;
    --link: #5A2A55;
    --white: #FFFFFF;
    --shadow: 0 8px 28px rgba(64, 33, 0, 0.12);
    --radius: 14px;
    --max: 1120px;
    --nav-h: 56px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream-dark);
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--link); }
  a:hover { color: var(--brown); }
  h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    color: var(--brown-deep);
    margin: 0 0 0.6em;
  }
  p { margin: 0 0 1em; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brown); color: var(--cream);
    padding: 0.75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 600;
  }
  .skip-link:focus { left: 0; }

  /* Sticky slim nav */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254, 255, 249, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 79, 29, 0.18);
  }
  .header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav-h);
  }
  .brand {
    display: flex; align-items: center; gap: 0.65rem;
    text-decoration: none; color: var(--brown-deep);
  }
  .brand-text strong { display: block; font-size: 0.98rem; font-family: Georgia, serif; }
  .brand-text span { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; }

  .nav-toggle {
    display: none;
    background: var(--cream);
    border: 1.5px solid var(--brown);
    color: var(--brown);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

  .primary-nav {
    display: flex; align-items: center; gap: 0.35rem;
  }
  .primary-nav a {
    text-decoration: none;
    color: var(--brown-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
  }
  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: var(--cream-dark);
    color: var(--brown);
  }
  .primary-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

  .nav-dropdown { position: relative; }
  .nav-dropdown > button {
    background: none; border: none; cursor: pointer;
    color: var(--brown-dark); font-weight: 600; font-size: 0.92rem;
    padding: 0.45rem 0.7rem; border-radius: 8px;
    font-family: inherit;
  }
  .nav-dropdown > button:hover,
  .nav-dropdown > button:focus-visible {
    background: var(--cream-dark); color: var(--brown);
  }
  .nav-dropdown > button:focus-visible { outline: 2px solid var(--gold); }
  .nav-dropdown-panel {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid rgba(107,79,29,0.2);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.4rem;
    z-index: 50;
  }
  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
  .nav-dropdown-panel a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    color: var(--brown-dark);
  }
  .nav-dropdown-panel a:hover { background: var(--cream-dark); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .btn-primary {
    background: var(--brown);
    color: var(--cream) !important;
    border-color: var(--brown);
  }
  .btn-primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); }
  .btn-secondary {
    background: transparent;
    color: var(--brown) !important;
    border-color: var(--brown);
  }
  .btn-secondary:hover { background: var(--brown); color: var(--cream) !important; }
  .btn-gold {
    background: linear-gradient(135deg, var(--gold), #A8861A);
    color: var(--brown-deep) !important;
    border-color: transparent;
  }
  .btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; }

  .donate-nav {
    background: var(--brown);
    color: var(--cream) !important;
    margin-left: 0.35rem;
  }
  .donate-nav:hover { background: var(--brown-dark) !important; color: var(--cream) !important; }

  /* Real header graphics masthead */
  .brand-masthead {
    background: #000;
    line-height: 0;
  }
  .brand-masthead img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 1400px;
  }
  footer {
    background: var(--brown-deep);
    color: rgba(254,255,249,0.85);
    padding: 2.5rem 1.25rem 2rem;
  }
  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
  footer h3 {
    color: var(--gold-soft);
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }
  footer a {
    color: rgba(254,255,249,0.9);
    text-decoration: none;
  }
  footer a:hover { color: var(--gold-soft); text-decoration: underline; }
  .footer-links {
    list-style: none; padding: 0; margin: 0;
  }
  .footer-links li { margin-bottom: 0.45rem; }
  .footer-bottom {
    max-width: var(--max);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(254,255,249,0.15);
    font-size: 0.85rem;
    color: rgba(254,255,249,0.65);
  }

  /* Mobile */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 2rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
      display: none;
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: var(--cream);
      flex-direction: column;
      align-items: stretch;
      padding: 0.75rem 1rem 1rem;
      border-bottom: 1px solid rgba(107,79,29,0.18);
      box-shadow: var(--shadow);
      gap: 0.15rem;
    }
    .primary-nav.is-open { display: flex; }
    .nav-dropdown-panel {
      position: static;
      box-shadow: none;
      border: none;
      background: var(--cream-dark);
      margin: 0.25rem 0 0.5rem;
    }
    .donate-nav { margin-left: 0; text-align: center; }
    .grid-3, .grid-2, .grid-4, .footer-inner { grid-template-columns: 1fr; }
    .cta-strip { flex-direction: column; align-items: flex-start; }
  }
:root {
  --paper: #F5F0E6;
  --paper-2: #EDE3CF;
  --ink-soft: #3D3020;
  --accent: #8A6514;
  --gold-line: #E2D3AD;
  --header: #2A1608;
  --header-ink: #FEFFF9;
  --link-hover: #6B4F1D;
  --card: #FEFFF9;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --measure: 42rem;
}
.posts {
  padding: 2.75rem 0 4rem;
}

.posts h2,
.post-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 1.25rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.posts {
  container-type: inline-size;
  container-name: postcards;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 0 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.post-card:hover { border-color: var(--accent); }

.post-card img,
.post-card .card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background: #1a1612;
}

/* Stack the 16:9 graphic above the text when the card column is narrow
   (phones and tablet portrait with the Quick Links sidebar). */
@container postcards (max-width: 40rem) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.card-body { padding: 1.35rem 1.5rem 1.5rem; }

.meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.post-card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.article-hero { padding: 2rem 0 0; }

.article-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.scripture-kicker {
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  font-weight: 600;
}

.header-image {
  margin: 1.5rem 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-line);
}

.header-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center center; display: block; background: #1a1612; }

.header-image figcaption {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.7rem 1rem 0.9rem;
  background: var(--card);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.25rem;
}

.caption-text {
  flex: 1 1 16rem;
}

.share-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15rem;
  margin-left: auto;
  color: var(--muted);
}

.share-caption-label { margin-right: 0.35rem; }

.share-caption .share-item {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.share-caption a,
.share-caption button {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: inherit;
}

.share-caption a:hover,
.share-caption button:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.share-caption .share-sep {
  color: var(--muted);
  font-weight: 400;
  margin: 0 0.28rem;
}

.share-caption .share-copied {
  margin: 0 0 0 0.45rem;
  font-size: inherit;
}

@media (max-width: 719px) {
  .share-caption {
    margin-left: 0;
    flex: 1 1 100%;
  }
}

.post-body {
  max-width: var(--measure);
  padding-bottom: 3.5rem;
}

.post-body p { margin: 0 0 1.15rem; }

.post-body h2 {
  font-size: 1.85rem;
  margin: 2.4rem 0 0.85rem;
  line-height: 1.2;
}

blockquote {
  margin: 1.4rem 0 1.5rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 1.12rem;
}

blockquote p { margin: 0 0 0.55rem; }
blockquote p:last-child { margin-bottom: 0; }

blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.55rem;
}

.note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.75rem;
}

.video-block {
  margin: 2.25rem 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.35rem;
}

.video-block h2 { margin-top: 0; font-size: 1.6rem; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.8rem 0 1rem;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--header);
  color: var(--header-ink);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
}

.button:hover { color: #fff; background: #000; }








@media (max-width: 800px) {
  .post-card { grid-template-columns: 1fr; }
}





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

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-line);
}

.post-nav a {
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  display: block;
}

.post-nav a:hover { border-color: var(--accent); color: inherit; }

.post-nav .dir {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

.post-nav .nav-title {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
}

.post-nav .next { text-align: right; grid-column: 2; }
.post-nav .prev { grid-column: 1; }

@media (max-width: 760px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; grid-column: 1; }
}

/* Post layout: article + sticky sidebar (audio and scriptures) */
.post-with-sidebar {
  /* layout v=8: two columns from 720px up; audio is its own area on small screens */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "note stack"
    "body stack";
  justify-content: stretch;
  align-items: start;
  column-gap: clamp(1rem, 2vw, 2.25rem);
  row-gap: 0;
  padding-bottom: 3.5rem;
}

.post-with-sidebar > .note {
  grid-area: note;
}

.post-with-sidebar > .post-body {
  grid-area: body;
  max-width: none;
  padding-bottom: 0;
}

/* Desktop/tablet: one sticky right column (audio + scriptures + share + quick links).
   On small screens, display:contents lets audio and the remaining sidebar
   become separate grid items so the player can sit above the article. */
.sidebar-stack {
  grid-area: stack;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding-bottom: 0.5rem;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.audio-card,
.scripture-card {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
}

.audio-card h2,
.scripture-card h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.audio-meta {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.audio-card audio {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: 0 0 0.7rem;
  accent-color: var(--accent);
}

.audio-download {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
}

.audio-download a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
}

.audio-download a:hover { border-bottom-color: var(--accent); }

.scripture-card ol {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  counter-reset: scripture;
}

.scripture-card li {
  margin: 0;
  padding: 0.38rem 0;
  border-top: 1px solid rgba(216, 199, 160, 0.55);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.35;
}

.scripture-card li:first-child { border-top: 0; padding-top: 0.15rem; }

.scripture-card a {
  color: var(--link);
  text-decoration: none;
}

.scripture-card a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

@media (max-width: 719px) {
  .post-with-sidebar {
    /* Mobile stacked order: note, audio, article, then scriptures/share/quick links */
    grid-template-columns: 1fr;
    grid-template-areas:
      "note"
      "audio"
      "body"
      "sidebar";
    row-gap: 1.15rem;
    padding-bottom: 2.5rem;
  }

  .sidebar-stack {
    display: contents;
  }

  .post-with-sidebar > .note {
    grid-area: note;
    margin-bottom: 0;
  }
  .sidebar-stack > .audio-card { grid-area: audio; }
  .post-with-sidebar > .post-body { grid-area: body; }
  .post-sidebar {
    grid-area: sidebar;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Share this message */
.share-card,
.share-row {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
}

.share-card h2,
.share-row h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.share-native {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--header);
  color: var(--header-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  margin: 0 0 0.85rem;
}

.share-native:hover { background: #000; color: #fff; }

.share-native[hidden] { display: none; }

.share-fallback {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-fallback a,
.share-fallback button {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--link);
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}

.share-fallback a:hover,
.share-fallback button:hover {
  border-color: var(--accent);
  color: var(--link-hover);
}

.share-copied {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.55rem 0 0;
}

.share-copied[hidden] { display: none; }

.share-row {
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.share-row h2 { margin: 0; }

.share-row .share-native {
  width: auto;
  margin: 0;
  padding: 0.5rem 1rem;
}

.share-row .share-copied { margin: 0; }

/* Quick Links */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding: 2.75rem 0 4rem;
}

.home-layout .posts {
  padding: 0;
}

.quick-links {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 1rem 1.05rem 1.1rem;
}

.quick-links h2,
.home-layout .quick-links h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.quick-links ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ql;
}

.quick-links li {
  counter-increment: ql;
  border-top: 1px solid var(--gold-line);
}

.quick-links li:first-child { border-top: 0; }

.quick-links a,
.quick-links .is-current {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  column-gap: 0.4rem;
  padding: 0.42rem 0.25rem 0.45rem 0.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}

.quick-links a::before,
.quick-links .is-current::before {
  content: counter(ql) ".";
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.45;
  padding-top: 0.12rem;
}

.quick-links a:hover { background: var(--paper); }

.ql-title {
  display: block;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.quick-links a:hover .ql-title { color: var(--link-hover); }

.ql-date {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.12rem;
  white-space: nowrap;
}

.quick-links .is-current {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 0.4rem;
}

.quick-links .is-current .ql-title { color: var(--link); }

.post-sidebar .quick-links {
  margin-top: 0;
}

@media (min-width: 720px) {
  .home-layout .quick-links {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 719px) {
  .home-layout {
    grid-template-columns: 1fr;
    padding-top: 1.75rem;
  }

  .home-layout .quick-links { order: -1; }
}


.scripture-card li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
}

.study-jump {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
}

.study-jump:hover,
.study-jump:focus-visible {
  color: var(--link-hover);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.post-body p[id^="s-"],
.post-body .study-anchor {
  scroll-margin-top: 1.5rem;
}

.post-body p:target,
.post-body p:has(.study-anchor:target) {
  background-color: rgba(184, 146, 58, 0.32);
  border-radius: 4px;
}

.post-body p.is-study-target {
  animation: study-highlight 2.7s ease;
  border-radius: 4px;
}

@keyframes study-highlight {
  0% { background-color: rgba(184, 146, 58, 0.40); }
  65% { background-color: rgba(184, 146, 58, 0.16); }
  100% { background-color: transparent; }
}

/* ---- Blog-specific ---- */
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.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; }
.primary-nav a[aria-current="page"] { background: var(--cream-dark); color: var(--brown); }
.blog-hero {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,162,39,0.22), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-bottom: 1px solid rgba(107,79,29,0.12);
}
.blog-hero .wrap { padding: 2.2rem 0 2rem; }
.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.blog-hero .lede { font-size: 1.1rem; color: var(--muted); max-width: 42rem; margin: 0 0 1rem; }
.blog-hero .hero-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:0; }
.post-body { font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.post-body h2 { font-family: var(--display); color: var(--brown-deep); }
.post-card h3, .posts h2, .article-hero h1, .post-nav .nav-title { color: var(--brown-deep); font-weight: 700; }
.post-card h3 { font-size: 1.45rem; }
.article-hero h1 { max-width: 24ch; font-size: clamp(1.9rem, 4.6vw, 2.9rem); letter-spacing: -0.01em; }
.tmm-badge { display:inline-block; font-family: var(--sans); font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--brown); background: rgba(201,162,39,0.25); padding:.25rem .65rem; border-radius:999px; margin-right:.4rem; }
.draft-flag { display:inline-block; font-family: var(--sans); font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#7a2a12; background:#f6dccf; padding:.2rem .55rem; border-radius:999px; }
.button { background: var(--brown); color: var(--cream); }
.button:hover { background: var(--brown-dark); color: var(--cream); }
.subscribe-card { background: var(--card); border:1px solid var(--gold-line); border-radius:12px; padding:1rem 1.05rem 1.1rem; margin-top:1.15rem; font-family: var(--sans); font-size:.9rem; }
.subscribe-card h2 { font-family: var(--sans); font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--accent); margin:0 0 .6rem; }
.subscribe-card ul { list-style:none; margin:0; padding:0; }
.subscribe-card li { padding:.3rem 0; border-top:1px solid var(--gold-line); }
.subscribe-card li:first-child { border-top:0; }
.subscribe-card a { text-decoration:none; font-weight:600; }
.home-aside { display:flex; flex-direction:column; gap:0; }
@media (min-width: 720px) { .home-aside { position: sticky; top: calc(var(--nav-h) + 1rem); } .home-layout .quick-links { position: static; } }
@media (max-width: 719px) { .home-layout .home-aside { order: -1; } }
.sidebar-stack { top: calc(var(--nav-h) + 1rem); max-height: calc(100vh - var(--nav-h) - 2rem); }
.post-body p[id^="s-"] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
  .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brown);
    background: rgba(201,162,39,0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
  }
.article-hero h1 { max-width: 32ch; }

/* Quick Links v2 (2026-11-25): the list scrolls inside its own box so all posts are reachable
   without scrolling to the end of the page; the sidebars are capped to the viewport. */
.quick-links ol {
  max-height: min(26rem, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
  padding-right: 0.2rem;
  margin-right: -0.2rem;
}
.post-sidebar .quick-links ol,
.sidebar-stack .quick-links ol { max-height: min(22rem, 48vh); }
.quick-links .ql-hint {
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted); margin: 0.55rem 0 0;
}
@media (min-width: 720px) {
  .home-aside { max-height: calc(100vh - var(--nav-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 719px) {
  .quick-links ol, .post-sidebar .quick-links ol { max-height: min(24rem, 60vh); }
}

/* View counter (2026-11-25) */
.view-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.view-count[hidden], .view-sep[hidden] { display: none; }

/* Scriptures Used (2026-11-25): title link, in-text anchors, list jump links */
.see-scriptures { margin: .55rem 0 0; font-family: var(--sans); font-size: .9rem; }
.see-scriptures a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--gold-line, rgba(184,146,58,.5)); padding-bottom: 1px; }
.see-scriptures a::before { content: "\1F4D6"; font-size: .95em; }
.see-scriptures a:hover, .see-scriptures a:focus-visible { color: var(--brown-deep); border-bottom-color: var(--brown); }
.see-scriptures .see-count { color: var(--muted); font-weight: 500; }
#scriptures, #scriptures-heading { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.scripture-card.is-card-target { animation: card-flash 2.2s ease; }
@keyframes card-flash { 0% { box-shadow: 0 0 0 4px rgba(201,162,39,.55); } 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); } }
.scr-jumps { margin-left: auto; display: inline-flex; gap: .7rem; white-space: nowrap; }
.scr-jumps .study-jump { margin-left: 0; }
.text-jump { color: var(--brown); }
.post-body .scr-ref { scroll-margin-top: calc(var(--nav-h) + 2rem); border-radius: 3px; }
.post-body .scr-ref:target { background-color: rgba(201,162,39,.30); }
.post-body .scr-ref.is-phrase-target { animation: phrase-flash 3.2s ease; }
@keyframes phrase-flash { 0%, 30% { background-color: rgba(201,162,39,.65); box-shadow: 0 0 0 2px rgba(201,162,39,.65); } 100% { background-color: rgba(201,162,39,.18); box-shadow: 0 0 0 0 transparent; } }
.post-body a.inline-ref { color: var(--brown); text-decoration: underline; text-decoration-color: rgba(184,146,58,.7); text-underline-offset: 2px; font-family: var(--sans); font-size: .9em; }
.post-body a.inline-ref:hover { color: var(--brown-deep); text-decoration-color: var(--brown); }
