* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #f8fbff;
  --text: #0d1b2a;
  --card: #ffffff;
  --primary: #1b4965;
    --accent: #5fa8d3;


}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

body.dark-mode {
  --bg: #0d1b2a;
  --text: #e0f2ff;
  --card: #1b263b;
  --primary: #a8dadc;
    --accent: #457b9d;

}
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  padding: 20px 48px;
  background-color: var(--card);
}

.brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

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

.brand h1 {
  margin: 0;
  font-size: 3.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 14px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;

  border-radius: 10px;
  white-space: nowrap;

  transition: all 0.2s ease;
}

nav a:hover {
  background-color: #e6f2fa;
  transform: translateY(-1px);
}

nav a.active {
  color: #ffffff;
  background-color: var(--accent);
}

nav a:active {
  transform: scale(0.97);
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 116px;
}

.wave-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

.guide-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px 88px;
}

.hero {
  text-align: center;
  margin-bottom: 58px;
}

.hero h2 {
  font-size: 3rem;
  color: #1b4965;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  color: #1b4965;
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.6;
}

.interactive-guide {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  border-radius: 32px;
  padding: 38px;
  box-shadow: 0 14px 32px rgba(13, 27, 42, 0.08);
  margin-bottom: 66px;
}

.interactive-header {
  margin-bottom: 26px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #d7eefb;
  color: #1b4965;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.interactive-header h3 {
  font-size: 2.3rem;
  color: #1b4965;
  margin-bottom: 10px;
}

.interactive-header p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #36556d;
}

.interactive-note {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5f7a8d;
}

.scenario-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0;
}

.scenario-tab {
  min-width: 118px;
  border: none;
  border-radius: 999px;
  background-color: #e7f2f9;
  color: #1b4965;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.scenario-tab.active {
  background-color: #1b4965;
  color: #ffffff;
}

.scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.scenario-stage,
.scenario-panel {
  background-color: #f8fbff;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid #dcebf5;
}

