/* Fix hero buttons and stats — overrides theme defaults */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

/* --- Navbar logo: a round block-level link, so the theme's gold
   :focus-visible outline wraps the badge as a circle instead of breaking
   into stray fragments around an inline box; no outline on mouse focus. --- */
nav a.sn-logo-link{display:inline-flex;flex-shrink:0;border-radius:50%;outline:none;}
nav a.sn-logo-link:focus-visible{outline:2px solid #E8C34A;outline-offset:3px;border-radius:50%;}
nav a.sn-logo-link .sn-logo{display:block;}

/* --- Hero outline buttons: thicker, brighter gold border ---
   Scoped to .rounded-xl so the gold Bhagavad Gita topic/explore cards
   (a.group.rounded-2xl.border-gold/40, light background) are untouched. */
main a.group.rounded-xl.border-gold\/40 {
  border: 2px solid #E8C34A !important;
  box-shadow: 0 0 0 3px rgba(232,195,74,.18), 0 6px 18px rgba(0,0,0,.15) !important;
  color: #F3F0FA !important;
}
main a.group.rounded-xl.border-gold\/40:hover {
  border-color: #FFF6D6 !important;
  box-shadow: 0 0 0 4px rgba(232,195,74,.3), 0 8px 22px rgba(232,195,74,.3) !important;
  background: rgba(255,255,255,.12) !important;
}

/* --- Stats numbers: ensure they render big and visible ---
   Scoped to the stat counter card (.group.py-8 > div > number) so page
   headings that also use text-[32px] keep their own styling. */
main .group.py-8 > div > .text-\[32px\] {
  font-size: 32px !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  color: #20154A !important;
  line-height: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html.sn-dark main .group.py-8 > div > .text-\[32px\] {
  color: #F3DFA0 !important;
}

/* --- Page background: match reference exactly --- */
html:not(.sn-dark) body {
  background:
    radial-gradient(circle at 8% 6%, rgba(107,57,199,.05), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(232,196,90,.04), transparent 28%),
    linear-gradient(180deg, #FBFAFE 0%, #F6F3FB 55%, #F3F0FA 100%) !important;
  background-attachment: fixed !important;
}

/* --- Stats row: softer gold borders instead of solid ---
   Scoped to the Home stats row (border-b bg-white wrapper around the
   4-column grid) so other border-gray dividers and the sticky modal
   headers in AdminPanel/GuruPortal keep their solid styling. */
main div.border-b.bg-white:has(> .grid.md\:grid-cols-4) {
  border-bottom: 1px solid rgba(232,195,74,.18) !important;
  background: rgba(255,255,255,.55) !important;
}

/* Stats card internal grid borders */
main div.border-b.bg-white > .grid.md\:grid-cols-4 > .border-r {
  border-right-color: rgba(232,195,74,.18) !important;
}

/* ═══ Featured Shloka ═══
   The shloka card is the only .relative.rounded-2xl.overflow-hidden with
   the #F6F4FC inline gradient (the theme targets it the same way), and the
   shloka lines are the only p.font-serif inside .relative.z-10.px-3 —
   everything below is scoped to those so other cards/serif text are untouched. */

/* --- Featured Shloka: force dark navy for Sanskrit text (not gold) --- */
main .relative.z-10.px-3 > p.font-serif {
  color: #20154A !important;
}

/* Last line of shloka (the "॥ ४ ॥" style line) */
main .relative.z-10.px-3 > p.font-serif[class*="text-brand"] {
  color: #6933C9 !important;
}

/* Dark mode */
html.sn-dark main .relative.z-10.px-3 > p.font-serif {
  color: #F3DFA0 !important;
}

/* --- Featured Shloka card: gold double-border (light mode; the white
   inset ring would look wrong on the theme's dark card) --- */
html:not(.sn-dark) main .relative.rounded-2xl.overflow-hidden[style*="rgb(246, 244, 252)"] {
  border: 1.5px solid rgba(232,195,74,.55) !important;
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,.75),
    inset 0 0 0 6.5px rgba(232,195,74,.35),
    0 10px 26px rgba(48,28,88,.08) !important;
}

/* --- Featured Shloka label: horizontal pill --- */
main .text-\[11px\].font-bold.text-brand\/70.uppercase {
  background: transparent !important;
  border: 1px solid rgba(232,195,74,.35) !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  color: #6933C9 !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  white-space: nowrap !important;
}

/* --- Topic cards (Browse by Topic) --- */
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"] {
  border: 1.5px solid rgba(232,195,74,.5) !important;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.6),
    inset 0 0 0 4.5px rgba(232,195,74,.25),
    0 6px 18px rgba(48,28,88,.06) !important;
  background: linear-gradient(150deg, #FFFFFF 0%, #FAF7FF 100%) !important;
}

main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"]:hover {
  border-color: #E8C34A !important;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.8),
    inset 0 0 0 4.5px rgba(232,195,74,.5),
    0 12px 28px rgba(48,28,88,.12),
    0 0 18px rgba(232,195,74,.22) !important;
  transform: translateY(-3px) !important;
}

