/* ============================================================
    CSS CUSTOM PROPERTIES – Design Tokens
============================================================ */
:root {
    /* Brand Colors */
    --accent: #1a56a0;
    --accent-hover: #123d78;
    --accent-light: rgba(26, 86, 160, 0.08);
    --accent-glow: rgba(26, 86, 160, 0.20);

    /* Dark mode (Superadmin) */
    --dark-bg: rgba(15, 23, 42, 0.97);
    --dark-surface: rgba(30, 41, 59, 0.90);
    --dark-border: rgba(148, 163, 184, 0.18);
    --dark-accent: #6d28d9;
    --dark-accent2: #4f46e5;
    --dark-glow: rgba(109, 40, 217, 0.25);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #1a56a0 0%, #123d78 100%);
    --grad-dark: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);

    /* Surfaces */
    --card-bg: rgba(255, 255, 255, 0.97);
    --card-border: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(26, 86, 160, 0.08);

    /* Typography Scale (Major Third – 1.25) */
    --text-xs: 0.64rem;
    --text-sm: 0.8rem;
    --text-base: 1rem;
    --text-md: 1.1rem;
    --text-lg: 1.375rem;

    /* Spacing Scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 50px;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
    GLOBAL RESET & BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
    linear-gradient(160deg,
        rgba(10, 22, 50, 0.50) 0%,
        rgba(18, 45, 98, 0.45) 40%,
        rgba(20, 52, 110, 0.40) 70%,
        rgba(8, 15, 32, 0.55) 100%),
    url('../img/cscbglogin.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
    min-height: 100dvh;
    /* Better handling for mobile browser address bars */
    overflow-x: hidden;
    /* Prevent side-scrolling */
    overflow-y: auto;
    /* ALLOW scrolling when the mobile keyboard is open */
    position: relative;
}

/* ============================================================
    ANIMATED BACKGROUND
============================================================ */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1a56a0, transparent);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #2563eb, transparent);
    bottom: -100px;
    right: -80px;
    animation-delay: -4s;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0ea5e9, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes orbFloat {

    0%,
    100% {
    transform: translate(0, 0) scale(1);
    }

    33% {
    transform: translate(30px, -30px) scale(1.08);
    }

    66% {
    transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Grid overlay pattern */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ============================================================
    LAYOUT
============================================================ */
.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
}

/* ============================================================
    HERO PANEL (Left side – desktop only)
============================================================ */
.hero-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-10);
    max-width: 520px;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-panel {
    display: flex;
    }
}

.hero-illustration {
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
    transform: translateY(0);
    }

    50% {
    transform: translateY(-12px);
    }
}

.hero-tagline {
    margin-top: var(--sp-8);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.7;
    max-width: 340px;
}

.hero-tagline strong {
    color: #fff;
    display: block;
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.hero-dots {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
    justify-content: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================================
    LOGIN CARD
============================================================ */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    padding: var(--sp-10);
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.7s var(--ease-spring) both;
}

@keyframes cardEntrance {
    from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    }

    to {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
}

/* Top accent stripe */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: background 0.4s var(--ease-out);
}

/* Shimmer effect on card */
.login-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0) 60%);
    background-size: 200% 200%;
    pointer-events: none;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
    background-position: 200% 200%;
    }

    50% {
    background-position: -200% -200%;
    }

    100% {
    background-position: 200% 200%;
    }
}

/* ── Dark (Superadmin) card ── */
.login-card.is-dark {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--dark-border);
    color: #f1f5f9;
}

.login-card.is-dark::before {
    background: var(--grad-dark);
}

/* ============================================================
    LOGO SECTION
============================================================ */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s var(--ease-spring);
}

.logo-img:hover {
    transform: scale(1.06);
}

.logo-divider {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(26, 86, 160, 0.3), transparent);
}

.is-dark .logo-divider {
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.2), transparent);
}

