/* ===========================================================================
   OSHAwards — Authority Layer
   Synthesis of: ADEPTUS Compliance Noir + Anthropic editorial + Motion gestures
   Loads AFTER public-modern.css to upgrade tokens, typography, and key components
   =========================================================================== */

:root {
    /* --- Display + monospace additions (Inter stays for body) --- */
    --osh-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --osh-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* --- Editorial neutrals (Anthropic-inspired warm canvas) --- */
    --osh-c-parchment:    #F6F8FC;   /* alternating section bg — subtle warmth */
    --osh-c-parchment-2:  #EEF2F8;
    --osh-c-cream:        #FFFFFF;

    /* --- Accreditation Gold (ISO / premium badges ONLY) --- */
    --osh-c-gold:         #5DB2E8;
    --osh-c-gold-soft:    #E6EEF8;
    --osh-c-gold-deep:    #0A4F8F;
    --osh-grad-gold:      linear-gradient(135deg, #E8C77A 0%, #5DB2E8 50%, #0A4F8F 100%);

    /* --- ISO 17024 workflow status palette --- */
    --osh-c-status-draft:     #6B7280;
    --osh-c-status-review:    #F59E0B;
    --osh-c-status-approved:  #059669;
    --osh-c-status-suspended: #DC2626;
    --osh-c-status-expired:   #9CA3AF;

    /* --- Ring shadows (Anthropic depth language — replaces heavy drops) --- */
    --osh-ring-1: 0 0 0 1px rgba(11,20,48,.06);
    --osh-ring-2: 0 0 0 1px rgba(11,20,48,.10);
    --osh-ring-soft: 0 1px 2px rgba(11,20,48,.04), 0 0 0 1px rgba(11,20,48,.06);
    --osh-ring-md:   0 4px 12px -2px rgba(11,20,48,.06), 0 0 0 1px rgba(11,20,48,.06);
    --osh-ring-lg:   0 16px 40px -16px rgba(11,20,48,.18), 0 0 0 1px rgba(11,20,48,.08);
    --osh-ring-gold: 0 0 0 1px rgba(93,178,232,.35), 0 8px 24px -8px rgba(93,178,232,.30);

    /* --- Compliance-noir gradients --- */
    --osh-grad-authority: linear-gradient(135deg, #0B1430 0%, #1E3A8A 60%, #06B6D4 100%);
    --osh-grad-noir:      linear-gradient(180deg, #0B1430 0%, #050A1B 100%);

    /* --- Motion (matches SKILL.md spring values, vanilla CSS approximation) --- */
    --osh-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --osh-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------- Display typography upgrade ----------------------------------- */
body.modern { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

.modern h1:where(:not(.sd, .sd *)), .modern h2:where(:not(.sd, .sd *)), .modern h3:where(:not(.sd, .sd *)),
.modern .display, .modern .h-display {
    font-family: var(--osh-font-display);
    font-feature-settings: "ss01", "cv11";
    letter-spacing: -0.025em;
    font-weight: 700;
}
.modern h4:where(:not(.sd, .sd *)), .modern h5:where(:not(.sd, .sd *)) {
    font-family: var(--osh-font-display);
    letter-spacing: -0.015em;
    font-weight: 600;
}

/* Editorial display — used on hero + feature titles */
.osh-display {
    font-family: var(--osh-font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--osh-c-ink);
}
.osh-display .accent {
    background: linear-gradient(120deg, #06B6D4 0%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Monospace — for cert numbers, ISO refs, accreditation IDs */
.osh-mono, code, kbd {
    font-family: var(--osh-font-mono);
    font-feature-settings: "tnum", "zero";
    letter-spacing: -0.01em;
}
.osh-cert-no {
    font-family: var(--osh-font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--osh-c-ink-2);
    background: var(--osh-c-surface-3);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--osh-c-divider);
}

/* Eyebrow / label tracking */
.osh-eyebrow {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--osh-c-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.osh-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

/* -------- Authority topbar (frosted glass) ----------------------------- */
.osh-header {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(11, 20, 48, 0.06);
    box-shadow: none !important;
}
.osh-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom-color: rgba(11, 20, 48, 0.08);
    box-shadow: 0 1px 0 rgba(11, 20, 48, 0.04) !important;
}
.osh-nav-link {
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    color: var(--osh-c-text-2) !important;
    transition: color 180ms var(--osh-spring) !important;
}
.osh-nav-link:hover, .osh-nav-link.is-active {
    color: var(--osh-c-ink) !important;
}
.osh-nav-link.is-active::after {
    content: "";
    display: block;
    height: 2px;
    width: 18px;
    background: var(--osh-c-cyan);
    border-radius: 2px;
    margin-top: 4px;
}

/* Primary CTA — soft enterprise radius, not pill */
.osh-btn-cta {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em;
    transition: transform 120ms var(--osh-spring), box-shadow 200ms var(--osh-spring) !important;
    box-shadow: var(--osh-ring-soft);
}
.osh-btn-cta:hover { transform: translateY(-1px); box-shadow: var(--osh-ring-md); }
.osh-btn-cta:active { transform: translateY(0) scale(0.98); }

/* -------- Status pills (ISO 17024 workflow) ---------------------------- */
.osh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--osh-font);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    border: 1px solid transparent;
    background: var(--osh-c-surface-3);
    color: var(--osh-c-text-2);
}
.osh-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.osh-pill--approved  { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.osh-pill--review    { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.osh-pill--draft     { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.osh-pill--suspended { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.osh-pill--expired   { background: #F8FAFC; color: #64748B; border-color: #E2E8F0; }
.osh-pill--gold      { background: var(--osh-c-gold-soft); color: var(--osh-c-gold-deep); border-color: rgba(93,178,232,.45); }
.osh-pill--info      { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }

.osh-pill--pulse::before {
    animation: osh-pulse-dot 2s ease-in-out infinite;
}
@keyframes osh-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    50%      { box-shadow: 0 0 0 4px transparent; opacity: 0.6; }
}

/* -------- Gold accreditation seal -------------------------------------- */
.osh-seal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%),
        var(--osh-c-cream);
    border: 1px solid rgba(93, 178, 232, 0.30);
    box-shadow: 0 2px 8px -2px rgba(93,178,232,0.20), 0 0 0 1px rgba(93,178,232,0.10);
    color: var(--osh-c-ink);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.005em;
}
.osh-seal-mark {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--osh-grad-gold);
    display: grid; place-items: center;
    color: #2A2106;
    font-family: var(--osh-font-mono);
    font-weight: 700;
    font-size: 0.625rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 3px rgba(138, 110, 46, 0.4);
    flex: none;
}
.osh-seal-mark::after {
    content: ""; position: absolute;
    inset: 4px; border-radius: 50%;
    border: 1px dashed rgba(42, 33, 6, 0.35);
}
.osh-seal-mark { position: relative; }
.osh-seal-meta {
    display: flex; flex-direction: column; line-height: 1.15;
}
.osh-seal-meta small {
    font-family: var(--osh-font-mono);
    font-size: 0.625rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--osh-c-gold-deep);
    opacity: 0.85;
}

/* -------- Cards — ring-shadow language --------------------------------- */
.osh-ring-card {
    background: var(--osh-c-surface);
    border-radius: var(--osh-r-lg);
    box-shadow: var(--osh-ring-soft);
    transition: transform 220ms var(--osh-spring), box-shadow 220ms var(--osh-spring);
}
.osh-ring-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--osh-ring-md);
}
.osh-ring-card--gold {
    box-shadow: var(--osh-ring-gold);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
}

/* Editorial alternating section */
.osh-section-cream { background: var(--osh-c-cream); }
.osh-section-parchment { background: var(--osh-c-parchment); }
.osh-section-noir {
    background: var(--osh-grad-noir);
    color: #E2E8F0;
}
.osh-section-noir h1, .osh-section-noir h2, .osh-section-noir h3,
.osh-section-noir .osh-display { color: #FFFFFF; }
.osh-section-noir .osh-eyebrow { color: rgba(226, 232, 240, 0.65); }

/* -------- Editorial divider rule --------------------------------------- */
.osh-rule {
    display: flex; align-items: center; gap: 12px;
    color: var(--osh-c-muted);
    font-size: 0.75rem;
    font-family: var(--osh-font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.osh-rule::before, .osh-rule::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--osh-c-divider), transparent);
}

/* -------- Hero authority background (mesh + grid) ---------------------- */
.osh-hero-authority {
    position: relative;
    background: var(--osh-c-cream);
    overflow: hidden;
}
.osh-hero-authority::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(6, 182, 212, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 80%, rgba(93, 178, 232, 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.osh-hero-authority::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(11,20,48,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,20,48,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
    opacity: 0.7;
}
.osh-hero-authority > * { position: relative; z-index: 1; }

/* -------- Trust strip — accreditation logos ---------------------------- */
.osh-trust-strip {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 40px 56px;
    padding: 20px 28px;
    border-radius: var(--osh-r-lg);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(11, 20, 48, 0.06);
    backdrop-filter: blur(8px);
}
.osh-trust-strip-label {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--osh-c-muted);
    flex: none;
}
.osh-trust-mark {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--osh-c-text-2);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.005em;
    opacity: 0.8;
    transition: opacity 200ms var(--osh-spring);
}
.osh-trust-mark:hover { opacity: 1; }
.osh-trust-mark .material-icons {
    font-size: 18px;
    color: var(--osh-c-cyan);
}

/* -------- Bento qualifications — refined ring style -------------------- */
.osh-bento-tile {
    background: var(--osh-c-surface);
    border-radius: var(--osh-r-lg);
    padding: 28px;
    box-shadow: var(--osh-ring-soft);
    transition: transform 240ms var(--osh-spring), box-shadow 240ms var(--osh-spring);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.osh-bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--osh-ring-lg);
    color: inherit;
}
.osh-bento-tile::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(6, 182, 212, 0.04));
    opacity: 0;
    transition: opacity 240ms var(--osh-spring);
}
.osh-bento-tile:hover::before { opacity: 1; }

