/* ==========================================================================
   Real Peptide Scores — main.css
   Warm-cream + charcoal palette with a single saturated orange accent.
   Instrument Sans display + Inter body + Fira Code overlines. Hairline
   borders over shadows. 16px-radius cards. Fully-pill buttons. Mobile-first.
   ========================================================================== */

:root {
  /* ---------- Color: neutrals (warm) ---------- */
  --oath-black: #000000;
  --oath-charcoal: #262626;          /* primary heading / dark section bg */
  --oath-white: #ffffff;
  --oath-paper: #fcfaf9;             /* light-100 — page background (warm cream) */
  --oath-paper-deep: #f5f3f1;        /* light-200 — alternate section / card fill */

  /* Cool-warm hybrid gray scale, mapped to ReadyRx grays where possible */
  --oath-gray-900: #262626;          /* dark-900 — primary text / dark sections */
  --oath-gray-800: #3a3a3a;          /* dark-800 — body text equivalent */
  --oath-gray-700: #5c5c5c;          /* dark-700 — secondary text / overline */
  --oath-gray-600: #767676;
  --oath-gray-500: #969696;
  --oath-gray-400: #b8b8b8;
  --oath-gray-300: #d6d6d6;          /* gray-300 — default border */
  --oath-gray-200: #e6e6e6;          /* gray-200 */
  --oath-gray-100: #f2f2f2;          /* gray-100 */
  --oath-gray-50:  #f5f3f1;          /* alias to light-200 for warm fills */

  /* ---------- Color: editorial accents ---------- */
  /* ink-navy is repurposed as THE brand orange accent (#ff6e42). The name
     stays because legacy CSS files reference it as the single accent token. */
  --ink-navy: #ff6e42;               /* brand-500 — the orange */
  --ink-navy-soft: #ff8a64;          /* brand-400 — lighter orange */
  --ink-navy-tint: #ffe7dc;          /* brand-300 — soft peach tint background */
  --ink-burgundy: #d0444c;           /* warm red — scam-alert danger accent */
  --rule-strong: #262626;
  --rule-soft: #d6d6d6;

  /* ---------- Color: semantic ---------- */
  --success: #4ba47b;
  --success-light: #e6f1eb;
  --success-dark: #2f6b51;
  --danger: #d0444c;
  --danger-light: #fae6e7;
  --danger-dark: #8f2f35;
  --warning: #ffb143;
  --warning-light: #fff1dc;
  --warning-dark: #8c5a14;
  --info: #ff6e42;                   /* alias to brand orange; legacy references */
  --info-light: #ffe7dc;
  --info-dark: #b94521;

  /* ---------- Typography ---------- */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  /* font-serif is referenced by legacy code; repointed to Instrument Sans so
     the redesign reads consistently rather than dropping back to Times. */
  --font-serif: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 500;              /* design only ships Medium-500; 600 alias */
  --font-bold: 500;                  /* same — Instrument Sans only ships 500 */

  /* Body sizes (Inter, slight negative tracking handled at element level) */
  --text-xs: 0.75rem;       /* 12 */
  --text-sm: 0.875rem;      /* 14 */
  --text-base: 1rem;        /* 16 — body matches brief text-main */
  --text-md: 1.125rem;      /* 18 — text-large */
  --text-lg: 1.25rem;       /* 20 */
  --text-xl: 1.5rem;        /* 24 — h5 */
  --text-2xl: 2rem;         /* 32 — h4 */
  --text-3xl: 3rem;         /* 48 — h3 cap */
  --text-4xl: 4rem;         /* 64 — h2 cap */
  --text-display: 5rem;     /* 80 — h1 cap */
  --text-display-xl: 7rem;  /* 112 — display token */

  --leading-tight: 1.0;
  --leading-snug: 1.2;
  --leading-normal: 1.4;
  --leading-relaxed: 1.55;

  /* ---------- Spacing (fluid clamp scale per brief) ---------- */
  --space-1: clamp(0.375rem, 0.32rem + 0.15vw, 0.5rem);     /* 6 → 8 */
  --space-2: clamp(0.625rem, 0.55rem + 0.2vw, 0.75rem);     /* 10 → 12 */
  --space-3: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);        /* 14 → 16 */
  --space-4: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);        /* 20 → 24 */
  --space-5: clamp(1.75rem, 1.55rem + 0.5vw, 2rem);         /* 28 → 32 */
  --space-6: clamp(2rem, 1.75rem + 0.7vw, 2.5rem);          /* 32 → 40 */
  --space-7: clamp(2.25rem, 1.95rem + 0.9vw, 3rem);         /* 36 → 48 */
  --space-8: clamp(2.5rem, 2.1rem + 1.2vw, 4rem);           /* 40 → 64 */
  --space-10: clamp(3rem, 2.5rem + 1.6vw, 5rem);            /* 48 → 80 */
  --space-12: clamp(4rem, 3.25rem + 2vw, 6rem);             /* 64 → 96 */
  --space-14: clamp(5rem, 4rem + 2.4vw, 7rem);              /* 80 → 112 */
  --space-16: clamp(4rem, 3rem + 3vw, 7.5rem);              /* 64 → 120 — section-space main */
  --space-20: clamp(5rem, 3.5rem + 4vw, 9rem);              /* 80 → 144 — section spacious */
  --space-24: clamp(6rem, 4rem + 5vw, 11rem);               /* 96 → 176 */

  /* ---------- Radius ---------- */
  --radius-sm: 0.5rem;               /* 8px — small chips, badges */
  --radius-md: 0.75rem;              /* 12px */
  --radius-lg: 1rem;                 /* 16px — DEFAULT card radius */
  --radius-xl: 1.5rem;               /* 24px */
  --radius-full: 100vw;              /* fully pill */

  /* ---------- Shadows (sparse, borders preferred) ---------- */
  --shadow-xs: 0 1px 2px 0 rgba(38, 38, 38, 0.04);
  --shadow-sm: 0 1px 32px rgba(38, 38, 38, 0.06);
  --shadow-md: 0 12px 48px rgba(38, 38, 38, 0.08);
  --shadow-lg: 0 18px 48px rgba(38, 38, 38, 0.10);
  --shadow-xl: 0 24px 64px rgba(38, 38, 38, 0.14);
  --shadow-2xl: 0 30px 80px rgba(38, 38, 38, 0.18);

  /* ---------- Transitions ---------- */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 380ms cubic-bezier(0.2, 0, 0, 1);

  /* ---------- Z-index ---------- */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(var(--text-base), 0.94rem + 0.2vw, var(--text-md));
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  letter-spacing: -0.02em;
  color: rgba(38, 38, 38, 0.82);
  background-color: var(--oath-paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: "kern", "liga";
}

