/* ==========================================================================
   Integra Interiors — Retail Buildouts Done Right
   Design system + site styles. No external dependencies (strict CSP).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand: deep architectural navy + a construction-amber accent.
     Navy reads as precision/reliability; amber is the jobsite signal color. */
  --navy-900: #0b1b28;
  --navy-800: #10283a;
  --navy-700: #16374e;
  --navy-600: #1e4966;
  --navy-500: #2c6288;

  --amber-500: #f2a007;
  --amber-400: #ffb42e;
  --amber-300: #ffc862;

  --steel-900: #1b2530;
  --steel-700: #47586a;
  --steel-500: #7a8a99;
  --steel-300: #c3ced8;
  --steel-200: #dde5eb;
  --steel-100: #eef3f7;
  --steel-50:  #f7fafc;
  --white: #ffffff;

  --ok: #1c8b5a;
  --danger: #c0392b;

  /* Surfaces (light theme defaults) */
  --bg: var(--white);
  --bg-alt: var(--steel-50);
  --bg-sunken: var(--steel-100);
  --surface: var(--white);
  --border: var(--steel-200);
  --border-strong: var(--steel-300);
  --text: var(--steel-900);
  --text-muted: var(--steel-700);
  --text-faint: var(--steel-500);
  --heading: var(--navy-900);

  /* Type scale */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --maxw-prose: 68ch;

  --shadow-sm: 0 1px 2px rgba(11, 27, 40, 0.06), 0 1px 3px rgba(11, 27, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 27, 40, 0.08), 0 2px 4px rgba(11, 27, 40, 0.05);
  --shadow-lg: 0 12px 32px rgba(11, 27, 40, 0.12), 0 4px 8px rgba(11, 27, 40, 0.06);

  --ring: 0 0 0 3px rgba(242, 160, 7, 0.45);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  font-weight: 750;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); letter-spacing: 0; }
p  { margin: 0 0 var(--sp-4); }
a  { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-500); }

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }
.section--dark {
  background: var(--navy-900);
  color: var(--steel-200);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p { color: var(--steel-300); }

.prose { max-width: var(--maxw-prose); }
.center { text-align: center; }
.center .prose { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Eyebrow / section headers ------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber-500);
}
.section--dark .eyebrow { color: var(--amber-400); }
.section--dark .eyebrow::before { background: var(--amber-500); }

.section-head { margin-bottom: var(--sp-7); }
.section-head p { color: var(--text-muted); font-size: var(--step-1); max-width: 60ch; }
.section--dark .section-head p { color: var(--steel-300); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber-500);
  color: var(--navy-900);
  border-color: var(--amber-500);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--navy-600);
  background: var(--steel-50);
  color: var(--navy-700);
}

.btn--lg { padding: 1rem 1.9rem; font-size: var(--step-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 27, 40, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--white);
  letter-spacing: -0.015em;
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  font-weight: 650;
}

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav a {
  color: var(--steel-200);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--amber-400); }
.nav .btn { margin-left: var(--sp-3); }
.nav .btn:hover { background: var(--amber-400); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--sp-3);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0.75rem; }
  .nav .btn { margin: var(--sp-2) 0 0; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
/* Blueprint grid — evokes a floor plan without any image asset. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 75% at 72% 40%, #000 25%, transparent 78%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -25%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 160, 7, 0.16) 0%, transparent 62%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-9) 0;
}
/* Desktop: the illustration fills its grid column. Stated explicitly rather than
   relying on the global img reset, so the mobile override below has a base. */
.hero-art { width: 100%; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-8) 0; }
  .hero-art { order: -1; max-width: 460px; }
}

.hero h1 { color: var(--white); margin-bottom: var(--sp-5); }
.hero h1 .accent {
  color: var(--amber-400);
  display: block;
}
.hero-lede {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 100px;
  padding: 0.4rem 0.95rem;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: var(--sp-5);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-400);
  flex: none;
}

.hero-points {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.hero-points li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}
.hero-points svg { flex: none; margin-top: 3px; }

