/* EU HUB — Institutions index page styles
   Extends /src/styles.css tokens.
   Only loaded on the institutions index page. */

/* ── Token additions not present in styles.css ─────────────────────────────── */
:root {
  --st-live:    #69c47f;
  --st-live-bg: rgba(105, 196, 127, .12);
  --st-vote:    #e35d5d;
  --st-vote-bg: rgba(227, 93, 93, .12);
  /* Override: styles.css value is dark (0.30). v2 matrix highlights need light. */
  --brass-soft: oklch(0.88 0.08 80);
}

/* ── Layout container ────────────────────────────────────────────────────────  */
.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section scaffolding ─────────────────────────────────────────────────────  */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.now-eyebrow,
.section-eyebrow {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.section-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Chip filter ─────────────────────────────────────────────────────────────  */
.chip-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-3);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.04em;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip-filter:hover { color: var(--ink); border-color: var(--line-strong); }

/* ── Cursor spotlight — all card surfaces ────────────────────────────────────
   JS sets --mx/--my (pixel offset from card top-left) on mousemove.
   Default 50%/30% centres the glow when no cursor data is set.
   pointer-events: none so the overlay never blocks child clicks.       */
.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, .07),
    transparent 70%
  );
  z-index: 0;
}
.fcard:hover         .card-spotlight,
.daily-tile:hover    .card-spotlight,
.gloss-card:hover    .card-spotlight,
.compare-col:hover   .card-spotlight,
.journey-step:hover  .card-spotlight { opacity: 1; }

/* compare-col needs position:relative for card-spotlight */
.compare-col { position: relative; }

/* ── institutions-v2.css (verbatim from design reference) ─────────────────── */

/* Override homepage's reveal animation — this page has a heavier React tree
   and the keyframe gets stuck pending. Use opacity instead. */
.reveal {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ────────── HERO (Institutions) ────────── */
.inst-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.inst-hero::after {
  content: "";
  position: absolute;
  right: -12%; top: -20%;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.30 0.07 80 / 0.22), transparent 60%);
  pointer-events: none;
  filter: blur(8px);
}
.inst-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 8.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 26px;
  max-width: 14ch;
}
.inst-hero-title em {
  font-style: italic;
  color: var(--brass);
}
.inst-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 44px;
}


.inst-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 920px;
}
.inst-hero-stat {
  background: var(--surface);
  padding: 22px 24px;
  display: grid; gap: 6px;
}
.inst-hero-stat .v { font-family: var(--serif); font-size: 38px; line-height: 1; letter-spacing: -0.02em; }
.inst-hero-stat .l { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.inst-hero-stat .m { font-size: 13px; color: var(--ink-3); }

/* ────────── POWER FLOW DIAGRAM ────────── */
.flow-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 36px 36px;
  overflow: hidden;
}
.flow-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 20% 0%, oklch(0.30 0.08 80 / 0.10), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, oklch(0.30 0.08 250 / 0.10), transparent 60%);
  pointer-events: none;
}
.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}
.flow-node-rect {
  fill: var(--surface-2);
  stroke: var(--line-2);
  stroke-width: 1;
  transition: fill var(--t-base) var(--ease-out), stroke var(--t-base) var(--ease-out);
}
.flow-node:hover .flow-node-rect,
.flow-node[data-active="true"] .flow-node-rect {
  fill: var(--surface-3);
  stroke: var(--brass);
}
.flow-node-label {
  fill: var(--ink);
  font: 500 13px var(--sans);
  pointer-events: none;
  letter-spacing: -0.005em;
}
.flow-node-sub {
  fill: var(--ink-3);
  font: 500 8px var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}
