/* ============================================================
   I-STEM Revamp — Design System
   Type:  Space Grotesk (display) + IBM Plex Sans (UI/body)
   Color: official navy, vibrant brand blue, cyan scientific
          accent; saffron/green reserved for status (subtle
          tricolour cue).
   ============================================================ */

:root {
  /* ---- Color: ink & surfaces ---- */
  --ink:        #14193b;   /* deep indigo-navy — primary text */
  --ink-2:      #444c70;   /* secondary text */
  --ink-3:      #6e7596;   /* muted / captions */
  --line:       #e5e7f2;   /* hairline borders */
  --line-2:     #d4d8ea;
  --bg:         #f5f6fc;   /* cool indigo-white page */
  --bg-2:       #eef0fa;
  --card:       #ffffff;

  /* ---- Navy/indigo brand surfaces (from logo) ---- */
  --navy-900:   #0a0e35;
  --navy-800:   #121a55;
  --navy-700:   #1d2670;
  --navy-600:   #2a3493;

  /* ---- Accents (logo: indigo + vermillion-orange) ---- */
  --brand:      #262f97;   /* logo indigo — primary action */
  --brand-600:  #1c2476;
  --brand-400:  #5e67d0;
  --brand-50:   #ececf9;
  --cyan:       #ef5f20;   /* logo orange (repurposed accent) */
  --cyan-50:    #fdede4;
  --accent:     #ef5f20;   /* logo vermillion-orange */
  --accent-600: #d44e14;
  --accent-50:  #fdede4;

  /* ---- Status (subtle tricolour) ---- */
  --green:      #1a8a4a;   /* available */
  --green-50:   #e6f5ec;
  --amber:      #d98a0b;   /* limited / busy */
  --amber-50:   #fdf2dd;
  --saffron:    #e8730c;   /* highlight, used sparingly */
  --red:        #c2382f;   /* unavailable */
  --red-50:     #fbeae8;

  /* ---- Radius & shadow ---- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(11,27,52,.06), 0 1px 3px rgba(11,27,52,.05);
  --shadow:    0 2px 6px rgba(11,27,52,.06), 0 8px 24px rgba(11,27,52,.07);
  --shadow-lg: 0 8px 28px rgba(11,27,52,.10), 0 24px 60px rgba(11,27,52,.12);
  --shadow-navy: 0 18px 50px rgba(8,20,40,.28);

  --maxw: 1240px;
  --ff-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

/* ---- High-contrast accessibility mode (GIGW/UX4G cue) ---- */
.hc {
  --bg: #ffffff; --bg-2:#ffffff; --card:#ffffff;
  --ink:#000000; --ink-2:#1a1a1a; --ink-3:#333333;
  --line:#000000; --line-2:#000000;
  --brand:#0030c0; --brand-600:#0030c0;
}
.hc * { box-shadow: none !important; }
.hc .card, .hc .panel, .hc input, .hc select, .hc .btn { border-color:#000 !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fz, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px){ .wrap { padding: 0 18px; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 11px 18px; line-height: 1; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(38,47,151,.4), 0 6px 18px rgba(38,47,151,.22); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand); }
.btn-navy { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-navy:hover { background: rgba(255,255,255,.2); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 9px 12px; }
.btn-quiet:hover { color: var(--brand); background: var(--brand-50); }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 8px; }

/* ============================================================
   Badges / chips / pills
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red   { background: var(--red-50);   color: var(--red); }
.badge-blue  { background: var(--brand-50); color: var(--brand); }
.badge-cyan  { background: var(--cyan-50);  color: #07788c; }
.badge-grey  { background: var(--bg-2); color: var(--ink-2); }

.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }

.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 9px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); transition: all .15s; cursor: pointer; }
.chip:hover { border-color: var(--brand-400); color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.eyebrow { font-family: var(--ff-body); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 9px; }

/* ============================================================
   Card
   ============================================================ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* Striped placeholder for imagery (per design conventions) */
.imgslot {
  position: relative; overflow: hidden; border-radius: var(--r);
  background:
    repeating-linear-gradient(135deg, rgba(34,86,224,.06) 0 10px, rgba(34,86,224,.02) 10px 20px),
    var(--bg-2);
  border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
}
.imgslot span { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; padding: 4px 10px; background: rgba(255,255,255,.6); border-radius: 6px; }

/* user-fillable image slots */
image-slot { display: block; width: 100%; }

/* City autocomplete */
.loc-ac { position: relative; display: flex; }
.loc-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 252px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none; z-index: 75; max-height: 322px; overflow-y: auto; }
.loc-drop-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 9px 10px 6px; }
.loc-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.loc-opt.hi { background: var(--brand-50); }
.loc-opt .loc-city { font-weight: 600; }
.loc-opt .loc-state { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* Inputs */
.field { width: 100%; font-family: var(--ff-body); font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Utility */
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.muted { color: var(--ink-3); }
.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; }
