:root {
  --ink: #173044;
  --muted: #5f7080;
  --paper: #f7fbfd;
  --line: #d9e5ec;
  --cyan: #08aee3;
  --aqua: #62d9d1;
  --blue: #0798d2;
  --brand-mid: #176f9f;
  --blue-dark: #0d4f78;
  --green: #28bca9;
  --amber: #f2b84b;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(22, 53, 73, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.5;
}

body.site-background-watermark {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(247, 251, 253, 0.48), rgba(247, 251, 253, 0.48)),
    url("assets/burgersdam-map.png");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: repeat-y;
  background-size: min(1800px, 150vw) auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(247, 251, 253, 0.92);
  border-bottom: 1px solid rgba(217, 229, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  align-items: start;
  width: min(224px, 54vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-subline {
  display: block;
  margin-top: -7px;
  padding-left: clamp(58px, 32%, 76px);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subline strong {
  color: var(--blue-dark);
  font-weight: 900;
}

.nav-toggle {
  display: none;
}

.module-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.module-nav a,
.module-menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--blue-dark);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.module-nav a:not(.contact-link) {
  justify-content: center;
  max-width: 220px;
  text-align: center;
  line-height: 1.12;
}

.module-nav a:hover,
.module-nav a:focus-visible,
.module-menu-toggle:hover,
.module-menu-toggle:focus-visible {
  background: #e8f5f9;
  outline: none;
}

.module-menu-toggle {
  gap: 8px;
}

.hamburger-icon {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.hamburger-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
}

.module-nav .contact-link {
  padding-inline: 14px;
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(13, 79, 120, 0.18);
  white-space: nowrap;
}

.module-nav .contact-link:hover,
.module-nav .contact-link:focus-visible {
  color: var(--white);
  background: var(--brand-mid);
}

.scenario-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(18px, 5vw, 72px);
  z-index: 30;
  width: min(1120px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.scenario-menu[hidden] {
  display: none;
}

.scenario-menu article {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(217, 229, 236, 0.92);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.78);
}

.scenario-menu article:nth-child(2) {
  border-left-color: var(--green);
}

.scenario-menu article:nth-child(3) {
  border-left-color: var(--amber);
}

.scenario-menu article:nth-child(4) {
  border-left-color: var(--brand-mid);
}

.scenario-menu-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.scenario-menu-title:hover,
.scenario-menu-title:focus-visible,
.scenario-submenu a:hover,
.scenario-submenu a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.scenario-menu p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.scenario-submenu {
  display: grid;
  gap: 3px;
  padding-top: 6px;
  border-top: 1px solid rgba(217, 229, 236, 0.9);
}

.scenario-submenu a {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.theme-card,
.scenario-list li,
#gemeente-burgersdam {
  scroll-margin-top: 98px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(360px, 640px);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 72px) clamp(22px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.98) 0%, rgba(247, 251, 253, 0.9) 42%, rgba(247, 251, 253, 0.5) 100%),
    url("assets/burgersdam-map.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 820px;
  position: sticky;
  top: 96px;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: 3.9rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-text {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  color: var(--white);
  background: var(--blue-dark);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-mid);
  outline: none;
}

.button.secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(13, 79, 120, 0.28);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--brand-mid);
  background: #ffffff;
  outline: none;
}

.civilex-note {
  max-width: 630px;
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand-mid) 26%, var(--line));
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.08);
}

.civilex-note p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.civilex-note a {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.civilex-note a:hover,
.civilex-note a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.hero-info-panel {
  min-width: 0;
  width: min(100%, 620px);
  justify-self: end;
  display: grid;
  gap: 12px;
}

.hero-info-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.hero-info-card:nth-child(2) {
  border-left-color: var(--green);
}

.hero-info-card:nth-child(3) {
  border-left-color: var(--amber);
}

.hero-info-card--highlight {
  min-height: 250px;
  align-content: center;
  border-left-color: var(--brand-mid);
  background:
    linear-gradient(135deg, rgba(8, 174, 227, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.95);
}

.hero-info-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}

.hero-info-card h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}

.hero-info-card p:not(.card-label) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.lesson-info-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(260px, 340px) minmax(380px, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.98) 0%, rgba(247, 251, 253, 0.9) 48%, rgba(247, 251, 253, 0.58) 100%),
    url("assets/burgersdam-map.png") center / cover no-repeat;
}

.lesson-info-copy {
  max-width: 820px;
}

.lesson-info-copy h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 3.2vw, 3.35rem);
}

.lesson-info-summary {
  min-width: 0;
  align-self: start;
  display: grid;
  gap: 14px;
  transform: translateX(clamp(-28px, -1.8vw, -14px));
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.lesson-info-summary .eyebrow {
  margin-bottom: 0;
}

.lesson-info-summary h2 {
  max-width: none;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.lesson-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.lesson-summary-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.84fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 229, 236, 0.86);
}

.lesson-summary-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.22;
  font-weight: 900;
}

.lesson-screenshot-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lesson-screenshot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.lesson-screenshot-card--large {
  grid-column: 1 / -1;
}

.lesson-screenshot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(217, 229, 236, 0.9);
}

.lesson-screenshot-card figcaption {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.lesson-theme-preview {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(8, 174, 227, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.95);
}

.lesson-theme-preview-heading {
  display: grid;
  gap: 6px;
}

.lesson-theme-preview-heading .eyebrow {
  margin-bottom: 0;
}

.lesson-theme-preview-heading h2 {
  max-width: none;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lesson-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lesson-theme-grid article {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 148px;
  padding: 12px 10px;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.86);
  text-align: center;
}

.lesson-theme-grid img {
  width: min(86px, 52%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  filter: drop-shadow(0 10px 14px rgba(13, 79, 120, 0.12));
}

.lesson-theme-grid span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.12;
}

.lesson-theme-grid strong {
  color: var(--blue-dark);
  font-size: 0.98rem;
  line-height: 1;
}

.socialstorm-info-page .lesson-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.socialstorm-info-page .lesson-theme-grid article {
  grid-template-rows: minmax(112px, auto) auto;
  min-height: 166px;
}

.socialstorm-info-page .lesson-theme-grid img {
  width: min(122px, 70%);
  align-self: end;
}

.lesson-info-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
}

.lesson-detail-section {
  background: rgba(255, 255, 255, 0.88);
}

.lesson-flow-section {
  background: rgba(247, 251, 253, 0.92);
}

.lesson-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lesson-detail-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(22, 53, 73, 0.08);
}

.lesson-detail-card--reflection {
  border-left-color: var(--green);
}

.lesson-detail-card h3 {
  max-width: 620px;
}

