/* =====================================================================
   MAVINAKAYINAHALLI — design system (2026 redesign)
   Palette: Midnight Charcoal #17191C · Cool Steel Grey #929DA7 · Coral #FF4B32
   Type:    Cabinet Grotesk ExtraBold (display) · Cabinet Grotesk (headings/UI) · Satoshi (body)
            ATS Bandipura (Kannada headings) · Baloo Tamma 2 (Kannada text and UI)
            Noto Serif Kannada (shlokas) · Geist Mono (labels, numbers)
   Change colours and fonts only in :root below.
   ===================================================================== */

:root {
    --ink: #17191C;
    --ink-2: #202328;
    --ink-3: #2B2F35;
    --steel: #929DA7;
    --steel-2: #C3CAD0;
    --steel-3: #E2E6E9;
    --steel-ink: #59636D;          /* steel grey dark enough for text on light */
    --paper: #F2F2EF;
    --paper-2: #E8E9E5;
    --white: #FFFFFF;
    --ivory: #F4F4EF;
    --coral: #FF4B32;
    --coral-2: #E8381F;
    --coral-soft: #FFE6E0;
    --line: #D8DCDF;
    --line-2: #C6CCD1;
    --line-dark: rgba(244, 244, 239, .13);
    --text: #17191C;
    --muted: #59636D;
    --ok: #1F7A4D;
    --bad: #C2261A;

    --f-display: "Cabinet Grotesk", "ATS Bandipura", system-ui, sans-serif;
    --w-display: 800;              /* Cabinet Grotesk ExtraBold for every display line */
    --f-head: "Cabinet Grotesk", "Baloo Tamma 2", system-ui, sans-serif;
    --f-body: "Satoshi", "Baloo Tamma 2", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --f-kn-display: "ATS Bandipura", "Baloo Tamma 2", sans-serif;   /* big Kannada headings */
    --f-kn-head: "Baloo Tamma 2", "Noto Sans Kannada", sans-serif;   /* Kannada sub-headings, menus, buttons */
    --f-kn-body: "Baloo Tamma 2", "Noto Sans Kannada", sans-serif;
    --f-kn-serif: "Noto Serif Kannada", "Noto Sans Kannada", serif;
    --f-deva: "Noto Serif Devanagari", serif;

    --r-xs: 6px;
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --pop: 5px 5px 0 var(--ink);
    --pop-sm: 3px 3px 0 var(--ink);
    --pop-coral: 5px 5px 0 var(--coral);
    --glow: 0 10px 34px -10px rgba(255, 75, 50, .65);
    --shadow: 0 1px 2px rgba(23, 25, 28, .06), 0 12px 32px -16px rgba(23, 25, 28, .22);
    --shadow-lg: 0 2px 4px rgba(23, 25, 28, .05), 0 30px 60px -28px rgba(23, 25, 28, .35);

    --wrap: 1240px;
    --gut: clamp(20px, 4.2vw, 44px);
    --sec: clamp(76px, 10vw, 140px);
    --head-h: 74px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --z-head: 50;
    --z-bar: 40;
    --z-menu: 60;
    --z-lb: 80;
    --z-toast: 90;
}

/* ATS Bandipura - Akshara Type Studio, free for commercial use; @font-face allowed (assets/fonts/ATS-BANDIPURA-LICENSE.txt) */
@font-face {
    font-family: "ATS Bandipura"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("/assets/fonts/ATSBandipura-Bold.woff2") format("woff2"), url("/assets/fonts/ATSBandipura-Bold.woff") format("woff");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
ion-icon { flex: none; font-size: 1.15em; --ionicon-stroke-width: 36px; }
::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.hidden, [hidden] { display: none !important; }

/* ---------- language: only one language is ever visible ---------- */
html:not([lang="kn"]) [data-lang="kn"],
html[lang="kn"] [data-lang="en"] { display: none !important; }
:lang(kn) { font-family: var(--f-kn-body); }
[lang="sa"] { font-family: var(--f-deva); }
html[lang="kn"] body { font-size: 16.5px; line-height: 1.8; }

/* ---------- helpers ---------- */
.wrap, .t-wrap, .pg-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only, .pg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--ivory); font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* labels — mono caps with a coral dash */
.eyebrow, .fx-kicker, .pg-kicker, .pg-ch-kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--f-mono); font-size: 12px; font-weight: 500; line-height: 1.4;
    letter-spacing: .14em; text-transform: uppercase; color: var(--steel-ink);
}
.eyebrow::before, .fx-kicker::before, .pg-kicker::before {
    content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--coral); flex: none;
}
.eyebrow-light, .is-dark .eyebrow, .is-dark .fx-kicker { color: var(--steel-2); }
html[lang="kn"] .eyebrow, html[lang="kn"] .fx-kicker, html[lang="kn"] .pg-kicker, html[lang="kn"] .pg-ch-kicker { font-family: var(--f-kn-head); font-size: 14px; letter-spacing: .02em; text-transform: none; font-weight: 600; }

