/* DevBhumi – main.css v2.1.1
   Devotional WordPress Theme
   v2.1.1 – Bug fixes:
   • figure.wp-block-image: added full CSS block — was missing entirely.
     figure collapsed to ~0px, causing caption text to stack 1 char/line.
   • figcaption / .wp-element-caption: width:100% + white-space:normal fix.
   • .wp-caption / .wp-caption-text: full block rules, img margin reset.
   • .header-search-btn: stronger gold border + icon color (was near-invisible).
   • .search-form button / .search-submit: explicit border, font-weight:700.
   v2.0.0 – Comprehensive audit fixes:
   • inset:0 → top/right/bottom/left (Safari < 14.1 compat)
   • @media (hover: hover) guards on all card/link transforms
   • :focus-visible global styles
   • @media (prefers-reduced-motion: reduce)
   • .page-links, .comment-*, .search-field, .search-submit classes added
   • Pagination & form touch targets → 44px min
   • 720–900px posts-grid → 2-col (was 1-col, wasted space)
   • posts-grid--col-3 explicit + responsive handling
   • Comment form fields fully styled
   • Related posts heading font-size in CSS (removed inline style)
   • No !important except embed iframe (necessary)
   NOTE: Google Fonts loaded via <link> in header.php (font-display:swap)
*/

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --saffron:        #E8601A;
  --saffron-dark:   #C04E10;
  --saffron-light:  #F4884A;
  --saffron-pale:   #FEF0E7;
  --maroon:         #7B1C1C;
  --maroon-dark:    #5A1212;
  --maroon-light:   #A82828;
  --gold:           #C8981C;
  --gold-light:     #E5B840;
  --gold-pale:      #FBF3D8;
  --ivory:          #FFFBF2;
  --ivory-dark:     #F5EDD8;
  --cream:          #FFF8EE;
  --lotus-pink:     #D4607A;
  --lotus-pale:     #FDEEF2;
  --deep-red:       #8B0000;
  --teal:           #1A7A6B;
  --white:          #ffffff;
  --gray-50:        #fafafa;
  --gray-100:       #f4f2ee;
  --gray-200:       #e8e4dc;
  --gray-300:       #d4cfc4;
  --gray-400:       #a09888;
  --gray-600:       #6b6055;
  --gray-800:       #2e2820;
  --gray-900:       #1a1510;

  --ff-display: 'Tiro Devanagari Hindi', 'EB Garamond', Georgia, serif;
  --ff-body:    'EB Garamond', Georgia, serif;
  --ff-ui:      'DM Sans', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;

  --radius-sm:  4px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 4px rgba(123,28,28,.07);
  --shadow:     0 4px 20px rgba(123,28,28,.10);
  --shadow-lg:  0 12px 44px rgba(123,28,28,.15);
  --shadow-xl:  0 24px 80px rgba(123,28,28,.20);

  --transition: 0.28s ease;
  --transition-slow: 0.45s ease;

  --max-width:      1280px;
  --content-width:  800px;
  --header-height:  72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
#page-wrap { overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: 1.78;
  color: var(--gray-800);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; background: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.3;
  color: var(--maroon-dark);
}

/* ── Accessibility: Focus ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-left: clamp(1rem, 5vw, 2.5rem);
  padding-right: clamp(1rem, 5vw, 2.5rem);
  width: 100%;
  box-sizing: border-box;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--maroon);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
}
.skip-link:focus { top: 1rem; }

/* ── Reading Progress Bar ───────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Decorative Divider ─────────────────────────────────────── */
.divider-lotus {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}
.divider-lotus::before,
.divider-lotus::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-lotus__symbol { color: var(--gold); font-size: 1.25rem; line-height: 1; }

/* ── Section Heading ────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.section-heading__eyebrow {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .5rem;
}
.section-heading__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  color: var(--maroon-dark);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-heading__sub {
  color: var(--gray-600);
  font-size: var(--fs-lg);
  max-width: 560px;
  margin: 0 auto .75rem;
}
.section-heading--left { text-align: left; }
.section-heading--left .section-heading__sub { margin-left: 0; }

/* Inline section header row */
.section-header-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.section-header-row__title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 3vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--maroon-dark);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
/* Related posts heading — was inline style, now in CSS */
.related-posts__heading { font-size: var(--fs-2xl); }
.section-header-row__icon { font-size: 1.3rem; line-height: 1; }
.section-header-row__line { flex: 1; min-width: 2rem; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }
.section-view-all {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--saffron);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border: 1.5px solid var(--saffron-light);
  border-radius: 50px;
  transition: all var(--transition);
  min-height: 40px;
}
@media (hover: hover) {
  .section-view-all:hover { background: var(--saffron); color: var(--white); border-color: var(--saffron); }
}

