:root {
  --ink: #102d55;
  --muted: #425a75;
  --teal: #175ab7;
  --line: #cee0f4;
  --paper: #fff;
  --mint: #eaf3ff;
  --gold: #bdddff;
  --blue: #1559b3;
  --navy: #0b3267;
}

body { font-size: 1.0625rem; background: #fff; }
body > header {
  height: auto;
  min-height: 76px;
  padding-block: 10px;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 16px #0b326710;
}
header .brand img { box-shadow: none; }
header .brand small, header .brand .dot { color: var(--blue); }
header .brand small { font-size: .6875rem; }
header nav { gap: clamp(12px, 2vw, 28px); font-size: .9375rem; }
header nav a { color: var(--ink); white-space: nowrap; }
header nav a:hover { color: var(--blue); text-decoration: underline; }

.button, .tabs button, .pagination button {
  min-height: 44px;
  border-radius: 9px;
  font-size: .9375rem;
}
.button { border-color: var(--blue); color: var(--blue); }
.header-download, .button.filled, .policy-input-row .filled {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.header-download:hover, .button.filled:hover, .policy-input-row .filled:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.hero, .connect { background: linear-gradient(116deg, #0b3267, #1763c0); }
.hero { gap: clamp(22px, 4vw, 66px); padding-block: clamp(30px, 5vw, 68px); }
.hero h1, h2 {
  font-family: 'TNIC Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
}
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 4.45rem); line-height: 1.14; }
.hero h1 em { color: #cde6ff; font-style: normal; }
.hero .lead { color: #fff; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.65; }
.hero .eyebrow, .connect .eyebrow, .hero-art figcaption span { color: #d6ebff; }
.hero .live-dot { background: #cde6ff; }
.hero .filled, .connect .button { background: #fff; border-color: #fff; color: var(--navy); }
.hero .filled:hover, .connect .button:hover { background: #dfedff; color: var(--navy); }
.hero .edition { color: #e2efff; font-size: .875rem; flex-wrap: wrap; }
.hero-art { height: clamp(245px, 29vw, 400px); border-radius: 18px; }
.hero-art:after { background: linear-gradient(transparent, #092950ee); }
.hero-art figcaption span { font-size: .75rem; }
.hero-art figcaption b { font-size: 1rem; }
.eyebrow { font-size: .8125rem; letter-spacing: .08em; color: var(--blue); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3, .project-card h3, .reference-card h3, .reader-layout aside h3, .policy-result h3 { font-size: 1.1875rem; }
.quick-access { padding-block: 32px; background: #f4f8fe; }
.quick-access h2 { margin-bottom: 16px; font-size: 1.375rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-grid a {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.quick-grid a:hover { border-color: var(--blue); background: #eaf3ff; }
.quick-grid strong { color: var(--navy); font-size: 1.0625rem; }
.quick-grid span, .stats span { color: var(--muted); font-size: .9375rem; }
.stats strong { color: var(--blue); }
.directory, .projects, .library, .policy-lookup { background: #f3f8ff; }
.policy-lookup { border-color: var(--line); }
.policy-lookup > .section-heading h2 { color: var(--ink); }
.policy-lookup > .section-heading .eyebrow { color: var(--blue); }
.policy-lookup > .section-heading > p { color: var(--muted); }
.policy-panel { box-shadow: 0 6px 22px #0b326710; }
.tabs button[aria-selected=true], .pagination button.current { background: var(--blue); }
tbody tr:hover td { background: #eaf3ff; }
.reader-toolbar { background: var(--navy); }
.reader-canvas { background: #e3efff; }
.section-heading > p, .section-heading > div + div { max-width: 560px; }
.section-heading > p, .section-heading > div + div, .resource-grid p,
.project-card p, .reference-card p, .connect p, .connect-side,
.policy-result p, .policy-result li { font-size: 1rem; }
table, .filters select, .search-field input, .policy-input-row input,
.policy-filter-row select, .directory-actions button, .reader-layout input { font-size: 1rem; }
th { font-size: .875rem; letter-spacing: .035em; }
.source-note, .source-box, .searchbar > span, .date-label, .results-label,
.project-card .tag, .project-card a, .resource-grid a, .reference-card a,
.policy-scope, .policy-examples button, .policy-status, .reader-toolbar,
.reader-layout aside button, .reader-layout aside small, .page-search-label,
.reader-caption, footer { font-size: .9375rem; }
.reader-layout aside button { min-height: 44px; align-items: center; gap: 10px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #427fdb; outline-offset: 3px; }
.reader-toolbar :focus-visible, .hero :focus-visible, .connect :focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
  body > header { flex-wrap: wrap; gap: 8px 16px; }
  header nav { order: 3; flex: 0 0 100%; display: flex; flex-wrap: nowrap; justify-content: start; overflow-x: auto; padding: 4px 0 6px; }
  html { scroll-padding-top: 125px; }

}
@media (max-width: 560px) {
  .hero { gap: 22px; }
  .hero-art { height: 220px; }
  .hero-art figcaption { bottom: 16px; left: 16px; }
  .quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .quick-grid a { padding: 12px; }
  .quick-grid span { font-size: .875rem; }
  .stats > div { gap: 8px; }
  .stats span br { display: none; }
  .button { white-space: normal; }
  .reader-toolbar { flex-wrap: wrap; }
}
@media print {
  body > header, .quick-access { display: none !important; }
}
