/* Skill-Hive public site: navigation bar, footer and shared building blocks.
   Loaded by Nav.php on every public page (and in the <head> of the redesigned ones).
   Same colours as the sign-in pages (css/auth.css) and the dashboard. */

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/caveat/caveat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/caveat/caveat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --sh-primary: #6366f1; --sh-secondary: #8b5cf6; --sh-accent: #ec4899; --sh-success: #10b981; --sh-amber: #f59e0b;
    --sh-page: #0a0f1e; --sh-panel: #0f172a; --sh-card: #111a2e; --sh-card-2: #0d1528; --sh-line: #1f2a40; --sh-line-2: #2b3953;
    --sh-text: #f1f5f9; --sh-muted: #94a3b8; --sh-faint: #64748b;
    --sh-ink: #fde68a; --sh-ink-accent: #f9a8d4;
    --sh-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    --sh-grad-text: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 45%, #f0abfc 100%);
    --sh-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    --sh-nav-h: 72px;
    --sh-radius: 18px;
    /* Older page styles read these names */
    --primary-color: #6366f1; --secondary-color: #8b5cf6; --accent-color: #ec4899; --text-primary: #f1f5f9; --text-secondary: #94a3b8;
}
html { scroll-padding-top: calc(var(--sh-nav-h) + 12px); }
.sh-skip { position: fixed; left: 1rem; top: -60px; z-index: 2000; padding: 0.6rem 1rem; border-radius: 10px; background: #fff; color: #0f172a !important; font-weight: 700; text-decoration: none; transition: top .15s; }
.sh-skip:focus { top: 0.75rem; }
[tabindex="-1"]:focus { outline: none; }

/* ================= Navigation bar ================= */
nav.sh-nav.navbar { position: fixed; inset: 0 0 auto 0; z-index: 1030; padding: 0; min-height: var(--sh-nav-h);
    background: rgba(10, 15, 30, 0.72) !important; -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08); box-shadow: none; transition: background .25s, box-shadow .25s, border-color .25s; }
