/* ============================================================
   ArunachalaShiva.com — Stylesheet
   Design philosophy: warm minimalism.
   Cream background, terracotta brand, pastel-tinted cards.
   Generous whitespace, confident typography.
   ============================================================ */

/* ---- Self-hosted Jost (faster than Google Fonts, no third-party request) -- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jost-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jost-latin-700-normal.woff2') format('woff2');
}

/* ---- Color palette (named for clarity) ------------------- */
:root {
  --cream:        #F5EBDD;   /* page background */
  --cream-deep:   #EFE2D0;   /* section bands */
  --ink:          #2A1D14;   /* primary text */
  --ink-soft:     #5C4B3E;   /* secondary text */
  --terracotta:   #C4632C;   /* brand & accent */
  --terracotta-dk:#9C4A1F;   /* hover */
  --coral:        #E58463;   /* primary CTA */
  --coral-dk:     #D26B49;   /* CTA hover */

  /* Pastel card tints — all derived from the warm spectrum
     so the homepage feels like one palette, not a collage */
  --tint-peach:    #FBE5D3;   /* warmest pink-peach */
  --tint-rose:     #F4D2C0;   /* slightly deeper, sun-baked */
  --tint-mauve:    #EBD6CB;   /* warm mauve-rose */
  --tint-sand:     #F0DDC2;   /* wheat / sand */
  --tint-stone:    #E7D3BE;   /* warm stone / clay */
  --tint-cream:    #F5E8D0;   /* softest cream-gold */
}

/* ---- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dk); text-decoration-thickness: 2px; }
a:focus {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---- Layout containers ----------------------------------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

/* ---- Skip link (accessibility) --------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 8px; color: var(--ink); background: #ffdd00; }

/* ---- Header band ----------------------------------------- */
.site-header {
  background: var(--cream-deep);
  border-bottom: 1px solid rgba(196, 99, 44, 0.15);
  padding: 22px 0 20px 0;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Brand: logomark + wordmark + tagline */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--terracotta);
}
.site-header__brand:hover, .site-header__brand:focus {
  text-decoration: none;
  background: transparent;
}
.site-header__brand:hover .site-header__wordmark,
.site-header__brand:focus .site-header__wordmark {
  color: var(--terracotta-dk);
}

/* Logomark: a small Arunachala silhouette */
.site-header__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}

.site-header__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.site-header__wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--terracotta);
  line-height: 1.1;
  transition: color 0.18s ease;
}
.site-header__tagline {
  margin: 4px 0 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}

/* ---- Pournami strip -------------------------------------- */
.pournami-strip {
  background: var(--tint-peach);
  border-bottom: 1px solid rgba(196, 99, 44, 0.12);
  padding: 11px 0;
  font-size: 15.5px;
  color: var(--ink);
}
.pournami-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.pournami-strip__label {
  font-weight: 600;
  color: var(--ink);
}
.pournami-strip__date {
  font-weight: 600;
  color: var(--terracotta);
}
.pournami-strip__time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.pournami-strip__count {
  color: var(--ink-soft);
  font-style: italic;
}
.pournami-strip__sep {
  color: rgba(196, 99, 44, 0.45);
  user-select: none;
}
.pournami-strip__link {
  margin-left: auto;
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}
.pournami-strip__link:hover {
  color: var(--terracotta-dk);
  text-decoration-thickness: 2px;
}

