:root {
  --navy: #083b69;
  --navy-deep: #052945;
  --blue: #176fa6;
  --sky: #eaf4fb;
  --accent: #f28b22;
  --ink: #14222d;
  --muted: #526472;
  --line: #d8e2e9;
  --white: #ffffff;
  --max: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 760; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: #294252; font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a.active { color: var(--blue); }
.nav-cta { padding: 9px 13px; border-radius: 5px; color: white !important; background: var(--navy); }
.hero { padding-block: 50px; color: white; background: var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; }
.eyebrow { margin: 0 0 8px; color: #9ed6f5; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.eyebrow.blue { color: var(--blue); }
h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 12px; max-width: 800px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.lead { max-width: 720px; margin: 0; color: #d7e7f2; font-size: 1.08rem; }
.hero-note { padding: 18px 20px; border-left: 5px solid var(--accent); background: rgba(5,41,69,.72); }
.hero-note strong, .hero-note span { display: block; }
.hero-note span { color: #c6d9e7; font-size: .93rem; }
.documents { min-height: 620px; padding-block: 66px; }
.document-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
#result-count { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.filters { display: grid; grid-template-columns: 1.7fr 1fr auto; align-items: end; gap: 14px; margin-bottom: 28px; padding: 20px; border: 1px solid var(--line); background: white; }
.filters label { display: grid; gap: 7px; font-size: .82rem; font-weight: 700; }
.filters input, .filters select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #aebdc0; border-radius: 3px; color: var(--ink); background: white; font: inherit; }
.filters button { height: 46px; padding: 0 18px; border: 1px solid #8aa0ad; border-radius: 3px; color: var(--navy); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.filters input:focus, .filters select:focus, .filters button:focus, a:focus-visible { outline: 3px solid rgba(23,111,166,.28); outline-offset: 2px; }
.document-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.document-card { min-height: 220px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--blue); background: white; }
.document-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.document-card p { margin: 0; color: var(--muted); }
.document-card .open-link { align-self: flex-start; margin-top: auto; padding-top: 22px; color: var(--navy); font-weight: 800; text-decoration: none; }
.document-card .open-link:hover { color: var(--blue); text-decoration: underline; }
.empty-state { padding: 65px 20px; border: 1px dashed #9cadb0; text-align: center; background: white; }
.empty-state p { color: var(--muted); }
footer { padding-block: 30px; color: #b9cedd; background: #031f35; font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: white; }
@media (max-width: 980px) {
  .brand span { display: none; }
  nav { gap: 11px; }
  nav a:first-child { display: none; }
}
@media (max-width: 760px) {
  nav a:nth-child(3), nav a:nth-child(5) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .document-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  nav a:nth-child(2) { display: none; }
  .nav-cta { padding: 8px 10px; font-size: .82rem; }
  .filters { grid-template-columns: 1fr; }
  .filters label:first-child { grid-column: auto; }
  .document-heading { align-items: flex-start; flex-direction: column; }
}