main { flex: 1 0 auto; }

/* ----- Headings: Instrument Sans 500, tight tracking, balance wrap ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--oath-charcoal);
  font-weight: var(--font-medium);
  line-height: var(--leading-snug);
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-4) 0;
  text-wrap: balance;
  font-feature-settings: "kern", "liga";
}
h1 {
  font-size: clamp(var(--text-3xl), 2.25rem + 3.2vw, var(--text-display));
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, var(--text-4xl));
  line-height: 1.1;
  letter-spacing: -0.04em;
}
h3 {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, var(--text-3xl));
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h4 {
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, var(--text-2xl));
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h5 {
  font-size: clamp(1.375rem, 1.25rem + 0.4vw, var(--text-xl));
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h6 {
  font-family: var(--font-mono);
  font-size: 0.75rem;             /* 12px overline */
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-gray-700);
  line-height: 1.2;
}

p { margin: 0 0 var(--space-4) 0; }

a {
  color: var(--oath-charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--oath-gray-300);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
a:hover { color: var(--ink-navy); border-bottom-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--ink-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Headings holding links shouldn't show the underline by default */
h1 a, h2 a, h3 a, h4 a, .oath-wordmark, .navbar-brand a { border-bottom: none; }

hr { border: 0; border-top: 1px solid var(--oath-gray-300); margin: var(--space-8) 0; }

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

::selection { background-color: var(--ink-navy-tint); color: var(--oath-charcoal); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  background: var(--oath-charcoal);
  color: var(--oath-white);
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-tooltip);
  border-radius: 0 0 var(--radius-md) 0;
  border-bottom: none;
}
.skip-link:focus {
  position: fixed;
  left: 0; top: 0;
  width: auto; height: auto;
  outline: 2px solid var(--ink-navy);
  outline-offset: -4px;
}

/* ==========================================================================
   Wordmark
   ========================================================================== */

.oath-wordmark {
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  font-style: normal;
  color: var(--oath-charcoal);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  border-bottom: none;
  font-feature-settings: "kern", "liga";
}
.oath-wordmark:hover { color: var(--oath-charcoal); border-bottom: none; }
.oath-wordmark .dot {
  color: var(--ink-navy);
  font-weight: var(--font-medium);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.oath-navbar {
  background-color: rgba(252, 250, 249, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--oath-gray-300);
  padding: var(--space-3) var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.oath-navbar .navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 64px;
}
.oath-navbar .navbar-brand .oath-wordmark { font-size: var(--text-xl); }
.oath-navbar nav.primary {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  flex: 1;
  justify-content: center;
}
.oath-navbar nav.primary a {
  color: var(--oath-gray-700);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border-bottom: none;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.oath-navbar nav.primary a:hover {
  color: var(--oath-charcoal);
  background-color: var(--oath-paper-deep);
}
.oath-navbar nav.primary a.active {
  color: var(--oath-charcoal);
  background-color: transparent;
  position: relative;
}
.oath-navbar nav.primary a.active::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background: var(--ink-navy);
  border-radius: 1px;
}
.oath-navbar .navbar-meta a {
  color: var(--oath-gray-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border-bottom: none;
}
.oath-navbar .navbar-meta a:hover { color: var(--ink-navy); }
.oath-navbar .navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-full);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--oath-charcoal);
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   Buttons — fully pill, solid black primary, white-bordered secondary
   ========================================================================== */

.btn {
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  padding: 1.5rem 2rem;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-fast);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink-navy-tint);
}