.flow-node-mark {
  pointer-events: none;
}
.flow-edge {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 2.2;
  stroke-opacity: 0.75;
  transition: stroke var(--t-base) var(--ease-out), stroke-width var(--t-base) var(--ease-out);
}
.flow-edge.is-hot {
  stroke: var(--brass);
  stroke-width: 2.8;
  stroke-opacity: 1;
}
.flow-edge.is-dim { stroke: var(--line); stroke-opacity: 0.35; }
/* Support / governance edges (dotted, weaker) */
.flow-edge-support {
  stroke-dasharray: 4 5;
  stroke-width: 1.6;
  opacity: 0.62;
  transition: stroke var(--t-base) var(--ease-out), stroke-width var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.flow-edge-support.is-hot { stroke-width: 2.2; opacity: 0.88; }
.flow-edge-support.is-dim { opacity: 0.10; }
.flow-edge-label-support { opacity: 0.55; }
.flow-edge-label-support.is-hot { opacity: 1; }
.flow-edge-label {
  fill: var(--ink-3);
  font: 500 10.5px var(--mono);
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: fill var(--t-base) var(--ease-out);
}
.flow-edge-label.is-hot { fill: var(--brass); }
.flow-node {
  cursor: pointer;
}
.flow-cap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.flow-cap b { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-right: 6px; font-weight: 400; letter-spacing: -0.01em; }
.flow-cap-hint {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ────────── INSTITUTION FEATURE CARDS ────────── */
.fcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
  overflow: hidden;
}
.fcard:hover { border-color: var(--line-2); background: var(--surface-2); }
.fcard::after {
  content: "";
  position: absolute;
  top: 0; right: 0; width: 280px; height: 280px;
  background: radial-gradient(circle at top right, var(--inst-tint, transparent), transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}

.fcard-left { display: grid; gap: 24px; align-content: start; }
.fcard-head {
  display: flex; align-items: center; gap: 14px;
}
.fcard-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18), 0 6px 16px oklch(0 0 0 / 0.3);
  position: relative; flex: 0 0 auto;
}
.fcard-mark::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1.5px solid oklch(0 0 0 / 0.28);
  border-radius: 3px;
}
.fcard-code {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fcard-name {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}
.fcard-essence {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.3;
}
.fcard-essence em { color: var(--brass); font-style: italic; }
.fcard-explain {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
  min-height: 6.2em;
  transition: opacity var(--t-base) var(--ease-out);
}
.fcard-explain.is-swap { opacity: 0; }

.fcard-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.fcard-meta b { color: var(--ink); font-weight: 500; }

.fcard-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px;
  padding: 0 22px;
  background: var(--brass);
  color: oklch(0.15 0.01 260);
  border-radius: 999px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  box-shadow: 0 6px 20px oklch(0.40 0.10 70 / 0.30);
  align-self: start;
  white-space: nowrap;
  width: max-content;
  text-decoration: none;
}
.fcard-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px oklch(0.40 0.10 70 / 0.36); }
.fcard-cta:active { transform: translateY(0) scale(0.98); }

/* Right side */
.fcard-right { display: grid; gap: 22px; align-content: start; }

.fcard-powers { display: grid; gap: 8px; }
.fcard-power {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease-out);
}
.fcard-power:hover { border-color: var(--line-2); }
.fcard-power-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 600 12px var(--mono);
  flex: 0 0 auto;
}
.fcard-power.ok .fcard-power-mark {
  background: color-mix(in oklab, var(--st-live-bg) 70%, transparent);
  color: var(--st-live);
}
.fcard-power.no .fcard-power-mark {
  background: color-mix(in oklab, var(--st-vote-bg) 50%, transparent);
  color: var(--st-vote);
}
.fcard-power.no { color: var(--ink-3); }

.fcard-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fcard-kpi {
  background: var(--bg-card);
  padding: 16px 18px;
  display: grid; gap: 4px;
}
.fcard-kpi .v { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.fcard-kpi .l { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fcard-kpi .m { font-size: 12px; color: var(--ink-3); }

/* ────────── POWER MATRIX ────────── */
.matrix {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 240px repeat(7, 1fr);
}
.matrix-head, .matrix-row { display: contents; }
.matrix-head .matrix-cell {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.matrix-head .matrix-cell.first { color: var(--ink); }
.matrix-cell {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease-out);
}
.matrix-cell.first { border-left: 0; }
.matrix-row:hover .matrix-cell { background: var(--surface-2); }
.matrix-row .matrix-cell.is-hot {
  background: color-mix(in oklab, var(--brass-soft) 25%, transparent);
}
.matrix-row:last-of-type .matrix-cell { border-bottom: 0; }

.matrix-inst-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18);
  display: none;
}
.matrix-inst-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.matrix-inst-sub {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}

.matrix-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  position: relative;
  transition: all var(--t-fast) var(--ease-out);
  flex-shrink: 0;
}
.matrix-dot.v1 {
  background: color-mix(in oklab, var(--brass) 30%, var(--bg-deep));
  border-color: color-mix(in oklab, var(--brass) 40%, var(--line));
}
.matrix-dot.v2 {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brass) 18%, transparent);
}