.lesson-detail-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
}

.lesson-detail-card li::marker {
  color: var(--brand-mid);
}

.lesson-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.lesson-facts div {
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(22, 53, 73, 0.08);
}

.lesson-facts div:nth-child(2),
.lesson-facts div:nth-child(5) {
  border-left-color: var(--green);
}

.lesson-facts div:nth-child(3),
.lesson-facts div:nth-child(6) {
  border-left-color: var(--amber);
}

.lesson-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 900;
}

.lesson-page {
  background-color: #f5fbfd;
  overflow: hidden;
}

.lesson-page .site-header {
  min-height: 64px;
  padding-block: 5px;
}

.lesson-page .brand {
  width: min(178px, 48vw);
}

.lesson-page .brand-subline {
  margin-top: -5px;
  padding-left: clamp(48px, 31%, 62px);
  font-size: 0.58rem;
}

.lesson-page .site-footer {
  display: none;
}

.lesson-dashboard {
  height: calc(100vh - 84px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(6px, 1.1vh, 14px) clamp(18px, 3vw, 44px);
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.96), rgba(238, 249, 249, 0.92)),
    url("assets/burgersdam-map.png") center top / min(1800px, 150vw) auto repeat-y;
}

.lesson-dashboard-heading {
  display: grid;
  gap: 4px;
}

.lesson-dashboard-heading .eyebrow {
  margin-bottom: 0;
}

.lesson-dashboard-heading p:not(.eyebrow),
.lesson-subheading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.beamer-dashboard-layout {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, clamp(460px, 28vw, 620px));
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas:
    "orbit side";
  gap: clamp(10px, 1.5vh, 16px) clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

.budget-orbit {
  grid-area: orbit;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(280px, 1.35fr) minmax(190px, 0.95fr);
  grid-template-rows: repeat(3, minmax(118px, 1fr));
  grid-template-areas:
    "youth budget living"
    "privacy budget safety"
    "housing budget infrastructure";
  column-gap: clamp(10px, 1vw, 18px);
  row-gap: clamp(10px, 1.4vh, 18px);
  align-items: center;
}

.orbit-budget,
.orbit-theme {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
}

.orbit-budget {
  grid-area: budget;
  align-self: stretch;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  --fly-delay: 360ms;
  --fly-x: 0px;
  --fly-y: 42px;
}

.orbit-theme {
  grid-template-columns: minmax(124px, 0.82fr) minmax(92px, 1fr);
  grid-template-areas:
    "image label"
    "image amount";
  align-items: center;
  justify-items: start;
  gap: 2px 8px;
  text-align: left;
}

.dashboard-budget-title {
  width: 100%;
  max-width: none;
  color: #061b3d;
  font-size: clamp(2.15rem, 3.3vw, 3.8rem);
  line-height: 0.95;
  text-align: center;
  margin-bottom: clamp(6px, 1.1vh, 14px);
  transform: translateY(calc(-1 * clamp(8px, 1.6vh, 20px)));
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.orbit-theme-youth {
  grid-area: youth;
  --fly-delay: 780ms;
  --fly-x: -140px;
  --fly-y: -88px;
}

.orbit-theme-living {
  grid-area: living;
  --fly-delay: 1040ms;
  --fly-x: 140px;
  --fly-y: -88px;
}

.orbit-theme-safety {
  grid-area: safety;
  --fly-delay: 1300ms;
  --fly-x: 150px;
  --fly-y: 0px;
}

.orbit-theme-privacy {
  grid-area: privacy;
  --fly-delay: 1560ms;
  --fly-x: -150px;
  --fly-y: 0px;
}

.orbit-theme-housing {
  grid-area: housing;
  --fly-delay: 1820ms;
  --fly-x: -140px;
  --fly-y: 92px;
}

.orbit-theme-infrastructure {
  grid-area: infrastructure;
  --fly-delay: 2080ms;
  --fly-x: 140px;
  --fly-y: 92px;
}

.lesson-page .dashboard-intro > .orbit-budget,
.lesson-page .dashboard-intro > .orbit-theme {
  opacity: 1;
  transform: none;
  filter: none;
}

html.dashboard-sound-sync .lesson-page .dashboard-intro > .orbit-budget,
html.dashboard-sound-sync .lesson-page .dashboard-intro > .orbit-theme {
  opacity: 0;
  transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.82);
  filter: blur(8px) saturate(1.18);
  animation: dashboardFlyIn 780ms cubic-bezier(0.18, 0.92, 0.22, 1) forwards;
  animation-delay: var(--fly-delay);
  animation-play-state: paused;
  will-change: transform, opacity, filter;
}

html.dashboard-sound-sync .lesson-page.is-dashboard-opening .dashboard-intro > .orbit-budget,
html.dashboard-sound-sync .lesson-page.is-dashboard-opening .dashboard-intro > .orbit-theme {
  animation-play-state: running;
}

html.dashboard-sound-sync .lesson-page.is-dashboard-opened .dashboard-intro > .orbit-budget,
html.dashboard-sound-sync .lesson-page.is-dashboard-opened .dashboard-intro > .orbit-theme {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
  will-change: auto;
}

@keyframes dashboardFlyIn {
  0% {
    opacity: 0;
    transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.82);
    filter: blur(8px) saturate(1.18);
  }

  68% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.04);
    filter: blur(0) saturate(1.04);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.dashboard-sound-sync .lesson-page .dashboard-intro > .orbit-budget,
  html.dashboard-sound-sync .lesson-page .dashboard-intro > .orbit-theme,
  html.dashboard-sound-sync .socialstorm-page .dashboard-intro > .socialstorm-hub,
  html.dashboard-sound-sync .socialstorm-page .dashboard-intro > .socialstorm-meter,
  .lesson-page .dashboard-intro > .orbit-budget,
  .lesson-page .dashboard-intro > .orbit-theme,
  .socialstorm-page .dashboard-intro > .socialstorm-hub,
  .socialstorm-page .dashboard-intro > .socialstorm-meter {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    will-change: auto;
  }
}

.orbit-budget img,
.orbit-theme img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 28px rgba(13, 79, 120, 0.16));
}

.orbit-budget img {
  max-width: clamp(280px, 25vw, 480px);
}

.orbit-theme img {
  grid-area: image;
  max-width: clamp(128px, 10.4vw, 196px);
}

.orbit-budget strong,
.orbit-theme strong {
  display: block;
  color: #061b3d;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.orbit-budget strong {
  font-size: clamp(1.55rem, 2.9vw, 2.8rem);
}

.orbit-theme strong {
  grid-area: amount;
  align-self: start;
  font-size: clamp(0.88rem, 1.05vw, 1.14rem);
}

