/* AdsToBoot shared styles.
   Brand (proposed 13 Nov 2026): Boot Navy #0B2340, Signal Amber #F5A623 (fills and dark
   backgrounds only; too light for text on white), tile navy #16345A, white. */
:root {
  --navy: #0b2340;
  --navy-2: #16345a;
  --amber: #f5a623;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0f1b2b;
  --muted: #566273;
  --line: #d9dde3;
  --ok: #1d7a4b;
  --bad: #b3261e;
  --focus: #1e6fd9;
  --on-amber: #0b2340;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1626; --surface: #10233b; --ink: #eef2f7; --muted: #a7b3c3; --line: #23395a;
    --ok: #4cc58a; --bad: #ff8a80; --focus: #7fb2ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1626; --surface: #10233b; --ink: #eef2f7; --muted: #a7b3c3; --line: #23395a;
  --ok: #4cc58a; --bad: #ff8a80; --focus: #7fb2ff; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font);
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }

/* Header and footer */
.site-head {
  background: var(--navy); color: #fff;
  padding-block: max(12px, env(safe-area-inset-top, 0px)) 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.site-head .in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -0.015em; text-decoration: none; color: #fff; }
.brand .to { font-weight: 500; color: var(--amber); }
.site-head nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-head nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.site-foot a { color: inherit; }
.site-foot { padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: 13px; }

/* Layout */
main {
  padding-block: 18px 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* Buttons */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 16px/1 var(--font); padding: 14px 18px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none;
}
.btn.primary { background: var(--amber); color: var(--on-amber); border-color: transparent; }
.btn.navy { background: var(--navy); color: #fff; border-color: transparent; }
.btn.grow { flex: 1 1 170px; }
.btn.link { border: none; background: none; padding: 8px 4px; min-height: 0; color: var(--muted); text-decoration: underline; font-weight: 600; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 9px 14px; font: 600 15px/1 var(--font); cursor: pointer; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); border-color: var(--amber); } }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
select, input[type="number"], input[type="text"] {
  font: 400 16px/1.3 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }

.notice { border-radius: 12px; padding: 12px 14px; font-size: 15px; background: var(--bg); border: 1px solid var(--line); }
.notice.ok { border-color: var(--ok); }
.notice.bad { border-color: var(--bad); }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
