:root {
  --al-navy: #071a3d;
  --al-blue: #087fc4;
  --al-muted: #5d6b82;
}

/* Public reviewed-intelligence cards. The private app uses app.css. */
.al-intelligence-card,
.al-intelligence-card * {
  box-sizing: border-box;
}

.al-intelligence-card {
  background: #f7fbff;
  border: 1px solid #cbdceb;
  border-left: 6px solid var(--al-blue);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 26, 61, .09);
  color: var(--al-navy);
  margin: 1rem 0 1.8rem;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  scroll-margin-top: 24px;
}

.al-intelligence-card.al-priority-critical { border-left-color: #a61b1b; }
.al-intelligence-card.al-priority-high { border-left-color: #d05a13; }
.al-intelligence-card.al-priority-medium { border-left-color: #a07800; }
.al-intelligence-card.al-priority-low { border-left-color: #087fc4; }
.al-intelligence-card.al-priority-informational { border-left-color: #56708d; }

.al-intelligence-card-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.al-intelligence-reviewed {
  color: var(--al-blue);
  display: block;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.al-intelligence-card h2 {
  color: var(--al-navy);
  font: 800 clamp(1.35rem, 3vw, 1.9rem)/1.12 system-ui, sans-serif;
  margin: 5px 0 0;
}

.al-priority-badge {
  border-radius: 999px;
  display: inline-flex;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .04em;
  padding: 10px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.al-intelligence-card:target {
  animation: al-intelligence-target-pulse 1.15s ease-out 1;
  box-shadow: 0 0 0 4px rgba(8, 127, 196, .2), 0 14px 36px rgba(7, 26, 61, .14);
}

@keyframes al-intelligence-target-pulse {
  0% { transform: scale(.992); }
  45% { transform: scale(1.006); }
  100% { transform: scale(1); }
}

.al-priority-critical { background: #fde7e7; color: #861515; }
.al-priority-high { background: #fff0e5; color: #9a3e07; }
.al-priority-medium { background: #fff5d6; color: #755700; }
.al-priority-low { background: #e7f4fc; color: #075f94; }
.al-priority-informational,
.al-priority-reviewed { background: #edf1f5; color: #40546b; }

.al-intelligence-disclosure {
  border-bottom: 1px solid #dbe7f1;
  color: var(--al-muted);
  font-size: 12px;
  margin: 15px 0 0;
  padding-bottom: 15px;
}

.al-intelligence-grid {
  display: grid;
  gap: 17px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.al-intelligence-grid section { min-width: 0; }
.al-intelligence-grid h3 {
  color: var(--al-navy);
  font: 800 13px/1.3 system-ui, sans-serif;
  margin: 0 0 6px;
}
.al-intelligence-grid p {
  color: #34465e;
  font: 500 14px/1.55 system-ui, sans-serif;
  margin: 0 0 8px;
}

.al-intelligence-card-footer {
  border-top: 1px solid #dbe7f1;
  color: var(--al-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 15px;
}

.al-intelligence-card-footer p { margin: 0; }
.al-intelligence-sources { display: flex; flex-wrap: wrap; gap: 10px; }
.al-intelligence-sources a { color: var(--al-blue) !important; font-weight: 750; text-decoration: none; }

/* Public duplicate-story clusters. */
.al-public-cluster,
.al-public-cluster * {
  box-sizing: border-box;
}

.al-public-cluster {
  background: #fff;
  border: 1px solid #cbdceb;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(7, 26, 61, .07);
  color: var(--al-navy);
  margin: 1rem 0 1.8rem;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
}

.al-public-cluster-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.al-cluster-eyebrow,
.al-cluster-primary-label {
  color: #08756e;
  display: block;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.al-public-cluster h2 {
  color: var(--al-navy);
  font: 800 clamp(1.25rem, 3vw, 1.7rem)/1.18 system-ui, sans-serif;
  margin: 5px 0 0;
}

.al-public-cluster-count {
  background: #e2f5f3;
  border-radius: 999px;
  color: #08645d;
  font: 800 11px/1 system-ui, sans-serif;
  padding: 9px 11px;
  white-space: nowrap;
}

.al-public-cluster-notice {
  border-bottom: 1px solid #dbe7f1;
  color: var(--al-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
  padding-bottom: 14px;
}

.al-public-cluster-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 5px 0 0;
}

.al-public-cluster-list li {
  align-items: center;
  border-top: 1px solid #e3ebf1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 0;
}

.al-public-cluster-list li:first-child { border-top: 0; }
.al-public-cluster-list li > div { display: grid; gap: 4px; min-width: 0; }
.al-cluster-primary-label { font-size: 10px; letter-spacing: .08em; }
.al-cluster-local-link { color: var(--al-navy) !important; font-weight: 780; line-height: 1.35; text-decoration: none; }
.al-cluster-local-link:hover { color: var(--al-blue) !important; }
.al-cluster-source-name { color: var(--al-muted); font-size: 11px; }
.al-cluster-source-link { color: var(--al-blue) !important; flex: 0 0 auto; font-size: 12px; font-weight: 750; text-decoration: none; }

/* Public correction, sponsorship, and AI-use disclosures. */
.al-editorial-disclosures {
  display: grid;
  gap: 10px;
  margin: 1rem 0 1.4rem;
}

.al-editorial-notice {
  background: #fff;
  border: 1px solid #cbdceb;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  color: var(--al-navy);
  padding: 14px 16px;
}

.al-editorial-notice strong {
  display: block;
  font: 800 12px/1.3 system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.al-editorial-notice p { margin: 7px 0 0; }
.al-editorial-corrected { border-left-color: #b45309; background: #fffaf0; }
.al-editorial-clarified { border-left-color: #2563eb; background: #f6f9ff; }
.al-editorial-retracted { border-left-color: #b91c1c; background: #fff5f5; }
.al-editorial-sponsored { border-left-color: #7c3aed; background: #faf7ff; }
.al-editorial-ai { border-left-color: #08756e; background: #f2fbfa; }
.al-editorial-methodology-link { font-size: 12px; margin: 0; }

/* Public editorial methodology page and footer link. */
.al-methodology {
  background: #fff;
  color: #17233b;
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 56px);
}

.al-methodology-header { border-bottom: 1px solid #dbe7f1; margin-bottom: 30px; padding-bottom: 24px; }
.al-methodology-eyebrow { color: #08756e; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.al-methodology h1,
.al-methodology h2,
.al-methodology h3 { color: var(--al-navy); }
.al-methodology h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.al-methodology h2 { margin-top: 34px; }
.al-methodology li { margin-bottom: 8px; }
.al-methodology-meta { color: var(--al-muted); font-size: 13px; }
.al-methodology-priorities { display: grid; gap: 10px; }
.al-methodology-priority { border: 1px solid #dbe7f1; border-radius: 12px; padding: 14px 16px; }
.al-methodology-priority dt { font-weight: 850; }
.al-methodology-priority dd { margin: 5px 0 0; }
.al-methodology-empty { color: var(--al-muted); font-style: italic; }
.al-corrections-log { border-top: 1px solid #dbe7f1; margin-top: 20px; padding-top: 18px; }
.al-corrections-log ul { list-style: none; margin: 0; padding: 0; }
.al-corrections-log li { border-top: 1px solid #e6edf3; padding: 14px 0; }
.al-corrections-log li:first-child { border-top: 0; }
.al-corrections-log p { margin: 5px 0 0; }
.al-methodology-site-link { background: var(--al-navy); color: #fff; font: 700 12px/1.4 system-ui, sans-serif; padding: 10px 16px; text-align: center; }
.al-methodology-site-link a { color: #9fe8df !important; text-decoration: underline; }

@media (max-width: 600px) {
  .al-intelligence-card-header,
  .al-public-cluster-heading,
  .al-public-cluster-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .al-intelligence-grid { grid-template-columns: 1fr; }
  .al-intelligence-card-footer { flex-direction: column; }
  .al-public-cluster-list li { gap: 8px; }
}

/* Cluster Engine 2.0: reviewed, cluster-level zero-day alert. */
.al-zero-day-banner { box-sizing: border-box; position: relative; z-index: 50; width: 100%; border-bottom: 1px solid #8d1717; background: #8f1515; color: #fff; box-shadow: 0 4px 16px rgba(85, 8, 8, .2); }
.al-zero-day-banner[hidden] { display: none !important; }
.al-zero-day-banner.is-reported { border-bottom-color: #9a6500; background: #775000; }
.al-zero-day-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 1320px; margin: 0 auto; padding: 10px 18px; line-height: 1.35; }
.al-zero-day-banner__flag { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 4px 9px; font-size: .75rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.al-zero-day-banner__story { min-width: 0; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-zero-day-banner small { opacity: .86; white-space: nowrap; }
.al-zero-day-banner a { color: #fff; font-weight: 900; white-space: nowrap; }
.al-zero-day-banner button { border: 0; background: transparent; color: #fff; cursor: pointer; font: 700 1.3rem/1 sans-serif; padding: 4px 6px; }

@media (max-width: 760px) {
  .al-zero-day-banner__inner { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .al-zero-day-banner__story { flex: 1 1 60%; white-space: normal; }
  .al-zero-day-banner small { display: none; }
  .al-zero-day-banner button { margin-left: auto; }
}
