/* ================================================================
   SIGMA Public Pages - Layout & Component Styles
   Supplements sigma.css for public (unauthenticated) pages.
   Uses sigma.css CSS custom properties.
   ================================================================ */

:root {
    --font:   'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-d: 'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */
.pub-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .pub-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .pub-container { padding-left: 2rem; padding-right: 2rem; }
}
.pub-container--sm { max-width: 48rem; }
.pub-container--md { max-width: 64rem; }
.pub-container--lg { max-width: 72rem; }

/* ----------------------------------------------------------------
   Section padding
   ---------------------------------------------------------------- */
/* .pub-section { padding-top: 3rem; padding-bottom: 3rem; } */
.pub-section--lg { padding-top: 5rem; padding-bottom: 5rem; }
.pub-section--top { padding-top: 3rem; }

/* ----------------------------------------------------------------
   Page header (within content)
   ---------------------------------------------------------------- */
.pub-page-header { margin-bottom: 2.5rem; }
.pub-page-header--center { text-align: center; }

.pub-page-header__title {
    font-family: var(--font-d);
    font-size: 1.875rem;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.pub-page-header__lead {
    font-size: 0.975rem;
    color: var(--text-muted);
    max-width: 40rem;
    line-height: 1.65;
    margin: 0;
}
.pub-page-header--center .pub-page-header__lead {
    margin-left: auto;
    margin-right: auto;
}

.pub-page-header__meta {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ----------------------------------------------------------------
   Grid layouts
   ---------------------------------------------------------------- */
.pub-grid {
    display: grid;
    gap: 1.5rem;
}
.pub-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pub-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pub-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
    .pub-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .pub-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .pub-grid--2,
    .pub-grid--3,
    .pub-grid--4 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Sidebar layout (2fr + 1fr)
   ---------------------------------------------------------------- */
.pub-sidebar-layout {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .pub-sidebar-layout { grid-template-columns: 2fr 1fr; }
}

/* ----------------------------------------------------------------
   Hero section
   ---------------------------------------------------------------- */
.pub-hero {
    /* transparent → body topo pattern + bg-color show through; gradient overlay on top */
    background: radial-gradient(ellipse 120% 90% at 50% -10%,
        color-mix(in srgb, var(--accent) 15%, transparent),
        transparent 60%);
    text-align: center;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: relative;
}
/* Subtle bottom wave separator - connects hero to the next section */
.pub-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in srgb, var(--accent) 40%, transparent) 30%,
        color-mix(in srgb, var(--accent) 40%, transparent) 70%,
        transparent);
    pointer-events: none;
}
.pub-hero__inner {
    padding: 4rem 1rem;
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}
.pub-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.pub-hero__title {
    font-family: var(--font-d);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}
.pub-hero__title em { font-style: normal; color: var(--accent); }
.pub-hero__lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.pub-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ----------------------------------------------------------------
   Stats banner (accent background)
   ---------------------------------------------------------------- */
.pub-stats-banner {
    background: var(--accent);
    padding: 3rem 0;
}
.pub-stats-banner__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
@media (max-width: 767px) {
    .pub-stats-banner__grid { grid-template-columns: repeat(2, 1fr); }
}
.pub-stats-banner__value {
    font-family: var(--font-d);
    font-size: 2.25rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.pub-stats-banner__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------------------
   Feature cards
   ---------------------------------------------------------------- */
.pub-features {
    background: var(--surface);
}
.pub-features__header {
    text-align: center;
    margin-bottom: 3rem;
}
.pub-features__title {
    font-family: var(--font-d);
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.pub-features__subtitle { color: var(--text-muted); font-size: 0.9rem; }

.pub-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}
.pub-feature-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.pub-feature-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}
.pub-feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.pub-feature-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   CTA section
   ---------------------------------------------------------------- */
.pub-cta {
    /* richer gradient for more visual impact */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 14%, transparent),
        color-mix(in srgb, var(--teal) 8%, transparent) 100%);
    text-align: center;
    padding: 5rem 0;
}
.pub-cta__title {
    font-family: var(--font-d);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text);
    margin: 0 0 0.75rem;
}
.pub-cta__desc {
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 38rem;
    font-size: 0.9rem;
    line-height: 1.65;
}
.pub-cta__note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
}
.pub-cta__note a { color: var(--accent); text-decoration: none; }
.pub-cta__note a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   Stat cards (statistik page)
   ---------------------------------------------------------------- */
