/* HSG portal design system: County of San Diego RFP 13298 response companion */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --royal: #2E2FA6;
  --royal-dark: #23247d;
  --royal-light: #eef0fb;
  --ink: #16171f;
  --slate: #4b4f60;
  --line: #e3e5ee;
  --bg: #fafbfe;
  --card: #ffffff;
  --accent: #0e9f6e;
  --warn: #c27803;
  --water: #0694a2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, .display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
a { color: var(--royal); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: var(--royal); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--ink); font-weight: 500; }
.nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--slate); font-size: 14px; font-weight: 500; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--royal); border-bottom-color: var(--royal); }

.hero { background:
    linear-gradient(115deg, rgba(23,24,90,.94) 0%, rgba(46,47,166,.88) 45%, rgba(69,71,201,.72) 100%),
    radial-gradient(circle at 85% 20%, rgba(56,189,248,.35), transparent 45%);
  color: #fff; padding: 72px 24px 64px; }
.hero-inner { max-width: 1180px; margin: 0 auto; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; max-width: 880px; }
.hero p.lede { margin-top: 18px; font-size: 18px; max-width: 760px; color: rgba(255,255,255,.88); }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 9px; }
.btn-white { background: #fff; color: var(--royal); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-royal { background: var(--royal); color: #fff; }
.btn:hover { filter: brightness(.96); }

.statband { max-width: 1180px; margin: -34px auto 0; padding: 0 24px; position: relative; z-index: 5; }
.statband-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 6px 22px rgba(22,23,31,.06); }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; color: var(--royal); line-height: 1.1; }
.stat .lbl { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

.section { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.section.tight { padding-top: 28px; }
.eyebrow { color: var(--royal); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.section p.sub { color: var(--slate); max-width: 820px; font-size: 16.5px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 30px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p, .card li { font-size: 14.5px; color: var(--slate); }
.card ul { padding-left: 18px; margin-top: 8px; }
.card .tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--royal); background: var(--royal-light); border-radius: 999px; padding: 3px 11px; margin-bottom: 12px; }

.chart-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-top: 26px; }
.chart-wrap h3 { font-size: 18px; margin-bottom: 4px; }
.chart-wrap .note { font-size: 12.5px; color: var(--slate); margin-bottom: 16px; }
.chart-box { position: relative; width: 100%; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px; }
table.data th { text-align: left; font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid var(--line); padding: 9px 10px; }
table.data td { border-bottom: 1px solid var(--line); padding: 8px 10px; }
table.data tr:hover td { background: var(--royal-light); }
.table-scroll { overflow-x: auto; }

.pill { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.pill.green { background: #e6f6ef; color: var(--accent); }
.pill.amber { background: #fdf2e3; color: var(--warn); }
.pill.royal { background: var(--royal-light); color: var(--royal); }

.phase { border-left: 3px solid var(--royal); padding: 4px 0 26px 26px; position: relative; }
.phase:before { content: ""; position: absolute; left: -8.5px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--royal); }
.phase h3 { font-size: 19px; }
.phase .dates { font-size: 13px; font-weight: 600; color: var(--royal); margin: 2px 0 10px; }
.task { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 10px 0; }
.task b { font-size: 14.5px; }
.task p { font-size: 13.5px; color: var(--slate); margin-top: 3px; }
.task .deliv { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 6px; }

.callout { background: var(--royal-light); border: 1px solid #cdd2f2; border-radius: 14px; padding: 24px 28px; margin-top: 28px; }
.callout h3 { color: var(--royal); font-size: 17px; margin-bottom: 8px; }
.callout p { font-size: 14.5px; color: var(--ink); }

.controls { display: flex; gap: 18px; flex-wrap: wrap; align-items: end; margin: 18px 0; }
.controls label { font-size: 12.5px; font-weight: 600; color: var(--slate); display: block; margin-bottom: 5px; }
.controls select, .controls input[type=range], .controls input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 150px; }

footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 34px 24px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 13px; color: var(--slate); }
.foot-inner b { color: var(--royal); font-family: 'Space Grotesk', sans-serif; }

.disclaimer { font-size: 12px; color: var(--slate); background: #f4f5f9; border-radius: 8px; padding: 10px 14px; margin-top: 18px; }
@media (max-width: 720px) { .nav-links { gap: 12px; } .hero { padding: 52px 20px 48px; } }

.brand-logo { height: 34px; width: 34px; vertical-align: middle; margin-right: 9px; }
.brand { display: inline-flex; align-items: center; }
.photo-credit { font-size: 11px; color: #8a8fa3; }
.foot-logo { height: 40px; width: 40px; }

/* San Diego additions */
:root { --pacific: #0E7490; --sand: #F4EBDD; }
.hero { position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 70 720 36 C 960 2 1200 64 1440 30 L1440 70 L0 70 Z' fill='%23fafbfe'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.search { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 260px; }
.muted { color: var(--slate); font-size: 12.5px; }
.num-r { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.num-r, table.data th.num-r { text-align: right; }
.att2 { border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin-top: 14px; background: #fff; }
.att2 .att2-head { background: var(--ink); color: #fff; font-family: 'Space Grotesk', sans-serif; padding: 10px 14px; font-size: 14px; letter-spacing: .04em; }
.att2 table.data { margin-top: 0; }
.att2 tr.sum td { background: #f4f5f9; font-weight: 600; }
.att2 tr.sd td { background: var(--royal-light); font-weight: 700; color: var(--royal); }
.att2 tr.diff td { font-weight: 700; }
.pos { color: var(--accent); } .neg { color: #b42318; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14px; margin-top: 10px; }
.kv div:nth-child(odd) { color: var(--slate); font-weight: 600; }
.unit-bar { height: 10px; background: var(--royal); border-radius: 4px; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; }
.pager button, .btn-sm { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.method { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.method .big { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--royal); }
.grid2 > *, .grid3 > *, .method-grid > * { min-width: 0; }
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .brand { white-space: normal; font-size: 15px; }
  .brand span { display: none; }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; }
  .section, .statband { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .kv { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
}
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.statband-grid { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.controls > div { min-width: 0; max-width: 100%; }
.controls select { max-width: 100%; }
@media (max-width: 720px) { .controls > div { width: 100%; } .controls select, .controls input { width: 100%; min-width: 0; } }
