:root {
  --gh-navy: #0d2137;
  --gh-blue: #1a3a5c;
  --gh-teal: #4db8a4;
  --gh-teal-dark: #287f70;
  --gh-ink: #172536;
  --gh-muted: #607080;
  --gh-line: #dce5ec;
  --gh-bg: #f4f7f9;
  --gh-good: #16704a;
  --gh-warn: #8a5a00;
  --gh-bad: #9f2d31;
}

body.gh-modal-open { overflow: hidden; }
.gh-launch { border: 0; cursor: pointer; font: inherit; }
.gh-launch-band { max-width: 1100px; margin: -2rem auto 2rem; padding: 0 1.5rem; position: relative; z-index: 2; }
.gh-launch-card { background: #fff; border: 1px solid var(--gh-line); border-radius: 16px; box-shadow: 0 16px 42px rgba(13,33,55,.14); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 1.6rem; }
.gh-launch-card strong { display: block; color: var(--gh-navy); font-size: 1.2rem; margin-bottom: .25rem; }
.gh-launch-card p { color: var(--gh-muted); margin: 0; }
.gh-launch-button { background: var(--gh-teal); color: var(--gh-navy); border: 0; border-radius: 8px; padding: .9rem 1.3rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.gh-launch-button:hover { background: #3da894; }

.gh-modal[hidden] { display: none; }
.gh-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; color: var(--gh-ink); font-family: 'Segoe UI', Arial, sans-serif; }
.gh-backdrop { position: absolute; inset: 0; background: rgba(6,18,31,.76); backdrop-filter: blur(5px); }
.gh-shell { width: min(1120px, 100%); height: min(760px, calc(100vh - 48px)); background: #fff; border-radius: 18px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.55fr); box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.gh-close { position: absolute; right: 16px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gh-line); background: rgba(255,255,255,.92); color: var(--gh-navy); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.gh-visual { padding: 42px 34px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(77,184,164,.34), transparent 35%), linear-gradient(155deg, var(--gh-blue), var(--gh-navy)); display: flex; flex-direction: column; justify-content: space-between; }
.gh-mark { color: var(--gh-teal); font-weight: 900; letter-spacing: .04em; font-size: 1.15rem; }
.gh-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: #9cd9cf; margin: 3.2rem 0 .8rem; }
.gh-visual h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; margin: 0 0 1rem; color: #fff; }
.gh-visual p { color: #cbdbe7; line-height: 1.6; }
.gh-rule-chips { display: grid; gap: .7rem; font-size: .85rem; color: #dce9f1; }
.gh-rule-chips span { border-top: 1px solid rgba(255,255,255,.14); padding-top: .7rem; }
.gh-stage { min-width: 0; min-height: 0; height: 100%; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--gh-bg); }
.gh-progress-wrap { padding: 25px 72px 0 34px; }
.gh-progress-copy { display: flex; justify-content: space-between; color: var(--gh-muted); font-size: .78rem; font-weight: 700; margin-bottom: .55rem; }
.gh-progress { height: 5px; background: #dfe7ec; border-radius: 99px; overflow: hidden; }
.gh-progress i { display: block; height: 100%; width: 16.66%; background: var(--gh-teal); transition: width .25s ease; }
.gh-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 34px 22px; }
.gh-content h1 { color: var(--gh-navy); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; margin: 0 0 .65rem; }
.gh-intro { color: var(--gh-muted); margin: 0 0 1.4rem; max-width: 680px; }
.gh-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.gh-term-wrap { position: relative; display: inline; }
.gh-term { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; line-height: inherit; text-align: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
.gh-term b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 3px; border: 1px solid #8ba0b0; border-radius: 50%; color: var(--gh-teal-dark); background: #fff; font-size: 11px; line-height: 1; text-decoration: none; vertical-align: 1px; }
.gh-term:hover, .gh-term:focus-visible, .gh-term[aria-expanded="true"] { color: var(--gh-teal-dark); }
.gh-term:focus-visible { outline: 3px solid rgba(77,184,164,.35); outline-offset: 3px; border-radius: 2px; }
.gh-tooltip { position: fixed; z-index: 10002; left: 0; top: 0; box-sizing: border-box; width: min(320px, calc(100vw - 24px)); padding: .75rem .85rem; border-radius: 8px; background: var(--gh-navy); color: #fff; box-shadow: 0 10px 30px rgba(13,33,55,.24); font-size: .79rem; font-weight: 500; line-height: 1.45; text-align: left; }
.gh-tooltip::before { content: ''; position: absolute; left: var(--gh-tip-arrow-left, 18px); top: -6px; width: 12px; height: 12px; background: var(--gh-navy); transform: translateX(-50%) rotate(45deg); }
.gh-tooltip.gh-tooltip-above::before { top: auto; bottom: -6px; }
.gh-question { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; width: 100%; }
.gh-question legend, .gh-label { color: var(--gh-navy); font-weight: 800; margin-bottom: .6rem; display: block; }
.gh-help { color: var(--gh-muted); font-size: .82rem; margin: -.25rem 0 .65rem; }
.gh-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gh-options.gh-options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gh-option { position: relative; }
.gh-option input { position: absolute; opacity: 0; pointer-events: none; }
.gh-option span { min-height: 52px; display: flex; align-items: center; padding: .75rem .85rem; background: #fff; border: 1px solid var(--gh-line); border-radius: 9px; color: #35485a; font-size: .9rem; cursor: pointer; transition: .14s ease; }
.gh-option input:checked + span { border-color: var(--gh-teal-dark); box-shadow: inset 0 0 0 1px var(--gh-teal-dark); background: #eaf7f4; color: var(--gh-navy); font-weight: 700; }
.gh-option input:focus-visible + span { outline: 3px solid rgba(77,184,164,.35); outline-offset: 2px; }
.gh-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.gh-input-wrap { background: #fff; border: 1px solid var(--gh-line); border-radius: 9px; padding: .7rem .8rem; }
.gh-input-wrap label { display: block; color: var(--gh-muted); font-size: .78rem; font-weight: 700; }
.gh-field-label { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; color: var(--gh-muted); font-size: .78rem; font-weight: 700; }
.gh-field-label .gh-term { display: inline-flex; align-items: center; }
.gh-field-label .gh-term b { margin-left: 0; }
.gh-input-row { display: flex; align-items: center; gap: .35rem; }
.gh-input-row input { width: 100%; min-width: 0; border: 0; outline: 0; font: inherit; color: var(--gh-navy); font-weight: 800; background: transparent; }
.gh-input-row span { color: var(--gh-muted); font-size: .82rem; }
.gh-actions { background: #fff; border-top: 1px solid var(--gh-line); padding: 16px 34px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.gh-button { border: 0; border-radius: 8px; padding: .82rem 1.15rem; font: inherit; font-weight: 800; cursor: pointer; }
.gh-button-primary { background: var(--gh-teal); color: var(--gh-navy); }
.gh-button-primary:hover { background: #3da894; }
.gh-button-primary:disabled { opacity: .5; cursor: wait; }
.gh-button-secondary { background: transparent; color: var(--gh-blue); }
.gh-error { background: #fff0f0; color: var(--gh-bad); border-left: 3px solid var(--gh-bad); padding: .7rem .85rem; border-radius: 5px; font-size: .86rem; margin: 0 0 1rem; }
.gh-email-card { background: #fff; border: 1px solid var(--gh-line); border-radius: 12px; padding: 1.1rem; }
.gh-email-card input[type=email] { width: 100%; padding: .85rem .9rem; border: 1px solid #bfcbd5; border-radius: 7px; font: inherit; margin: .35rem 0 .8rem; }
.gh-consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: #445768; font-size: .84rem; line-height: 1.45; }
.gh-consent input { margin-top: .2rem; }
.gh-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.gh-gate-note { color: var(--gh-muted); font-size: .78rem; margin-top: .75rem; }

.gh-result-head { border-radius: 12px; padding: 1.15rem; margin-bottom: 1rem; }
.gh-result-head h1 { font-size: 1.65rem; margin-bottom: .35rem; }
.gh-result-head p { margin: 0; }
.gh-status-likely_eligible { background: #e9f7f0; border-left: 5px solid var(--gh-good); }
.gh-status-eligible_if_resolved { background: #fff7df; border-left: 5px solid #d19114; }
.gh-status-planning_review_required { background: #edf3fb; border-left: 5px solid #3678b8; }
.gh-status-not_class_3a { background: #fff0f0; border-left: 5px solid var(--gh-bad); }
.gh-size { font-size: 1.5rem; color: var(--gh-navy); font-weight: 900; margin: .8rem 0 1rem; }
.gh-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.gh-result-card { background: #fff; border: 1px solid var(--gh-line); border-radius: 10px; padding: 1rem; }
.gh-result-card h3 { color: var(--gh-navy); font-size: 1rem; margin: 0 0 .55rem; }
.gh-result-card ul, .gh-result-card ol { margin: 0 0 0 1.1rem; color: #46596b; font-size: .86rem; }
.gh-result-card li { margin-bottom: .42rem; }
.gh-models { margin-top: 1rem; }
.gh-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.gh-model { background: #fff; border: 1px solid var(--gh-line); border-radius: 10px; overflow: hidden; color: var(--gh-ink); text-decoration: none; }
.gh-model img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e9eef2; }
.gh-model-body { padding: .75rem; }
.gh-model strong { display: block; color: var(--gh-navy); line-height: 1.25; }
.gh-model small { color: var(--gh-muted); display: block; margin-top: .3rem; }
.gh-disclaimer { color: var(--gh-muted); font-size: .77rem; line-height: 1.45; margin: 1rem 0 0; }
.gh-result-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.gh-result-links a { display: inline-block; padding: .65rem .8rem; border-radius: 7px; background: var(--gh-navy); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; }

@media (max-width: 820px) {
  .gh-modal { padding: 0; }
  .gh-shell { width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; }
  .gh-visual { display: none; }
  .gh-progress-wrap { padding: 22px 66px 0 20px; }
  .gh-content { padding: 24px 20px 18px; }
  .gh-actions { padding: 13px 20px; }
  .gh-launch-card { grid-template-columns: 1fr; }
  .gh-launch-button { width: 100%; }
}

@media (max-width: 560px) {
  .gh-options, .gh-options.gh-options-3, .gh-number-grid, .gh-result-grid, .gh-model-grid { grid-template-columns: 1fr; }
  .gh-content h1 { font-size: 1.48rem; }
  .gh-actions { align-items: stretch; }
  .gh-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-progress i, .gh-option span { transition: none; }
  .gh-backdrop { backdrop-filter: none; }
}