.pub-stat-card {
    text-align: center;
    padding: 1.5rem;
}
.pub-stat-card__value {
    font-family: var(--font-d);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.pub-stat-card__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Section heading (within content pages)
   ---------------------------------------------------------------- */
.pub-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------
   Tab bar (alur permohonan)
   ---------------------------------------------------------------- */
.pub-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.pub-tab-bar::-webkit-scrollbar { display: none; }

.pub-tab-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--t-base), border-color var(--t-base);
    font-family: var(--font);
}
.pub-tab-btn:hover { color: var(--text); }
.pub-tab-btn[aria-selected="true"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ----------------------------------------------------------------
   Alur / flow stepper
   ---------------------------------------------------------------- */
.pub-flow {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pub-flow__step {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}
.pub-flow__step::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.pub-flow__step:last-child::before { display: none; }

.pub-flow__number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-ring);
    position: relative;
    z-index: 1;
}
.pub-flow__step--final .pub-flow__number {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.pub-flow__body { flex: 1; padding-top: 0.25rem; }
.pub-flow__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.35rem;
}
.pub-flow__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   Regulasi list
   ---------------------------------------------------------------- */
.pub-regulasi-list { margin: 0; padding: 0; list-style: none; }
.pub-regulasi-list > * + * { margin-top: 0.75rem; }

.pub-regulasi-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.pub-regulasi-item__info { flex: 1; min-width: 0; }
.pub-regulasi-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}
.pub-regulasi-item__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.pub-regulasi-item__excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-regulasi-item__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ----------------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------------- */
.pub-faq-group + .pub-faq-group { margin-top: 2.5rem; }
.pub-faq-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 1rem;
}
.pub-faq-list { margin: 0; padding: 0; list-style: none; }
.pub-faq-list > * + * { margin-top: 0.5rem; }

.pub-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
}
.pub-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: background var(--t-base);
}
.pub-faq-item__question::-webkit-details-marker { display: none; }
.pub-faq-item__question:hover { background: var(--surface-sunken); }
.pub-faq-item__chevron {
    width: 1rem;
    height: 1rem;
    color: var(--text-faint);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.pub-faq-item[open] .pub-faq-item__chevron { transform: rotate(180deg); }
.pub-faq-item__answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   Prose / article content (tentang page)
   ---------------------------------------------------------------- */
.pub-prose {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: none;
}
.pub-prose p { margin: 0 0 1rem; }
.pub-prose p:last-child { margin-bottom: 0; }
.pub-prose h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.75rem; }
.pub-prose h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 0.5rem; }

/* ----------------------------------------------------------------
   Contact info
   ---------------------------------------------------------------- */
.pub-contact-address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.pub-contact-address dl { margin: 0; }
.pub-contact-address dt {
    font-weight: 600;
    color: var(--text);
    margin-top: 0.75rem;
}
.pub-contact-address dt:first-child { margin-top: 0; }
.pub-contact-address dd {
    margin: 0.15rem 0 0 0;
}
.pub-contact-address a { color: var(--accent); text-decoration: none; }
.pub-contact-address a:hover { text-decoration: underline; }

.pub-hours-card {
    background: var(--accent-light);
    border: 1px solid var(--accent-ring);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text);
    margin-top: 1rem;
}

/* ----------------------------------------------------------------
   Text link in publik pages
   ---------------------------------------------------------------- */
.pub-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.pub-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   Small meta text
   ---------------------------------------------------------------- */
.pub-meta {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   Card padding helpers (used with .card)
   ---------------------------------------------------------------- */
.card--padded { padding: 1.5rem; }
.card--padded-sm { padding: 1.1rem; }

/* ----------------------------------------------------------------
   CTA text link row
   ---------------------------------------------------------------- */
.pub-cta-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    text-align: center;
}
.pub-cta-note a { color: var(--accent); text-decoration: none; }
.pub-cta-note a:hover { text-decoration: underline; }


/* ================================================================
   Public body base
   (no Tailwind dependency - used only with base_public.html)
   ================================================================ */
