/* ==========================================================================
   Naam Jaap — Shared site theme  ·  "temple at dusk" (premium)
   Single source of truth for colour, type and components.
   Include with: <link rel="stylesheet" href="/assets/css/theme.css">
   Fonts + palette deliberately match the Panchang app.
   ========================================================================== */

/* Self-hosted fonts (variable woff2, latin) — no render-blocking external @import. */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/fraunces-400.woff2') format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/mulish-400.woff2') format('woff2');}

/* ------------------------------ Tokens ---------------------------------- */
:root {
  /* Maroon */
  --maroon-1: #2E0F1D;
  --maroon-2: #4D1A2B;
  --maroon-3: #632434;
  --maroon:   #2E0F1D;            /* alias */

  /* Gold / saffron */
  --gold:        #D9A441;
  --gold-soft:   #F0CD8A;
  --gold-line:   rgba(217,164,65,0.55);
  --saffron:     #E2701F;
  --saffron-deep:#B5560F;
  --gold-deep:   #B5560F;         /* alias */
  --gold-light:  #F0CD8A;         /* alias */
  --saffron-dark:#B5560F;         /* alias */

  /* Surfaces */
  --bg:        #F5EDDD;
  --bg-deep:   #EFE4CF;
  --card:      #FFFDF8;
  --card-soft: #FBF5E9;
  --cream:     #FFF6E8;
  --parchment: #F5EDDD;           /* alias */
  --surface:   #FFFDF8;           /* alias */
  --background: #F5EDDD;          /* alias */

  /* Ink */
  --ink:       #32251C;
  --muted:     #82705C;
  --text-dark: #32251C;           /* alias */
  --text-soft: #5A4A3B;           /* alias */
  --secondary: #82705C;           /* alias */
  --primary:   #632434;           /* alias */

  /* Lines & shadow */
  --border:        rgba(101,66,32,0.14);
  --border-strong: rgba(101,66,32,0.22);
  --line:          rgba(101,66,32,0.14);   /* alias */
  --shadow:    0 10px 30px rgba(72,40,18,0.10);
  --shadow-lg: 0 22px 50px rgba(72,40,18,0.18);

  /* Shape & type */
  --radius:    18px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1160px;
}

/* ------------------------------ Base ------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% -5%, rgba(226,112,31,0.06), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(217,164,65,0.09), transparent 26%),
    linear-gradient(180deg, #F8F1E2 0%, var(--bg) 46%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* iOS Safari repaints a fixed background on every scroll frame and shifts it
   as the address bar hides/shows — this makes the hero and the overlapping
   panchang card judder against each other. The body gradient is subtle, so
   we let it scroll normally on touch devices, where `fixed` only causes jank. */
@media (hover: none) and (pointer: coarse) {
  body { background-attachment: scroll; }
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; color: var(--maroon-1); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------------------- Layout helpers ---------------------------- */
.wrap, .container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section { padding: clamp(34px, 4.5vw, 58px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--saffron-deep); margin-bottom: .9rem;
}
.eyebrow::before { content: "\2726"; font-size: .8em; color: var(--gold); }

.gold-rule { display: block; width: 42px; height: 2px; border: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--saffron)); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: .7rem; font-size: 1.03rem; }
.section-head .gold-rule { margin: 1.1rem auto 0; }

/* ------------------------------ Top bar --------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 1.15rem clamp(18px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 11px; }
.brand span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: .01em; color: var(--maroon-1); }
.navlinks { display: flex; gap: 1.6rem; font-size: .93rem; font-weight: 700; }
.navlinks a { color: var(--muted); text-decoration: none; transition: color .2s; }
.navlinks a:hover { color: var(--saffron-deep); }

/* ------------------------------ Buttons --------------------------------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.cta.primary {
  background: linear-gradient(135deg, #F6A04B, var(--saffron) 55%, var(--saffron-deep));
  color: #FFF8EC; box-shadow: 0 10px 24px rgba(181,86,15,0.34);
}
.cta.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(181,86,15,0.42); filter: brightness(1.05); }
.cta.ghost { background: var(--card); color: var(--saffron-deep); border: 1.5px solid var(--border-strong); }
.cta.ghost:hover { border-color: var(--saffron); transform: translateY(-2px); }

/* ------------------------------- Cards ---------------------------------- */
.card {
  position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(217,164,65,0.5); }
.card--bar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron) 42%, transparent 88%);
}
.badge {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--card-soft), #fff);
  border: 1px solid var(--border); box-shadow: inset 0 0 0 1px rgba(217,164,65,0.12);
}

