/* ============================================================================
   AFS BRANDS — FORTUNE 100 DESIGN SYSTEM TOKENS & P0/P1/P2 UNIFIED LAYER
   Implements: AFS-001, AFS-003, AFS-004, AFS-006, AFS-007, AFS-009, AFS-011, AFS-012
   8-pt spatial cadence | WCAG 2.2 AA contrast | 44x44px mobile touch targets
   ============================================================================ */

:root {
  color-scheme: light;

  /* 1. Brand & Neutral Surfaces (Light Editorial Default) */
  --afs-bg-canvas: #fafafa;
  --afs-bg-surface: #ffffff;
  --afs-bg-subtle: #f4f2eb;
  --afs-bg-muted: #f2f2ee;
  --afs-bg-dark: #181917;

  /* 2. Borders & Dividers */
  --afs-border-subtle: #e5e3db;
  --afs-border-default: #d4d2c9;
  --afs-border-strong: #6e726b;

  /* 3. Typography & Ink (All body pairs >= 4.5:1 WCAG 2.2 AA) */
  --afs-ink-primary: #181917;
  --afs-ink-secondary: #4a4e49;
  --afs-ink-muted: #5c615a;
  --afs-ink-inverse: #f5f5f2;
  --afs-ink-inverse-muted: #c6cac2;

  /* 4. Signature AFS Brand Accents (Purged legacy crimson #C91527 / #a11220) */
  --afs-terracotta: #a65339;         /* 5.01:1 with #ffffff */
  --afs-terracotta-hover: #8c422b;   /* 6.72:1 with #ffffff */
  --afs-terracotta-soft: #faf1ee;
  --afs-olive: #4f583c;              /* 7.4:1 on #ffffff */
  --afs-olive-brand: #626a4b;        /* 5.6:1 with #ffffff */
  --afs-olive-light: #aec18b;        /* 9.8:1 on #181917 */
  --afs-olive-soft: #eef1e8;
  --afs-gold: #9a711f;               /* 4.6:1 on #ffffff */
  --afs-gold-brand: #c49538;

  /* 5. Semantic Status Pairs (ALWAYS pair with text + icon) */
  --afs-status-success-fg: #1d5e3a;  --afs-status-success-bg: #eaf6ef;  --afs-status-success-bd: #9fd3b5;
  --afs-status-warning-fg: #7a4d00;  --afs-status-warning-bg: #fef6e4;  --afs-status-warning-bd: #e7c275;
  --afs-status-danger-fg:  #9e1c24;  --afs-status-danger-bg:  #fdeeee;  --afs-status-danger-bd:  #e8a8ac;
  --afs-status-info-fg:    #2c4969;  --afs-status-info-bg:    #edf3f9;  --afs-status-info-bd:    #aec6de;

  /* 6. Dual-Ring Interactive Focus (>= 10:1 on ANY light or dark surface) */
  --afs-focus-ring: 0 0 0 2px #ffffff, 0 0 0 5px #181917;
  --afs-focus-ring-dark: 0 0 0 2px #181917, 0 0 0 5px #aec18b;

  /* 7. Typography Scale */
  --afs-font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --afs-font-display: 'AFS Heading', 'DM Sans', system-ui, sans-serif;
  --afs-text-xs: 0.75rem;
  --afs-text-sm: 0.875rem;
  --afs-text-base: 1rem;
  --afs-text-lg: 1.125rem;
  --afs-measure: 64ch;

  /* 8. 8-pt Spacing Scale & Layout Rails */
  --afs-space-1: 4px;
  --afs-space-2: 8px;
  --afs-space-3: 12px;
  --afs-space-4: 16px;
  --afs-space-5: 24px;
  --afs-space-6: 32px;
  --afs-space-7: 48px;
  --afs-space-8: 64px;
  --afs-container-max: 1280px;
  --afs-touch-min: 44px;

  /* 9. 3-Step Radii & Elevation */
  --afs-radius-sm: 4px;
  --afs-radius-md: 8px;
  --afs-radius-pill: 999px;
  --afs-shadow-sm: 0 1px 2px rgba(24, 25, 23, 0.06);
  --afs-shadow-md: 0 6px 20px rgba(24, 25, 23, 0.10);

  /* Align legacy site variables cleanly */
  --afs-button-radius: 8px;
  --afs-red: #a65339;
}