/* ── Top Ticker Bar ─────────────────────────────────────────── */
.top-bar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,.75);
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  padding: .4rem 0;
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar__auspicious {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-light);
  font-weight: 600;
}
.top-bar__auspicious span { color: rgba(255,255,255,.55); font-weight: 400; }
.top-bar__links {
  display: flex;
  gap: 1.25rem;
}
.top-bar__links a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
}
@media (hover: hover) {
  .top-bar__links a:hover { color: var(--gold-light); }
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 3px 24px rgba(90,18,18,.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.site-branding { flex-shrink: 0; min-width: 0; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.site-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3.5vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1;
}
.site-title span { color: var(--gold-light); }
.site-description {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.custom-logo { max-height: 60px; width: auto; }

/* ── Navigation ─────────────────────────────────────────────── */
.main-nav { flex: 1; min-width: 0; }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  flex-wrap: wrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--gold-light);
  background: rgba(200,152,28,.18);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 220px;
  background: var(--maroon-dark);
  border: 1px solid rgba(200,152,28,.25);
  border-radius: var(--radius);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu,
.nav-menu > li.touch-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.75);
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav-menu .sub-menu li a:hover { color: var(--gold-light); background: rgba(255,255,255,.06); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .55rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  pointer-events: none;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header search */
.header-search-btn {
  /* FIX: was rgba(255,255,255,.1) — nearly invisible against maroon header.
     Now uses a gold-tinted border + visible icon color so users can find it. */
  background: rgba(200, 152, 28, 0.15);
  border: 1.5px solid rgba(200, 152, 28, 0.5);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
@media (hover: hover) {
  .header-search-btn:hover { background: var(--gold); color: var(--maroon-dark); border-color: var(--gold); }
}

/* Mobile overlay — fixed: replaced inset:0 with explicit properties */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.6);
  z-index: 799;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* Search Overlay — fixed: replaced inset:0 with explicit properties */
.search-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(90,18,18,.96);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 10vh, 8vh) 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__inner { width: 100%; max-width: 680px; }
.search-overlay__input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--ff-display);
  /* min 16px prevents iOS auto-zoom */
  font-size: max(1rem, clamp(1rem, 4vw, var(--fs-2xl)));
  padding: 1rem 3.5rem 1rem 1.25rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-overlay__input::placeholder { color: rgba(255,255,255,.3); }
.search-overlay__submit { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.search-overlay__form { position: relative; }
.search-overlay__close { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,.5); font-size: 1.75rem; transition: color var(--transition); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
@media (hover: hover) { .search-overlay__close:hover { color: var(--white); } }
.search-overlay__hint { margin-top: 1rem; font-family: var(--ff-ui); font-size: var(--fs-xs); color: rgba(255,255,255,.3); }

/* ── Hero Section ───────────────────────────────────────────── */
.site-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 45%, var(--saffron-dark) 100%);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8981C' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.site-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--ivory);
  /* fallback for browsers without clip-path support */
  border-radius: 50% 50% 0 0 / 0 0 100% 100%;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.site-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-hero__content { flex: 1; min-width: 0; }
.site-hero__om {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: .75rem;
  display: block;
  opacity: .9;
  text-shadow: 0 4px 20px rgba(200,152,28,.4);
}
.site-hero__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 5vw, var(--fs-5xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.site-hero__heading em { font-style: italic; color: var(--gold-light); }
.site-hero__sub {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.site-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .85rem 2rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200,152,28,.4);
  min-height: 44px;
}
@media (hover: hover) {
  .site-hero__cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,152,28,.5); color: var(--maroon-dark); }
}

/* Calendar widget in hero */
.site-hero__calendar {
  flex-shrink: 0;
  /* Fallback background for browsers without backdrop-filter */
  background: var(--maroon);
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(200,152,28,.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.site-hero__cal-month {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: .3rem .75rem;
  background: rgba(200,152,28,.2);
  border-radius: 50px;
  margin-bottom: .75rem;
  display: inline-block;
}
.site-hero__cal-day {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .4rem;
}
.site-hero__cal-weekday { font-family: var(--ff-ui); font-size: var(--fs-sm); color: rgba(255,255,255,.7); font-weight: 500; }
.site-hero__cal-tithi { font-size: var(--fs-xs); color: var(--gold-light); margin-top: .4rem; font-style: italic; font-family: var(--ff-body); }

/* ── Today's Special Banner ─────────────────────────────────── */
.today-special-banner {
  background: linear-gradient(90deg, var(--gold-pale), var(--ivory));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.today-special-banner__icon { font-size: 2rem; flex-shrink: 0; }
.today-special-banner__text strong {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--maroon-dark);
  display: block;
  margin-bottom: .2rem;
}
.today-special-banner__text span { font-family: var(--ff-ui); font-size: var(--fs-sm); color: var(--gray-600); }
.today-notice {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: .6rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

/* ── Main Layout ────────────────────────────────────────────── */
.site-main { padding: clamp(2rem, 5vw, 4rem) 0; }
.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.content-area.full-width { grid-template-columns: minmax(0, 1fr); }
.content-area.sidebar-left { grid-template-columns: 320px minmax(0, 1fr); }
.content-area.sidebar-left .main-column { order: 2; }
.content-area.sidebar-left .sidebar { order: 1; }
.main-column { min-width: 0; width: 100%; }

/* ── Post Cards ─────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}
.posts-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
/* posts-grid--col-3 is same as default .posts-grid (3 cols) */
.posts-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid--col-4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid--col-1 { grid-template-columns: 1fr; }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Hover only on real pointing devices — prevents sticky hover on mobile */
@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .post-card:hover .post-card__image-wrap img { transform: scale(1.06); }
}

.post-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-100);
}
.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card__image-wrap--placeholder { aspect-ratio: 16/10; }
.post-card__no-image {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--saffron-pale), var(--gold-pale));
  font-size: 3rem;
}

