/*
  Peak 3 practice site: the Survey Quadrangle world.
  Loaded only by _layouts/practice.html. The legacy Ashore pages use
  /assets/css/theme.bundle.css and never load this file.
*/

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  /* sheet */
  --collar: oklch(0.995 0.002 230);
  --paper: oklch(0.972 0.005 230);
  --ink: oklch(0.22 0.014 135);
  --ink-2: oklch(0.42 0.016 135);
  --rule-soft: oklch(0.84 0.014 132);

  /* cartographic roles */
  --relief: oklch(0.62 0.085 60);
  --relief-index: oklch(0.52 0.095 56);
  --wood: oklch(0.905 0.058 136);
  --wood-field: oklch(0.928 0.045 136);
  --wood-ink: oklch(0.36 0.06 140);
  --hydro: oklch(0.44 0.13 250);
  --route: oklch(0.53 0.19 33);
  --route-deep: oklch(0.45 0.17 33);
  --rev: oklch(0.47 0.17 322);
  --rev-field: oklch(0.945 0.025 322);
  --state: oklch(0.87 0.05 250);
  --state-hover: oklch(0.8 0.08 250);

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --step-3: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.3rem + 3.4vw, 4.375rem);

  /* layout */
  --gutter: clamp(10px, 1.8vw, 28px);
  --pad: clamp(16px, 3vw, 48px);
  --gap: clamp(14px, 1.8vw, 28px);
  --content-max: 1360px;
  --collar-h: 68px;
  --section-y: clamp(4.5rem, 3rem + 5vw, 8.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--collar-h) + 12px);
  scrollbar-color: var(--relief) var(--collar);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.practice {
  margin: 0;
  background: var(--collar);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  caret-color: var(--route);
  -webkit-font-smoothing: antialiased;
}
.practice ::selection { background: var(--wood); color: var(--ink); }
:where(.practice) :where(img, svg) { display: block; max-width: 100%; }
:where(.practice) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.practice) :where(ul, ol) { padding: 0; list-style: none; }
:where(.practice) a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(.practice) a:hover { text-decoration-thickness: 2px; }
.practice :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
.practice q { quotes: "\201C" "\201D"; }

.nowrap { white-space: nowrap; }
.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;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--collar);
  padding: 0.6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Copy the client still has to rewrite: a highlighter mark, removed once edited. */
