/* =====================================================================
   KAMALDNP STUDY PORTAL — study-design.css (Phase 6 redesign, 2026-11-19)
   The ONE study stylesheet. Palette "pine + emerald + amber" (contract §1).
   No external references: no @import, no url(), no http — fonts load in
   the header, not here. Mobile-first; no horizontal overflow at 390px.
   ===================================================================== */

/* ---- §1 palette tokens ---- */
:root {
    --sd-pine: #0B3D3A;
    --sd-pine-2: #08302E;
    --sd-emerald: #0E7C6B;
    --sd-emerald-d: #0A5E51;
    --sd-amber: #F2A900;
    --sd-amber-d: #D18F00;
    --sd-ink: #14201E;
    --sd-text: #3D4A47;
    --sd-muted: #6B7A76;
    --sd-bg: #F6F8F7;
    --sd-card: #FFFFFF;
    --sd-line: #DCE6E3;
    --sd-tint: #E3F2EF;
    --sd-ok: #15803D;
    --sd-urgent: #DC2626;
    --sd-radius: 14px;
    --sd-radius-sm: 9px;
    --sd-shadow: 0 6px 22px rgba(11, 61, 58, 0.09);
    --sd-shadow-lg: 0 14px 38px rgba(11, 61, 58, 0.14);
    --sd-font-head: 'Poppins', system-ui, -apple-system, sans-serif;
    --sd-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sd-page {
    font-family: var(--sd-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--sd-text);
    background: var(--sd-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.sd-page h1, body.sd-page h2, body.sd-page h3, body.sd-page h4,
body.sd-page h5, body.sd-page h6 {
    font-family: var(--sd-font-head);
    color: var(--sd-ink);
    line-height: 1.25;
}
body.sd-page a { color: var(--sd-emerald); text-decoration: none; }
body.sd-page a:hover { color: var(--sd-emerald-d); }
body.sd-page img { max-width: 100%; height: auto; }
::selection { background: var(--sd-amber); color: var(--sd-ink); }
:focus-visible { outline: 2px solid var(--sd-emerald); outline-offset: 2px; }

/* ---- §6 Layout ---- */
.sd-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}
.sd-section { padding: 40px 0; }
.sd-section-tint { background: var(--sd-tint); }

/* ---- Top bar ---- */
.sd-topbar {
    background: var(--sd-pine-2);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    padding: 7px 0;
}
.sd-topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.sd-topbar-info a, .sd-topbar-info span {
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sd-topbar-info a:hover { color: var(--sd-amber); }
.sd-topbar-info i { color: var(--sd-amber); font-size: 0.8em; }
.sd-topbar-social { display: flex; gap: 6px; }
.sd-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    transition: background 0.25s ease, transform 0.25s ease;
}
.sd-topbar-social a:hover { background: var(--sd-amber); color: var(--sd-ink); transform: translateY(-2px); }

/* ---- Navbar ---- */
.sd-navbar {
    background: var(--sd-pine);
    box-shadow: 0 4px 18px rgba(8, 48, 46, 0.35);
    z-index: 1030;
}
.sd-navbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.sd-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sd-brand img { max-height: 42px; width: auto; display: block; }
.sd-brand-tag {
    font-family: var(--sd-font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sd-pine);
    background: var(--sd-amber);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}
.sd-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.sd-nav-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: var(--sd-font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 9px 10px !important;
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}
.sd-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.08); }
.sd-nav-link.active { color: var(--sd-amber) !important; }
.sd-nav-link.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--sd-amber);
}
.sd-nav-drop { position: relative; }
/* Desktop: dropdown opens on hover (Bootstrap click-toggle removed by JS
   on hover-capable desktops so the parent link navigates to the hub). */
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .sd-nav-drop:hover > .sd-dropdown {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .sd-nav-drop > .sd-dropdown {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        pointer-events: none;
    }
}
.sd-dropdown {
    min-width: 250px;
    border-radius: var(--sd-radius-sm);
    padding: 10px 0;
    margin-top: 6px;
}
.sd-dropdown-head {
    font-family: var(--sd-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sd-muted);
    padding: 8px 18px 4px;
}
.sd-dropdown-item {
    font-size: 0.92rem;
    color: var(--sd-text);
    padding: 8px 18px;
    transition: background 0.15s ease, color 0.15s ease;
}
.sd-dropdown-item:hover, .sd-dropdown-item:focus {
    background: var(--sd-tint);
    color: var(--sd-emerald-d);
}
.sd-dropdown-item i { color: var(--sd-emerald); margin-right: 6px; }
.sd-dropdown-item .sd-ext { font-size: 0.65em; color: var(--sd-muted); margin-left: 2px; }
.sd-dropdown-all { font-weight: 700; color: var(--sd-emerald-d); }
.sd-nav-auth { margin-left: 8px; flex: 0 0 auto; }
.sd-burger {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 9px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sd-burger:hover { background: rgba(255, 255, 255, 0.18); }

/* ---- Mobile slide-in panel ---- */
.sd-offcanvas { background: var(--sd-pine); color: #fff; width: 320px; max-width: 88vw; }
.sd-offcanvas-head { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 16px 20px; }
.sd-offcanvas-head img { max-height: 40px; width: auto; }
.sd-offcanvas-body { padding: 12px 0 24px; }
.sd-mmenu { list-style: none; margin: 0; padding: 0; }
.sd-mmenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--sd-font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    border-left: 3px solid transparent;
}
.sd-mmenu-link i { color: var(--sd-amber); width: 20px; text-align: center; }
.sd-mmenu-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.sd-mmenu-link.active { color: var(--sd-amber) !important; border-left-color: var(--sd-amber); background: rgba(255, 255, 255, 0.05); }
.sd-mmenu-sub { list-style: none; margin: 0 0 6px; padding: 0 0 6px 52px; }
.sd-mmenu-sub a {
    display: block;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    padding: 6px 20px 6px 0;
}
.sd-mmenu-sub a:hover { color: #fff !important; }
.sd-mmenu-auth { padding: 16px 20px 8px; }
.sd-mmenu-contact { padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 8px; }
.sd-mmenu-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.88rem;
    padding: 5px 0;
}
.sd-mmenu-contact a:hover { color: var(--sd-amber) !important; }

/* ---- §6 Hero ---- */
.sd-hero {
    background: linear-gradient(135deg, var(--sd-pine) 0%, var(--sd-emerald) 62%, var(--sd-emerald-d) 100%);
    color: #fff;
    border-radius: 0 0 28px 28px;
    padding: 44px 0 48px;
    overflow: hidden;
    position: relative;
}
.sd-hero::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.35) 0%, rgba(242, 169, 0, 0) 70%);
    pointer-events: none;
}
.sd-hero-title {
    color: #fff !important;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    animation: sd-fade-up 0.6s ease both;
}
.sd-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    max-width: 640px;
    margin-bottom: 20px;
    animation: sd-fade-up 0.6s 0.12s ease both;
}
.sd-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; animation: sd-fade-up 0.6s 0.22s ease both; }
.sd-hero-media { border-radius: var(--sd-radius); overflow: hidden; box-shadow: var(--sd-shadow-lg); }
.sd-hero-media img { display: block; width: 100%; }
.sd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}

