/* ==========================================================================
   base.css — the design contract for the Peterson Agencies careers site.
   Owner: the orchestrator. Build agents: LINK this first, never edit it.
   Page sections go in site.css; the application flow goes in apply.css.

   Direction (decided 2026-09-20, LN-0116): Institutional Navy, LIGHT mode,
   Inter, square and buttoned-up, thin lines, a restrained frosted-glass touch.
   Not round, not bubbly, no gradients-as-decoration, no drop-shadow stacks.

   COMPONENT INDEX
     layout     .wrap  .wrap--narrow  .section  .section--tint  .section--navy
                .grid  .grid--2  .grid--3  .stack  .cluster
     type       .eyebrow  .h1  .h2  .h3  .lead  .muted  .small  .rule
     actions    .btn  .btn--primary  .btn--secondary  .btn--onnavy  .btn--lg
                .btn--block  .link-arrow
     surfaces   .card  .card--link  .glass  .panel
     facts      .chip  .chip--sales  .chip--office  .facts (dl)
     choices    .opt  .opt-group   (big one-tap answers; radio/checkbox inside)
     forms      .field  .field__label  .field__hint  .field__error  .input
                .check  .progress
     chrome     .topbar  .brand  .nav  .footer  .disclosure  .skip
     steps      .steps  .step
     review     .needs   (placeholder marker, visible only in review mode)
     utility    .visually-hidden  .center  .mt-0 … .mt-6
   ========================================================================== */

:root {
  color-scheme: light;

  /* colour — lifted unchanged from docs/ui-options direction 2 */
  --navy: #0E2A4D;
  --navy-deep: #0A2140;
  --ground: #FFFFFF;
  --surface: #F4F6F9;
  --surface-2: #F8FAFC;
  --ink: #101828;
  --muted: #566074;
  --line: #DCE1E8;
  --line-2: #C0C8D4;
  --accent: #1B5FB0;
  --accent-hover: #164F94;
  --accent-text: #14498A;
  --accent-tint: #E9F1FA;
  --accent-border: #9EC0E6;
  --on-accent: #FFFFFF;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B7C9DE;
  --on-navy-line: rgba(255, 255, 255, .16);
  --ok: #10633F;
  --ok-tint: #E7F3EC;
  --warn: #7E5104;
  --warn-tint: #FBF3E0;
  --danger: #A02222;
  --danger-tint: #FBECEC;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-h1: clamp(2.125rem, 1.35rem + 3.4vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.25rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* shape and space */
  --radius: 4px;
  --radius-lg: 5px;
  --gutter: 20px;
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --space-section: clamp(56px, 4vw + 40px, 104px);
  --shadow: 0 2px 10px rgba(16, 24, 40, .10);
  --tap: 48px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Author display rules (.field, .check, .grid …) outrank the browser's [hidden] rule, so restate it.
   Found in the browser 2026-09-21: the off-by-default acknowledgement tick was rendering. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-tint); }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .muted, .section--navy .lead { color: var(--on-navy-muted); }