@media (max-width: 720px) {
  .pournami-strip { font-size: 14.5px; padding: 12px 0; }
  .pournami-strip__inner { gap: 4px 8px; }
  /* On mobile, hide the dot separators (line-break does the visual work) */
  .pournami-strip__sep { display: none; }
  /* Date and time on their own lines for clarity */
  .pournami-strip__date,
  .pournami-strip__time,
  .pournami-strip__count {
    flex-basis: 100%;
  }
  .pournami-strip__link {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ---- Navigation ------------------------------------------ */
.site-nav {
  background: var(--cream);
  border-bottom: 1px solid rgba(196, 99, 44, 0.15);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease;
}
.site-nav a:hover {
  background: transparent;
  color: var(--terracotta);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.site-nav a:hover::after { transform: scaleX(0.5); }
.site-nav a[aria-current="page"] {
  color: var(--terracotta);
  font-weight: 600;
}
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .site-header__mark { width: 32px; height: 32px; }
  .site-header__wordmark { font-size: 19px; }
  .site-header__tagline { font-size: 10px; letter-spacing: 0.1em; }
  .site-nav a { padding: 14px 16px; font-size: 14.5px; }
  .site-nav a::after { left: 16px; right: 16px; }
}

/* ---- Typography ------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: 48px; margin-top: 0; }
h2 { font-size: 32px; margin-top: 48px; }
h3 { font-size: 24px; margin-top: 36px; }
h4 { font-size: 20px; margin-top: 28px; }
p { margin: 0 0 18px 0; }
strong { font-weight: 700; }
em { font-style: italic; }
ul, ol { margin: 0 0 24px 0; padding-left: 24px; }
li { margin-bottom: 8px; }
li > ul, li > ol { margin-top: 8px; margin-bottom: 8px; }
blockquote {
  border-left: 4px solid var(--terracotta);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
hr {
  border: 0;
  border-top: 1px solid rgba(196, 99, 44, 0.18);
  margin: 56px 0;
}

/* ---- Lede / intro paragraph ------------------------------ */
.lede {
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 400;
}

/* ---- Page sections --------------------------------------- */
main { padding: 48px 0 80px 0; }
.section { margin-bottom: 64px; }

/* ---- Hero (homepage) ------------------------------------- */
.hero {
  padding: 64px 0 56px 0;
  border-bottom: 1px solid rgba(196, 99, 44, 0.15);
}
.hero h1 { max-width: 720px; }
.hero .lede { max-width: 720px; }

/* Hero variant with image band above headline */
.hero--with-image { padding-top: 0; }
.hero-image {
  margin: 0;
  width: 100%;
  background: var(--ink);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  max-height: 520px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--with-image .container { padding-top: 64px; }
.hero--with-image h1 { margin-top: 0; }

@media (max-width: 640px) {
  .hero-image { aspect-ratio: 16 / 10; max-height: 320px; }
  .hero--with-image .container { padding-top: 40px; }
}

/* ---- Card grid (pastel-tinted, the heart of the design) -- */
.card-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card-list li { margin: 0; }

.card {
  display: block;
  padding: 32px 28px;
  background: var(--tint-peach);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(156, 74, 31, 0.28);
  color: var(--ink);
}
.card:hover h3 { text-decoration: none; color: var(--terracotta-dk); }
.card h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s ease;
}
.card p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Tint variations — apply via additional class on the <a> */
.card--peach { background: var(--tint-peach); }
.card--rose  { background: var(--tint-rose); }
.card--mauve { background: var(--tint-mauve); }
.card--sand  { background: var(--tint-sand); }
.card--stone { background: var(--tint-stone); }
.card--cream { background: var(--tint-cream); }

/* ---- Article meta line ----------------------------------- */
.article-meta {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(196, 99, 44, 0.18);
}
.article-meta time { font-weight: 600; }

/* ---- Article images -------------------------------------- */
/* Three standard sizes — all images use object-fit: cover    */
.img-hero,
.img-inline,
.img-thumb {
  background: var(--tint-peach);
  overflow: hidden;
  display: block;
  border-radius: 10px;
}
.img-hero {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 32px 0 32px 0;
}
.img-inline {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 32px 0;
}
.img-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.img-hero img,
.img-inline img,
.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure { margin: 32px 0; }
figcaption {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-left: 4px;
  font-style: italic;
}

/* ---- In-page table of contents --------------------------- */
.toc {
  background: var(--tint-peach);
  padding: 24px 28px;
  margin: 32px 0 48px 0;
  border-left: 4px solid var(--terracotta);
  border-radius: 6px;
}
.toc h2 {
  font-size: 14px;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 600;
}
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { font-weight: 500; }

/* ---- Callout box (key information) ----------------------- */
.callout {
  border-left: 10px solid var(--terracotta);
  background: var(--tint-peach);
  padding: 20px 24px;
  margin: 32px 0;
}
.callout h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout--feature {
  border-left-width: 10px;
  background: var(--tint-sand);
  padding: 28px 32px;
}
.callout--feature h3 { font-size: 24px; margin-bottom: 12px; }
.callout--feature .button { margin-top: 8px; }

/* ---- Inset info (gov.uk style) --------------------------- */
.inset {
  padding: 16px 20px;
  border-left: 10px solid rgba(196, 99, 44, 0.18);
  margin: 24px 0;
  background: transparent;
}
.inset p:last-child { margin-bottom: 0; }

/* ---- Article body width ---------------------------------- */
.article-body { max-width: 720px; }
.article-body img,
.article-body .img-hero,
.article-body .img-inline { max-width: 100%; }

/* ---- Article list page ----------------------------------- */
.article-index {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-index li {
  padding: 32px 0;
  border-bottom: 1px solid rgba(196, 99, 44, 0.18);
  margin: 0;
}
.article-index li:first-child { padding-top: 0; }
.article-index h2 {
  margin: 0 0 8px 0;
  font-size: 26px;
}
.article-index h2 a { color: var(--terracotta); }
.article-index .article-meta {
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
}
.article-index p { margin: 0; max-width: 720px; }

/* ---- Related articles (in-article) ----------------------- */
.related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(196, 99, 44, 0.18);
}
.related h2 { font-size: 22px; margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 12px; }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid rgba(196, 99, 44, 0.18);
  padding: 48px 0 32px 0;
  margin-top: 80px;
  font-size: 16px;
  color: var(--ink);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); }