/* ---- §6 Cards ---- */
.sd-card {
    background: var(--sd-card);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sd-card:hover { transform: translateY(-3px); box-shadow: var(--sd-shadow-lg); }
.sd-card-thumb { overflow: hidden; aspect-ratio: 16 / 9; background: var(--sd-tint); }
.sd-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.sd-card:hover .sd-card-thumb img { transform: scale(1.04); }
.sd-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sd-card-title { font-size: 1.06rem; font-weight: 700; margin: 0; }
.sd-card-title a { color: var(--sd-ink); }
.sd-card-title a:hover { color: var(--sd-emerald-d); }
.sd-card-meta { font-size: 0.83rem; color: var(--sd-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.sd-card-meta i { color: var(--sd-emerald); }
.sd-job-card { border-left: 4px solid var(--sd-emerald); }
.sd-job-card .sd-card-body { gap: 6px; }
.sd-board-card { text-align: center; align-items: center; }
.sd-board-card .sd-card-body { align-items: center; text-align: center; }
.sd-post-card .sd-card-body { gap: 8px; }

/* ---- §6 Chips / badges ---- */
.sd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 3px 10px;
    background: var(--sd-tint);
    color: var(--sd-emerald-d);
    white-space: nowrap;
}
.sd-chip-amber { background: #FDF0C8; color: #7A5200; }
.sd-chip-green { background: #DCFCE7; color: var(--sd-ok); }
.sd-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--sd-amber);
    color: var(--sd-ink);
    border-radius: 999px;
    padding: 3px 9px;
}
.sd-badge-closing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #FEE2E2;
    color: var(--sd-urgent);
    border-radius: 999px;
    padding: 3px 9px;
    animation: sd-soft-pulse 2s ease-in-out infinite;
}

/* ---- §6 Buttons ---- */
.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--sd-font-head);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    border-radius: 999px;
    padding: 11px 22px;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sd-btn:hover { transform: translateY(-2px); }
