/* IASPatrika - heraldic gazette for UPSC aspirants.
   Voice system: Space Grotesk = the gazette's official/navigational voice
   (wordmark, kickers, headlines, labels); Georgia serif = the reading voice
   (briefs and article bodies). Palette derives from the Parmar crest:
   gold leaf, saffron flame, oxblood banners, engraving-brown ink on parchment. */

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("vendor/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("vendor/fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("vendor/fonts/tiro-deva-400.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("vendor/fonts/playfair-700.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 900;
  font-display: swap; src: url("vendor/fonts/playfair-900.woff2") format("woff2");
}

:root {
  --parchment: #F3E9D4;
  --parchment-2: #ECDFC3;
  --card: #FBF5E7;
  --oxblood: #5C1013;
  --oxblood-deep: #3C0A0C;
  --ink: #2A1E12;
  --ink-soft: #715C40;
  --ink-faint: #9A855F;
  --gold: #A9791A;
  --gold-bright: #D8AB44;
  --red: #9E1B1B;
  --saffron: #D2650A;
  --line: #D8C7A2;
  --line-soft: #E4D8BC;
  --grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --masthead: "Playfair Display", Georgia, "Times New Roman", serif;
  --deva: "Tiro Devanagari Hindi", var(--serif);
  --wrap: 640px;
  --shadow: 0 1px 0 rgba(42, 30, 18, 0.04), 0 10px 24px -18px rgba(60, 16, 12, 0.5);
}

[x-cloak] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(169, 121, 26, 0.10), transparent 60%),
    var(--parchment);
  color: var(--ink);
  font-family: var(--grotesk);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
b { font-weight: 700; }

/* ---------- Top loading bar (indeterminate) ---------- */
.loadbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  overflow: hidden; pointer-events: none; background: rgba(169, 121, 26, 0.16);
}
.loadbar::before {
  content: ""; position: absolute; top: 0; height: 100%; width: 42%; left: -42%;
  background: linear-gradient(90deg, transparent, var(--gold),
    var(--saffron), var(--gold-bright), transparent);
  box-shadow: 0 0 8px rgba(216, 171, 68, 0.7);
  animation: loadslide 1.05s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loadslide {
  0% { left: -42%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .loadbar::before { animation-duration: 1.8s; }
}

/* ---------- Newspaper masthead (scrolls away) ---------- */
.nameplate {
  background: var(--parchment);
  text-align: center;
  padding: 14px 16px 16px;
  max-width: var(--wrap); margin: 0 auto;
}
.dateline {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--grotesk); font-weight: 700; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--red);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 5px 2px; margin-bottom: 12px;
}
.dl-nav { display: inline-flex; align-items: center; gap: 7px; }
.dl-nav a { color: var(--ink); text-decoration: none; }
.dl-nav a:hover { color: var(--red); }
.dl-nav .sep { color: var(--ink-faint); }
/* Keep the thin dateline strip uncrowded on small phones. */
@media (max-width: 480px) { .dl-est { display: none; } }
.masthead-mark {
  display: block; margin: 6px auto 8px; width: 48px; height: 48px;
}
.wordmark {
  font-family: var(--masthead); font-weight: 900; margin: 0;
  font-size: clamp(2.6rem, 15vw, 4.4rem); line-height: 0.9;
  letter-spacing: -0.01em; color: var(--ink);
}
.wordmark .wm-ias { color: var(--red); }
.deva {
  font-family: var(--deva); color: var(--gold);
  letter-spacing: 0.22em; font-size: 0.92rem; margin: 6px 0 0;
}
.edition {
  font-family: var(--grotesk); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.62rem; color: var(--ink-soft);
  margin: 10px auto 0; max-width: 32ch; line-height: 1.7;
  border-top: 1px solid var(--line); padding-top: 9px;
}

/* ---------- Sticky command deck ---------- */
.deck {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 233, 212, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px -16px rgba(60, 16, 12, 0.6);
}
/* Three tracks, not absolute positioning: once the install control carried a
   word instead of a lone glyph it was wide enough to sit on top of the centred
   Feed/Scroll toggle. A track of its own keeps the toggle centred and lets the
   pill claim the space it actually needs. */
.deck-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px; max-width: var(--wrap); margin: 0 auto; padding: 8px 14px 6px;
}
.deck-bar .viewtoggle { grid-column: 2; margin: 0; }
.deck-bar .install { grid-column: 3; justify-self: end; margin: 0; }
.deck-brand {
  display: flex; align-items: center; gap: 7px; flex: 0 0 auto;
  font-family: var(--masthead); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0; color: var(--ink);
}
.deck-brand .b-ias { color: var(--red); font-weight: 900; }
.np-mark { height: 24px; width: auto; }

