/* ═══════════════════════════════════════════════════════════════════
   SKIPPY DESIGN SYSTEM  ·  /assets/skippy.css
   One copy of the colours, reset and shared components, loaded by
   /, /portal, /ops and /board. Before this file each page carried its own
   copy, and the copies had drifted apart.

   NO BUILD STEP. Pages link it before their own <style> block:
     <link rel="stylesheet" href="/assets/skippy.css?v=YYYY-MM-DD">
   Bump ?v= on every page whenever this file changes, so a browser holding
   the old copy fetches the new one.

   HOW THE PIECES FIT. This file holds only what the pages agree on. A page's
   own <style> comes after this link, so a page rule with the same selector
   wins. Where the portal and ops differ on purpose (card corner radius,
   button size, glow strength), the shared part lives here and each page
   keeps only the properties that differ, marked "page part of …".

   PUBLIC BY DESIGN. /assets/ is not behind Cloudflare Access, because the
   landing page and /portal have no login. Put nothing here but styling.

   Rules of the look (navy hero, orange accent only, flat buttons, sentence
   case, motion behind prefers-reduced-motion) are in
   skippy-portal/docs/claude/design-system.md, outside this repo.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────── */
:root{
  /* Brand */
  --navy:#1a365d;--navy-dark:#0f2744;--navy-light:#2d4a7c;
  --orange:#ed8936;--orange-dark:#dd6b20;--orange-light:#f6ad55;
  --cream:#fffaf5;--white:#fff;

  /* Greys */
  --grey-50:#f9fafb;--grey-100:#f3f4f6;--grey-200:#e5e7eb;--grey-300:#d1d5db;
  --grey-400:#9ca3af;--grey-500:#6b7280;--grey-600:#4b5563;--grey-700:#374151;
  --grey-800:#1f2937;--grey-900:#111827;
  /* Older names the landing page uses; same colours as grey-500/grey-400. */
  --grey:var(--grey-500);--grey-light:var(--grey-400);

  /* Status */
  --success:#10b981;--success-light:#d1fae5;
  --error:#ef4444;--error-light:#fee2e2;
  --warning:#f59e0b;--warning-light:#fef3c7;

  /* Shadows */
  --shadow-sm:0 1px 2px rgb(0 0 0/.05);
  --shadow-md:0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1);
  --shadow-lg:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);
}

/* ── 2. Reset ──────────────────────────────────────────────────────── */
*{margin:0;padding:0;box-sizing:border-box}

/* ── 3. Motion ─────────────────────────────────────────────────────── */
/* fadeIn, float and drift1 are NOT here: each page uses a different
   version, so each page keeps its own. */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes drift2{0%,100%{transform:translate(0,0)}50%{transform:translate(60px,-40px)}}

/* ── 4. Ambient glows behind the content ───────────────────────────── */
/* Page part: opacity, position and animation of each glow. */
.ambient{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.glow-1,.glow-2{position:absolute;border-radius:50%;filter:blur(90px)}
.glow-1{width:620px;height:620px}
.glow-2{width:520px;height:520px}
@media(prefers-reduced-motion:reduce){.glow-1,.glow-2{animation:none}}

/* ── 5. Buttons ────────────────────────────────────────────────────── */
/* Page part of .btn: padding and font size (ops buttons are smaller). */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:600;font-family:inherit;border:none;border-radius:12px;cursor:pointer;transition:all .2s ease}
.btn svg{width:16px;height:16px;flex-shrink:0}
.btn-primary{background:var(--navy);color:var(--white)}
.btn-primary:hover{background:var(--navy-dark)}
.btn-primary:active{transform:translateY(0)}
.btn-primary:disabled{background:var(--grey-300);cursor:not-allowed;transform:none;box-shadow:none}
.btn-block{width:100%}

/* Monoline icons inside headings */
h2 svg,h3 svg{width:18px;height:18px;vertical-align:-.18em}

/* ── 6. Cards ──────────────────────────────────────────────────────── */
/* Page part: corner radius, shadow and padding. */
.card{background:var(--white);border:1px solid var(--grey-200);overflow:hidden}
.card-header{display:flex;justify-content:space-between;background:var(--white)}

/* ── 7. Forms ──────────────────────────────────────────────────────── */
.form-row{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1rem}
.form-row.two-col{grid-template-columns:1fr 1fr}
@media(max-width:640px){.form-row.two-col{grid-template-columns:1fr}}
.form-group{display:flex;flex-direction:column}
label{font-size:.875rem;font-weight:500;color:var(--grey-600);margin-bottom:.375rem}
label .required{color:var(--error)}

/* Filled fields that lift to white with an orange focus ring. */
input[type="text"],input[type="email"],input[type="tel"],input[type="number"],
input[type="date"],input[type="time"],input[type="month"],input[type="file"],
select,textarea{width:100%;padding:.8rem 1rem;font-size:.95rem;font-family:inherit;border:1px solid var(--grey-200);border-radius:12px;background:var(--grey-100);color:var(--grey-700);transition:all .2s ease}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--orange);background:var(--white);box-shadow:0 0 0 4px rgba(237,137,54,.12)}

/* Page part of .checkbox-group and .checkbox-item: layout, padding, fill. */
.checkbox-group{gap:.5rem}
.checkbox-item{display:flex;align-items:center;gap:.5rem;cursor:pointer}
.checkbox-item input[type="checkbox"]{width:18px;height:18px;accent-color:var(--orange);cursor:pointer}
.checkbox-item label{margin-bottom:0;cursor:pointer;font-weight:400}

/* ── 8. Messages ───────────────────────────────────────────────────── */
/* Page part of .status-message: padding, font size, fade. */
.status-message{border-radius:12px;margin-top:1rem;display:none}
.status-message.success{display:block;background:var(--success-light);color:#065f46;border:1px solid #6ee7b7}
.status-message.error{display:block;background:var(--error-light);color:#991b1b;border:1px solid #fca5a5}
.status-message.loading{display:block;background:var(--grey-100);color:var(--grey-600);border:1px solid var(--grey-200)}
/* Page part of .spinner: size. */
.spinner{display:inline-block;border:2px solid var(--grey-300);border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}
/* Page part of .info-box: padding and text colour; .warning differs too. */
.info-box{background:var(--grey-100);border:1px solid var(--grey-200);border-radius:12px;margin-bottom:1rem;font-size:.875rem}

/* ── 9. Utilities ──────────────────────────────────────────────────── */
.hidden{display:none!important}