.btn-primary {
  background-color: var(--oath-black);
  border-color: var(--oath-black);
  color: var(--oath-white);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--oath-charcoal);
  border-color: var(--oath-charcoal);
  color: var(--oath-white);
}
.btn-primary:active { background-color: var(--oath-black); }
.btn-primary:disabled {
  background-color: var(--oath-gray-400);
  border-color: var(--oath-gray-400);
  color: var(--oath-white);
}

.btn-secondary {
  background-color: var(--oath-white);
  border-color: var(--oath-gray-300);
  color: var(--oath-black);
}
.btn-secondary:hover {
  background-color: var(--oath-paper);
  border-color: var(--oath-charcoal);
  color: var(--oath-gray-700);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--oath-charcoal);
}
.btn-ghost:hover { background-color: var(--oath-paper-deep); color: var(--oath-charcoal); }

.btn-lg {
  padding: 1.75rem 2.25rem;
  font-size: var(--text-md);
  min-height: 56px;
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  min-height: 36px;
}

/* Inline arrow on action buttons */
.btn .btn-arrow,
.btn .bi-arrow-right { transition: transform var(--transition-fast); }
.btn:hover .btn-arrow,
.btn:hover .bi-arrow-right { transform: translateX(3px); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}
.card:hover { border-color: var(--oath-charcoal); box-shadow: var(--shadow-sm); }
.card-header {
  background-color: var(--oath-paper-deep);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--oath-gray-300);
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  letter-spacing: -0.02em;
  color: var(--oath-charcoal);
}
.card-body { padding: var(--space-6); }
.card-footer {
  padding: var(--space-4) var(--space-6);
  background-color: var(--oath-paper-deep);
  border-top: 1px solid var(--oath-gray-300);
  color: var(--oath-gray-700);
  font-size: var(--text-sm);
}

/* ============================================================
   Stat card — large numerals, hairline border, no top accent rule
   ============================================================ */