.matrix-foot {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.matrix-foot-key {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ────────── LAW JOURNEY ────────── */
.journey {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.journey-head {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
@media (max-width: 900px) {
  .journey-head { grid-template-columns: 1fr; }
}
.journey-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 400;
}
.journey-proc {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.journey-progress {
  flex: 1; min-width: 280px;
  display: grid; gap: 8px;
}
.journey-progress-bar {
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.journey-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass));
  border-radius: 3px;
  transition: width var(--t-slow) var(--ease-snap);
}
.journey-progress-label {
  display: flex; justify-content: space-between;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.journey-step {
  position: relative;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  display: grid; gap: 6px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
  position: relative;
  text-align: left;
  overflow: hidden;
}
.journey-step:last-child { border-right: 0; }
.journey-step:hover { background: var(--bg-card); }
.journey-step.is-active { background: var(--bg-card); }
.journey-step.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brass);
}
.journey-step-num {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.journey-step-actor {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.journey-step-mark {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
  display: none;
}
.journey-step-when {
  font-size: 12.5px;
  color: var(--ink-3);
}

.journey-body {
  padding: 32px 36px 36px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  min-height: 200px;
}
.journey-body-actor {
  display: grid; gap: 14px;
  align-content: start;
}
.journey-body-actor-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18), 0 8px 20px oklch(0 0 0 / 0.3);
  display: none;
}
.journey-body-actor-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.journey-body-actor-role {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.journey-body-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}
.journey-body-text .when {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.journey-body-title {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 400;
}

.journey-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.journey-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--bg-deep);
  color: var(--ink-2);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.journey-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.journey-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.journey-btn.primary {
  background: var(--brass);
  border-color: var(--brass);
  color: oklch(0.15 0.01 260);
}
.journey-btn.primary:hover { transform: translateY(-1px); }

/* ────────── COMPARE TWO ────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.compare-col {
  background: var(--surface);
  padding: 32px 36px;
  display: grid; gap: 24px;
  align-content: start;
}
.compare-picker {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.compare-picker select {
  flex: 1;
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 38px 12px 14px;
  font: 400 15px var(--sans);
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23949494' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--t-fast) var(--ease-out);
}
.compare-picker select:hover { border-color: var(--line-strong); }
.compare-picker select:focus { outline: 0; border-color: var(--brass); }
.compare-picker-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18); flex: 0 0 auto; display: none; }

.compare-essence {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.compare-rows { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.compare-row {
  padding: 14px 16px;
  background: var(--bg-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
}
.compare-row .lbl { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.compare-row .val { font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-align: right; line-height: 1.25; }
.compare-row .val small { color: var(--ink-3); font: 500 12px var(--mono); margin-left: 6px; display: block; margin-top: 2px; }

/* ────────── DAILY LIFE TIMELINE ────────── */
.daily {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.daily-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: grid; gap: 12px;
  align-content: start;
  transition: all var(--t-base) var(--ease-out);
  overflow: hidden;
  min-height: 200px;
}
.daily-tile::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--daily-tint, transparent), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.daily-tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.daily-hour {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.daily-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.daily-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.daily-actor {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.daily-actor-mark { width: 9px; height: 9px; border-radius: 2px; }

/* ────────── GLOSSARY ────────── */
.glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gloss-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 22px;
  display: grid; gap: 8px;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  min-height: 152px;
  align-content: start;
  overflow: hidden;
  text-align: left;
}
.gloss-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.gloss-term {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--brass);
}
.gloss-full {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gloss-def {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease-snap), margin-top var(--t-base) var(--ease-snap);
}
.gloss-card[data-open="true"] .gloss-def { max-height: 200px; margin-top: 12px; }
.gloss-toggle {
  position: absolute; top: 18px; right: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: transform var(--t-base) var(--spring), color var(--t-fast);
}
.gloss-card:hover .gloss-toggle { color: var(--brass); border-color: var(--brass); }
.gloss-card[data-open="true"] .gloss-toggle { transform: rotate(45deg); color: var(--brass); border-color: var(--brass); }

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1080px) {
  .fcard { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .matrix-grid { grid-template-columns: 180px repeat(7, 1fr); font-size: 12px; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); }
  .journey-step:nth-child(3) { border-right: 0; }
  .journey-body { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .daily { grid-template-columns: repeat(2, 1fr); }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  .inst-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .inst-hero-title { font-size: 56px; }
  .fcard { padding: 26px 22px; }
  .fcard-name { font-size: 30px; }
  .matrix-grid { grid-template-columns: 140px repeat(7, 48px); }
  .matrix { overflow-x: auto; }
  .journey-steps { grid-template-columns: 1fr; }
  .journey-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-body { padding: 24px; }
  .journey-head { padding: 22px; }
  .daily { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .compare-col { padding: 22px; }
  .section { padding: 64px 0; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
  .card-spotlight { transition: none; }
  .fcard:hover .card-spotlight,
  .daily-tile:hover .card-spotlight,
  .gloss-card:hover .card-spotlight,
  .compare-col:hover .card-spotlight,
  .journey-step:hover .card-spotlight { opacity: 0; }
  .daily-tile:hover { transform: none; }
  .fcard-explain { transition: none; }
  .journey-progress-fill { transition: none; }
}

/* ───── Brand (used in footer) ───── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px;
  background: var(--brass);
  border-radius: 7px;
  display: inline-block;
  flex-shrink: 0;
}
footer.foot .brand-mark {
  background: linear-gradient(135deg, #1f6feb, #0b3d91);
}

/* ───── Footer ───── */
footer.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
  background: transparent !important;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
footer.foot p {
  font-size: 14px; line-height: 1.6; color: var(--ink-3);
  margin: 0; max-width: 44ch;
}
footer.foot h6 {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
footer.foot ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
footer.foot li a,
footer.foot li span {
  font: 500 13px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.02em;
  transition: color var(--t-fast) var(--ease-out);
}
footer.foot li a:hover { color: var(--brass); }
footer.foot li a[aria-current="page"] { color: var(--ink); }
footer.foot li span { opacity: 0.45; cursor: default; }

.foot-note {
  grid-column: 1 / -1;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  footer.foot { grid-template-columns: 1fr 1fr; }
  footer.foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  footer.foot { grid-template-columns: 1fr; }
}