/* Code badge (BG, SB, VN, DH): purple circle, gold letters */
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group > div:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #45218B, #6933C9) !important;
  color: #E8C34A !important;
  opacity: 1 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
}

/* Force title inside topic cards to serif and dark */
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"] [class*="font-semibold"] {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 19px !important;
  color: #20154A !important;
}

/* Description in gray (the theme keeps it always visible) */
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group > div:last-child {
  color: #4A4162 !important;
}

/* Dark mode for topic cards */
html.sn-dark main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"] {
  background: linear-gradient(150deg, #241650 0%, #1C1240 100%) !important;
  border-color: rgba(232,195,74,.5) !important;
}
html.sn-dark main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"] [class*="font-semibold"] {
  color: #F3DFA0 !important;
}
html.sn-dark main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group > div:last-child {
  color: #B9B0D6 !important;
}

/* --- Force reveal headings ---
   sastranidhi-theme.js adds .sn-rv (opacity:0; translateY(26px)) to every
   main h2 and only reveals it once an IntersectionObserver adds .in —
   if that never fires the heading stays hidden. Force it visible. */
main h2 {
  color: #20154A !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* The gold underline below the h2 */
main h2::after {
  display: block !important;
  width: 64px !important;
  height: 3px !important;
  margin-top: 8px !important;
  background: linear-gradient(90deg, #45218B, #E8C34A) !important;
  border-radius: 2px !important;
}

main .text-center h2::after {
  margin-left: auto !important;
  margin-right: auto !important;
}

html.sn-dark main h2 {
  color: #F3DFA0 !important;
}

/* src/index.css sets `.dark .text-gray-900 { color:#F6F4FC !important }`,
   and that selector (0,2,0) outranks `main h2`. index.html now keeps .dark in
   step with sn-dark, but these [class] versions (0,2,3) make sure the theme's
   heading colours still win when .dark is on. */
html:not(.sn-dark) main h2[class] {
  color: #20154A !important;
}
html.sn-dark main h2[class] {
  color: #F3DFA0 !important;
}

/* --- Scripture cards: gold top accent strip --- */
main a.group[href*="?tag="]::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #E8C34A, #FFF6D6, #E8C34A) !important;
  background-size: 200% 100% !important;
  animation: snGoldFlow 6s linear infinite !important; /* keyframes defined in sastranidhi-theme.css */
  border-radius: 18px 18px 0 0 !important;
  opacity: 1 !important;
  z-index: 2 !important;
  display: block !important;
  pointer-events: none !important;
}

/* ═══ Home hero — sits on the page background (no separate block) ═══
   !important + extra specificity where sastranidhi-brand-final.css (loads
   last) forces colours on main p / .rounded-xl. */
/* --sn-dome: dome height; --sn-dome-gap: space from the crest to the buttons above and to the stats below.
   Set on main so the stats row (a sibling of .sn-hero) can use them too. */
main{--sn-dome:clamp(56px,5.5vw,84px);--sn-dome-gap:clamp(28px,3vw,46px);}
main .sn-hero{isolation:isolate;}

/* ═══ Home hero band + dome partition (as on sastranidhi.org) ═══
   ::before paints a full-bleed violet band (same gradient as the nav, so the
   two join seamlessly), masked by an ellipse at the bottom so the page
   background below rises into it as a dome. The thick gold rim is the
   .sn-hero-dome SVG, whose ellipse matches the mask exactly (cx 50%, rx 62%
   of the width, ry = --sn-dome). A pseudo-element is used because
   sastranidhi-theme.css forces `main > div > div` backgrounds transparent. */
body{overflow-x:clip;}
main .sn-hero::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);pointer-events:none;z-index:-2;
  background:
    radial-gradient(circle at 15% 0%,rgba(232,196,90,.14),transparent 38%),
    radial-gradient(circle at 85% 90%,rgba(160,110,240,.18),transparent 52%),
    var(--sn-header-gradient);
  -webkit-mask:radial-gradient(ellipse 62% var(--sn-dome) at 50% 100%,transparent 99.5%,#000 100%);
  mask:radial-gradient(ellipse 62% var(--sn-dome) at 50% 100%,transparent 99.5%,#000 100%);}
main .sn-hero-dome{position:absolute;bottom:0;left:50%;width:100vw;height:var(--sn-dome);transform:translateX(-50%);overflow:visible;pointer-events:none;z-index:-1;
  filter:drop-shadow(0 0 6px rgba(232,195,74,.45));}
/* Even spacing around the curve: the buttons sit --sn-dome-gap above its crest,
   and the stats row is pulled up into the dome so the cards' top edge sits the
   same --sn-dome-gap below the curve where it passes over the outer cards'
   corners. At those corners the curve is ~18px below its crest at every
   width (the arc is nearly flat over the cards), hence the +18px; the cards
   render ~2px below the wrapper's top, hence -2px. */
main .sn-hero > .relative{padding-bottom:calc(var(--sn-dome) + var(--sn-dome-gap)) !important;}
main .sn-hero:not(.sn-hero--compact) + *{margin-top:calc(var(--sn-dome-gap) + 16px - var(--sn-dome)) !important;position:relative;}

/* ═══ Inner-page heading (components/PageHero.js) ═══
   Same band + dome as Home, with a gold all-caps title like sastranidhi.org's
   inner pages. `html body` beats sastranidhi-brand-final.css's `main h1` /
   `main p` colour rules, so the text is identical in light and dark mode. */
main .sn-page-hero > .relative{padding-top:clamp(28px,3.6vw,46px);}
html body main h1.sn-page-title{
  font-family:'Cinzel','Cormorant Garamond',Georgia,serif !important;font-weight:700 !important;
  font-size:clamp(30px,4.4vw,54px);line-height:1.12;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px;
  background:linear-gradient(90deg,#C99A2E,#E8C34A,#F7E3A1,#E8C34A,#C99A2E);background-size:300% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent !important;
  filter:drop-shadow(0 2px 8px rgba(10,4,30,.45));animation:snGoldFlow 9s linear infinite;}
html body main p.sn-page-sub{color:#E6E0F7 !important;font-size:17px;line-height:1.6;max-width:700px;margin:0 auto;}
html body main .sn-page-sub *{color:inherit !important;}
html body main .sn-page-sub .sn-page-accent{color:#F3DFA0 !important;font-weight:600;}
html body main .sn-page-sub code{background:rgba(232,195,74,.14) !important;color:#F3DFA0 !important;border:1px solid rgba(232,195,74,.45);padding:1px 8px;border-radius:6px;font-size:.88em;}
main .sn-page-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:22px;}
/* Search box on the band: glassy, gold-rimmed, light text in both themes */
html body main .sn-page-hero input{background:rgba(255,255,255,.10) !important;color:#F3F0FA !important;border:1.5px solid rgba(232,195,74,.55) !important;box-shadow:0 6px 18px rgba(10,4,30,.25) !important;}
html body main .sn-page-hero input::placeholder{color:rgba(230,224,247,.6) !important;}
html body main .sn-page-hero input:focus{border-color:#E8C34A !important;box-shadow:0 0 0 4px rgba(232,195,74,.22) !important;}
html body main .sn-page-hero .sn-page-search-icon{color:#E8C34A !important;}
/* Plain <button>s on a band (Questions' mobile Filters, AI Chat's Login) */
html body main button.sn-hero-btn{color:#F3F0FA !important;background:rgba(255,255,255,.08) !important;border:1.5px solid rgba(232,195,74,.55) !important;transition:background .2s ease;}
html body main button.sn-hero-btn:hover{background:rgba(232,195,74,.14) !important;color:#FFF6D6 !important;}

/* Compact band for full-height app pages (AI Chat): shallower dome, tighter text */
main .sn-hero--compact{--sn-dome:clamp(36px,3.4vw,54px);--sn-dome-gap:12px;}
main .sn-hero--compact > .relative{padding-top:16px;}
html body main .sn-hero--compact h1.sn-page-title{font-size:clamp(22px,2.6vw,32px);margin-bottom:2px;}
main .sn-hero--compact .sn-hero-divider{margin:0 auto 6px;}
main .sn-hero--compact .sn-hero-divider span{width:60px;}
main .sn-hero--compact .sn-hero-divider i{font-size:11px;}
html body main .sn-hero--compact p.sn-page-sub{font-size:14.5px;}
@media (prefers-reduced-motion:reduce){html body main h1.sn-page-title{animation:none;}}
main .sn-hero-halo{position:absolute;left:50%;top:-40px;width:min(900px,95vw);height:460px;transform:translateX(-50%);z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(232,195,74,.22) 0%,rgba(160,110,240,.18) 35%,transparent 70%);filter:blur(10px);animation:snHaloBreath 7s ease-in-out infinite;}
@keyframes snHaloBreath{0%,100%{opacity:.75;transform:translateX(-50%) scale(1)}50%{opacity:1;transform:translateX(-50%) scale(1.06)}}
main .sn-hero-divider{display:flex;align-items:center;justify-content:center;gap:12px;margin:2px auto 14px;}
main .sn-hero-divider span{height:1px;width:90px;background:linear-gradient(90deg,transparent,#E8C34A);}
main .sn-hero-divider span:last-child{background:linear-gradient(270deg,transparent,#E8C34A);}
main .sn-hero-divider i{font-style:normal;color:#E8C34A;font-size:14px;text-shadow:0 0 10px rgba(232,195,74,.8);animation:snFloat 3s ease-in-out infinite;}
/* Hero text sits on the violet band in both themes */
/* `body` lifts these above sastranidhi-brand-final.css's `html.sn-dark main p`,
   which loads later with equal specificity. */
html body main p.sn-hero-desc{color:#E6E0F7 !important;}
html body main p.sn-hero-verse{color:#F3DFA0 !important;}

/* Hero buttons — light text on the violet band in both themes */
html main a.sn-hero-secondary.rounded-xl{border:1.5px solid #E8C34A !important;color:#F3F0FA !important;background:rgba(255,255,255,.08) !important;box-shadow:0 0 0 3px rgba(232,195,74,.15),0 8px 20px rgba(20,8,50,.2) !important;}
html main a.sn-hero-secondary.rounded-xl:hover{color:#FFF6D6 !important;background:rgba(232,195,74,.14) !important;box-shadow:0 0 0 4px rgba(232,195,74,.3),0 12px 26px rgba(232,195,74,.25) !important;}

/* Stat cards — outlined glass tiles */
html main .sn-stat{position:relative;overflow:hidden;border-radius:18px;
  background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(246,243,251,.85)) !important;
  border:1.5px solid rgba(232,195,74,.55);
  box-shadow:inset 0 0 0 4px rgba(255,255,255,.7),inset 0 0 0 5px rgba(232,195,74,.22),0 10px 26px rgba(48,28,88,.1);
  transition:transform .4s cubic-bezier(.22,1,.36,1),box-shadow .4s ease,border-color .4s ease;}
html main .sn-stat::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#45218B,#E8C34A,#FFF6D6,#E8C34A,#45218B);background-size:300% 100%;animation:snGoldFlow 6s linear infinite;}
html main .sn-stat:hover{transform:translateY(-5px);border-color:#E8C34A;box-shadow:inset 0 0 0 4px rgba(255,255,255,.7),inset 0 0 0 5px rgba(232,195,74,.35),0 18px 38px rgba(69,33,139,.18),0 0 24px rgba(232,195,74,.25);}
html.sn-dark main .sn-stat{background:linear-gradient(150deg,rgba(255,255,255,.10),rgba(255,255,255,.03)) !important;border-color:rgba(232,195,74,.5);
  box-shadow:inset 0 0 0 4px rgba(26,16,54,.55),inset 0 0 0 5px rgba(232,195,74,.22),0 14px 32px rgba(8,3,24,.45);backdrop-filter:blur(6px);}
html.sn-dark main .sn-stat:hover{box-shadow:inset 0 0 0 4px rgba(26,16,54,.55),inset 0 0 0 5px rgba(232,195,74,.4),0 18px 40px rgba(8,3,24,.5),0 0 28px rgba(232,195,74,.22);}
html main .sn-stat > div.rounded-xl{background:linear-gradient(135deg,#E8C34A,#F7E3A1) !important;color:#29135D !important;border:none !important;box-shadow:0 6px 16px rgba(232,195,74,.35) !important;}
html main .sn-stat > div.rounded-xl svg{color:#29135D;}

/* Hero title: glowing name + flowing gold tagline */
main h1.sn-hero-title{display:flex;flex-direction:column;align-items:center;gap:6px;}
main h1.sn-hero-title .sn-hero-name{
  font-size:clamp(44px,6.5vw,76px);letter-spacing:.5px;color:#FFFDF6 !important;
  text-shadow:0 0 18px rgba(232,195,74,.45),0 0 40px rgba(232,195,74,.22);
  animation:snHeroGlow 4s ease-in-out infinite;
}
main h1.sn-hero-title .sn-hero-tag{
  font-size:clamp(26px,3.4vw,40px);letter-spacing:1px;
  background:linear-gradient(90deg,#B8860B,#E8C34A,#F7E3A1,#E8C34A,#B8860B);background-size:300% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  filter:drop-shadow(0 0 8px rgba(232,195,74,.4));
  animation:snGoldFlow 7s linear infinite;
}
@keyframes snHeroGlow{
  0%,100%{text-shadow:0 0 18px rgba(232,195,74,.45),0 0 40px rgba(232,195,74,.22);}
  50%{text-shadow:0 0 26px rgba(232,195,74,.7),0 0 60px rgba(232,195,74,.38);}
}

/* ═══ 3D effects ═══ */
/* Heading: carved/extruded name, gently floating in 3D */
main h1.sn-hero-title{perspective:900px;margin-top:0;}
main h1.sn-hero-title .sn-hero-name{line-height:1;transform-style:preserve-3d;
  animation:snHero3D 9s ease-in-out infinite;}
html main h1.sn-hero-title .sn-hero-name{text-shadow:0 1px 0 #F3DFA0,0 2px 0 #E8C34A,0 3px 0 #C9A13A,0 4px 0 #A8832A,0 5px 0 #86671D,0 10px 16px rgba(0,0,0,.5),0 0 34px rgba(232,195,74,.45);}
@keyframes snHero3D{0%,100%{transform:rotateX(8deg) rotateY(-4deg)}50%{transform:rotateX(4deg) rotateY(4deg) translateY(-3px)}}

/* Hero buttons: raised, press down on click */
html main a.sn-hero-secondary.rounded-xl{box-shadow:0 6px 0 rgba(154,118,20,.75),0 0 0 3px rgba(232,195,74,.15),0 14px 24px rgba(69,33,139,.12) !important;transition:transform .15s ease,box-shadow .15s ease,background .2s ease !important;}
html main a.sn-hero-secondary.rounded-xl:hover{transform:translateY(-2px);box-shadow:0 8px 0 rgba(154,118,20,.8),0 0 0 4px rgba(232,195,74,.3),0 18px 30px rgba(232,195,74,.25) !important;}
html main a.sn-hero-secondary.rounded-xl:active{transform:translateY(5px);box-shadow:0 1px 0 rgba(154,118,20,.8),0 4px 10px rgba(69,33,139,.15) !important;}

/* Tilt cards (stats + featured shloka): JS sets --rx/--ry/--gx/--gy */
html main .sn-tilt,html main .sn-tilt:hover{
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0) !important;
  transform-style:preserve-3d;transition:transform .25s ease-out,box-shadow .4s ease,border-color .4s ease !important;will-change:transform;}
html main .sn-tilt::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;opacity:0;transition:opacity .3s ease;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.35),transparent 55%);}
html main .sn-tilt:hover::after{opacity:1;}
html.sn-dark main .sn-tilt::after{background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(243,223,160,.18),transparent 55%);}
html main .sn-stat > div{transform:translateZ(28px);}
html main .sn-stat:hover{box-shadow:inset 0 0 0 4px rgba(255,255,255,.7),inset 0 0 0 5px rgba(232,195,74,.35),0 26px 44px rgba(69,33,139,.22),0 0 24px rgba(232,195,74,.25);}

@media (prefers-reduced-motion:reduce){main h1.sn-hero-title .sn-hero-name,main h1.sn-hero-title .sn-hero-tag,main .sn-hero-halo,main .sn-hero-divider i,html main .sn-stat::before{animation:none;}main h1.sn-hero-title .sn-hero-name{transform:none;}html main a.sn-hero-secondary.rounded-xl{transition:none !important;}}

/* ═══ Pager (Questions list: Previous / page numbers / Next) ═══ */
main .sn-pager{display:flex;flex-direction:column;align-items:center;gap:14px;}
html body main p.sn-pager-info{font-size:14px;color:#4A4162 !important;margin:0;}
html body main p.sn-pager-info b{color:#20154A;font-weight:700;}
html main .sn-pager-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:999px;
  font-size:14px;font-weight:600;color:#45218B;background:#fff;border:1.5px solid rgba(232,195,74,.55);
  box-shadow:0 4px 12px rgba(48,28,88,.08);transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;}
html main .sn-pager-step{padding:0 18px;}
html main .sn-pager-num{width:40px;}
html main .sn-pager-btn:hover:not(:disabled){transform:translateY(-2px);border-color:#E8C34A;box-shadow:0 8px 18px rgba(69,33,139,.16),0 0 12px rgba(232,195,74,.25);color:#45218B;}
html main .sn-pager-btn.is-active{background:linear-gradient(135deg,#2B1568,#45218B);color:#F3DFA0;border-color:#E8C34A;box-shadow:0 6px 16px rgba(43,21,104,.3);}
html main .sn-pager-btn.is-active:hover{color:#F3DFA0;}
html main .sn-pager-btn:disabled{opacity:.4;cursor:not-allowed;box-shadow:none;}
main .sn-pager-gap{width:24px;text-align:center;color:#5A5270;font-weight:700;}
html.sn-dark body main p.sn-pager-info{color:#C9C1DF !important;}
html.sn-dark body main p.sn-pager-info b{color:#F3DFA0;}
html.sn-dark main .sn-pager-btn{background:rgba(255,255,255,.08);color:#F3F0FA;border-color:rgba(232,195,74,.45);box-shadow:0 4px 14px rgba(8,3,24,.3);}
html.sn-dark main .sn-pager-btn:hover:not(:disabled){color:#FFF6D6;background:rgba(232,195,74,.14);}
html.sn-dark main .sn-pager-btn.is-active{background:linear-gradient(135deg,#E8C34A,#F3DFA0);color:#21163F;}
html.sn-dark main .sn-pager-btn.is-active:hover{color:#21163F;}

/* ═══ Readable text on the light theme ═══
   Light -500/-600 Tailwind text colours (tag chips, badges, status lines)
   washed out on the white cards; map them to the -700 shade. Hover states
   use the same classes, so they darken too. */
html body main .text-orange-500,html body main .text-orange-600{color:#C2410C !important;}
html body main .text-amber-500,html body main .text-amber-600{color:#B45309 !important;}
html body main .text-yellow-500,html body main .text-yellow-600{color:#A16207 !important;}
html body main .text-lime-500,html body main .text-lime-600{color:#4D7C0F !important;}
html body main .text-green-500,html body main .text-green-600{color:#15803D !important;}
html body main .text-emerald-500,html body main .text-emerald-600{color:#047857 !important;}
html body main .text-teal-500,html body main .text-teal-600{color:#0F766E !important;}
html body main .text-cyan-500,html body main .text-cyan-600{color:#0E7490 !important;}
html body main .text-sky-500,html body main .text-sky-600{color:#0369A1 !important;}
html body main .text-blue-500,html body main .text-blue-600{color:#1D4ED8 !important;}
html body main .text-indigo-500,html body main .text-indigo-600{color:#4338CA !important;}
html body main .text-violet-500,html body main .text-violet-600{color:#6D28D9 !important;}
html body main .text-purple-500,html body main .text-purple-600{color:#7E22CE !important;}
html body main .text-fuchsia-500,html body main .text-fuchsia-600{color:#A21CAF !important;}
html body main .text-pink-500,html body main .text-pink-600{color:#BE185D !important;}
html body main .text-rose-500,html body main .text-rose-600{color:#BE123C !important;}
html body main .text-red-500,html body main .text-red-600{color:#B91C1C !important;}
/* Semi-transparent brand purple (section labels, author links) -> solid deep violet */
html body main .text-brand\/60,html body main .text-brand\/70,html body main .text-brand\/80{color:#5B21B6 !important;}

/* ═══ Darker box outlines on the light page ═══
   Cards that set their own pale-gold border (instead of the palette's
   --sn-card-border-*) get the same deep gold; plain light-grey bordered
   boxes get a visible violet-grey. Same selectors as the rules above, so
   these later declarations win. */
html main .sn-stat{border-color:rgba(184,134,11,.78);
  box-shadow:inset 0 0 0 4px rgba(255,255,255,.7),inset 0 0 0 5px rgba(184,134,11,.3),0 10px 26px rgba(48,28,88,.1);}
html main .sn-stat:hover,html main .sn-stat.sn-tilt:hover{border-color:#9A7614;}
html:not(.sn-dark) main .relative.rounded-2xl.overflow-hidden[style*="rgb(246, 244, 252)"]{
  border-color:rgba(184,134,11,.78) !important;
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.75),inset 0 0 0 6.5px rgba(184,134,11,.32),0 10px 26px rgba(48,28,88,.08) !important;}
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"]{
  border-color:rgba(184,134,11,.72) !important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.6),inset 0 0 0 4.5px rgba(184,134,11,.28),0 6px 18px rgba(48,28,88,.06) !important;}
main [style*="rgb(246, 244, 252)"] .grid-cols-2 > a.group[class*="border"]:hover{border-color:#9A7614 !important;}
html main .sn-pager-btn{border-color:rgba(184,134,11,.72);}
html main .sn-pager-btn:hover:not(:disabled){border-color:#9A7614;}
main .text-\[11px\].font-bold.text-brand\/70.uppercase{border-color:rgba(184,134,11,.6) !important;}
/* Plain grey-bordered boxes (info panels, tag cards, inputs, filter bars).
   :not(rounded-xl/2xl) leaves the gold outline that brand-final gives those. */
:is(html body main .border-gray-100,html body main .border-gray-200,html body main .border-gray-300,
  html body main [class*="border-gray-100/"],html body main [class*="border-gray-200/"]):not(.rounded-xl):not(.rounded-2xl){border-color:#CDC2E4 !important;}