.stat-card {
  position: relative;
  background: var(--oath-paper-deep);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
}
.stat-card:hover { border-color: var(--oath-charcoal); }
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-gray-700);
  display: block;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.8vw, 4.5rem);
  font-weight: var(--font-medium);
  color: var(--oath-charcoal);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-top: auto;
  font-variant-numeric: lining-nums tabular-nums;
  display: block;
}
.stat-card .stat-meta {
  font-size: var(--text-sm);
  color: var(--oath-gray-700);
  margin-top: 0;
  line-height: 1.4;
  display: block;
}
.stat-card .stat-value .of {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  color: var(--oath-gray-500);
  margin-left: var(--space-2);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table {
  background-color: var(--oath-white);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.table thead th {
  background-color: var(--oath-paper-deep);
  color: var(--oath-gray-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  border-bottom: 1px solid var(--oath-gray-300);
  padding: var(--space-4);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.table tbody td {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--oath-gray-200);
  vertical-align: middle;
  color: rgba(38, 38, 38, 0.82);
  font-size: var(--text-sm);
}
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr { transition: background-color var(--transition-fast); }
.table-hover tbody tr:hover { background-color: var(--oath-paper); }
.table .vendor-name {
  color: var(--oath-charcoal);
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  border-bottom-color: transparent;
}
.table .vendor-name:hover { color: var(--ink-navy); border-bottom-color: var(--ink-navy); }
.table a { color: var(--oath-charcoal); border-bottom-color: var(--oath-gray-300); }
.table a:hover { color: var(--ink-navy); border-bottom-color: var(--ink-navy); }

.table-wrapper {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-gray-700);
  margin-bottom: var(--space-2);
  display: block;
}
.form-control,
.form-select {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--oath-charcoal);
  letter-spacing: -0.02em;
  min-height: 44px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ink-navy);
  outline: none;
  box-shadow: 0 0 0 2px var(--ink-navy-tint);
}
.form-control::placeholder { color: var(--oath-gray-500); }
.form-text { font-size: var(--text-xs); color: var(--oath-gray-700); margin-top: var(--space-1); }

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  line-height: 1;
  background-color: var(--oath-gray-100);
  color: var(--oath-gray-800);
}
.badge-success { background-color: var(--success-light); color: var(--success-dark); }
.badge-danger  { background-color: var(--danger-light);  color: var(--danger-dark); }
.badge-warning { background-color: var(--warning-light); color: var(--warning-dark); }
.badge-info    { background-color: var(--info-light);    color: var(--info-dark); }
.badge-neutral { background-color: var(--oath-gray-100); color: var(--oath-gray-800); }

/* Score badges — letter grades. Block labels, not pills. 16px radius. */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  letter-spacing: -0.04em;
  border-radius: var(--radius-lg);
  padding: 0.375rem 0.75rem;
  font-size: var(--text-md);
  min-width: 2.5rem;
  text-align: center;
  line-height: 1;
  border: 1px solid transparent;
  font-feature-settings: "kern";
}
.score-badge.score-lg {
  font-size: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);
  font-weight: var(--font-medium);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  min-width: 5.5rem;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.score-A {
  background: var(--success-light);
  color: var(--success-dark);
  border-color: var(--success);
}
.score-B {
  background: var(--oath-paper-deep);
  color: var(--oath-charcoal);
  border-color: var(--oath-charcoal);
}
.score-C {
  background: var(--warning-light);
  color: var(--warning-dark);
  border-color: var(--warning);
}
.score-D {
  background: var(--danger-light);
  color: var(--danger-dark);
  border-color: var(--danger);
}
.score-F {
  background: var(--oath-black);
  color: var(--oath-white);
  border-color: var(--oath-black);
}

/* Verifiability flag (lab portals etc.) */
.flag-verifiable {
  color: var(--success-dark);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.flag-unverifiable {
  color: var(--danger-dark);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.flag-icon { display: inline-block; width: 1em; }

/* ============================================================
   Recommendation descriptor — small Fira Code uppercase line
   that complements a letter-grade badge. Used in the vendor
   page big card, the homepage table, the methodology rubric.
   Color follows the letter grade so the signal is consistent.
   ============================================================ */
.score-recommendation {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-gray-700);
  line-height: 1.3;
  display: inline-block;
}
.score-recommendation.rec-A { color: var(--success-dark); }
.score-recommendation.rec-B { color: var(--oath-charcoal); }
.score-recommendation.rec-C { color: var(--warning-dark); }
.score-recommendation.rec-D { color: var(--danger-dark); }
.score-recommendation.rec-F { color: var(--ink-burgundy); }

/* Big card variant — sits under the score-lg badge */
.score-block .score-recommendation {
  font-size: 0.6875rem;
  text-align: center;
  max-width: 9rem;
  text-wrap: balance;
}

/* Homepage table — sits under the small score badge */
#vendor-table tbody .score-recommendation {
  display: block;
  margin-top: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}

