/* ============================================================
   Humskul · हंःसकुल — Pencil / Monochrome Design System
   A child-friendly branch of GURUKUL (target age 4–8)
   Palette: White + pencil-dark ink. Logo is the ONLY colored element.
   Fonts: Quicksand (headings/UI) · Nunito (body) · Kalam (Devanagari)
   ============================================================ */

:root {
    /* ---- Palette — Pencil Monochrome (logo.png is the only colored element) ---- */
    --paper:        #FFFFFF;
    --paper-alt:    #F7F7F7;
    --paper-2:      #FFFFFF;
    --paper-3:      #F0F0F0;
    --ink:          #1A1A1A;
    --ink-border:   #AAAAAA;
    --ink-soft:     #555555;
    --ink-light:    #999999;
    --purple:       #7B5EA7;   /* kept only for logo.png compat */
    --purple-soft:  #F0F0F0;
    --yellow:       #F5C842;   /* kept only for logo.png compat */
    --yellow-soft:  #F0F0F0;
    --leaf:         #7BAE6E;
    --leaf-soft:    #F0F0F0;
    --red:          #D9533A;

    /* ---- Card backgrounds — all white (pencil style) ---- */
    --pastel-1:     #FFFFFF;
    --pastel-2:     #FFFFFF;
    --pastel-3:     #FFFFFF;
    --pastel-4:     #FFFFFF;
    --pastel-5:     #FFFFFF;
    --pastel-6:     #FFFFFF;
    --pastel-7:     #FFFFFF;

    /* ---- Spacing / Shape ---- */
    --radius:       16px;
    --radius-sm:    10px;
    --shadow:       0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg:    0 8px 28px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08);

    /* ---- Typography ---- */
    --font-ui:      'Quicksand', sans-serif;   /* readable rounded sans (was cursive 'Caveat') */
    --font-body:    'Nunito', sans-serif;
    --font-dev:     'Kalam', 'Noto Sans Devanagari', serif;

    /* ---- Backward-compat aliases ---- */
    --swan:         var(--purple);
    --swan-soft:    var(--purple-soft);
    --sun:          var(--yellow);
    --sun-soft:     var(--yellow-soft);
    --font-hand:    var(--font-ui);
    --font-loose:   var(--font-ui);
    --font-devanagari: var(--font-dev);
    --radius-md:    var(--radius);
    --radius-lg:    var(--radius);
    --offset:       4px;
    --card-shadow:  var(--shadow);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; border-bottom: 1.5px dashed currentColor; }
a:hover { color: #000; border-bottom-style: solid; }
a.brand, a.btn-sk-primary, a.btn-sk-secondary, a.btn-sk-green,
.sk-nav-links a, .sk-nav-card, .sk-filter-btn { border-bottom: none; }

h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

/* SVG sprite icon helper */
.sk-icon {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    vertical-align: -0.3em;
    color: currentColor;
    flex-shrink: 0;
}

/* --- Navbar --- */
.sk-navbar {
    background: var(--paper);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.4rem 0 0;
    transform: translateZ(0);
    will-change: box-shadow;
}
.sk-navbar-inner {
    position: relative;
    z-index: 1;                /* sit above the drifting clouds */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;          /* let the full-size logo overhang the shrunk bar */
    transition: height 0.25s ease;
    /* Let hover pass through the bar's empty areas to the clouds behind;
       only the links/logo/buttons themselves stay interactive. */
    pointer-events: none;
}
.sk-navbar-inner a,
.sk-navbar-inner button { pointer-events: auto; }

.sk-navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: none;
}
.sk-navbar .brand .brand-logo {
    height: 76px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    transition: height 0.25s ease;
}
.sk-navbar .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.sk-navbar .brand-en  { font-family: var(--font-ui); font-size: 1.75rem; color: var(--purple); font-weight: 600; }
.sk-navbar .brand-dev { font-family: var(--font-dev); font-size: 0.9rem; color: var(--ink-soft); }

/* Wavy nav bottom border */
.sk-navbar-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    display: block;
    max-height: 40px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
.sk-navbar-wave svg { display: block; width: 100%; height: 40px; }

/* ── Scrolled state: shrink the bar + hide wave, but keep the logo at
      full size (it overhangs the slim bar). ── */
.sk-navbar--scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.10); }
.sk-navbar--scrolled .sk-navbar-inner { height: 58px; }
.sk-navbar--scrolled .sk-navbar-wave { max-height: 0; opacity: 0; }
/* logo deliberately NOT shrunk; anchor it to the top so it overhangs downward */
.sk-navbar--scrolled .brand { align-self: flex-start; }

.sk-nav-links {
    display: flex;
    gap: 0.05rem;
    list-style: none;
    align-items: center;
    align-self: flex-end;        /* drop the menu to the bottom of the bar */
    position: relative;
    top: 4px;                    /* sit just at the bottom of the bar */
}
.sk-nav-links a {
    color: #555;                 /* softer than near-black --ink */
    font-family: 'Quicksand', var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;          /* text-only labels, larger */
    padding: 0.32rem 0.7rem;
    border: none;
    background: none;
    transition: color 0.15s, transform 0.12s;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;      /* icon on top, label beneath */
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
}
/* Soft clouds drifting slowly across the header, behind the menu. They sit
   in their own layer (.sk-nav-clouds) and float left → right; the menu text
   rides above them (.sk-navbar-inner is z-index 1). */