.orbit-theme > span,
.budget-caption {
  display: block;
  color: var(--muted);
  font-size: clamp(0.64rem, 0.74vw, 0.8rem);
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.orbit-theme > span {
  grid-area: label;
  align-self: end;
}

.beamer-data-column {
  grid-area: side;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(8px, 1.1vh, 12px);
  overflow: hidden;
}

.lesson-current-event,
.event-control-panel,
.lesson-spend-section,
.lesson-event-strip {
  min-width: 0;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.event-control-panel {
  display: grid;
  gap: 8px;
  padding: clamp(10px, 1.1vw, 14px);
}

.simulation-start-button {
  width: 100%;
  min-height: clamp(38px, 5vh, 48px);
  padding: 9px 12px;
  border: 1px solid rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 10px 20px rgba(13, 79, 120, 0.18);
  font: inherit;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
}

.simulation-start-button:hover,
.simulation-start-button:focus-visible {
  background: var(--brand-mid);
  outline: none;
}

.simulation-start-button:disabled {
  color: rgba(15, 43, 68, 0.5);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(231, 238, 242, 0.92);
  box-shadow: none;
  cursor: not-allowed;
}

.teacher-session-panel {
  display: grid;
  gap: 8px;
}

.session-qr-card {
  display: grid;
  grid-template-columns: clamp(168px, 10vw, 204px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.86);
}

.session-qr-card.is-closed {
  grid-template-columns: 1fr;
  background: rgba(232, 245, 249, 0.9);
}

.session-qr {
  width: clamp(168px, 10vw, 204px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 120, 0.18);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.session-qr:disabled,
.session-qr-card.is-closed .session-qr {
  display: none;
}

.session-qr:hover,
.session-qr:focus-visible {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(8, 174, 227, 0.16);
  outline: none;
}

.session-qr svg,
.session-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  shape-rendering: crispEdges;
}

.session-qr-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.session-qr-copy .eyebrow {
  margin: 0;
  font-size: 0.62rem;
}

.session-qr-copy strong {
  color: #061b3d;
  font-size: clamp(0.78rem, 0.88vw, 0.92rem);
  line-height: 1.1;
}

.session-qr-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.session-stats div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(217, 229, 236, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.9);
}

.session-stats span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-stats strong {
  color: #061b3d;
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.05;
}

.session-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.session-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
}

.session-actions button:hover,
.session-actions button:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  outline: none;
}

.session-actions button:disabled {
  color: rgba(15, 43, 68, 0.42);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(247, 251, 253, 0.88);
  cursor: not-allowed;
}

.session-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(20, 35, 48, 0.28);
  backdrop-filter: grayscale(0.3) saturate(0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.session-qr-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.session-qr-modal-card {
  position: relative;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vh, 22px);
  overflow: auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 6px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(22, 53, 73, 0.22);
}

.session-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.session-qr-close:hover,
.session-qr-close:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  outline: none;
}

.session-qr-large {
  width: min(520px, 76vw, 60vh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 120, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.session-qr-large svg,
.session-qr-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  shape-rendering: crispEdges;
}

.session-qr-modal-copy {
  max-width: 640px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.session-qr-modal-copy .eyebrow {
  margin: 0;
}

.session-qr-modal-copy h2 {
  max-width: none;
  color: #061b3d;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.session-qr-modal-copy p:not(.eyebrow) {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.lesson-current-event {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(820px, calc(100vw - 48px));
  max-height: min(72vh, 560px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.8vw, 20px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  overflow: auto;
  border-left: 6px solid var(--brand-mid);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, -48%, 0) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.event-spotlight-close {
  position: absolute;
  top: clamp(14px, 1.6vw, 20px);
  right: clamp(118px, 16vw, 144px);
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 79, 120, 0.18);
  border-radius: 50%;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(13, 79, 120, 0.12);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.event-spotlight-close:hover,
.event-spotlight-close:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  outline: none;
}

.event-countdown {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  min-width: 88px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 79, 120, 0.16);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.9);
}

.event-countdown span {
  color: #061b3d;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 950;
  line-height: 0.9;
}

.event-countdown strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.lesson-current-event.is-spotlight-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.lesson-page.is-event-spotlight-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 35, 48, 0.22);
  backdrop-filter: grayscale(0.35) saturate(0.8);
  pointer-events: none;
}

.lesson-current-event-heading {
  display: grid;
  gap: 4px;
  padding-right: clamp(108px, 16vw, 138px);
}

.lesson-current-event-heading .eyebrow {
  margin-bottom: 0;
}

.lesson-current-event h2 {
  color: #061b3d;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.02;
}

.lesson-current-event p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.25vw, 1.24rem);
  font-weight: 800;
  line-height: 1.36;
}

.lesson-current-event .socialstorm-round-context {
  color: #24445c;
  font-size: clamp(0.98rem, 1.12vw, 1.14rem);
  font-weight: 850;
  line-height: 1.42;
}

.budget-question {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.82);
}

.dashboard-bottom-event .lesson-current-event-heading,
.dashboard-bottom-event > p {
  grid-column: auto;
  grid-row: auto;
}

.budget-question span,
.event-metrics span,
.choice-option-meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-question strong {
  color: var(--blue-dark);
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  line-height: 1.18;
}

.event-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.event-metrics div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(217, 229, 236, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.9);
}

.event-metrics strong {
  color: #061b3d;
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.05;
  white-space: nowrap;
}

.dashboard-round-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.dashboard-round-controls button {
  min-width: 0;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(13, 79, 120, 0.24);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  cursor: pointer;
}

.dashboard-round-controls button:not(:disabled):hover,
.dashboard-round-controls button:not(:disabled):focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  outline: none;
}

.dashboard-round-controls button:disabled {
  color: rgba(15, 43, 68, 0.42);
  cursor: not-allowed;
  background: rgba(247, 251, 253, 0.88);
}

.event-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 6px;
}

