:root{color-scheme:light;--navy:#082541;--text:#172e46;--muted:#4a6075;--blue:#075a9f;--border:#c9d9e9;--soft:#eef5fc;--surface:#fff;--radius:14px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:#f6f9fc;color:var(--text);font:1rem/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-underline-offset:.2em}
:focus-visible{outline:3px solid #a25400;outline-offset:4px}
p{margin:.55rem 0 1rem;max-width:72ch}
h1,h2,h3{margin:0 0 .55em;color:var(--navy);line-height:1.15;letter-spacing:-.025em}
h1{font-size:clamp(2.05rem,5vw,3.5rem)}
h2{font-size:clamp(1.43rem,3vw,1.95rem)}
h3{font-size:1.22rem;margin-top:1rem}
section{margin:0 0 1.6rem}
.frame{width:min(100% - 2rem,70rem);margin-inline:auto}
.skip{position:absolute;top:-5rem;z-index:120;background:#fff;padding:.7rem}
.skip:focus{top:0}
.breadcrumbs ol{list-style:none;padding:0;margin:1rem 0;display:flex;gap:.35rem .65rem;flex-wrap:wrap;font-size:.91rem}
.breadcrumbs li+li::before{content:"/";margin-right:.65rem;color:var(--muted)}
.hero{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) minmax(200px,.74fr);gap:1.4rem;padding:clamp(1.25rem,4vw,2.5rem);border:1px solid var(--border);border-radius:var(--radius);background:#eaf3fc}
.hero p{font-size:1.125rem;color:#28435d;max-width:55ch}
.hero img{width:100%;aspect-ratio:20/11;object-fit:cover;border-radius:12px}
.panel{padding:clamp(1rem,3vw,1.6rem);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));align-items:end;gap:.9rem;margin:0 0 .8rem}
.form-fields{display:grid;gap:1rem;margin:.5rem 0 1.2rem}
label{display:grid;gap:.35rem;color:var(--navy);font-weight:700}
input,select,textarea,button{font:inherit}
input,select,textarea{width:100%;min-height:48px;padding:.52rem .68rem;color:var(--text);border:1px solid #7895b2;border-radius:8px;background:#fff}
textarea{resize:vertical}
.inline-checkbox{display:flex;align-items:center;gap:.65rem;min-height:48px}
.inline-checkbox input{width:1.25rem;height:1.25rem;min-height:0;padding:0;flex:none}
button,.button{display:inline-flex;min-height:48px;padding:.52rem .9rem;align-items:center;justify-content:center;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:white;font-weight:750;text-decoration:none;text-align:center;cursor:pointer}
button:hover,.button:hover{background:#06477e;color:#fff}
button:disabled{opacity:.65;cursor:default}
.secondary{background:#ebf4ff;color:#074c88}
.filters button{width:100%}
fieldset{min-inline-size:0;border:1px solid var(--border);border-radius:8px;margin:0 0 1rem;padding:.8rem 1rem}
fieldset legend{font-weight:750;color:var(--navy)}
.choices{display:flex;align-items:center;gap:.65rem 1rem;flex-wrap:wrap}
.tiles,.state-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.65rem;list-style:none;margin:.7rem 0 0;padding:0}
.tiles li,.state-links li{border:1px solid var(--border);border-radius:8px;padding:0 .8rem;background:white}
.tiles li p{margin:0 0 .85rem}
.tiles a,.state-links a{display:flex;align-items:center;min-height:48px;font-weight:700}
.resource{border-bottom:1px solid var(--border);padding:.42rem 0}
.resource summary{display:list-item;min-height:44px;padding:.55rem 0;cursor:pointer;font-weight:740;color:var(--navy)}
.resource p,.resource pre{margin:.15rem 0 .75rem;max-width:76ch}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:var(--soft);padding:1rem;border-radius:8px}
.results{overflow-wrap:anywhere}
.results:not(:empty){margin:.9rem 0;padding:1rem;background:var(--soft);border-radius:10px}
.results ul,.sources{padding-left:1.25rem}
.results li{margin:.35rem 0}
.checked-date,.private-note,.reviewed{color:var(--muted);font-size:.92rem}
.artifact-items{padding-left:1.35rem;margin:.55rem 0}
.check-label{display:flex;align-items:center;gap:.65rem;min-height:44px}
.check-label input{width:1.13rem;min-height:1.13rem;accent-color:var(--blue)}
.form-message:empty{display:none}
.form-message{color:var(--navy);font-weight:650}
[hidden]{display:none!important}
@media(max-width:650px){.frame{width:calc(100% - 1.25rem)}.hero{grid-template-columns:1fr}.hero picture{display:block;width:min(100%,390px)}.filters{grid-template-columns:1fr}.choices .button,.choices button{flex:1 1 11rem}}
@media print{body{background:white;color:black;font-size:11pt}.breadcrumbs,.hero,.skip,main>section:not(:has(.print-page)),.reviewed,.artifact-form,[data-report-source],.private-note,.panel:has(.print-page)>h2{display:none!important}.frame{width:100%}.panel,.results:not(:empty){padding:0;border:0;background:white}.print-page{display:block}.print-page li{break-inside:avoid}}

.hero-lookup {
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  background: linear-gradient(120deg, #071b34, #0c3357);
  color: white;
  border-color: #0c3357;
  gap: clamp(1.25rem, 5vw, 3.5rem);
}
.hero-lookup > div > h1 { color: #fff; }
.hero-lookup > div > p { color: #e2edfa; }
.lookup-card { margin: 0; color: var(--text); box-shadow: 0 18px 32px #06142635; }
.lookup-card > p { color: #465e76; font-size: .96rem; }
.lookup-card .lookup { display: grid; gap: .8rem; }
.lookup-card button { background: #1275ce; border-color: #1275ce; }
.lookup-card button:hover { background: #1066b4; border-color: #1066b4; }
.lookup-card .lookup-feedback { margin-bottom: 0; }
.lookup-results {
  scroll-margin-top: 165px;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow-wrap: anywhere;
}
.lookup-results > h2:focus { outline: none; }
.record-card {
  margin: 0 0 1rem;
  padding: clamp(.85rem, 3vw, 1.3rem);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7faff;
}
.record-card h3 { margin-top: 0; font-size: clamp(1.22rem, 2.6vw, 1.6rem); }
.record-card h4, .record-card h5 { color: var(--navy); margin: .75rem 0 .4rem; }
.record-card h5 { font-size: .96rem; }
.record-card .checked-date { margin-bottom: .65rem; }
.record-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .7rem .95rem;
  margin: .75rem 0 0;
}
.record-facts > div { position: relative; min-width: 0; padding: .35rem .7rem .6rem; border-radius: 6px; background: #eaf3fc; }
.record-facts dt { display: flex; align-items: center; gap: .25rem; min-height: 30px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.record-facts dd { color: var(--navy); margin: -.15rem 0 0; font-weight: 750; }
.record-facts > div:has(.info-button[aria-expanded="true"]) { z-index: 2; }
.fact-info { display: inline-flex; align-items: center; flex: 0 0 auto; }
.info-button, .info-button:hover {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075a9f;
}
.info-button > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .74rem;
  line-height: 1;
}
.info-button:hover > span, .info-button[aria-expanded="true"] > span {
  background: #075a9f;
  color: white;
  border-color: #075a9f;
}
.info-popover {
  position: absolute;
  z-index: 3;
  top: calc(100% + .25rem);
  left: 0;
  width: min(100%, 25rem);
  padding: .65rem .8rem;
  border: 1px solid #254b70;
  border-radius: 8px;
  background: #082541;
  color: white;
  box-shadow: 0 8px 18px #08254130;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.45;
}
.result-source { position: relative; display: flex; gap: .25rem .5rem; flex-wrap: wrap; align-items: center; }
.result-warning { color: #783900; font-size: .95rem; }
.result-detail > summary { padding-block: 0; }
.result-detail > summary + * { margin-top: .4rem; }
.carrier-record .resource { margin-top: .4rem; border-bottom: 0; }
.filing-entry + .filing-entry { border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .4rem; }
.cargo-note { background: #fff9ea; border-color: #e1ca90; }
.cargo-note .record-facts { margin: 0 0 .35rem; }
.cargo-note .record-facts > div { background: transparent; padding: 0; }
.inline-action, .inline-action:hover {
  display: inline-flex;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.inline-action:hover { color: #06477e; }
.cargo-questions-dialog {
  width: min(42rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: min(42rem, calc(100vh - 1.5rem));
  max-height: min(42rem, calc(100dvh - 1.5rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  box-shadow: 0 22px 60px #06142655;
  overflow: hidden;
}
.cargo-questions-dialog[open] { display: flex; flex-direction: column; }
.cargo-questions-dialog::backdrop { background: #061426aa; }
body:has(.cargo-questions-dialog[open]) { overflow: hidden; }
.cargo-questions-heading {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem clamp(.9rem, 4vw, 1.35rem);
  border-bottom: 1px solid var(--border);
}
.cargo-questions-heading h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.cargo-questions-heading h2:focus { outline: none; }
.cargo-questions-heading button { min-height: 44px; }
.cargo-questions-body { padding: .75rem clamp(.9rem, 4vw, 1.35rem) 1rem; overflow: auto; overscroll-behavior: contain; }
.cargo-questions-body .guide-steps { margin-bottom: 1rem; }
@media print { .cargo-questions-dialog { display: none !important; } }
.lookup-links { gap: 1rem; }
.guide-steps { margin: .8rem 0 0; padding-left: 1.5rem; }
.guide-steps li { padding-left: .3rem; }
.guide-steps li::marker { color: var(--blue); font-weight: 750; }
.guide-steps h3 { margin: .9rem 0 .2rem; }
.guide-steps p { margin: .25rem 0 .8rem; }
@media (max-width: 900px) {
  .lookup-results { scroll-margin-top: 152px; }
}
@media (max-width: 650px) {
  .hero-lookup { grid-template-columns: 1fr; padding: 1rem; }
  .hero-lookup > div > p { margin-bottom: 0; }
  .carrier-record > .record-facts,
  .carrier-record > .filing-entry > .record-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carrier-record > .filing-entry > .record-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .carrier-record .record-facts > div:not(:last-child):nth-child(odd) .info-popover,
  .carrier-record .record-facts > div:nth-child(even) .info-popover {
    width: min(calc(200% + .95rem), 25rem);
  }
  .carrier-record .record-facts > div:nth-child(even) .info-popover { left: auto; right: 0; }
  .carrier-record .resource .record-facts .info-popover { left: 0; right: auto; width: min(100%, 25rem); }
}