.site-footer__meta {
  padding-top: 24px;
  border-top: 1px solid rgba(196, 99, 44, 0.18);
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================================
   EDITORIAL READING LAYER — for flagship long-form articles
   Distilled from gov.uk (clarity), Medium (reading comfort),
   Architectural Digest (editorial elegance). Opt-in via
   <article class="article-body article-body--feature">.
   ============================================================ */
.article-body--feature { max-width: 680px; }

/* Eyebrow / kicker above the headline (AD-style) */
.article-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px 0;
}

/* Headline — slightly tighter, more editorial */
.article-body--feature > h1 {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* Standfirst / dek — the elegant intro line under the headline */
.article-body--feature .standfirst {
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0 0 32px 0;
}

/* Byline / meta row */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(196, 99, 44, 0.15);
}
.article-byline .dot { color: rgba(196, 99, 44, 0.4); }

/* Medium-grade reading comfort for the body */
.article-body--feature p {
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 26px 0;
}

/* Drop cap on the first paragraph (AD/editorial touch) */
.article-body--feature .first-para::first-letter {
  float: left;
  font-size: 76px;
  line-height: 0.82;
  font-weight: 600;
  color: var(--terracotta);
  margin: 6px 12px 0 0;
}

/* Section headings with more editorial air */
.article-body--feature h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 56px 0 18px 0;
}
.article-body--feature h3 {
  font-size: 22px;
  margin: 36px 0 12px 0;
}

/* Pull quote — elegant, restrained */
.pullquote {
  margin: 44px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--terracotta);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  font-style: normal;
}

/* Key-facts box (gov.uk-style summary up top) */
.keyfacts {
  background: var(--tint-sand);
  border-radius: 12px;
  padding: 26px 30px;
  margin: 0 0 40px 0;
}
.keyfacts h2 {
  font-size: 15px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px 0 !important;
  color: var(--ink-soft);
}
.keyfacts dl { margin: 0; }
.keyfacts dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}
.keyfacts dd {
  margin: 0 0 12px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.keyfacts dd:last-child { margin-bottom: 0; }

/* Figure + caption (AD-style) */
.article-body--feature figure { margin: 40px 0; }
.article-body--feature figure img { border-radius: 10px; }
.article-body--feature figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* A quiet end-mark to close the piece (editorial touch) */
.endmark {
  text-align: center;
  margin: 48px 0 0 0;
  color: var(--terracotta);
  font-size: 22px;
  letter-spacing: 0.3em;
}

@media (max-width: 640px) {
  .article-body--feature > h1 { font-size: 34px; }
  .article-body--feature .standfirst { font-size: 20px; }
  .article-body--feature p { font-size: 18px; line-height: 1.65; }
  .article-body--feature h2 { font-size: 25px; margin-top: 44px; }
  .pullquote { font-size: 22px; }
  .article-body--feature .first-para::first-letter { font-size: 60px; }
}

/* ============================================================
   READING ENHANCEMENTS — applied by article length.
   Progress bar + contents: long pieces only.
   Callouts, dividers, wide figures: available everywhere.
   ============================================================ */

/* --- Reading progress bar (long pieces) --- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--terracotta);
  z-index: 2000;
  transition: width 0.08s linear;
}

/* --- In-page contents / jump list (long pieces, gov.uk/Guardian style) --- */
.contents {
  margin: 0 0 44px 0;
  padding: 24px 28px;
  border: 1px solid rgba(196, 99, 44, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}
.contents h2 {
  font-size: 13px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px 0 !important;
}
.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.contents li {
  margin: 0;
  border-top: 1px solid rgba(196, 99, 44, 0.12);
}
.contents li:first-child { border-top: none; }
.contents a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  counter-increment: toc;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.contents a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--terracotta);
  font-weight: 600;
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.contents a:hover {
  color: var(--terracotta);
  padding-left: 6px;
  text-decoration: none;
}

/* Smooth scrolling + offset so anchored headings aren't hidden under the progress bar */
html { scroll-behavior: smooth; }
.article-body--feature h2[id] { scroll-margin-top: 24px; }

/* --- Callout family: note / caution / tip --- */
.note, .caution, .tip {
  margin: 32px 0;
  padding: 20px 24px 20px 22px;
  border-left: 4px solid;
  border-radius: 0 10px 10px 0;
  font-size: 18px;
  line-height: 1.6;
}
.note p:last-child, .caution p:last-child, .tip p:last-child { margin-bottom: 0; }
.note__label, .caution__label, .tip__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.note   { background: var(--tint-stone);  border-left-color: var(--ink-soft); }
.note__label   { color: var(--ink-soft); }
.tip    { background: var(--tint-peach);  border-left-color: var(--coral-dk); }
.tip__label    { color: var(--coral-dk); }
.caution{ background: var(--tint-rose);   border-left-color: var(--terracotta-dk); }
.caution__label{ color: var(--terracotta-dk); }

/* --- Section break (New Yorker-style quiet divider within a long piece) --- */
.section-break {
  text-align: center;
  margin: 52px 0;
  color: rgba(196, 99, 44, 0.5);
  font-size: 20px;
  letter-spacing: 0.4em;
  user-select: none;
}

/* --- Wide / break-out figure (NYT/Guardian — wider than the text measure) --- */
.article-body--feature .figure--wide {
  width: calc(100% + 160px);
  max-width: 92vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body--feature .figure--wide img { width: 100%; border-radius: 12px; }

/* --- End-of-guide summary ("Before you go") --- */
.before-you-go {
  margin: 48px 0 0 0;
  padding: 26px 30px;
  background: var(--tint-cream);
  border-radius: 12px;
}
.before-you-go h2 {
  font-size: 15px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px 0 !important;
}
.before-you-go ul { margin: 0; padding-left: 22px; }
.before-you-go li { margin-bottom: 10px; line-height: 1.5; font-size: 17px; }
.before-you-go li:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .contents { padding: 20px 22px; }
  .note, .caution, .tip { font-size: 16.5px; padding: 16px 18px; }
  .article-body--feature .figure--wide {
    width: 100%; margin-left: 0; transform: none;
  }
}

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--terracotta); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 8px; color: rgba(196, 99, 44, 0.4); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