/* Methodology rubric — sits inline beside the badge */
.rubric-grid .score-recommendation {
  display: block;
  margin-top: var(--space-2);
  text-align: center;
}

/* ============================================================
   Days-since-COA cell (homepage table)
   ============================================================ */
#vendor-table tbody td.col-days-since {
  font-family: var(--font-mono);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: var(--text-sm);
  color: var(--oath-charcoal);
  white-space: nowrap;
}
#vendor-table tbody td.col-days-since .days-since-value {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--font-medium);
  letter-spacing: -0.02em;
  color: var(--oath-charcoal);
}
#vendor-table tbody td.col-days-since .days-since-unit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--oath-gray-700);
  margin-left: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#vendor-table tbody td.col-days-since .days-since-empty {
  color: var(--oath-gray-500);
  font-family: var(--font-primary);
}
/* Recent COAs (≤ 30 days) get a subtle success tint */
#vendor-table tbody td.col-days-since[data-bucket="fresh"] .days-since-value { color: var(--success-dark); }
#vendor-table tbody td.col-days-since[data-bucket="stale"] .days-since-value { color: var(--danger-dark); }

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-content {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--oath-gray-300);
  background-color: var(--oath-paper-deep);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  letter-spacing: -0.04em;
  color: var(--oath-charcoal);
}
.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--oath-gray-300);
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-left: 4px solid var(--ink-navy);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  color: var(--oath-charcoal);
}
.toast-success { border-left-color: var(--success); }
.toast-danger  { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }

/* ==========================================================================
   Sections
   ========================================================================== */

.page-section { padding: var(--space-16) var(--space-4); }
.page-section.compact { padding: var(--space-10) var(--space-4); }
.page-section.spacious { padding: var(--space-20) var(--space-4); }
.section-inner { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 1rem + 2vw, 5rem); }
.section-narrow { max-width: 53rem; margin: 0 auto; padding: 0 clamp(1.25rem, 1rem + 2vw, 5rem); }
.section-wide   { max-width: 90rem; margin: 0 auto; padding: 0 clamp(1.25rem, 1rem + 2vw, 5rem); }

/* Eyebrow — Fira Code overline with optional dot ornament */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-gray-700);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.eyebrow-rule .rule {
  flex: 0 0 36px;
  height: 1px;
  background: var(--ink-navy);
}
.eyebrow-rule .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--oath-charcoal);
}

.section-divider {
  height: 1px;
  background: var(--oath-gray-300);
  margin: 0 auto;
  max-width: 1440px;
}

/* Eyebrow + heading helpers */
.section-head {
  margin-bottom: var(--space-10);
  max-width: 53rem;
}
.section-head h2 {
  margin: 0 0 var(--space-3);
}
.section-head .deck {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  color: rgba(38, 38, 38, 0.82);
  line-height: var(--leading-normal);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 60ch;
}

/* Deck used elsewhere — same treatment */
.deck {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  color: rgba(38, 38, 38, 0.82);
  line-height: var(--leading-normal);
  letter-spacing: -0.02em;
}

/* Drop-cap helper — neutralized. Keep the class hook live but drop the
   ornament. Just gives the first letter a hair more weight. */
.dropcap::first-letter {
  font-family: inherit;
  font-weight: var(--font-medium);
  font-size: 1.15em;
  color: var(--oath-charcoal);
  padding: 0;
}

/* ==========================================================================
   Footer — dark charcoal, cream type
   ========================================================================== */