.event-activate-button {
  min-width: 0;
  min-height: 34px;
  height: clamp(34px, 4.8vh, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.event-activate-button:not(:disabled):hover,
.event-activate-button:not(:disabled):focus-visible,
.event-activate-button.is-active {
  color: var(--white);
  background: var(--blue-dark);
  outline: none;
}

.event-activate-button.is-submitted {
  color: rgba(15, 43, 68, 0.44);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(231, 238, 242, 0.9);
  cursor: not-allowed;
}

.event-activate-button:disabled {
  color: rgba(15, 43, 68, 0.36);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(247, 251, 253, 0.82);
  cursor: not-allowed;
}

.event-activate-button.is-introduced {
  color: rgba(15, 43, 68, 0.52);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(231, 238, 242, 0.92);
}

.event-activate-button.is-active.is-introduced {
  border-color: rgba(13, 79, 120, 0.28);
  box-shadow: inset 0 0 0 2px rgba(13, 79, 120, 0.18);
}

.event-activate-button.is-introduced:not(:disabled) {
  cursor: pointer;
}

.event-activate-button.is-introduced:not(:disabled):hover,
.event-activate-button.is-introduced:not(:disabled):focus-visible {
  color: var(--blue-dark);
  border-color: rgba(13, 79, 120, 0.28);
  background: rgba(217, 229, 236, 0.98);
  outline: 2px solid rgba(13, 79, 120, 0.2);
  outline-offset: 2px;
}

.lesson-spend-section,
.lesson-event-strip {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: clamp(7px, 1vh, 11px);
  padding: clamp(10px, 1.1vw, 14px);
  overflow: hidden;
}

.lesson-subheading {
  display: grid;
  gap: 4px;
}

.beamer-data-column .lesson-subheading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 8px;
}

.beamer-data-column .lesson-subheading .eyebrow {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
}

.lesson-subheading h2 {
  color: #061b3d;
  font-size: clamp(1.24rem, 1.8vw, 1.9rem);
}

.beamer-data-column .lesson-subheading h2 {
  font-size: clamp(0.86rem, 1.05vw, 1.06rem);
  line-height: 1.08;
}

.spend-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(4px, 0.72vh, 7px);
}

.spend-bars div {
  position: relative;
  min-height: clamp(28px, 3.7vh, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.spend-bars div::before,
.spend-bars div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 999px;
}

.spend-bars div::before {
  background: rgba(217, 229, 236, 0.86);
}

.spend-bars div::after {
  right: auto;
  width: var(--bar);
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
}

.spend-bars span,
.spend-bars strong {
  position: relative;
  padding-bottom: 11px;
  font-weight: 950;
}

.spend-bars span {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.68rem, 0.78vw, 0.84rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spend-bars strong {
  justify-self: end;
  color: #061b3d;
  font-size: clamp(0.76rem, 0.92vw, 0.96rem);
  text-align: right;
  white-space: nowrap;
}

.event-amounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.event-amounts div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.event-amounts span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-amounts strong {
  color: #061b3d;
  font-size: clamp(1.08rem, 1.7vw, 1.65rem);
  line-height: 1;
  white-space: nowrap;
}

.lesson-choice-analysis {
  overflow: hidden;
}

.choice-option-list {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}

.choice-option-list.is-empty {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
}

.choice-empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(247, 251, 253, 0.86);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.choice-option {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 236, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--choice-accent, var(--brand-mid)) 10%, transparent), transparent 72%),
    rgba(247, 251, 253, 0.94);
}

.choice-option-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.choice-option h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.78rem, 0.85vw, 0.94rem);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.choice-option strong {
  color: #061b3d;
  font-size: clamp(0.82rem, 0.98vw, 0.98rem);
  white-space: nowrap;
}

.choice-option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.choice-option-meta span {
  width: fit-content;
  padding: 3px 5px;
  border-radius: 8px;
  font-size: 0.62rem;
  color: color-mix(in srgb, var(--choice-accent, var(--brand-mid)) 66%, #061b3d);
  background: color-mix(in srgb, var(--choice-accent, var(--brand-mid)) 12%, #ffffff);
}

.choice-option-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(217, 229, 236, 0.9);
}

.choice-option-bar span {
  width: var(--choice-bar, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--choice-accent, var(--brand-mid)), color-mix(in srgb, var(--choice-accent, var(--brand-mid)) 42%, #ffffff));
}

.civilex-dashboard-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 249, 0.94)),
    url("assets/burgersdam-map.png") center / cover no-repeat;
}

.dashboard-section-heading {
  max-width: 980px;
}

.civilex-dashboard-board {
  display: grid;
  gap: 18px;
}

.dashboard-statusbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-statusbar div,
.dashboard-theme,
.budget-hub,
.spend-panel {
  min-width: 0;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.dashboard-statusbar div {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 16px;
}

.dashboard-statusbar span,
.budget-hub-stats span,
.event-spend-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-statusbar strong {
  color: var(--blue-dark);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.05;
}

.dashboard-constellation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "youth youth budget budget living living"
    "safety safety budget budget privacy privacy"
    "trust trust budget budget equality equality"
    "cohesion cohesion economy economy polarization polarization";
  gap: 14px;
  align-items: stretch;
}

.budget-hub {
  grid-area: budget;
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 12px;
  min-height: 540px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
  border-color: rgba(242, 184, 75, 0.48);
  background:
    radial-gradient(circle at 50% 24%, rgba(242, 184, 75, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 22px 52px rgba(13, 79, 120, 0.15);
}

.budget-hub img {
  width: min(100%, 330px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(11, 47, 75, 0.18));
}

.budget-hub-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.budget-hub-copy h3 {
  color: #061b3d;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.96;
}

.budget-hub-copy p:not(.card-label) {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.budget-hub-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.budget-hub-stats div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.88);
}

.budget-hub-stats strong {
  color: var(--blue-dark);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.05;
}

.dashboard-theme {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 180px;
  padding: 14px;
  overflow: hidden;
  border-top: 5px solid var(--accent);
}

.dashboard-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 64%);
  pointer-events: none;
}

.dashboard-theme img,
.dashboard-theme-copy {
  position: relative;
}

.dashboard-theme img {
  width: min(100%, 132px);
  height: auto;
  justify-self: center;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(11, 47, 75, 0.14));
}

.dashboard-theme-copy {
  display: grid;
  gap: 9px;
}

.dashboard-theme-copy h3 {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
}

.dashboard-theme-copy p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.dashboard-theme-copy p span {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--accent) 62%, #061b3d);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  font-size: 0.78rem;
  font-weight: 900;
}

.theme-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(217, 229, 236, 0.9);
}

.theme-bar span {
  width: var(--amount);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 42%, #ffffff));
}

.dashboard-theme-youth {
  grid-area: youth;
}

.dashboard-theme-living {
  grid-area: living;
}

.dashboard-theme-safety {
  grid-area: safety;
}

.dashboard-theme-privacy {
  grid-area: privacy;
}

.dashboard-theme-trust {
  grid-area: trust;
}

.dashboard-theme-equality {
  grid-area: equality;
}

.dashboard-theme-cohesion {
  grid-area: cohesion;
}

.dashboard-theme-economy {
  grid-area: economy;
}

.dashboard-theme-polarization {
  grid-area: polarization;
}