/* display type */
.display, .h2, .fx-h2 {
    font-family: var(--f-display); font-weight: var(--w-display);
    letter-spacing: -.005em; line-height: .98; color: inherit; text-wrap: balance;
}
.h2, .fx-h2 { font-size: clamp(38px, 5.4vw, 72px); }
.h3 { font-family: var(--f-head); font-weight: 700; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
html[lang="kn"] .display, html[lang="kn"] .h2, html[lang="kn"] .fx-h2,
html[lang="kn"] .hero-title, html[lang="kn"] .pg-title {
    font-family: var(--f-kn-display); font-weight: 700; line-height: 1.28; letter-spacing: 0;
}
html[lang="kn"] .h2, html[lang="kn"] .fx-h2 { font-size: clamp(32px, 4.4vw, 56px); }
html[lang="kn"] .h3, html[lang="kn"] h3 { font-family: var(--f-kn-head); font-weight: 700; line-height: 1.35; }
.accent { color: var(--coral); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.sec-head.is-center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons (all old button classes map here) ---------- */
.btn, .btn-gold, .fx-btn, .pg-btn, .cf-btn, .pg-toc-cta {
    --b-bg: var(--ink); --b-fg: var(--ivory); --b-bd: var(--ink);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border-radius: 999px;
    border: 1.5px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
    font-family: var(--f-head); font-size: 16px; font-weight: 700; letter-spacing: .005em; line-height: 1;
    white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .2s, color .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
html[lang="kn"] :is(.btn, .btn-gold, .fx-btn, .pg-btn, .cf-btn, .pg-toc-cta) { font-family: var(--f-kn-head); font-weight: 600; font-size: 16px; padding-top: 2px; }
.btn ion-icon, .fx-btn ion-icon, .btn-gold ion-icon, .pg-btn ion-icon, .cf-btn ion-icon { font-size: 19px; }
.btn:hover, .btn-gold:hover, .fx-btn:hover, .pg-btn:hover, .cf-btn:hover, .pg-toc-cta:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-sm); }
.btn:active, .btn-gold:active, .fx-btn:active, .pg-btn:active, .cf-btn:active { transform: translate(0, 0); box-shadow: none; }

/* primary = coral with charcoal text (high contrast, the one accent) */
.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn, .pg-toc-cta { --b-bg: var(--coral); --b-fg: var(--ink); --b-bd: var(--coral); }
.btn-primary:hover, .btn-gold:hover, .pg-btn-gold:hover, .cf-btn:hover, .pg-toc-cta:hover { box-shadow: var(--pop-sm), var(--glow); }
.is-dark .btn-primary:hover, .is-dark .btn-gold:hover, .is-dark .pg-btn-gold:hover { box-shadow: 3px 3px 0 var(--ivory), var(--glow); }

/* quiet = outline */
.btn-quiet, .btn-ghost, .pg-btn-outline, .fx-btn-maroon, .cf-btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn-quiet:hover, .btn-ghost:hover, .pg-btn-outline:hover, .fx-btn-maroon:hover, .cf-btn-ghost:hover { --b-bg: var(--white); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--ivory); --b-bd: var(--ink); }
.btn-dark:hover { box-shadow: var(--pop-coral); }

/* on dark backgrounds */
.btn-light, .fx-btn-glass, .fx-btn-light, .pg-btn-ghost { --b-bg: transparent; --b-fg: var(--ivory); --b-bd: rgba(244, 244, 239, .5); }
.btn-light:hover, .fx-btn-glass:hover, .fx-btn-light:hover, .pg-btn-ghost:hover { --b-bg: var(--ivory); --b-fg: var(--ink); --b-bd: var(--ivory); box-shadow: 3px 3px 0 var(--coral); }
.btn-sm, .fx-btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.pg-btn-wa { --b-bg: #1F7A4D; --b-fg: #fff; --b-bd: #1F7A4D; }
.btn[disabled], .cf-btn[disabled], .cf-btn.is-busy { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.cf-btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mk-spin .7s linear infinite; }

/* text link with arrow */
.link-arrow, .pg-link, .fx-pm-life {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--ink);
    border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .2s, gap .2s var(--ease);
}
.link-arrow:hover, .pg-link:hover, .fx-pm-life:hover { color: var(--coral-2); gap: 12px; }
.is-dark .link-arrow { color: var(--ivory); }
.is-dark .link-arrow:hover { color: var(--coral); }