/* Feed / Scroll toggle: the core reading-mode control */
.viewtoggle {
  display: inline-flex; margin: 0 auto; flex: 0 0 auto;
  border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden;
  background: var(--card);
}
.viewtoggle button {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--grotesk); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.02em; color: var(--ink-soft); padding: 6px 13px;
}
.viewtoggle button + button { border-left: 1.5px solid var(--ink); }
.viewtoggle button.on { background: var(--ink); color: var(--parchment); }
.viewtoggle button svg { opacity: 0.85; }
.viewtoggle.small button { padding: 6px 12px; font-size: 0.78rem; }
.install {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto; background: var(--oxblood); color: var(--gold-bright); border: 0;
  padding: 7px 13px; border-radius: 5px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gold);
  font-family: var(--grotesk); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.install:hover { background: var(--oxblood-deep); }
/* On a phone the word is the part that has to survive, so the glyph is what goes. */
@media (max-width: 430px) {
  .install svg { display: none; }
  .install { padding: 7px 11px; font-size: 0.75rem; }
}

/* Signature foil: reading progress through the day's paper */
.foil {
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--parchment-2), var(--line-soft));
}
.foil-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright) 60%, var(--saffron));
  box-shadow: 0 0 8px rgba(216, 171, 68, 0.7);
  transition: width 0.12s linear;
}

/* Filters */
.filters { max-width: var(--wrap); margin: 0 auto; padding: 8px 14px 9px; }
.filter-line { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: var(--card);
}
.seg button {
  border: 0; background: transparent; color: var(--ink-soft);
  font-family: var(--grotesk); font-weight: 500; font-size: 0.78rem;
  padding: 7px 12px; cursor: pointer;
}
.seg button.on { background: var(--oxblood); color: #F4E3C1; font-weight: 700; }
.pick, .search {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 4px; padding: 7px 9px; font-family: var(--grotesk);
  font-size: 0.78rem;
}
.search { flex: 1; min-width: 130px; }
.pick:focus, .search:focus, .seg button:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--saffron); outline-offset: 1px;
}
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 999px; padding: 5px 12px;
  font-family: var(--grotesk); font-weight: 500; font-size: 0.74rem;
  white-space: nowrap; cursor: pointer;
}
.chip.on {
  background: var(--gold); border-color: var(--gold); color: #2A1400;
  font-weight: 700;
}

/* New-briefs pill */
.newpill {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center; gap: 7px;
  background: var(--oxblood); color: #F6E4C2; border: 1px solid var(--gold);
  font-family: var(--grotesk); font-weight: 500; font-size: 0.8rem;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(60, 16, 12, 0.7);
}
.newpill b { font-weight: 700; color: var(--gold-bright); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--saffron);
  box-shadow: 0 0 0 0 rgba(210, 101, 10, 0.6); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210, 101, 10, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(210, 101, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 101, 10, 0); }
}

/* ---------- Feed of gazette entries ---------- */
.feed { max-width: var(--wrap); margin: 0 auto; padding: 6px 14px 40px; }
.entry {
  background: var(--card); border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
  border-radius: 2px 2px 8px 8px; padding: 15px 16px 13px; margin-top: 13px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.entry:hover { transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(42,30,18,0.04), 0 16px 30px -18px rgba(60,16,12,0.55); }
.entry:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.kicker {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--grotesk); font-weight: 500; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-faint);
  margin-bottom: 8px;
}
.kicker .src { color: var(--saffron); font-weight: 700; }
.dot-sep { color: var(--line); }
.seal {
  margin-left: auto; font-family: var(--grotesk); font-weight: 700;
  font-size: 0.64rem; letter-spacing: 0.06em; color: var(--red);
  border: 1px solid rgba(158, 27, 27, 0.4); border-radius: 3px;
  padding: 2px 6px; background: rgba(158, 27, 27, 0.06);
}
.seal + .seal { margin-left: 5px; }
.headline {
  font-family: var(--grotesk); font-weight: 700; letter-spacing: -0.015em;
  font-size: 1.16rem; line-height: 1.28; margin: 0 0 8px; color: var(--ink);
}
.brief {
  font-family: var(--serif); font-size: 0.98rem; line-height: 1.6;
  color: #3D2E1D; margin: 0 0 12px;
}
.entry-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--grotesk); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.04em; color: #86611A;
  background: rgba(169, 121, 26, 0.13); border-radius: 3px; padding: 3px 7px;
}
.tag.prelim { color: #1E5A46; background: rgba(30, 90, 70, 0.12); }
.readcta {
  flex: 0 0 auto; font-family: var(--grotesk); font-weight: 700;
  font-size: 0.78rem; color: var(--red); display: inline-flex; gap: 5px;
}
.empty, .feed-end {
  text-align: center; color: var(--ink-faint); font-family: var(--grotesk);
  font-size: 0.86rem; padding: 40px 10px;
}
.feed-end {
  padding: 26px 10px 8px; font-style: normal; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.14em;
}
#sentinel { height: 4px; }

/* ---------- Scroll mode (Inshorts-style, full screen) ---------- */
.scroll {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  background: var(--parchment);
}
.scroll-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 2px solid var(--ink);
  background: var(--parchment); flex-wrap: wrap;
}
.scroll-bar .deck-brand { font-size: 0.98rem; }
.scroll-bar .viewtoggle { margin: 0; }
.seg.tiny { margin-left: auto; }
.seg.tiny button { padding: 5px 9px; font-size: 0.72rem; }

