/* Shared Airpost skin for public marketing pages. Loaded after page layout CSS.
   Archived explorations and customer email components retain their own styles. */
html:root[data-site-theme="airpost"] {
  color-scheme: light;
  --paper: #fff;
  --raised: #fff;
  --deep: #edf4ff;
  --canvas: #fff;
  --canvas-raised: #f5f8fd;
  --surface: #fff;
  --surface-soft: #edf4ff;
  --ink: #15345f;
  --persona-active: #173b70;
  --soft: #50627a;
  --ink-2: #50627a;
  --ink-3: #596c85;
  --line: #cbd8ea;
  --line-strong: #8b9eb8;
  --signal: #c83120;
  --signal-dark: #a52619;
  --red: #c83120;
  --red-deep: #a52619;
  --red-soft: #fbe6df;
  --success: #347356;
  --ok: #347356;
  --sans: "Manrope", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --radius-control: 6px;
  --radius-panel: 8px;
  --radius-window: 10px;
  --shadow-1: 5px 5px 0 #edf4ff;
  --shadow-2: 8px 8px 0 #e4edf8;
}
html[data-site-theme="airpost"] body { background: var(--paper); color: var(--ink); }
html[data-site-theme="airpost"] body::before { display: none; }
html[data-site-theme="airpost"] :is(.site-head,.site-header,.campaign-header,.legal-header) {
  background: var(--paper);
  border-bottom: 5px solid transparent;
  border-image: repeating-linear-gradient(125deg,#173b70 0 20px,#fff 20px 39px,#c83120 39px 59px,#fff 59px 78px) 5;
}
html[data-site-theme="airpost"] .brand { color: var(--ink); font-weight: 800; }
html[data-site-theme="airpost"] :is(h1,h2,.display):not(:where(.email *, .email-preview-wrap *, .lab-email-preview *)) {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.055em; line-height: 1.08;
}
html[data-site-theme="airpost"] :is(.hero,.legal-hero,.campaign-hero,.site-footer,.campaign-footer,.legal-footer) { border-color: var(--line); }
html[data-site-theme="airpost"] :is(.button,.btn,.site-import > button,.lab-run) {
  width: fit-content; max-width: 100%; min-height: 44px;
  border: 1px solid var(--signal); border-radius: 6px;
  background: var(--signal); color: #fff; box-shadow: 0 3px 0 #942317;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
html[data-site-theme="airpost"] :is(.button,.btn,.site-import > button,.lab-run):hover { background: var(--signal-dark); transform: translateY(-1px); box-shadow: 0 4px 0 #942317; }
html[data-site-theme="airpost"] :is(.button,.btn,.site-import > button,.lab-run):active { transform: translateY(2px); box-shadow: none; }
html[data-site-theme="airpost"] :is(.btn.is-secondary,.btn.is-ghost,.button.secondary,.button.is-secondary) { background: var(--raised); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
html[data-site-theme="airpost"] :is(.persona-switch,.lens,.lens button,.persona-switch button,.chat-starters button) { border-radius: 6px; box-shadow: none; }
html[data-site-theme="airpost"] :is(.legal-toc,.effective,.freedom-check,.contract-board,.hero-art,.hero-visual,.stage-window,.dev-workbench,.compiler-shell,.receipt-table) {
  border-color: var(--line); border-radius: 9px; box-shadow: var(--shadow-1);
}
html[data-site-theme="airpost"] :is(.legal-toc,.notice,.boundary,.check-section,.contract-section,.index-section) { background: var(--deep); color: var(--ink); }
html[data-site-theme="airpost"] .boundary :is(h2,p) { color: var(--ink); }
html[data-site-theme="airpost"] .boundary .eyebrow { color: var(--signal-dark); }
html[data-site-theme="airpost"] :is(.commitment-list article,.category-grid article,.meter-group,.persona-tabs) { border-color: var(--line); border-radius: 8px; }
html[data-site-theme="airpost"] :is(.code-pane,.code-console,.hero-sidecar:not(.marketer-sidecar)) { background: #122b4d; color: #edf4ff; border-color: #375476; }
html[data-site-theme="airpost"] .promise-strip { background: #173b70; color: #fff; }
html[data-site-theme="airpost"] .promise-row :is(span,strong) { color: #edf4ff; }
html[data-site-theme="airpost"] :focus-visible { outline: 2px solid #376ca9; outline-offset: 4px; }
html[data-site-theme="airpost"] :is(.legal-copy,.receipt-table) { overflow-wrap: anywhere; }
/* Existing industry-page theme controls remain functional. */
html[data-site-theme="airpost"][data-theme="dark"] {
  color-scheme: dark;
  --paper:#102540; --raised:#183454; --deep:#1d3c61;
  --canvas:#102540; --canvas-raised:#183454; --surface:#183454; --surface-soft:#1d3c61;
  --ink:#edf4ff; --soft:#bccce0; --ink-2:#bccce0; --ink-3:#aebfd7;
  --line:#3f5979; --line-strong:#7188a5; --signal:#c83120; --signal-dark:#ae2b1c;
  --red:#f18b78; --red-deep:#ffad99; --red-soft:#542c32;
  --shadow-1:5px 5px 0 #0b1c32; --shadow-2:8px 8px 0 #0b1c32;
}
@media (prefers-reduced-motion: reduce) {
  html[data-site-theme="airpost"] :is(.button,.btn,.site-import > button,.lab-run) { transition: none; }
}