/* ---------- reveal (one gentle 2D rise) ---------- */
.rv, .pg-reveal, .fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in, .pg-reveal.is-in, .fx-reveal.is-in, .fx-reveal.in { opacity: 1; transform: none; }
.no-js .rv, .no-js .pg-reveal, .no-js .fx-reveal { opacity: 1; transform: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-head {
    position: sticky; top: 0 !important; z-index: var(--z-head);
    height: var(--head-h);
    isolation: isolate;
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}
/* the blur sits on a layer behind the header, so the full-screen phone menu is not trapped inside it */
.site-head::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(242, 242, 239, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    transition: background-color .25s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head.is-scrolled::before { background: rgba(242, 242, 239, .95); }
html.menu-open .site-head::before { background: var(--paper); }
.sh-wrap { height: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 24px; }
.sh-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.sh-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px var(--ink); }
.sh-brand-text { display: grid; line-height: 1.05; min-width: 0; }
.sh-brand-name { font-family: var(--f-display); font-weight: var(--w-display); font-size: 21px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.sh-brand-sub { margin-top: 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-ink); white-space: nowrap; }
html[lang="kn"] .sh-brand-name { font-family: var(--f-kn-head); font-weight: 700; font-size: 19px; }
html[lang="kn"] .sh-brand-sub { font-family: var(--f-kn-head); font-size: 12px; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.sh-nav { margin-inline: auto; }
.sh-nav ul { display: flex; align-items: center; gap: 4px; }
.sh-nav a {
    position: relative; display: block; padding: 8px 13px; border-radius: 999px;
    font-family: var(--f-head); font-size: 15.5px; font-weight: 500; color: var(--ink); white-space: nowrap;
    transition: background-color .2s, color .2s;
}
html[lang="kn"] .sh-nav a { font-family: var(--f-kn-head); font-weight: 500; font-size: 15.5px; padding-top: 10px; }
.sh-nav a:hover { background: rgba(23, 25, 28, .06); }
.sh-nav a[aria-current="page"], .sh-nav a.active-nav:not([data-scroll]) { font-weight: 700; }
.sh-nav a[data-scroll].active-nav::after { display: none; }
.sh-nav a[aria-current="page"]::after, .sh-nav a.active-nav::after {
    content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--coral);
}
.sh-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.sh-nav + .sh-actions { margin-left: 0; }
.sh-lang {
    min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2);
    font-family: var(--f-kn-head); font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.sh-lang [lang="en"] { font-family: var(--f-head); font-weight: 700; }
.sh-lang:hover { border-color: var(--ink); background: var(--white); }
.sh-actions .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.sh-menu { display: none; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--ivory); }
.sh-menu ion-icon { font-size: 24px; }

/* mobile menu sheet */
.sh-mmenu {
    position: fixed; inset: var(--head-h) 0 0 0; z-index: var(--z-menu);
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); padding: 12px var(--gut) 40px;
    animation: mk-sheet .28s var(--ease);
}
.sh-mmenu ul { border-top: 1px solid var(--line); }
.sh-mmenu li { border-bottom: 1px solid var(--line); }
.sh-mmenu ul a {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 2px;
    font-family: var(--f-display); font-weight: var(--w-display); font-size: 30px; line-height: 1.1; color: var(--ink);
}
html[lang="kn"] .sh-mmenu ul a { font-family: var(--f-kn-display); font-weight: 700; font-size: 25px; }
.sh-mmenu ul a::after { content: "→"; font-family: var(--f-head); font-size: 20px; color: var(--steel); transition: transform .2s var(--ease), color .2s; }
.sh-mmenu ul a:hover::after, .sh-mmenu ul a[aria-current="page"]::after { transform: translateX(4px); color: var(--coral); }
.sh-mmenu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.sh-mmenu-actions .btn { min-height: 56px; }
.sh-mmenu-contact { margin-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--steel-ink); line-height: 1.9; }
.sh-mmenu-contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
html.menu-open { overflow: hidden; }
html.menu-open .m-bar { display: none; }

@media (max-width: 1200px) { .sh-nav a { padding-inline: 10px; font-size: 15px; } .sh-actions .btn { padding: 0 16px; } }
@media (max-width: 1100px) {
    .sh-nav, .sh-desk { display: none !important; }
    .sh-menu { display: inline-flex; }
}
@media (max-width: 420px) {
    :root { --head-h: 66px; }
    .sh-wrap { gap: 10px; }
    .sh-brand img { width: 38px; height: 38px; }
    .sh-brand-name { font-size: 18px; }
    .sh-brand-sub { font-size: 9px; letter-spacing: .08em; }
    .sh-lang { min-height: 38px; padding: 0 11px; font-size: 14px; }
    .sh-menu { width: 42px; height: 42px; }
}
@media (max-width: 350px) { .sh-brand-sub { display: none; } }

