/* FSOtools site styles. Layout language: white top bar with one solid call
   to action; dark centered hero with a search bar; light-gray content bands;
   a deep-blue band of white call-to-action cards; light-gray link-column
   footer. Tokens first; everything else refers to them. */

@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy-950: #0b1a2e;
  --navy-900: #13263f;
  --slate-800: #243447;
  --slate-600: #495867;
  --slate-500: #5f6f80;
  --blue-800: #0d3d82;
  --blue-700: #1452a8;
  --blue-600: #1f6fd6;
  --blue-500: #2f86f0;
  --blue-400: #62a6ff;
  --blue-100: #e4efff;
  --blue-50: #f3f8ff;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #2b3440;
  --ink-2: #4d5b6b;
  --ink-3: #6b7888;
  --line: #dde3ea;
  --ok: #117a65;
  --warn: #8a5a00;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(19, 38, 63, 0.08);
  --font: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--blue-600); }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar (white) ---------- */
.nav { background: var(--surface); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); box-shadow: 0 1px 4px rgba(19, 38, 63, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--navy-900); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 30px; height: 30px; border-radius: 5px; background: linear-gradient(135deg, var(--blue-500), var(--blue-800)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand .tld { color: var(--blue-600); font-weight: 600; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { color: var(--navy-900); text-decoration: none; padding: 8px 12px; font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: var(--blue-600); }
.nav nav a[aria-current='page'] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-cta .text-link { color: var(--blue-600); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 4px; font: 700 16px/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-primary { color: #fff; background: linear-gradient(to top, var(--blue-600), var(--blue-400)); border-color: var(--blue-600); }
.btn-primary:hover { color: #fff; background: linear-gradient(to top, var(--blue-700), var(--blue-500)); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-light { color: var(--blue-700); background: var(--surface); border-color: var(--line); }
.btn-light:hover { background: var(--blue-50); }
.btn-caps { text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; padding: 9px 18px; }

/* ---------- hero (dark, the map image under a slate wash) ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(19, 38, 63, 0.93), rgba(36, 52, 71, 0.9)),
    url('/assets/atlas-map.png') center 40% / cover no-repeat,
    var(--navy-900);
  padding: 64px 0 56px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--blue-400); margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.1; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; max-width: 22ch; }
.hero p.lead { font-size: clamp(16px, 1.7vw, 18px); color: #d9e2ec; max-width: 64ch; margin: 0 0 26px; }
.hero p.lead b { color: #fff; }
.hero-center { text-align: center; padding: 72px 0 40px; }
.hero-center h1, .hero-center p.lead { margin-inline: auto; }
.hero-center h1 { max-width: none; }

/* hero search bar */
.search { display: flex; max-width: 900px; margin: 0 auto; background: var(--surface); border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); overflow: hidden; text-align: left; }
.search .field { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid var(--line); min-width: 0; }
.search .field svg { flex: none; color: var(--ink-3); }
.search select, .search input { width: 100%; border: 0; background: transparent; font: 400 16px var(--font); color: var(--ink); padding: 17px 0; outline: none; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.search .field:first-child { flex-grow: 1.5; }
.search .field:nth-child(2) { flex-grow: 1.1; }
.search .field:focus-within { box-shadow: inset 0 -3px 0 var(--blue-500); }
.search button { flex: none; border-radius: 0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; padding: 0 26px; }
.search-under { max-width: 900px; margin: 12px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #b9c7d6; }
.search-under a { color: #fff; font-weight: 600; text-decoration: none; }
.search-under a:hover { text-decoration: underline; }

/* ---------- announcement strip ---------- */
.announce { background: var(--slate-800); color: #e6edf5; font-size: 15px; padding: 10px 0; text-align: center; }
.announce a { color: #fff; font-weight: 700; }
.pill { display: inline-block; background: #3ba55d; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt, section.gray { background: var(--bg); }
h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; margin: 0 0 8px; color: var(--slate-600); }
h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: var(--navy-900); }
.section-lead { color: var(--ink-2); max-width: 72ch; margin: 0 0 28px; font-size: 17px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.stat { background: rgba(11, 26, 46, 0.55); padding: 16px 20px; }
.stat b { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: #b9c7d6; font-size: 14px; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.glance div { padding: 18px 22px; border-right: 1px solid var(--line); }
.glance div:last-child { border-right: 0; }
.glance b { display: block; font-size: 30px; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.2; }
.glance span { color: var(--ink-3); font-size: 14px; }

/* ---------- browse by guideline (chips) ---------- */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; color: var(--navy-900); text-decoration: none; font-weight: 600; transition: border-color 120ms, box-shadow 120ms; }
.chip:hover { color: var(--blue-700); border-color: var(--blue-400); box-shadow: var(--shadow); }
.chip .letter { flex: none; width: 32px; height: 32px; border-radius: 4px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 700; }

/* ---------- tool cards (thumbnail + category tag) ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow 120ms, transform 120ms; }
.tool:hover { box-shadow: 0 8px 22px rgba(19, 38, 63, 0.12); transform: translateY(-2px); color: inherit; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font-size: 44px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.t-contract { background: linear-gradient(135deg, #1b3a5c, #2f86f0); }
.thumb.t-vetting { background: linear-gradient(135deg, #2c2f5a, #5b6bd6); }
.thumb.t-library { background: linear-gradient(135deg, #133a3a, #1f8a7a); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.tool-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-body h3 { font-size: 18px; margin: 0; color: var(--navy-900); }
.tool-body p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.tool-body .more { color: var(--blue-600); font-weight: 700; font-size: 14px; }
.tool:hover .more { text-decoration: underline; }

/* ---------- deep-blue band with white CTA cards ---------- */
.band { background: linear-gradient(180deg, var(--blue-800), #1454a8 60%, #1a64c4); color: #fff; text-align: center; padding: 60px 0 52px; }
.band h2 { color: #fff; font-size: clamp(26px, 3vw, 32px); }
.band .section-lead { color: #d6e4f7; margin-inline: auto; }
.cta-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center; gap: 22px; }
.cta { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta .glyph { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 28px; margin-bottom: 4px; }
.cta h3 { margin: 0; color: var(--slate-600); font-size: 20px; }
.cta p { margin: 0 0 8px; color: var(--ink-3); font-size: 15px; }
.band hr { border: 0; height: 1px; width: 200px; margin: 48px auto 40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.why .glyph { font-size: 24px; color: #b9d6ff; margin-bottom: 6px; }
.why h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.why p { color: #d6e4f7; font-size: 15px; margin: 0 0 12px; }
.why a { color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.why a:hover { text-decoration: underline; }

/* ---------- featured ---------- */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.featured img { border-radius: 4px; border: 1px solid var(--line); }
.featured ul { padding-left: 20px; color: var(--ink-2); }

/* ---------- project directory ---------- */
.group { margin-bottom: 36px; }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.group-head h3 { font-size: 19px; margin: 0; color: var(--slate-600); }
.group-head p { margin: 0; color: var(--ink-3); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; transition: border-color 120ms, box-shadow 120ms; }
.card:hover { border-color: #c3d0de; box-shadow: var(--shadow); }
.card h4 { margin: 0; font-size: 15px; color: var(--navy-900); font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--bg); }
.badge.public { color: var(--ok); border-color: #b9e0d6; background: #eef8f5; }
.badge.private { color: var(--blue-800); border-color: #c5d6ee; background: var(--blue-50); }
.badge.archived { color: var(--warn); border-color: #ecd9b0; background: #fdf7ea; }
.links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ---------- feature trio / prose (product pages) ---------- */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tile .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.finding { border-left: 4px solid var(--blue-600); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 14px; box-shadow: var(--shadow); }
.finding b { color: var(--navy-900); }
.callout { background: #fff8e8; border: 1px solid #ecd9b0; border-radius: var(--radius); padding: 16px 20px; color: #5c4100; font-size: 15px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
table.facts th, table.facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { width: 30%; color: var(--slate-600); background: var(--bg); font-weight: 600; }

/* ---------- footer (light gray, link columns) ---------- */
footer { background: var(--bg); color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0 32px; }
.foot-cols h4 { margin: 0 0 12px; font-size: 15px; color: var(--slate-600); font-weight: 700; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { color: var(--blue-600); text-decoration: underline; }
.foot-cols .two { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; gap: 12px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.foot-bottom .brand { font-size: 17px; color: var(--slate-500); }
.foot-bottom .brand-mark { width: 24px; height: 24px; font-size: 10px; opacity: 0.8; }
.foot-bottom p { margin: 0; max-width: 72ch; }
.foot-bottom a { color: var(--ink-2); }

/* ---------- medium screens ---------- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .featured, .two-col { grid-template-columns: 1fr; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .glance div:nth-child(2) { border-right: 0; }
  .glance div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- small screens (phones) ---------- */
@media (max-width: 680px) {
  .nav .wrap { min-height: 56px; gap: 12px; }
  .brand { font-size: 19px; }
  .nav-cta { gap: 12px; }
  .nav-cta .text-link { display: none; }
  .hero, .hero-center { padding: 40px 0 32px; }
  .search { flex-direction: column; }
  .search .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search button { padding: 14px; }
  section { padding: 40px 0; }
  .section-lead { font-size: 16px; margin-bottom: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 22px; }
  .glance b { font-size: 24px; }
  .glance div { padding: 14px 16px; }
  .actions .btn { flex: 1 1 auto; }
  .cta-cards { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .featured { padding: 18px; gap: 20px; }
  .card, .tile { padding: 16px; }
  table.facts, table.facts tbody, table.facts tr, table.facts th, table.facts td { display: block; width: auto; }
  table.facts th { border-bottom: 0; padding-bottom: 2px; }
  table.facts td { padding-top: 2px; }
  .foot-cols { grid-template-columns: 1fr; gap: 22px; }
}

.draft-banner { background: #fff3cd; color: #5c4100; text-align: center; font-size: 14px; padding: 6px 12px; border-bottom: 1px solid #ecd9b0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool, .chip, .card { transition: none; }
  .tool:hover { transform: none; }
}

/* Search bar on a light section (the home page's "Look up a decision"). */
.search-light .search { box-shadow: 0 2px 12px rgba(19, 38, 63, 0.12); border: 1px solid var(--line); max-width: none; }
.search-light .search-under { max-width: none; color: var(--ink-3); }
.search-light .search-under a { color: var(--blue-600); }
.chips-head { margin: 28px 0 12px; font-size: 16px; color: var(--slate-600); }