nav.sh-nav.navbar.is-scrolled { background: rgba(10, 15, 30, 0.94) !important; border-bottom-color: rgba(148, 163, 184, 0.12); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
nav.sh-nav .container { min-height: var(--sh-nav-h); }
nav.sh-nav .sh-brand { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0; margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em;
    color: var(--sh-text) !important; -webkit-text-fill-color: currentColor; background: none; text-decoration: none; }
nav.sh-nav .sh-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.8); }
nav.sh-nav .navbar-nav { gap: 0.15rem; }
nav.sh-nav .nav-link { position: relative; margin: 0; padding: 0.5rem 0.85rem !important; border-radius: 10px; font-size: 0.93rem; font-weight: 550;
    color: #a8b3c7 !important; white-space: nowrap; transition: color .15s, background .15s; }
nav.sh-nav .nav-link::after { content: ''; position: absolute; left: 50%; bottom: 0.18rem; width: 0; height: 2px; border-radius: 2px; transform: translateX(-50%);
    background: linear-gradient(90deg, #a5b4fc, #f0abfc); transition: width .2s ease; }
nav.sh-nav .nav-link:hover { color: #fff !important; background: rgba(148, 163, 184, 0.07); }
nav.sh-nav .nav-link.active, nav.sh-nav .nav-link[aria-current] { color: #fff !important; }
nav.sh-nav .nav-link.active::after, nav.sh-nav .nav-link[aria-current]::after { width: 18px; }
nav.sh-nav .nav-link:focus-visible, nav.sh-nav .sh-brand:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
nav.sh-nav .sh-nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 1rem; }
nav.sh-nav .navbar-toggler { border: 1px solid var(--sh-line-2); border-radius: 11px; padding: 0.45rem 0.6rem; box-shadow: none; }
nav.sh-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35); }
nav.sh-nav .navbar-toggler .bi { font-size: 1.35rem; color: var(--sh-text); line-height: 1; display: block; }
nav.sh-nav .navbar-toggler .bi-x-lg { display: none; }
nav.sh-nav .navbar-toggler[aria-expanded="true"] .bi-list { display: none; }
nav.sh-nav .navbar-toggler[aria-expanded="true"] .bi-x-lg { display: block; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    nav.sh-nav .nav-link { padding: 0.5rem 0.6rem !important; font-size: 0.88rem; }
    nav.sh-nav .sh-nav-actions { margin-left: 0.5rem; }
}
@media (max-width: 991.98px) {
    nav.sh-nav .navbar-collapse { margin: 0 -0.25rem 0.9rem; padding: 0.6rem; border-radius: 16px; background: #0d1426; border: 1px solid var(--sh-line); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
    nav.sh-nav .navbar-nav { align-items: stretch !important; gap: 0.1rem; }
    nav.sh-nav .nav-link { padding: 0.75rem 0.9rem !important; font-size: 1rem; }
    nav.sh-nav .nav-link::after { display: none; }
    nav.sh-nav .nav-link.active { background: rgba(99, 102, 241, 0.14); }
    nav.sh-nav .sh-nav-actions { margin: 0.6rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--sh-line); display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    nav.sh-nav .sh-nav-actions .sh-btn { width: 100%; }
}

/* ================= Buttons ================= */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.65rem 1.25rem; border-radius: 12px;
    font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none !important; white-space: nowrap; cursor: pointer;
    border: 1px solid var(--sh-line-2); background: transparent; color: var(--sh-text) !important; transition: transform .15s, box-shadow .2s, background .15s, border-color .15s, color .15s; }
.sh-btn:hover { border-color: #475569; background: rgba(148, 163, 184, 0.07); color: #fff !important; }
.sh-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.sh-btn-primary { border: 0; background: var(--sh-grad); color: #fff !important; box-shadow: 0 10px 26px -12px rgba(99, 102, 241, 0.9); }
.sh-btn-primary:hover { background: var(--sh-grad); transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(99, 102, 241, 1); }
.sh-btn-light { border: 0; background: #fff; color: #1e1b4b !important; }
.sh-btn-light:hover { background: #eef2ff; color: #1e1b4b !important; transform: translateY(-1px); }
.sh-btn-text { border-color: transparent; color: #cbd5e1 !important; padding-left: 0.85rem; padding-right: 0.85rem; }
.sh-btn-text:hover { border-color: transparent; }
.sh-btn-lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.sh-btn-sm { min-height: 36px; padding: 0.45rem 0.9rem; font-size: 0.86rem; border-radius: 10px; }

/* ================= Shared blocks ================= */
.sh-section { position: relative; padding: 6rem 0; }
.sh-section.tint { background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.2)); border-top: 1px solid rgba(148,163,184,0.06); border-bottom: 1px solid rgba(148,163,184,0.06); }
.sh-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.sh-head.left { margin-left: 0; text-align: left; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.9rem; padding: 0.3rem 0.75rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c7d2fe; background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25); }
.sh-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0; color: var(--sh-text); text-wrap: balance; }
.sh-title:has(.sh-scribble) { padding-bottom: 0.3em; }
.sh-sub { margin: 0.9rem auto 0; color: var(--sh-muted); font-size: 1.08rem; line-height: 1.65; max-width: 600px; text-wrap: pretty; }
.sh-head.left .sh-sub { margin-left: 0; }
.sh-grad-text { background: var(--sh-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.sh-card { background: linear-gradient(180deg, rgba(17, 26, 46, 0.92), rgba(13, 21, 40, 0.92)); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }

/* Handwriting */
.sh-hand { font-family: var(--sh-hand); font-weight: 600; color: var(--sh-ink); line-height: 1; }
.sh-scribble { position: relative; display: inline-block; white-space: nowrap; }
.sh-scribble > svg { position: absolute; left: -2%; bottom: -0.32em; width: 104%; height: 0.42em; overflow: visible; pointer-events: none; }
.sh-scribble path { fill: none; stroke: var(--sh-ink-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sh-draw path { stroke-dasharray: 700; stroke-dashoffset: 700; }
.sh-draw.is-drawn path { animation: shDraw 1.1s ease-out forwards; }
@keyframes shDraw { to { stroke-dashoffset: 0; } }
.sh-note { position: relative; display: inline-block; padding: 0.9rem 1.15rem 1rem; border-radius: 4px 14px 12px 14px; transform: rotate(-2deg);
    background: linear-gradient(180deg, #fef9c3, #fdf0a6); color: #3b2f0b; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 2px 0 rgba(0, 0, 0, 0.08); }
.sh-note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%) rotate(2deg);
    background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.45); }
.sh-note p { margin: 0; font-family: var(--sh-hand); font-size: 1.45rem; line-height: 1.15; font-weight: 600; }
.sh-note small { display: block; margin-top: 0.35rem; font-family: var(--sh-hand); font-size: 1.15rem; color: #6b5a1a; text-align: right; }
.sh-arrow { fill: none; stroke: var(--sh-ink-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Page header used by Browse, About and Contact */
.sh-page-hero { position: relative; overflow: hidden; padding: calc(var(--sh-nav-h) + 4.5rem) 0 3.5rem; text-align: center; }
.sh-page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 360px at 50% -10%, rgba(99, 102, 241, 0.28), transparent 70%), radial-gradient(500px 300px at 85% 30%, rgba(236, 72, 153, 0.10), transparent 70%); }
.sh-page-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
    background-image: linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.sh-page-hero > .container { position: relative; z-index: 1; }
.sh-page-hero .sh-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.sh-page-hero .sh-sub { font-size: 1.12rem; }

/* Content pages (Careers, Blog, FAQ, Guides, Community, Legal) */
.sh-page { margin: 0; background: var(--sh-page); color: var(--sh-text); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.sh-page) :is(h1, h2, h3, h4, h5, p) { margin: 0; }
.sh-page-hero .sh-hand.lead { display: block; font-size: 1.8rem; transform: rotate(-3deg); margin-bottom: 0.75rem; }
.sh-page-hero .sh-hero-actions { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.sh-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.sh-label { display: flex; align-items: center; gap: 0.5rem; margin: 2.5rem 0 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a5b4fc; }
.sh-label::after { content: ''; flex: 1; height: 1px; background: var(--sh-line); }
main > .sh-label:first-child, main > :first-child > .sh-label:first-child { margin-top: 0; }

/* Filter buttons */
.sh-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sh-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--sh-line-2);
    background: rgba(15, 23, 42, 0.6); color: #cbd5e1; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.sh-chip:hover { border-color: rgba(99, 102, 241, 0.7); color: #fff; }
.sh-chip[aria-pressed="true"], .sh-chip[aria-selected="true"], .sh-chip.on { background: var(--sh-grad); border-color: transparent; color: #fff; }
.sh-chip:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.sh-chip small { opacity: 0.75; font-weight: 700; }

/* Search field */
.sh-search { position: relative; }
.sh-search > i { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--sh-faint); pointer-events: none; }
.sh-search input { width: 100%; height: 54px; padding: 0 1rem 0 2.8rem; border-radius: 14px; border: 1px solid var(--sh-line-2); background: rgba(13, 21, 40, 0.92);
    color: var(--sh-text); font: inherit; font-size: 1rem; box-shadow: 0 20px 50px -28px rgba(0,0,0,0.8); transition: border-color .15s, box-shadow .15s; }
.sh-search input::placeholder { color: var(--sh-faint); }
.sh-search input:focus { outline: none; border-color: var(--sh-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18); }

/* "Still need help?" card */
.sh-help { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem; margin-top: 3rem;
    background: radial-gradient(500px 200px at 0% 0%, rgba(99,102,241,0.18), transparent 70%), linear-gradient(180deg, rgba(17,26,46,0.95), rgba(13,21,40,0.95)); }
.sh-help h2 { font-size: 1.25rem; font-weight: 800; }
.sh-help p { color: var(--sh-muted); margin-top: 0.3rem; }
.sh-help .sh-hand { display: block; width: max-content; max-width: 100%; font-size: 1.45rem; line-height: 1.15; transform: rotate(-3deg); transform-origin: left center; margin-bottom: 0.6rem; }

/* Questions that open and close (FAQ) */
.sh-acc { border-radius: 14px; overflow: hidden; }
.sh-acc + .sh-acc { margin-top: 0.6rem; }
.sh-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer;
    font-weight: 650; font-size: 0.99rem; color: var(--sh-text); transition: background .15s; }
.sh-acc summary::-webkit-details-marker { display: none; }
.sh-acc summary:hover { background: rgba(148, 163, 184, 0.05); }
.sh-acc summary:focus-visible { outline: 2px solid #a5b4fc; outline-offset: -2px; }
.sh-acc summary i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(99,102,241,0.12); color: #c7d2fe; transition: transform .2s; }
.sh-acc[open] { border-color: rgba(99, 102, 241, 0.45); }
.sh-acc[open] summary i { transform: rotate(45deg); }
.sh-acc .sh-acc-body { padding: 0 1.25rem 1.2rem; color: #b6c1d3; line-height: 1.75; font-size: 0.96rem; }

/* Long-form text (blog posts, policies) */
.sh-prose { color: #c4cedd; font-size: 1.04rem; line-height: 1.85; }
.sh-prose > * + * { margin-top: 1.1rem; }
.sh-prose h2 { margin-top: 2.25rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--sh-text); line-height: 1.3; }
.sh-prose h3 { margin-top: 1.75rem; font-size: 1.15rem; font-weight: 750; color: var(--sh-text); }
.sh-prose a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.sh-prose a:hover { color: #c7d2fe; }
.sh-prose strong { color: var(--sh-text); }
.sh-prose ul, .sh-prose ol { padding-left: 1.3rem; }
.sh-prose li + li { margin-top: 0.45rem; }
.sh-prose li::marker { color: #818cf8; }
.sh-prose blockquote { margin-left: 0; padding: 0.9rem 1.2rem; border-left: 3px solid #818cf8; background: rgba(99,102,241,0.07); border-radius: 0 12px 12px 0; color: #dbe3ef; }
.sh-prose img { max-width: 100%; height: auto; border-radius: 14px; }

.sh-empty { text-align: center; padding: 3rem 1.5rem; }
.sh-empty > i { display: block; font-size: 2.4rem; color: #a5b4fc; margin-bottom: 0.75rem; }
.sh-empty h2 { font-size: 1.3rem; font-weight: 800; }
.sh-empty p { color: var(--sh-muted); margin: 0.4rem auto 1.25rem; max-width: 440px; }

@media (max-width: 575.98px) {
    .sh-help { padding: 1.4rem 1.25rem; }
    .sh-help .sh-btn { width: 100%; }
    .sh-prose { font-size: 1rem; }
}

/* Reveal on scroll (added by Nav.php's script; content stays visible without JavaScript) */
.sh-js .sh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.sh-js .sh-reveal.is-in { opacity: 1; transform: none; }

/* Back to top */
.sh-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--sh-line-2);
    display: grid; place-items: center; background: rgba(15, 23, 42, 0.9); color: #e2e8f0; font-size: 1.1rem; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, border-color .15s; }
.sh-top.show { opacity: 1; visibility: visible; transform: none; }
.sh-top:hover { border-color: var(--sh-primary); color: #fff; }

/* ================= Footer ================= */
.sh-footer { position: relative; margin-top: 2rem; padding: 4.5rem 0 0; background: linear-gradient(180deg, #0a0f1e, #070b15); border-top: 1px solid rgba(148, 163, 184, 0.08); color: var(--sh-muted); }
.sh-footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,.6), rgba(236,72,153,.5), transparent); }
.sh-footer a { color: var(--sh-muted); text-decoration: none; transition: color .15s; }
.sh-footer a:hover { color: #fff; }
.sh-footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.sh-footer .sh-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--sh-text) !important; }
.sh-footer .sh-brand img { width: 34px; height: 34px; border-radius: 10px; }
.sh-footer-about { margin: 1rem 0 0; max-width: 330px; line-height: 1.7; font-size: 0.93rem; }
.sh-footer-sign { display: inline-block; margin-top: 1.1rem; font-size: 1.5rem; transform: rotate(-3deg); }
.sh-footer h2 { margin: 0 0 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e2e8f0; }
.sh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.sh-footer ul a { font-size: 0.93rem; }
.sh-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(148, 163, 184, 0.08); font-size: 0.87rem; }
.sh-footer-bottom p { margin: 0; }
.sh-footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 991.98px) { .sh-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-footer-brandcol { grid-column: 1 / -1; } }
@media (max-width: 575.98px) {
    .sh-section { padding: 4.25rem 0; }
    .sh-footer { padding-top: 3.25rem; }
    .sh-footer-top { gap: 2rem 1.25rem; }
    .sh-footer-bottom { flex-direction: column; align-items: flex-start; }
    .sh-top { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .sh-js .sh-reveal { opacity: 1; transform: none; transition: none; }
    .sh-draw path { stroke-dashoffset: 0; animation: none !important; }
    .sh-btn, nav.sh-nav .nav-link, .sh-top { transition: none; }
}
