/* OpportunityRadar enterprise design system — Stage 1G (isolated) */
:root {
  --ink: #0b1f3a;
  --ink-deep: #071426;
  --emerald: #10b981;
  --emerald-dark: #066e48;
  --teal: #14b8a6;
  --bg: #ffffff;
  --bg-warm: #f7f8fa;
  --text: #1a2333;
  --text-sub: #5b6b82;
  --text-muted: #8a97ab;
  --border: #e2e8f0;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--emerald-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.nav { background: var(--ink-deep); color: #fff; position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.nav-logo { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.nav-logo span { color: var(--emerald); }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; text-decoration: underline; }
.nav-hamburger { display: none; background: none; border: 1px solid #334155; color: #fff; border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 1.1rem; margin-left: auto; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%); color: #fff; padding: 4rem 0 3.5rem; }
.hero h1 { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 640px; }
.hero p.sub { color: #cbd5e1; font-size: 1.1rem; margin-top: 1rem; max-width: 620px; }
.hero-ctas { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; padding: 0.8rem 1.5rem; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 0.95rem; }
.btn-primary { background: var(--emerald); color: #04130c; }
.btn-primary:hover { background: var(--teal); }
.btn-secondary { background: transparent; color: #fff; border-color: #475569; }
.btn-outline { background: transparent; color: var(--emerald-dark); border-color: var(--emerald); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Sections & cards */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-warm); }
.sec-eyebrow { color: var(--emerald-dark); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sec-h { font-size: 1.9rem; letter-spacing: -0.01em; margin: 0.5rem 0 0.75rem; color: var(--ink); }
.sec-sub { color: var(--text-sub); max-width: 640px; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--ink); }
.card p { color: var(--text-sub); font-size: 0.92rem; }

/* Opportunity cards */
.opp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.opp-card h3 { font-size: 1.05rem; color: var(--ink); }
.opp-org { color: var(--text-sub); font-size: 0.9rem; margin: 0.25rem 0 0.5rem; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: var(--text-sub); margin-bottom: 0.75rem; }
.badge { display: inline-block; border-radius: 100px; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border); background: var(--bg-warm); color: var(--text-sub); }
.badge-open { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.badge-unknown { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.badge-expired { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Forms */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); font-size: 0.95rem; font-family: inherit; }
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.filter-row input, .filter-row select { padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); font-size: 0.9rem; }

/* Notices */
.notice { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 0.93rem; }
.notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); }
table.data th { color: var(--text-sub); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Footer */
.footer { background: var(--ink-deep); color: #94a3b8; padding: 2.5rem 0; font-size: 0.88rem; }
.footer a { color: #cbd5e1; text-decoration: none; margin-right: 1.25rem; }
.footer a:hover { text-decoration: underline; }

.state-empty, .state-error, .state-loading { padding: 2.5rem 1rem; text-align: center; color: var(--text-sub); border: 1px dashed var(--border); border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink-deep); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: 0.9rem; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  table.data { display: block; overflow-x: auto; }
}

/* Stage 2.9A — utility classes replacing inline style attributes (CSP style-src 'self') */
.fs130 { font-size: 1.3rem; }
.mt2 { margin-top: 2rem; }
.mt1 { margin-top: 1rem; }
.mt15 { margin-top: 1.5rem; }
.t-sub { color: var(--text-sub); }
.measure { max-width: 760px; }
.indent { padding-left: 1.25rem; }
.fs90 { font-size: .9rem; }
.center { text-align: center; }
.scroll-sm { overflow-x: auto; font-size: .82rem; }
.g300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.assess-panel { margin-top: 3rem; }
.assess-hidden { display: none; }
.is-hidden { display: none; }