/* ---- FAQ section ----------------------------------------- */
.faq { margin: 48px 0; }
.faq h2 { margin-bottom: 24px; }
.faq__item {
  padding: 20px 0;
  border-top: 1px solid rgba(196, 99, 44, 0.15);
}
.faq__item:last-child { border-bottom: 1px solid rgba(196, 99, 44, 0.15); }
.faq__item h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
  color: var(--terracotta);
}
.faq__item p { margin: 0; color: var(--ink); }

/* ---- Last updated note ----------------------------------- */
.last-updated {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- Pournami calendar table ----------------------------- */
.cal-wrap { margin: 32px 0; overflow-x: auto; }
.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.cal-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cal-table thead th:first-child { border-radius: 8px 0 0 0; }
.cal-table thead th:last-child { border-radius: 0 8px 0 0; }
.cal-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(196, 99, 44, 0.15);
  vertical-align: top;
}
.cal-table tbody tr:nth-child(even) { background: var(--tint-peach); }
.cal-table tbody tr:hover { background: var(--tint-sand); }
.cal-tamil {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.cal-time {
  font-weight: 600;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}

/* Mobile: turn the table into stacked cards */
@media (max-width: 600px) {
  .cal-table thead { display: none; }
  .cal-table, .cal-table tbody, .cal-table tr, .cal-table td { display: block; width: 100%; }
  .cal-table tr {
    margin-bottom: 16px;
    border: 1px solid rgba(196, 99, 44, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream);
  }
  .cal-table tbody tr:nth-child(even) { background: var(--cream); }
  .cal-table td {
    border: none;
    border-bottom: 1px solid rgba(196, 99, 44, 0.1);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }
  .cal-table td:last-child { border-bottom: none; }
  .cal-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-align: left;
    flex-shrink: 0;
  }
  .cal-tamil { display: inline; margin-left: 6px; }
}

/* ---- Image protection (deterrent layer) ------------------ */
/* Discourage casual saving/selection of images. Cannot fully
   prevent saving (no site can), but stops most casual copying. */
.img-hero img,
.img-inline img,
.img-thumb img,
.site-header__mark,
figure img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;  /* blocks direct right-click target; container still hoverable */
}
/* Re-enable pointer events where an image is itself a link */
a .img-hero img, a .img-inline img, a .img-thumb img { pointer-events: auto; }