/* --------------------------- Hero (light base) -------------------------- */
.hero { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 1.5rem clamp(3.5rem, 7vw, 5rem); }
.hero .logo { width: 108px; margin: 0 auto 1.4rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero .om { color: var(--saffron); }
.hero .lead { max-width: 640px; margin: 1.3rem auto 2.2rem; font-size: 1.1rem; color: var(--text-soft); }
.cta-row { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------- Hero (premium dark) ------------------------ */
.hero-dark {
  position: relative; overflow: hidden; color: var(--cream); text-align: center;
  padding: 0 0 clamp(5.5rem, 10vw, 8.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 82% -12%, rgba(217,164,65,0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 6% 108%, rgba(226,112,31,0.16), transparent 60%),
    linear-gradient(155deg, rgba(46,15,29,0.88) 0%, rgba(77,26,43,0.74) 55%, rgba(99,36,52,0.78) 100%),
    url('/hero-image.jpg') center / cover no-repeat;
  background-color: var(--maroon-1);
  border-bottom: 3px solid var(--gold-line);
}
.hero-dark::after {
  content: ""; position: absolute; top: -220px; right: -180px; width: 620px; height: 620px;
  border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, rgba(240,205,138,0.13) 0 1.5px, transparent 1.5px 38px);
}
.hero-dark .topbar { border-bottom: 1px solid rgba(240,205,138,0.16); }
.hero-dark .brand span { color: var(--cream); }
.hero-dark .navlinks a { color: rgba(255,246,232,0.72); }
.hero-dark .navlinks a:hover { color: var(--gold-soft); }
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: clamp(1.6rem, 3.5vw, 2.8rem) clamp(18px,4vw,40px) 0; }
.hero-dark .eyebrow { color: var(--gold-soft); justify-content: center; }
.hero-dark .eyebrow::before { color: var(--gold-soft); }
.hero-mark {
  width: 92px; height: 92px; margin: 0 auto 1.5rem; border-radius: 24px;
  display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, var(--cream));
  box-shadow: 0 0 0 1.5px rgba(240,205,138,0.55), 0 18px 40px rgba(0,0,0,0.35);
}
.hero-mark img { width: 66px; height: 66px; object-fit: contain; }
.hero-dark h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.12; margin-bottom: .6rem;
  background: linear-gradient(118deg, #FFF3DD 26%, var(--gold-soft) 66%, #E8B45F 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-soft);
}
.hero-dark .lead { max-width: 46rem; margin: 1.2rem auto 0; font-size: clamp(1rem, 1.7vw, 1.12rem); color: rgba(255,246,232,0.84); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 1.4rem 0 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 15px; border-radius: 999px;
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(240,205,138,0.10); border: 1px solid rgba(240,205,138,0.34); color: var(--gold-soft);
}
.hero-dark .cta-row { margin-top: 1.9rem; }
.hero-dark .cta.ghost { background: rgba(255,255,255,0.05); border-color: rgba(240,205,138,0.32); color: var(--cream); }
.hero-dark .cta.ghost:hover { background: rgba(240,205,138,0.16); border-color: var(--gold-soft); }

