/* Behind ESG Ratings - presentation-first custom styles */

:root {
  --ink-950: #0a0e1a;
  --ink-900: #0f1424;
  --ink-850: #12182a;
  --ink-800: #161c2e;
  --ink-700: #212a40;
  --ink-600: #2c3856;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #10b981;
  --env: #10b981;
  --soc: #3b82f6;
  --gov: #a855f7;
  --amber: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-feature-settings: "cv02","cv03","cv04","cv11"; }
button, a { -webkit-tap-highlight-color: transparent; }

/* page shell */
body.js-ready .app-page { display: none; }
body.js-ready .app-page.active {
  display: block;
  animation: pageIn .22s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* nav */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(248, 250, 252, .94);
  border: 1px solid rgba(255, 255, 255, .16);
}
.brand-logo {
  width: 90px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}
.brand-title {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #cbd5e1;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(22, 28, 46, .95);
}

/* buttons */
.btn-primary,
.btn-ghost,
.btn-subtle,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.btn-primary {
  padding: 12px 18px;
  color: #04130e;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 16px 35px rgba(16, 185, 129, .18);
}
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #6ee7b7, #10b981); }
.btn-primary:disabled,
.btn-ghost:disabled,
.btn-subtle:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  padding: 12px 18px;
  color: #e2e8f0;
  border: 1px solid var(--ink-600);
  background: rgba(15, 20, 36, .4);
}
.btn-ghost:hover,
.btn-subtle:hover {
  border-color: rgba(16, 185, 129, .7);
  color: #fff;
  background: rgba(16, 185, 129, .08);
}
.btn-subtle {
  padding: 9px 12px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 20, 36, .72);
  font-size: 12px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 20, 36, .72);
}

/* stat cards */
.stat-card {
  background: linear-gradient(180deg, rgba(22, 28, 46, .92), rgba(15, 20, 36, .92));
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .18s ease, transform .18s ease;
}
.stat-card:hover {
  border-color: rgba(148, 163, 184, .25);
  transform: translateY(-1px);
}
.stat-num {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* guided cascade */
.cascade-shell {
  margin-top: 22px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 20, 36, .92), rgba(22, 28, 46, .72));
  overflow: hidden;
}
.cascade-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cascade-step {
  min-height: 116px;
  padding: 16px;
  text-align: left;
  border-right: 1px solid rgba(148, 163, 184, .1);
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  position: relative;
}
.cascade-step:last-child { border-right: 0; }
.cascade-step:hover,
.cascade-step.active {
  background: rgba(16, 185, 129, .08);
}
.cascade-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .14);
  color: #86efac;
  font: 700 12px/1 "JetBrains Mono", monospace;
}
.cascade-step h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 750;
}
.cascade-step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* value bridge */
.value-bridge {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: stretch;
}
.bridge-copy {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, .18), transparent 34%),
    linear-gradient(180deg, rgba(22, 28, 46, .78), rgba(15, 20, 36, .92));
}
.bridge-copy h2 {
  margin-top: 12px;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 850;
  line-height: 1.08;
}
.bridge-copy p {
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bridge-card {
  min-height: 178px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  background: rgba(22, 28, 46, .62);
}
.bridge-card span {
  color: #6ee7b7;
  font: 800 12px/1 "JetBrains Mono", monospace;
}
.bridge-card h3 {
  margin-top: 24px;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
}
.bridge-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.deliverable-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.deliverable-strip > div {
  min-height: 150px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(22, 28, 46, .6);
}
.deliverable-strip span {
  color: #94a3b8;
  font: 750 11px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.deliverable-strip strong {
  display: block;
  margin-top: 12px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.2;
}
.deliverable-strip p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.page-directory {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 28, 46, .58), rgba(15, 20, 36, .8));
}
.directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.directory-head h2 {
  margin-top: 8px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.1;
}
.directory-head p {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.directory-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 15px;
  background: rgba(10, 14, 26, .38);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.directory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .42);
  background: rgba(16, 185, 129, .07);
}
.directory-card span {
  color: #6ee7b7;
  font: 800 12px/1 "JetBrains Mono", monospace;
}
.directory-card h3 {
  margin-top: 28px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
}
.directory-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* schema explorer */
.schema-method-key {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.schema-method-key > div {
  min-height: 86px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(22, 28, 46, .54);
}
.schema-method-key p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.schema-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 28, 46, .72), rgba(15, 20, 36, .86));
}
.schema-card.is-hidden { display: none; }
.schema-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.schema-card h3 {
  margin-top: 9px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.schema-card > p {
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
}
.schema-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.schema-summary-row > div {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .1);
  background: rgba(10, 14, 26, .42);
}
.schema-summary-row strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1;
}
.schema-summary-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}
.schema-methods {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.schema-method-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
}
.schema-method-row strong {
  color: #e2e8f0;
  text-align: right;
  font: 750 12px/1 "JetBrains Mono", monospace;
}
.schema-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .1);
}
.schema-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #60a5fa);
}