.dashboard-graphs {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spend-panel {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.spend-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.spend-panel-heading h3 {
  font-size: 1.08rem;
}

.spend-panel-heading span {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #e8f5f9;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.horizontal-chart {
  display: grid;
  gap: 10px;
}

.horizontal-chart div {
  position: relative;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 236, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.9);
}

.horizontal-chart div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(8, 174, 227, 0.24), rgba(47, 191, 91, 0.2));
}

.horizontal-chart span,
.horizontal-chart strong {
  position: relative;
  font-weight: 900;
}

.horizontal-chart span {
  color: var(--ink);
}

.horizontal-chart strong {
  color: var(--blue-dark);
}

.round-chart {
  min-height: 164px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(217, 229, 236, 0.45) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(247, 251, 253, 0.92);
}

.round-chart span {
  min-height: 18px;
  height: var(--height);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue-dark));
}

.budget-donut {
  width: min(170px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 50%, transparent 51%),
    conic-gradient(var(--green) 0 62%, rgba(217, 229, 236, 0.9) 62% 100%);
}

.budget-donut strong {
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.budget-donut span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.event-spend-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-spend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(217, 229, 236, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.92);
}

.event-spend-list strong {
  color: var(--blue-dark);
  font-weight: 950;
}

.modules-section,
.scenario-lines-section,
.benefits-section,
.citizenship-section,
.workflow-section,
.tools-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.84);
}

.benefits-section,
.workflow-section {
  background: rgba(247, 251, 253, 0.92);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.module-grid,
.scenario-line-grid,
.offer-grid,
.benefit-grid,
.theme-grid,
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card,
.scenario-line-card,
.offer-card,
.benefit-card,
.theme-card,
.workflow article {
  min-width: 0;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(22, 53, 73, 0.08);
}

.module-card {
  border-left: 5px solid var(--cyan);
}

.scenario-line-card {
  min-height: 340px;
  border-left: 5px solid var(--brand-mid);
}

.scenario-line-card:nth-child(2) {
  border-left-color: var(--green);
}

.scenario-line-card:nth-child(3) {
  border-left-color: var(--amber);
}

.scenario-line-card:nth-child(4) {
  border-left-color: var(--cyan);
}

.offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  min-height: 230px;
  border-left: 5px solid var(--cyan);
}

.offer-card:nth-child(2),
.offer-card:nth-child(5) {
  border-left-color: var(--green);
}

.offer-card:nth-child(3),
.offer-card:nth-child(6) {
  border-left-color: var(--amber);
}

.scenario-line-card > p:not(.card-label),
.offer-card p:not(.card-label),
.scenario-list {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.scenario-list {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.module-number,
.workflow span {
  width: fit-content;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 900;
}

.module-summary,
.offer-card p:not(.card-label),
.theme-card p,
.workflow p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card {
  min-height: 340px;
  border-top: 5px solid var(--blue);
}

.benefit-card.teacher {
  border-top-color: var(--green);
}

.benefit-card.student {
  border-top-color: var(--amber);
}

.card-label {
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #e8f5f9;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
}

.theme-card {
  min-height: 220px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("assets/burgersdam-map.png") center / cover no-repeat;
}

.workflow article {
  min-height: 240px;
}

.pilot-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.pilot-panel div {
  display: grid;
  gap: 10px;
}

.pilot-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 32px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid rgba(217, 229, 236, 0.9);
}

.site-footer img {
  width: min(210px, 62vw);
  height: auto;
}

.site-footer p,
.site-footer span {
  margin: 0;
  font-weight: 700;
}

.student-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
}

.student-shell {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
}

.student-header,
.student-status-panel,
.student-theme-form,
.student-waiting-panel {
  min-width: 0;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.student-header {
  display: grid;
  grid-template-columns: minmax(116px, 150px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 4vw, 24px);
}

.student-header img {
  width: 100%;
  height: auto;
  display: block;
}

.student-header .eyebrow {
  margin-bottom: 4px;
}

.student-header h1 {
  max-width: none;
  color: #061b3d;
  font-size: clamp(1.9rem, 8vw, 3rem);
}

.student-status-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 4vw, 24px);
}

.student-waiting-panel {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 4vw, 26px);
  border-left: 5px solid var(--amber);
}

.student-waiting-panel[hidden],
.student-theme-form[hidden] {
  display: none !important;
}

.student-waiting-panel .eyebrow {
  margin: 0;
}

.student-waiting-panel h2 {
  margin: 0;
  color: #061b3d;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  line-height: 1.08;
}

.student-waiting-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
}

.student-status-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
}

.student-round-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.student-round-stats div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(217, 229, 236, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.9);
}

.student-round-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-round-stats strong {
  color: #061b3d;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  line-height: 1;
}

.student-round-stats .is-negative {
  color: #a3392d;
}

.student-theme-form {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 4vw, 24px);
}

.student-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-theme-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.88);
}

.student-theme-card:nth-child(2) {
  border-left-color: var(--blue-dark);
}

.student-theme-card:nth-child(3) {
  border-left-color: #4fbf7f;
}

.student-theme-card:nth-child(4) {
  border-left-color: var(--amber);
}

.student-theme-card:nth-child(5) {
  border-left-color: var(--cyan);
}

.student-theme-card:nth-child(6) {
  border-left-color: #5c83c9;
}

.student-theme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-theme-head strong {
  color: #061b3d;
  font-size: 1rem;
  line-height: 1.12;
}

.student-theme-head span {
  min-width: 128px;
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.student-theme-card input[type="range"] {
  width: 100%;
  accent-color: var(--brand-mid);
}

.student-theme-card input[type="number"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 79, 120, 0.2);
  border-radius: 8px;
  color: #061b3d;
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.student-theme-card input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.student-submit {
  width: 100%;
}

.student-submit:disabled {
  color: rgba(15, 43, 68, 0.46);
  border-color: rgba(217, 229, 236, 0.98);
  background: rgba(231, 238, 242, 0.9);
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 5px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-dark);
    background: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
  }

  .module-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .module-nav.is-open {
    display: grid;
  }

  .module-nav a,
  .module-menu-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .module-nav a:not(.contact-link) {
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }

  .scenario-menu {
    right: 18px;
    left: 18px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
}

