/* Govern360 AI Exposure Brief */

:root {
  /* Tells the browser to render native controls — select popups, scrollbars,
     autofill, date pickers — in dark. Without this the option list paints
     white-on-white and is unreadable. */
  color-scheme: dark;
  --bg: #050B14;
  --bg-2: #081321;
  --card: #0B1827;
  --raised: #0F2033;
  --border: rgba(102, 212, 215, 0.14);
  --teal: #55D8D1;
  --teal-bright: #6FE9E0;
  --teal-deep: #157B7A;
  --t1: #F2F7FA;
  --t2: #AAB8C7;
  --t3: #8A9DAF;
  --critical: #F05252;
  --high: #F59E0B;
  --medium: #F6D365;
  --low: #56D47B;
  --emerging: #4C8DFF;
  --research: #A78BFA;
  --neutral: #718096;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis-weight: none;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--t3); letter-spacing: .2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.masthead .logo { flex-shrink: 0; }
.masthead .brand { flex: 1; }
.brand .name { font-size: 21px; letter-spacing: .6px; line-height: 1.1; }
.brand .sub { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 1.4px; }
.masthead .tagline { font-size: 13px; color: var(--t3); text-align: right; line-height: 1.35; }
.btn-sub {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 15px; font-size: 14px; color: var(--teal); white-space: nowrap;
}
.btn-sub:hover { background: var(--raised); text-decoration: none; }

nav.topics {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
nav.topics a { color: var(--t2); }
nav.topics a[aria-current="page"] {
  color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 2px;
}

.livestrip {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.livestrip .left { display: flex; align-items: center; gap: 9px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--critical); display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
  .dot-idle { animation: none; }
}
/* Nothing is updating in preview mode, so nothing should pulse. */
.dot-idle { background: var(--t3); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- lead ---------- */

.lead-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px; margin: 26px 0 34px;
}
.lead {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neutral);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
}
.lead .lead-headline { font-size: 32px; line-height: 1.18; margin: 10px 0 12px; font-weight: 600; }
.lead .dek { font-size: 17px; color: var(--t2); margin-bottom: 12px; }
.lead .why { font-size: 17px; margin-bottom: 16px; }
.lead .why b { color: var(--t3); font-weight: 400; }
.lead .links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  padding: 3px 9px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--t2);
}

.panel { background: var(--raised); border-radius: 8px; padding: 16px; }
.panel h2 { font-size: 15px; margin: 0 0 11px; font-weight: 500; }
.panel .row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border);
}
.panel .row:last-of-type { border-bottom: 0; }
.panel .row span:first-child { color: var(--t2); }
.panel .row span:last-child { font-family: var(--mono); }
.pattern { border-top: 1px solid var(--border); margin-top: 11px; padding-top: 11px; }
.pattern p { font-size: 14px; color: var(--t2); margin: 5px 0 0; }

.control {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; margin-top: 13px;
}
.control p { font-size: 14px; color: var(--t2); margin: 7px 0 10px; }

/* ---------- sections and rows ---------- */

section.block { margin-bottom: 30px; }
section.block > h2 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
section.block > .subsec { font-size: 14px; color: var(--t3); margin: 0 0 14px; }

.item {
  padding: 13px 0 13px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--neutral);
}
.item h3 { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 400; }
.item h3 a { color: var(--t1); }
.item h3 a:hover { color: var(--teal-bright); }
.item .meta { margin-top: 5px; }
.item .why { font-size: 15px; color: var(--t2); margin: 6px 0 0; }
.item .correction {
  font-size: 14px; color: var(--high);
  border-left: 2px solid var(--high); padding-left: 10px; margin-top: 8px;
}

.sev-critical      { border-left-color: var(--critical); }
.sev-high          { border-left-color: var(--high); }
.sev-medium        { border-left-color: var(--medium); }
.sev-low           { border-left-color: var(--low); }
.sev-informational { border-left-color: var(--research); }
.sev-unrated       { border-left-color: var(--neutral); }

.viewall { display: inline-block; font-size: 14px; padding: 12px 0 0 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.tracker .item { padding-left: 14px; }
.tracker .item h3 { font-size: 16px; }

.topics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 11px; margin-bottom: 32px;
}
.topic-card { background: var(--raised); border-radius: 8px; padding: 13px 14px; display: block; }
.topic-card:hover { background: #14283e; text-decoration: none; }
.topic-card .t { font-size: 15px; color: var(--t1); }

/* ---------- newsletter ---------- */

.news {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 30px;
}
.news h2 { font-size: 21px; margin: 0 0 8px; font-weight: 500; }
.news .vp { font-size: 16px; color: var(--t2); margin: 0 0 6px; }
.news .vp2 { font-size: 15px; color: var(--t3); margin: 0 0 16px; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.news input, .news select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 11px 13px;
  font-size: 15px; color: var(--t1); font-family: var(--sans);
}
.news select { min-width: 190px; }
/* The popup list is painted by the OS, so it needs its own colours. */
.news select option, select option {
  background: #0B1827;
  color: #F2F7FA;
}
.news input:-webkit-autofill,
.news input:-webkit-autofill:hover,
.news input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--t1);
  box-shadow: 0 0 0 60px var(--bg-2) inset;
}
.news input[aria-invalid="true"] { border-color: var(--critical); }
.news input[type="email"] { flex: 1; min-width: 220px; }
.news input::placeholder { color: var(--t3); }
.news button {
  background: var(--teal-deep); border: 0; border-radius: 6px;
  padding: 12px 20px; font-size: 15px; color: var(--t1);
  font-family: var(--sans); cursor: pointer;
}
.news button:hover { background: #1a9694; }
.news .status { font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.news .status.err { color: var(--critical); }
.news .status.ok  { color: var(--low); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--border); padding: 18px 0 40px; margin-top: 10px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
footer .links a { color: var(--t2); }
footer .disclosure { font-size: 14px; color: var(--t3); max-width: 760px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .lead-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .lead .lead-headline { font-size: 26px; }
  .masthead { flex-wrap: wrap; }
  .masthead .tagline { display: none; }
  .wrap { padding: 0 16px; }
}