/* --- Stat band ---------------------------------------------------------- */
.statband {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.statband .grid { gap: 0; }
.stat {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}
.stat:last-child { border-right: none; }
@media (max-width: 700px) {
  .stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .stat:last-child { border-bottom: none; }
}
.stat-value {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--amber-400);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-label {
  font-size: var(--step--1);
  color: var(--steel-300);
  margin-top: var(--sp-2);
  letter-spacing: 0.03em;
}

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card--hover:hover {
  border-color: var(--navy-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--navy-900);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; }

/* Scope card with CSI reference */
.scope-card { display: flex; flex-direction: column; }
.csi {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--navy-500);
  background: var(--steel-100);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  display: inline-block;
  white-space: nowrap;
}
.scope-list {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
  font-size: 0.94rem;
  color: var(--text-muted);
}
.scope-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.scope-list li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
  margin-top: 0.55em;
}

/* --- Feature rows ------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.feature-row + .feature-row { margin-top: var(--sp-8); }
.feature-row--flip > *:first-child { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature-row--flip > *:first-child { order: 0; }
}

/* --- Process steps ------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-400);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: var(--sp-2); }
.step p { margin-bottom: 0; color: var(--text-muted); }

/* --- Checklist ---------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }

/* --- Callout / notice --------------------------------------------------- */
.callout {
  border-left: 3px solid var(--amber-500);
  background: var(--steel-50);
  padding: var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--dark {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--amber-400);
}

/* --- Table -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 520px;
}
table.data th, table.data td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  background: var(--steel-100);
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }

/* --- Forms -------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.field label,
.field .group-label {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--heading);
  margin-bottom: var(--sp-2);
}
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: var(--ring);
}
.field-hint { font-size: 0.84rem; color: var(--text-faint); margin-top: var(--sp-2); }

/* Honeypot — must stay reachable to bots but invisible/unfocusable to people. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.checkgrid label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0;
  margin: 0;
}
.checkgrid input { width: auto; margin-top: 3px; accent-color: var(--amber-500); flex: none; }

.form-status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-weight: 550;
  margin-top: var(--sp-4);
}
.form-status[data-state="ok"] {
  background: #e8f6ef; color: #106b43; border: 1px solid #a8dcc3;
}
.form-status[data-state="error"] {
  background: #fdecea; color: #96271b; border: 1px solid #f1b7b0;
}
.form-status[hidden] { display: none; }

/* --- Contact panel ------------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.contact-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-item svg { flex: none; margin-top: 2px; }
.contact-item .label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 650;
}
.contact-item .value { font-weight: 650; color: var(--heading); font-size: 1.06rem; }
.contact-item .value a { color: var(--heading); text-decoration: none; }
.contact-item .value a:hover { color: var(--navy-500); text-decoration: underline; }
.section--dark .contact-item .value,
.section--dark .contact-item .value a { color: var(--white); }
.section--dark .contact-item .label { color: var(--steel-500); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--steel-300);
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-links a { color: var(--steel-300); text-decoration: none; }
.footer-links a:hover { color: var(--amber-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  color: var(--steel-500);
  font-size: 0.87rem;
}
.footer-bottom a { color: var(--steel-500); }

/* --- Utility ------------------------------------------------------------ */
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.nowrap { white-space: nowrap; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--steel-100);
  color: var(--navy-600);
  border: 1px solid var(--border);
}
.taglist { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Dark theme --------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1720;
    --bg-alt: #111f2b;
    --bg-sunken: #0a141c;
    --surface: #142330;
    --border: #223648;
    --border-strong: #2d4459;
    --text: #dfe8ef;
    --text-muted: #a9bccb;
    --text-faint: #7e93a4;
    --heading: #f2f7fa;
  }
  :root:not([data-theme="light"]) .csi { background: #0f1c26; color: var(--amber-300); }
  :root:not([data-theme="light"]) .callout { background: #101d27; }
  :root:not([data-theme="light"]) table.data th { background: #0f1c26; }
  :root:not([data-theme="light"]) .section--alt,
  :root:not([data-theme="light"]) .section--sunken { background: var(--bg-alt); }
  :root:not([data-theme="light"]) .form-status[data-state="ok"] {
    background: #0f2b1f; color: #7fd8ac; border-color: #1f5e42;
  }
  :root:not([data-theme="light"]) .form-status[data-state="error"] {
    background: #331715; color: #f3aaa1; border-color: #6d2f27;
  }
}
