/* Shared public site palette and surfaces. */
:root {
  color-scheme: dark;
  --night: #091b24;
  --night-2: #163743;
  --paper: #101f28;
  --card: #192f3a;
  --ink: #f4f7f8;
  --slate: #bdcdd3;
  --starlight: #f5f5ef;
  --starlight-dim: #c6d3d7;
  --brass: #ebbb63;
  --rule: #344e59;
}
header.site { background: #0c2029; }
.hero { border-bottom: 1px solid var(--rule); }
.hero h1 { text-wrap: balance; }
.section.crit, .sheet .send { background: var(--card); }
.site nav a.pill, .btn, .btn.dark {
  background: #efbc61;
  color: #172129;
  border: 1px solid #efbc61;
  border-radius: 6px;
}
.site nav a.pill:hover, .btn:hover, .btn.dark:hover { background: #ffce79; color: #172129; }
.sheet, .faq details { border-color: var(--rule); }
:focus-visible { outline: 3px solid #efbc61; outline-offset: 4px; }

.hero .router { padding:clamp(1.2rem,3vw,2.2rem); border:1px solid var(--rule); border-radius:12px; background:#142d38; }
.hero .router a { padding-block:1.15rem; }
.hero .lede { max-width:51ch; }
.section .flow > *, .section .how > * { border-top:2px solid var(--brass); padding-top:1rem; }
.section .head h2 { text-wrap:balance; }

.site .brand { letter-spacing:.09em; }
.site nav a.pill { color:#f6c56e; border:1px solid #dca94d; background:transparent; border-radius:5px; }
.editorial-hero { display:grid; align-items:center; min-height:clamp(480px,62vh,700px); background:linear-gradient(90deg,#0b2029 6%,rgba(11,32,41,.97) 27%,rgba(11,32,41,.69) 48%,rgba(11,32,41,.04) 77%),url('/media/inspection.webp') right center/cover; }
.editorial-hero > .wrap { width:100%; }
.editorial-copy { max-width:46rem; padding-block:4rem; }
.editorial-copy h1,.editorial-broker h1 { font-family:var(--serif);font-weight:450; font-size:clamp(3rem,5.4vw,5.4rem); line-height:.99; letter-spacing:-.045em; margin:0; }
.editorial-copy h1 { max-width:12ch; }
.editorial-copy em,.editorial-broker em { color:#f0bb62; }
.editorial-copy p,.editorial-broker p { max-width:35ch; font:400 clamp(1rem,1.4vw,1.35rem)/1.45 var(--sans); margin:1.3rem 0; }
.editorial-actions,.criteria-strip,.promise-strip { display:flex;align-items:center;gap:1rem; flex-wrap:wrap; }
.editorial-primary,.editorial-secondary { display:inline-block;padding:.75rem 1.2rem;border-radius:5px;text-decoration:none;font:600 1rem var(--sans); }
.editorial-primary { background:#147a7e;color:white; } .editorial-secondary { color:#fff;border:1px solid #a5b8bc; }
.promise-strip,.criteria-strip { padding-block:1.5rem; border-block:1px solid var(--rule); justify-content:space-between; }
.promise-strip span,.criteria-strip span { padding-left:.85rem;border-left:2px solid var(--brass); }
.editorial-broker { padding:clamp(2rem,4vw,4rem) 0; }
.editorial-broker h1 {font-size:clamp(2.75rem,4.8vw,4.5rem);}
.editorial-broker h1 br { display:none; } .editorial-broker h1 em::before { content:" "; }
.industry-board { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem; margin:1.2rem 0; }
.industry-tile { min-height:clamp(100px,9vw,155px);display:flex;align-items:flex-end;padding:1rem;border:1px solid var(--rule);border-radius:8px;background-image:linear-gradient(0deg,rgba(3,18,25,.9),rgba(3,18,25,.1)),url('/media/industries.webp');background-size:100% 100%,300% 200%;background-position:center,var(--tile-x) var(--tile-y);color:white; }
.industry-tile strong { max-width:19ch;font:650 1.1rem/1.2 var(--sans); }
.criteria-strip { margin-bottom:1.2rem; }
.editorial-broker + main .sheet { margin-top:0; }
@media(max-width:680px){.industry-board{grid-template-columns:1fr 1fr}.editorial-hero{background-position:65% center}.editorial-copy{padding:2.5rem 0}.promise-strip,.criteria-strip{justify-content:flex-start}.editorial-copy h1{font-size:3.4rem}.editorial-copy p{max-width:24ch}.site nav{gap:.6rem}}

/* Let the header reflow before its logo and navigation exceed the viewport. */
@media (max-width: 680px) {
  .site .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding-block: .75rem;
  }
  .site .brand {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
  .site .brand svg { flex-shrink: 0; }
  .site nav {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem .75rem;
  }
  .site nav a { white-space: normal; }
  .site nav a.pill { padding: .65rem .75rem; }
  .editorial-hero { grid-template-columns: minmax(0, 1fr); }
  .editorial-copy { min-width: 0; }
  .editorial-copy h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}