.edit-flag {
  background: oklch(0.93 0.12 100);
  color: var(--ink);
  padding: 0.04em 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Placeholders that still need real content. */
.todo {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed var(--ink-2);
  background: var(--collar);
  color: var(--ink);
  font-size: 0.85em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Words quoted from GovRAMP. */
.sourced { font-style: italic; }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.grid > * { grid-column: 1 / -1; }

/* ---------- labels (map lettering) ---------- */
.legend__title, .place-notes__place,
.sheet-notes dt, .collar__series, .collar__links a, .clients__note {
  font-stretch: 116%;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  font-size: var(--step--1);
  line-height: 1.35;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.8em 1.35em;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button--route {
  background: var(--route);
  color: #fff;
  box-shadow: 0 1px 0 var(--route-deep), 0 6px 16px -10px color-mix(in oklch, var(--route-deep) 70%, transparent);
}
.button--route:hover { background: var(--route-deep); text-decoration: none; }
.button--route:active { transform: translateY(1px); box-shadow: 0 0 0 var(--route-deep); }
.button--route:focus-visible { outline-color: var(--ink); }
.button--compact { min-height: 2.5rem; padding: 0.55em 1em; font-size: 0.9375rem; white-space: nowrap; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--relief);
}

/* ---------- collar (header) ---------- */
.collar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--collar);
  border-bottom: 1px solid var(--ink);
}
.collar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: var(--collar-h);
  padding-inline: calc(var(--gutter) + var(--pad));
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex: none;
}
.wordmark__mark { width: 22px; height: 22px; }
.wordmark__mark path { fill: var(--ink); }
.wordmark__mark circle { fill: var(--route); }
.wordmark__name {
  font-stretch: 125%;
  font-weight: 850;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.collar__series {
  color: var(--ink-2);
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--rule-soft);
  font-size: 0.6875rem;
  line-height: 1.3;
}
.collar__series span { display: none; }
.collar__nav { margin-left: auto; }
.collar__links { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.collar__links a {
  text-decoration: none;
  font-size: 0.75rem;
  padding-block: 0.5rem;
  background: linear-gradient(var(--route), var(--route)) left bottom / 0 1px no-repeat;
  transition: background-size 220ms var(--ease-out);
  white-space: nowrap;
}
.collar__links a:hover, .collar__links a[aria-current="page"] { background-size: 100% 1px; }
.collar__links a[aria-current="page"] { background-image: linear-gradient(var(--ink), var(--ink)); }
.collar__menu { display: none; }

/* Breakpoints measured for the full "Plan your GovRAMP route" button:
   the series line needs 1280px, the inline links 1000px. */
@media (max-width: 1279px) {
  .collar__series { display: none; }
}
@media (max-width: 1000px) {
  :root { --collar-h: 60px; }
  /* Without JS the links wrap onto a second row; with JS they sit behind Menu. */
  .collar__inner { gap: 10px; flex-wrap: wrap; }
  .collar__nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .collar__links { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .button--compact { margin-left: auto; }
  .js .collar__inner { flex-wrap: nowrap; }
  .js .collar__nav { flex-basis: auto; }
  .js .collar__menu {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    background: none; border: 1px solid var(--ink); border-radius: 2px;
    color: var(--ink); cursor: pointer;
  }
  .collar__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .collar__menu svg { width: 18px; height: 18px; }
  .collar__menu path { stroke: currentColor; stroke-width: 1.6; fill: none; }
  .js .collar__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 0.5rem calc(var(--gutter) + var(--pad)) 1rem;
    background: var(--collar);
    border-bottom: 1px solid var(--ink);
  }
  .js .collar__links.is-open { display: flex; }
  .js .collar__links a { display: block; padding-block: 0.85rem; border-bottom: 1px solid var(--rule-soft); font-size: 0.875rem; }
}
@media (max-width: 420px) {
  .collar__inner { padding-inline: 16px; }
  .wordmark__name { font-size: 1.05rem; }
  .wordmark__mark { width: 18px; height: 18px; }
  .button--compact { padding-inline: 0.7em; font-size: 0.8125rem; }
}
/* Phones: the header button keeps the full label and wraps to two lines. */
@media (max-width: 480px) {
  .collar .button--compact {
    flex: 0 1 auto; min-width: 0;
    white-space: normal; text-wrap: balance; text-align: center;
    line-height: 1.15; padding-block: 0.3em;
  }
}

/* ---------- the sheet (neatline) ---------- */
.sheet {
  display: block;
  margin-inline: var(--gutter);
  background: var(--paper);
  border-inline: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Graticule ticks: one per column line along the top of every section. */
.section { position: relative; padding-block: var(--section-y); }
.section::before, .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content-max));
  height: 9px;
  padding-inline: var(--pad);
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc((100% + var(--gap)) / 12)) content-box;
  pointer-events: none;
  z-index: 2;
}
.section + .section { border-top: 1px solid var(--rule-soft); }
.section--woods + .section, .section + .section--woods { border-top: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - var(--collar-h) - 12px), 860px);
  display: flex;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}
.survey-map--hero { position: absolute; inset: 0; z-index: -1; }
.survey-map__art { width: 100%; height: 100%; }

