/* ==========================================================================
   Octelligence — Security advisories
   Formal, scannable, low-ornament. Built for procurement reviewers.
   ========================================================================== */

.advisories-shell { max-width: 1200px; }

/* ---------------------------------------------------------------
   Hub hero (and individual advisory hero share base styles)
   Dark navy to match docs/changelog/releases/trust pages
   --------------------------------------------------------------- */
.advisories-hero,
.advisory-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1f3a 0%, #102a4f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2.25rem;
}
.advisories-hero::before,
.advisory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(234, 88, 12, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 5% 100%, rgba(96, 165, 250, 0.10) 0%, transparent 55%);
}
.advisories-hero .container,
.advisory-hero .container { position: relative; z-index: 1; }

.advisories-breadcrumbs {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}
.advisories-breadcrumbs a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.advisories-breadcrumbs a:hover { color: #fff; }
.advisories-breadcrumbs .separator { margin: 0 .5rem; color: rgba(255, 255, 255, 0.4); }

.advisories-hero__eyebrow,
.advisory-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fdba74;
  background: rgba(234, 88, 12, 0.14);
  border: 1px solid rgba(253, 186, 116, 0.35);
  padding: .32rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.advisories-hero__title,
.advisory-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.7rem;
  color: #fff;
}
.advisories-hero__subtitle,
.advisory-hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
  margin: 0;
}

/* Individual advisory meta row */
.advisory-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.advisory-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #fff;
  color: var(--text-secondary);
}
.advisory-hero__meta-item strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------
   Status and severity badges
   --------------------------------------------------------------- */
.adv-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .22rem .55rem;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
}
/* Status */
.adv-badge--patched      { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.adv-badge--mitigated    { background: rgba(28, 181, 185, 0.12); color: #0e7e80; }
.adv-badge--investigating{ background: rgba(185, 127, 28, 0.12); color: #92560e; }
.adv-badge--not-affected { background: rgba(100, 116, 139, 0.12); color: #475569; }
.adv-badge--active       { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
/* Severity */
.adv-badge--critical { background: rgba(220, 38, 38, 0.1); color: #991b1b; }
.adv-badge--high     { background: rgba(234, 88, 12, 0.1); color: #c2410c; }
.adv-badge--medium   { background: rgba(202, 138, 4, 0.1); color: #a16207; }
.adv-badge--low      { background: rgba(100, 116, 139, 0.12); color: #475569; }

/* ---------------------------------------------------------------
   Hub: list of advisories
   --------------------------------------------------------------- */
.advisories-section { padding: 3rem 0 4rem; }

.advisory-card {
  display: block;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.advisory-card:hover {
  border-color: rgba(30, 64, 175, 0.3);
  box-shadow: 0 6px 18px -10px rgba(11, 18, 32, 0.12);
  color: var(--text);
}
.advisory-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: .55rem;
}
.advisory-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.advisory-card p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Empty state for early days */
.advisories-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ---------------------------------------------------------------
   Individual advisory page content
   --------------------------------------------------------------- */
.advisory-section { padding: 2.75rem 0 5rem; }
.advisory-content { max-width: 760px; margin: 0 auto; }

.advisory-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 2.25rem 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-light);
}
.advisory-content h2:first-of-type { margin-top: 0; }
.advisory-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .55rem;
}
.advisory-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}
.advisory-content ul, .advisory-content ol {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.advisory-content li { margin-bottom: .35rem; }
.advisory-content code {
  font-size: .92em;
  background: rgba(11, 18, 32, 0.05);
  padding: .12rem .35rem;
  border-radius: 3px;
}
.advisory-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Timeline list */
.advisory-timeline {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid var(--border-light);
  margin-left: .5rem;
}
.advisory-timeline li {
  position: relative;
  padding: .3rem 0 .9rem 1.5rem;
  margin-bottom: 0;
  font-size: .98rem;
  line-height: 1.5;
}
.advisory-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.advisory-timeline li time {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: .15rem;
  letter-spacing: .02em;
}

/* Customer action callout */
.advisory-action {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #15803d;
  background: rgba(22, 163, 74, 0.05);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-size: .98rem;
  line-height: 1.55;
}
.advisory-action--info {
  border-left-color: var(--accent-primary);
  background: rgba(30, 64, 175, 0.04);
}
.advisory-action--warning {
  border-left-color: var(--accent-amber);
  background: rgba(185, 127, 28, 0.05);
}
.advisory-action strong { color: var(--text); }
.advisory-action p:last-child { margin-bottom: 0; }

/* Bottom contact strip */
.advisory-contact {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fafbfd;
  text-align: center;
  font-size: .95rem;
  color: var(--text-secondary);
}
.advisory-contact a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
