/* ============================================================
   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: Caveat (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:      'Caveat', cursive;
    --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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: height 0.25s ease;
}
.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 navbar + hide wave ── */
.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 .brand .brand-logo { height: 42px; }
.sk-navbar--scrolled .sk-navbar-wave { max-height: 0; opacity: 0; }

.sk-nav-links {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    align-items: center;
}
.sk-nav-links a {
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 1rem;
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 44px;
}
.sk-nav-links a .sk-icon { width: 1.1em; height: 1.1em; }
.sk-nav-links a:hover {
    background: #F0F0F0;
    border-color: transparent;
    transform: rotate(-1deg);
}
.sk-nav-links a.active {
    background: #FFFFFF;
    border: 2px solid #AAAAAA;
    color: var(--ink);
    font-weight: 600;
}

/* 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-ui);
    font-weight: 400;
    font-size: 1rem;
    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;
    font: inherit;
}
.sk-nav-logout-btn .sk-icon { width: 1.1em; height: 1.1em; }
.sk-nav-logout-btn:hover {
    background: #F0F0F0;
    transform: rotate(-1deg);
}

.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: 100%;
    height: auto;
}
.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) rotate(0.6deg);
    box-shadow: var(--shadow-lg);
}

/* --- 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) rotate(1deg);
    box-shadow: var(--shadow-lg);
    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: 2rem;
}
@media (min-width: 1024px) {
    .sk-grid { grid-template-columns: repeat(3, 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;
}
.sk-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-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) rotate(0.4deg);
    box-shadow: var(--shadow-lg);
}
.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-ui);
    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-ui); 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); }

/* --- 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) rotate(1deg); box-shadow: var(--shadow-lg); 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 --- */
@media (max-width: 860px) {
    .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: 1.5px solid #DDDDDD;
        border-radius: var(--radius);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    .sk-nav-links.open { display: flex; }
    .sk-nav-links a { font-size: 1.1rem; padding: 0.6rem 0.9rem; }
    .sk-hamburger { display: flex; }
    .sk-navbar .brand-text { display: none; }
    .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; }
}
