:root {
  --navy-950: #0b1f33;
  --navy-900: #132d46;
  --navy-800: #1d405f;
  --gold-800: #7a4b13;
  --gold-700: #93601f;
  --gold-600: #ad7830;
  --gold-200: #dfc89e;
  --gold-100: #eee2cb;
  --gold-50: #faf6ec;
  --sage-700: #3f6c61;
  --sage-100: #d6e7e1;
  --sage-50: #f1f7f4;
  --red-800: #7d312b;
  --red-700: #983e35;
  --red-100: #eccbc5;
  --red-50: #fcf3f0;
  --ink: #15283a;
  --muted: #5e6a74;
  --line: #ddd5c7;
  --line-strong: #cfc3af;
  --surface: #fffdf9;
  --canvas: #f4f0e8;
  --shadow: 0 16px 42px rgba(11, 31, 51, 0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, label, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold-800); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  background: rgba(255, 253, 249, 0.98);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-800);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.topbar-main {
  min-height: 108px;
  padding: 10px 0 20px;
  display: grid;
  grid-template-columns: minmax(270px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--gold-600);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 50%;
}
.brand-mark svg {
  width: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-copy, .wordmark, .brand-tagline { display: block; }
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.wordmark-gastro { color: var(--navy-950); }
.wordmark-pusula { color: var(--gold-600); }
.brand-tagline {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.module-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-200) transparent;
}
.module-nav::-webkit-scrollbar { height: 4px; }
.module-nav::-webkit-scrollbar-thumb { background: var(--gold-200); border-radius: 999px; }
.module-tab {
  position: relative;
  min-height: 46px;
  padding: 13px 14px 12px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--navy-800);
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.module-tab.is-available { color: var(--navy-800); transition: color 160ms ease, background 160ms ease; }
.module-tab.is-available:hover { color: var(--navy-950); background: var(--gold-50); }
.module-tab.is-active {
  color: var(--navy-950);
  background: var(--gold-50);
}
.module-tab.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--gold-600);
  border-radius: 999px;
}
.module-tab.is-upcoming { color: #66737d; }
.module-tab.is-upcoming small {
  padding: 3px 7px;
  color: var(--gold-800);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.expert-lockup { padding-left: 24px; border-left: 1px solid var(--gold-200); text-align: right; }
.expert-lockup strong, .expert-lockup span { display: block; }
.expert-lockup strong { color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 650; }
.expert-lockup span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 68px; }

.privacy-strip {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  color: #344b58;
  background: var(--sage-50);
  border: 1px solid #cfdfd9;
  border-radius: var(--radius-sm);
}
.privacy-strip svg {
  width: 21px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--sage-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy-strip div { display: flex; flex-wrap: wrap; gap: 6px; }
.privacy-strip strong { color: #28584e; }
.privacy-strip span { font-size: 14px; }

.stepper {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(14px, .22fr) minmax(128px, 1fr) minmax(14px, .22fr) minmax(150px, 1fr) minmax(14px, .22fr) minmax(128px, 1fr);
  align-items: center;
  width: min(1040px, 100%);
  margin: 34px auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.step:disabled { cursor: default; }
.step-number {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #75808a;
  background: #e7e1d7;
  border: 1px solid #d9d0c2;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
  transition: 180ms ease;
}
.step strong, .step small { display: block; }
.step strong { color: #61707a; font-size: 13px; line-height: 1.25; }
.step small { margin-top: 2px; color: #89949d; font-size: 12px; line-height: 1.25; }
.step-line { height: 1px; margin: 0 10px; background: var(--line-strong); }
.step.is-active .step-number, .step.is-done .step-number { color: #fff; background: var(--navy-950); border-color: var(--navy-950); }
.step.is-active .step-number { box-shadow: 0 0 0 4px var(--gold-100); }
.step.is-active strong, .step.is-done strong { color: var(--navy-950); }
.step.is-active small { color: var(--gold-800); }
.step.is-done .step-number { font-size: 0; }
.step.is-done .step-number::after { content: "✓"; font-size: 16px; }

.step-panel {
  overflow: hidden;
  padding: clamp(26px, 4.8vw, 58px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: panel-in 240ms ease both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-heading { max-width: 830px; margin-bottom: 28px; }
.section-heading.summary-heading { max-width: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow, .mini-label {
  margin: 0 0 8px;
  color: var(--gold-800);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 13px; font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 17px; }

.content-stack { display: grid; gap: 22px; }
fieldset { min-width: 0; }
.question-card, .detail-panel, .summary-card, .next-tools {
  margin: 0;
  padding: clamp(22px, 3.4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.question-card > legend, .sub-question > legend { padding: 0; color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; }
.question-hint { margin: 5px 0 18px; color: var(--muted); font-size: 14px; }

.option-list { display: grid; gap: 11px; }
.option-row { display: grid; grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 10px; }
.choice-card {
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.choice-card:hover { border-color: var(--gold-200); }
.choice-card:has(input:checked) { background: var(--gold-50); border-color: var(--gold-600); box-shadow: 0 0 0 2px rgba(173, 120, 48, .1); }
.choice-card input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--navy-900); cursor: pointer; }
.choice-card strong { display: block; color: var(--navy-900); font-size: 15px; }
.term-help, .select-card details, .term-choice details, .info-box { overflow: hidden; background: #f8f5ef; border: 1px solid #e7dfd2; border-radius: 10px; }
.term-help summary, .select-card details summary, .term-choice details summary, .info-box summary {
  padding: 12px 14px;
  color: var(--gold-800);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.term-help p, .select-card details p, .term-choice details p, .info-box p { margin: 0; padding: 0 14px 14px; color: var(--muted); font-size: 14px; }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-card.compact { min-height: 58px; }
.reveal-panel { margin-top: 20px; padding: clamp(18px, 3vw, 26px); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 13px; }
.reveal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.reveal-heading h2, .detail-heading h2 { margin: 0; }
.score-output { flex: 0 0 auto; padding: 8px 13px; color: #fff; background: var(--navy-950); border-radius: 999px; font-size: 17px; font-weight: 850; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.score-grid label > span { display: block; margin-bottom: 7px; color: var(--navy-900); font-size: 14px; font-weight: 750; }
.score-grid select { width: 100%; height: 48px; padding: 0 12px; color: var(--navy-950); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; }
.boundary-note { margin: 14px 0 0; padding-left: 13px; color: #67533c; border-left: 3px solid var(--gold-600); font-size: 14px; }

.selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.select-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: border-color 160ms ease, background 160ms ease; }
.select-card:has(input:checked) { background: var(--gold-50); border-color: var(--gold-600); }
.select-card > label { min-height: 87px; display: flex; align-items: flex-start; gap: 12px; padding: 17px; cursor: pointer; }
.select-card > label input { width: 21px; height: 21px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--navy-900); cursor: pointer; }
.select-card > label span, .select-card > label strong, .select-card > label small { display: block; }
.select-card > label strong { color: var(--navy-900); font-size: 16px; }
.select-card > label small { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.select-card details { margin: 0 12px 12px; background: rgba(255,255,255,.72); }

.alert-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm); }
.alert-card svg { width: 23px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert-card p { margin: 0; font-size: 14px; }
.alert-card.attention { color: #69451a; background: var(--gold-50); border: 1px solid var(--gold-200); }
.alert-card.attention svg { stroke: var(--gold-800); }
.alert-card.neutral { color: #354d5d; background: #f2f6f7; border: 1px solid #d5e0e3; }
.alert-card.neutral svg { stroke: var(--navy-800); }

.detail-panel { margin-top: 22px; background: #fbf8f2; border-color: var(--gold-200); }
.detail-heading { margin-bottom: 24px; }
.sub-question { margin: 0; padding: 21px 0; border: 0; border-top: 1px solid var(--line); }
.sub-question:last-child { padding-bottom: 0; }
.sub-question > legend { font-size: 18px; }
.pill-options { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.pill-options label { cursor: pointer; }
.pill-options input { position: absolute; opacity: 0; pointer-events: none; }
.pill-options span { display: block; padding: 9px 13px; color: var(--navy-900); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill-options input:checked + span { color: #fff; background: var(--navy-950); border-color: var(--navy-950); }
.pill-options input:focus-visible + span { outline: 3px solid rgba(173, 120, 48, .34); outline-offset: 3px; }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.term-choice { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.term-choice:has(input:checked) { border-color: var(--gold-600); }
.term-choice > label { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; }
.term-choice > label input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy-900); }
.term-choice > label span { color: var(--navy-900); font-size: 14px; font-weight: 750; }
.term-choice details { margin: 0 10px 10px; }

.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin-top: 26px; }
.step-actions.end { justify-content: flex-end; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy-950); border: 1px solid var(--navy-950); }
.button-primary:hover { background: var(--navy-800); border-color: var(--navy-800); }
.button-secondary { color: var(--navy-900); background: var(--surface); border: 1px solid var(--line-strong); }
.button-secondary:hover { border-color: var(--gold-600); }
.button:focus-visible, .step:focus-visible, summary:focus-visible, select:focus-visible, .back-link:focus-visible, .module-tab:focus-visible {
  outline: 3px solid rgba(173, 120, 48, .34);
  outline-offset: 3px;
}

.summary-badge { flex: 0 0 auto; padding: 8px 12px; color: #28584e; background: var(--sage-50); border: 1px solid #c2dcd3; border-radius: 999px; font-size: 13px; font-weight: 750; }
.summary-card { padding: clamp(24px, 4vw, 38px); color: #fff; background: var(--navy-950); border: 0; }
.summary-card .mini-label { color: #d9b779; }
.summary-card h2 { margin-bottom: 16px; color: #fff; }
.summary-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.summary-list li { position: relative; padding-left: 27px; color: #e4e9ed; font-size: 15px; }
.summary-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #e0bd7d; font-weight: 900; }
.summary-list li.empty::before { content: "—"; }
.explanation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.explanation-card { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.explanation-card.full { grid-column: 1 / -1; }
.card-number { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 15px; color: var(--gold-800); background: var(--gold-100); border-radius: 8px; font-size: 12px; font-weight: 850; }
.explanation-card h2 { margin-bottom: 12px; }
.explanation-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.explanation-card p:last-child { margin-bottom: 0; }

.next-tools { margin-top: 18px; }
.next-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-tool-card { position: relative; padding: 22px; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 13px; }
.next-tool-card h3 { margin: 26px 0 8px; }
.next-tool-card p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.coming-soon { position: absolute; top: 16px; right: 16px; padding: 4px 8px; color: var(--gold-800); background: #fff; border: 1px solid var(--gold-200); border-radius: 999px; font-size: 12px; font-weight: 800; }
.coming-soon.is-live { color: #28584e; border-color: #c2dcd3; background: var(--sage-50); }
.next-tool-card button { width: 100%; min-height: 44px; padding: 10px 13px; color: #7c8388; background: #ebe7df; border: 1px solid #ddd7cd; border-radius: 9px; font-size: 14px; font-weight: 750; cursor: not-allowed; }
.next-tool-link { width: 100%; min-height: 44px; padding: 10px 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--navy-950); border: 1px solid var(--navy-950); border-radius: 9px; font-size: 14px; font-weight: 750; text-decoration: none; }
.next-tool-link:hover { background: var(--navy-800); border-color: var(--navy-800); }
.next-tool-link:focus-visible { outline: 3px solid rgba(173, 120, 48, .34); outline-offset: 3px; }

.urgent-card { display: flex; gap: 15px; margin-top: 18px; padding: 22px 24px; color: #71372f; background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--radius-md); }
.urgent-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: var(--red-700); background: #fff; border: 1px solid #efdbd6; border-radius: 11px; }
.urgent-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.urgent-card h2 { margin-bottom: 6px; color: var(--red-800); font-size: 19px; }
.urgent-card p { margin: 0; font-size: 14px; }

.references-panel { margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.references-panel > summary { padding: 17px 20px; color: var(--navy-900); font-size: 15px; font-weight: 800; cursor: pointer; }
.references-panel ol { margin: 0; padding: 0 42px 22px 58px; }
.references-panel li { margin-top: 10px; color: var(--muted); font-size: 13px; }

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  padding: 31px max(20px, calc((100% - 1180px) / 2));
  color: #b8c3cc;
  background: var(--navy-950);
  border-top: 4px solid var(--gold-600);
  font-size: 12px;
}
.footer-brand { flex: 0 0 auto; }
.footer-brand > strong, .footer-brand > span, .footer-brand > small { display: block; }
.footer-brand > strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 650; }
.footer-brand > strong em { color: #d8b16f; font-style: normal; }
.footer-brand > span { margin: 2px 0 10px; color: #fff; font-size: 13px; font-weight: 750; }
.footer-note { max-width: 650px; }
.footer-note p { margin: 0; text-align: right; }
.footer-note a { display: inline-block; float: right; margin-top: 11px; color: #e2c284; font-weight: 750; }

@media (max-width: 1080px) {
  .topbar-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 17px 24px;
  }
  .module-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 940px) {
  .stepper { grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; }
  .step { display: block; text-align: center; }
  .step-number { margin: 0 auto 6px; }
  .step small { display: none; }
  .step-line { margin: 0; }
  .option-row { grid-template-columns: 1fr; }
  .term-help { margin-left: 31px; }
}

@media (max-width: 760px) {
  .topbar-inner { width: min(100% - 28px, 1320px); }
  .radio-grid, .selection-grid, .term-grid, .next-tools-grid, .explanation-grid { grid-template-columns: 1fr; }
  .explanation-card.full { grid-column: auto; }
  .score-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  .footer-note { margin-top: 18px; }
  .footer-note p { text-align: left; }
  .footer-note a { float: none; }
}

@media (max-width: 560px) {
  .topbar-main { min-height: 0; padding: 12px 0 15px; align-items: flex-start; gap: 13px 14px; }
  .brand { align-items: flex-start; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark svg { width: 30px; }
  .wordmark { font-size: 28px; }
  .brand-tagline { margin-top: 5px; font-size: 9px; white-space: normal; }
  .module-nav {
    width: calc(100% + 14px);
    margin-right: -14px;
    padding: 9px 14px 4px 0;
  }
  .module-tab { min-height: 42px; padding: 11px 12px 10px; font-size: 12px; }
  .expert-lockup { max-width: 132px; padding-left: 11px; }
  .expert-lockup strong { font-size: 15px; line-height: 1.2; }
  .expert-lockup span { font-size: 12px; line-height: 1.35; }
  .shell { width: min(100% - 20px, 1180px); margin-top: 14px; }
  .privacy-strip { padding: 12px; }
  .privacy-strip div { display: block; }
  .privacy-strip span { display: block; margin-top: 4px; font-size: 13px; }
  .stepper { grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr; margin: 22px 0; }
  .step-number { width: 33px; height: 33px; }
  .step strong { font-size: 12px; }
  .step-line { min-width: 0; }
  .step-panel { padding: 24px 17px; border-radius: 18px; }
  h1 { font-size: 33px; }
  .lead { font-size: 16px; }
  .question-card, .detail-panel, .summary-card, .next-tools { padding: 19px 16px; }
  .question-card > legend { font-size: 20px; }
  .term-help { margin-left: 0; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions.end { flex-direction: column; }
  .step-actions .button { width: 100%; }
  .section-heading.summary-heading { display: block; }
  .summary-badge { display: inline-block; margin-top: 15px; }
  .explanation-card { padding: 22px 18px; }
  .urgent-card { padding: 18px 16px; }
  .references-panel ol { padding: 0 24px 20px 42px; }
  footer { padding: 26px 18px; }
}

@media (max-width: 410px) {
  .topbar-main { grid-template-columns: 1fr; }
  .module-nav { grid-column: 1; grid-row: 2; }
  .expert-lockup { grid-row: 3; width: 100%; max-width: none; padding: 10px 0 0; border-top: 1px solid var(--gold-200); border-left: 0; text-align: left; }
  .step strong { font-size: 11px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* GastroPusula ortak, tam görünür modül başlığı */
.topbar-inner {
  width: min(1480px, calc(100% - 48px));
}
.topbar-main {
  min-height: 0;
  padding: 12px 0 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand expert"
    "modules modules";
  align-items: center;
  gap: 18px 42px;
}
.brand {
  grid-area: brand;
  min-width: 0;
}
.wordmark {
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.brand-tagline {
  font-size: .75rem;
}
.expert-lockup {
  grid-area: expert;
  min-width: 330px;
  padding-left: 34px;
  border-left: 1px solid var(--gold-200);
  text-align: right;
}
.expert-lockup strong {
  font-size: 1.25rem;
}
.expert-lockup span {
  font-size: .8rem;
}
.module-nav {
  grid-area: modules;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.module-nav::-webkit-scrollbar {
  display: none;
}
.module-tab {
  min-width: 0;
  min-height: 56px;
  padding: 12px 10px 13px;
  display: flex;
  flex: initial;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(.78rem, 1.08vw, .9rem);
  line-height: 1.3;
}
.module-tab.is-upcoming {
  flex-wrap: wrap;
  justify-content: center;
}
.module-tab.is-upcoming small {
  flex: 0 0 auto;
  font-size: .75rem;
}

@media (max-width: 1100px) {
  .module-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 7px;
  }
  .module-tab {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .module-tab.is-active::after {
    right: 18px;
    left: 18px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    width: min(100% - 24px, 1480px);
  }
  .topbar-main {
    padding-top: 10px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "expert"
      "modules";
    gap: 12px;
  }
  .expert-lockup {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 10px 0 0;
    border-top: 1px solid var(--gold-200);
    border-left: 0;
    text-align: left;
  }
  .expert-lockup strong {
    font-size: 1rem;
  }
  .expert-lockup span {
    font-size: .78rem;
  }
  .module-nav {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 11px 0 8px;
  }
  .module-tab {
    min-height: 56px;
    padding: 10px 8px;
    font-size: .78rem;
  }
  .module-tab:last-child {
    grid-column: 1 / -1;
  }
}