/* ============================================================================
   1. WCAG 2.2 AA — ACCESSIBLE SKIP LINK & DUAL-RING FOCUS-VISIBLE (AFS-003)
   ============================================================================ */
a.skip-link {
  position: fixed !important;
  top: -120px;
  left: 16px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--afs-bg-dark);
  color: #ffffff !important;
  font: 700 15px/1.2 var(--afs-font-sans);
  text-decoration: none !important;
  border: 2px solid var(--afs-olive-light);
  border-radius: var(--afs-radius-md);
  box-shadow: var(--afs-shadow-md);
  transition: top 0.12s ease;
}
a.skip-link:focus,
a.skip-link:focus-visible {
  top: 12px !important;
  outline: none !important;
  box-shadow: var(--afs-focus-ring-dark) !important;
}

main[tabindex="-1"]:focus {
  outline: none;
}

/* Unify :focus-visible across light & dark surfaces, purging #C91527 / #a11220 */
:is(a[href], button, input, select, summary, textarea, [tabindex]):focus-visible {
  outline: none !important;
  box-shadow: var(--afs-focus-ring) !important;
}

:is(
  footer.full-footer.afs-site-footer,
  .afs-trust-v2-bar,
  .afs-enquiry-trust-strip,
  .hero.partner-banner
) :is(a[href], button, input, select, summary, textarea):focus-visible {
  outline: none !important;
  box-shadow: var(--afs-focus-ring-dark) !important;
}

/* ============================================================================
   2. UNIFIED STICKY HEADER, GLOBAL SEARCH & ACTIVE NAV (AFS-003, AFS-009)
   ============================================================================ */
header#afs-utility-top {
  position: sticky !important;
  top: 0;
  z-index: 900;
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  padding-block: 12px !important;
  background: rgba(250, 250, 250, 0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--afs-border-subtle);
}

header#afs-utility-top nav a[aria-current="page"] {
  color: var(--afs-terracotta) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 6px !important;
}

.afs-header-utilities {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.afs-global-search-form {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.afs-global-search-form input[type="search"] {
  box-sizing: border-box;
  width: 170px;
  min-height: 40px;
  padding: 6px 34px 6px 12px;
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-pill);
  background: var(--afs-bg-surface);
  color: var(--afs-ink-primary);
  font: 500 14px/1.2 var(--afs-font-sans);
  transition: width 0.18s ease, border-color 0.15s ease;
}

.afs-global-search-form input[type="search"]:focus {
  width: 220px;
  border-color: var(--afs-ink-primary);
}

.afs-global-search-form button[type="submit"] {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--afs-radius-pill);
  background: transparent;
  color: var(--afs-ink-secondary);
  cursor: pointer;
}

.afs-header-quote-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px !important;
  border-radius: var(--afs-radius-md) !important;
  background: var(--afs-terracotta) !important;
  border: 1px solid var(--afs-terracotta) !important;
  color: #ffffff !important;
  font: 700 13.5px/1.1 var(--afs-font-sans) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.afs-header-quote-btn:hover {
  background: var(--afs-terracotta-hover) !important;
  border-color: var(--afs-terracotta-hover) !important;
}

.afs-header-shortlist-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px !important;
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-pill);
  background: var(--afs-bg-surface);
  color: var(--afs-ink-primary) !important;
  font: 600 13.5px/1.1 var(--afs-font-sans) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.afs-header-shortlist-pill #shortlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--afs-radius-pill);
  background: var(--afs-olive-brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .afs-global-search-form input[type="search"] {
    width: 136px;
  }
}

@media (max-width: 960px) {
  .afs-global-search-form {
    display: none;
  }
}

@media (max-width: 760px) {
  header#afs-utility-top {
    min-height: 64px;
    padding-block: 8px !important;
  }
  .afs-header-quote-btn {
    min-height: 44px;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .afs-header-shortlist-pill {
    min-height: 44px;
  }
}

