:root {
  --ink: #182126;
  --ivory: #f3efe6;
  --paper: #fffdf7;
  --orange: #f26a32;
  --orange-dark: #b94016;
  --steel: #bfd5dc;
  --steel-deep: #7898a3;
  --gray: #8d999b;
  --red: #a33d31;
  --green: #2f6955;
  --line: rgba(24, 33, 38, 0.22);
  --muted: #566267;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(24, 33, 38, 0.12);
  --shadow-small: 0 7px 22px rgba(24, 33, 38, 0.1);
  --radius-small: 0.35rem;
  --radius: 0.8rem;
  --radius-large: 1.35rem;
  --content: 74rem;
  --heading: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 2.9rem, rgba(163, 61, 49, 0.1) 2.9rem 3rem, transparent 3rem),
    repeating-linear-gradient(0deg, rgba(24, 33, 38, 0.025) 0 1px, transparent 1px 2.25rem),
    var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 90% 8%, rgba(191, 213, 220, 0.55), transparent 32rem);
  content: "";
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

a {
  color: var(--orange-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 0.2rem solid var(--orange);
  outline-offset: 0.2rem;
}

::selection {
  color: var(--white);
  background: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  font-family: var(--heading);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.85rem, 7vw, 6.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.1rem);
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h4 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell,
.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 50rem);
}