/* chart card */
.chart-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 28, 46, .78), rgba(15, 20, 36, .86));
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .18s ease, transform .18s ease;
}
.chart-card:hover {
  border-color: rgba(148, 163, 184, .26);
  transform: translateY(-1px);
}
.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.chart-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.chart-sub {
  max-width: 62ch;
  margin-top: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.chart-purpose {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, .16);
  border-radius: 12px;
  background: rgba(16, 185, 129, .055);
}
.chart-purpose strong {
  color: #6ee7b7;
  font: 800 11px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.chart-purpose span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}
.chart-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.chart-canvas {
  width: 100%;
  height: 320px;
  min-height: 260px;
}

/* filter buttons */
.filter-btn {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .2);
  color: #cbd5e1;
  background: rgba(15, 20, 36, .52);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(16, 185, 129, .75);
  color: #d1fae5;
  background: rgba(16, 185, 129, .12);
}

/* capture method tile */
.capture-tile {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 14px;
  background: rgba(22, 28, 46, .58);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.capture-tile:hover {
  background: rgba(22, 28, 46, .86);
  transform: translateY(-1px);
}
.capture-tile h4 { font-size: 14px; font-weight: 750; }
.capture-tile p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* explorer */
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 28, 46, .72), rgba(15, 20, 36, .82));
}
.cat-card.is-hidden { display: none; }
.cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}
.cat-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 11px/1 "JetBrains Mono", monospace;
}
.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.cat-title {
  margin-top: 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.cat-standard {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.count-badge {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 7px 9px;
  border-radius: 999px;
  text-align: center;
  color: #e2e8f0;
  background: rgba(33, 42, 64, .95);
  font: 700 12px/1 "JetBrains Mono", monospace;
}
.cat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 14px 18px 18px;
}
.cat-description {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}
.cat-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric-chip {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(10, 14, 26, .55);
  border: 1px solid rgba(148, 163, 184, .1);
}
.metric-chip strong {
  display: block;
  color: #f8fafc;
  font: 800 18px/1 "Inter", sans-serif;
}
.metric-chip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}
.subcat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.subcat-token {
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, .08);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cat-actions .filter-note {
  color: var(--muted);
  font-size: 11px;
}