/* ============================================================================
   3. VISIBLE BREADCRUMB RAIL (AFS-009)
   ============================================================================ */
nav.afs-breadcrumb {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--afs-container-max);
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 0;
  font: 500 14px/1.3 var(--afs-font-sans);
  color: var(--afs-ink-muted);
}

nav.afs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.afs-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

nav.afs-breadcrumb li + li::before {
  content: "/";
  color: var(--afs-border-strong);
  aria-hidden: true;
}

nav.afs-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--afs-ink-secondary);
  text-decoration: none;
  font-weight: 600;
}

nav.afs-breadcrumb a:hover {
  color: var(--afs-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

nav.afs-breadcrumb [aria-current="page"] {
  color: var(--afs-ink-primary);
  font-weight: 700;
}

/* ============================================================================
   4. FULL-BLEED DARK FOOTER & HOMEPAGE HERO LOCKUP (AFS-001, AFS-004)
   ============================================================================ */
footer.full-footer.afs-site-footer {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  border-radius: 0 !important;
  background: var(--afs-bg-dark) !important;
}

footer.full-footer.afs-site-footer > .afs-footer-inner {
  max-width: var(--afs-container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Homepage 2-CTA single-row hero lockup */
.afs-handoff-home .hero .actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 12px !important;
}

.afs-handoff-home .hero .actions .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px !important;
  padding: 12px 20px !important;
  border-radius: var(--afs-radius-md) !important;
  font: 700 15px/1.15 var(--afs-font-sans) !important;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none !important;
}

.afs-handoff-home .hero .actions .btn.primary,
.afs-handoff-home .hero .actions .afs-hero-primary-quote {
  background: var(--afs-terracotta) !important;
  border: 1px solid var(--afs-terracotta) !important;
  color: #ffffff !important;
}

.afs-handoff-home .hero .actions .btn.primary:hover,
.afs-handoff-home .hero .actions .afs-hero-primary-quote:hover {
  background: var(--afs-terracotta-hover) !important;
  border-color: var(--afs-terracotta-hover) !important;
}

.afs-handoff-home .hero .actions .btn.outline {
  background: var(--afs-bg-surface) !important;
  border: 1.5px solid var(--afs-ink-primary) !important;
  color: var(--afs-ink-primary) !important;
}

.afs-handoff-home .hero .actions .btn.outline:hover {
  background: var(--afs-bg-subtle) !important;
}

@media (max-width: 767px) {
  .afs-handoff-home .hero .actions {
    flex-wrap: wrap !important;
  }
  .afs-handoff-home .hero .actions .btn {
    flex: 1 1 200px;
  }
}

/* Homepage factual Commercial Standards & OEM Authorization micro-strip (AFS-012) */
.afs-standards-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12.5px/1.35 var(--afs-font-sans);
  color: var(--afs-ink-inverse-muted);
}

.afs-standards-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.afs-standards-strip span::before {
  content: "✓";
  color: var(--afs-olive-light);
  font-weight: 800;
}

/* Spotlight dual action layout (AFS-001) */
.afs-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}

.afs-spotlight-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.afs-spotlight-quote-link {
  padding: 8px 16px;
  border-radius: var(--afs-radius-md);
  background: var(--afs-terracotta);
  color: #ffffff !important;
  font: 700 14px/1.2 var(--afs-font-sans);
  text-decoration: none !important;
}

.afs-spotlight-quote-link:hover {
  background: var(--afs-terracotta-hover);
}

/* ============================================================================
   5. /our-brands/ HERO PADDING & SCRIM FIX (AFS-001)
   ============================================================================ */
section.hero.partner-banner {
  box-sizing: border-box !important;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px) !important;
  border-radius: var(--afs-radius-md) !important;
  overflow: hidden;
}

section.hero.partner-banner .intro {
  max-width: 62ch !important;
}

/* ============================================================================
   6. /products/ 0-CLICK SEARCH BAR IN ENTRY GATEWAY (AFS-009)
   ============================================================================ */
.afs-entry-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 14px;
  background: var(--afs-bg-subtle);
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-md);
}