/* IMIS wordmark – toggle trigger */
.logo-wordmark {
    cursor: pointer;
    user-select: none;
    outline: none;
    border-radius: var(--radius-sm);
}

.logo-wordmark:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.is-dark .logo-wordmark:focus-visible {
    outline-color: var(--dark-accent);
}

/* ============================================================
    HEADINGS & BADGES
============================================================ */
.card-heading {
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin-bottom: var(--sp-4);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.4s;
}

.is-dark .card-heading {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.4s var(--ease-out);
    margin-bottom: var(--sp-6);
}

.is-dark .role-badge {
    background: var(--grad-dark);
    box-shadow: 0 4px 14px var(--dark-glow);
}

/* ============================================================
    INPUT GROUPS
============================================================ */
.field-wrap {
    margin-bottom: var(--sp-4);
}

.field-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #374151;
    margin-bottom: var(--sp-2);
    transition: color 0.3s;
}

.is-dark .field-label {
    color: #cbd5e1;
}

.input-shell {
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
    transform: translateY(-1px);
}

.input-shell.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.is-dark .input-shell {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

.is-dark .input-shell:focus-within {
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 4px var(--dark-glow);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--sp-4);
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: color 0.25s;
    min-width: 48px;
}

.input-shell:focus-within .input-icon {
    color: var(--accent);
}

.is-dark .input-shell:focus-within .input-icon {
    color: #a78bfa;
}

.input-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    color: #1e293b;
    padding: 0.875rem var(--sp-4) 0.875rem 0;
    min-width: 0;
}

.is-dark .input-field {
    color: #f1f5f9;
}

.input-field::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.is-dark .input-field::placeholder {
    color: #64748b;
}

/* Password action button (visibility toggle) */
.input-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--sp-4);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s var(--ease-spring);
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

.input-action:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.input-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

.is-dark .input-action:hover {
    color: #a78bfa;
}

/* Visibility warning */
.pw-visible-warn {
    display: none;
    align-items: center;
    gap: var(--sp-1);
    margin-top: var(--sp-1);
    font-size: var(--text-xs);
    color: #d97706;
    font-weight: 500;
}

.pw-visible-warn.show {
    display: flex;
}

/* ============================================================
    FIELD VALIDATION MESSAGES
============================================================ */
.field-error-msg {
    display: none;
    align-items: center;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
    font-size: var(--text-xs);
    color: #ef4444;
    font-weight: 500;
}

.field-error-msg.show {
    display: flex;
}

/* ============================================================
    CAPTCHA SECTION
============================================================ */
.captcha-block {
    background: var(--accent-light);
    border: 1px solid rgba(26, 86, 160, 0.12);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    margin-bottom: var(--sp-5);
    transition: all 0.3s;
}

.is-dark .captcha-block {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.2);
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-3);
}

.is-dark .captcha-label {
    color: #a78bfa;
}

.captcha-row {
    display: flex;
    gap: var(--sp-3);
    align-items: stretch;
}

.captcha-row .input-shell {
    flex: 1;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem var(--sp-4);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 3px;
    min-width: 118px;
    box-shadow: 0 4px 14px var(--accent-glow);
    user-select: none;
    flex-shrink: 0;
}

.is-dark .captcha-display {
    background: var(--grad-dark);
    box-shadow: 0 4px 14px var(--dark-glow);
}

.captcha-value {
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.captcha-refresh-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
    transition: transform 0.3s var(--ease-spring), color 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh-btn:hover {
    color: #fff;
    transform: rotate(180deg);
}

.captcha-refresh-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ============================================================
    LOCKOUT NOTICE
============================================================ */
.lockout-notice {
    display: none;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-4);
    font-size: var(--text-sm);
    color: #b91c1c;
}

.lockout-notice.show {
    display: flex;
}

