:root {
  --navy: #14213d;
  --navy-2: #1f3158;
  --gold: #c9a227;
  --gold-soft: #fbf3d6;
  --ink: #1b1f27;
  --muted: #5a6272;
  --line: #dde1e8;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ok: #1f7a4a;
  --warn: #a4570b;
  --radius: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.12rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .03em; font-size: 1.1rem; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #d8deea; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #e6eaf2; padding: 64px 0 72px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 38em; }
.hero.small { padding: 44px 0 48px; }
.eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 12px;
}

/* Forms */
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; max-width: 520px; }
.signup input[type=email] { flex: 1 1 240px; }
input, select, textarea {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.signup input[type=email] { width: auto; }
textarea { min-height: 120px; resize: vertical; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 4px; }
.field { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: .85rem; color: #aab4c8; margin-top: 8px; }
.form-card .fineprint { color: var(--muted); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--gold); background: var(--gold); color: var(--navy);
}
.btn.ghost { background: transparent; color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }

.notice { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-weight: 600; }
.notice.ok { background: #e3f4ea; color: var(--ok); }
.notice.err { background: #fdecea; color: #9b1c1c; }

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 44em; margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0; }
.card li { margin-bottom: 6px; }
.card .num { font-weight: 800; color: var(--gold); font-size: 1.4rem; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; color: var(--navy-2);
  background: #e7ecf6; border-radius: 999px; padding: 2px 10px;
}
.tag.gold { background: var(--gold-soft); color: #6b4e00; }
.tag.warn { background: #fdf0e1; color: var(--warn); }

/* Opportunity list */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.opp-meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.opps { display: grid; gap: 14px; }
.opp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.opp h3 { margin-bottom: 4px; }
.opp h3 a { color: var(--navy); text-decoration: none; }
.opp h3 a:hover { text-decoration: underline; }
.opp .agency { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.opp .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.opp .summary { margin: 0; }
.opp .due { font-weight: 700; }
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px;
  text-align: center; color: var(--muted); background: #fff;
}

/* Article */
article h2 { margin-top: 1.6em; }
article table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
article th, article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
article th { background: var(--bg-alt); }
article code { background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Footer */
footer { background: #0e1730; color: #9aa5bb; font-size: .9rem; padding: 32px 0; }
footer a { color: #d8deea; }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .disclaimer { margin-top: 16px; font-size: .82rem; color: #7f8aa3; max-width: 60em; }

/* Keep grid children from forcing horizontal scroll */
.grid > *, .filters > * { min-width: 0; }
.opp, .card { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; font-size: .9rem; }
  .filters { grid-template-columns: 1fr; }
}