/* parameter row */
.parameter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.param-search {
  flex: 1 1 240px;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: rgba(10, 14, 26, .62);
  color: #f8fafc;
  padding: 0 12px;
  outline: none;
}
.param-search:focus { border-color: rgba(16, 185, 129, .7); }
.param-list {
  display: grid;
  gap: 8px;
}
.param-row {
  display: grid;
  grid-template-columns: minmax(70px, 90px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .1);
  background: rgba(10, 14, 26, .38);
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.param-row:hover {
  border-color: rgba(16, 185, 129, .38);
  background: rgba(16, 185, 129, .07);
  transform: translateY(-1px);
}
.param-row.is-hidden { display: none; }
.param-row .pid {
  color: #94a3b8;
  font: 650 11px/1 "JetBrains Mono", monospace;
}
.param-row .pname {
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.param-row .pmeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.param-row .ptags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

/* tag pills */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  font: 650 10px/1 "JetBrains Mono", monospace;
  white-space: nowrap;
}
.pill-scada  { background:#0ea5e926; color:#7dd3fc; border:1px solid #0ea5e966; }
.pill-twin   { background:#6366f126; color:#a5b4fc; border:1px solid #6366f166; }
.pill-ai_doc { background:#10b98126; color:#6ee7b7; border:1px solid #10b98166; }
.pill-erp    { background:#f59e0b26; color:#fcd34d; border:1px solid #f59e0b66; }
.pill-manual { background:#94a3b826; color:#cbd5e1; border:1px solid #94a3b866; }
.auto-high   { background:#16a34a26; color:#86efac; border:1px solid #16a34a66; }
.auto-medium { background:#eab30826; color:#fde047; border:1px solid #eab30866; }
.auto-low    { background:#ef444426; color:#fca5a5; border:1px solid #ef444466; }

/* standards card */
.std-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 14px;
  background: rgba(22, 28, 46, .62);
  transition: border-color .18s ease, transform .18s ease;
}
.std-card:hover { border-color: rgba(148, 163, 184, .25); transform: translateY(-1px); }
.std-card .code  { color: var(--accent); font: 750 11px/1.3 "JetBrains Mono", monospace; text-transform: uppercase; }
.std-card .name  { color: #f8fafc; margin-top: 7px; font-weight: 750; line-height: 1.3; }
.std-card .scope { color: var(--muted); margin-top: 12px; font-size: 12px; line-height: 1.55; flex: 1; }
.std-card .status{ color: #64748b; margin-top: 12px; font-size: 11px; }
.std-card .url   { color: var(--accent); margin-top: 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.std-card .url:hover { color: #d1fae5; }

/* divergence call-outs */
.callout {
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 14px;
  padding: 15px;
  color: rgba(254, 243, 199, .95);
  background: rgba(245, 158, 11, .06);
  font-size: 13px;
  line-height: 1.55;
}

/* modal */
#paramModal { z-index: 60; }
.modal-panel {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 20px;
  background: linear-gradient(180deg, #161c2e, #0f1424);
  box-shadow: var(--shadow);
}
.modal-panel.narrow { width: min(720px, 100%); }
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background: rgba(15, 20, 36, .92);
  backdrop-filter: blur(14px);
}
.modal-kicker {
  color: var(--muted);
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.modal-title {
  margin-top: 6px;
  color: #f8fafc;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}
.modal-subtitle {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.modal-body {
  padding: 20px 22px 22px;
}
#paramModal table { width: 100%; font-size: 13px; }
#paramModal td { padding: 7px 0; vertical-align: top; }
#paramModal td:first-child { width: 130px; padding-right: 16px; color: var(--muted); }
.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr);
  gap: 18px;
}
.insight-list {
  display: grid;
  gap: 10px;
}
.insight-list li {
  list-style: none;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(10, 14, 26, .42);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
}
.walkthrough-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

/* utility scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f1424; }
::-webkit-scrollbar-thumb { background: #2c3856; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a456a; }

@media (max-width: 1024px) {
  .cascade-rail { grid-template-columns: 1fr; }
  .cascade-step { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, .1); }
  .value-bridge { grid-template-columns: 1fr; }
  .deliverable-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-head { align-items: start; flex-direction: column; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schema-method-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schema-grid { grid-template-columns: 1fr; }
  .explorer-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .chart-canvas { height: 280px; }
  .chart-card { padding: 15px; }
  .chart-sub { max-width: none; }
  .chart-purpose { grid-template-columns: 1fr; }
  .cat-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridge-grid { grid-template-columns: 1fr; }
  .deliverable-strip { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .schema-method-key { grid-template-columns: 1fr; }
  .schema-summary-row { grid-template-columns: 1fr; }
  .param-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .param-row .ptags { justify-content: flex-start; }
  .modal-header,
  .modal-body { padding-left: 16px; padding-right: 16px; }
}