.hero__inner {
  align-content: center;
  padding-block: clamp(48px, 9vh, 112px);
}
.hero__copy { grid-column: 1 / span 6; max-width: 35rem; }
.hero h1 {
  font-size: var(--step-4);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 1.4rem;
  max-width: 29rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* The primary action with its terms underneath. */
.cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.cta__note {
  font-size: var(--step--1);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Legend: the map key, doubling as the route picker. */
.legend {
  padding: 1rem 1.1rem 1.05rem;
  background: var(--collar);
  border: 1px solid var(--ink);
}
.legend__title { color: var(--ink-2); margin-bottom: 0.55rem; }
.legend__routes { display: grid; gap: 2px; }
.legend__route {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  column-gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem 0.4rem 0.5rem;
  background: none;
  border: 0;
  border-radius: 2px;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: default;
}
.legend__route .swatch { width: 2.6rem; }
.legend__name { font-weight: 700; font-stretch: 106%; font-size: 0.9375rem; line-height: 1.25; }
.legend__meta { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.js .legend__route { cursor: pointer; transition: background-color 160ms var(--ease-out); }
.js .legend__route:hover { background: color-mix(in oklch, var(--wood) 55%, transparent); }
.js .legend__route[aria-pressed="true"] { background: var(--wood); }
.js .legend__route[aria-pressed="true"] .legend__name::after {
  content: "";
  display: inline-block;
  width: 0.45em; height: 0.45em;
  margin-left: 0.45em;
  vertical-align: 0.12em;
  background: var(--route);
  border-radius: 50%;
}
.key-mark { width: 12px; height: 12px; flex: none; }
.key-mark--start circle { fill: var(--collar); stroke: var(--ink); stroke-width: 1.6; }
.key-swatch {
  display: inline-block;
  flex: none;
  width: 12px; height: 9px;
  margin-right: 0.15rem;
  vertical-align: -0.05em;
  background: var(--rev);
  transform: rotate(-14deg);
}

/* Line swatches shared by the legend, table and packages. */
.swatch { width: 2.5rem; height: 0.625rem; overflow: visible; flex: none; }
.swatch path { fill: none; stroke-linecap: round; }
.swatch--snapshot path { stroke: var(--route); stroke-width: 3; stroke-dasharray: 6 4.5; stroke-linecap: butt; }
.swatch--core path { stroke: var(--route); stroke-width: 3.5; }
.swatch--threepao .swatch__casing { stroke: var(--ink); stroke-width: 6; stroke-linecap: butt; }
.swatch--threepao .swatch__fill { stroke: var(--collar); stroke-width: 3; stroke-linecap: butt; }

/* ---------- map artwork ---------- */
.map-woods path { fill: var(--wood); }
.map-contours path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-contours__minor { stroke: var(--relief); stroke-width: 0.7; opacity: 0.55; }
.map-contours__index { stroke: var(--relief-index); stroke-width: 1.3; opacity: 0.75; }
.map-revisions rect { fill: var(--rev); }

.map-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-route__line { stroke: var(--route); stroke-width: 4; }
.map-route--snapshot .map-route__line { stroke-width: 3.5; stroke-dasharray: 0.016 0.011; stroke-linecap: butt; }
.map-route--threepao .map-route__casing { stroke: var(--ink); stroke-width: 7; stroke-linecap: butt; }
.map-route--threepao .map-route__line { stroke: var(--collar); stroke-width: 4; stroke-linecap: butt; }
.map-route { transition: opacity 300ms var(--ease-out); }

/* Only the selected route is drawn in full. */
.survey-map[data-route] .map-route { opacity: 0.32; }
.survey-map[data-route="core"] .map-route--core,
.survey-map[data-route="snapshot"] .map-route--snapshot,
.survey-map[data-route="threepao"] .map-route--threepao { opacity: 1; }
.survey-map[data-route="threepao"] .map-route--threepao .map-route__line { stroke: var(--route); }

.map-reveal { fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.map-reveal.is-drawing { stroke-dasharray: 1 1; animation: route-draw 1500ms var(--ease-out) both; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .map-reveal.is-drawing { animation: none; stroke-dasharray: none; } }

.map-benchmarks path { fill: var(--ink); }
.map-summit path { fill: var(--ink); }
.map-summit circle { fill: var(--collar); }
.map-trailhead circle { fill: var(--collar); stroke: var(--ink); stroke-width: 2.5; }
.map-station rect { fill: var(--collar); stroke: var(--ink); stroke-width: 2.5; }
.survey-map--hero .map-label--dest { font-size: 20px; }
.survey-map--hero .map-label--sub { font-size: 15px; }
.survey-map--hero .map-label--narrow { display: none; }

.map-label {
  font-family: var(--font);
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-label--dest { font-size: 15px; font-weight: 750; font-stretch: 116%; text-transform: uppercase; letter-spacing: 0.07em; }
.map-label--sub { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); }
.map-label--bm { font-size: 12px; font-weight: 700; font-stretch: 110%; }
.map-label--rev { font-size: 12px; font-weight: 600; font-style: italic; fill: var(--rev); }
.map-labels text { transition: opacity 300ms var(--ease-out); }
.survey-map[data-route] .map-labels text[data-for] { opacity: 0.75; }
.survey-map[data-route="core"] .map-labels text[data-for="core"],
.survey-map[data-route="snapshot"] .map-labels text[data-for="snapshot"],
.survey-map[data-route="threepao"] .map-labels text[data-for="threepao"] { opacity: 1; }

/* ---------- where: the location diagram ---------- */
.where { grid-template-rows: auto auto 1fr; align-items: start; }
.where__title, .where__lede, .where__close { grid-column: 1 / span 5; }
.where__title { grid-row: 1; }
.where__lede { grid-row: 2; margin-top: 1.5rem; }
.where__close { grid-row: 3; margin-top: 2rem; }
.where__map { grid-column: 7 / span 6; grid-row: 1 / span 3; }
/* The dated requirements run full width under the map, four to a row. */
.locator { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.locator__art { width: 100%; height: auto; }
.locator__state {
  fill: var(--collar);
  stroke: var(--relief);
  stroke-width: 0.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms var(--ease-out);
}
.locator__state.is-in { fill: var(--state); stroke: var(--hydro); stroke-width: 0.8; }
.locator__state.is-in:hover { fill: var(--state-hover); }
.locator__state.is-req { fill: var(--hydro); stroke: var(--collar); stroke-width: 0.8; }
.locator__state.is-req:hover { fill: var(--route-deep); }
.locator__codes text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.04em;
  text-anchor: middle;
  fill: var(--collar);
  pointer-events: none;
}
.locator__caption {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.locator__key { display: grid; gap: 0.4rem; }
.locator__key li { display: flex; gap: 0.6rem; }
.locator__swatch {
  flex: none;
  width: 14px;
  height: 10px;
  margin-top: 0.3rem;
  background: var(--state);
  outline: 1px solid var(--hydro);
}
.locator__swatch--req { background: var(--hydro); }
.deadlines { align-items: start; }
.deadlines__map { grid-column: 1 / span 8; }
.deadlines__aside { grid-column: 10 / span 3; align-self: end; font-size: 0.9375rem; color: var(--ink-2); }
.deadlines .deadlines__notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  column-gap: var(--gap);
  margin-block: clamp(2.5rem, 2rem + 2vw, 4rem) 0 !important;
}
.deadlines .deadlines__notes li { grid-template-columns: 1fr; align-content: start; }
.deadlines__sources { grid-column: 1 / span 8; margin-top: 2rem; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-2); }
.deadlines__sources a { color: inherit; text-decoration-color: var(--rule-soft); }

/* ---------- routes: the full sheet with its legend ---------- */
.routes { align-items: start; row-gap: 1.5rem; margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.routes__lede { align-self: end; }
.survey-map--diagram {
  grid-column: 1 / span 7;
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.survey-map--diagram .survey-map__art { height: auto; aspect-ratio: 640 / 590; }
.routes__side { grid-column: 8 / span 5; display: grid; gap: 1.5rem; }
.route-note { padding-left: 1.1rem; border-left: 1px solid var(--ink); }
.route-note + .route-note { margin-top: 1.5rem; }
.js .route-note:not(.is-active) { display: none; }
.js .route-note + .route-note { margin-top: 0; }
.route-note__title {
  font-size: var(--step-1);
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.2;
}
.route-note p { margin-top: 0.6rem; max-width: 34rem; }
.route-note__package { font-weight: 600; }
.route-note a, .routes__more a { text-decoration-color: var(--relief-index); }

/* ---------- page heads (inner pages) ---------- */
.page-head {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--ink);
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content-max));
  height: 9px;
  padding-inline: var(--pad);
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc((100% + var(--gap)) / 12)) content-box;
  pointer-events: none;
}
.page-head__title {
  grid-column: 1 / span 9;
  font-size: var(--step-4);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.page-head__lede {
  grid-column: 1 / span 7;
  margin-top: 1.4rem;
  max-width: 40rem;
  font-size: var(--step-1);
  line-height: 1.45;
  text-wrap: pretty;
}
.page-head__lede a { text-decoration-color: var(--relief-index); }
.section--first { border-top: 0 !important; }
.section--first::before { display: none; }

.explain { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.explain__row { align-items: start; }
.explain__row + .explain__row {
  margin-top: clamp(3rem, 2.25rem + 2.5vw, 4.5rem);
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  border-top: 1px solid var(--ink);
}
.explain__title {
  grid-column: 1 / span 4;
  font-size: var(--step-2);
  font-stretch: 112%;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.explain__body { grid-column: 6 / span 7; max-width: 42rem; }
.explain__body > * + * { margin-top: 1rem; }
.explain__body > p:first-child { font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.explain__body a:not(.button) { text-decoration-color: var(--relief-index); }
.explain .status:first-of-type { margin-top: 1.5rem; }
.status { padding-block: 1.5rem 1.6rem; border-bottom: 1px solid var(--rule-soft); }
.status:first-of-type { margin-top: 1.75rem; border-top: 1px solid var(--ink); }
.status > * + * { margin-top: 0.75rem; }
.status__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--step-2);
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.15;
}
.status__title .swatch { width: 2.75rem; }
.status__package { font-weight: 600; }
.rules { border-top: 1px solid var(--ink); }
.rules li { padding-block: 0.85rem; border-bottom: 1px solid var(--rule-soft); }
.rules strong { display: block; font-weight: 700; margin-bottom: 0.15rem; }

/* ---------- offers (home) ---------- */
.offers { border-top: 2px solid var(--ink); }
.offers__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: baseline;
  padding-block: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
}
.offers__mark { grid-row: 1; align-self: center; justify-self: start; }
.offers__mark.key-mark { width: 14px; height: 14px; margin-left: 0.15rem; }
.offers__mark.key-swatch { margin-left: 0.15rem; }
.offers__name {
  font-size: var(--step-1);
  font-stretch: 108%;
  font-weight: 750;
  line-height: 1.25;
}
.offers__name a { text-decoration-color: var(--relief-index); }
.offers__time { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.offers__summary { grid-column: 2 / -1; max-width: 36rem; }
.rfp p + p { margin-top: 1.25rem; }
.offers__rfp { max-width: 38rem; margin-top: 1.5rem; text-wrap: pretty; }
.offers__rfp strong { font-weight: 700; }
.offers__more { margin-top: 1.25rem; }

/* ---------- sections ---------- */
.section__title {
  font-size: var(--step-3);
  font-stretch: 112%;
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section__title--side { grid-column: 1 / span 5; }
.section__title--wide { grid-column: 1 / span 9; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section__body { max-width: 40rem; }
.section__body--side { grid-column: 7 / span 6; }
.section__body > * + * { margin-top: 1.1rem; }
.lede { font-size: var(--step-1); line-height: 1.5; }

/* Why GovRAMP: place notes set like map place names. */
.place-notes { margin-block: 2rem !important; border-top: 1px solid var(--ink); }
.place-notes li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.25rem 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.place-notes__place { padding-top: 0.2rem; }

/* Paths: one fixed-column comparison. */

/* Cost of waiting: a woodland field. */
.section--woods { background: var(--wood-field); }
.costs { border-top: 2px solid var(--ink); }
.costs li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0.4rem;
  padding-block: 1.5rem 1.65rem;
  border-bottom: 1px solid color-mix(in oklch, var(--wood-ink) 38%, transparent);
}
.costs h3 { grid-column: 1 / span 4; }
.costs p { grid-column: 6 / span 7; max-width: 44rem; }
.costs h3 {
  font-size: 1.125rem;
  font-stretch: 108%;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ink);
}
.costs p { color: var(--ink); }

/* Packages. */
.package {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.package__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--step-2);
  font-stretch: 112%;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.package__title .swatch { width: 2.75rem; }
.package__for { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.package__for a { color: var(--ink); text-decoration-color: var(--relief-index); }
.package__outcome {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34rem;
  text-wrap: pretty;
}

.checks { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.checks li { position: relative; padding-left: 1.35rem; line-height: 1.45; max-width: 36rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.72em;
  width: 0.55rem;
  height: 2px;
  background: var(--relief-index);
}
.package__after, .start__note { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ink-2); }
.start__body .checks { margin-block: 0.25rem 0.25rem; }

/* AppSec add-on: the purple revision overprint. */
.appsec {
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  background: var(--rev-field);
  border-block: 1px solid color-mix(in oklch, var(--rev) 40%, transparent);
}
.appsec__title {
  grid-column: 1 / span 4;
  font-size: var(--step-2);
  font-stretch: 112%;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
}
.appsec__body { grid-column: 5 / span 8; }
.appsec__lede {
  font-size: var(--step-2);
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
/* Two even columns read top to bottom; one column on phones. */
.revisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: var(--gap);
  max-width: 42rem;
  margin-block: 1.6rem 1.4rem;
  border-top: 1px solid color-mix(in oklch, var(--rev) 45%, transparent);
}
.revisions li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid color-mix(in oklch, var(--rev) 22%, transparent);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.revisions li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 8px;
  background: var(--rev);
  transform: translateY(-0.05em) rotate(-14deg);
}

/* Entry point: the trailhead. */
.start { margin-top: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
.start__mark { grid-column: 1; grid-row: 1; width: 22px; height: 22px; margin-top: 0.35rem; }
.start__mark circle { fill: var(--collar); stroke: var(--ink); stroke-width: 1.8; }
.start__title {
  grid-column: 1 / span 7;
  grid-row: 1;
  padding-left: 2.25rem;
  font-size: var(--step-2);
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.2;
  text-wrap: balance;
}
.start__body { grid-column: 8 / span 5; grid-row: 1; color: var(--ink); }
.start__body > * + * { margin-top: 0.75rem; }
.start::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: start; border-top: 1px solid var(--ink); }
.start > * { padding-top: 1.75rem; }
.start > .start__mark { padding-top: 0; margin-top: calc(1.75rem + 0.35rem); }

/* How it works: four benchmarks on one route. */
.route-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  position: relative;
  counter-reset: step;
}
.route-steps::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12px;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(to right, var(--route) 0 10px, transparent 10px 16px);
}
.route-steps li { position: relative; counter-increment: step; padding-right: 0.5rem; }
.route-steps__mark { width: 26px; height: 26px; position: relative; }
.route-steps__mark path { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; paint-order: stroke; }
.route-steps h3 {
  margin-top: 1.1rem;
  font-size: 1.25rem;
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.2;
}
.route-steps h3::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.route-steps p { margin-top: 0.5rem; color: var(--ink); max-width: 22rem; }

/* Clients. */
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.clients__note { grid-column: 7 / span 6; align-self: end; color: var(--ink-2); }
.clients {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
  border: 1px solid var(--ink);
  background: var(--collar);
}
.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.25rem 1.5rem;
}
.clients__item + .clients__item { border-left: 1px solid var(--rule-soft); }
.clients__item img {
  width: auto;
  height: auto;
  max-width: min(100%, 10rem);
  max-height: 3rem;
  object-fit: contain;
}
/* Haynes & Company's artwork is white on transparent; inverted here so it reads black on white. */
.clients__item--invert img { filter: invert(1); }