.sk-nav-clouds {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.sk-cloud {
    position: absolute;
    top: var(--top, 20%);
    left: 0;
    width: calc(150px * var(--scale, 1));
    opacity: var(--op, 0.5);
    color: #EAF2FB;            /* soft, light sky cloud */
    will-change: transform;
    pointer-events: auto;      /* re-enable hover on the cloud (parent is none) */
    animation: sk-cloud-drift var(--dur, 75s) linear var(--delay, 0s) infinite;
}
/* Pause this cloud while hovered; it resumes drifting on mouse-leave. */
.sk-cloud:hover { animation-play-state: paused; }
.sk-cloud svg { display: block; width: 100%; height: auto; }
@keyframes sk-cloud-drift {
    from { transform: translateX(-26vw); }
    to   { transform: translateX(126vw); }
}
.sk-nav-links a .sk-icon { width: 1.3em; height: 1.3em; }
/* Colourful menu icons (each item gets its own hue) */
.sk-nav-links li:nth-child(1) .sk-icon { color: #DE6A2C; }
.sk-nav-links li:nth-child(2) .sk-icon { color: #D6418A; }
.sk-nav-links li:nth-child(3) .sk-icon { color: #7B5EA7; }
.sk-nav-links li:nth-child(4) .sk-icon { color: #1E9E96; }
.sk-nav-links li:nth-child(5) .sk-icon { color: #C9971F; }
.sk-nav-links li:nth-child(6) .sk-icon { color: #3A82CF; }
.sk-nav-links li:nth-child(7) .sk-icon { color: #D24330; }
.sk-nav-links li:nth-child(8) .sk-icon { color: #2F9A4F; }
.sk-nav-links li:nth-child(9) .sk-icon { color: #B8478F; }
.sk-nav-links li:nth-child(10) .sk-icon { color: #4C6FA5; }
/* A short, very thin underline under each label in the item's colour
   (no glow). The hue is shared with the icon via --accent. */
.sk-nav-links li:nth-child(1) { --accent: #DE6A2C; }
.sk-nav-links li:nth-child(2) { --accent: #D6418A; }
.sk-nav-links li:nth-child(3) { --accent: #7B5EA7; }
.sk-nav-links li:nth-child(4) { --accent: #1E9E96; }
.sk-nav-links li:nth-child(5) { --accent: #C9971F; }
.sk-nav-links li:nth-child(6) { --accent: #3A82CF; }
.sk-nav-links li:nth-child(7) { --accent: #D24330; }
.sk-nav-links li:nth-child(8) { --accent: #2F9A4F; }
.sk-nav-links li:nth-child(9) { --accent: #B8478F; }
.sk-nav-links li:nth-child(10) { --accent: #4C6FA5; }
/* Absolutely positioned so changing its length never shifts the menu. */
.sk-nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 16px;
    height: 1px;
    background: var(--accent, #999);
    transition: width 0.2s ease;
}
.sk-nav-links a:hover {
    color: #333;
}
/* On hover the line grows to the text width (never beyond it), no glow. */
.sk-nav-links a:hover::after {
    width: calc(100% - 1.4rem);
}
.sk-nav-links a.active {
    color: #3A3A3A;
    font-weight: 800;
}

/* --- Account dropdown (Login / Dashboard / Logout) --- */
.sk-acct { position: relative; }
.sk-acct .sk-acct-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0.3rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}
.sk-acct .sk-acct-toggle .sk-icon { width: 1.5em; height: 1.5em; color: #4C6FA5; }
.sk-acct .sk-acct-toggle:hover .sk-icon { color: #2E4D7E; }
.sk-acct-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    list-style: none;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    padding: 0.4rem;
    min-width: 156px;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    z-index: 1001;
}
.sk-acct.open .sk-acct-menu,
.sk-acct:focus-within .sk-acct-menu { display: flex; }
.sk-acct-menu li { list-style: none; }
.sk-acct-menu form { margin: 0; }
.sk-acct-menu a,
.sk-acct-menu .sk-acct-item-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: #555;
    font-family: 'Quicksand', var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    text-align: left;
}
.sk-acct-menu a:hover,
.sk-acct-menu .sk-acct-item-btn:hover { background: #F2F2F2; color: #222; }
.sk-acct-menu .sk-icon { width: 1.2em; height: 1.2em; }

/* Wavy desktop bar: items rise & fall in a gentle wave across the row.
   Uses `top` (position offset) so it never clashes with the hover lift,
   and is scoped above the hamburger breakpoint so it only affects the
   horizontal bar — the collapsed dropdown keeps its own sideways wave. */
@media (min-width: 1081px) {
    /* Scatter the items: irregular heights + slight tilts so they sit like
       drifting clouds rather than an evenly-spaced, segregated row. */
    /* Logo left, cloud menu over on the right side of the bar. */
    .sk-navbar-inner { justify-content: space-between; }
    /* Bigger horizontal gaps so there's room to scatter sideways too. */
    .sk-nav-links { gap: 0.9rem; }
    /* A smooth ~ wave: one up-hump then one down-hump across the items. */
    .sk-nav-links li { position: relative; transition: top 0.25s ease; }
    .sk-nav-links li:nth-child(1)  { top:   0;   }
    .sk-nav-links li:nth-child(2)  { top: -10px; }
    .sk-nav-links li:nth-child(3)  { top: -14px; }
    .sk-nav-links li:nth-child(4)  { top: -10px; }
    .sk-nav-links li:nth-child(5)  { top:   0;   }
    .sk-nav-links li:nth-child(6)  { top:  10px; }
    .sk-nav-links li:nth-child(7)  { top:  14px; }
    .sk-nav-links li:nth-child(8)  { top:  10px; }
    .sk-nav-links li:nth-child(9)  { top:   0;   }
    .sk-nav-links li:nth-child(10) { top:  -8px; }
    .sk-nav-links li:nth-child(11) { top:   4px; }
    /* When the bar shrinks (scrolled), flatten the menu to a straight line;
       it eases back into the wave when scrolled to the top. (Placed after the
       wave rules so it overrides them at equal specificity.) */
    .sk-navbar--scrolled .sk-nav-links li { top: 0; }
}

/* Logout / Login button in navbar — mimic nav link appearance */
.sk-nav-logout-form { margin: 0; padding: 0; display: inline; }
.sk-nav-logout-btn {
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.sk-nav-logout-btn .sk-icon { width: 1.25em; height: 1.25em; color: #D24330; }
.sk-nav-logout-btn:hover {
    color: #000;
    transform: translateY(-1px);
}

.sk-hamburger { display: none; cursor: pointer; background: none; border: none; padding: 0.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-direction: column; }
.sk-hamburger span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: 0.2s; }

/* --- Hero --- */
.sk-hero {
    background: #FFFFFF;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.sk-hero-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    min-height: 440px;
}
.sk-hero-split-img {
    flex: 0 0 44%;
    min-width: 0;
}
.sk-hero-split-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sk-hero h1 {
    font-family: var(--font-ui);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.05;
    margin-bottom: 0.6rem;
}
.sk-hero h1 .accent { color: var(--ink); }
.sk-hero .sub-dev {
    font-family: var(--font-dev);
    font-size: 1.3rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}
.sk-hero p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 0 1.8rem;
}
.sk-hero-cta { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-start; }

/* --- Image Placeholders (swap with real AI images when ready) --- */
.sk-img-placeholder {
    border: 2px dashed #CCCCCC;
    background: #FAFAFA;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.sk-hero-illustration {
    display: block;
    width: 100%;
    height: auto;
    min-height: 360px;
    object-fit: contain;
    object-position: center;
}
.sk-card-img-placeholder {
    display: block;
    width: 60%;                 /* 40% smaller than full card width */
    height: auto;
    margin: 0.6rem auto 0;
}
.sk-nav-card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Sections & Dividers --- */
.sk-section { padding: 2.8rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.sk-section-wrap { background: var(--paper); }
.sk-section-wrap-alt { background: var(--paper-alt); }

.sk-section-title {
    font-family: var(--font-ui);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sk-section-sub {
    font-family: var(--font-body);
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}
/* Wavy SVG divider between sections */
.sk-wave-sep {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    display: block;
    margin: 0;
    padding: 0;
}
.sk-wave-sep svg { display: block; width: 100%; }
/* Inline squiggle under section heading */
.sk-divider {
    display: block;
    width: 80px;
    height: 8px;
    margin-bottom: 1.6rem;
    background: none;
    border: none;
    overflow: visible;
}

/* --- Sketchy wavy border (applied via ::before so card content stays crisp) --- */
.sk-wavy-frame {
    position: relative;
}
.sk-wavy-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 6px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);
    pointer-events: none;
    z-index: 1;
}

/* --- Sketchy card primitive --- */
.sk-card-base {
    background: var(--paper-2);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sk-card-base:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--card-glow, rgba(0,0,0,0.18)), 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Navigation Cards (home grid) --- */
.sk-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.5rem;
}
.sk-nav-card {
    background: var(--pastel-1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0 0 1.6rem;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    isolation: isolate;
}
.sk-nav-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 6px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);
    pointer-events: none;
    z-index: -1;
}
.sk-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--card-glow, rgba(0,0,0,0.18)), 0 2px 8px rgba(0,0,0,0.08);
    color: var(--ink);
}
.sk-nav-card:nth-child(7n+1) { background: var(--pastel-1); }
.sk-nav-card:nth-child(7n+2) { background: var(--pastel-2); }
.sk-nav-card:nth-child(7n+3) { background: var(--pastel-3); }
.sk-nav-card:nth-child(7n+4) { background: var(--pastel-4); }
.sk-nav-card:nth-child(7n+5) { background: var(--pastel-5); }
.sk-nav-card:nth-child(7n+6) { background: var(--pastel-6); }
.sk-nav-card:nth-child(7n+0) { background: var(--pastel-7); }
/* Home "Let's explore..." section keeps its organic blob shapes and skips the wavy border overlay */
.sk-nav-cards .sk-nav-card { border: 1px solid rgba(0,0,0,0.07); overflow: hidden; }
.sk-nav-cards .sk-nav-card::before { content: none; }
.sk-nav-cards .sk-nav-card:nth-child(7n+1) { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+2) { border-radius: 58% 42% 35% 65% / 55% 48% 52% 45%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+3) { border-radius: 42% 58% 65% 35% / 45% 52% 48% 55%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+4) { border-radius: 65% 35% 42% 58% / 52% 65% 35% 48%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+5) { border-radius: 35% 65% 58% 42% / 48% 35% 65% 52%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+6) { border-radius: 50% 50% 38% 62% / 62% 38% 62% 38%; }
.sk-nav-cards .sk-nav-card:nth-child(7n+0) { border-radius: 62% 38% 50% 50% / 38% 62% 38% 62%; }
.sk-nav-card .icon {
    display: flex; justify-content: center;
    margin-bottom: 0.7rem;
}
.sk-nav-card .icon .sk-icon { width: 4.5rem; height: 4.5rem; color: var(--ink); }
.sk-nav-card .label { font-size: 2.2rem; font-weight: 600; color: var(--ink); font-family: var(--font-ui); padding: 0 0.8rem; margin-top: 0.3rem; }
.sk-nav-card .count { font-size: 1.2rem; color: var(--ink-soft); margin-top: 0.3rem; font-family: var(--font-body); padding: 0 0.8rem; }

/* --- Content Cards (shlokas, stotras, asanas, stories) --- */
.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3.2rem;
}
@media (min-width: 1024px) {
    .sk-grid { grid-template-columns: repeat(2, 1fr); }
}
.sk-card {
    background: var(--pastel-1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}
/* Keep the sketchy wavy frame, but make it thin. */
.sk-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 2px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);   /* same smooth wave as the Progress page, just thin */
    pointer-events: none;
    z-index: -1;
}
.sk-card:nth-child(7n+1) { background: var(--pastel-1); }
.sk-card:nth-child(7n+2) { background: var(--pastel-2); }
.sk-card:nth-child(7n+3) { background: var(--pastel-3); }
.sk-card:nth-child(7n+4) { background: var(--pastel-4); }
.sk-card:nth-child(7n+5) { background: var(--pastel-5); }
.sk-card:nth-child(7n+6) { background: var(--pastel-6); }
.sk-card:nth-child(7n+0) { background: var(--pastel-7); }
.sk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--card-glow, rgba(0,0,0,0.18)), 0 2px 8px rgba(0,0,0,0.08);
}
.sk-card-header {
    padding: 1.4rem 1.6rem 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}
.sk-card-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
}
.sk-card-icon .sk-icon { width: 100%; height: 100%; }
.sk-card-title { font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.25; font-family: var(--font-ui); }
.sk-card-tag {
    display: inline-block;
    background: var(--yellow-soft);
    color: var(--ink);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.18rem 0.8rem;
    border: 1.5px solid #CCCCCC;
    border-radius: 50px;
    margin-top: 0.35rem;
    margin-right: 0.3rem;
}
.sk-card-tag.beginner { background: var(--leaf-soft); }
.sk-card-body { padding: 0 1.6rem 0.8rem; flex: 1; }
.sk-card-sanskrit {
    font-family: var(--font-dev);
    font-size: 1.45rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.sk-card-transliteration { font-style: italic; color: var(--ink-soft); font-size: 1.05rem; font-family: var(--font-body); margin-bottom: 0.5rem; }
.sk-card-meaning { font-size: 1.1rem; color: var(--ink-soft); font-family: var(--font-body); line-height: 1.6; }
.sk-card-footer {
    padding: 1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* --- Audio Player --- */
.sk-audio-wrap { display: flex; align-items: center; gap: 0.55rem; flex: 1; min-width: 0; }
.sk-audio-wrap audio { width: 100%; max-width: 240px; height: 36px; }
.sk-play-btn {
    background: #FFFFFF;
    color: var(--ink);
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    width: 44px; height: 44px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    padding: 0;
}
.sk-play-btn .sk-icon { width: 1.1rem; height: 1.1rem; }
.sk-play-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* --- Buttons --- */
.btn-sk-primary, .btn-sk-secondary, .btn-sk-green {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.35rem;
    border: 2px solid #AAAAAA;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    transition: transform 0.15s, box-shadow 0.15s;
    color: #333;
    min-height: 44px;
    line-height: 1;
}
.btn-sk-primary   { background: #FFFFFF; }
.btn-sk-secondary { background: transparent; color: var(--ink); }
.btn-sk-green     { background: #FFFFFF; }
.btn-sk-primary:hover, .btn-sk-secondary:hover, .btn-sk-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

/* --- Session / Live Cards --- */
.sk-session-card {
    background: var(--purple-soft);
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    isolation: isolate;
}
.sk-session-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 6px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);
    pointer-events: none;
    z-index: -1;
}
.sk-session-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.sk-session-card .session-title { font-size: 1.5rem; font-weight: 600; font-family: var(--font-ui); color: var(--ink); }
.sk-session-card .session-time { color: var(--ink-soft); font-family: var(--font-body); font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.sk-session-card .session-desc { color: var(--ink-soft); font-size: 1.1rem; font-family: var(--font-body); }
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--leaf-soft);
    color: var(--ink);
    font-size: 0.85rem;
    font-family: var(--font-ui);
    font-weight: 600;
    padding: 0.18rem 0.75rem;
    border-radius: 50px;
    border: 1.5px solid #CCCCCC;
}
.live-badge::before { content: '●'; color: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* --- Badges / Progress --- */
.sk-badge-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.sk-badge-item {
    background: var(--pastel-1);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    width: 180px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    isolation: isolate;
}
.sk-badge-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 6px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);
    pointer-events: none;
    z-index: -1;
}
.sk-badge-item:hover { transform: rotate(2deg) translateY(-2px); box-shadow: var(--shadow-lg); }
.sk-badge-item:nth-child(7n+1) { background: var(--pastel-1); }
.sk-badge-item:nth-child(7n+2) { background: var(--pastel-2); }
.sk-badge-item:nth-child(7n+3) { background: var(--pastel-3); }
.sk-badge-item:nth-child(7n+4) { background: var(--pastel-4); }
.sk-badge-item:nth-child(7n+5) { background: var(--pastel-5); }
.sk-badge-item:nth-child(7n+6) { background: var(--pastel-6); }
.sk-badge-item:nth-child(7n+0) { background: var(--pastel-7); }
.sk-badge-item .badge-icon { display: flex; justify-content: center; }
.sk-badge-item .badge-icon .sk-icon { width: 4rem; height: 4rem; color: var(--ink); }
.sk-badge-item .badge-name { font-size: 1.15rem; font-weight: 600; margin-top: 0.4rem; color: var(--ink); font-family: var(--font-ui); }
.sk-badge-item.locked { opacity: 0.38; filter: grayscale(1); }
.sk-badge-item.locked .badge-icon .sk-icon { color: var(--ink-light); }

/* --- Asana Steps --- */
.sk-steps-list { counter-reset: step; padding: 0; list-style: none; }
.sk-steps-list li {
    counter-increment: step;
    padding: 0.75rem 0.8rem 0.75rem 3.4rem;
    position: relative;
    background: var(--paper);
    border: 1.5px solid #DDDDDD;
    border-radius: var(--radius-sm);
    margin-bottom: 0.7rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}
.sk-steps-list li::before {
    content: counter(step);
    position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
    background: #F0F0F0;
    color: var(--ink);
    border: 1.5px solid #CCCCCC;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 600;
    font-family: var(--font-ui);
}

/* --- Forms (Admin & public) --- */
.sk-form-group { margin-bottom: 1.2rem; }
.sk-form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 1rem; font-family: var(--font-body); color: var(--ink); }
.sk-form-group input, .sk-form-group textarea, .sk-form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #CCCCCC;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sk-form-group input:focus, .sk-form-group textarea:focus, .sk-form-group select:focus {
    outline: none;
    border-color: #888888;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fff;
}
.sk-form-group textarea { min-height: 110px; resize: vertical; }

/* --- Alerts --- */
.sk-alert {
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #CCCCCC;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.sk-alert-success { background: var(--leaf-soft); color: var(--ink); }
.sk-alert-error   { background: #FBE9E7; color: var(--ink); }

/* --- Filter/Search bar --- */
.sk-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
    align-items: center;
}
.sk-filter-bar input[type=search], .sk-filter-bar input[type=text] {
    padding: 0.55rem 1rem;
    border: 1.5px solid #CCCCCC;
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    min-width: 220px;
    flex: 1;
}
.sk-filter-bar input:focus { outline: none; background: #fff; }
.sk-filter-btn {
    background: var(--paper);
    border: 1.5px solid #CCCCCC;
    border-radius: 30px;
    padding: 0.42rem 1.1rem;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s, box-shadow 0.12s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.sk-filter-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.sk-filter-btn.active { background: #F0F0F0; border-color: #AAAAAA; }

/* --- Footer --- */
.sk-footer {
    background: #F7F7F7;
    color: var(--ink);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
}
.sk-footer a { color: var(--ink); border-bottom: 1.5px dashed currentColor; }
.sk-footer .footer-tagline { font-size: 1.15rem; margin-top: 0.5rem; color: var(--ink-soft); font-family: var(--font-ui); }
.sk-footer .brand-line { font-family: var(--font-ui); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.sk-footer .footer-address { margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

/* --- Jitsi embed --- */
.jitsi-frame-wrap {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.jitsi-frame-wrap iframe { width: 100%; height: 100%; border: 0; }

/* --- Story-specific tiles (used on Stories index) --- */
.sk-story-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.5rem;
}
.sk-category-tile {
    background: var(--pastel-1);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    display: block;
    position: relative;
    isolation: isolate;
}
.sk-category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    border: 6px solid #B0B0B0;
    border-radius: 18px;
    filter: url(#sk-wavy-border);
    pointer-events: none;
    z-index: -1;
}
.sk-category-tile:nth-child(7n+1) { background: var(--pastel-1); }
.sk-category-tile:nth-child(7n+2) { background: var(--pastel-2); }
.sk-category-tile:nth-child(7n+3) { background: var(--pastel-3); }
.sk-category-tile:nth-child(7n+4) { background: var(--pastel-4); }
.sk-category-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--card-glow, rgba(0,0,0,0.18)), 0 2px 8px rgba(0,0,0,0.08); color: var(--ink); }
.sk-category-tile h3 {
    font-family: var(--font-ui);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}
.sk-category-tile p { color: var(--ink-soft); font-size: 1.05rem; font-family: var(--font-body); }

/* Story detail body — long-form prose */
.sk-story-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    padding: 0 1.4rem 1.4rem;
}
.sk-story-body p { margin-bottom: 1rem; }

/* --- Admin table --- */
.sk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid #DDDDDD;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.sk-table thead tr { background: #F0F0F0; }
.sk-table thead th {
    padding: 0.75rem 1rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    border-bottom: 1.5px solid #DDDDDD;
}
.sk-table tbody tr { background: #FFFFFF; }
.sk-table tbody tr:nth-child(even) { background: #F7F7F7; }
.sk-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px dashed #E5E5E5;
    color: var(--ink);
    vertical-align: middle;
}
.sk-table tbody tr:last-child td { border-bottom: none; }
.sk-table tbody tr:hover { background: #EEEEEE; }
.sk-table-wrap { overflow-x: auto; }

/* --- Responsive --- */
/* Collapse the menu to a hamburger early enough that the horizontal bar
   never has to crowd the logo — it only shows when there's room for all
   items on one line. */
@media (max-width: 1080px) {
    .sk-nav-links {
        display: none; flex-direction: column;
        position: fixed; top: 70px; left: 1rem; right: 1rem;
        background: #FFFFFF;
        padding: 1rem;
        gap: 0.2rem;
        z-index: 999;
        border: none;
        border-radius: var(--radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    }
    .sk-nav-links.open { display: flex; }
    .sk-nav-links a { font-size: 0.9rem; padding: 0.5rem 0.9rem; white-space: normal; }
    .sk-hamburger { display: flex; }
    .sk-navbar .brand-text { display: none; }
    /* In the hamburger menu, just list the account items inline (no popup). */
    .sk-acct .sk-acct-toggle { display: none; }
    .sk-acct-menu {
        position: static; display: flex; box-shadow: none;
        background: none; padding: 0; margin-top: 0; min-width: 0;
    }
    .sk-acct-menu a, .sk-acct-menu .sk-acct-item-btn { justify-content: center; }

    /* Wavy reveal: items drop in one after another, alternating from
       above and below for a gentle up-and-down ripple. */
    .sk-nav-links.open li {
        animation: sk-menu-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .sk-nav-links.open li:nth-child(odd)  { --menu-from: -18px; }
    .sk-nav-links.open li:nth-child(even) { --menu-from:  18px; }
    .sk-nav-links.open li:nth-child(1)  { animation-delay: 0.02s; }
    .sk-nav-links.open li:nth-child(2)  { animation-delay: 0.06s; }
    .sk-nav-links.open li:nth-child(3)  { animation-delay: 0.10s; }
    .sk-nav-links.open li:nth-child(4)  { animation-delay: 0.14s; }
    .sk-nav-links.open li:nth-child(5)  { animation-delay: 0.18s; }
    .sk-nav-links.open li:nth-child(6)  { animation-delay: 0.22s; }
    .sk-nav-links.open li:nth-child(7)  { animation-delay: 0.26s; }
    .sk-nav-links.open li:nth-child(8)  { animation-delay: 0.30s; }
    .sk-nav-links.open li:nth-child(9)  { animation-delay: 0.34s; }
    .sk-nav-links.open li:nth-child(10) { animation-delay: 0.38s; }

    /* Plain text items (no border/background) zig-zag in a gentle wave
       down the list (offset sideways via `left`, which doesn't clash with
       the animated transform). */
    .sk-nav-links.open li { align-self: center; position: relative; }
    .sk-nav-links.open li:nth-child(1)  { left:  34px; }
    .sk-nav-links.open li:nth-child(2)  { left:  24px; }
    .sk-nav-links.open li:nth-child(3)  { left:   0;   }
    .sk-nav-links.open li:nth-child(4)  { left: -24px; }
    .sk-nav-links.open li:nth-child(5)  { left: -34px; }
    .sk-nav-links.open li:nth-child(6)  { left: -24px; }
    .sk-nav-links.open li:nth-child(7)  { left:   0;   }
    .sk-nav-links.open li:nth-child(8)  { left:  24px; }
    .sk-nav-links.open li:nth-child(9)  { left:  34px; }
    .sk-nav-links.open li:nth-child(10) { left:  24px; }
}
@keyframes sk-menu-in {
    from { opacity: 0; transform: translateY(var(--menu-from, 14px)); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 860px) {
    .sk-hero-split {
        flex-direction: column;
        min-height: auto;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    .sk-hero-split-img { flex: none; width: 100%; max-width: 360px; margin: 0 auto; }
    .sk-hero-split-text { align-items: center; }
    .sk-hero h1, .sk-hero .sub-dev, .sk-hero p { text-align: center; }
    .sk-hero-cta { justify-content: center; }
    .sk-nav-cards { grid-template-columns: repeat(2, 1fr); }
    .sk-grid { grid-template-columns: repeat(2, 1fr); }
    .sk-badge-item { width: 120px; }
    h1 { font-size: 2rem; } h2 { font-size: 1.65rem; }
}
@media (max-width: 560px) {
    .sk-grid { grid-template-columns: repeat(2, 1fr); }
    .sk-grid .sk-card { min-width: 0; }
}
@media (max-width: 420px) {
    .sk-nav-cards { grid-template-columns: 1fr; }
    .sk-grid { grid-template-columns: 1fr; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.8rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.8rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.p-3 { padding: 1.5rem; }
.muted { color: var(--ink-light); font-family: var(--font-body); }

/* --- Auth Pages (Login / Register / ForgotPassword / ResendEmailConfirmation) --- */
.sk-auth-wrap {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 4rem;
}
.sk-auth-card {
    background: var(--paper);
    border: 1.5px solid rgba(0,0,0,0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.4rem 2.4rem 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
}
.sk-auth-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(0,0,0,0.06);
    border-radius: calc(var(--radius) - 4px);
    pointer-events: none;
}
.sk-auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}
.sk-auth-icon {
    width: 3rem;
    height: 3rem;
    display: block;
    margin: 0 auto 0.7rem;
    color: var(--ink);
    stroke: var(--ink);
}
.sk-auth-title {
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.2rem;
}
.sk-auth-sub {
    font-family: var(--font-dev);
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
}
.sk-auth-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    margin-top: 0.4rem;
}
.sk-auth-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.sk-auth-btn:active { transform: translateY(0); }
.sk-auth-remember {
    margin-bottom: 1rem;
}
.sk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-soft);
    cursor: pointer;
}
.sk-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ink);
    cursor: pointer;
}
.sk-auth-links {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    border-top: 1.5px dashed #DDDDDD;
    padding-top: 1.2rem;
}
.sk-auth-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--ink-soft);
    transition: color 0.15s;
}
.sk-auth-links a:hover { color: var(--ink); border-bottom-style: solid; }
.sk-field-error {
    display: block;
    font-size: 0.88rem;
    color: var(--red);
    margin-top: 0.25rem;
    font-family: var(--font-body);
}
.sk-alert:empty { display: none; }
.validation-summary-valid { display: none !important; }
@media (max-width: 480px) {
    .sk-auth-card { padding: 1.8rem 1.2rem 1.6rem; }
    .sk-auth-title { font-size: 1.7rem; }
}

/* ============================================================
   HUMSKUL — FLYING SWANS / BIRDS (background decoration)
   ------------------------------------------------------------
   Graceful pencil-stroke birds (हंस = swan) gently flap and
   glide across the sky behind all page content. Pure CSS + SVG,
   no JavaScript. The markup lives in _Layout.cshtml (.sk-sky).
   pointer-events:none so they never block clicks/taps.
   ============================================================ */

/* Let the birds show through the otherwise-opaque page wrappers.
   These rules come AFTER the originals, so they override just the
   full-width section backgrounds — the white cards on top stay
   crisp and fully readable. */
.sk-hero             { background: transparent; }
.sk-section-wrap     { background: transparent; }
.sk-section-wrap-alt { background: rgba(247, 247, 247, 0.6); }

/* The "sky": a fixed full-viewport layer. z-index sits ABOVE the fixed
   top bar (.sk-navbar is z-index 1000) so the birds fly over it; the
   layer is pointer-events:none so it never blocks the nav links. */
.sk-sky {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow: hidden;
    pointer-events: none;
}

/* Each bird glides left → right across the viewport. Per-bird variety
   (height, size, speed, delay, faintness) comes from inline custom
   properties set in the markup, so this stays a single tidy rule. */
.sk-bird {
    position: absolute;
    top: var(--top, 20vh);
    left: 0;
    width: calc(64px * var(--scale, 1));
    color: var(--ink-soft);           /* pencil grey */
    opacity: var(--op, 0.5);
    will-change: transform;
    animation: sk-fly var(--dur, 38s) linear var(--delay, 0s) infinite;
}
/* Inner wrapper does a slow vertical bob, independent of the glide,
   so the flight path feels alive rather than dead-straight. */
.sk-bird-i {
    animation: sk-bob var(--bob, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
.sk-bird svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Glide fully across, starting and ending just off-screen. */
@keyframes sk-fly {
    from { transform: translateX(-14vw); }
    to   { transform: translateX(114vw); }
}
@keyframes sk-bob {
    from { transform: translateY(-7px); }
    to   { transform: translateY(9px); }
}

/* --- Colourful butterflies (the only coloured background element) ------
   They share the .sk-sky layer and the sk-fly glide, but flutter their
   wings (a fast scaleX "fold") and wander more than the birds. Wing
   colour is set per-butterfly via the --w custom property in the markup. */
/* The meadow is a zero-height strip sitting just above the footer; its
   butterflies are anchored to its base (the footer's top edge) and float
   upward, so they appear to flutter above the footer. z-index keeps them
   layered above the footer; it takes no vertical space (no layout shift). */
.sk-meadow {
    position: relative;
    z-index: 1;
    height: 0;
    pointer-events: none;
}
/* Green grassy ground + little trees sitting along the footer's top edge. */
.sk-grass {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;           /* dip the wavy bottom edge into the footer */
    width: 100%;
    height: 80px;
    display: block;
}
.sk-bf {
    position: absolute;
    bottom: 0;                        /* rest at the footer's top edge */
    left: var(--left, 50%);
    width: calc(44px * var(--scale, 1));
    opacity: var(--op, 0.85);
    will-change: transform;
    /* Hover in place: float up, sway a little side-to-side, settle down. */
    animation: sk-bf-float var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
}
/* alternate butterflies wander the other way */
.sk-bf:nth-of-type(even) { animation-name: sk-bf-float-rev; }
.sk-bf-i {
    animation: sk-bf-bob var(--bob, 4.5s) ease-in-out var(--delay, 0s) infinite alternate;
}
.sk-bf svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Each wing folds toward the central body axis to mimic a wing-beat. */
.sk-bf .bf-wing {
    transform-box: fill-box;
    animation: sk-bf-flap var(--flap, 0.4s) ease-in-out infinite;
}
.sk-bf .bf-wing-l { transform-origin: 100% 50%; }  /* hinge at body */
.sk-bf .bf-wing-r { transform-origin: 0% 50%; }    /* hinge at body */

@keyframes sk-bf-flap {
    0%, 100% { transform: scaleX(1); }
    50%      { transform: scaleX(0.18); }
}
/* Main motion: wander here & there low over the ground, tilting/turning
   as they go (small vertical range so they stay near the grass). */
@keyframes sk-bf-float {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(26px, -16px) rotate(10deg); }   /* up — top level */
    40%  { transform: translate(46px, 12px) rotate(-7deg); }
    60%  { transform: translate(22px, 32px) rotate(8deg); }     /* down into footer */
    80%  { transform: translate(-16px, 6px) rotate(-9deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
/* Mirror wander for alternate butterflies, so they don't all drift alike. */
@keyframes sk-bf-float-rev {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-24px, 10px) rotate(-10deg); }
    40%  { transform: translate(-44px, -16px) rotate(7deg); }   /* up — top level */
    60%  { transform: translate(-14px, 30px) rotate(-8deg); }   /* down into footer */
    80%  { transform: translate(22px, 8px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
/* A little extra flutter/tilt layered on top of the float. */
@keyframes sk-bf-bob {
    from { transform: translateY(-6px) rotate(-6deg); }
    to   { transform: translateY(7px) rotate(6deg); }
}

/* Thin the flock a little on small screens to avoid clutter. */
@media (max-width: 600px) {
    .sk-bird:nth-child(n + 5),
    .sk-sm-hide { display: none; }
}

/* Accessibility: the whole effect is decorative motion, so visitors
   who ask for reduced motion simply don't see it. */
@media (prefers-reduced-motion: reduce) {
    /* Hide only the moving things; the static grass/trees can stay. */
    .sk-sky, .sk-bf, .sk-nav-clouds { display: none; }
    .sk-nav-links.open li { animation: none; }
}

/* ============================================================
   CARD SHADOWS
   Every card carries its own soft COLOURED shadow at rest (the hue is
   set per-card in site.js via --card-glow). On hover the card lifts and
   the shadow switches to a stronger, darker one for a clear highlight.
   Placed last so it overrides the earlier per-card shadow rules.
   ============================================================ */
.sk-card,
.sk-nav-card,
.sk-card-base,
.sk-category-tile,
.sk-session-card {
    box-shadow: 0 7px 22px hsla(var(--card-hue, 225), 80%, 62%, 0.5), 0 1px 4px rgba(0,0,0,0.06);
}
/* hover: don't move the card — just show a sober shadow on the TOP edge
   only (same colour, a touch darker; negative Y casts it above the card). */
.sk-card:hover,
.sk-nav-card:hover,
.sk-card-base:hover,
.sk-category-tile:hover,
.sk-session-card:hover {
    transform: none;
    box-shadow: 0 -5px 13px hsla(var(--card-hue, 225), 82%, 45%, 0.55);
}