.post-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 50px;
  line-height: 1.4;
  z-index: 1;
}
.badge-festivals        { background: var(--saffron);     color: var(--white); }
.badge-bhajan           { background: var(--teal);         color: var(--white); }
.badge-mantra           { background: var(--maroon);       color: var(--white); }
.badge-aarti-collection { background: var(--lotus-pink);   color: var(--white); }
.badge-ekadashi         { background: var(--deep-red);     color: var(--white); }
.badge-vrat-katha       { background: #6B3FA0;             color: var(--white); }
.badge-gods-and-goddesses{ background: var(--gold);        color: var(--maroon-dark); }
.badge-saints           { background: #1A6B7A;             color: var(--white); }
.badge-temple           { background: #4A7A1A;             color: var(--white); }
.badge-vastu-shastra    { background: #7A4A1A;             color: var(--white); }
.badge-spirituality     { background: #3A1A7A;             color: var(--white); }
.badge-religion         { background: #7A1A5A;             color: var(--white); }
.badge-trending         { background: var(--saffron-dark); color: var(--white); }
.badge-default          { background: var(--gray-600);     color: var(--white); }

.post-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-card__meta {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.post-card__meta time { color: var(--saffron); font-weight: 600; }
.post-card__meta .sep { color: var(--gray-300); }
.post-card__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  font-weight: 600;
  color: var(--maroon-dark);
  line-height: 1.35;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-card__title a { transition: color var(--transition); }
@media (hover: hover) { .post-card__title a:hover { color: var(--saffron); } }
.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__read-more {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .25rem;
  transition: gap var(--transition);
  min-height: 44px;
}
@media (hover: hover) {
  .post-card__read-more:hover { gap: .55rem; color: var(--maroon); }
}

/* ── Hero Post Card ───────────────────────────────────────────── */
.post-card--hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card--hero .post-card__image-wrap { aspect-ratio: auto; min-height: 280px; }
.post-card--hero .post-card__body { padding: 2rem; justify-content: center; }
.post-card--hero .post-card__title { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }

/* ── Date Section ───────────────────────────────────────────── */
.date-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ── Category Grid ──────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
  .category-card:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}
.category-card__icon { font-size: 2rem; line-height: 1; }
.category-card__name {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--maroon-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.category-card__count { font-family: var(--ff-ui); font-size: .68rem; color: var(--gray-400); }

/* ── God Card ───────────────────────────────────────────────── */
.gods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.god-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
}
@media (hover: hover) {
  .god-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
  .god-card:hover .god-card__image img { transform: scale(1.05); }
}
.god-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--saffron-pale), var(--gold-pale));
}
.god-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.god-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--maroon-dark);
  padding: .75rem .5rem .9rem;
  line-height: 1.3;
}

/* ── Mantra Feature Card ────────────────────────────────────── */
.mantra-feature {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mantra-feature::before {
  content: '🪷';
  position: absolute;
  top: -1rem; right: 2rem;
  font-size: 8rem;
  opacity: .05;
  line-height: 1;
  pointer-events: none;
}
.mantra-feature__label {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.mantra-feature__label::before,
.mantra-feature__label::after { content: ''; width: 40px; height: 1px; background: var(--gold); opacity: .5; }
.mantra-feature__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-4xl));
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.mantra-feature__excerpt {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-style: italic;
  line-height: 1.8;
}
.mantra-feature__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .75rem 1.75rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: all var(--transition);
  min-height: 44px;
}
@media (hover: hover) {
  .mantra-feature__link:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--maroon-dark); }
}

/* ── List Post Style ────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-list-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: .85rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
  .post-list-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
}
.post-list-item__image {
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}
.post-list-item__image img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item__body { flex: 1; min-width: 0; }
.post-list-item__cat { font-family: var(--ff-ui); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); margin-bottom: .2rem; }
.post-list-item__title { font-family: var(--ff-display); font-size: var(--fs-base); font-weight: 600; color: var(--maroon-dark); line-height: 1.35; margin-bottom: .3rem; }
@media (hover: hover) { .post-list-item__title a:hover { color: var(--saffron); } }
.post-list-item__date { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); }

/* ── Shloka Block ───────────────────────────────────────────── */
.shloka-block {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.shloka-block__text { font-family: var(--ff-display); font-size: var(--fs-lg); font-style: italic; color: var(--maroon-dark); line-height: 1.7; }
.shloka-block__source { font-family: var(--ff-ui); font-size: var(--fs-sm); color: var(--gray-600); margin-top: .5rem; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--ivory-dark);
  border-bottom: 1px solid var(--gray-200);
  padding: .6rem 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb .container { display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; white-space: nowrap; }
.breadcrumb a { color: var(--saffron); }
@media (hover: hover) { .breadcrumb a:hover { color: var(--maroon); } }
.breadcrumb .bc-sep { color: var(--gray-300); font-size: .8rem; }
.breadcrumb [aria-current="page"] { color: var(--gray-800); white-space: normal; }

/* ── Single Post ────────────────────────────────────────────── */
.single-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  padding: clamp(2rem, 5vw, 4rem) 0 0;
  position: relative;
}
.single-hero__category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(200,152,28,.2);
  border: 1px solid rgba(200,152,28,.3);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