/* About. */
.about__body { grid-column: 1 / span 7; }

/* FAQ. */
.faq { grid-column: 1 / span 8; border-top: 2px solid var(--ink); }
.faq__cta { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-size: 1.125rem;
  font-stretch: 106%;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.65rem;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq__answer { padding: 0 2.5rem 1.4rem 0; max-width: 40rem; }
.faq__answer a { text-decoration-color: var(--relief-index); }

/* Final call to action. */
.section--close {
  background: var(--collar);
  border-top: 1px solid var(--ink) !important;
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}
.close__title {
  grid-column: 1 / span 8;
  font-size: var(--step-4);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.close__call { grid-column: 1 / span 6; grid-row: 2; }
.close__body { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.45; }
.close__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

/* The note form beside the call: quieter than the route button it sits next to. */
.close__form { grid-column: 8 / span 5; grid-row: 2; align-self: start; margin-top: 1.6rem; }
.contact-form {
  display: grid;
  gap: 1.1rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.contact-form__title { font-size: var(--step-1); font-stretch: 108%; font-weight: 750; line-height: 1.25; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.field__hint { margin-top: -0.15rem; font-size: var(--step--1); color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6em 0.75em;
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  background: var(--collar);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.practice .field input:focus-visible, .practice .field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px color-mix(in oklch, var(--wood) 80%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--route-deep); }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-width: 7.5rem; }
.button--quiet:hover { background: var(--paper); }
.button--quiet:active { transform: translateY(1px); }
.contact-form[aria-busy="true"] .button--quiet { cursor: progress; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.contact-form__status { font-size: 0.9375rem; font-weight: 600; text-wrap: pretty; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { color: var(--route-deep); }

.contact-page__form { grid-column: 1 / span 6; }
.contact-page__call {
  grid-column: 8 / span 5;
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.contact-page__call p { max-width: 26rem; }

/* ---------- footer collar ---------- */
.collar--foot { position: static; border-bottom: 0; }
.collar__inner--foot {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem clamp(24px, 4vw, 64px);
  padding-block: 2.25rem 2.5rem;
}
.sheet-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1.25rem var(--gap);
  font-size: 0.875rem;
  line-height: 1.5;
}
.sheet-notes dt { font-size: 0.6875rem; color: var(--ink-2); margin-bottom: 0.35rem; }
.sheet-notes dd { max-width: 40rem; }
.collar__legal { grid-column: 2; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(5rem, 4rem + 6vw, 10rem); }
.lost h1 { grid-column: 1 / span 8; font-size: var(--step-4); font-stretch: 112%; font-weight: 800; line-height: 0.98; letter-spacing: -0.028em; }
.lost p { grid-column: 1 / span 6; margin-top: 1.25rem; font-size: var(--step-1); }
.lost .close__actions { margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 7; }
  .survey-map--diagram { grid-column: 1 / span 12; }
  .routes__side { grid-column: 1 / span 12; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--gap); }
  .routes__more { grid-column: 2; }
  .costs li, .costs li:nth-child(4) { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Copy, then the map at its own aspect, then the legend under it. */
  .hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
  .hero::before { display: none; }
  .hero__inner { display: contents; }
  .hero__copy { order: 1; max-width: 38rem; padding: 2.5rem var(--pad) 0; }
  .survey-map--hero {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 1.2;
    margin-top: 2.25rem;
    border-top: 1px solid var(--ink);
  }

  .page-head__title, .page-head__lede, .faq { grid-column: 1 / -1; }

  .where__title, .where__lede, .where__close, .where__map { grid-column: 1 / -1; grid-row: auto; }
  .explain__title, .explain__body, .deadlines__map, .deadlines__aside, .deadlines__sources { grid-column: 1 / -1; }
  .explain__body { margin-top: 1.25rem; }
  .deadlines__aside { margin-top: 1.5rem; }
  .where__map { margin-top: 2rem; }
  .survey-map--hero .map-label--dest { font-size: 36px; }
  .survey-map--hero .map-label--sub { font-size: 30px; }
  .survey-map--hero .map-label--wide { display: none; }
  .survey-map--hero .map-label--narrow { display: inline; }
  .survey-map--hero .map-label { stroke-width: 7px; }
  .section__title--side, .section__title--wide, .section__body--side,
  .about__body, .faq, .clients__note, .appsec__title, .appsec__body,
  .start__title, .start__body, .close__title, .close__call, .close__form { grid-column: 1 / -1; }
  .close__form { grid-row: auto; margin-top: 3.5rem; }
  .contact-page__form, .contact-page__call { grid-column: 1 / -1; }
  .contact-page__call { margin-top: 3.5rem; }
  .section__title--side { margin-bottom: 1.75rem; }
  .clients__note { margin-top: 0.5rem; }
  .appsec__body { margin-top: 1rem; }
  .start__body { margin-top: 0.75rem; grid-row: auto; }

  .package { grid-column: 1 / -1; }
  .package + .package { margin-top: 3rem; }
  .costs h3, .costs p { grid-column: 1 / -1; }
  .start__title { grid-column: 1 / -1; }

  .route-steps { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .route-steps::before {
    top: 12px; bottom: 12px; left: 11px; right: auto; width: 3px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--route) 0 10px, transparent 10px 16px);
  }
  .route-steps li { display: grid; grid-template-columns: 26px 1fr; column-gap: 1rem; }
  .route-steps__mark { grid-row: 1 / span 2; }
  .route-steps h3 { margin-top: 0; }
  .route-steps p { grid-column: 2; }

  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__item + .clients__item { border-left: 0; }
  .clients__item { border-bottom: 1px solid var(--rule-soft); }
  .clients__item:nth-child(even) { border-left: 1px solid var(--rule-soft); }
  .clients__item:last-child { grid-column: 1 / -1; border-bottom: 0; border-left: 0; }

  .collar__inner--foot { grid-template-columns: 1fr; }
  .sheet-notes { grid-template-columns: 1fr; }
  .collar__legal { grid-column: 1; }
}

@media (max-width: 700px) {
  .routes__side { grid-template-columns: 1fr; }
  .routes__more { grid-column: 1; }
  .survey-map--diagram .map-label--dest { font-size: 19px; }
  .survey-map--diagram .map-label--sub, .survey-map--diagram .map-label--bm, .survey-map--diagram .map-label--rev { display: none; }
  .survey-map--diagram .map-label { stroke-width: 6px; }
  .offers__item { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .offers__time { grid-column: 2; }

  .place-notes li { grid-template-columns: 1fr; }
  .revisions { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  /* Too small to label on a phone, so the security-work blocks drop out too. */
  .survey-map--diagram .map-revisions { display: none; }
}

@media (max-width: 360px) {
  .collar__inner { gap: 8px; padding-inline: 12px; }
  .wordmark { gap: 0.35rem; }
  .button--compact { padding-inline: 0.55em; font-size: 0.75rem; }
}
