/* ShirtMath canonical design profile - brand-profile/1.0.0
 *
 * AUTHORITY: the computed styles of the rendered staging homepage (Home V2),
 * measured in a real browser 2026-08-24 and cross-checked against the served
 * home-v2.css token block. This file is the ONE shared token + component layer
 * for every non-homepage surface (B2B marketing, portal, test storefront,
 * widget). It translates the homepage system - it does not invent a theme.
 *
 * Measured authority values:
 *   canvas #FAFAF7 · surface #FFFFFF · surface-soft #F5F8FC · mist #EAF2FF
 *   navy #061B30 · ink #102A43 · muted #617386 · muted-ink #4B5D71
 *   line #D9E3EC · coral accent #FF624F (hover #E14A38) · cobalt #2F65F5 (#2354D8)
 *   success #18765A · radius 10/16/24 · max 1360px
 *   Fraunces (display) · Karla (body) · DM Mono (mono)
 *   header: sticky, rgba(255,255,255,.94), 73px desktop
 *   primary button: navy bg, white text, 10px radius, Karla 600
 */

:root {
  --sm-canvas: #FAFAF7;
  --sm-surface: #FFFFFF;
  --sm-surface-soft: #F5F8FC;
  --sm-mist: #EAF2FF;
  --sm-navy: #061B30;
  --sm-navy-btn: #0B2945;
  --sm-ink: #102A43;
  --sm-muted: #617386;
  --sm-muted-ink: #4B5D71;
  --sm-line: #D9E3EC;
  --sm-coral: #FF624F;
  --sm-coral-hover: #E14A38;
  --sm-cobalt: #2F65F5;
  --sm-cobalt-hover: #2354D8;
  --sm-success: #18765A;
  --sm-warn: #B7791F;
  --sm-danger: #C0392B;
  --sm-r-s: 10px;
  --sm-r-m: 16px;
  --sm-r-l: 24px;
  --sm-max: 1360px;
  --sm-disp: "Fraunces", Georgia, serif;
  --sm-body: "Karla", system-ui, sans-serif;
  --sm-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --sm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sm-canvas);
  color: var(--sm-ink);
  font-family: var(--sm-body);
  font-size: 15.5px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--sm-disp);
  font-weight: 500;
  color: var(--sm-ink);
  margin: 0;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(34px, 4.2vw, 45px); line-height: 1.06; }
h2 { font-size: 24px; line-height: 1.55; letter-spacing: -.015em; }
h3 { font-size: 18.5px; }
h4 {
  font-family: var(--sm-body); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sm-muted); margin: 0;
}
p { margin: 0; }
a { color: var(--sm-cobalt); }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sm-cobalt); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------- shell ---- */
.smb-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sm-line);
}
.smb-topbar-in {
  max-width: var(--sm-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 22px; min-height: 73px;
}
.smb-wordmark {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--sm-disp); font-weight: 600; font-size: 20px;
  color: var(--sm-navy); text-decoration: none; letter-spacing: -.01em;
}
.smb-wordmark .rule-icon {
  display: inline-block; width: 26px; height: 12px;
  border: 1.5px solid var(--sm-navy); border-top: none;
  position: relative; top: -1px;
}
.smb-tag {
  font-family: var(--sm-body); font-weight: 600; font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--sm-muted-ink); background: var(--sm-mist);
  border-radius: 999px; padding: 4px 12px;
}
.smb-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.smb-nav a, .smb-nav button {
  font-weight: 600; font-size: 14.5px; color: var(--sm-navy);
  background: none; border: 0; padding: 10px 14px;
  border-radius: var(--sm-r-s); text-decoration: none; letter-spacing: .01em;
}
.smb-nav a:hover, .smb-nav button:hover { background: var(--sm-surface-soft); }
.smb-nav [aria-current="true"], .smb-nav [aria-current="page"] {
  background: var(--sm-navy); color: #FFFFFF;
}