@media (hover: hover) { .single-hero__category:hover { background: var(--gold); color: var(--maroon-dark); } }
.single-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-5xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 860px;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.single-hero__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.65);
  padding-bottom: 2rem;
  width: 100%;
  overflow-wrap: break-word;
}
.single-hero__meta strong { color: rgba(255,255,255,.9); }
.single-hero__meta .sep { color: rgba(255,255,255,.3); }
.single-hero__meta time { color: var(--gold-light); }
.single-featured-image {
  margin-top: 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 520px;
  max-width: 100%;
}
.single-featured-image img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; display: block; }

/* ── Entry Content ──────────────────────────────────────────── */
.entry-content {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  line-height: 1.85;
  color: var(--gray-800);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); color: var(--maroon-dark); border-left: 4px solid var(--gold); padding-left: .75rem; margin-top: 2.5rem; line-height: 1.2; }
.entry-content h3 { font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); color: var(--maroon); margin-top: 2rem; }
.entry-content h4 { font-size: var(--fs-xl); color: var(--maroon); margin-top: 1.5rem; }
.entry-content p { color: var(--gray-800); line-height: 1.85; margin-top: 1.25em; }
.entry-content a { color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .entry-content a:hover { color: var(--maroon); } }
.entry-content strong { font-weight: 700; color: var(--maroon-dark); }
.entry-content em { font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: var(--maroon-dark);
  margin: 2rem 0;
}
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem auto; max-width: 100%; height: auto; }

/* Tables */
.entry-content table {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  margin: 2rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--gray-200);
}
.entry-content table th { background: var(--maroon); color: var(--white); padding: .75rem 1rem; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; text-align: left; white-space: nowrap; }
.entry-content table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: var(--fs-sm); }
.entry-content table tr:nth-child(even) td { background: var(--ivory-dark); }
.entry-content figure.wp-block-table { overflow-x: auto; max-width: 100%; }

/* Pre/code */
.entry-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  max-width: 100%;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: var(--fs-sm);
}
.entry-content code { word-break: break-all; font-size: .92em; background: var(--gray-100); padding: .15em .4em; border-radius: 3px; }
.entry-content pre code { background: none; padding: 0; word-break: normal; }

/* Iframes */
.entry-content iframe { max-width: 100%; width: 100%; }
.entry-content .wp-block-embed,
.entry-content .embed-responsive { max-width: 100%; width: 100%; }
.entry-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed__wrapper video {
  position: absolute; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
}

/* Blocks */
.entry-content .wp-block-columns { flex-wrap: wrap; }
.entry-content .wp-block-column { min-width: 0; }
/* ── Gutenberg image block ────────────────────────────────────────────────────
   ROOT CAUSE OF VERTICAL CAPTION BUG:
   Using display:flex + align-items:center on the figure shrinks every flex
   child (including figcaption) to its *content* width — as narrow as the
   longest single word — causing one word per line stacking.
   FIX: display:block on the figure + margin:0 auto on the img.
   The img centers itself; figcaption is a normal block = always full-width. */
.entry-content figure.wp-block-image,
.entry-content figure.wp-block-image.aligncenter,
.entry-content figure.wp-block-image.alignleft,
.entry-content figure.wp-block-image.alignright {
  display: block;          /* NOT flex — flex was shrinking figcaption */
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  box-sizing: border-box;
}
.entry-content figure.wp-block-image.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; width: auto; max-width: 50%; }
.entry-content figure.wp-block-image.alignright { float: right; margin: 0 0 1rem 1.5rem; width: auto; max-width: 50%; }

/* Image: margin:auto centers it inside the full-width block figure */
.entry-content figure.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;   /* centers the image; figure is block so this works */
}

/* Caption: block element inside a block figure = always stretches full width.
   No flex, no fit-content — just a plain block with centered text. */
.entry-content figcaption,
.entry-content .wp-element-caption,
.entry-content figure.wp-block-image figcaption {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--gray-400);
  font-style: italic;
  margin-top: .4rem;
  padding: 0 .5rem;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
}

/* WordPress Alignment classes */
.entry-content .alignleft  { float: left;  margin: 0 1.5rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 50%; }
.entry-content .aligncenter { display: block; margin: 1.5rem auto; }
.entry-content .alignwide  { max-width: none; margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); }
.entry-content .alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
/* Classic editor caption — same fix: block not flex, img centers via margin:auto */
.entry-content .wp-caption {
  display: block;
  width: 100% !important;   /* override WordPress's inline style="width:Xpx" */
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem 0;
}
.entry-content .wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.entry-content .wp-caption-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--gray-400);
  font-style: italic;
  margin-top: .4rem;
  padding: 0 .5rem;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
}
.entry-content .wp-block-pullquote { border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); padding: 2rem 0; text-align: center; }