.osh-bento-tile--featured {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
    box-shadow: var(--osh-ring-gold);
}

/* -------- Step tracker (certification journey) ------------------------- */
.osh-step-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    counter-reset: step;
}
@media (max-width: 900px) { .osh-step-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .osh-step-track { grid-template-columns: 1fr; } }

.osh-step {
    position: relative;
    padding: 24px 20px;
    border-radius: var(--osh-r-md);
    background: var(--osh-c-surface);
    box-shadow: var(--osh-ring-soft);
    transition: transform 200ms var(--osh-spring), box-shadow 200ms var(--osh-spring);
    counter-increment: step;
}
.osh-step:hover { transform: translateY(-2px); box-shadow: var(--osh-ring-md); }
.osh-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; top: 16px; right: 16px;
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--osh-c-muted);
    opacity: 0.7;
}
.osh-step-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EFF6FF 0%, #CFFAFE 100%);
    color: var(--osh-c-cyan);
    display: grid; place-items: center;
    margin-bottom: 14px;
}
.osh-step-icon .material-icons { font-size: 22px; }
.osh-step h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--osh-c-ink);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.osh-step p {
    font-size: 0.8125rem;
    color: var(--osh-c-muted);
    margin: 0;
    line-height: 1.5;
}

/* -------- Stat tiles — editorial numbers ------------------------------- */
.osh-stat {
    padding: 24px 28px;
    border-radius: var(--osh-r-md);
    background: var(--osh-c-surface);
    box-shadow: var(--osh-ring-soft);
}
.osh-stat-num {
    font-family: var(--osh-font-display);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--osh-c-ink);
    margin-bottom: 6px;
}
.osh-stat-num .unit {
    font-size: 1.5rem;
    color: var(--osh-c-cyan);
    font-weight: 600;
    margin-left: 2px;
}
.osh-stat-label {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--osh-c-muted);
}