.section--navy a:not(.btn) { color: #FFFFFF; }
.section--navy :focus-visible { outline-color: #FFFFFF; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack > * + * { margin-top: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }

/* ------------------------------------------------------------------ type */
.eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px;
}
.section--navy .eyebrow { color: var(--on-navy-muted); }
.h1 { font-size: var(--fs-h1); letter-spacing: -.028em; line-height: 1.06; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.rule { width: 34px; height: 2px; background: var(--accent); border: 0; margin: 0 0 20px; }
.section--navy .rule { background: #FFFFFF; opacity: .7; }

/* --------------------------------------------------------------- actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: var(--ground); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--onnavy { background: #FFFFFF; color: var(--navy); }
.btn--onnavy:hover { background: var(--accent-tint); color: var(--navy); }
.btn--lg { min-height: 56px; padding: 16px 26px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-arrow { display: inline-block; padding-block: 6px; font-weight: 600; text-decoration: none; } /* 24px+ target, WCAG 2.5.8 */
.link-arrow::after { content: " \2192"; transition: margin-left .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* -------------------------------------------------------------- surfaces */
.card {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; color: var(--ink);
}
.card--link { display: block; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
/* The one glass touch. Use on the top bar and at most one panel per page. */
.glass {
  background: rgba(255, 255, 255, .93); border: 1px solid rgba(16, 24, 40, .08); /* near-white: .78 went grey-lavender over the navy hero */
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
}
.glass--navy {
  background: rgba(255, 255, 255, .07); border: 1px solid var(--on-navy-line); color: var(--on-navy);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .97); }
  .glass--navy { background: rgba(255, 255, 255, .10); }
}

/* ----------------------------------------------------------------- facts */
/* Role terms are stated per role, never site-wide (owner decision 2026-09-21). */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius);
  font-size: .8125rem; font-weight: 500; line-height: 1.3;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.chip--sales { background: var(--accent-tint); border-color: var(--accent-border); color: var(--accent-text); }
.chip--office { background: var(--ok-tint); border-color: #A9D3BC; color: var(--ok); }
.section--navy .chip { background: rgba(255, 255, 255, .08); border-color: var(--on-navy-line); color: #FFFFFF; }
.facts { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-right: 20px; padding-top: 15px; }

/* --------------------------------------------------------------- choices */
/* Big one-tap answers. Markup: <label class="opt"><input type="radio" …>
   <span class="opt__body"><span class="opt__title">…</span><span class="opt__hint">…</span></span></label> */
.opt-group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
@media (min-width: 640px) { .opt-group--2 { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px;
  background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; transition: border-color .12s, background-color .12s; -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--accent); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt::before {
  content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 50%;
  background: var(--ground); transition: border-color .12s, box-shadow .12s;
}
.opt--check::before { border-radius: 3px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input:checked)::before { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt__body { display: grid; gap: 2px; min-width: 0; }
.opt__title { font-weight: 600; line-height: 1.3; color: var(--ink); }
.opt__hint { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }

/* ----------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: .9375rem; }
.field__label .opt-tag { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs-small); color: var(--muted); }
.field__error { display: none; font-size: var(--fs-small); font-weight: 500; color: var(--danger); }
.field[data-invalid="true"] .field__error { display: block; }
.field[data-invalid="true"] .input { border-color: var(--danger); background: var(--danger-tint); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; transition: border-color .12s, box-shadow .12s;
}
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check__text { font-size: .9375rem; line-height: 1.5; }
.progress { display: grid; gap: 8px; }
.progress__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.progress__track { height: 3px; background: var(--line); border-radius: 0; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }

/* ---------------------------------------------------------------- chrome */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #FFF; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #FFF; }
.topbar { position: sticky; top: 0; z-index: 50; border-width: 0 0 1px; min-height: var(--topbar-h); display: flex; align-items: center; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand__tag { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
/* Minimal header for the application pages: brand + the office line. */
.topbar__call { margin: 0; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.topbar__call a { display: inline-block; padding-block: 6px; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .topbar__call-label, .topbar--min .brand__tag { display: none; } }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
@media (min-width: 860px) { .nav { display: flex; } }
.footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 56px 40px; font-size: var(--fs-small); }
.footer a { color: #FFFFFF; }
.footer h2, .footer h3 { color: #FFFFFF; font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding-block: 5px; } /* 24px+ target, WCAG 2.5.8 */
.disclosure { border-top: 1px solid var(--on-navy-line); margin-top: 36px; padding-top: 24px; font-size: .8125rem; line-height: 1.6; max-width: 90ch; }

/* ----------------------------------------------------------------- steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.step { counter-increment: step; position: relative; padding: 0 0 28px 56px; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  color: var(--navy); background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.step::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.step:last-child { padding-bottom: 0; } .step:last-child::after { display: none; }

/* ---------------------------------------------------------------- review */
/* Anything the agency still has to supply. Invisible to visitors; add ?review=1
   (site.js sets <html data-review="1">) to see every open item on the page. */
.needs { display: none; }
html[data-review="1"] .needs {
  display: block; margin: 12px 0; padding: 10px 12px; font-family: var(--mono); font-size: .75rem; line-height: 1.5;
  color: var(--warn); background: var(--warn-tint); border: 1px dashed #D9B45B; border-radius: var(--radius);
}
html[data-review="1"] .needs::before { content: "NEEDED FROM THE AGENCY  "; font-weight: 600; letter-spacing: .06em; }
html[data-review="1"] [data-unconfirmed] { outline: 1px dashed #D9B45B; outline-offset: 2px; }

/* --------------------------------------------------------------- utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; } .center .lead, .center .rule { margin-inline: auto; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mt-4 { margin-top: 32px } .mt-5 { margin-top: 48px } .mt-6 { margin-top: 64px }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .topbar, .footer .nav, .btn { display: none !important; } body { color: #000; } }

/* Brand colors for The Peterson Agencies, from agencies/peterson/agency.json */
:root { --navy: #0E2A4D; --navy-deep: #0E2A4D; --accent: #1B5FB0; --accent-hover: #1B5FB0; --accent-text: #1B5FB0; }