/* ── Page Links (wp_link_pages) ─────────────────────────────── */
.page-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
}
.page-links__label { font-weight: 700; color: var(--gray-600); margin-right: .25rem; }
.page-links span span,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
  background: var(--saffron);
  color: var(--white);
  font-weight: 700;
}
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  font-weight: 600;
  transition: all var(--transition);
}
@media (hover: hover) { .page-links a:hover { border-color: var(--saffron); color: var(--saffron); } }

/* ── Tags ───────────────────────────────────────────────────── */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.entry-tag {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--saffron);
  background: var(--saffron-pale);
  border: 1px solid rgba(232,96,26,.2);
  padding: .3rem .8rem;
  border-radius: 50px;
  transition: all var(--transition);
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
@media (hover: hover) { .entry-tag:hover { background: var(--saffron); color: var(--white); } }

/* ── Author Box ─────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
  border: 1px solid var(--gray-200);
}
.author-box__avatar img { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; border: 3px solid var(--gold); display: block; }
.author-box__info { flex: 1; min-width: 0; }
.author-box__name { font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 700; color: var(--maroon-dark); margin-bottom: .3rem; }
.author-box__bio { font-size: var(--fs-sm); color: var(--gray-600); line-height: 1.65; }

/* ── Post Navigation ────────────────────────────────────────── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.post-nav-item {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
/* Empty slot when no prev/next — invisible placeholder keeps grid balanced */
.post-nav-item--empty { background: none; border: none; box-shadow: none; pointer-events: none; }
@media (hover: hover) { .post-nav-item:not(.post-nav-item--empty):hover { border-color: var(--gold); box-shadow: var(--shadow); } }
.post-nav-item--next { text-align: right; }
.post-nav-label { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; color: var(--saffron); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.post-nav-title { font-family: var(--ff-display); font-size: var(--fs-base); color: var(--maroon-dark); line-height: 1.35; }

/* ── Related Posts ──────────────────────────────────────────── */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gold-pale);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: static; max-height: none; overflow-y: visible; overflow-x: visible; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; }
.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.widget ul li { border-bottom: 1px solid var(--gray-100); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
  transition: color var(--transition);
  min-height: 44px;
}
@media (hover: hover) { .widget ul li a:hover { color: var(--saffron); } }
.widget .post-count {
  font-size: .7rem;
  background: var(--saffron-pale);
  color: var(--saffron);
  padding: .15rem .5rem;
  border-radius: 50px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .65rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
}
@media (hover: hover) { .pagination a:hover { border-color: var(--saffron); color: var(--saffron); } }
.pagination .current { background: var(--saffron); border-color: var(--saffron); color: var(--white); }
.pagination .dots { border: none; background: none; min-width: auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,.7);
  margin-top: 3rem;
}
.footer-top {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(200,152,28,.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand .site-title { font-size: var(--fs-2xl); color: var(--white); margin-bottom: .5rem; }
.footer-brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.55); line-height: 1.7; margin-top: .75rem; }
.footer-om { font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: .5rem; display: block; }
.footer-widget h4 {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-widget ul li { margin-bottom: .45rem; }
.footer-widget ul li a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .2rem 0;
}
@media (hover: hover) { .footer-widget ul li a:hover { color: var(--gold-light); } }
.footer-widget ul li a::before { content: '›'; color: var(--gold); }
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.4); }
.footer-bottom a { color: var(--gold-light); }
@media (hover: hover) { .footer-bottom a:hover { color: var(--gold); } }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-nav li a, .footer-nav a { font-family: var(--ff-ui); font-size: var(--fs-xs); color: rgba(255,255,255,.45); transition: color var(--transition); min-height: 44px; display: flex; align-items: center; }
@media (hover: hover) { .footer-nav li a:hover, .footer-nav a:hover { color: var(--gold-light); } }

/* ── No Posts / Empty States ────────────────────────────────── */
.no-posts { text-align: center; padding: 3rem 1rem; }
.no-posts__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.no-posts__title { font-family: var(--ff-display); font-size: var(--fs-xl); color: var(--gray-600); }

/* ── Search Form ────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; }
/* Both old class names (.search-form input) and new semantic names */
.search-form input[type="search"],
.search-field {
  flex: 1;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}