.sd-btn-primary { background: var(--sd-emerald); color: #fff !important; box-shadow: 0 6px 16px rgba(14, 124, 107, 0.3); }
.sd-btn-primary:hover { background: var(--sd-emerald-d); color: #fff !important; }
.sd-btn-amber { background: var(--sd-amber); color: var(--sd-ink) !important; box-shadow: 0 6px 16px rgba(242, 169, 0, 0.35); }
.sd-btn-amber:hover { background: var(--sd-amber-d); color: #fff !important; }
.sd-btn-outline {
    background: transparent;
    border-color: var(--sd-emerald);
    color: var(--sd-emerald-d) !important;
}
.sd-btn-outline:hover { background: var(--sd-emerald); color: #fff !important; }
.sd-btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}
.sd-btn-outline-light:hover { background: #fff; color: var(--sd-pine) !important; border-color: #fff; }
.sd-btn-lg { font-size: 1.05rem; padding: 14px 30px; }
.sd-btn-sm { font-size: 0.86rem; padding: 8px 18px; }

/* ---- §6 Lists ---- */
.sd-list-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--sd-card);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sd-list-row:hover { border-color: var(--sd-emerald); box-shadow: var(--sd-shadow); }
.sd-list-row .sd-list-title { font-family: var(--sd-font-head); font-weight: 700; color: var(--sd-ink); font-size: 1rem; margin: 0; }
.sd-list-row .sd-list-title a { color: var(--sd-ink); }
.sd-list-row .sd-list-title a:hover { color: var(--sd-emerald-d); }
.sd-meta { font-size: 0.84rem; color: var(--sd-muted); }

/* ---- §6 Filters ---- */
.sd-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--sd-card);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    padding: 14px;
    margin-bottom: 22px;
}
.sd-input, .sd-select {
    font-family: var(--sd-font-body);
    font-size: 0.95rem;
    color: var(--sd-ink);
    background: var(--sd-bg);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    padding: 10px 13px;
    width: 100%;
}
.sd-input:focus, .sd-select:focus { outline: none; border-color: var(--sd-emerald); box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.15); }