.scroll-track {
  flex: 1 1 auto; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar { display: none; }

.snap {
  height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; cursor: pointer;
  position: relative; padding: 12px 12px 16px; gap: 0;
  width: 100%; max-width: 620px; margin-inline: auto;
}
.snap-img {
  flex: 0 0 42%; position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--parchment-2);
}
.snap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap-img.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(60,16,12,0.05) 0 12px, transparent 12px 24px),
    var(--parchment-2);
  display: flex; align-items: center; justify-content: center;
}
.snap-imgtag {
  font-family: var(--masthead); font-weight: 900; font-size: 1.6rem;
  color: var(--red); opacity: 0.55; text-align: center; padding: 0 20px;
}
.snap-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(36,24,16,0.72); color: var(--parchment);
  font-family: var(--grotesk); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px;
}
.snap-count b { color: var(--gold-bright); font-weight: 700; }
.snap-body {
  flex: 1 1 auto; display: flex; flex-direction: column;
  padding: 14px 4px 0; min-height: 0;
}
.snap-text {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
  min-height: 0; padding: 6px 0;
}
.snap-head {
  font-family: var(--masthead); font-weight: 700; color: var(--ink);
  font-size: clamp(1.3rem, 5.4vw, 1.7rem); line-height: 1.2;
  margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.snap-sum {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.62;
  color: #3D2E1D; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
  overflow: hidden;
}
.snap-foot {
  flex: 0 0 auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line);
}
.snap-read {
  flex: 0 0 auto; font-family: var(--grotesk); font-weight: 700;
  font-size: 0.86rem; color: var(--red); display: inline-flex; gap: 5px;
}
.swipe-hint {
  flex: 0 0 auto; margin-top: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  font-family: var(--grotesk); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); pointer-events: none;
}
.swipe-hint svg { color: var(--gold); animation: floaty 1.6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}
#scroll-sentinel { height: 1px; }

/* ---------- Reader ---------- */
.reader {
  position: fixed; inset: 0; z-index: 60; background: var(--parchment);
  overflow: hidden;
}
.reader-scroll { position: absolute; inset: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; }
.reader-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(243, 233, 212, 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 9px 14px;
  max-width: var(--wrap); margin: 0 auto;
}
.back {
  border: 1px solid var(--line); background: var(--card); color: var(--oxblood);
  border-radius: 4px; padding: 7px 13px; cursor: pointer;
  font-family: var(--grotesk); font-weight: 700; font-size: 0.8rem;
}
.at { align-self: center; color: var(--red); font-weight: 700;
  font-family: var(--grotesk); font-size: 0.8rem; text-decoration: none; }
.reader-col { max-width: var(--wrap); margin: 0 auto; padding: 16px 20px 90px; }
.reader-title {
  font-family: var(--grotesk); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.18; margin: 8px 0 12px;
}
.reader-img { width: 100%; border-radius: 6px; margin: 14px 0 6px;
  border: 1px solid var(--line); }
.reader-p {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.8;
  margin: 0 0 1.15em; color: #34281A;
}
.reader-p:first-of-type::first-letter {
  font-family: var(--grotesk); font-weight: 700; float: left;
  font-size: 3.1rem; line-height: 0.82; padding: 4px 10px 0 0; color: var(--oxblood);
}
.reader-loading { display: flex; gap: 7px; padding: 20px 0; }
.reader-loading span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  animation: bob 1s infinite ease-in-out both;
}
.reader-loading span:nth-child(2) { animation-delay: 0.15s; }
.reader-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.attrib {
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px;
  font-family: var(--grotesk); font-size: 0.86rem; color: var(--ink-soft);
}
.attrib a { color: var(--red); font-weight: 700; }