.search-form input[type="search"]:focus,
.search-field:focus { border-color: var(--saffron); }
.search-form button,
.search-submit {
  /* FIX: Added explicit border + stronger contrast to ensure button is always
     clearly distinguishable from both the input field and the background. */
  background: var(--saffron);
  color: var(--white);
  border: 2px solid var(--saffron-dark);
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .03em;
  transition: background var(--transition), border-color var(--transition);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
@media (hover: hover) {
  .search-form button:hover,
  .search-submit:hover {
    background: var(--maroon);
    border-color: var(--maroon-dark);
    color: var(--white);
  }
}

/* ── Archive / Category Header ──────────────────────────────── */
.archive-header {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.archive-header__eyebrow { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .5rem; }
.archive-header__title { font-family: var(--ff-display); font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); font-weight: 700; color: var(--white); overflow-wrap: break-word; }
.archive-header__desc { font-size: var(--fs-base); color: rgba(255,255,255,.65); margin-top: .5rem; max-width: 600px; }

/* ── Comments ───────────────────────────────────────────────── */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: var(--fs-2xl); margin-bottom: 1.5rem; }
.comment-list { padding: 0; list-style: none; }
.witd-comment { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-100); }
.comment-inner { display: flex; gap: 1rem; }
.comment-avatar img { border-radius: 50%; border: 2px solid var(--gold-pale); flex-shrink: 0; }
.comment-meta-text { flex: 1; min-width: 0; }
.comment-author-name { font-family: var(--ff-ui); font-weight: 700; color: var(--maroon-dark); display: block; margin-bottom: .15rem; font-size: var(--fs-sm); }
.comment-date { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); }
.comment-body { font-size: var(--fs-sm); color: var(--gray-800); margin-top: .75rem; line-height: 1.7; }
.comment-reply-link {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--saffron);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: .25rem;
}
.comment-awaiting {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  font-style: italic;
  padding: .3rem 0;
  margin-top: .5rem;
}
.comment-edit-link, .comment-edit {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--saffron);
  margin-top: .35rem;
  display: inline-block;
}
.no-comments {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-400);
  font-style: italic;
  padding: 1rem 0;
}

/* ── Comment Reply Title ────────────────────────────────────── */
.comment-reply-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--maroon-dark);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.comment-reply-title small { font-size: var(--fs-sm); margin-left: .5rem; }
.comment-reply-title small a { color: var(--saffron); font-family: var(--ff-ui); font-weight: 600; }

/* ── Comment Form Fields ────────────────────────────────────── */
.devbhumi-comment-form,
.comment-form { max-width: 100%; }