/* ---- Buttons (used sparingly) ---------------------------- */
.button {
  display: inline-block;
  background: var(--coral);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.button:hover, .button:focus {
  background: var(--coral-dk);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
.button--secondary {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  padding: 12.5px 26.5px;
}
.button--secondary:hover, .button--secondary:focus {
  background: var(--terracotta);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---- Definition list (used for "facts" blocks) ----------- */
dl.facts {
  margin: 24px 0;
  border-top: 1px solid rgba(196, 99, 44, 0.18);
}
dl.facts > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(196, 99, 44, 0.18);
}
dl.facts dt {
  font-weight: 600;
  margin: 0;
}
dl.facts dd { margin: 0; }

/* ---- Mobile adjustments ---------------------------------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; margin-top: 40px; }
  h3 { font-size: 20px; }
  .lede { font-size: 20px; }
  .hero { padding: 40px 0 32px 0; }
  .container { padding: 0 16px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header__tagline { margin-left: 0; }
  .site-nav a { padding: 14px 16px; font-size: 16px; }
  dl.facts > div { grid-template-columns: 1fr; gap: 4px; }
  main { padding: 32px 0 48px 0; }
}

/* ---- Print styles ---------------------------------------- */
@media print {
  .site-nav, .site-footer, .pournami-strip, .related { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .img-hero, .img-inline { page-break-inside: avoid; }
}

/* ============================================================
   VISUAL & INTERACTION REFINEMENT LAYER
   Added to elevate polish without disturbing the calm.
   ============================================================ */

/* --- Paper grain: a barely-there tactility on the cream --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer, nav { position: relative; z-index: 2; }

/* --- Illustrated hero (original SVG artwork) --- */
.hero-art {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vh, 460px);
  overflow: hidden;
  background: var(--cream-deep);
}
.hero-art img,
.hero-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
/* soft fade into the page below — removes the hard edge */
.hero-art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, rgba(245,235,221,0), var(--cream));
  pointer-events: none;
}
.hero-art--article { height: clamp(200px, 30vh, 320px); border-radius: 14px; }
.hero-art--article::after { display: none; }

/* --- Condensing sticky header (appears once you scroll past the masthead) --- */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(239, 226, 208, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(196, 99, 44, 0.16);
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--terracotta);
  font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em;
}
.sticky-bar__brand svg { width: 24px; height: 24px; }
.sticky-bar__brand:hover { text-decoration: none; color: var(--terracotta-dk); }
.sticky-bar__links { margin-left: auto; display: flex; gap: 20px; }
.sticky-bar__links a {
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.sticky-bar__links a:hover { color: var(--terracotta); text-decoration: none; }
@media (max-width: 760px) { .sticky-bar__links { display: none; } }

/* --- Card micro-interaction: a considered lift, not a bounce --- */
.card {
  transition: transform 0.26s cubic-bezier(.4,0,.2,1),
              box-shadow 0.26s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -12px rgba(90, 50, 25, 0.28);
}
.card h3 { transition: color 0.2s ease; }

/* --- In-prose links: underline grows from the left on hover --- */
.article-body p > a:not(.button),
.article-body li > a:not(.button) {
  color: var(--terracotta-dk);
  text-decoration: none;
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.25s ease, color 0.2s ease;
  padding-bottom: 1px;
}
.article-body p > a:not(.button):hover,
.article-body li > a:not(.button):hover {
  color: var(--terracotta);
  background-size: 100% 2px;
}

/* --- Heading anchors: a quiet ¶ link revealed on hover --- */
.article-body h2[id] { position: relative; }
.article-body h2[id] .anchor {
  position: absolute;
  left: -30px; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--terracotta);
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.article-body h2[id]:hover .anchor { opacity: 0.55; }
.article-body h2[id] .anchor:hover { opacity: 1; text-decoration: none; }
@media (max-width: 900px) { .article-body h2[id] .anchor { display: none; } }

/* --- Back to top (long pages) --- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 1400;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 6px 18px -6px rgba(90, 50, 25, 0.5);
}
.to-top.is-visible { opacity: 0.9; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--terracotta-dk); opacity: 1; }
.to-top svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* --- Focus states: visible, on-brand, accessible --- */
a:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}

/* ============================================================
   PRINT — pilgrims genuinely print the Pournami calendar
   ============================================================ */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .site-header, .site-nav, .pournami-strip, .site-footer,
  .sticky-bar, .to-top, .reading-progress, .contents,
  .related, .breadcrumb, .skip-link, .hero-art { display: none !important; }
  main { padding: 0; }
  .container, .container--narrow { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  .article-body--feature p { font-size: 11pt; line-height: 1.45; }
  h1 { font-size: 20pt; } h2 { font-size: 14pt; page-break-after: avoid; }
  .cal-table { font-size: 9.5pt; }
  .cal-table thead th { background: #eee !important; color: #000 !important;
                        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cal-table tbody tr { page-break-inside: avoid; }
  .keyfacts, .note, .tip, .caution, .before-you-go {
    border: 1px solid #999; background: #fff !important; page-break-inside: avoid;
  }
  .faq__item { page-break-inside: avoid; }
  /* show link targets so a printed page is still useful */
  .article-body p > a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; }
}

/* ---- Pillar hub card lists ---- */
.hub-list { display: grid; gap: 14px; margin: 24px 0 8px; }
.hub-card {
  display: block; padding: 20px 24px; border-radius: 12px;
  background: rgba(255,255,255,0.4); border: 1px solid rgba(196,99,44,0.16);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(90,50,25,0.3); border-color: rgba(196,99,44,0.4); text-decoration: none; }