.eyebrow,
.kicker,
.field-hint,
.meta-label,
.phase-label,
.ticket-number,
.status-stamp,
.section-index {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow,
.kicker,
.section-index {
  color: var(--orange-dark);
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.55;
}

.small,
.fine-print {
  color: var(--muted);
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: rgba(24, 33, 38, 0.96);
  border-bottom: 0.22rem solid var(--orange);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.8rem;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-name {
  overflow: hidden;
  font-family: var(--heading);
  font-size: clamp(0.92rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-small);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav,
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-small);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
  color: var(--ink);
  background: var(--orange);
}

.site-nav .nav-cta:hover {
  color: var(--ink);
  background: #ff8150;
}

.phase-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.phase-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-list a,
.phase-list span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem;
  color: var(--muted);
  border-right: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.phase-list li:last-child a,
.phase-list li:last-child span {
  border-right: 0;
}

.phase-list [aria-current="step"] {
  color: var(--ink);
  background: var(--steel);
}

.site-main {
  overflow: clip;
}

.hero,
.page-hero {
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 6rem);
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy,
.page-hero-copy {
  grid-column: 1 / span 7;
}

.hero-media,
.page-hero-media {
  position: relative;
  grid-column: 9 / -1;
}

.hero-media::before,
.page-hero-media::before {
  position: absolute;
  z-index: -1;
  inset: -1rem 1.4rem 1.4rem -1rem;
  background: var(--steel);
  border: 1px solid var(--ink);
  content: "";
  transform: rotate(-2deg);
}

.hero-media img,
.page-hero-media img,
.editorial-figure img {
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
  border: 0.35rem solid var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img,
.page-hero-media img {
  aspect-ratio: 4 / 5;
}

.hero-media figcaption,
.page-hero-media figcaption,
.editorial-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-actions,
.action-row,
.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.button,
button.button,
input[type="submit"] {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: 0.2rem 0.2rem 0 var(--orange);
  font-family: var(--mono);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover {
  color: var(--white);
  background: #2a383f;
  transform: translate(-0.08rem, -0.08rem);
  box-shadow: 0.32rem 0.32rem 0 var(--orange);
}

.button-primary {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--ink);
  box-shadow: 0.2rem 0.2rem 0 var(--ink);
}

.button-primary:hover {
  color: var(--ink);
  background: #ff8150;
  box-shadow: 0.32rem 0.32rem 0 var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--steel);
  box-shadow: none;
}

.button-danger {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: none;
}

.button-quiet {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 0.7rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.section-compact {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-dark .lede,
.section-dark .small,
.section-dark .fine-print {
  color: rgba(255, 255, 255, 0.72);
}

.section-steel {
  background: var(--steel);
  border-block: 1px solid var(--ink);
}

.section-paper {
  background: rgba(255, 253, 247, 0.78);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(12rem, 4fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line);
}

.section-heading > :last-child {
  justify-self: end;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2,
.grid-3,
.grid-4,
.tool-grid,
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.tool-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.service-ticket,
.tool-card,
.info-card,
.result-card,
.worksheet,
.notice,
.faq-item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.service-ticket,
.tool-card,
.info-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.service-ticket::after,
.tool-card::after {
  position: absolute;
  right: 1.2rem;
  bottom: 0.9rem;
  width: 2.5rem;
  border-bottom: 0.3rem solid var(--orange);
  content: "";
}

.ticket-number {
  display: inline-grid;
  min-width: 2.3rem;
  min-height: 2.3rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card p {
  color: var(--muted);
}

.tool-card .text-link {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.phase-tab {
  display: inline-flex;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  align-items: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phase-tab.is-current,
.phase-tab[aria-current="step"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.process-line,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  counter-reset: repair-step;
}

.process-line li {
  position: relative;
  min-height: 8rem;
  padding: 3.75rem 1rem 1rem;
  border-top: 0.25rem solid var(--ink);
  counter-increment: repair-step;
}

.process-line li::before {
  position: absolute;
  top: -1.25rem;
  left: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: counter(repair-step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.process-line li + li {
  margin-top: 0;
}

.process-line strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
  line-height: 1.1;
}

.timeline {
  border-left: 2px solid var(--ink);
}

.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 2rem 2rem;
}

.timeline li::before {
  position: absolute;
  top: 0.28rem;
  left: -0.52rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(17rem, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.tool-sidebar {
  position: sticky;
  top: 7rem;
}

.form-panel,
.worksheet {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.form-section + .form-section {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.form-grid .full,
.field-full {
  grid-column: 1 / -1;
}

.field,
.choice-field {
  min-width: 0;
}

.field > label,
.field-label,
legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.required-marker {
  color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-small);
  box-shadow: inset 0 1px 2px rgba(24, 33, 38, 0.06);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange-dark);
  outline: 0.18rem solid rgba(242, 106, 50, 0.28);
  outline-offset: 0;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 0.15rem rgba(163, 61, 49, 0.15);
}

.field-hint {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: none;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-list,
.checklist {
  display: grid;
  gap: 0.65rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice,
.check-row {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-height: 3rem;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.choice:hover,
.check-row:hover {
  background: var(--white);
  border-color: var(--steel-deep);
}

.choice input,
.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--orange-dark);
}

.choice strong,
.check-row strong {
  display: block;
  line-height: 1.35;
}

.choice small,
.check-row small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.4;
}

.privacy-strip,
.storage-status,
.notice {
  padding: 1rem 1.15rem;
}

.privacy-strip,
.storage-status {
  margin-bottom: 1.25rem;
  color: var(--muted);
  background: rgba(191, 213, 220, 0.35);
  border-left: 0.3rem solid var(--steel-deep);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-size: 0.9rem;
}

.storage-status[data-state="memory"] {
  background: rgba(242, 106, 50, 0.12);
  border-left-color: var(--orange);
}

.notice {
  margin-block: 1.25rem;
  border-left: 0.4rem solid var(--steel-deep);
}

.notice-warning {
  background: #fff5e7;
  border-left-color: var(--orange);
}

.notice-danger {
  background: #fff0ed;
  border-left-color: var(--red);
}

.notice-success {
  background: #edf7f2;
  border-left-color: var(--green);
}

.notice h2,
.notice h3,
.notice h4 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.result-card {
  margin-top: 2rem;
  overflow: hidden;
}

.result-card[hidden] {
  display: none;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  color: var(--white);
  background: var(--ink);
}

.result-header h2,
.result-header h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.result-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.status-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: var(--steel);
  border: 1px solid currentColor;
  border-radius: var(--radius-small);
  transform: rotate(-1deg);
}

.status-stamp[data-tone="warning"] {
  background: #ffd49d;
}

.status-stamp[data-tone="danger"] {
  color: var(--white);
  background: var(--red);
}

.status-stamp[data-tone="success"] {
  color: var(--white);
  background: var(--green);
}

.definition-list,
.summary-list {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.definition-list dt,
.definition-list dd,
.summary-list dt,
.summary-list dd {
  margin: 0;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px dashed var(--line);
}

.definition-list dt,
.summary-list dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.definition-list dd,
.summary-list dd {
  overflow-wrap: anywhere;
}

.summary-section {
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--line);
}

.summary-section:last-child {
  border-bottom: 0;
}

.summary-section h3 {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.summary-section h3 .section-index {
  flex: 0 0 auto;
}

.blank-line {
  min-height: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.technical-diagram {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.plate-schematic {
  position: relative;
  display: grid;
  width: min(100%, 30rem);
  min-height: 16rem;
  margin: 1.25rem auto;
  place-items: center;
}

.plate-shape {
  display: grid;
  width: 82%;
  min-height: 8.5rem;
  place-items: center;
  color: var(--ink);
  background: var(--ivory);
  border: 0.35rem solid var(--gray);
  border-radius: 0.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-shape {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 54%;
  min-height: 4.4rem;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 0.3rem solid var(--white);
  border-radius: 2rem 2rem 0.65rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.diagram-note {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.editorial-figure {
  margin: 0;
}

.editorial-figure img {
  max-height: 32rem;
}

.editorial-figure.portrait img {
  aspect-ratio: 4 / 5;
}

.editorial-figure.landscape img {
  aspect-ratio: 3 / 2;
}

.editorial-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

caption {
  padding: 0.8rem;
  font-weight: 800;
  text-align: left;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

tbody tr:nth-child(even) {
  background: rgba(191, 213, 220, 0.18);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  min-height: 3.5rem;
  padding: 1rem 3rem 1rem 1.15rem;
  cursor: pointer;
  font-family: var(--heading);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.15rem;
  width: 1.5rem;
  height: 1.5rem;
  content: "+";
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.45rem;
  text-align: center;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--orange-dark);
}

.faq-answer {
  padding: 0 1.15rem 1.2rem;
  color: var(--muted);
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-large);
}

.contact-card a {
  color: var(--orange);
}

.site-footer {
  padding: 4rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
  border-top: 0.35rem solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(8rem, 1fr));
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.noscript-note {
  padding: 1rem;
  color: var(--ink);
  background: #ffd49d;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 68rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem max(1rem, calc((100% - var(--content)) / 2));
    background: var(--ink);
    border-bottom: 0.2rem solid var(--orange);
  }

  .site-nav.is-open,
  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .site-nav a {
    width: 100%;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .tool-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.25rem;
  }

  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  body {
    background:
      repeating-linear-gradient(0deg, rgba(24, 33, 38, 0.025) 0 1px, transparent 1px 2.25rem),
      var(--ivory);
  }

  .site-shell,
  .container {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .phase-list {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
    scroll-snap-type: x proximity;
  }

  .phase-list li {
    scroll-snap-align: start;
  }

  .hero-grid,
  .page-hero-grid,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .page-hero-copy,
  .hero-media,
  .page-hero-media {
    grid-column: 1;
  }

  .hero-media,
  .page-hero-media {
    width: min(100%, 30rem);
    margin-top: 1rem;
  }

  .section-heading > :last-child {
    justify-self: start;
  }

  .grid-12,
  .grid-2,
  .grid-3,
  .grid-4,
  .tool-grid,
  .card-grid,
  .form-grid,
  .choice-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .process-line {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 1.2rem;
    border-left: 0.25rem solid var(--ink);
  }

  .process-line li {
    min-height: auto;
    padding: 0 0 1.8rem 2.5rem;
    border-top: 0;
  }

  .process-line li::before {
    top: 0;
    left: -2.45rem;
  }

  .definition-list,
  .summary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .definition-list dt,
  .summary-list dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .definition-list dd,
  .summary-list dd {
    padding-top: 0.3rem;
  }

  .button,
  button.button,
  input[type="submit"] {
    min-height: 3.15rem;
  }

  .action-row .button,
  .form-actions .button {
    flex: 1 1 14rem;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .responsive-table tr {
    margin: 0.75rem;
    padding: 0.7rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    padding: 0.5rem;
    border-bottom: 1px dashed var(--line);
  }

  .responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 34rem) {
  h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.7rem);
  }

  .site-nav ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions,
  .action-row,
  .form-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .action-row .button,
  .form-actions .button,
  .result-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: auto;
    margin: 0.6in;
  }

  :root {
    --ink: #000000;
    --paper: #ffffff;
    --ivory: #ffffff;
    --line: rgba(0, 0, 0, 0.35);
  }

  body {
    min-width: 0;
    color: #000;
    background: #fff;
    font-size: 10.5pt;
  }

  body::before,
  .site-header,
  .phase-bar,
  .site-footer,
  .hero-media,
  .page-hero-media,
  .editorial-figure,
  .technical-diagram,
  .hero-actions,
  .action-row,
  .form-actions,
  .result-actions,
  .button,
  button,
  .no-print,
  .nav-toggle,
  noscript {
    display: none !important;
  }

  .site-shell,
  .container,
  .narrow {
    width: 100%;
    max-width: none;
  }

  .hero,
  .page-hero,
  .section,
  .section-compact {
    padding: 0.25in 0;
  }

  .hero-grid,
  .page-hero-grid,
  .tool-layout,
  .section-heading,
  .grid-12,
  .grid-2,
  .grid-3,
  .grid-4,
  .tool-grid,
  .card-grid,
  .form-grid {
    display: block;
  }

  h1 {
    max-width: none;
    font-size: 28pt;
  }

  h2 {
    font-size: 20pt;
  }

  h3 {
    font-size: 14pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--body);
    font-size: 8pt;
    font-weight: 400;
  }

  .service-ticket,
  .tool-card,
  .info-card,
  .result-card,
  .worksheet,
  .notice,
  .faq-item,
  .form-panel {
    margin: 0 0 0.18in;
    padding: 0.14in;
    break-inside: avoid;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
  }

  .result-card[hidden],
  .print-show {
    display: block !important;
  }

  .result-header {
    padding: 0.1in;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .status-stamp {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #000;
  }

  .form-section,
  .summary-section,
  .check-row,
  .choice {
    break-inside: avoid;
  }

  input,
  select,
  textarea {
    color: #000;
    background: #fff;
    border: 1px solid #000;
    box-shadow: none;
  }

  input[type="checkbox"],
  input[type="radio"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .table-wrap {
    overflow: visible;
    border-color: #000;
  }

  table {
    font-size: 8.5pt;
  }

  th {
    color: #000;
    background: #fff;
    border: 1px solid #000;
  }

  td {
    border: 1px solid #000;
  }

  .faq-item:not([open]) .faq-answer {
    display: block;
  }

  .faq-item summary::after {
    display: none;
  }

  .page-break-before {
    break-before: page;
  }

  .page-break-after {
    break-after: page;
  }
}

/* Production markup integration */
.wrap,
.header-inner,
.footer-grid,
.footer-bottom {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.brand > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.18rem;
}

.brand strong {
  overflow: hidden;
  max-width: 30rem;
  font-family: var(--heading);
  font-size: clamp(0.88rem, 1.35vw, 1.1rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.primary-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.55rem 0.62rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-small);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.independence-strip {
  padding: 0.5rem 1rem;
  color: var(--ink);
  background: var(--steel);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.independence-strip p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.page-heading {
  padding-top: clamp(2.75rem, 6vw, 5.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2.5rem);
  border-bottom: 1px dashed var(--line);
}

.page-heading h1 {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: clamp(2.9rem, 5.8vw, 5.65rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  grid-column: auto;
}

.button-row,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
}

.microcopy,
.field-help {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.section-dark .microcopy,
.section-dark .field-help {
  color: rgba(255, 255, 255, 0.7);
}

.editorial-figure {
  position: relative;
}

.editorial-figure::before {
  position: absolute;
  z-index: -1;
  inset: -0.8rem 1rem 1rem -0.8rem;
  background: var(--steel);
  border: 1px solid var(--ink);
  content: "";
  transform: rotate(-1.5deg);
}

.editorial-figure img {
  width: 100%;
  object-fit: cover;
}

.editorial-figure figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.editorial-figure figcaption span {
  padding: 0.12rem 0.35rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 0.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-nav {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.phase-nav a {
  display: flex;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.7rem;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-right: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.phase-nav a:last-child {
  border-right: 0;
}

.phase-nav a[aria-current="step"] {
  color: var(--ink);
  background: var(--steel);
}

.phase-nav span,
.section-number {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.split-panel,
.before-after,
.summary-preview,
.contact-band,
.article-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.mount-diagram {
  display: grid;
  min-height: 23rem;
  padding: 2rem;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.diagram-tag {
  z-index: 1;
  display: grid;
  width: min(80%, 20rem);
  min-height: 8rem;
  padding: 1rem;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 0.35rem solid var(--white);
  border-radius: 4rem 4rem 1rem 1rem;
  font-family: var(--mono);
  text-align: center;
}

.diagram-tag strong {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
}

.diagram-plate {
  width: min(92%, 26rem);
  margin-top: -1.5rem;
  padding: 2.2rem 1rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 0.35rem solid var(--gray);
  border-radius: 0.35rem;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.mount-diagram > p {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  text-transform: uppercase;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ticket {
  position: relative;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.ticket > span {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.ticket h3 {
  font-size: 1.4rem;
}

.ticket p {
  color: var(--muted);
}

.paper-band {
  background: rgba(255, 253, 247, 0.72);
  border-block: 1px solid var(--line);
}

.before-after > div {
  align-self: stretch;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.tab-label,
.ticket-label {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.check-list {
  padding-left: 1.15rem;
}

.check-list li::marker {
  color: var(--orange-dark);
}

.text-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paper-sheet,
.paper-report,
.summary-index,
.result-panel,
.callout {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.paper-sheet dl > div,
.record-list__row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}

.paper-sheet dt,
.record-list__term {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paper-sheet dd,
.record-list__value {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-band form {
  padding: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
}

.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: 2rem;
  align-items: start;
  padding-block: clamp(2rem, 4vw, 4rem);
}

.privacy-chip,
.safety-note {
  margin: 0;
  padding: 0.9rem 1rem;
  color: var(--muted);
  background: rgba(191, 213, 220, 0.38);
  border-left: 0.3rem solid var(--steel-deep);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.tool-layout {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.tool-aside {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1.25rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 0.4rem;
}

.form-intro {
  color: var(--muted);
}

legend {
  padding: 0;
  font-family: var(--heading);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.choice-card,
.check-card,
.consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.85rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.choice-card:hover,
.check-card:hover,
.consent:hover {
  background: var(--white);
  border-color: var(--steel-deep);
}

.choice-card input,
.check-card input,
.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--orange-dark);
}

.choice-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.4;
}

.check-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.consent {
  margin-top: 1.25rem;
}

.result-panel {
  border-top: 0.4rem solid var(--steel-deep);
}

.result-content,
[data-tool-result] {
  overflow-wrap: anywhere;
}

.result-heading {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.result-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.status-stamp {
  display: inline-flex;
  max-width: 100%;
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  background: var(--steel);
  border: 1px solid var(--ink);
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

.result-note,
.empty-state {
  color: var(--muted);
}

.result-followup {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.callout {
  margin-top: 1.25rem;
  box-shadow: none;
}

.callout h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.callout-blue {
  background: rgba(191, 213, 220, 0.45);
  border-color: var(--steel-deep);
}

.callout-warning {
  background: #fff1ce;
  border-color: #a86d13;
}

.callout-danger {
  background: #fff0ec;
  border-color: var(--red);
}

.form-status:not(:empty) {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--steel);
  border-left: 0.3rem solid var(--steel-deep);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-weight: 700;
}

.form-status[data-message-type="error"] {
  color: var(--red);
  background: #fff0ec;
  border-color: var(--red);
}

.form-status:empty {
  display: none;
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.summary-index {
  position: sticky;
  top: 6.5rem;
}

.summary-index ol {
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.summary-index li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.86rem;
}

.summary-index li span {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.stacked {
  align-items: stretch;
  flex-direction: column;
}

.paper-report {
  border-top: 0.4rem solid var(--orange);
}

.summary-section {
  padding-block: 1.5rem;
  border-top: 1px dashed var(--line);
  break-inside: avoid;
}

.summary-section__title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.summary-trip {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
}

.article-hero {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.article-hero .editorial-figure img {
  max-height: 28rem;
}

.longform,
.policy,
.faq-list,
.not-found {
  width: min(calc(100% - 2.5rem), 58rem);
  margin-inline: auto;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.longform > section,
.policy > section {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px dashed var(--line);
}

.longform h2,
.policy h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.section-number {
  display: block;
  margin-bottom: 0.7rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.faq-list summary {
  position: relative;
  min-height: 3.6rem;
  padding: 1rem 3.5rem 1rem 1.15rem;
  cursor: pointer;
  font-family: var(--heading);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 1.15rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--orange-dark);
}

.faq-list details > p {
  padding: 0 1.15rem 1.25rem;
  color: var(--muted);
}

.policy > .lede {
  margin-bottom: 3rem;
}

.not-found {
  display: grid;
  gap: 2rem;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}

.process-list span {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.site-footer address {
  font-style: normal;
}

@media (max-width: 75rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.75rem max(1.25rem, calc((100% - var(--content)) / 2));
    background: var(--ink);
    border-bottom: 0.2rem solid var(--orange);
  }

  .primary-nav[data-open="true"] {
    display: grid;
  }

  .primary-nav a {
    width: 100%;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .wrap,
  .header-inner,
  .footer-grid,
  .footer-bottom,
  .longform,
  .policy,
  .faq-list,
  .not-found {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand small {
    display: none;
  }

  .page-heading h1 {
    font-size: clamp(2.55rem, 11vw, 4.5rem);
  }

  .hero,
  .split-panel,
  .before-after,
  .summary-preview,
  .contact-band,
  .article-hero,
  .tool-intro,
  .summary-layout,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .field-wide {
    grid-column: 1;
  }

  .phase-nav {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
  }

  .tool-aside,
  .summary-index {
    position: static;
  }

  .paper-sheet dl > div,
  .record-list__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .primary-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand strong {
    max-width: 13rem;
    font-size: 0.78rem;
  }

  .ticket-grid,
  .choice-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row,
  .source-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button,
  .source-row .button {
    width: 100%;
  }
}

@media print {
  .primary-nav,
  .phase-nav,
  .independence-strip,
  .editorial-figure,
  .tool-intro,
  .summary-index,
  .contact-band,
  .mount-diagram {
    display: none !important;
  }

  .wrap,
  .header-inner,
  .footer-grid,
  .footer-bottom,
  .longform,
  .policy,
  .faq-list,
  .not-found {
    width: 100%;
    max-width: none;
  }

  .page-heading {
    padding: 0 0 0.18in;
  }

  .tool-layout,
  .summary-layout,
  .field-grid,
  .split-panel,
  .before-after,
  .summary-preview {
    display: block;
  }

  .tool-aside,
  .paper-report {
    position: static;
  }

  .result-panel,
  .paper-report,
  .paper-sheet,
  .callout {
    margin-bottom: 0.15in;
    padding: 0.14in;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
  }
}