/* -------- Reveal animation (Motion-style staggered fade-up) ------------ */
.osh-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--osh-spring), transform 600ms var(--osh-spring);
    will-change: opacity, transform;
}
.osh-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
.osh-reveal[data-stagger="1"]  { transition-delay: 60ms; }
.osh-reveal[data-stagger="2"]  { transition-delay: 120ms; }
.osh-reveal[data-stagger="3"]  { transition-delay: 180ms; }
.osh-reveal[data-stagger="4"]  { transition-delay: 240ms; }
.osh-reveal[data-stagger="5"]  { transition-delay: 300ms; }
.osh-reveal[data-stagger="6"]  { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
    .osh-reveal { opacity: 1; transform: none; transition: none; }
}

/* -------- Quote block (testimonial editorial) -------------------------- */
.osh-quote {
    border-radius: var(--osh-r-lg);
    background: var(--osh-c-surface);
    box-shadow: var(--osh-ring-soft);
    padding: 36px 32px 28px;
    position: relative;
}
.osh-quote::before {
    content: "“";
    position: absolute; top: 4px; left: 24px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--osh-c-cyan);
    opacity: 0.18;
}
.osh-quote-body {
    font-family: var(--osh-font-display);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--osh-c-ink-2);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}
.osh-quote-by {
    display: flex; align-items: center; gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--osh-c-divider);
}
.osh-quote-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--osh-grad-authority);
    display: grid; place-items: center;
    color: #fff;
    font-family: var(--osh-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: -0.02em;
    flex: none;
}
.osh-quote-meta { display: flex; flex-direction: column; line-height: 1.2; }
.osh-quote-name { font-weight: 600; font-size: 0.875rem; color: var(--osh-c-ink); }
.osh-quote-role { font-size: 0.75rem; color: var(--osh-c-muted); }