.oath-footer {
  background-color: var(--oath-charcoal);
  color: var(--oath-paper-deep);
  border-top: 1px solid var(--oath-gray-800);
  padding: var(--space-16) var(--space-6) var(--space-6);
  margin-top: var(--space-16);
  font-size: var(--text-sm);
}
.oath-footer .oath-wordmark { color: var(--oath-white); }
.oath-footer .oath-wordmark:hover { color: var(--oath-white); }
.oath-footer .oath-wordmark .dot { color: var(--ink-navy); }
.oath-footer .footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.oath-footer h6 {
  color: var(--oath-white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  margin-bottom: var(--space-4);
}
.oath-footer p { color: var(--oath-gray-400); }
.oath-footer ul { list-style: none; padding: 0; margin: 0; }
.oath-footer li { margin-bottom: var(--space-2); }
.oath-footer a {
  color: var(--oath-paper-deep);
  border-bottom: none;
  font-size: var(--text-sm);
}
.oath-footer a:hover { color: var(--ink-navy); }
.oath-footer .footer-bottom {
  max-width: 1440px;
  margin: var(--space-12) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: var(--text-xs);
  color: var(--oath-gray-500);
  text-align: center;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* font-serif is repointed to the display sans for the redesign */
.font-serif { font-family: var(--font-display); letter-spacing: -0.04em; }
.font-mono  { font-family: var(--font-mono); }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-family: var(--font-mono);
}
.text-muted-color { color: var(--oath-gray-700); }
.text-strong { color: var(--oath-charcoal); }

.text-success { color: var(--success-dark); }
.text-danger  { color: var(--danger-dark); }
.text-warning { color: var(--warning-dark); }
.text-info    { color: var(--info-dark); }
.text-ink     { color: var(--ink-navy); }

.bg-success-light { background-color: var(--success-light); }
.bg-danger-light  { background-color: var(--danger-light); }
.bg-warning-light { background-color: var(--warning-light); }
.bg-info-light    { background-color: var(--info-light); }
.bg-paper         { background-color: var(--oath-paper); }
.bg-paper-deep    { background-color: var(--oath-paper-deep); }
.bg-gray-50  { background-color: var(--oath-gray-50); }
.bg-gray-100 { background-color: var(--oath-gray-100); }
.bg-white    { background-color: var(--oath-white); }

.surface-card {
  background-color: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-6);
}

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.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;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpSm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes drawIn { from { width: 0; } to { width: var(--bar-width, 0); } }

.anim-fade-in { animation: fadeIn 600ms ease-out both; }
.anim-slide-up { animation: slideUp 480ms cubic-bezier(0.2, 0, 0, 1) both; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .oath-footer .footer-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (max-width: 640px) {
  .oath-footer { padding: var(--space-12) var(--space-4) var(--space-5); }
  .oath-footer .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .oath-footer .footer-bottom { margin: var(--space-8) auto 0; }
}

@media (max-width: 768px) {
  .page-section { padding: var(--space-12) var(--space-4); }
  .page-section.spacious { padding: var(--space-16) var(--space-4); }

  .oath-navbar nav.primary { display: none; }
  .oath-navbar.open nav.primary {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--oath-paper);
    border-bottom: 1px solid var(--oath-gray-300);
    padding: var(--space-3) var(--space-4);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
  }
  .oath-navbar.open nav.primary a {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .oath-navbar .navbar-toggle { display: inline-flex; }
  .oath-navbar .navbar-meta { display: none; }

  .btn { width: 100%; justify-content: center; padding: 1.25rem 1.75rem; }
  .btn.btn-inline { width: auto; }
}

@media (max-width: 640px) {
  body { font-size: var(--text-base); }
}

/* Tables collapse to card layout via data-label attribute on td.
   Applied through tablet so the wide audit table never crams; full
   table layout only kicks in on desktop. */
@media (max-width: 1023px) {
  .table-stack { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tbody { display: block; width: 100%; }
  .table-stack tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background: var(--oath-white);
    border: 1px solid var(--oath-gray-300);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    padding: var(--space-4);
  }
  .table-stack td {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--oath-gray-200);
    padding: var(--space-2) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
  }
  .table-stack td:last-child { border-bottom: none; }
  .table-stack td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: var(--font-normal);
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--oath-gray-700);
  }
}

/* ============================================================
   Leader callout — top-of-page editorial banner
   White card, hairline border, orange 4px left rule.
   ============================================================ */