/* Hero buttons stack full-width on phones (avoids edge cramping) */
@media (max-width: 480px) {
  .hero-dark .cta-row { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-dark .cta-row .cta { width: 100%; }
}

/* ------------- Content that overlaps the hero edge (floating) ----------- */
.floats { position: relative; z-index: 2; margin-top: clamp(-74px, -7vw, -50px); }

/* --------------------- Long-form doc / prose (blog, legal) -------------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) clamp(18px,4vw,40px) clamp(3rem,6vw,4.5rem); }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.14; margin-bottom: .5rem; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.doc h2 { color: var(--maroon-2); font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2.4rem 0 .8rem; }
.doc h3 { color: var(--maroon-3); font-size: 1.18rem; margin: 1.7rem 0 .6rem; }
.doc p, .doc li { color: var(--ink); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.doc ul, .doc ol { margin: 0 0 1.2rem 1.4rem; }
.doc li { margin-bottom: .5rem; }
.doc a { color: var(--saffron-deep); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.doc strong { color: var(--maroon-2); }

/* ----------------------------- Footer ----------------------------------- */
.site-footer {
  position: relative; overflow: hidden; margin-top: clamp(3rem, 6vw, 5rem);
  color: rgba(255,246,232,0.86); text-align: center; padding: clamp(2.6rem, 5vw, 3.4rem) 1.5rem;
  background: linear-gradient(150deg, var(--maroon-1), var(--maroon-2) 70%, var(--maroon-3));
  border-top: 3px solid var(--gold-line);
}
.site-footer::after {
  content: ""; position: absolute; bottom: -240px; left: -160px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, rgba(240,205,138,0.10) 0 1.5px, transparent 1.5px 36px);
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer .flinks { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; font-weight: 700; font-size: .93rem; }
.site-footer .flinks a { color: rgba(255,246,232,0.82); text-decoration: none; transition: color .2s; }
.site-footer .flinks a:hover { color: var(--gold-soft); }
.site-footer .copy { font-size: .85rem; color: rgba(255,246,232,0.55); }

@media (max-width: 620px) {
  .navlinks { display: none; }
}

/* --------------------------- Motion ------------------------------------- */
/* Hidden only when JS is available (so no-JS visitors + crawlers see everything) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

.hero-inner > * { animation: rise .85s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner .eyebrow { animation-delay: .04s; }
.hero-inner .hero-mark { animation-delay: .12s; }
.hero-inner h1 { animation-delay: .2s; }
.hero-inner .lead { animation-delay: .3s; }
.hero-inner .hero-chips { animation-delay: .4s; }
.hero-inner .cta-row { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-inner > * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------- Article + sidebar layout ------------------------- */
.article-wrap {
  max-width: 1140px; margin: 0 auto;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(18px,4vw,40px) clamp(2.4rem, 5vw, 3.4rem);
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(2rem, 4vw, 3.4rem); align-items: start;
}
.article-main { min-width: 0; }
.article-main .doc { max-width: none; margin: 0; padding: 0; }
.article-main .post { padding-top: 0; }
.article-main .post > h1 { text-align: left; }
.article-main .post .eyebrow { justify-content: flex-start; }
.article-main .post .updated { text-align: left; }
.post h2 { scroll-margin-top: 22px; }

.sidebar { position: sticky; top: 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.side-card h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--saffron-deep); margin-bottom: .8rem; }
.toc-nav a { display: block; padding: .3rem 0 .3rem .8rem; color: var(--muted); font-size: .89rem; line-height: 1.32; border-left: 2px solid var(--border); transition: color .2s, border-color .2s; }
.toc-nav a:hover { color: var(--maroon-2); }
.toc-nav a.active { color: var(--maroon-2); border-left-color: var(--gold); font-weight: 700; }
.related-list a { display: block; padding: .7rem 0; border-top: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.34; transition: color .2s; }
.related-list a:first-child { border-top: 0; padding-top: 0; }
.related-list a .rc { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-deep); font-weight: 800; margin-bottom: .2rem; }
.related-list a:hover { color: var(--saffron-deep); }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .sidebar { position: static; }
  .sidebar .toc-card { display: none; }
}

/* --------------------- Blog listing (featured + grid) ------------------- */
.blog-featured { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px,4vw,40px); }
.featured-card {
  position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--cream);
  border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(240,205,138,0.2);
  background: linear-gradient(150deg, var(--maroon-1), var(--maroon-2) 60%, var(--maroon-3));
  transition: transform .22s ease, box-shadow .22s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(46,15,29,0.4); }