/* -------- Footer authority refinement ---------------------------------- */
.osh-footer {
    background: var(--osh-grad-noir) !important;
    color: #94A3B8;
}
.osh-footer h4, .osh-footer h5 {
    font-family: var(--osh-font-display);
    color: #F1F5F9 !important;
}
.osh-footer a {
    color: #CBD5E1 !important;
    transition: color 180ms var(--osh-spring);
}
.osh-footer a:hover { color: #06B6D4 !important; }
.osh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: #64748B;
    font-family: var(--osh-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* -------- Utility: focus visible across the whole layer --------------- */
.modern :focus-visible {
    outline: 2px solid var(--osh-c-cyan) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* ============================================================
   SERVICE STATUS BANNER (IOSH-style — toggleable)
   ============================================================ */
.osh-status-banner {
    background: linear-gradient(90deg, #FFFBEB 0%, #FEF3C7 100%);
    border-bottom: 1px solid #FDE68A;
    color: #78350F;
    font-size: 0.875rem;
    padding: 10px 0;
}
.osh-status-banner .osh-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.osh-status-banner .material-icons {
    color: #B45309;
    font-size: 18px;
    flex: none;
}
.osh-status-banner-msg { flex: 1; min-width: 200px; line-height: 1.4; }
.osh-status-banner-link {
    color: #B45309 !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.8125rem;
}
.osh-status-banner-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #92400E;
    transition: background 180ms var(--osh-spring);
}
.osh-status-banner-close:hover { background: rgba(146, 64, 14, 0.08); }
.osh-status-banner-close .material-icons { font-size: 18px; color: inherit; }

/* ============================================================
   FOOTER GOVERNANCE BLOCK (regulator/charity/company numbers)
   ============================================================ */
.osh-footer-governance {
    background: rgba(0,0,0,0.18);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}
.osh-footer-governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    align-items: start;
}
.osh-footer-governance-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 14px;
    border-left: 2px solid rgba(93, 178, 232, 0.40);
}
.osh-footer-governance-item small {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(93, 178, 232, 0.85);
    line-height: 1;
}
.osh-footer-governance-item strong {
    font-family: var(--osh-font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #F1F5F9;
    line-height: 1.35;
}

.osh-footer-print-notice {
    padding: 10px 0 18px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.osh-footer-print-notice .osh-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: #64748B;
    text-transform: uppercase;
}
.osh-footer-print-notice .material-icons {
    font-size: 14px;
    color: #10B981;
}

/* ============================================================
   HEADER — Utility strip + refined nav cluster
   ============================================================ */
.osh-utility-strip {
    background: linear-gradient(90deg, #0B1430 0%, #14213d 100%);
    color: #CBD5E1;
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    line-height: 1;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.osh-utility-strip .osh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.osh-utility-strip a {
    color: #CBD5E1 !important;
    text-decoration: none;
    transition: color 180ms var(--osh-spring);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.osh-utility-strip a:hover { color: #06B6D4 !important; }
.osh-utility-left, .osh-utility-right {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.osh-utility-left .material-icons,
.osh-utility-right .material-icons { font-size: 13px; opacity: 0.7; }
.osh-utility-strip .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: osh-utility-live 2.4s ease-in-out infinite;
}
@keyframes osh-utility-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}
.osh-utility-divider {
    width: 1px; height: 12px;
    background: rgba(255,255,255,0.12);
}

/* Header nav refinements --------------------------------------------- */
.modern .osh-logo-img,
.osh-logo .osh-logo-img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px;
    display: block;
}
.osh-logo {
    flex-shrink: 0;
    line-height: 1;
}

.osh-nav-row {
    gap: 28px !important;
    height: 68px !important;
}
.osh-nav {
    flex: 1 1 auto !important;
    justify-content: flex-end;
    gap: 2px !important;
    flex-wrap: nowrap !important;
    min-width: 0;
}
.osh-nav-link {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--osh-c-text-2) !important;
    transition: color 180ms var(--osh-spring) !important;
}
.osh-nav-link:hover { color: var(--osh-c-ink) !important; background: transparent !important; }
.osh-nav-link.is-active { color: var(--osh-c-ink) !important; background: transparent !important; }
.osh-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--osh-c-cyan);
    border-radius: 2px 2px 0 0;
    margin-top: 4px;
    display: block;
}

.osh-nav-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0;
}
.osh-nav-login {
    white-space: nowrap;
    color: var(--osh-c-text-2) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 6px;
    text-decoration: none;
    transition: color 180ms var(--osh-spring);
}
.osh-nav-login:hover { color: var(--osh-c-ink) !important; }
.osh-nav-divider-v {
    width: 1px; height: 22px;
    background: var(--osh-c-divider);
    flex: none;
}
.osh-btn.osh-btn-cta {
    white-space: nowrap;
}