.leader-callout {
  max-width: 66.5rem;
  margin: var(--space-12) auto;
  padding: var(--space-10) var(--space-10);
  background: var(--oath-white);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.leader-callout::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--ink-navy);
}
.leader-callout .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--ink-navy);
  margin: 0 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.leader-callout .eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--ink-navy);
  box-shadow: 0 0 0 2px var(--ink-navy-tint);
}
.leader-callout h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, var(--text-3xl));
  font-weight: var(--font-medium);
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-3);
  color: var(--oath-charcoal);
  line-height: 1.05;
}
.leader-callout h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.leader-callout h2 a:hover {
  color: var(--ink-navy);
  border-bottom-color: var(--ink-navy);
}
.leader-callout .formerly {
  display: inline-block;
  margin-left: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  font-style: normal;
  color: var(--oath-gray-700);
  letter-spacing: -0.02em;
}
.leader-callout .formerly strong {
  color: var(--oath-charcoal);
  font-weight: var(--font-medium);
}
.leader-callout .leader-stats {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: rgba(38, 38, 38, 0.82);
  margin: 0 0 var(--space-5);
  font-weight: var(--font-normal);
  letter-spacing: -0.02em;
  max-width: 60ch;
}
.leader-callout .leader-stats strong {
  color: var(--oath-charcoal);
  font-weight: var(--font-medium);
}
.leader-callout .leader-bottomline {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-md);
  color: var(--oath-charcoal);
  border-left: 3px solid var(--ink-navy);
  padding-left: var(--space-5);
  margin: var(--space-5) 0 var(--space-6);
  max-width: 60ch;
  font-weight: var(--font-medium);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.leader-callout .leader-bottomline em { font-style: normal; }
.leader-callout .btn { margin-top: 0; }

/* ============================================================
   Vendor aliases / formerly known as
   ============================================================ */
.vendor-aliases {
  margin: var(--space-3) 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--ink-navy-tint);
  border-left: 3px solid var(--ink-navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--info-dark);
  line-height: var(--leading-normal);
  letter-spacing: -0.02em;
}
.vendor-aliases strong { color: var(--info-dark); }
.vendor-aliases .formerly {
  display: inline;
  font-weight: var(--font-medium);
  color: var(--oath-charcoal);
}

/* ============================================================
   Editorial section ("the take") — vendor profiles
   Soft cream card, hairline border, orange 3px left bar on pull-quote.
   ============================================================ */
.editorial-section {
  background: var(--oath-paper-deep);
  border: 1px solid var(--oath-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  margin: var(--space-10) 0;
  position: relative;
}
.editorial-section h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-navy);
  margin: 0 0 var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.2;
}
.editorial-section h2::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--ink-navy);
  box-shadow: 0 0 0 2px var(--ink-navy-tint);
}
.editorial-section .editorial-bottomline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  color: var(--oath-charcoal);
  font-weight: var(--font-medium);
  font-style: normal;
  margin: 0 0 var(--space-6);
  letter-spacing: -0.04em;
  border-left: 3px solid var(--ink-navy);
  padding-left: var(--space-5);
}
.editorial-section .editorial-bottomline em { font-style: normal; }
.editorial-section .editorial-take p {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: rgba(38, 38, 38, 0.82);
  margin: 0 0 var(--space-4);
  font-weight: var(--font-normal);
  letter-spacing: -0.02em;
}
/* Drop-cap inside editorial — neutralized to match brief (no ornament) */
.editorial-section .editorial-take p::first-letter {
  font-family: inherit;
  font-weight: inherit;
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}
.editorial-section .editorial-points {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 var(--space-3);
  display: grid;
  gap: var(--space-3);
}
.editorial-section .editorial-points li {
  background: var(--oath-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--oath-gray-300);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: rgba(38, 38, 38, 0.82);
  letter-spacing: -0.02em;
}
.editorial-section .editorial-points strong {
  color: var(--oath-charcoal);
  margin-right: var(--space-2);
  font-family: var(--font-mono);
  font-weight: var(--font-normal);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
}
.editorial-section .key-evidence-link {
  font-size: var(--text-sm);
  margin: var(--space-5) 0 0;
  color: var(--oath-gray-700);
  padding-top: var(--space-4);
  border-top: 1px solid var(--oath-gray-300);
}
.editorial-section .key-evidence-link strong {
  color: var(--oath-charcoal);
  font-family: var(--font-mono);
  font-weight: var(--font-normal);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  margin-right: var(--space-2);
}
.editorial-section .key-evidence-link a {
  word-break: break-all;
  color: var(--ink-navy);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border-bottom-color: var(--ink-navy-soft);
}

