/* ============================================================
   BRSG Compliance Portal — Shared Styles
   Brand: gold (#ffd000) + navy (#073567) + blue (#0a63c2)
   Confidential — Bill Rice Strategy Group / BRC LLC
   ============================================================ */

:root {
  --brsg-navy:        #073567;
  --brsg-navy-deep:   #051f3f;
  --brsg-blue:        #0a63c2;
  --brsg-blue-mid:    #1a7ad4;
  --brsg-blue-soft:   #E8F1FB;
  --brsg-gold:        #ffd000;
  --brsg-gold-hover:  #d7af00;
  --brsg-gold-border: #d4a800;
  --brsg-ivory:       #F8F7F3;
  --brsg-bg:          #F5F5F5;
  --brsg-bg-card:     #FFFFFF;
  --brsg-text:        #1A1A1A;
  --brsg-text-muted:  #5A5A5A;
  --brsg-border:      #E0E0E5;
  --brsg-success:     #2E7D5B;
  --brsg-warn:        #C77D2E;
  --brsg-alert:       #B53D3D;
  --brsg-info:        #3A6FA0;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--brsg-text);
  background: var(--brsg-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brsg-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: 42px; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; font-weight: 700; }
h4 { font-size: 13px; margin-top: 24px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brsg-blue); font-weight: 700; }

p { margin-bottom: 16px; max-width: 72ch; }

a { color: var(--brsg-blue); text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 500; }
a:hover { color: var(--brsg-navy); }

ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 6px; }

strong { font-weight: 700; color: var(--brsg-navy); }

mark, .highlight {
  background: rgba(255,208,0,0.25);
  padding: 0 4px;
  border-radius: 2px;
  color: var(--brsg-text);
}

/* ─── Sticky portal nav ──────────────────────────────────── */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brsg-navy);
  color: white;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--brsg-gold);
  font-size: 13px;
}
.portal-nav .brand {
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brsg-gold);
}
.portal-nav .meta {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Cover / hero ───────────────────────────────────────── */
.cover {
  background: linear-gradient(135deg, var(--brsg-navy) 0%, var(--brsg-blue) 100%);
  color: white;
  padding: 80px 48px;
  border-bottom: 6px solid var(--brsg-gold);
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,208,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cover::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(10,99,194,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.cover-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cover-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brsg-gold);
  margin-bottom: 14px;
  font-weight: 700;
}
.cover h1 {
  color: white;
  margin-bottom: 16px;
  max-width: 900px;
}
.cover-meta {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  flex-wrap: wrap;
}
.cover-meta strong { color: white; font-weight: 600; }

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding: 64px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.section.tight { padding: 32px 48px; }
.section-band {
  background: white;
  border-top: 1px solid var(--brsg-border);
  border-bottom: 1px solid var(--brsg-border);
}
.landing-section {
  padding: 48px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section + .landing-section { border-top: 1px solid var(--brsg-border); }

/* ─── Lead paragraph ─────────────────────────────────────── */
p.lead {
  font-size: 17px;
  color: var(--brsg-text-muted);
  max-width: 780px;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ─── Program chooser grid ───────────────────────────────── */
.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.chooser-card {
  background: white;
  border: 1px solid var(--brsg-border);
  border-top: 5px solid var(--brsg-navy);
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(7,53,103,0.05);
  text-decoration: none;
  color: var(--brsg-text);
  display: block;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.chooser-card:hover { box-shadow: 0 4px 12px rgba(7,53,103,0.12); border-top-color: var(--brsg-gold); }
.chooser-card .eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brsg-blue);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.chooser-card h3 {
  font-size: 24px;
  color: var(--brsg-navy);
  margin: 0 0 12px 0;
  text-transform: none;
  letter-spacing: -0.01em;
}
.chooser-card p {
  font-size: 14px;
  color: var(--brsg-text-muted);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 20px;
}
.chooser-card .stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.chooser-card .stat { display: flex; flex-direction: column; }
.chooser-card .stat strong { font-size: 22px; color: var(--brsg-navy); line-height: 1; }
.chooser-card .stat span { font-size: 11px; color: var(--brsg-text-muted); margin-top: 2px; }
.chooser-card .arrow { font-size: 13px; font-weight: 700; color: var(--brsg-blue); }

/* ─── Artifact list ──────────────────────────────────────── */
.artifact-list {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
}
.artifact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--brsg-border);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 15px;
}
.artifact-row a { font-weight: 600; }
.artifact-meta {
  margin-left: auto;
  color: var(--brsg-text-muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ─── Status + severity labels ───────────────────────────── */
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-open   { background: #FCE4E4; color: var(--brsg-alert); }
.status-progress { background: #FFF4DC; color: var(--brsg-warn); }
.status-done   { background: #E3F0E9; color: var(--brsg-success); }
.status-deferred { background: #ECECEC; color: var(--brsg-text-muted); }

.action-id {
  font-size: 12px;
  font-weight: 800;
  color: var(--brsg-text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  min-width: 32px;
}
.action-title { flex: 1; font-size: 15px; }

/* ─── Tag ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-cited    { background: #E3F0E9; color: var(--brsg-success); }
.tag-mention  { background: #FFF4DC; color: var(--brsg-warn); }
.tag-alert    { background: #FCE4E4; color: var(--brsg-alert); }
.tag-absent   { background: #ECECEC; color: var(--brsg-text-muted); }
.tag-pending  { background: var(--brsg-blue-soft); color: var(--brsg-blue); }

/* ─── Footer ─────────────────────────────────────────────── */
.portal-footer {
  background: var(--brsg-navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 32px 48px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.portal-footer .confidential {
  color: var(--brsg-gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .chooser-grid { grid-template-columns: 1fr; }
  .cover { padding: 56px 24px; }
  .section, .landing-section { padding: 48px 24px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .cover-meta { flex-direction: column; gap: 8px; }
  .artifact-row { flex-wrap: wrap; }
  .artifact-meta { margin-left: 0; width: 100%; padding-top: 4px; }
}