.hub-card__title { display:block; font-size: 20px; font-weight: 600; color: var(--terracotta-dk); margin-bottom: 4px; }
.hub-card:hover .hub-card__title { color: var(--terracotta); }
.hub-card__blurb { display:block; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }

/* ---- Hero image placeholder (before a real photo is uploaded) ---- */
.hero-art--placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--tint-sand), var(--tint-peach));
  display: flex; align-items: center; justify-content: center;
}
.hero-art--placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/images/art/hill-dawn.svg") center/cover no-repeat;
  opacity: 0.5;
}
.hero-art__hint {
  position: relative; z-index: 1;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(245,235,221,0.82);
  padding: 8px 16px; border-radius: 20px; font-weight: 600;
  border: 1px solid rgba(196,99,44,0.2);
}
/* When a real image is present it simply covers everything above. */

/* ---- Ashta Lingam cards ---- */
.lingam-cards { margin: 28px 0; display: grid; gap: 16px; }
.lingam-card { border: 1px solid rgba(196,99,44,0.18); border-radius: 12px; padding: 20px 24px; background: rgba(255,255,255,0.35); }
.lingam-card__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.lingam-card__num { font-size: 15px; font-weight: 700; color: var(--terracotta); font-variant-numeric: tabular-nums; }
.lingam-card__head h3 { margin: 0; font-size: 21px; }
.lingam-card__dir { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.lingam-card__body { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.lingam-card__body dt { font-weight: 600; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.03em; }
.lingam-card__body dd { margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) { .lingam-card__body { grid-template-columns: 1fr; gap: 2px; } .lingam-card__body dt { margin-top: 8px; } }

/* ---- Decorative section separators (Indian sacred motifs) ---- */
.section-break {
  margin: 52px auto;
  width: 200px; height: 34px;
  background: center/contain no-repeat url("/images/art/separators/lotus.svg");
  text-indent: -9999px; overflow: hidden;
}
.section-break--diya { background-image: url("/images/art/separators/diya.svg"); }
.section-break--hill { background-image: url("/images/art/separators/hill.svg"); }
.section-break--trishula { background-image: url("/images/art/separators/trishula.svg"); }
/* the end-of-article mark also becomes a small lotus */
.endmark {
  margin: 48px auto 0; width: 150px; height: 30px;
  background: center/contain no-repeat url("/images/art/separators/lotus.svg");
  text-indent: -9999px; overflow: hidden; opacity: 0.85;
}
@media (max-width: 640px) { .section-break { width: 170px; } }

/* ---- Pournami per-month detail cards ---- */
.pour-cards { display: grid; gap: 18px; margin: 24px 0; }
.pour-card { border: 1px solid rgba(196,99,44,0.18); border-radius: 14px; padding: 24px 26px; background: rgba(255,255,255,0.4); scroll-margin-top: 30px; }
.pour-card__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.pour-card__num { font-size: 15px; font-weight: 700; color: var(--terracotta); font-variant-numeric: tabular-nums; }
.pour-card__head h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.pour-card__tamil { font-size: 14px; color: var(--ink-soft); }
.pour-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--terracotta); padding: 2px 9px; border-radius: 20px; }
.pour-card__times { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 12px 16px; margin-bottom: 14px; background: var(--tint-sand); border-radius: 10px; }
.pour-card__times strong { color: var(--terracotta-dk); font-variant-numeric: tabular-nums; }
.pour-card__label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.pour-card p { margin: 0; font-size: 17px; line-height: 1.6; }
@media (max-width: 560px) { .pour-card__times { flex-direction: column; gap: 8px; } }

/* ============================================================
   READABILITY & EMPHASIS LAYER — highlight key dates/times,
   calls-to-action, and scannable emphasis. Calm, on-palette.
   ============================================================ */