/* Mobile leader callout & editorial */
@media (max-width: 768px) {
  .leader-callout { padding: var(--space-6); margin: var(--space-6) var(--space-4); }
  .leader-callout h2 { font-size: var(--text-2xl); }
  .leader-callout .leader-stats { font-size: var(--text-base); }
  .leader-callout .leader-bottomline { font-size: var(--text-base); padding-left: var(--space-4); }
  .editorial-section { padding: var(--space-6); }
  .editorial-section .editorial-bottomline { font-size: var(--text-lg); padding-left: var(--space-4); }
  .editorial-section .editorial-take p { font-size: var(--text-base); }
}

/* ============================================================
   Scam alert — homepage call-out for peptidescore.com
   Dark charcoal section with warm-red accent rule.
   ============================================================ */
.scam-alert-band {
  background: var(--oath-charcoal);
  color: var(--oath-paper-deep);
  padding: var(--space-20) var(--space-4);
  margin-top: var(--space-16);
  position: relative;
  overflow: hidden;
}
.scam-alert-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ink-burgundy);
}
.scam-alert {
  max-width: 66.5rem;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.scam-alert .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--ink-burgundy);
  margin: 0 0 var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.2;
}
.scam-alert .eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--ink-burgundy);
  box-shadow: 0 0 0 2px rgba(208, 68, 76, 0.25);
}
.scam-alert .eyebrow .bi { font-size: var(--text-base); }
.scam-alert h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, var(--text-4xl));
  font-weight: var(--font-medium);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--oath-white);
  margin: 0 0 var(--space-6);
  max-width: 28ch;
}
.scam-alert h2 strong {
  color: var(--oath-white);
  font-weight: var(--font-medium);
  border-bottom: 2px solid var(--ink-burgundy);
  padding-bottom: 1px;
}
.scam-alert .lead {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: rgba(252, 250, 249, 0.78);
  margin: 0 0 var(--space-10);
  max-width: 68ch;
  letter-spacing: -0.02em;
}
.scam-alert .lead strong {
  color: var(--oath-white);
  font-weight: var(--font-medium);
}
.scam-alert .scam-evidence {
  list-style: none;
  counter-reset: scam-list;
  padding: 0;
  margin: var(--space-8) 0 var(--space-10);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
.scam-alert .scam-evidence li {
  counter-increment: scam-list;
  position: relative;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: rgba(252, 250, 249, 0.78);
  letter-spacing: -0.02em;
}
.scam-alert .scam-evidence li::before {
  content: counter(scam-list, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--font-normal);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--ink-burgundy);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.scam-alert .scam-evidence li strong:first-child {
  display: block;
  color: var(--oath-white);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.scam-alert .scam-evidence em { font-style: normal; color: rgba(252, 250, 249, 0.92); }
.scam-alert .scam-evidence code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  color: var(--oath-white);
  font-family: var(--font-mono);
}
.scam-alert .scam-evidence a {
  color: var(--oath-white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}
.scam-alert .scam-evidence a:hover {
  color: var(--ink-burgundy);
  border-bottom-color: var(--ink-burgundy);
}
.scam-alert .scam-conclusion {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--ink-burgundy);
  padding: var(--space-6) var(--space-7);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--font-medium);
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 1.25;
  color: var(--oath-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 68ch;
}

.scam-alert-band .btn-secondary {
  background-color: transparent;
  color: var(--oath-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.scam-alert-band .btn-secondary:hover {
  background-color: var(--oath-white);
  color: var(--oath-charcoal);
  border-color: var(--oath-white);
}
.scam-alert-band .btn-primary {
  background-color: var(--oath-white);
  border-color: var(--oath-white);
  color: var(--oath-charcoal);
}
.scam-alert-band .btn-primary:hover {
  background-color: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--oath-white);
}

@media (max-width: 900px) {
  .scam-alert .scam-evidence { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .scam-alert-band { padding: var(--space-12) 0; }
  .scam-alert h2 { font-size: var(--text-2xl); }
  .scam-alert .scam-evidence li { padding: var(--space-5); }
}