.is-dark .lockout-notice {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
    LOGIN BUTTON
============================================================ */
.login-btn {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--grad-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-out);
    margin-bottom: var(--sp-4);
    min-height: 52px;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.login-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.is-dark .login-btn {
    background: var(--grad-dark);
    box-shadow: 0 4px 20px var(--dark-glow);
}

.is-dark .login-btn:hover:not(:disabled) {
    box-shadow: 0 8px 28px var(--dark-glow);
}

.is-dark .login-btn:focus-visible {
    outline-color: #a78bfa;
}

.btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.login-btn.loading .btn-spinner {
    display: block;
}

.login-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
    transform: rotate(360deg);
    }
}

/* ============================================================
    SUPERADMIN TOGGLE PANEL
============================================================ */
#toggleContainer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
    margin-top: var(--sp-2);
}

#toggleContainer.open {
    max-height: 80px;
    opacity: 1;
}

.role-switch-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4);
    background: var(--accent-light);
    border: 1px solid rgba(26, 86, 160, 0.15);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.is-dark .role-switch-panel {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.2);
}

.role-switch-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #374151;
}

.is-dark .role-switch-label {
    color: #cbd5e1;
}

/* Custom toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s var(--ease-out);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease-spring);
}

.toggle-switch input:checked~.toggle-track {
    background: var(--dark-accent);
}

.toggle-switch input:checked~.toggle-track::after {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible~.toggle-track {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
    FOOTER NOTE
============================================================ */
.card-footer-note {
    text-align: center;
    font-size: var(--text-xs);
    color: #94a3b8;
    margin-top: var(--sp-4);
}

.is-dark .card-footer-note {
    color: #475569;
}

.card-footer-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.card-footer-note a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.is-dark .card-footer-note a {
    color: #a78bfa;
}

.is-dark .card-footer-note a:hover {
    color: #c4b5fd;
}

/* ============================================================
    RESPONSIVE
============================================================ */
@media (max-width: 576px) {

    /* Reset wrapper to allow natural scrolling from the top */
    .login-wrapper {
    padding: 1.5rem;
    align-items: flex-start;
    padding-top: 2rem;
    }

    /* Balance card padding and strictly contain the width */
    .login-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    width: 100%;
    /* This magic line forces exactly 1.5rem of empty space on both the left and right sides */
    max-width: calc(100vw - 1.5rem);
    }

    /* Shrink logos slightly so they don't force width */
    .logo-row {
    gap: 1rem;
    margin-bottom: 1.5rem;
    }

    .logo-img {
    height: 52px;
    width: auto;
    }

    .logo-divider {
    height: 40px;
    }

    /* Shrink heading so long words wrap without breaking the container */
    .card-heading {
    font-size: 1.1rem;
    line-height: 1.35;
    padding: 0 0.5rem;
    }

    .role-badge {
    font-size: 0.6rem;
    padding: var(--sp-2) var(--sp-4);
    }

    .input-field {
    font-size: 0.95rem;
    }

    /* Stack the CAPTCHA vertically to prevent squishing */
    .captcha-row {
    flex-direction: column;
    gap: 0.75rem;
    }

    .captcha-display {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    }

    /* Stack the Superadmin toggle switch so it doesn't overflow */
    .role-switch-panel {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem;
    }

    #toggleContainer.open {
    max-height: 120px;
    /* Needs more height now that it is stacked */
    }
}

@media (min-width: 992px) {
    .login-wrapper {
    display: grid;
    grid-template-columns: 1fr 600px;
    max-width: 1400px;
    /* <-- Increased from 1300px to give the layout more room */
    margin: 0 auto;
    gap: 12rem;
    /* <-- INCREASE THIS to 10rem or 12rem */
    padding: var(--sp-8);
    align-items: center;
    }
}

/* ============================================================
    WAVE DECORATION (bottom of page)
============================================================ */
.bg-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

/* ============================================================
    ACCESSIBILITY – Screen-reader only
============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--sp-4);
    background: var(--accent);
    color: #fff;
    padding: var(--sp-2) var(--sp-4);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}