/* campskill — production shared layer (loaded after base.css) */
:root{
  --teal:#2f9fb0; --teal-d:#227e8e; --teal-soft:#bcd6e6;
  --navy-w:#2a4a6b;
}

/* ===== shared header (04 · split + CTA, squared buttons, no orange) =====
   Fixed height + reserved space so it never shifts (same size/place on every page). */
#site-header{display:block;min-height:64px}
.site-nav.shc{position:sticky;top:0;z-index:60;background:var(--paper);border-bottom:1px solid var(--line)}
.shc-bar{height:64px;gap:16px}
.shc-nav{display:none;gap:22px;align-items:center;font-size:14.5px;font-weight:600}
.shc-nav a{color:var(--ink)}
.shc-nav a:hover{color:var(--accent-d)}
.shc-end{display:flex;align-items:center;gap:10px;margin-left:auto}
/* reserved account slot — guest (login+signup) and logged-in (avatar) occupy the
   SAME footprint so the logo/nav never shift when auth state changes (item 4) */
.shc-slot{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:148px}
.shc-guest{display:flex;align-items:center;gap:10px}
.shc-login{font-weight:700;font-size:14px;color:var(--ink);padding:8px 6px}
.shc-login:hover{color:var(--accent-d)}
.shc-signup{background:var(--accent);color:#fff;font-weight:700;font-size:14px;padding:10px 16px;border-radius:8px}
.shc-signup:hover{background:var(--accent-d)}
.shc-burger{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer}
.shc-a11y{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent-d);cursor:pointer;flex:0 0 auto}
.shc-a11y svg{width:22px;height:22px}