/* bottom action bar on phones */
.m-bar { display: none; }
@media (max-width: 820px) {
    .m-bar {
        position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-bar);
        display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; padding: 8px;
        border-radius: 999px; background: var(--ink); box-shadow: 0 18px 40px -14px rgba(23, 25, 28, .55);
    }
    .m-bar .btn { min-height: 48px; padding: 0 14px; font-size: 15px; }
    .m-bar .btn-light { --b-bd: rgba(244, 244, 239, .28); }
    .m-bar .btn:hover { transform: none; box-shadow: none; }
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    body.no-mbar { padding-bottom: 0; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot { background: var(--ink); color: var(--steel-2); padding: clamp(64px, 8vw, 110px) 0 36px; position: relative; overflow: hidden; }
.site-foot a { transition: color .2s; }
.sf-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-dark); }
.sf-mark { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(44px, 7vw, 96px); line-height: .92; color: var(--ivory); letter-spacing: -.005em; }
html[lang="kn"] .sf-mark { font-family: var(--f-kn-display); font-weight: 700; line-height: 1.15; font-size: clamp(36px, 5.4vw, 72px); }
.sf-mark i { font-style: normal; color: var(--coral); }
.sf-about { margin-top: 18px; max-width: 52ch; color: var(--steel); font-size: 16px; }
.sf-cta { display: grid; gap: 12px; justify-items: start; }
.sf-cta-title { font-family: var(--f-head); font-weight: 700; color: var(--ivory); font-size: 20px; }
html[lang="kn"] .sf-cta-title { font-family: var(--f-kn-head); }
.sf-cta p { color: var(--steel); font-size: 15.5px; max-width: 42ch; }
.sf-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sf-cols { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; padding: clamp(40px, 5vw, 60px) 0; }
.sf-col h3 { margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
html[lang="kn"] .sf-col h3 { font-family: var(--f-kn-head); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.sf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.sf-links a, .sf-contact a { color: var(--ivory); font-family: var(--f-head); font-weight: 500; font-size: 16px; }
html[lang="kn"] .sf-links a { font-family: var(--f-kn-head); }
.sf-links a:hover, .sf-contact a:hover { color: var(--coral); }
.sf-contact { display: grid; gap: 14px; }
.sf-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel-2); font-size: 15.5px; line-height: 1.5; }
.sf-contact ion-icon { margin-top: 2px; font-size: 18px; color: var(--coral); }
.sf-social { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-dark); color: var(--ivory); font-size: 20px; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.sf-social a:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); transform: translateY(-2px); }
.sf-bottom { display: grid; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--steel); }
.sf-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal-links a { color: var(--steel-2); text-decoration: underline; text-decoration-color: rgba(195, 202, 208, .35); text-underline-offset: 3px; }
.foot-legal-links a:hover { color: var(--coral); }
.sf-credit { color: var(--steel); }
.sf-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
@media (max-width: 900px) {
    .sf-top { grid-template-columns: 1fr; align-items: start; }
    .sf-cols { grid-template-columns: 1fr 1fr; }
    .sf-col-links { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .sf-cols { grid-template-columns: 1fr; } .sf-links { grid-template-columns: 1fr 1fr; } }

/* ---------- toast (pages.js) ---------- */
.pg-toast, .mk-toast {
    position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: var(--z-toast);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    max-width: min(92vw, 460px); padding: 14px 20px; border-radius: var(--r-sm);
    background: var(--ink); color: var(--ivory); font-weight: 500; font-size: 15px; box-shadow: var(--shadow-lg);
    transition: opacity .25s, transform .25s var(--ease);
}
.pg-toast.is-show, .mk-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.pg-toast.is-error { background: var(--bad); }
@media (min-width: 821px) { .pg-toast, .mk-toast { bottom: 28px; } }

/* spinner */
.sv-spin, .fx-pm-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--coral); animation: mk-spin .8s linear infinite; display: inline-block; }

@keyframes mk-spin { to { transform: rotate(360deg); } }
@keyframes mk-sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes mk-fade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   REFINEMENT (2026-11-10, round 2): coral is for text and thin accents only.
   Primary buttons are charcoal on light backgrounds and ivory on dark ones.
   ===================================================================== */