.afs-entry-search-bar label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.afs-entry-search-bar input[type="search"] {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--afs-border-strong);
  border-radius: var(--afs-radius-sm);
  background: var(--afs-bg-surface);
  color: var(--afs-ink-primary);
  font: 500 16px/1.2 var(--afs-font-sans);
}

.afs-entry-search-bar button[type="submit"] {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--afs-terracotta);
  border-radius: var(--afs-radius-md);
  background: var(--afs-terracotta);
  color: #ffffff;
  font: 700 15px/1.1 var(--afs-font-sans);
  cursor: pointer;
}

.afs-entry-search-bar button[type="submit"]:hover {
  background: var(--afs-terracotta-hover);
  border-color: var(--afs-terracotta-hover);
}

/* ============================================================================
   7. /project-enquiry/ ERGONOMICS, INTENT TOGGLE & CONFIRMATION CARD (AFS-007)
   ============================================================================ */
.afs-enquiry-intent {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  background: var(--afs-bg-muted);
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-md);
}

.afs-enquiry-intent button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--afs-ink-secondary);
  font: 600 14px/1.2 var(--afs-font-sans);
  cursor: pointer;
}

.afs-enquiry-intent button[aria-pressed="true"] {
  background: var(--afs-bg-dark);
  color: #ffffff;
  border-color: var(--afs-bg-dark);
}

.afs-context-drawer {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--afs-bg-subtle);
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-md);
}

.afs-context-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  font: 700 14px/1.3 var(--afs-font-sans);
  color: var(--afs-ink-primary);
}

.afs-context-group {
  margin-top: 10px;
}

.afs-context-group-label {
  display: block;
  margin: 0 0 6px;
  font: 700 12px/1.2 var(--afs-font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--afs-olive);
}

.afs-context-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afs-context-pills button {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-pill);
  background: var(--afs-bg-surface);
  color: var(--afs-ink-primary);
  font: 600 13px/1.2 var(--afs-font-sans);
  cursor: pointer;
}

.afs-context-pills button[aria-pressed="true"] {
  background: var(--afs-olive-brand);
  border-color: var(--afs-olive-brand);
  color: #ffffff;
}

.afs-order-ref-wrap {
  margin: 0 0 14px;
}

.afs-label-opt {
  font-weight: 500;
  font-size: 0.84em;
  color: var(--afs-ink-muted);
  margin-inline-start: 6px;
}

.afs-label-req {
  color: var(--afs-terracotta);
  font-weight: 700;
  margin-inline-start: 3px;
}

.afs-field-error {
  display: block;
  margin-top: 4px;
  font: 600 13px/1.35 var(--afs-font-sans);
  color: var(--afs-status-danger-fg);
}

.afs-field-error:empty {
  display: none;
}

#project-enquiry [aria-invalid="true"] {
  border-color: var(--afs-status-danger-fg) !important;
  background: var(--afs-status-danger-bg) !important;
}

.afs-char-count {
  display: block;
  margin-top: 4px;
  text-align: right;
  font: 500 12.5px/1.2 var(--afs-font-sans);
  color: var(--afs-ink-muted);
}

/* Lock submit CTA dimensions to prevent async hydration jitter */
#project-enquiry > button[type="submit"] {
  min-width: 288px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--afs-radius-md) !important;
  background: var(--afs-terracotta) !important;
  border: 1px solid var(--afs-terracotta) !important;
  color: #ffffff !important;
  font: 700 15px/1.2 var(--afs-font-sans) !important;
  white-space: nowrap;
}

#project-enquiry > button[type="submit"]:hover {
  background: var(--afs-terracotta-hover) !important;
  border-color: var(--afs-terracotta-hover) !important;
}

.afs-confirm-card {
  margin-top: 16px;
  padding: 24px;
  background: var(--afs-status-success-bg);
  border: 1px solid var(--afs-status-success-bd);
  border-left: 4px solid var(--afs-status-success-fg);
  border-radius: var(--afs-radius-md);
  color: var(--afs-ink-primary);
}

.afs-confirm-card[hidden] {
  display: none !important;
}