/* Inline date/time highlight — a soft marker-pen effect */
.hl {
  background: linear-gradient(transparent 55%, var(--tint-peach) 55%);
  padding: 0 3px; font-weight: 600; color: var(--ink);
  border-radius: 2px;
}
.hl--date { background: linear-gradient(transparent 55%, #F6D9A8 55%); }
.hl--time { background: linear-gradient(transparent 55%, var(--tint-rose) 55%); }

/* A small inline "pill" for a key fact (e.g. a time) */
.pill {
  display: inline-block; background: var(--terracotta); color: #fff;
  font-size: 0.86em; font-weight: 600; letter-spacing: 0.01em;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill--soft { background: var(--tint-sand); color: var(--terracotta-dk); }

/* The headline "key highlight" banner — for the single most important fact */
.keydate {
  display: flex; align-items: center; gap: 18px;
  margin: 8px 0 32px; padding: 22px 26px;
  background: linear-gradient(135deg, var(--tint-sand), var(--tint-peach));
  border-radius: 14px; border: 1px solid rgba(196,99,44,0.22);
}
.keydate__icon {
  flex-shrink: 0; width: 46px; height: 46px;
  background: center/contain no-repeat url("/images/art/separators/diya.svg");
  transform: scale(1.6);
}
.keydate__text { line-height: 1.3; }
.keydate__label { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 3px; }
.keydate__value { font-size: 24px; font-weight: 700; color: var(--terracotta-dk); letter-spacing: -0.01em; }
.keydate__sub { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 560px){ .keydate__value{ font-size: 20px; } }

/* Call-to-action block */
.cta {
  margin: 40px 0; padding: 28px 30px; text-align: center;
  background: var(--tint-cream); border-radius: 14px;
  border: 1px solid rgba(196,99,44,0.18);
}
.cta h3 { margin: 0 0 8px; font-size: 21px; }
.cta p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }
.cta .button { margin: 0 6px 6px; }
.button--outline {
  background: transparent; color: var(--terracotta-dk);
  box-shadow: inset 0 0 0 2px var(--terracotta);
}
.button--outline:hover { background: var(--terracotta); color: #fff; }

/* "At a glance" quick-scan strip for very important pages */
.quickscan {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 2px; margin: 8px 0 32px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(196,99,44,0.2);
}
.quickscan__cell { background: var(--tint-sand); padding: 16px 18px; }
.quickscan__cell:nth-child(even){ background: var(--tint-peach); }
.quickscan__label { display:block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.quickscan__value { font-size: 17px; font-weight: 600; color: var(--terracotta-dk); line-height: 1.25; }

/* ---- Chapter thread link (Ramana life-series) ---- */
.chapter-thread { margin: 0 0 28px; font-size: 15px; }
.chapter-thread a { color: var(--terracotta-dk); text-decoration: none; letter-spacing: 0.02em; }
.chapter-thread a:hover { color: var(--terracotta); text-decoration: none; }

/* ---- Audio cards (sacred sounds page) ---- */
.audio-cards { display: grid; gap: 16px; margin: 24px 0; }
.audio-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; border-radius: 12px; background: rgba(255,255,255,0.4); border: 1px solid rgba(196,99,44,0.16); }
.audio-card__icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-sand); color: var(--terracotta); font-size: 22px; }
.audio-card__body h3 { margin: 0 0 6px; font-size: 20px; }
.audio-card__body p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; }
.audio-card__where { font-size: 14px !important; color: var(--terracotta-dk); font-style: italic; }

/* ---- Glossary ---- */
.glossary { margin: 28px 0; }
.glossary-item { padding: 16px 0; border-bottom: 1px solid rgba(196,99,44,0.14); scroll-margin-top: 30px; }
.glossary-item dt { font-size: 20px; font-weight: 700; color: var(--terracotta-dk); margin-bottom: 5px; }
.glossary-item dt a { color: var(--terracotta-dk); text-decoration: none; }
.glossary-item dt a:hover { color: var(--terracotta); text-decoration: underline; }
.glossary-item dd { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }

