* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark:     #0d2b1e;
  --primary:  #1a5c3a;
  --medium:   #2d8a5e;
  --accent:   #4dba87;
  --highlight:#95dab8;
  --bg-light: #f0faf5;
  --border:   #c8e6d6;
  --text:     #1b2e1c;
  --muted:    #4a6657;
  --white:    #ffffff;

  --slate:    #64748b;
  --green-1:  #16a34a;
  --green-2:  #166534;
  --green-3:  #052e16;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ─── NAV ──────────────────────────────────────────────────────────── */
nav {
  background: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--highlight); }
.nav-signin {
  background: var(--highlight);
  color: var(--dark) !important;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  margin-left: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-signin:hover { opacity: 0.82; }

/* ─── AUDIENCE GRID ─────────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.audience-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.audience-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.audience-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ─── PRICING ───────────────────────────────────────────────────────── */
.pricing-wrap {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  max-width: 860px;
  margin: 2.5rem auto 0;
}
.pricing-card {
  flex: 0 0 340px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2rem 2rem 2.5rem;
}
.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.pricing-amount span { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.45); }
.pricing-trial { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-copy { flex: 1; }
.pricing-copy h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.pricing-copy p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 1rem; }
@media (max-width: 700px) {
  .pricing-wrap { flex-direction: column; }
  .pricing-card { flex: none; width: 100%; }
}
.nav-account {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-account:hover { color: var(--highlight); }

/* ─── HERO ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--dark) 0%, var(--primary) 55%, var(--medium) 100%);
  color: var(--white);
  padding: 7rem 2rem 6rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover { background: var(--highlight); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  margin-left: 0.75rem;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: background 0.2s;
}
.btn-back:hover { background: var(--border); }

/* ─── SECTIONS ──────────────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 640px;
}

/* ─── CARDS ─────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.75rem;
  border-left: 4px solid var(--primary);
}
.card h3 { color: var(--dark); margin-bottom: 0.6rem; font-size: 1rem; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ─── PAGE HEADER (inner pages) ─────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 2rem;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--highlight);
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--highlight); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.page-header .description {
  color: rgba(255,255,255,0.72);
  margin-top: 1rem;
  max-width: 780px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.scope-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

/* ─── MATURITY GRID ──────────────────────────────────────────────────── */
.maturity-intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.maturity-badge {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge-fundamental { background: var(--slate);  color: #fff; }
.badge-market      { background: #1d4ed8;        color: #fff; }
.badge-above       { background: #b45309;        color: #fff; }
.badge-leading     { background: #7c3aed;        color: #fff; }

.maturity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.maturity-col {
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--white);
  padding: 1.5rem;
}
.msection {
  margin-bottom: 1.5rem;
}
.msection:last-child { margin-bottom: 0; }
.msection h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--border);
}
.msection ul {
  list-style: none;
  padding: 0;
}
.msection ul li {
  font-size: 0.825rem;
  color: var(--muted);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  line-height: 1.5;
}
.msection ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── PATHWAYS PAGE ──────────────────────────────────────────────────── */
.pathways-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.scope-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.scope-card-header {
  padding: 1.1rem 1.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.scope-card-header .scope-num {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.s1-header { background: #374151; }
.s2-header { background: #1e40af; }
.s3-header { background: #1e3a5f; }
.s4-header { background: #5c3d11; }

.scope-card-body {
  padding: 1.5rem;
  background: var(--white);
}
.subcats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.subcat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.topic-tag {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.18s;
}
.topic-tag.inactive {
  background: var(--bg-light);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default;
}
.topic-tag.active {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.topic-tag.active:hover {
  background: var(--medium);
  border-color: var(--medium);
  transform: translateX(3px);
}
.coming-soon {
  font-size: 0.65rem;
  font-style: italic;
  opacity: 0.6;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.35rem;
}

/* ─── HOW TO USE ─────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.level-block {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.level-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.level-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.level-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CTA BAND ───────────────────────────────────────────────────────── */
.cta-band {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}
.cta-band h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; }

/* ─── ONBOARDING ─────────────────────────────────────────────────────── */
.onboarding-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 3rem 1.5rem;
}
.onboarding-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2.5rem 3rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.onboarding-card .ob-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--medium);
  margin-bottom: 0.5rem;
}
.onboarding-card h1 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.onboarding-card .ob-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--medium);
  box-shadow: 0 0 0 3px rgba(45,138,94,0.1);
}
.ob-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-size: 0.95rem;
}
.ob-skip {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
}
.ob-skip:hover { color: var(--primary); text-decoration: underline; }

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
}
footer a { color: var(--highlight); text-decoration: none; }

/* ─── SELF-ASSESSMENT PANEL ──────────────────────────────────────────── */
.assessment-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}
.assess-header { margin-bottom: 1.25rem; }
.assess-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.assess-header p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 680px;
}
.assess-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.assess-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  min-width: 130px;
}
.assess-buttons { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.assess-btn {
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.assess-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Current row — green when active */
.assess-btn.current-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
/* Target row — amber when active */
.assess-btn.target-btn.active {
  background: #92400e;
  border-color: #92400e;
  color: var(--white);
}

.assess-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
#assess-summary-text {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}
#assess-summary-text em { color: var(--muted); }
#assess-reset {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
#assess-reset:hover { border-color: #b91c1c; color: #b91c1c; }
#assess-save {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
#assess-save:hover:not(:disabled) { background: var(--medium); border-color: var(--medium); }
#assess-save:disabled { opacity: 0.38; cursor: default; }
#assess-save.saved { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* Summary chips */
.sum-chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.sum-current { background: var(--primary); color: var(--white); }
.sum-target  { background: #92400e;       color: var(--white); }
.sum-note    { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.sum-note.warn { color: #b45309; }

/* ─── MATURITY COLUMN STATES ─────────────────────────────────────────── */
.maturity-col { transition: opacity 0.25s, box-shadow 0.25s, border-color 0.25s; }

.maturity-col.state-below {
  opacity: 0.38;
}
.maturity-col.state-current {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,58,0.15);
}
.maturity-col.state-gap {
  border: 2px dashed var(--accent);
  background: #f0fdf4;
}
.maturity-col.state-target {
  border: 2px solid #92400e;
  box-shadow: 0 0 0 3px rgba(146,64,14,0.15);
}
.maturity-col.state-current-target {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,58,0.2);
}
.maturity-col.state-above-target {
  opacity: 0.3;
  filter: grayscale(0.4);
}

/* State labels injected at top of column */
.col-state-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
  text-align: center;
}
.label-current  { background: var(--primary); color: var(--white); }
.label-target   { background: #92400e;        color: var(--white); }
.label-ct       { background: var(--primary); color: var(--white); }

/* ─── PATHWAYS: assessed badge ────────────────────────────────────────── */
.assessed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .maturity-intro,
  .maturity-grid { grid-template-columns: repeat(2, 1fr); }
  .maturity-badge { border-radius: 6px; }
  .maturity-col { border-radius: 8px; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2rem; }
  .maturity-intro,
  .maturity-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 1.25rem; }
}

/* ─── ARTICLE CARDS ─────────────────────────────────────────────────── */
.articles-section {
  background: #eef4fb;
  border-top: 2px solid #b8d0ea;
  border-radius: 0 0 8px 8px;
  margin: 1.5rem -1.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}
.articles-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3a6490;
  margin-bottom: 0.65rem;
}
.article-card {
  display: block;
  background: white;
  border: 1px solid #c8ddf0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,92,58,0.1);
}
.article-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.article-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.article-source { font-weight: 600; }
.article-snippet {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── MATURITY CHANGE FLAGS ─────────────────────────────────────────────── */

/* List item that was updated by the agent */
li[data-changed] {
  position: relative;
  padding-left: 0.6rem;
  border-left: 3px solid #f0a500;
  margin-left: -0.6rem;
  background: linear-gradient(90deg, rgba(255,185,0,0.08) 0%, transparent 80%);
  border-radius: 0 4px 4px 0;
}

/* Inline badge rendered next to the updated bullet text */
.change-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  background: #f0a500;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: middle;
  cursor: help;
  white-space: nowrap;
}