/* ---------- Install sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 70; background: rgba(42, 30, 18, 0.5);
  display: flex; align-items: flex-end;
}
.sheet-card {
  background: var(--parchment); width: 100%; border-radius: 18px 18px 0 0;
  padding: 12px 22px 30px; border-top: 2px solid var(--gold);
  max-width: var(--wrap); margin: 0 auto;
}
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line);
  margin: 0 auto 14px; }
.sheet-card h3 { font-family: var(--grotesk); font-weight: 700; margin: 0 0 12px;
  color: var(--oxblood); }
.sheet-card ol { margin: 0 0 18px; padding-left: 20px; line-height: 2;
  font-family: var(--serif); font-size: 1rem; }
.sheet-alt {
  margin: 0 0 16px; font-family: var(--grotesk); font-size: 0.82rem;
  color: var(--ink-soft);
}
.sheet-alt a { color: var(--red); font-weight: 700; }
.sheet-done {
  width: 100%; background: var(--oxblood); color: #F6E4C2; border: 0;
  box-shadow: inset 0 0 0 1px var(--gold); border-radius: 5px; padding: 12px;
  font-family: var(--grotesk); font-weight: 700; font-size: 0.9rem; cursor: pointer;
}

/* ---------- Colophon ---------- */
.colophon {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 18px 90px;
  text-align: center; border-top: 1px solid var(--line);
}
.colophon .motto.sm { color: var(--gold); font-size: 1rem; margin: 0 0 8px; }
.colophon .about {
  font-family: var(--grotesk); font-size: 0.76rem; color: var(--ink-faint);
  line-height: 1.6; margin: 0;
}
.colophon-links {
  margin: 12px 0 0; font-family: var(--grotesk); font-size: 0.8rem;
}
.colophon-links a { color: var(--ink-soft); text-decoration: none; }
.colophon-links a:hover { color: var(--red); }
.colophon-links .sep { color: var(--line); margin: 0 7px; }

/* ---------- Legal pages (terms, privacy) ---------- */
.lg-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 760px; margin: 0 auto; padding: 16px 20px;
  border-bottom: 2px solid var(--ink);
}
.lg-brand {
  font-family: var(--masthead); font-weight: 900; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.lg-brand .wm-ias { color: var(--red); }
.lg-back {
  font-family: var(--grotesk); font-weight: 500; font-size: 0.82rem;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.lg-back:hover { color: var(--red); }
.lg { max-width: 680px; margin: 0 auto; padding: 34px 20px 56px; }
.lg-kicker {
  font-family: var(--grotesk); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px;
}
.lg-title {
  font-family: var(--masthead); font-weight: 900; line-height: 1.05;
  font-size: clamp(2rem, 7vw, 2.8rem); color: var(--ink); margin: 0 0 12px;
}
.lg-updated {
  font-family: var(--grotesk); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.lg h2 {
  font-family: var(--masthead); font-weight: 700; font-size: 1.38rem;
  color: var(--ink); margin: 32px 0 10px;
}
.lg p, .lg li {
  font-family: var(--serif); font-size: 1.04rem; line-height: 1.68; color: #34271A;
}
.lg p { margin: 0 0 14px; }
.lg ul { margin: 0 0 14px; padding-left: 20px; }
.lg li { margin-bottom: 8px; }
.lg a { color: var(--red); font-weight: 600; }
.lg-callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 16px 18px; margin: 18px 0 22px; box-shadow: var(--shadow);
}
.lg-callout p:last-child { margin-bottom: 0; }
.lg-foot {
  max-width: 680px; margin: 0 auto; padding: 22px 20px 60px;
  border-top: 1px solid var(--line);
  font-family: var(--grotesk); font-size: 0.8rem; color: var(--ink-faint);
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.lg-foot a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.lg-foot a:hover { color: var(--red); }
.lg-foot .sep { color: var(--line); }

@media (min-width: 700px) {
  .nameplate { padding: 30px 16px 28px; }
  .crest-lg { height: 92px; }
  .entry { padding: 18px 20px 15px; }
  .headline { font-size: 1.26rem; }
  /* Scroll bar: match the feed deck's centered toggle on wide screens. */
  .scroll-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .scroll-bar .deck-brand { justify-self: start; }
  .scroll-bar .viewtoggle { justify-self: center; }
  .scroll-bar .seg.tiny { justify-self: end; margin: 0; }
  /* Keep the snap image from dominating a tall desktop card. */
  .snap-img { max-height: 340px; }
}

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