.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn, .pg-toc-cta { --b-bg: var(--ink); --b-fg: var(--ivory); --b-bd: var(--ink); }
.btn-primary ion-icon, .btn-gold ion-icon, .pg-btn-gold ion-icon, .cf-btn ion-icon, .pg-toc-cta ion-icon { color: var(--coral); }
.btn-primary:hover, .btn-gold:hover, .pg-btn-gold:hover, .cf-btn:hover, .pg-toc-cta:hover { box-shadow: 3px 3px 0 var(--coral); }
/* on charcoal */
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .m-bar, .pg-lineage, .pg-don-note, .choice-donate, .nf)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn) { --b-bg: var(--ivory); --b-fg: var(--ink); --b-bd: var(--ivory); }
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .m-bar, .pg-lineage, .pg-don-note, .choice-donate, .nf)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn) ion-icon { color: var(--coral-2); }
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .pg-lineage, .pg-don-note, .choice-donate)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn):hover { box-shadow: 3px 3px 0 var(--coral) !important; }
.m-bar .btn-light { --b-bd: rgba(244, 244, 239, .3); }
.sh-mmenu-actions .btn-primary { --b-bg: var(--ink); }
.sh-mmenu-actions .btn-dark { --b-bg: var(--white); --b-fg: var(--ink); --b-bd: var(--ink); }
.sh-mmenu-actions .btn-dark:hover { box-shadow: 3px 3px 0 var(--ink); }
.eyebrow::before, .fx-kicker::before, .pg-kicker::before { height: 2px; }
::selection { background: var(--coral-soft); color: var(--ink); }
html[lang="kn"] :is(.btn, .btn-gold, .fx-btn, .pg-btn, .cf-btn, .pg-toc-cta) { font-size: 17px; font-weight: 600; padding-top: 3px; }
html[lang="kn"] .sh-nav a { font-size: 16px; }

/* =====================================================================
   ROUND 3: orange is back on buttons and panels, in a deeper coral
   (#E2442A, white text) that is calmer than the bright accent #FF4B32.
   ===================================================================== */
:root { --coral-fill: #E2442A; --coral-fill-2: #CF3A21; --on-coral: #FFFFFF; }
.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn, .pg-toc-cta,
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .m-bar, .pg-lineage, .pg-don-note, .choice-donate, .nf)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn) { --b-bg: var(--coral-fill); --b-fg: var(--on-coral); --b-bd: var(--coral-fill); }
.btn-primary ion-icon, .btn-gold ion-icon, .pg-btn-gold ion-icon, .cf-btn ion-icon, .pg-toc-cta ion-icon,
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .m-bar, .pg-lineage, .pg-don-note, .choice-donate, .nf)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn) ion-icon { color: var(--on-coral); }
.btn-primary:hover, .btn-gold:hover, .pg-btn-gold:hover, .cf-btn:hover, .pg-toc-cta:hover { --b-bg: var(--coral-fill-2); --b-bd: var(--coral-fill-2); box-shadow: 3px 3px 0 var(--ink); }
:is(.is-dark, .hero, .site-foot, .pg-hero, .pg-visit, .pg-endcard, .fx-events-card, .don-sum, .bk-sum-card, .bk-bar, .pg-lineage, .pg-don-note, .choice-donate)
  :is(.btn-primary, .btn-gold, .pg-btn-gold, .cf-btn):hover { box-shadow: 3px 3px 0 var(--ivory) !important; }
.sh-mmenu-actions .btn-primary { --b-bg: var(--coral-fill); --b-bd: var(--coral-fill); }
.eyebrow::before, .fx-kicker::before, .pg-kicker::before { height: 3px; }
::selection { background: var(--coral); color: var(--ink); }

/* small phones: the header brand gives way so the language and menu buttons stay on screen (2026-11-11) */
@media (max-width: 400px) {
    .sh-brand { flex: 0 1 auto; gap: 9px; }
    .sh-brand-name, .sh-brand-sub { overflow: hidden; text-overflow: ellipsis; }
    .sh-actions { gap: 8px; }
}
@media (max-width: 350px) {
    .sh-brand img { width: 34px; height: 34px; }
    .sh-brand-name { font-size: 16px; }
    html[lang="kn"] .sh-brand-name { font-size: 16px; }
    .sh-lang { padding: 0 9px; }
}
@media (max-width: 900px) {
    .sf-top { grid-template-columns: minmax(0, 1fr); }
    .sf-top > * { min-width: 0; }
}
@media (max-width: 400px) {
    .sf-mark { font-size: clamp(30px, 11vw, 44px); overflow-wrap: anywhere; }
    html[lang="kn"] .sf-mark { font-size: clamp(28px, 9.5vw, 36px); }
}