.scenario-stage-head {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(380px, auto) minmax(140px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.scenario-stage-head h4 {
  justify-self: start;
}

.scenario-stage-head .scenario-tabs {
  justify-self: center;
}

.scenario-stage-head h4,
.scenario-panel h4 {
  font-size: 1.45rem;
  color: #1b4965;
}

.scenario-badge {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 4px 0 4px 12px;
  border-left: 4px solid #5fa8d3;
  background-color: transparent;
  color: #1b4965;
  font-size: 0.92rem;
  font-weight: 700;
}

.scenario-figure {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(180deg, #eef8fe 0%, #dceef9 100%);
  overflow: hidden;
}

.scenario-figure svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}

.scenario-panel-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #567086;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-panel-copy {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: #36556d;
}

.scenario-meta {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.meta-chip {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background-color: #ffffff;
  border: 1px solid #dcebf5;
}

.meta-label {
  font-size: 0.82rem;
  color: #5f7a8d;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 1rem;
  color: #0d1b2a;
  line-height: 1.5;
}

.scenario-actions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-actions li {
  padding: 14px 16px;
  border-radius: 18px;
  background-color: #ffffff;
  border: 1px solid #dcebf5;
  color: #1b4965;
  line-height: 1.6;
}

.svg-hotspot {
  cursor: pointer;
  outline: none;
}



.svg-hotspot .hotspot-fill {
  fill: rgba(95, 168, 211, 0.22);
  stroke: #5fa8d3;
  stroke-width: 3;
}

.svg-hotspot .hotspot-stroke {
  fill: none;
  stroke: #5fa8d3;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-hotspot .hotspot-dot {
  fill: #f7c948;
  stroke: #1b4965;
  stroke-width: 3;
}

.svg-hotspot.is-active .hotspot-fill,
.svg-hotspot:focus-visible .hotspot-fill {
  fill: rgba(244, 162, 89, 0.28);
  stroke: #f4a259;
}

.svg-hotspot.is-active .hotspot-stroke,
.svg-hotspot:focus-visible .hotspot-stroke {
  stroke: #f4a259;
}

.svg-hotspot.is-active .hotspot-dot,
.svg-hotspot:focus-visible .hotspot-dot {
  fill: #f4a259;
}

.svg-label {
  font-size: 15px;
  font-weight: 700;
  fill: #1b4965;
  paint-order: stroke;
  stroke: rgba(238, 248, 254, 0.92);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.warning-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.dark-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px 6px 6px;
  border: 1px solid #d7e6f2;
  border-radius: 999px;
  background-color: #f1f7fc;
}

/* hide default checkbox */
.dark-toggle input {
  display: none;
}

/* slider background */
.slider {
  width: 60px;
  height: 30px;
  background-color: #dbe8f2;
  border-radius: 999px;
  position: relative;
  transition: background-color 0.3s ease;
}

/* circle */
.slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* active state */
.dark-toggle input:checked ~ .slider {
  background-color: #1b4965;
}

.dark-toggle input:checked ~ .slider::before {
  transform: translateX(30px);
}

/* mode icons */
.mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  font-size: 1.1rem;
  line-height: 1;
}

.mode-sun {
  display: none;
}

.mode-moon {
  display: inline-flex;
}

body.dark-mode .mode-sun {
  display: inline-flex;
}

body.dark-mode .mode-moon {
  display: none;
}

body.dark-mode .dark-toggle {
  background-color: #132033;
  border-color: #2d3f5a;
}

body.dark-mode .hero h2,
body.dark-mode .hero p,
body.dark-mode .interactive-header h3,
body.dark-mode .scenario-stage-head h4,
body.dark-mode .scenario-panel h4 {
  color: #a8dadc;
}

body.dark-mode .svg-label {
  fill: #e0f2ff;
  stroke: rgba(13, 27, 42, 0.85);
}

body.dark-mode .interactive-header p,
body.dark-mode .interactive-note,
body.dark-mode .scenario-panel-copy,
body.dark-mode .meta-value,
body.dark-mode .scenario-actions li {
  color: #d4e9f6;
}

body.dark-mode .interactive-guide,
body.dark-mode .scenario-stage,
body.dark-mode .scenario-panel,
body.dark-mode .meta-chip,
body.dark-mode .scenario-actions li {
  background: #1b263b;
  border-color: #2d3f5a;
}

body.dark-mode .scenario-stage,
body.dark-mode .scenario-panel {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

body.dark-mode .scenario-tab {
  background-color: #22324a;
  color: #d4e9f6;
}

body.dark-mode .scenario-tab.active {
  background-color: #457b9d;
  color: #ffffff;
}

body.dark-mode .scenario-badge {
  background-color: transparent;
  border-left-color: #5fa8d3;
  color: #a8dadc;
}

body.dark-mode .scenario-panel-label,
body.dark-mode .meta-label {
  color: #9fb3c9;
}

body.dark-mode .scenario-figure {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #20344a 0%, #16283b 100%);
}

.site-footer {
  background-color: #1b4965;
  color: #e0f2ff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(224, 242, 255, 0.16);
  color: #ffd166;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #e0f2ff;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  background-color: rgba(224, 242, 255, 0.12);
  transform: translateY(-1px);
}

.footer-links a.active {
  background-color: var(--accent);
  color: #ffffff;
}

.footer-links a:active {
  transform: scale(0.97);
}

body.dark-mode .site-footer {
  background-color: #091524;
}

body.dark-mode .footer-links a {
  color: #e0f2ff;
}

body.dark-mode .footer-links a:hover {
  background-color: rgba(168, 218, 220, 0.14);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 20px;
  }

  .brand {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
  }

  .brand-mark {
    width: 80px;
    height: 60px;
  }

  .brand h1 {
    font-size: 2.65rem;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .scenario-layout {
    grid-template-columns: 1fr;
  }

  .scenario-stage-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .scenario-stage-head .scenario-tabs {
    justify-self: start;
  }

  .scenario-badge {
    justify-self: start;
  }

  .interactive-guide {
    padding: 26px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .brand h1 {
    font-size: 2.2rem;
  }

  .brand-mark {
    width: 68px;
    height: 51px;
  }

  .guide-page {
    padding-top: 36px;
  }

  .hero h2,
  .interactive-header h3 {
    font-size: 2.1rem;
  }

  .scenario-stage,
  .scenario-panel,
  .interactive-guide {
    padding: 20px;
  }

  .scenario-tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .scenario-tab {
    min-width: min(100%, 136px);
  }

  .scenario-figure {
    min-height: 320px;
  }
}