/* Tighten further on smaller desktops to prevent wrap */
@media (max-width: 1200px) {
    .osh-nav-row { gap: 20px !important; }
    .osh-nav { gap: 0 !important; }
    .osh-nav-link { padding: 8px 10px !important; font-size: 0.875rem !important; }
    .osh-nav-login { font-size: 0.875rem; padding: 8px 4px; }
    .osh-utility-strip { font-size: 0.625rem; }
}

/* ============================================================
   MEGA MENU — Multi-column dropdowns under primary nav
   ============================================================ */
.osh-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.osh-nav-item > .osh-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.osh-nav-caret {
    font-size: 16px !important;
    opacity: 0.6;
    transition: transform 200ms var(--osh-spring), opacity 200ms var(--osh-spring);
    margin-left: -2px;
}
.osh-nav-item:hover .osh-nav-caret,
.osh-nav-item:focus-within .osh-nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}
.osh-nav-item.is-active > .osh-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--osh-c-cyan);
    border-radius: 2px 2px 0 0;
}

.osh-mega {
    position: absolute;
    top: calc(100% + 6px);
    left: -16px;
    z-index: 60;
    min-width: 460px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 24px 56px -12px rgba(11,20,48,0.18), 0 0 0 1px rgba(11,20,48,0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms var(--osh-spring), transform 200ms var(--osh-spring), visibility 0s linear 200ms;
    pointer-events: none;
}
.osh-mega.osh-mega-3 {
    grid-template-columns: repeat(3, 1fr);
    min-width: 680px;
}
.osh-nav-item:hover .osh-mega,
.osh-nav-item:focus-within .osh-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 200ms var(--osh-spring), transform 200ms var(--osh-spring), visibility 0s linear 0s;
    pointer-events: auto;
}

/* Anchor right edge of mega for the right-most nav items so they don't overflow viewport */
.osh-nav-item:nth-last-child(-n+2) .osh-mega {
    left: auto;
    right: -16px;
}