/* ------------------------------------------------------------- buttons ---- */
.smb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none;
  border-radius: var(--sm-r-s); padding: 10px 18px;
  background: var(--sm-navy-btn); color: #FFFFFF;
  border: 1px solid var(--sm-navy-btn);
  transition: transform .12s var(--sm-ease), background .12s var(--sm-ease);
}
.smb-btn:hover { transform: translateY(-1px); }
.smb-btn.coral { background: var(--sm-coral); border-color: var(--sm-coral); }
.smb-btn.coral:hover { background: var(--sm-coral-hover); border-color: var(--sm-coral-hover); }
.smb-btn.outline { background: transparent; color: var(--sm-ink); border-color: var(--sm-line); }
.smb-btn.outline:hover { border-color: var(--sm-cobalt); color: var(--sm-cobalt); }
.smb-btn.onnavy { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.smb-btn.onnavy:hover { border-color: #FFFFFF; background: rgba(255,255,255,.08); }
.smb-btn.sm { padding: 7px 13px; font-size: 13.5px; }
.smb-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- cards ---- */
.smb-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-r-m);
  padding: 24px;
}
.smb-card.soft { background: var(--sm-surface-soft); }
.smb-hero {
  background: var(--sm-navy); color: #FFFFFF;
  border-radius: var(--sm-r-l);
}
.smb-hero h1, .smb-hero h2 { color: #FFFFFF; }
.smb-hero .lede { color: rgba(255, 255, 255, .82); }
.smb-mist { background: var(--sm-mist); border-radius: var(--sm-r-m); }

/* -------------------------------------------------------------- layout ---- */
.smb-wrap { max-width: var(--sm-max); margin: 0 auto; padding: 0 24px; }
.smb-section { padding: 56px 0; }
.smb-lede { color: var(--sm-muted-ink); font-size: 17px; max-width: 58ch; }
.smb-eyebrow {
  font-family: var(--sm-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sm-cobalt);
}
.smb-hero .smb-eyebrow { color: #9DB8FF; }

/* -------------------------------------------------------------- tables ---- */
.smb-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.smb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.smb-table th {
  text-align: left; font-family: var(--sm-body); font-weight: 700;
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sm-muted); background: var(--sm-surface-soft);
  padding: 10px 14px; border-bottom: 1px solid var(--sm-line);
}
.smb-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--sm-line);
  vertical-align: top; overflow-wrap: anywhere;
}
.smb-table tr:last-child td { border-bottom: 0; }
.smb-table code { font-family: var(--sm-mono); font-size: 12.5px; }

/* --------------------------------------------------------------- forms ---- */
.smb-label { display: block; font-weight: 600; font-size: 13.5px;
  color: var(--sm-muted-ink); margin: 14px 0 6px; }
.smb-input, .smb-select, .smb-textarea {
  width: 100%; max-width: 480px; padding: 10px 14px;
  border: 1px solid var(--sm-line); border-radius: var(--sm-r-s);
  background: var(--sm-surface); font-size: 15px;
}
.smb-input:focus, .smb-select:focus, .smb-textarea:focus {
  border-color: var(--sm-cobalt); outline: none;
  box-shadow: 0 0 0 3px rgba(47, 101, 245, .15);
}
.smb-textarea { min-height: 120px; font-family: var(--sm-mono); font-size: 13px; }

/* ------------------------------------------------------------- status ----- */
.smb-pill {
  display: inline-block; font-weight: 600; font-size: 12px;
  letter-spacing: .03em; border-radius: 999px; padding: 4px 12px;
  background: var(--sm-surface-soft); color: var(--sm-muted-ink);
  border: 1px solid var(--sm-line); white-space: nowrap;
}
.smb-pill.live    { background: #E7F5EF; color: var(--sm-success); border-color: #BFE3D4; }
.smb-pill.soon    { background: var(--sm-surface-soft); color: var(--sm-muted); }
.smb-pill.warn    { background: #FDF3E2; color: var(--sm-warn); border-color: #F0DCB2; }
.smb-pill.danger  { background: #FDECEA; color: var(--sm-danger); border-color: #F3C4BE; }
.smb-note {
  background: var(--sm-mist); border-radius: var(--sm-r-s);
  padding: 14px 18px; font-size: 14px; color: var(--sm-muted-ink);
}
.smb-note.warn { background: #FDF3E2; }
.smb-note b { color: var(--sm-ink); }
.smb-secret {
  background: var(--sm-surface); border: 1.5px dashed var(--sm-coral);
  border-radius: var(--sm-r-s); padding: 14px;
  font-family: var(--sm-mono); font-size: 13px; word-break: break-all;
}
.smb-code, pre.smb-code {
  background: var(--sm-navy); color: #DCE7F3;
  border-radius: var(--sm-r-s); padding: 16px 18px;
  font-family: var(--sm-mono); font-size: 12.5px; line-height: 1.6;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.smb-kpi { font-family: var(--sm-disp); font-size: 32px; font-weight: 500;
  color: var(--sm-ink); line-height: 1.1; }
.smb-kpi-label { font-size: 12.5px; color: var(--sm-muted); }
.smb-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--sm-navy); color: #FFFFFF; padding: 11px 20px;
  border-radius: var(--sm-r-s); font-size: 14px; display: none; z-index: 90;
}

/* ---------------------------------------------------------- responsive ---- */
@media (max-width: 900px) {
  .smb-topbar-in { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .smb-nav { margin-left: 0; width: 100%; }
  .smb-section { padding: 40px 0; }
  .smb-wrap { padding: 0 16px; }
}