:root { --bg0: #ffffff; }
[data-theme="dark"] { --bg0: var(--surface-sunken); }

/* Enables full-bleed sections (hero, CTA) via width:100vw + margin trick */
main#main-content { overflow-x: clip; }

body.sigma-public {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
body.sigma-public * { box-sizing: border-box; }
/* body.sigma-public a { color: inherit; } */


/* ================================================================
   Public Header / Navbar
   ================================================================ */
.pub-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 300;
    transition: background 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease;
}
/* Frosted glass - activated via .is-scrolled (JS scroll handler) */
.pub-header.is-scrolled {
    background: rgba(3, 11, 3, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: rgba(34, 217, 124, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 28px rgba(0,0,0,0.45);
}
[data-theme="light"] .pub-header.is-scrolled {
    background: rgba(248, 251, 249, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: rgba(13, 122, 67, 0.14);
    box-shadow: 0 4px 20px rgba(15, 50, 30, 0.08);
}

.pub-header__inner {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 640px) { .pub-header__inner { padding: 0 2rem; } }

.pub-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.75rem;
    gap: 1rem;
}

/* Brand / logo */
.pub-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-header__lockup {
    height: 34px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
/* Theme-aware SIGMA lockup: dark = default :root, light = [data-theme="light"] */
.pub-header .ph-lock--light { display: none; }
.pub-header .ph-lock--dark  { display: block; }
[data-theme="light"] .pub-header .ph-lock--light { display: block; }
[data-theme="light"] .pub-header .ph-lock--dark  { display: none; }
.pub-header__brand-name {
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.pub-header__brand-tagline {
    margin-top: 0.1rem;
    max-width: 21rem;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    /* clamp to 2 lines so the long official name never bloats the header */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Hide the full official name on narrow viewports - keep the wordmark clean */
@media (max-width: 1023px) {
    .pub-header__brand-tagline { display: none; }
}

/* Desktop nav links */
.pub-header__links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
}
@media (max-width: 767px) { .pub-header__links { display: none; } }

.pub-header__link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.855rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0;
    transition: color var(--t-fast);
    white-space: nowrap;
    background: transparent;
}
/* Dot indicator - spring bounce, only on active */
.pub-header__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pub-header__link:hover {
    color: var(--text);
    background: transparent;
}
.pub-header__link.is-active {
    color: var(--text);
    font-weight: 700;
}
.pub-header__link.is-active::after {
    transform: translateX(-50%) scale(1);
}

/* CMS nav separator */
.pub-header__nav-sep {
    display: inline-block;
    width: 1px;
    height: 1.25rem;
    background: var(--border-strong);
    opacity: 0.4;
    flex-shrink: 0;
    margin: 0 0.25rem;
    align-self: center;
}

/* Header right-side actions */
.pub-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .pub-header__actions .btn { display: none; }
}
/* CTA in nav - ring glow on hover for extra pop */
.pub-header__actions .btn--primary {
    transition: background var(--t-fast), box-shadow var(--t-fast), transform 150ms ease;
}
.pub-header__actions .btn--primary:hover {
    box-shadow: 0 0 0 3px var(--accent-ring);
    transform: translateY(-1px);
}

/* Theme toggle button */
.pub-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--t-fast);
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}
.pub-theme-btn:hover {
    color: var(--text);
    background: transparent;
}
.pub-theme-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Full-width theme btn inside drawer actions */
.pub-theme-btn--full {
    width: 100%;
    height: 2.25rem;
    gap: 0.5rem;
    border-radius: var(--radius-btn, var(--radius-sm));
    font-size: 0.875rem;
    font-weight: 500;
    justify-content: center;
}
.pub-theme-btn--full .pub-theme-btn__label { font-size: 0.875rem; }

/* Mobile hamburger button */
.pub-header__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    transition: background var(--t-fast), color var(--t-fast);
}
.pub-header__menu-btn:hover { background: var(--accent-light); color: var(--accent); }
@media (max-width: 767px) { .pub-header__menu-btn { display: flex; } }

/* Mobile navigation drawer */
.pub-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
}
.pub-nav-drawer.is-open { pointer-events: auto; }

.pub-nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.pub-nav-drawer.is-open .pub-nav-drawer__backdrop { opacity: 1; }

