:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #211c1d;
  background: #f7f5f2;
  --surface: #fffdfa;
  --ink-muted: #625859;
  --rule: #dcd4cf;
  --red: #a51f30;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.wrap { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-inner, .footer, .service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.masthead-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.dw { display: inline-block; background: #242326; color: white; padding: 2px 5px; }
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .875rem; }
.lookup { padding: clamp(28px, 5vw, 54px); margin: 48px 0 12px; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--red); }
.service-line { flex-wrap: wrap; font: .75rem var(--mono); color: var(--ink-muted); }
.stage { border: 1px solid #e6b9bc; background: #fbecee; color: #861d2a; padding: 4px 8px; }
h1 { margin: 22px 0 8px; font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.025em; }
p { margin: 0; color: var(--ink-muted); line-height: 1.6; }
form { margin-top: 26px; }
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .875rem; }
.field { display: flex; gap: 8px; }
input, button { min-height: 48px; padding: 10px 13px; border-radius: 3px; font: inherit; }
input { flex: 1; min-width: 0; border: 1px solid #9b8d8a; background: #fff; }
button { background: var(--red); color: #fff; border: 1px solid var(--red); font-weight: 700; white-space: nowrap; cursor: pointer; }
button:hover { background: #831a27; }
button:disabled { opacity: .65; cursor: wait; }
.result { margin-top: 12px; font-size: .875rem; }
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 36px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: #ece6e1; }
td { background: var(--surface); }
code { font: .875rem var(--mono); color: var(--red); overflow-wrap: anywhere; }
dl { margin: 0; padding: 12px; background: #ece6e1; }
dt { margin-bottom: 4px; font-size: .75rem; font-weight: 700; }
dd { margin: 0; }
ol { margin: 12px 0 0; padding-left: 24px; color: var(--ink-muted); line-height: 1.65; }
.footer { padding: 22px 0; color: var(--ink-muted); font-size: .8rem; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px 16px; }
  nav { gap: 8px 16px; }
  .lookup { margin-top: 24px; padding: 20px; }
  .section { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
}
@media (max-width: 380px) {
  .field { flex-direction: column; }
  input { width: 100%; }
}