.osh-mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.osh-mega-label {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--osh-c-muted);
    padding: 4px 8px 8px;
    border-bottom: 1px solid var(--osh-c-divider);
    margin-bottom: 4px;
}
.osh-mega a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8125rem !important;
    font-weight: 500;
    color: var(--osh-c-text-2) !important;
    text-decoration: none !important;
    line-height: 1.3;
    transition: background 160ms var(--osh-spring), color 160ms var(--osh-spring);
    white-space: nowrap;
}
.osh-mega a:hover {
    background: rgba(6, 182, 212, 0.06);
    color: var(--osh-c-ink) !important;
}
.osh-mega a .material-icons {
    font-size: 18px;
    color: var(--osh-c-muted);
    transition: color 160ms var(--osh-spring);
    flex: none;
}
.osh-mega a:hover .material-icons {
    color: var(--osh-c-cyan);
}

/* Hide mega menu on small screens — drawer handles this */
@media (max-width: 991px) {
    .osh-mega { display: none !important; }
    .osh-nav-caret { display: none; }
}

/* ============================================================
   FOOTER — Editorial multi-column with ISO ribbon
   ============================================================ */
.osh-footer-modern {
    background: var(--osh-grad-noir);
    color: #94A3B8;
    padding: 0;
    margin: 0;
}
.osh-footer-cta {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: #fff;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.osh-footer-cta .osh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.osh-footer-cta-text { flex: 1; min-width: 280px; }
.osh-footer-cta h3 {
    font-family: var(--osh-font-display);
    font-size: 1.375rem;
    margin: 0 0 4px;
    color: #fff !important;
    letter-spacing: -0.02em;
}
.osh-footer-cta p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
}
.osh-footer-newsletter {
    display: flex;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 10px;
    padding: 4px;
    backdrop-filter: blur(4px);
    min-width: 320px;
    max-width: 420px;
}
.osh-footer-newsletter input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.875rem;
    font-family: var(--osh-font);
}
.osh-footer-newsletter input::placeholder { color: rgba(255,255,255,0.7); }
.osh-footer-newsletter button {
    background: #fff;
    color: #0891B2;
    border: 0;
    border-radius: 7px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 120ms var(--osh-spring);
}
.osh-footer-newsletter button:hover { transform: translateY(-1px); }

.osh-footer-main { padding: 64px 0 32px; }
.osh-footer-main .osh-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 900px) {
    .osh-footer-main .osh-container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .osh-footer-main .osh-container { grid-template-columns: 1fr; }
}
.osh-footer-brand-block h4 {
    font-family: var(--osh-font-display);
    font-size: 1.25rem;
    color: #fff !important;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.osh-footer-brand-block p {
    color: #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 320px;
    margin: 0 0 18px;
}
.osh-footer-seal-row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px;
}
.osh-footer-seal {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--osh-grad-gold);
    display: grid; place-items: center;
    color: #2A2106;
    font-family: var(--osh-font-mono);
    font-weight: 700;
    font-size: 0.6875rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 6px rgba(138,110,46,0.5);
    flex: none;
    position: relative;
}
.osh-footer-seal::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    border: 1px dashed rgba(42,33,6,0.4);
}
.osh-footer-seal-meta {
    display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
}
.osh-footer-seal-meta strong {
    color: #F1F5F9;
    font-size: 0.8125rem;
    font-weight: 600;
}
.osh-footer-seal-meta small {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: #94A3B8;
    text-transform: uppercase;
}
.osh-footer-col h5 {
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8 !important;
    margin: 0 0 18px;
}
.osh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.osh-footer-col li { margin: 0 0 10px; }
.osh-footer-col a {
    color: #CBD5E1 !important;
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none !important;
    transition: color 180ms var(--osh-spring);
}
.osh-footer-col a:hover { color: #06B6D4 !important; }

.osh-footer-social {
    display: flex; gap: 10px; margin-top: 18px;
}
.osh-footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: grid; place-items: center;
    color: #CBD5E1 !important;
    transition: background 200ms var(--osh-spring), transform 200ms var(--osh-spring);
}
.osh-footer-social a:hover {
    background: rgba(6,182,212,0.16);
    transform: translateY(-2px);
}
.osh-footer-social .material-icons { font-size: 18px; }