/* ---- §6 Content ---- */
.sd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--sd-radius-sm); }
.sd-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sd-card);
    font-size: 0.92rem;
}
.sd-table th {
    font-family: var(--sd-font-head);
    background: var(--sd-pine);
    color: #fff;
    text-align: left;
    padding: 11px 13px;
    font-weight: 600;
    white-space: nowrap;
}
.sd-table td { padding: 10px 13px; border-bottom: 1px solid var(--sd-line); vertical-align: top; }
.sd-table tbody tr:nth-child(even) { background: var(--sd-bg); }
.sd-faq { border: 1px solid var(--sd-line); border-radius: var(--sd-radius); overflow: hidden; background: var(--sd-card); }
.sd-faq details { border-bottom: 1px solid var(--sd-line); }
.sd-faq details:last-child { border-bottom: none; }
.sd-faq summary {
    font-family: var(--sd-font-head);
    font-weight: 600;
    color: var(--sd-ink);
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: '+'; color: var(--sd-emerald); font-size: 1.3rem; font-weight: 400; line-height: 1; flex: 0 0 auto; }
.sd-faq details[open ] summary::after { content: '\2212'; }
.sd-faq details > div { padding: 0 18px 16px; color: var(--sd-text); }
.sd-steps { list-style: none; margin: 0; padding: 0; counter-reset: sd-step; display: grid; gap: 12px; }
.sd-step {
    position: relative;
    background: var(--sd-card);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    padding: 16px 18px 16px 62px;
    counter-increment: sd-step;
}
.sd-step::before {
    content: counter(sd-step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sd-emerald);
    color: #fff;
    font-family: var(--sd-font-head);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.sd-step h4 { margin: 0 0 4px; font-size: 1rem; }
.sd-crumbs { font-size: 0.85rem; color: var(--sd-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.sd-crumbs a { color: var(--sd-emerald); }
.sd-crumbs .sd-crumbs-sep { color: var(--sd-line); }
.sd-empty {
    text-align: center;
    background: var(--sd-card);
    border: 1px dashed var(--sd-line);
    border-radius: var(--sd-radius);
    padding: 44px 20px;
    color: var(--sd-muted);
}
.sd-empty i { font-size: 2.2rem; color: var(--sd-emerald); margin-bottom: 10px; }
.sd-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.sd-pager a, .sd-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--sd-line);
    background: var(--sd-card);
    color: var(--sd-text);
    font-weight: 600;
    font-size: 0.92rem;
}
.sd-pager a:hover { border-color: var(--sd-emerald); color: var(--sd-emerald-d); }
.sd-pager .sd-pager-current, .sd-pager span[aria-current="page"] { background: var(--sd-emerald); border-color: var(--sd-emerald); color: #fff; }
.sd-callout {
    background: var(--sd-tint);
    border-left: 4px solid var(--sd-emerald);
    border-radius: 0 var(--sd-radius-sm) var(--sd-radius-sm) 0;
    padding: 16px 18px;
    margin: 20px 0;
}
.sd-callout.sd-callout-amber { background: #FDF0C8; border-left-color: var(--sd-amber); }
.sd-callout.sd-callout-urgent { background: #FEE2E2; border-left-color: var(--sd-urgent); }
.sd-detail-head { margin-bottom: 22px; }
.sd-detail-head h1 { font-size: 1.6rem; font-weight: 800; margin: 8px 0 10px; }
.sd-detail-head .sd-meta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Footer ---- */
.sd-footer { background: var(--sd-pine); color: rgba(255, 255, 255, 0.82); margin-top: 48px; }
.sd-news { background: var(--sd-pine-2); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 28px 0 22px; }
.sd-news-inner { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.sd-news-text h3 { color: #fff !important; font-size: 1.15rem; margin: 0 0 4px; }
.sd-news-text h3 i { color: var(--sd-amber); }
.sd-news-text p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.sd-news-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 320px; max-width: 520px; }
.sd-news-form input[type="email"] {
    flex: 1 1 200px;
    font-family: var(--sd-font-body);
    font-size: 0.95rem;
    color: var(--sd-ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 18px;
    min-width: 0;
}
.sd-news-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.4); }
.sd-news-msg { display: block; margin-top: 10px; font-weight: 700; font-size: 0.88rem; min-height: 1.2em; }
.sd-news-ok { color: #86EFAC; }
.sd-news-err { color: #FCA5A5; }
.sd-news-warn { color: var(--sd-amber); }
.sd-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 32px;
}
.sd-footer-brand img { max-height: 58px; width: auto; margin-bottom: 14px; }
.sd-footer-brand p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 16px; }
.sd-footer-brand address { font-style: normal; font-size: 0.88rem; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.sd-footer-brand address a, .sd-footer-brand address span { color: rgba(255, 255, 255, 0.82); }
.sd-footer-brand address a:hover { color: var(--sd-amber); }
.sd-footer-brand address i { color: var(--sd-amber); margin-right: 4px; }
.sd-footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.25s ease, transform 0.25s ease;
}
.sd-footer-social a:hover { background: var(--sd-amber); color: var(--sd-ink); transform: translateY(-3px); }
.sd-footer-col h4 {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid rgba(242, 169, 0, 0.55);
    display: inline-block;
}
.sd-footer-col ul { list-style: none; margin: 0; padding: 0; }
.sd-footer-col li { margin-bottom: 8px; }
.sd-footer-col a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.sd-footer-col a:hover { color: var(--sd-amber) !important; padding-left: 4px; }
.sd-foot-note { font-size: 0.78em; color: rgba(255, 255, 255, 0.5); }
.sd-footer-bottom { background: var(--sd-pine-2); padding: 16px 0; font-size: 0.85rem; }
.sd-footer-bottom-inner { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.sd-footer-bottom p { margin: 0; }
.sd-footer-bottom i { color: var(--sd-amber); }

/* ---- Back to top ---- */
.sd-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--sd-amber);
    color: var(--sd-ink);
    box-shadow: var(--sd-shadow-lg);
    z-index: 1040;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-top-btn-show { opacity: 1; visibility: visible; transform: translateY(0); }
.sd-top-btn:hover { background: var(--sd-amber-d); color: #fff; }

/* ---- Scroll reveal (CSS-only animation; JS only adds the class) ----
   Hidden state applies ONLY when JS ran (html.sd-js), so no-JS visitors
   always see the content. */
.sd-reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.sd-js .sd-reveal { opacity: 0; transform: translateY(18px); }
html.sd-js .sd-reveal.sd-reveal-in { opacity: 1; transform: translateY(0); }

/* ---- Keyframes ---- */
@keyframes sd-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes sd-soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    html.sd-js .sd-reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (min-width: 576px) {
    .sd-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-footer-brand { grid-column: span 2; }
    .sd-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .sd-section { padding: 52px 0; }
    .sd-hero { padding: 56px 0 60px; }
    .sd-hero-title { font-size: 2.4rem; }
    .sd-detail-head h1 { font-size: 2rem; }
}
@media (min-width: 992px) {
    .sd-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .sd-footer-brand { grid-column: span 1; }
    .sd-steps { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1200px) {
    .sd-footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr 1fr; }
    .sd-hero-title { font-size: 2.7rem; }
}
/* 390px guard: nothing fixed-width may overflow; long words/URLs wrap. */
@media (max-width: 575px) {
    .sd-navbar-inner { gap: 10px; }
    .sd-brand-tag { display: none; }
    .sd-news-form .sd-btn { width: 100%; }
    .sd-top-btn { bottom: 16px; right: 16px; width: 44px; height: 44px; }
    .sd-list-row { flex-direction: column; gap: 8px; }
    .sd-card-body { padding: 15px; }
    .sd-hero { border-radius: 0 0 20px 20px; padding: 34px 0 38px; }
    .sd-hero-title { font-size: 1.65rem; }
    .sd-btn { white-space: normal; text-align: center; }
}
.sd-card-title, .sd-list-row .sd-list-title, .sd-detail-head h1 { overflow-wrap: break-word; }

/* =====================================================================
   PHASE 6 ASSEMBLY FOLD (coordinator, 2026-11-19)
   Shared page components, moved here from the page <style> blocks
   they were duplicated in (2+ files each). Rules are VERBATIM — the
   var(--sd-*, fallback) values are kept deliberately (defensive:
   pages still render if this file loads late). Page-local
   components (.sd-exam-*, .ds-*, .rs-*, .sd-tile*, .sd-article*,
   .kd-*, .sd-cat-expand, main-branch styles) stay in their pages.
   Two reconciled variants use modifier classes so both visuals
   survive exactly: .sd-rel-link-solid, .sd-step-num-amber.
   ===================================================================== */

/* Folded: html */
html { scroll-padding-top: 96px; }

/* Folded: .sd-h */
.sd-h { color: var(--sd-pine, #0B3D3A); }

/* Folded: .sd-list-row-title */
.sd-list-row-title { font-weight: 700; font-size: 1.05rem; line-height: 1.45; color: var(--sd-pine, #0B3D3A); }

/* Folded: .sd-list-row-meta */
.sd-list-row-meta { font-size: .85rem; color: var(--sd-muted, #6B7A76); margin-top: 4px; }

/* Folded: .sd-list-row-meta i */
.sd-list-row-meta i { color: var(--sd-emerald, #0E7C6B); }

/* Folded: a.sd-list-row:hover .sd-list-row-title */
a.sd-list-row:hover .sd-list-row-title { color: var(--sd-emerald, #0E7C6B); }

/* Folded: .sd-box-head */
.sd-box-head { background: linear-gradient(135deg, var(--sd-pine-2, #08302E) 0%, var(--sd-pine, #0B3D3A) 100%); color: #fff; font-weight: 800; font-size: 1.12rem; padding: 13px 20px; border-left: 5px solid var(--sd-amber, #F2A900); }

/* Folded: .sd-box-head i */
.sd-box-head i { color: var(--sd-amber, #F2A900); }

/* Folded: .sd-detail-body */
.sd-detail-body { font-size: 1.06rem; line-height: 1.75; color: var(--sd-text, #3D4A47); }

/* Folded: .sd-detail-body p, .sd-detail-body li, .sd-detail-body td */
.sd-detail-body p, .sd-detail-body li, .sd-detail-body td { line-height: 1.75; }

/* Folded: .sd-stat-strip */
.sd-stat-strip { background: var(--sd-card, #fff); border: 1px solid var(--sd-line, #DCE6E3); border-radius: 16px; }

/* Folded: .sd-stat-num */
.sd-stat-num { font-family: Poppins, sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--sd-pine, #0B3D3A); }

/* Folded: .sd-stat-label */
.sd-stat-label { font-size: .85rem; color: var(--sd-muted, #6B7A76); }

/* Folded: .sd-stat + .sd-stat */
.sd-stat + .sd-stat { border-left: 1px solid var(--sd-line, #DCE6E3); }

/* Folded: .sd-rel-link */
.sd-rel-link { display: block; text-decoration: none; color: var(--sd-ink, #14201E); padding: 10px 0; border-bottom: 1px dashed var(--sd-line, #DCE6E3); }

/* Folded: .sd-rel-link:last-child */
.sd-rel-link:last-child { border-bottom: none; }

/* Folded: .sd-rel-link:hover */
.sd-rel-link:hover { color: var(--sd-emerald, #0E7C6B); }

/* Folded: .sd-rel-title */
.sd-rel-title { font-weight: 600; font-size: .95rem; line-height: 1.4; }

/* Folded: .sd-rel-meta */
.sd-rel-meta { font-size: .8rem; color: var(--sd-muted, #6B7A76); }

/* Folded: .sd-rel-link small */
.sd-rel-link small { color: var(--sd-muted, #6B7A76); font-weight: 500; }

/* Folded: .sd-step-num */
.sd-step-num { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--sd-pine, #0B3D3A); color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; }

/* Folded: .sd-post-thumb-ph */
.sd-post-thumb-ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--sd-pine, #0B3D3A) 0%, var(--sd-emerald, #0E7C6B) 100%);
    color: rgba(255,255,255,.85); font-size: 2.25rem;
}

/* Folded: .sd-clamp-2 */
.sd-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Folded: .sd-clamp-3 */
.sd-clamp-3 {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Folded: .sd-widget-title */
.sd-widget-title {
    font-size: 1.05rem; font-weight: 800; color: var(--sd-ink, #14201E);
    margin-bottom: .9rem; padding-bottom: .6rem;
    border-bottom: 2px solid var(--sd-line, #DCE6E3); position: relative;
}

/* Folded: .sd-widget-title::after */
.sd-widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background: var(--sd-emerald, #0E7C6B);
}

/* Folded: .sd-cat-tree */
.sd-cat-tree { list-style: none; padding: 0; margin: 0; }

/* Folded: .sd-cat-tree li */
.sd-cat-tree li { margin-bottom: 6px; }

/* Folded: .sd-cat-link */
.sd-cat-link {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    text-decoration: none; color: var(--sd-text, #3D4A47); font-weight: 500;
    padding: .5rem .75rem; border-radius: .5rem; background: var(--sd-bg, #F6F8F7);
    transition: background .2s ease, color .2s ease;
}

/* Folded: .sd-cat-link .sd-chip */
.sd-cat-link .sd-chip { flex-shrink: 0; }

/* Folded: .sd-cat-link:hover, .sd-cat-link.active */
.sd-cat-link:hover, .sd-cat-link.active {
    background: var(--sd-tint, #E3F2EF); color: var(--sd-emerald-d, #0A5E51);
}

/* Folded: .sd-cat-kids */
.sd-cat-kids { list-style: none; padding: .25rem 0 0 1.1rem; margin: 0; }

/* Folded: .sd-recent-row */
.sd-recent-row {
    display: flex; align-items: center; gap: .9rem;
    margin-bottom: .9rem; padding-bottom: .9rem;
    border-bottom: 1px dashed var(--sd-line, #DCE6E3);
}

/* Folded: .sd-recent-row:last-child */
.sd-recent-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Folded: .sd-recent-thumb */
.sd-recent-thumb {
    width: 64px; height: 64px; border-radius: .5rem; object-fit: cover; flex-shrink: 0;
}

/* Folded: .sd-recent-thumb-ph */
.sd-recent-thumb-ph {
    width: 64px; height: 64px; border-radius: .5rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--sd-tint, #E3F2EF); color: var(--sd-emerald, #0E7C6B); font-size: 1.25rem;
}

/* Folded: .sd-promo */
.sd-promo {
    background: linear-gradient(135deg, var(--sd-pine, #0B3D3A), var(--sd-emerald, #0E7C6B));
    color: #fff; border: none;
}

/* Folded: .sd-promo .sd-widget-title */
.sd-promo .sd-widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); }

/* Folded: .sd-promo .sd-widget-title::after */
.sd-promo .sd-widget-title::after { background: var(--sd-amber, #F2A900); }

/* Folded: .sd-rel-link.sd-rel-link-solid (modifier, from update-details) */
.sd-rel-link.sd-rel-link-solid { display: block; text-decoration: none; color: var(--sd-ink, #14201E); padding: 10px 0; border-bottom: 1px solid var(--sd-line, #DCE6E3); font-weight: 600; font-size: .92rem; line-height: 1.45; }

/* Folded: .sd-rel-link.sd-rel-link-solid:last-child (modifier) */
.sd-rel-link.sd-rel-link-solid:last-child { border-bottom: 0; }

/* Folded: .sd-step-num.sd-step-num-amber (modifier, from freelancing) */
.sd-step-num.sd-step-num-amber { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--sd-amber, #F2A900); color: var(--sd-ink, #14201E); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

/* Folded: @media 767.98px .sd-stat + .sd-stat (from boards) */
@media (max-width: 767.98px) {
    .sd-stat + .sd-stat { border-left: none; border-top: 1px solid var(--sd-line, #DCE6E3); }
}

/* ---- Phase 6 visual fixes (2026-11-19, browser check) ---- */
/* Hero contrast: outline buttons, hero chips, meta labels and crumbs
   must read on the dark hero. body.sd-page a (0,1,2) outranks
   single-class selectors, so these are hero-scoped (higher spec). */
.sd-hero .sd-btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.sd-hero a.sd-hero-chip { color: #fff !important; }
.sd-hero .sd-meta { color: rgba(255, 255, 255, 0.85); }
.sd-hero .sd-crumbs { color: rgba(255, 255, 255, 0.75); --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5); }
.sd-hero .sd-crumbs a { color: #FCD34D; }
/* Navbar always above sticky page content (beats Bootstrap .sticky-top
   on specificity, regardless of stylesheet load order). */
nav.sd-navbar.sticky-top { z-index: 1030; }
/* Sticky sidebars stay below the navbar band. */
.sticky-top.sd-side-stick { z-index: 1010; }
/* Breadcrumb current page (v3): Bootstrap sets .breadcrumb-item.active
   explicitly, so the nav-level colour never reached the li — target it. */
.sd-hero .sd-crumbs .breadcrumb-item.active { color: #FCD34D; }
/* Topbar contact links full white (v3: body.sd-page a (0,1,2) outranked
   the plain selector; keep the amber hover with matching specificity). */
body.sd-page .sd-topbar-info a { color: #fff; }
body.sd-page .sd-topbar-info a:hover { color: var(--sd-amber); }