.scenario-list a {
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.scenario-list a:hover,
.scenario-list a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.socialstorm-page {
  --student-choice-1: var(--brand-mid);
  --student-choice-2: var(--green);
  --student-choice-3: var(--amber);
  --student-choice-4: #5c83c9;
  --student-choice-5: #9c74c9;
}

.socialstorm-page .lesson-current-event {
  width: min(960px, calc(100vw - 40px));
  max-height: none;
  gap: clamp(8px, 1.05vw, 13px);
  padding: clamp(18px, 2.1vw, 30px);
  overflow: visible;
}

.socialstorm-page .lesson-current-event-heading {
  padding-right: clamp(92px, 13vw, 126px);
}

.socialstorm-page .lesson-current-event h2 {
  font-size: clamp(1.78rem, 2.65vw, 2.8rem);
}

.socialstorm-page .lesson-current-event p:not(.eyebrow) {
  font-size: clamp(0.94rem, 1.08vw, 1.1rem);
  line-height: 1.3;
}

.socialstorm-page .lesson-current-event .socialstorm-round-context {
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.3;
}

.socialstorm-page .event-countdown {
  min-width: 72px;
  padding: 8px 10px;
}

.socialstorm-page .event-countdown span {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.socialstorm-page .beamer-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(430px, clamp(450px, 29vw, 620px));
}

.socialstorm-page .socialstorm-data-column {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.62fr);
}

.socialstorm-meter-orbit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(112px, 0.62fr) repeat(2, minmax(154px, 1fr));
  grid-template-areas: none;
  align-items: stretch;
}

.socialstorm-hub,
.socialstorm-meter {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.1);
}

.socialstorm-hub {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "title"
    "subtitle";
  align-items: center;
  gap: 3px;
  padding: clamp(16px, 1.8vw, 22px);
  border-left: 6px solid var(--brand-mid);
  background:
    linear-gradient(135deg, rgba(8, 174, 227, 0.12), rgba(40, 188, 169, 0.08) 55%, rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
}

.socialstorm-hub .eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.socialstorm-hub .dashboard-budget-title {
  grid-area: title;
  margin: 0;
  transform: none;
  text-align: left;
  font-size: clamp(2rem, 3.15vw, 3.4rem);
}

.socialstorm-hub .budget-caption {
  grid-area: subtitle;
  color: var(--muted);
  font-size: clamp(0.74rem, 0.86vw, 0.96rem);
}

.socialstorm-hub strong {
  grid-area: round;
  min-width: clamp(82px, 6vw, 112px);
  display: grid;
  place-items: center;
  align-self: stretch;
  border: 1px solid rgba(13, 79, 120, 0.14);
  border-radius: 8px;
  color: #061b3d;
  background: rgba(232, 245, 249, 0.92);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 950;
  line-height: 1;
}

.socialstorm-meter {
  --meter-accent: var(--brand-mid);
  display: grid;
  grid-template-columns: clamp(44px, 4.2vw, 62px) minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "image label value"
    "bar bar bar";
  align-items: center;
  gap: 8px 9px;
  padding: clamp(9px, 1vw, 13px);
  overflow: hidden;
  border-left: 5px solid var(--meter-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--meter-accent) 12%, transparent), transparent 68%),
    rgba(255, 255, 255, 0.96);
}

.socialstorm-meter.is-high-risk,
.socialstorm-meter.is-low-protection {
  box-shadow: 0 16px 38px rgba(151, 62, 46, 0.15);
}

.socialstorm-meter img {
  grid-area: image;
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(13, 79, 120, 0.12));
}