.osh-footer-ribbon {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    padding: 16px 0;
}
.osh-footer-ribbon .osh-container {
    display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center;
    font-family: var(--osh-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: #94A3B8;
    text-transform: uppercase;
}
.osh-footer-ribbon span {
    display: inline-flex; align-items: center; gap: 6px;
}
.osh-footer-ribbon .material-icons { font-size: 13px; color: var(--osh-c-cyan); opacity: 0.85; }

.osh-footer-bottom-row {
    padding: 22px 0;
}
.osh-footer-bottom-row .osh-container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    color: #64748B;
    font-size: 0.75rem;
    font-family: var(--osh-font-mono);
    letter-spacing: 0.04em;
}

/* ============================================================
   PAGE HERO — Compact inner-page banner
   ============================================================ */
.osh-page-hero {
    position: relative;
    padding: 72px 0 56px;
    background: var(--osh-c-cream);
    border-bottom: 1px solid rgba(11,20,48,0.06);
    overflow: hidden;
}
.osh-page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(6,182,212,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(93,178,232,0.08) 0%, transparent 60%);
}
.osh-page-hero > .osh-container { position: relative; z-index: 1; }

.osh-breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--osh-font);
    font-size: 0.8125rem;
    color: var(--osh-c-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.osh-breadcrumbs a {
    color: var(--osh-c-muted);
    text-decoration: none;
    transition: color 180ms var(--osh-spring);
}
.osh-breadcrumbs a:hover { color: var(--osh-c-ink); }
.osh-breadcrumbs .sep { opacity: 0.5; font-family: var(--osh-font-mono); }
.osh-breadcrumbs .current { color: var(--osh-c-ink); font-weight: 500; }

.osh-page-hero h1, .osh-page-hero .osh-display {
    font-family: var(--osh-font-display);
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--osh-c-ink);
    margin: 0 0 16px;
    max-width: 760px;
    font-weight: 700;
}
.osh-page-hero p.lede {
    font-size: 1.0625rem;
    color: var(--osh-c-text-2);
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
.osh-page-hero-meta {
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    margin-top: 22px;
}

/* ============================================================
   FORMS — Authority components
   ============================================================ */
.osh-form-card {
    background: var(--osh-c-surface);
    border-radius: var(--osh-r-lg);
    box-shadow: var(--osh-ring-soft);
    padding: 36px;
}
@media (max-width: 540px) {
    .osh-form-card { padding: 24px; border-radius: var(--osh-r-md); }
}

.osh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.osh-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) {
    .osh-field-row { grid-template-columns: 1fr; }
}
.osh-label {
    font-family: var(--osh-font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--osh-c-ink-2);
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.osh-label .req { color: #DC2626; font-weight: 500; }
.osh-label .opt {
    font-family: var(--osh-font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--osh-c-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--osh-c-surface-3);
    padding: 1px 6px;
    border-radius: 999px;
}

.osh-input,
.osh-textarea,
.osh-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--osh-c-divider);
    border-radius: 10px;
    background: var(--osh-c-surface);
    font-family: var(--osh-font);
    font-size: 0.9375rem;
    color: var(--osh-c-ink);
    line-height: 1.4;
    transition: border-color 160ms var(--osh-spring), box-shadow 160ms var(--osh-spring), background 160ms var(--osh-spring);
}
.osh-input::placeholder,
.osh-textarea::placeholder { color: var(--osh-c-muted); opacity: 0.7; }
.osh-input:hover,
.osh-textarea:hover,
.osh-select:hover { border-color: var(--osh-c-line); }
.osh-input:focus,
.osh-textarea:focus,
.osh-select:focus {
    outline: none;
    border-color: var(--osh-c-cyan);
    box-shadow: 0 0 0 4px rgba(6,182,212,0.14);
    background: #FFFFFF;
}
.osh-input.is-mono {
    font-family: var(--osh-font-mono);
    letter-spacing: 0.02em;
}
.osh-textarea {
    min-height: 120px;
    resize: vertical;
}
.osh-input.is-error,
.osh-textarea.is-error,
.osh-select.is-error {
    border-color: #FCA5A5;
    background: #FEF2F2;
}
.osh-input.is-error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,0.14); }
.osh-help {
    font-size: 0.75rem;
    color: var(--osh-c-muted);
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.osh-help.is-mono { font-family: var(--osh-font-mono); }
.osh-error {
    font-size: 0.75rem;
    color: #B91C1C;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.osh-error::before {
    content: "•"; color: #DC2626;
}

/* Input with leading icon */
.osh-input-wrap {
    position: relative;
}
.osh-input-wrap > .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--osh-c-muted);
    font-size: 18px;
    pointer-events: none;
}
.osh-input-wrap > .osh-input { padding-left: 38px; }