/* Tooltip panel that appears on hover over the badge */
.change-badge:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 100;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  max-width: 280px;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Deprecated items — greyed out, struck through */
li.deprecated-item {
  opacity: 0.45;
  text-decoration: line-through;
  border-left: 3px solid var(--muted);
  padding-left: 0.6rem;
  margin-left: -0.6rem;
}

.deprecated-badge {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
}

/* Change summary panel injected at the top of the page */
.change-summary-bar {
  background: #fffbe6;
  border: 1px solid #f0d080;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.change-summary-bar .csb-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.change-summary-bar .csb-body {
  flex: 1;
  font-size: 0.8rem;
  color: var(--dark);
  line-height: 1.5;
}
.change-summary-bar .csb-body strong {
  font-weight: 700;
}
.change-summary-bar .csb-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.change-summary-bar .csb-list li {
  padding: 0;
  border: none;
  background: none;
  margin-left: 0;
  font-size: 0.78rem;
  color: var(--dark);
}
.change-summary-bar .csb-list li::before {
  content: "↑ ";
  color: #f0a500;
  font-weight: 700;
}
.change-summary-bar .csb-dismiss {
  flex-shrink: 0;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--muted);
  align-self: center;
}
.change-summary-bar .csb-dismiss:hover {
  border-color: var(--dark);
  color: var(--dark);
}