/* ---- Affiliate booking box (monetization ~ links stay live on partner sites) ---- */
.booking-box { margin: 32px 0; padding: 26px 28px; border-radius: 14px; background: linear-gradient(135deg, var(--tint-sand), var(--tint-cream)); border: 1px solid rgba(196,99,44,0.2); }
.booking-box h3 { margin: 0 0 6px; font-size: 20px; }
.booking-box p { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.booking-box__links { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-btn { display: inline-block; padding: 11px 20px; border-radius: 24px; background: var(--terracotta); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none; transition: background 0.15s; }
.booking-btn:hover { background: var(--terracotta-dk); }
.booking-btn--alt { background: transparent; color: var(--terracotta-dk) !important; box-shadow: inset 0 0 0 2px var(--terracotta); }
.booking-btn--alt:hover { background: var(--terracotta); color: #fff !important; }
.booking-box__note { margin: 14px 0 0 !important; font-size: 12.5px !important; font-style: italic; }

/* ============================================================
   THE SACRED CALENDAR ~ flagship visual layout
   ============================================================ */
.cal-hero-note { margin: 8px 0 28px; padding: 20px 24px; background: linear-gradient(135deg, var(--tint-sand), var(--tint-cream)); border-radius: 14px; border: 1px solid rgba(196,99,44,0.18); }
.cal-hero-note p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

.cal-legend-heading { margin-top: 8px; }

/* recurring rhythm strip */
.cal-recurring { display: grid; gap: 12px; margin: 18px 0 8px; }
.cal-recurring__item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(255,255,255,0.45); border: 1px solid rgba(196,99,44,0.14); border-radius: 12px; font-size: 15px; }
.cal-recurring__icon { flex-shrink: 0; width: 34px; height: 34px; background: center/contain no-repeat; }

/* the month grid */
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 22px 0; }
.cal-month { background: rgba(255,255,255,0.4); border: 1px solid rgba(196,99,44,0.16); border-radius: 14px; padding: 18px 18px 8px; }
.cal-month__name { margin: 0 0 12px; font-size: 20px; color: var(--terracotta-dk); border-bottom: 1px solid rgba(196,99,44,0.16); padding-bottom: 8px; }
.cal-month__name span { color: var(--ink-soft); font-weight: 400; font-size: 15px; }
.cal-month__events { display: flex; flex-direction: column; gap: 8px; }

/* an event card */
.cal-event { display: grid; grid-template-columns: 40px 46px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; background: var(--tint-cream); border: 1px solid transparent; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.cal-event:hover { transform: translateY(-2px); border-color: rgba(196,99,44,0.3); background: var(--tint-sand); }
.cal-event__icon { width: 36px; height: 36px; background: center/contain no-repeat; }
.cal-event__day { font-size: 15px; font-weight: 700; color: var(--terracotta-dk); text-align: center; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cal-event__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-event__name { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cal-event__sig { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
/* left accent by type */
.cal-event--moon { box-shadow: inset 4px 0 0 #F0C489; }
.cal-event--flame { box-shadow: inset 4px 0 0 #E58463; }
.cal-event--lotus { box-shadow: inset 4px 0 0 #C4632C; }
.cal-event--sun { box-shadow: inset 4px 0 0 #E0A868; }
.cal-event--hill { box-shadow: inset 4px 0 0 #9C4A1F; }

/* legend key */
.cal-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.cal-key__i { display: inline-block; width: 20px; height: 20px; background: center/contain no-repeat; vertical-align: middle; margin-right: 2px; }

/* the two great peaks */
.cal-peaks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.cal-peak { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 22px; border-radius: 16px; text-decoration: none; background: linear-gradient(160deg, var(--tint-peach), var(--tint-sand)); border: 1px solid rgba(196,99,44,0.22); transition: transform 0.14s, box-shadow 0.14s; }
.cal-peak:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(156,74,31,0.14); }
.cal-peak__icon { width: 52px; height: 52px; background: center/contain no-repeat; }
.cal-peak__title { font-size: 21px; font-weight: 700; color: var(--terracotta-dk); }
.cal-peak__date { font-size: 15px; font-weight: 600; color: var(--terracotta); }
.cal-peak__blurb { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) { .cal-peaks { grid-template-columns: 1fr; } }


/* ---- Pournami page visual upgrade ---- */
.pour-card__num { display: inline-flex; align-items: center; gap: 8px; }
.pour-card__moon { display: inline-block; width: 22px; height: 22px; background: center/contain no-repeat url("/images/art/cal/moon.svg"); flex-shrink: 0; }
.pournami-next { display: flex; align-items: center; gap: 20px; margin: 8px 0 30px; padding: 22px 26px; background: linear-gradient(135deg, #F6E4CC, var(--tint-rose)); border-radius: 16px; border: 1px solid rgba(196,99,44,0.2); }
.pournami-next__moon { flex-shrink: 0; width: 56px; height: 56px; background: center/contain no-repeat url("/images/art/cal/moon.svg"); }
.pournami-next__label { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.pournami-next__value { display: block; font-size: 18px; font-weight: 600; color: var(--terracotta-dk); line-height: 1.35; }
.pournami-next__sub { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
@media (max-width: 560px){ .pournami-next{ flex-direction: column; text-align: center; } }


/* ---- Pournami quick-dates block (featured-snippet optimised) ---- */
.quickdates { margin: 20px 0 30px; padding: 22px 26px; background: var(--tint-sand); border-radius: 14px; border: 1px solid rgba(196,99,44,0.2); }
.quickdates__h { margin: 0 0 6px; font-size: 21px; }
.quickdates__note { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.quickdates__list { margin: 0; padding: 0; list-style: none; counter-reset: qd; }
.quickdates__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid rgba(196,99,44,0.12); font-size: 15.5px; }
.quickdates__list li:last-child { border-bottom: none; }
.qm-date { font-weight: 700; color: var(--terracotta-dk); font-variant-numeric: tabular-nums; min-width: 92px; }
.qm-day { color: var(--ink-soft); font-size: 13px; }
.qm-name { flex: 1; min-width: 130px; }
.qm-time { color: var(--terracotta); font-size: 14px; font-variant-numeric: tabular-nums; }


/* ---- LAUNCH: hide the "add image" developer hints (slots stay ready) ---- */
/* To re-show the hints while adding images, delete this block. */
.hero-art__hint { display: none !important; }
