:root {
  --ink: #1d1d22;
  --navy: #384057;
  --navy-deep: #252b3c;
  --paper: #f7f5ef;
  --cream: #eeeee9;
  --white: #fff;
  --muted: #62656a;
  --line: #d5d5cf;
  --gold: #d6b875;
  --green: #28634c;
  --red: #9a3f39;
  --amber: #86631d;
  --content: 1500px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 116px;
  padding: 22px max(24px, calc((100% - var(--content)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  background: var(--navy);
}

.site-header .brand { display: flex; align-items: center; gap: 13px; font-size: 22px; font-weight: 700; line-height: .92; text-decoration: none; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 15px; letter-spacing: .06em; }
.site-header > div { display: grid; gap: 3px; text-align: right; }
.site-header > div span { color: rgba(255, 255, 255, .7); font-size: 13px; }

.hero, .detail-hero {
  padding: 76px max(24px, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--navy-deep);
}

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 76px; align-items: end; }
.hero h1, .detail-hero h1, .message h1, .loading-page h1 { margin: 10px 0 20px; font: 400 clamp(58px, 8vw, 118px)/.92 var(--serif); }
.hero > div > p:last-child { max-width: 780px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(19px, 2vw, 27px); }
.hero aside { padding: 26px 0 6px 32px; border-left: 1px solid rgba(255,255,255,.3); }
.hero aside strong { color: var(--gold); }
.hero aside p { margin: 12px 0 0; color: rgba(255,255,255,.72); }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow, .detail-hero .eyebrow { color: rgba(255,255,255,.62); }

.search-section, .results, .detail-section, .message, .loading-page {
  padding: 66px max(24px, calc((100% - var(--content)) / 2));
}
.search-section { background: var(--cream); }
.results { min-height: 340px; background: var(--paper); }
.heading { margin-bottom: 30px; }
.heading h2, .results-heading h2 { margin: 5px 0 0; font: 400 clamp(38px, 4vw, 62px)/1 var(--serif); }

#evidence-search { display: grid; grid-template-columns: minmax(270px, 2fr) repeat(4, minmax(145px, .8fr)) auto; gap: 15px; align-items: end; }
#evidence-search label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; }
#evidence-search input, #evidence-search select { width: 100%; min-height: 52px; padding: 0 13px; border: 1px solid #aaa; border-radius: 2px; color: var(--ink); background: var(--white); font-weight: 400; }
#evidence-search button, .result-card > a, .message > a { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; border-radius: 2px; color: var(--white); background: var(--navy); font-weight: 700; text-decoration: none; cursor: pointer; }
#evidence-search :focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.help { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.error { margin: 14px 0 0; color: var(--red); font-weight: 700; }

.results-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.record-list { display: grid; gap: 14px; }
.result-card { padding: 24px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(500px, 1.8fr) auto; gap: 28px; align-items: center; border: 1px solid var(--line); background: var(--white); }
.result-card h3 { margin: 4px 0 5px; font: 400 29px/1.1 var(--serif); overflow-wrap: anywhere; }
.result-card p:last-child { margin: 0; color: var(--muted); }
.result-card dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 18px; }
.result-card dt, .definition-list dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-card dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.status-accepted i, .status-projected i, .status-completed i { background: var(--green); }
.status-rejected i, .status-failed i { background: var(--red); }

.notice, .warning, .loading { padding: 24px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); }
.warning { border-color: #c5a451; color: #6f5112; background: #fff8e5; }
.loading { display: flex; align-items: center; gap: 20px; }
.loading > i { width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.loading p { margin: 4px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading > i { animation: none; } }

.gateway { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
code, .hash { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.detail-hero > a { display: inline-block; margin-bottom: 52px; color: rgba(255,255,255,.75); }
.detail-hero > div { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.detail-hero > div .eyebrow { width: 100%; }
.detail-hero h1 { margin: 0; overflow-wrap: anywhere; }
.detail-hero > .definition-list { margin-top: 50px; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top-color: rgba(255,255,255,.25); }
.detail-hero > .definition-list > div { border-color: rgba(255,255,255,.17); }
.detail-hero .definition-list dt { color: rgba(255,255,255,.55); }
.detail-section:nth-of-type(even) { background: var(--cream); }
.definition-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.definition-list > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.definition-list dd { margin: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 22px 0; display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 20px; border-bottom: 1px solid var(--line); }
.timeline li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 12px; }
.timeline li p:last-child { margin: 6px 0 0; color: var(--muted); }
.finding-list { display: grid; gap: 12px; }
.finding { padding: 20px; border-left: 4px solid var(--green); background: var(--cream); }
.finding.blocking { border-left-color: var(--red); background: #fff0ee; }
.finding > div { display: flex; justify-content: space-between; gap: 20px; }
.finding h3 { margin: 15px 0 6px; font-size: 16px; }
.finding p { margin: 0; color: var(--muted); }
.projection-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.projection { min-height: 210px; padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.projection h3 { margin: 10px 0 14px; font: 400 30px/1 var(--serif); overflow-wrap: anywhere; }
.projection p { color: var(--muted); }
.facts { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px 14px; align-items: baseline; }
.facts strong { font: 400 40px/1 var(--serif); }

.message { min-height: 560px; }
.message h1, .loading-page h1 { max-width: 950px; font-size: clamp(50px, 7vw, 100px); }
.message > p { max-width: 720px; color: var(--muted); font-size: 19px; }
.message > a { width: max-content; margin-top: 24px; }
.request-id { font-family: ui-monospace, monospace; font-size: 12px !important; }
footer { padding: 42px max(24px, calc((100% - var(--content)) / 2)); display: flex; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.72); background: var(--navy-deep); }
footer p { margin: 0; }

@media (max-width: 1180px) {
  #evidence-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #evidence-search .wide { grid-column: 1 / -1; }
  .result-card { grid-template-columns: 1fr; }
  .result-card dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .result-card > a { justify-self: start; }
}

@media (max-width: 760px) {
  .site-header { min-height: 92px; padding: 18px; }
  .site-header > div { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 18px; }
  .hero aside { padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.3); border-left: 0; }
  .search-section, .results, .detail-section, .message, .loading-page, .detail-hero { padding: 50px 18px; }
  #evidence-search { grid-template-columns: 1fr; }
  #evidence-search .wide { grid-column: auto; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .result-card { padding: 20px 16px; }
  .result-card dl, .definition-list, .detail-hero > .definition-list, .projection-grid { grid-template-columns: 1fr; }
  .detail-hero > .definition-list > div { padding: 15px 0; }
  .facts { grid-template-columns: auto 1fr; }
  footer { padding: 34px 18px; flex-direction: column; }
}