/* Form alerts */
.osh-alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    border: 1px solid transparent;
}
.osh-alert .material-icons { flex: none; font-size: 20px; }
.osh-alert--error    { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.osh-alert--error .material-icons { color: #DC2626; }
.osh-alert--success  { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.osh-alert--success .material-icons { color: #059669; }
.osh-alert--info     { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.osh-alert--info .material-icons { color: #2563EB; }
.osh-alert--gold     { background: #FFFBEB; border-color: #FDE68A; color: var(--osh-c-gold-deep); }
.osh-alert--gold .material-icons { color: var(--osh-c-gold-deep); }

/* Submit row */
.osh-form-submit {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.osh-form-submit .osh-btn { flex-shrink: 0; }

/* Form aside / context callout */
.osh-form-aside {
    background: var(--osh-c-cream);
    border: 1px solid rgba(93,178,232,0.20);
    border-radius: var(--osh-r-md);
    padding: 20px;
    font-size: 0.875rem;
    color: var(--osh-c-text-2);
    line-height: 1.55;
}
.osh-form-aside h4 {
    font-family: var(--osh-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--osh-c-ink);
    margin: 0 0 6px;
    display: flex; align-items: center; gap: 6px;
}
.osh-form-aside h4 .material-icons {
    font-size: 16px;
    color: var(--osh-c-gold-deep);
}

/* Two-column form layout */
.osh-form-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .osh-form-layout { grid-template-columns: 1fr; }
}

/* CMS prose styling */
.osh-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--osh-c-text);
}
.osh-prose h1, .osh-prose h2, .osh-prose h3, .osh-prose h4, .osh-prose h5, .osh-prose h6 {
    font-family: var(--osh-font-display);
    color: var(--osh-c-ink);
    letter-spacing: -0.02em;
    margin: 1.6em 0 0.6em;
}
.osh-prose h1 { font-size: 1.875rem; }
.osh-prose h2 { font-size: 1.5rem; }
.osh-prose h3 { font-size: 1.25rem; }
.osh-prose h4 { font-size: 1.125rem; }
.osh-prose p { margin: 0 0 1em; }
.osh-prose ul, .osh-prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.osh-prose li { margin-bottom: 0.4em; }
.osh-prose a {
    color: var(--osh-c-cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.osh-prose a:hover { color: var(--osh-c-blue); }
.osh-prose blockquote {
    border-left: 3px solid var(--osh-c-cyan);
    padding: 4px 18px;
    margin: 1.4em 0;
    color: var(--osh-c-ink-2);
    font-style: italic;
    background: var(--osh-c-cream);
    border-radius: 0 8px 8px 0;
}
.osh-prose img { max-width: 100%; height: auto; border-radius: var(--osh-r-md); margin: 1.2em 0; }
.osh-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.9375rem;
    border-radius: var(--osh-r-md);
    overflow: hidden;
    box-shadow: var(--osh-ring-soft);
}
.osh-prose table th, .osh-prose table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--osh-c-divider);
    text-align: left;
}
.osh-prose table th {
    background: var(--osh-c-surface-2);
    font-weight: 600;
    color: var(--osh-c-ink);
    font-family: var(--osh-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.osh-prose code {
    background: var(--osh-c-surface-3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}