.shc-user{position:relative}
.shc-avatar{width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;background:linear-gradient(135deg,var(--accent),var(--teal));color:#fff;font-weight:800;font-size:14px;display:grid;place-items:center}
.shc-dd{position:absolute;right:0;top:calc(100% + 10px);width:220px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 40px -24px rgba(20,40,70,.5);padding:8px;z-index:70}
.shc-dd-who{padding:10px 12px 8px;border-bottom:1px solid var(--line);margin-bottom:6px}
.shc-dd-who b{display:block;font-size:14px}
.shc-dd-who span{display:block;font-size:12px;color:var(--dim)}
.shc-dd a,.shc-dd button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 12px;border-radius:8px;font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:none;border:0;cursor:pointer}
.shc-dd a svg,.shc-dd button svg{width:17px;height:17px;flex:0 0 auto;color:var(--accent-d)}
.shc-dd a:hover,.shc-dd button:hover{background:var(--paper)}
.shc-dd button{color:#c0392b}
.shc-dd button svg{color:#c0392b}

.shc-mobile{display:flex;flex-direction:column;gap:2px;padding:10px 16px 16px;border-bottom:1px solid var(--line);background:var(--paper)}
.shc-mobile>a{display:flex;align-items:center;gap:12px;padding:12px 4px;font-weight:600;font-size:15px;color:var(--ink);border-bottom:1px solid var(--line)}
.shc-mobile>a svg{width:19px;height:19px;flex:0 0 auto;color:var(--accent-d)}
.shc-mobile-acct{display:flex;gap:10px;padding-top:12px}
.shc-mobile-acct.hide{display:none}
.shc-mobile-acct a,.shc-mobile-acct button{flex:1}
/* logged-in mobile menu = stacked icon rows (not the 2-button guest row) */
.shc-mobile-user{flex-direction:column;gap:2px}
.shc-mobile-user a,.shc-mobile-user button{flex:none;display:flex;align-items:center;gap:12px;padding:12px 4px;font-weight:600;font-size:15px;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left}
.shc-mobile-user a svg,.shc-mobile-user button svg{width:19px;height:19px;flex:0 0 auto;color:var(--accent-d)}
.shc-mobile-user button{background:none;color:#c0392b}
.shc-mobile-user button svg{color:#c0392b}
.shc-mobile-acct button{background:none;border:1px solid var(--line);border-radius:8px;font:inherit;font-weight:700;color:#c0392b;cursor:pointer}
.hide{display:none!important}

/* skip link (a11y) */
.shc-skip{position:absolute;left:-999px;top:8px;z-index:200;background:var(--accent);color:#fff;padding:10px 14px;border-radius:8px;font-weight:700}
.shc-skip:focus{left:8px}

/* desktop: full inline nav, signup shown, no hamburger */
@media(min-width:860px){
  .shc-nav{display:flex}
  .shc-burger{display:none}
  .shc-mobile{display:none!important}
}
/* mobile: three columns, [menu] [logo] [login|avatar]. The logo sits in the centre
   column so it stays optically centred whatever the side items measure; the outer
   columns are equal fractions so an "Log in" of any width cannot drag it off-centre.
   Accessibility moves into the menu — see .shc-m-a11y. */
@media(max-width:859px){
  #site-header{min-height:56px}
  .shc-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:56px;gap:8px}
  .shc-end{display:contents}          /* let the bar grid position these directly */
  .shc-bar .logo{order:2;justify-self:center;margin:0}
  .shc-burger{order:1;justify-self:start;display:flex}
  .shc-slot{order:3;justify-self:end;min-width:0}
  .shc-nav{display:none}
  .shc-signup{display:none}
  .shc-a11y{display:none}             /* lives in the menu on mobile */
  .shc-avatar{width:34px;height:34px}
  .shc-login{padding:8px 2px}
}
/* accessibility trigger inside the mobile menu, styled like the other menu rows */
.shc-m-a11y{display:flex;align-items:center;gap:12px;width:100%;padding:12px 4px;font:inherit;font-weight:600;font-size:15px;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer}
.shc-m-a11y svg{width:19px;height:19px;flex:0 0 auto;color:var(--accent-d)}
.shc-staff{color:var(--teal)!important}
.shc-staff svg{color:var(--teal)!important}
@media(min-width:860px){.shc-m-a11y{display:none}}

/* ===== fast loader (every page load) ===== */
#shc-loader{position:fixed;inset:0;z-index:300;display:grid;place-items:center;background:var(--paper);
  transition:opacity .35s ease, visibility .35s}
#shc-loader.gone{opacity:0;visibility:hidden;pointer-events:none}
#shc-loader .mk{display:flex;flex-direction:column;align-items:center;gap:14px}
#shc-loader svg{width:64px;height:64px}
#shc-loader .rt{fill:none;stroke:var(--accent);stroke-width:24;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:520;stroke-dashoffset:520;animation:shc-draw .7s ease forwards}
@keyframes shc-draw{to{stroke-dashoffset:0}}
#shc-loader .wd{font-weight:800;letter-spacing:-.02em;color:var(--ink);font-size:18px;opacity:0;animation:shc-fin .4s .25s forwards}
#shc-loader .wd b{color:var(--accent-d)}
#shc-loader .bar{width:120px;height:4px;border-radius:99px;background:var(--paper-2);overflow:hidden;opacity:0;animation:shc-fin .4s .3s forwards}
#shc-loader .bar i{display:block;height:100%;width:40%;border-radius:99px;background:linear-gradient(90deg,var(--teal-soft),var(--accent));animation:shc-slide .8s .35s cubic-bezier(.5,0,.2,1) infinite}
@keyframes shc-fin{to{opacity:1}}
@keyframes shc-slide{0%{transform:translateX(-120%)}100%{transform:translateX(340%)}}

/* ===== accessibility widget ===== */
.a11y-panel{position:fixed;z-index:210;right:16px;top:70px;width:min(320px,calc(100vw - 32px));
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 50px -24px rgba(20,40,70,.5);padding:16px}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{font-size:15px;font-weight:800;margin-bottom:4px}
.a11y-panel .a11y-sub{font-size:12px;color:var(--dim);margin-bottom:12px}
.a11y-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.a11y-row .lab{font-size:14px;font-weight:600}
.a11y-seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.a11y-seg button{border:0;background:#fff;padding:7px 11px;font:inherit;font-weight:700;cursor:pointer;color:var(--ink)}
.a11y-seg button.on{background:var(--accent);color:#fff}
.a11y-sw{width:44px;height:26px;border-radius:99px;background:var(--line);position:relative;cursor:pointer;border:0;flex:0 0 auto}
.a11y-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.a11y-sw.on{background:var(--teal)}.a11y-sw.on::after{left:21px}
.a11y-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.a11y-foot a{font-size:12.5px;font-weight:700;color:var(--accent-d)}
.a11y-foot button{font:inherit;font-size:12.5px;font-weight:700;color:var(--dim);background:none;border:0;cursor:pointer}
@media(max-width:600px){.a11y-panel{right:8px;left:8px;top:auto;bottom:8px;width:auto}}

/* preference applications (set on <html>) */
html.a11y-contrast{--dim:#334;--line:#334}
html.a11y-contrast body{background:#fff;color:#000}
html.a11y-contrast a{text-decoration:underline}
html.a11y-contrast .pg-kick,html.a11y-contrast .shc-nav a{color:#003a5c}
html.a11y-links a:not(.btn):not(.pg-btn-p):not(.shc-signup){text-decoration:underline}
html.a11y-reduce *,html.a11y-reduce *::before,html.a11y-reduce *::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important;scroll-behavior:auto!important}
:root{--a11y-zoom:1}
body{zoom:var(--a11y-zoom)}

/* ===== shared cards / pills reused across new production pages ===== */
.pg-wrap{max-width:1120px;margin:0 auto;padding:28px 16px 60px}
.pg-kick{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.pg-h1{font-size:clamp(28px,6vw,44px);font-weight:800;letter-spacing:-.03em;text-wrap:balance;margin-top:6px}
.pg-lead{color:var(--dim);font-size:16px;margin-top:8px;text-wrap:pretty}
.pg-card{background:var(--card);border:1px solid var(--line);border-radius:16px}
.pg-btn-p{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;font-weight:700;border:0;border-radius:10px;padding:13px 19px;font:inherit;font-size:15px;cursor:pointer}
.pg-btn-p:hover{background:var(--accent-d)}
.pg-btn-line{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 17px;font:inherit;font-weight:700;cursor:pointer;color:var(--ink)}
.pg-error{background:color-mix(in srgb,#c0392b 10%,#fff);color:#c0392b;border:1px solid color-mix(in srgb,#c0392b 30%,#fff);border-radius:10px;padding:11px 14px;font-size:13.5px;margin-top:10px}