.featured-card::after { content: ""; position: absolute; top: -180px; right: -140px; width: 480px; height: 480px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, rgba(240,205,138,0.11) 0 1.5px, transparent 1.5px 34px); pointer-events: none; }
.featured-card > * { position: relative; z-index: 1; }
.featured-card .cat { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .7rem; }
.featured-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.16; max-width: 22ch;
  background: linear-gradient(118deg, #FFF3DD 30%, var(--gold-soft) 78%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.featured-card p { color: rgba(255,246,232,0.82); max-width: 60ch; margin-top: .6rem; }
.featured-card .meta { margin-top: 1.1rem; font-size: .84rem; font-weight: 700; color: var(--gold-soft); }
.post-grid { max-width: 1140px; margin: 1.3rem auto 0; padding: 0 clamp(18px,4vw,40px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(324px, 1fr)); gap: 1.3rem; }

/* ============================ Blog (CMS) ============================ */
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after { content: " \25BE"; font-size: .8em; }
.nav-dd[open] summary, .nav-dd summary:hover { color: var(--saffron-deep); }
.nav-dd-menu { position: absolute; top: calc(100% + 12px); left: 0; min-width: 195px; z-index: 30; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: .5rem; display: flex; flex-direction: column; }
.nav-dd-menu a { padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-dd-menu a:hover { background: var(--card-soft); color: var(--saffron-deep); }

.blog-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(18px,4vw,40px) clamp(1.4rem, 3vw, 2.2rem); }
.blog-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.blog-hero .lead { color: var(--muted); font-size: 1.08rem; margin-top: .9rem; }
.blog-hero .gold-rule { margin: 1.3rem auto 0; }

/* Featured card image support */
.featured-card.has-img { background-color: var(--maroon-1); background-size: cover; background-position: center; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.featured-card.has-img::after { display: none; }

/* Post grid card (with image) */
.post-card { display: block; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; background: var(--maroon-1); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .pc-body { padding: 1.25rem 1.35rem 1.45rem; }
.post-card .cat { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-deep); margin-bottom: .5rem; }
.post-card h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--maroon-1); margin-bottom: .5rem; line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
.post-card p { color: var(--muted); font-size: .97rem; }
.post-card .meta { margin-top: 1rem; font-size: .84rem; color: var(--muted); font-weight: 700; }
.post-card .meta .arrow { color: var(--saffron-deep); }

/* Article */
.post { padding-top: clamp(1rem, 2vw, 1.5rem); }
.post .eyebrow { justify-content: flex-start; }
.post .eyebrow a { color: inherit; text-decoration: none; }
.post > h1 { text-align: left; }
.post .updated { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.4rem; text-align: left; }
.post-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin: 0 0 1.8rem; box-shadow: var(--shadow); background: var(--maroon-1); }
.post table { width: 100%; border-collapse: collapse; margin: 1.7rem 0; font-size: 1rem; box-shadow: var(--shadow); border-radius: var(--radius-md); overflow: hidden; }
.post th, .post td { border: 1px solid var(--border); padding: .72rem 1rem; text-align: left; }
.post th { background: linear-gradient(135deg, var(--maroon-2), var(--maroon-3)); color: var(--cream); font-family: var(--font-display); font-weight: 600; border-color: rgba(255,255,255,0.12); }
.post tbody tr:nth-child(even) td { background: var(--card-soft); }
.post blockquote { border-left: 3px solid var(--gold); background: var(--card); margin: 1.7rem 0; padding: 1rem 1.4rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow); }
.post blockquote p { margin-bottom: .4rem; }
.post blockquote strong { color: var(--maroon-2); }

/* Post CTA */
.post-cta { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(1.8rem,3vw,2.4rem); margin: 2.8rem 0 1rem; text-align: center; color: var(--cream); border: 1px solid rgba(240,205,138,0.2); background: linear-gradient(150deg, var(--maroon-1), var(--maroon-2) 62%, var(--maroon-3)); }
.post-cta::after { content: ""; position: absolute; top: -160px; right: -120px; width: 400px; height: 400px; border-radius: 50%; background: repeating-radial-gradient(circle at center, rgba(240,205,138,0.12) 0 1.5px, transparent 1.5px 32px); pointer-events: none; }
.post-cta > * { position: relative; z-index: 1; }
.post-cta h3 { color: var(--gold-soft); font-size: 1.4rem; margin-bottom: .5rem; }
.post-cta p { color: rgba(255,246,232,0.82); max-width: 520px; margin: 0 auto 1.2rem; }

/* Author byline + author box (E-E-A-T) */
.byline-author { color: var(--saffron-deep); font-weight: 700; text-decoration: none; }
.byline-author:hover { text-decoration: underline; }
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; margin: 2.6rem 0 1rem; padding: 1.4rem 1.5rem; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--card-soft); }
.author-box__avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.author-box__eyebrow { margin: 0; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.author-box__name { margin: .1rem 0 .4rem; font-size: 1.15rem; }
.author-box__name a { color: var(--maroon-2); text-decoration: none; }
.author-box__name a:hover { text-decoration: underline; }
.author-box__bio { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink); }
.author-box__bio a { color: var(--saffron-deep); }
.author-profile-head { display: flex; align-items: center; gap: 1.3rem; margin: .2rem 0 1.4rem; }
.author-profile-head__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); flex: 0 0 auto; }
.author-profile-head h1 { margin: 0; }

/* Ad slot */
.ad-slot { margin: 2.2rem auto; min-height: 90px; display: grid; place-items: center; border: 1px dashed var(--border-strong); color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-md); background: var(--card-soft); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; max-width: 1140px; margin: 2.5rem auto 0; padding: 0 clamp(18px,4vw,40px) clamp(2.5rem,5vw,4rem); }
.pager-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 800; font-size: .9rem; text-decoration: none; border: 1.5px solid var(--border-strong); color: var(--saffron-deep); background: var(--card); transition: border-color .2s; }
.pager-btn:hover { border-color: var(--saffron); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-info { color: var(--muted); font-size: .9rem; font-weight: 700; }