.afs-confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--afs-radius-pill);
  background: var(--afs-status-success-fg);
  color: #ffffff;
  font: 700 12px/1.2 var(--afs-font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.afs-confirm-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.afs-confirm-ref-code {
  font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--afs-status-success-bd);
  border-radius: var(--afs-radius-sm);
}

.afs-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.afs-confirm-actions a,
.afs-confirm-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--afs-radius-md);
  border: 1px solid var(--afs-ink-primary);
  background: #ffffff;
  color: var(--afs-ink-primary);
  font: 600 14px/1.2 var(--afs-font-sans);
  text-decoration: none;
  cursor: pointer;
}

/* ============================================================================
   8. UNIVERSAL MOBILE TOUCH-TARGET FLOOR >= 44x44px & GAP >= 8px (AFS-006)
   ============================================================================ */
@media (max-width: 768px) {
  .sectors a,
  .afs-trust-v2-link,
  .afs-trust-v2-chips a,
  #afs-products-choice .afs-entry-sectors a,
  .afs-brand-secondary-links a,
  .afs-brand-actions a,
  .afs-privacy-note a,
  .afs-sec-card a,
  .afs-sec-partners a,
  .afs-sec-band a,
  #afs-jack-guide-card a,
  .afs-project-filters button,
  #wish-list .actions button,
  #afs-floor-form .actions button,
  .afs-list-switch button,
  .afs-dd-chips button,
  .toolbox a,
  .afs-context-pills button {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px !important;
    min-width: 44px;
    box-sizing: border-box;
  }

  .afs-trust-v2-chips,
  .sectors ul,
  .afs-brand-secondary-links,
  #afs-products-choice .afs-entry-sectors,
  .afs-dd-chips {
    gap: 8px !important;
  }

  #project-enquiry > button[type="submit"] {
    min-width: 100%;
    width: 100%;
  }
}

/* /design-resources/ mobile accordion wrapper (AFS-006) */
details.afs-dr-mobile-acc {
  margin: 0 0 12px;
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-md);
  background: var(--afs-bg-surface);
  overflow: hidden;
}

details.afs-dr-mobile-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  font: 700 16px/1.25 var(--afs-font-sans);
  color: var(--afs-ink-primary);
  background: var(--afs-bg-subtle);
  cursor: pointer;
}

details.afs-dr-mobile-acc > summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--afs-olive);
}

details.afs-dr-mobile-acc[open] > summary::after {
  content: "−";
}

/* ============================================================================
   9. /order-status/ SELF-SERVICE PORTAL LAYOUT (AFS-012)
   ============================================================================ */
.afs-status-shell {
  max-width: var(--afs-container-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

.afs-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .afs-status-grid {
    grid-template-columns: 1fr;
  }
}

.afs-status-card {
  padding: 24px;
  background: var(--afs-bg-surface);
  border: 1px solid var(--afs-border-default);
  border-top: 3px solid var(--afs-olive-brand);
  border-radius: var(--afs-radius-md);
  box-shadow: var(--afs-shadow-sm);
}

.afs-status-card h2 {
  margin: 0 0 8px;
  font: 700 22px/1.25 var(--afs-font-sans);
  color: var(--afs-ink-primary);
}

.afs-status-card label {
  display: block;
  margin: 12px 0 0;
  font: 600 14px/1.3 var(--afs-font-sans);
  color: var(--afs-ink-primary);
}

.afs-status-card input,
.afs-status-card textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--afs-border-default);
  border-radius: var(--afs-radius-sm);
  font: 500 16px/1.3 var(--afs-font-sans);
  background: var(--afs-bg-surface);
  color: var(--afs-ink-primary);
}

.afs-status-card button[type="submit"] {
  margin-top: 16px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--afs-terracotta);
  border-radius: var(--afs-radius-md);
  background: var(--afs-terracotta);
  color: #ffffff;
  font: 700 15px/1.2 var(--afs-font-sans);
  cursor: pointer;
}

.afs-status-card button[type="submit"]:hover {
  background: var(--afs-terracotta-hover);
  border-color: var(--afs-terracotta-hover);
}