.socialstorm-meter span {
  grid-area: label;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.72rem, 0.84vw, 0.93rem);
  font-weight: 950;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.socialstorm-meter strong {
  grid-area: value;
  color: #061b3d;
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.socialstorm-meter-bar {
  grid-area: bar;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(217, 229, 236, 0.9);
}

.socialstorm-meter-bar i {
  width: var(--bar, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--meter-accent), color-mix(in srgb, var(--meter-accent) 42%, #ffffff));
  transition: width 220ms ease;
}

html.dashboard-sound-sync .socialstorm-page .dashboard-intro > .socialstorm-hub,
html.dashboard-sound-sync .socialstorm-page .dashboard-intro > .socialstorm-meter {
  opacity: 0;
  transform: translate3d(var(--fly-x, 0), var(--fly-y, 32px), 0) scale(0.86);
  filter: blur(8px) saturate(1.12);
  animation: dashboardFlyIn 700ms cubic-bezier(0.18, 0.92, 0.22, 1) forwards;
  animation-delay: var(--fly-delay, 360ms);
  animation-play-state: paused;
  will-change: transform, opacity, filter;
}

html.dashboard-sound-sync .socialstorm-page.is-dashboard-opening .dashboard-intro > .socialstorm-hub,
html.dashboard-sound-sync .socialstorm-page.is-dashboard-opening .dashboard-intro > .socialstorm-meter {
  animation-play-state: running;
}

html.dashboard-sound-sync .socialstorm-page.is-dashboard-opened .dashboard-intro > .socialstorm-hub,
html.dashboard-sound-sync .socialstorm-page.is-dashboard-opened .dashboard-intro > .socialstorm-meter {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
  will-change: auto;
}

.socialstorm-meter:nth-child(2) { --fly-delay: 660ms; --fly-x: -120px; --fly-y: -74px; }
.socialstorm-meter:nth-child(3) { --fly-delay: 780ms; --fly-x: 120px; --fly-y: -74px; }
.socialstorm-meter:nth-child(4) { --fly-delay: 900ms; --fly-x: -120px; --fly-y: 74px; }
.socialstorm-meter:nth-child(5) { --fly-delay: 1020ms; --fly-x: 120px; --fly-y: 74px; }

.socialstorm-round-buttons {
  grid-template-columns: repeat(5, minmax(42px, 1fr));
}

.socialstorm-round-buttons .event-activate-button {
  min-height: 42px;
  height: auto;
  padding: 0;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1;
  white-space: nowrap;
}

.socialstorm-end-report {
  overflow: hidden;
}

.end-report-card {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.end-report-card-clickable {
  margin: -4px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.end-report-card-clickable:hover,
.end-report-card-clickable:focus-visible {
  border-color: rgba(13, 79, 120, 0.22);
  background: rgba(232, 245, 249, 0.72);
  box-shadow: 0 10px 22px rgba(13, 79, 120, 0.08);
  outline: none;
}

.end-report-card .eyebrow {
  margin: 0;
  font-size: 0.62rem;
}

.end-report-card h3 {
  color: #061b3d;
  font-size: clamp(0.9rem, 1.08vw, 1.08rem);
  line-height: 1.12;
}

.end-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  font-weight: 800;
  line-height: 1.28;
}

.end-report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.end-report-grid div {
  min-width: 0;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: rgba(232, 245, 249, 0.88);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.1;
}

.end-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.end-report-grid div {
  display: grid;
  gap: 3px;
}

.end-report-grid span {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.end-report-grid strong {
  overflow: hidden;
  color: #061b3d;
  font-size: 0.72rem;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.end-report-open-hint {
  width: fit-content;
  color: var(--blue-dark);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.end-report-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.end-report-actions button,
.report-modal-actions button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 79, 120, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
}

.end-report-actions button:hover,
.end-report-actions button:focus-visible,
.report-modal-actions button:hover,
.report-modal-actions button:focus-visible {
  background: var(--brand-mid);
  outline: none;
}

.report-modal {
  z-index: 58;
}

.report-modal-card {
  width: min(920px, calc(100vw - 36px));
  justify-items: stretch;
  border-left-color: var(--cyan);
}

.report-modal-heading {
  display: grid;
  gap: 4px;
  padding-right: 86px;
}

.report-modal-heading .eyebrow {
  margin: 0;
}

.report-modal-heading h2 {
  color: #061b3d;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.report-modal-body {
  min-width: 0;
}

.end-report-card-large {
  gap: 16px;
}

.end-report-card-large .eyebrow {
  font-size: 0.72rem;
}

.end-report-card-large h3 {
  color: #061b3d;
  font-size: clamp(1.32rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.end-report-card-large p {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  font-weight: 760;
  line-height: 1.45;
}

.end-report-card-large .end-report-grid {
  gap: 8px;
}

.end-report-card-large .end-report-grid div {
  padding: 11px 12px;
}

.end-report-card-large .end-report-grid span {
  font-size: 0.66rem;
}

.end-report-card-large .end-report-grid strong {
  display: block;
  overflow: visible;
  color: #061b3d;
  font-size: 0.96rem;
  line-height: 1.18;
  -webkit-line-clamp: unset;
}

.end-report-reflection {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid rgba(217, 229, 236, 0.9);
}

.end-report-reflection h4 {
  margin: 0;
  color: #061b3d;
  font-size: 1.02rem;
  line-height: 1.15;
}

.end-report-reflection ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.end-report-reflection li {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 820;
  line-height: 1.32;
}

.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.socialstorm-choice-list {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.social-post-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-post-list li {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(217, 229, 236, 0.92);
  border-left: 4px solid var(--brand-mid);
  border-radius: 8px;
  color: #061b3d;
  background: rgba(247, 251, 253, 0.92);
  font-size: clamp(0.82rem, 0.94vw, 0.96rem);
  font-weight: 900;
  line-height: 1.16;
}

.socialstorm-question,
.student-question {
  color: #061b3d;
  font-weight: 950;
}

.socialstorm-page .socialstorm-question {
  padding: 10px 12px;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  color: #061b3d;
  background: rgba(255, 247, 225, 0.94);
  font-size: clamp(1.06rem, 1.25vw, 1.25rem);
  line-height: 1.2;
}

.socialstorm-spotlight {
  width: min(920px, calc(100vw - 48px));
}

.socialstorm-student-page {
  --student-choice-1: var(--brand-mid);
  --student-choice-2: var(--green);
  --student-choice-3: var(--amber);
  --student-choice-4: #5c83c9;
  --student-choice-5: #9c74c9;
}

.student-choice-form {
  gap: 12px;
}

.student-choice-grid {
  grid-template-columns: 1fr;
}

.student-choice-card {
  --choice-accent: var(--brand-mid);
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-left: 5px solid var(--choice-accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--choice-accent) 10%, transparent), transparent 74%),
    rgba(247, 251, 253, 0.92);
  cursor: pointer;
}

.student-choice-card input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--choice-accent);
}

.student-choice-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.student-choice-body strong {
  color: #061b3d;
  font-size: clamp(0.98rem, 4vw, 1.14rem);
  line-height: 1.14;
}

.student-choice-value {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--choice-accent) 70%, #061b3d);
  background: color-mix(in srgb, var(--choice-accent) 12%, #ffffff);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.student-choice-body small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.28;
}

.student-post-list {
  margin-top: -4px;
}

@media (max-width: 1180px) {
  .socialstorm-page .beamer-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .socialstorm-page .socialstorm-data-column {
    grid-template-rows: auto auto auto;
  }

  .socialstorm-meter-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .socialstorm-hub {
    grid-column: 1 / -1;
  }

  .socialstorm-choice-list {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .socialstorm-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "subtitle"
      "round";
  }

  .socialstorm-hub strong {
    width: fit-content;
    min-height: 54px;
    padding-inline: 18px;
  }

  .socialstorm-meter-orbit {
    grid-template-columns: 1fr;
  }

  .end-report-grid,
  .student-round-stats {
    grid-template-columns: 1fr;
  }

  .report-modal-card {
    padding: 22px 18px;
  }

  .report-modal-heading {
    padding-right: 74px;
  }

  .report-modal-actions,
  .end-report-actions {
    justify-content: stretch;
  }

  .report-modal-actions button,
  .end-report-actions button {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .lesson-info-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
    max-width: 860px;
  }

  .hero-info-panel {
    width: 100%;
    max-width: 860px;
    justify-self: stretch;
  }

  .lesson-screenshot-panel {
    max-width: 860px;
  }

  .lesson-info-summary {
    width: 100%;
    max-width: 860px;
    transform: none;
  }

  .module-grid,
  .scenario-line-grid,
  .offer-grid,
  .theme-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-statusbar,
  .dashboard-graphs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beamer-dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "orbit"
      "side";
    height: auto;
  }

  .beamer-data-column {
    grid-template-rows: auto;
  }

  .lesson-current-event {
    grid-template-columns: 1fr;
  }

  .dashboard-bottom-event .lesson-current-event-heading,
  .dashboard-bottom-event > p,
  .dashboard-bottom-event .budget-question,
  .dashboard-bottom-event .event-metrics {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-bottom-event .event-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .budget-orbit {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "youth budget budget living"
      "privacy budget budget safety"
      "housing budget budget infrastructure";
  }

  .orbit-budget {
    align-self: center;
  }

  .orbit-budget img {
    max-width: clamp(300px, 42vw, 450px);
  }

  .orbit-theme img {
    max-width: clamp(170px, 22vw, 260px);
  }

  .dashboard-constellation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "budget budget"
      "youth living"
      "safety privacy"
      "trust equality"
      "cohesion economy"
      "polarization polarization";
  }

  .budget-hub {
    min-height: auto;
  }

  .spend-panel-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .lesson-dashboard {
    padding: clamp(8px, 1.4vh, 14px) clamp(12px, 2vw, 24px);
  }

  .beamer-dashboard-layout {
    max-width: calc(100vw - 24px);
    height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(410px, clamp(410px, 42vw, 500px));
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas:
      "orbit side";
    gap: 10px 14px;
  }

  .beamer-data-column {
    grid-template-rows: auto minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 8px;
  }

  .budget-orbit {
    height: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(70px, 1fr));
    grid-template-areas:
      "youth budget living"
      "privacy budget safety"
      "housing budget infrastructure";
    column-gap: 8px;
    row-gap: 8px;
  }

  .dashboard-budget-title {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    margin-bottom: 4px;
    transform: translateY(-8px);
  }

  .orbit-theme {
    grid-template-columns: minmax(58px, 0.66fr) minmax(62px, 1fr);
    gap: 1px 5px;
  }

  .orbit-budget {
    gap: 5px;
  }

  .orbit-budget img {
    max-width: clamp(150px, 20vw, 230px);
  }

  .orbit-theme img {
    max-width: clamp(62px, 7.2vw, 86px);
  }

  .orbit-budget strong {
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  }

  .orbit-theme strong {
    font-size: 0.68rem;
  }

  .orbit-theme > span,
  .budget-caption {
    font-size: 0.54rem;
  }

  .event-control-panel,
  .lesson-spend-section,
  .lesson-event-strip {
    padding: 8px;
  }

  .event-button-grid {
    grid-template-columns: repeat(4, minmax(34px, 1fr));
    gap: 5px;
  }

  .event-activate-button {
    min-height: 30px;
    height: 32px;
    font-size: 1rem;
  }

  .budget-question strong {
    font-size: 0.78rem;
  }

  .event-metrics div {
    padding: 6px 7px;
  }

  .event-metrics strong {
    font-size: 0.78rem;
  }

  .spend-bars div {
    min-height: 26px;
  }

  .choice-option {
    gap: 4px;
    padding: 6px;
  }

  .choice-option h3 {
    font-size: 0.72rem;
  }

  .choice-option strong {
    font-size: 0.76rem;
  }

  .choice-option-meta span {
    font-size: 0.56rem;
  }
}

@media (max-width: 860px) {
  .lesson-page {
    overflow: auto;
  }

  .lesson-dashboard {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: min(202px, 58vw);
  }

  .brand-subline {
    margin-top: -6px;
    padding-left: clamp(52px, 31%, 68px);
    font-size: 0.64rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 5px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-dark);
    background: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
  }

  .module-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .module-nav.is-open {
    display: grid;
  }

  .module-nav a,
  .module-menu-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .scenario-menu {
    right: 18px;
    left: 18px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-info-panel,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .lesson-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-statusbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-amounts {
    grid-template-columns: 1fr;
  }

  .choice-option-list {
    overflow: visible;
  }

  .dashboard-theme {
    grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    padding-inline: 14px;
  }

  .hero,
  .lesson-info-hero,
  .lesson-info-section,
  .civilex-dashboard-section,
  .modules-section,
  .scenario-lines-section,
  .benefits-section,
  .citizenship-section,
  .workflow-section,
  .tools-section {
    padding-inline: 16px;
  }

  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .hero-actions,
  .pilot-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .pilot-panel .button {
    width: 100%;
  }

  .module-grid,
  .scenario-line-grid,
  .offer-grid,
  .lesson-facts,
  .lesson-screenshot-panel,
  .lesson-detail-grid,
  .theme-grid,
  .workflow,
  .dashboard-statusbar,
  .dashboard-graphs {
    grid-template-columns: 1fr;
  }

  .lesson-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-summary-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .lesson-dashboard {
    padding-inline: 16px;
  }

  .student-round-stats,
  .student-theme-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-budget-title {
    font-size: 3.2rem;
  }

  .event-spotlight-close {
    position: static;
    justify-self: end;
  }

  .event-countdown {
    position: static;
    justify-self: start;
  }

  .lesson-current-event-heading {
    padding-right: 0;
  }

  .event-metrics,
  .dashboard-round-controls,
  .choice-option-head {
    grid-template-columns: 1fr;
  }

  .event-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-orbit {
    grid-template-columns: 1fr;
    grid-template-areas:
      "budget"
      "youth"
      "living"
      "safety"
      "privacy"
      "housing"
      "infrastructure";
  }

  .orbit-budget img {
    max-width: min(92vw, 380px);
  }

  .orbit-theme img {
    max-width: min(88vw, 300px);
  }

  .spend-bars div {
    min-height: 62px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .spend-bars span,
  .spend-bars strong {
    padding-bottom: 0;
  }

  .spend-bars strong {
    padding-bottom: 18px;
  }

  .dashboard-constellation {
    grid-template-columns: 1fr;
    grid-template-areas:
      "budget"
      "youth"
      "living"
      "safety"
      "privacy"
      "trust"
      "equality"
      "cohesion"
      "economy"
      "polarization";
  }

  .dashboard-theme {
    grid-template-columns: 102px minmax(0, 1fr);
    min-height: 150px;
    padding: 12px;
  }

  .dashboard-theme img {
    width: min(100%, 104px);
  }

  .budget-hub-stats {
    grid-template-columns: 1fr;
  }

  .module-card,
  .offer-card,
  .benefit-card,
  .lesson-facts div,
  .theme-card,
  .workflow article {
    min-height: auto;
  }
}

.socialstorm-page .socialstorm-meter-orbit {
  grid-template-areas: none;
}

@media (max-width: 1120px) {
  .socialstorm-page .beamer-dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "orbit"
      "side";
    height: auto;
  }

  .socialstorm-page .socialstorm-data-column {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .socialstorm-page .socialstorm-meter-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas: none;
  }

  .socialstorm-page .socialstorm-hub {
    grid-column: 1 / -1;
  }

  .socialstorm-page .socialstorm-choice-list {
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .socialstorm-page .socialstorm-meter-orbit {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .socialstorm-page .socialstorm-hub {
    grid-column: auto;
  }
}

.socialstorm-page .socialstorm-meter {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(88px, 1fr) auto auto;
  grid-template-areas:
    "image"
    "label"
    "bar";
  align-content: center;
  justify-items: stretch;
  gap: clamp(7px, 0.8vw, 10px);
  min-height: clamp(150px, 20vh, 198px);
}

.socialstorm-page .socialstorm-meter img {
  width: clamp(92px, 8.4vw, 142px);
  max-height: clamp(92px, 8.4vw, 142px);
  justify-self: center;
  align-self: end;
}

.socialstorm-page .socialstorm-meter span {
  min-height: 0;
  display: grid;
  align-items: center;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #061b3d;
  font-size: clamp(1.1rem, 1.55vw, 1.62rem);
  line-height: 1.12;
  text-align: center;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.socialstorm-page .socialstorm-meter strong {
  display: none;
}