.pub-nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 300px);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pub-nav-drawer.is-open .pub-nav-drawer__panel { transform: translateX(0); }

.pub-nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.pub-nav-drawer__title {
    font-family: var(--font-d);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: -0.01em;
}
.pub-nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.15rem;
    transition: background var(--t-fast), color var(--t-fast);
    flex-shrink: 0;
}
.pub-nav-drawer__close:hover { background: var(--accent-light); color: var(--accent); }

.pub-nav-drawer__links {
    padding: 0.5rem 0;
    flex: 1;
}
.pub-nav-drawer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
}
.pub-nav-drawer__link:hover { background: var(--accent-light); color: var(--accent); }
.pub-nav-drawer__link.is-active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding-left: calc(1.25rem - 3px);
}
.pub-nav-drawer__link i { font-size: 1rem; opacity: 0.65; flex-shrink: 0; }

.pub-nav-drawer__actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}
.pub-nav-drawer__actions .btn { justify-content: center; }


/* ================================================================
   Public Footer - always dark, uses local --ft-* vars
   ================================================================ */
.pub-footer {
    --ft-bg:         #071a0e;
    --ft-surface:    #0d2015;
    --ft-text:       #7fa898;
    --ft-heading:    #c8e0d0;
    --ft-link:       #7fa898;
    --ft-link-hover: #c8e0d0;
    --ft-border:     #142a1c;
    --ft-muted:      #3d5c48;
    background: var(--ft-bg);
    color: var(--ft-text);
    /* margin-top: 5rem; */
}

.pub-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}
@media (min-width: 640px) { .pub-footer__inner { padding: 3.5rem 2rem 2rem; } }

.pub-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 1024px) {
    .pub-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .pub-footer__grid { grid-template-columns: 1fr; }
}

/* Column helpers */
.pub-footer__col { min-width: 0; }

/* Brand block */
.pub-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.pub-footer__logo {
    /* SIGMA lockup (dark variant) on always-dark footer; no invert */
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.95;
    flex-shrink: 0;
}
.pub-footer__brand-name {
    font-family: var(--font-d);
    font-size: 0.95rem;
    color: var(--ft-heading);
    line-height: 1.25;
}
.pub-footer__brand-sub {
    font-size: 0.72rem;
    color: var(--ft-muted);
    margin-top: 1px;
}

.pub-footer__desc {
    font-size: 0.84rem;
    color: var(--ft-muted);
    line-height: 1.65;
    max-width: 30rem;
    margin: 0;
}

/* External site link */
.pub-footer__site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--text-xs, 0.6875rem);
    color: var(--ft-text);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: color 0.15s;
}
.pub-footer__site-link:hover { color: var(--ft-link-hover); }
.pub-footer__site-link i { font-size: 0.75rem; opacity: 0.75; }

/* Column headings */
.pub-footer__heading {
    font-size: var(--text-xs, 0.6875rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ft-heading);
    margin: 0 0 0.875rem;
}

/* Link lists */
.pub-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pub-footer__list a {
    font-size: 0.855rem;
    color: var(--ft-link);
    text-decoration: none;
    transition: color 0.15s;
}
.pub-footer__list a:hover { color: var(--ft-link-hover); }

/* Address list - with icons */
.pub-footer__list--address li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: var(--ft-text);
    line-height: 1.5;
}
.pub-footer__list--address li i {
    font-size: 0.9rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    opacity: 0.6;
}
.pub-footer__list--address a {
    font-size: inherit;
    color: var(--ft-link);
    text-decoration: none;
    transition: color 0.15s;
}
.pub-footer__list--address a:hover { color: var(--ft-link-hover); }

/* Bottom bar */
.pub-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid var(--ft-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--ft-muted);
}
.pub-footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.pub-footer__version {
    font-size: 0.72rem;
    color: var(--ft-muted);
}

/* Footer theme toggle button */
.pub-footer__theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ft-muted);
    font-size: var(--text-xs, 0.6875rem);
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.pub-footer__theme-btn:hover {
    color: var(--ft-link-hover);
    border-color: var(--ft-text);
}
.pub-footer__theme-btn:focus-visible {
    outline: 2px solid var(--ft-text);
    outline-offset: 2px;
}
.pub-footer__theme-btn i { font-size: 0.8rem; }