.comment-form-row {
  margin-bottom: 1.1rem;
}
.comment-form-row label,
.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label,
.comment-form .comment-form-url label {
  display: block;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.comment-form .required { color: var(--saffron); }
.comment-form-row input,
.comment-form-row textarea,
.comment-form .comment-form-comment textarea,
.comment-form .comment-form-author input,
.comment-form .comment-form-email input,
.comment-form .comment-form-url input {
  width: 100%;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: var(--ff-ui);
  /* min 16px prevents iOS auto-zoom on focus */
  font-size: 16px;
  color: var(--gray-800);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.comment-form-row input:focus,
.comment-form-row textarea:focus,
.comment-form .comment-form-author input:focus,
.comment-form .comment-form-email input:focus,
.comment-form .comment-form-url input:focus,
.comment-form .comment-form-comment textarea:focus {
  border-color: var(--saffron);
  background: var(--white);
}
.comment-form-row textarea,
.comment-form .comment-form-comment textarea { min-height: 140px; resize: vertical; }

/* ── 404 ────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: clamp(3rem, 10vw, 7rem) 1rem; }
.error-404__icon { font-size: 5rem; margin-bottom: 1.5rem; }
.error-404__title { font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl)); margin-bottom: 1rem; color: var(--maroon-dark); }
.error-404__text { color: var(--gray-600); margin-bottom: 2rem; font-size: var(--fs-lg); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--saffron);
  color: var(--white);
  font-family: var(--ff-ui);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  transition: all var(--transition);
  min-height: 44px;
}
@media (hover: hover) { .btn-primary:hover { background: var(--maroon); color: var(--white); transform: translateY(-2px); } }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--ivory-dark);
  border-bottom: 2px solid var(--gold-pale);
  padding: 2rem 0;
  margin-bottom: 2.5rem;
}
.page-hero__title { font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); color: var(--maroon-dark); overflow-wrap: break-word; }

/* ── Quote / Shloka Block ───────────────────────────────────── */
.shloka-block {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.shloka-block__text { font-family: var(--ff-display); font-size: var(--fs-lg); font-style: italic; color: var(--maroon-dark); line-height: 1.7; }
.shloka-block__source { font-family: var(--ff-ui); font-size: var(--fs-sm); color: var(--gray-600); margin-top: .5rem; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── ≤1100px: Wide tablet ───────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .posts-grid--col-4 { grid-template-columns: repeat(2, 1fr); }
  .content-area { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* ── ≤900px: Tablet / small laptop ─────────────────────────── */
@media (max-width: 900px) {
  .content-area,
  .content-area.sidebar-left { grid-template-columns: 1fr; }
  .content-area.sidebar-left .main-column { order: 1; }
  .content-area.sidebar-left .sidebar { order: 2; }
  .sidebar { position: static; max-height: none; overflow-y: visible; }
  /* Hide sidebar below 900px — it stacks below content and clutters layout */
  .sidebar { display: none; }

  /* posts-grid: 2 cols on tablet (no sidebar) */
  .posts-grid,
  .posts-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--col-4 { grid-template-columns: repeat(2, 1fr); }

  .post-card--hero { grid-column: span 1; grid-template-columns: 1fr; }
  .post-card--hero .post-card__image-wrap { min-height: 220px; }

  .gods-grid { grid-template-columns: repeat(3, 1fr); }

  .site-hero .container { flex-direction: column; text-align: center; }
  .site-hero__sub { margin-left: auto; margin-right: auto; }
  .site-hero__calendar { width: 100%; max-width: 260px; }
  .site-hero__content { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ≤720px: Mobile ─────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Nav drawer */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    flex: 0;
    width: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    background: var(--maroon-dark);
    z-index: 1100;
    padding: 0;
    transition: right var(--transition), width var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,.4);
  }
  .main-nav.is-open {
    right: 0;
    width: 85vw;
    max-width: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5rem 1.5rem 2rem;
    /* Allow scrolling inside nav on iOS */
    overscroll-behavior: contain;
  }
  .nav-overlay { display: block; }
  .nav-close-btn { display: flex; }
  .menu-toggle { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: .25rem; justify-content: flex-start; }
  .nav-menu > li > a { min-height: 52px; font-size: var(--fs-base); }
  .nav-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    background: rgba(255,255,255,.05);
    margin-top: .25rem;
    border-radius: var(--radius-sm);
    padding: .25rem .5rem;
  }

  .top-bar { display: none; }
  .lang-switcher { order: -1; }
  .lang-switcher__btn { padding: .28rem .55rem; font-size: 12px; }

  /* Grids: 1 col on mobile */
  .posts-grid,
  .posts-grid--col-2,
  .posts-grid--col-3,
  .posts-grid--col-4 { grid-template-columns: 1fr; }

  /* Between 480-720px: category & gods grids fit 2-3 items */
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .gods-grid { grid-template-columns: repeat(2, 1fr); }

  .post-navigation { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }

  /* Post card hero stacks */
  .post-card--hero { display: flex; flex-direction: column; grid-template-columns: unset; }
  .post-card--hero .post-card__image-wrap { min-height: 200px; aspect-ratio: 16/9; }
  .post-card--hero .post-card__body { padding: 1.25rem; }

  /* Footer */
  .footer-brand .site-title { font-size: var(--fs-xl); }
  .footer-om { font-size: 1.75rem; }
  .footer-top { padding: 2rem 0; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .75rem; }
  .footer-nav { justify-content: center; }

  /* Section header row */
  .section-header-row { gap: .5rem; }
  .section-header-row__line { display: none; }
  .section-view-all { margin-left: auto; }

  /* Post nav */
  .post-nav-item--next { text-align: left; }

  /* Single post */
  .single-hero { padding: 1.5rem 0 0; }
  .single-hero__title { max-width: 100%; }
  .single-featured-image { border-radius: var(--radius) var(--radius) 0 0; }

  /* Float fix on mobile */
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .entry-content .wp-block-columns { flex-direction: column; }
  .entry-content .wp-block-column { width: 100%; max-width: 100%; }

  /* Comment form */
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url { width: 100%; }
}

/* ── ≤480px: Small phones ───────────────────────────────────── */
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gods-grid { grid-template-columns: repeat(2, 1fr); }

  .site-hero__calendar {
    padding: 1rem 1.25rem;
    min-width: unset;
    width: 100%;
  }
  .site-hero__cal-day { font-size: clamp(2.5rem, 12vw, 3.5rem); }

  .today-special-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .85rem 1rem;
  }
  .today-special-banner__icon { font-size: 1.5rem; }
  .today-special-banner__text strong { font-size: var(--fs-lg); }

  .mantra-feature::before { font-size: 5rem; right: 1rem; top: -.5rem; }
  .mantra-feature { padding: 1.5rem 1.25rem; }

  /* Content typography on tiny screens */
  .entry-content h2 { font-size: var(--fs-xl); padding-left: .5rem; }
  .entry-content h3 { font-size: var(--fs-lg); }
  .entry-content h4 { font-size: var(--fs-base); }
  .entry-content p  { font-size: var(--fs-base); line-height: 1.75; }
  .entry-content ul,
  .entry-content ol { padding-left: 1.15rem; }
  .entry-content blockquote { padding: .85rem 1rem; }
  .shloka-block { padding: 1rem 1.1rem; }

  .author-box { padding: 1rem; gap: .85rem; }
  .author-box__avatar img { width: 60px; height: 60px; }

  /* iOS: prevent input zoom (must be exactly 16px) */
  input, textarea, select { font-size: 16px !important; }
  .search-overlay__input { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .sidebar, .post-navigation, .related-posts,
  .reading-progress, .back-to-top { display: none !important; }
  body { font-size: 12pt; background: white; }
  .entry-content { max-width: 100%; font-size: 11pt; }
  .single-hero { background: none !important; }
  .single-hero__title,
  .single-hero__meta,
  .single-hero__category { color: #000 !important; }
  a { color: inherit !important; }
  .entry-content a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY: Reduced Motion
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reading-progress { transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER & HINDI SUPPORT
   ═══════════════════════════════════════════════════════════════ */

.nav-close-btn {
  display: none;
  position: absolute;
  top: calc(var(--header-height) - 0.5rem);
  right: 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-close-btn span { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 600; }
@media (hover: hover) { .nav-close-btn:hover { background: rgba(255,255,255,.2); color: var(--white); } }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-switcher__btn {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: .3rem .65rem;
  border-radius: 3px;
  transition: all var(--transition);
  line-height: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}
@media (hover: hover) { .lang-switcher__btn:hover { color: var(--gold-light); background: rgba(200,152,28,.2); } }
.lang-switcher__btn--active {
  background: var(--gold);
  color: var(--maroon-dark) !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Hindi font support */
.lang-switcher__btn[hreflang="hi"],
body.lang-hi .entry-content,
body.lang-hi .single-hero__title,
body.lang-hi .post-card__title,
body.lang-hi .page-hero__title {
  font-family: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
}
body.lang-hi .entry-content { font-size: 1.08em; line-height: 1.9; }
body.lang-hi { --ff-hindi: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif; }

/* Hindi unavailable notice */
.hindi-unavailable-notice {
  background: rgba(200,152,28,.12);
  border: 1px solid rgba(200,152,28,.3);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gold-light);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & WP DEFAULTS
   ══════════════════════════════════════════════════════════════════════════ */

/* Screen reader utility (WordPress standard) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--saffron);
  clip: auto !important;
  clip-path: none;
  color: var(--white);
  display: block;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 7px;
  width: auto;
  z-index: 9999;
}

/* Site branding link — no default underline */
.site-branding__link { text-decoration: none; display: block; }

/* WordPress default button styles (used by comment form etc.) */
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
  text-decoration: none;
  background: var(--saffron);
  color: var(--white);
}
@media (hover: hover) {
  .button:hover,
  .wp-block-button__link:hover,
  input[type="submit"]:hover,
  button[type="submit"]:hover {
    background: var(--maroon);
    color: var(--white);
    transform: translateY(-2px);
  }
}

/* WordPress .notice (used in admin-like messages) */
.notice, .wp-notice {
  background: var(--ivory-dark);
  border-left: 4px solid var(--saffron);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  margin: 1rem 0;
}

/* ── Comment list wrapper ──────────────────────────────────────────── */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comment-list .children {
  list-style: none;
  padding-left: clamp(1rem, 4vw, 2rem);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.comment-reply-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--maroon-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.comment-reply-title small { font-size: var(--fs-sm); margin-left: .5rem; }
.comment-reply-title small a { color: var(--saffron); font-family: var(--ff-ui); font-weight: 600; }

/* WordPress comment form fields */
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label {
  display: block;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-family: var(--ff-ui);
  font-size: 16px; /* Never below 16px — prevents iOS auto-zoom */
  color: var(--gray-800);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--saffron);
  background: var(--white);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit { margin-top: .5rem; }
.comment-form .form-submit .submit { /* WP adds class="submit" to the button */
  background: var(--saffron);
  color: var(--white);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: .04em;
  min-height: 48px;
  width: auto;
  display: inline-flex;
  align-items: center;
}
@media (hover: hover) {
  .comment-form .form-submit .submit:hover { background: var(--maroon); }
}


/* ═══════════════════════════════════════════════════════════════
   CARD ANIMATIONS — Progressive Enhancement
   Cards are VISIBLE by default. JS adds .will-animate class which
   sets opacity:0 temporarily. .is-visible restores them.
   If JS fails, cards remain fully visible (no content loss).
   prefers-reduced-motion: skip all transitions entirely.
   ═══════════════════════════════════════════════════════════════ */
.will-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .will-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   YEARLY DYNAMIC CONTENT SYSTEM
   Year selector bar, yearly block wrapper, responsive adjustments
   ═══════════════════════════════════════════════════════════════ */

/* Year Selector Bar */
.devbhumi-year-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fef6ea 0%, #fff8f0 100%);
  border: 1px solid #f0c070;
  border-left: 4px solid #E8601A;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0 0 28px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(232, 96, 26, 0.08);
}

.devbhumi-year-selector__label {
  font-weight: 700;
  color: #5a3800;
  white-space: nowrap;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.devbhumi-year-selector__years {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.devbhumi-year-selector__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 16px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #E8601A;
  color: #E8601A;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  line-height: 1.3;
}

.devbhumi-year-selector__year:hover {
  background: #E8601A;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(232, 96, 26, 0.30);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.devbhumi-year-selector__year--active {
  background: #E8601A;
  color: #fff !important;
  border-color: #E8601A;
  box-shadow: 0 2px 8px rgba(232, 96, 26, 0.25);
  pointer-events: none;
  cursor: default;
}

/* Yearly content block wrapper */
.devbhumi-yearly-block {
  position: relative;
}

.devbhumi-yearly-block > *:first-child { margin-top: 0; }
.devbhumi-yearly-block > *:last-child  { margin-bottom: 0; }

/* Admin indicator for empty slots (logged-in editors only) */
.dyb-sc-empty {
  background: #fff3cd;
  border: 2px dashed #c8981c;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #856404;
  margin: 12px 0;
}

.dyb-sc-error {
  background: #f8d7da;
  border: 2px dashed #d63638;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #721c24;
  margin: 8px 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .devbhumi-year-selector__year { transition: none !important; transform: none !important; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .devbhumi-year-selector { padding: 10px 14px; gap: 10px; }
  .devbhumi-year-selector__year { min-width: 54px; padding: 4px 12px; font-size: 13px; }
}
