:root {
  --dm-ink: #0d2145;
  --dm-text: #435168;
  --dm-muted: #728096;
  --dm-primary: #047f83;
  --dm-primary-dark: #006d72;
  --dm-primary-soft: #eef8f7;
  --dm-blue: #0755bd;
  --dm-blue-soft: #f0f5ff;
  --dm-violet: #785da8;
  --dm-violet-soft: #f6f1fb;
  --dm-teal: #0b8b7e;
  --dm-teal-soft: #e9f8f5;
  --dm-amber: #a37a16;
  --dm-amber-soft: #fff8df;
  --dm-danger: #b42318;
  --dm-danger-soft: #ffebe9;
  --dm-surface: #ffffff;
  --dm-bg: #f3f7f8;
  --dm-surface-soft: #f8fbfc;
  --dm-border: rgba(13, 33, 69, 0.09);
  --dm-border-strong: rgba(13, 33, 69, 0.14);
  --dm-radius: 22px;
  --dm-radius-lg: 28px;
  --dm-shadow: 0 12px 34px rgba(18, 42, 66, 0.075);
  --dm-shadow-lg: 0 22px 66px rgba(18, 42, 66, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  direction: rtl;
  background:
    radial-gradient(circle at 88% 8%, rgba(4, 127, 131, 0.07), transparent 29%),
    radial-gradient(circle at 10% 76%, rgba(7, 85, 189, 0.045), transparent 30%),
    var(--dm-bg);
  color: var(--dm-text);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.95;
  margin: 0;
}

a { color: var(--dm-primary-dark); text-decoration: none; }

.site-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 33, 69, 0.055);
  border-radius: 34px;
  box-shadow: var(--dm-shadow-lg);
  margin: 15px auto;
  overflow: hidden;
  width: min(1500px, calc(100% - 30px));
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(13, 33, 69, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 86px;
  padding: 17px clamp(20px, 4vw, 58px);
}

.site-header .navbar { min-height: 52px; width: 100%; }

.brand {
  align-items: center;
  color: var(--dm-ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(145deg, #08a0a4, #006c72);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(4, 127, 131, 0.18);
  display: inline-grid;
  height: 40px;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 40px;
}

.brand-mark::before,
.brand-mark::after {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 50%;
  content: "";
  height: 8px;
  position: absolute;
  width: 8px;
}

.brand-mark::before { right: 8px; top: 9px; }
.brand-mark::after { bottom: 9px; left: 8px; }
.brand-mark span { background: #fff; border-radius: 999px; height: 2px; opacity: 0.9; transform: rotate(-42deg); width: 21px; }
.brand-copy { display: grid; line-height: 1.35; }
.brand-name { color: var(--dm-primary-dark); font-size: 1.08rem; font-weight: 800; }
.brand-tagline { color: var(--dm-muted); font-size: 0.72rem; font-weight: 600; }

.desktop-nav { gap: 4px; }
.desktop-nav .nav-link {
  border-radius: 11px;
  color: #536176;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 11px !important;
  transition: 0.2s ease;
}
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link:focus,
.desktop-nav .nav-link.active { background: var(--dm-primary-soft); color: var(--dm-primary-dark); }
.desktop-nav .dropdown-toggle::after { display: none; }
.nav-chevron { border-bottom: 1.8px solid currentColor; border-right: 1.8px solid currentColor; display: inline-block; height: 6px; margin-right: 5px; transform: rotate(45deg) translateY(-2px); width: 6px; }

.mega-dropdown { position: static; }
.mega-menu {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 20px;
  box-shadow: var(--dm-shadow-lg);
  left: 50% !important;
  margin-top: 12px !important;
  padding: 14px;
  right: auto !important;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 70px));
}
.mega-group { --group-accent: var(--dm-primary); --group-soft: var(--dm-primary-soft); background: #fbfcfd; border: 1px solid var(--dm-border); border-radius: 16px; height: 100%; padding: 16px; }
.mega-group--work { --group-accent: var(--dm-blue); --group-soft: var(--dm-blue-soft); }
.mega-group--knowledge { --group-accent: var(--dm-violet); --group-soft: var(--dm-violet-soft); }
.mega-heading { color: var(--dm-ink); font-size: 0.88rem; font-weight: 800; margin-bottom: 9px; padding-right: 15px; position: relative; }
.mega-heading::before { background: var(--group-accent); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--group-accent) 11%, transparent); content: ""; height: 7px; position: absolute; right: 0; top: 8px; width: 7px; }
.mega-list { display: grid; gap: 2px; }
.mega-list a { border-radius: 9px; color: #5c697d; font-size: 0.76rem; font-weight: 600; padding: 5px 7px; }
.mega-list a:hover { background: var(--group-soft); color: var(--group-accent); }
.mega-all { align-items: center; color: var(--group-accent); display: flex; font-size: 0.75rem; font-weight: 800; gap: 6px; margin-top: 8px; padding: 6px 7px 0; }

.menu-button { align-content: center; background: var(--dm-primary-soft); border: 0; border-radius: 13px; display: grid; gap: 4px; height: 42px; justify-content: center; padding: 0; width: 42px; }
.menu-button span { background: var(--dm-primary-dark); border-radius: 2px; display: block; height: 2px; width: 19px; }
.menu-button:hover { box-shadow: var(--dm-shadow); transform: translateY(-1px); }

.site-footer { background: #f8fbfc; border-top: 1px solid rgba(13, 33, 69, 0.06); padding: 48px clamp(20px, 4vw, 58px) 24px; }
.footer-title { color: var(--dm-ink); font-size: 0.93rem; font-weight: 800; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.site-footer .footer-links a { color: #637085; font-size: 0.8rem; font-weight: 600; transition: 0.18s ease; }
.site-footer .footer-links a:hover { color: var(--dm-primary-dark); transform: translateX(-3px); }
.footer-bottom { align-items: center; border-top: 1px solid rgba(13, 33, 69, 0.07); color: #8490a1; display: flex; font-size: 0.74rem; gap: 12px; justify-content: space-between; margin-top: 30px; padding-top: 17px; }
.footer-heart { color: #e63946; }

.offcanvas { --bs-offcanvas-width: min(390px, 90vw); color: var(--dm-ink); }
.offcanvas-brand { align-items: center; color: var(--dm-primary-dark); display: inline-flex; font-weight: 800; gap: 9px; }
.offcanvas-brand::before { background: var(--dm-primary); border-radius: 50%; content: ""; height: 9px; width: 9px; }
.offcanvas .nav-link { border-radius: 11px; color: #4e5c70; font-size: 0.86rem; font-weight: 700; padding: 10px 12px; }
.offcanvas .nav-link:hover,
.offcanvas .nav-link.active { background: var(--dm-primary-soft); color: var(--dm-primary-dark); }
.mobile-accordion .accordion-item { border: 0; }
.mobile-accordion .accordion-button { border-radius: 11px !important; box-shadow: none; color: var(--dm-ink); font-size: 0.86rem; font-weight: 800; padding: 11px 12px; }
.mobile-accordion .accordion-button:not(.collapsed) { background: var(--dm-primary-soft); color: var(--dm-primary-dark); }
.mobile-subgroup { border-bottom: 1px solid var(--dm-border); margin-bottom: 10px; padding: 8px 7px 12px; }
.mobile-subgroup strong { color: var(--dm-ink); display: block; font-size: 0.82rem; margin-bottom: 5px; }
.mobile-subgroup a { color: #6a7688; display: block; font-size: 0.78rem; padding: 5px 7px; }

.hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(131, 212, 207, 0.18), transparent 25%),
    radial-gradient(circle at 92% 80%, rgba(117, 160, 225, 0.12), transparent 31%),
    linear-gradient(135deg, #0b2748, #075f66);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(8, 39, 72, 0.18);
  color: #dcefee;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.6rem);
  position: relative;
}

.hero::after {
  border: 1px solid rgba(131, 212, 207, 0.18);
  border-radius: 50%;
  content: "";
  height: 260px;
  left: -90px;
  position: absolute;
  top: -120px;
  width: 260px;
}

.eyebrow {
  color: var(--dm-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.tool-hero h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.hero .eyebrow { color: #83d4cf; }
.hero h1 { color: #fff; }
.lead-copy { color: #d5e5e7; font-size: 1.04rem; max-width: 850px; }

.hero-note,
.inline-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 94, 231, 0.14);
  border-radius: 16px;
  color: #4f5e78;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.hero-note { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.16); color: #d5e5e7; }

.journey-rail {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.journey-rail::before {
  background: linear-gradient(90deg, rgba(7, 85, 189, 0.2), rgba(4, 127, 131, 0.28));
  content: "";
  height: 2px;
  left: 13%;
  position: absolute;
  right: 13%;
  top: 29px;
}

.journey-step { position: relative; text-align: center; z-index: 1; }

.journey-number {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(4, 127, 131, 0.22);
  border-radius: 50%;
  color: var(--dm-muted);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-bottom: 0.65rem;
  width: 58px;
}

.journey-step.is-active .journey-number,
.journey-step.is-complete .journey-number {
  background: linear-gradient(145deg, #08a0a4, #006c72);
  border-color: var(--dm-primary);
  box-shadow: 0 10px 22px rgba(4, 127, 131, 0.18);
  color: #fff;
}

.journey-title { display: block; font-size: 0.9rem; font-weight: 800; }
.journey-meta { color: var(--dm-muted); display: block; font-size: 0.76rem; }

.tool-card,
.panel-card,
.result-card,
.summary-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
}

.tool-card {
  height: 100%;
  padding: 1.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover { border-color: rgba(4, 127, 131, 0.2); box-shadow: 0 20px 50px rgba(18, 42, 66, 0.12); transform: translateY(-4px); }

.tool-icon {
  align-items: center;
  background: var(--dm-primary-soft);
  border-radius: 17px;
  color: var(--dm-primary);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.tool-card:nth-child(2) .tool-icon { background: var(--dm-blue-soft); color: var(--dm-blue); }
.tool-card:nth-child(3) .tool-icon { background: var(--dm-amber-soft); color: var(--dm-amber); }

.tool-card h2 { font-size: 1.25rem; font-weight: 900; margin-top: 1.05rem; }
.tool-card p { color: var(--dm-muted); font-size: 0.92rem; }

.btn-primary {
  --bs-btn-bg: var(--dm-primary);
  --bs-btn-border-color: var(--dm-primary);
  --bs-btn-hover-bg: var(--dm-primary-dark);
  --bs-btn-hover-border-color: var(--dm-primary-dark);
  border-radius: 14px;
  font-weight: 800;
  padding: 0.72rem 1.2rem;
}

.btn-primary:hover { box-shadow: 0 12px 26px rgba(4, 127, 131, 0.22); transform: translateY(-1px); }
.btn-outline-primary { --bs-btn-color: var(--dm-primary-dark); --bs-btn-border-color: rgba(4, 127, 131, 0.32); --bs-btn-hover-bg: var(--dm-primary); --bs-btn-hover-border-color: var(--dm-primary); }
.btn-outline-secondary { --bs-btn-color: #526077; --bs-btn-border-color: rgba(13, 33, 69, 0.18); --bs-btn-hover-bg: #eef2f4; --bs-btn-hover-border-color: rgba(13, 33, 69, 0.22); --bs-btn-hover-color: var(--dm-ink); }
.btn-light { --bs-btn-color: var(--dm-ink); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; }

.btn-outline-primary,
.btn-outline-secondary,
.btn-light { border-radius: 14px; font-weight: 800; padding: 0.7rem 1.1rem; }

.tool-shell { padding-block: clamp(1.4rem, 3vw, 2.5rem) clamp(3rem, 5vw, 5rem); }

.tool-hero {
  background:
    radial-gradient(circle at 10% 15%, rgba(131, 212, 207, 0.18), transparent 26%),
    linear-gradient(135deg, #0b2748, #075f66);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(8, 39, 72, 0.18);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  position: relative;
}

.tool-hero .eyebrow { color: #83d4cf; }
.tool-hero p { color: #d5e5e7; max-width: 820px; }
.tool-hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tool-reset { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #fff; font-size: 0.76rem; font-weight: 700; padding: 0.38rem 0.8rem; }
.tool-reset:hover { background: #fff; color: var(--dm-primary-dark); }

.privacy-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f7f9ff;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
}

.panel-card { padding: clamp(1.15rem, 3vw, 2rem); }

.section-kicker { color: var(--dm-primary-dark); font-size: 0.78rem; font-weight: 800; }
.section-title { color: var(--dm-ink); font-size: 1.35rem; font-weight: 900; }
.section-help { color: var(--dm-muted); font-size: 0.9rem; }

.definition-note,
.decision-hint {
  background: var(--dm-surface-soft);
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  color: #4d5b73;
  padding: 1rem;
}

.definition-note strong,
.definition-note span,
.decision-hint strong,
.decision-hint span { display: block; }

.definition-note strong,
.decision-hint strong { color: var(--dm-ink); font-size: 0.9rem; margin-bottom: 0.25rem; }
.definition-note span,
.decision-hint span { font-size: 0.84rem; }

.form-label { color: #26334b; font-size: 0.91rem; font-weight: 800; }
.form-control,
.form-select {
  border: 1px solid rgba(13, 33, 69, 0.16);
  border-radius: 13px;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(4, 127, 131, 0.7);
  box-shadow: 0 0 0 0.24rem rgba(4, 127, 131, 0.11);
}

textarea.form-control { min-height: 112px; }

.choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card { position: relative; }
.choice-card input { opacity: 0; position: absolute; }
.choice-card label {
  background: #fff;
  border: 1px solid rgba(13, 33, 69, 0.13);
  border-radius: 14px;
  cursor: pointer;
  display: block;
  height: 100%;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-card label strong { display: block; font-size: 0.9rem; }
.choice-card label span { color: var(--dm-muted); display: block; font-size: 0.76rem; margin-top: 0.2rem; }
.choice-card input:checked + label { background: var(--dm-primary-soft); border-color: var(--dm-primary); }
.choice-card input:focus-visible + label { box-shadow: 0 0 0 0.24rem rgba(4, 127, 131, 0.15); }

.wizard-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.wizard-tab {
  background: #f3f5f9;
  border: 0;
  border-radius: 999px;
  color: var(--dm-muted);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.55rem 0.9rem;
}

.wizard-tab.is-active { background: var(--dm-primary); color: #fff; }
.wizard-tab.is-complete { background: var(--dm-blue-soft); color: var(--dm-blue); }
.wizard-pane[hidden] { display: none !important; }

.progress-thin { background: #e5e9f1; border-radius: 999px; height: 7px; overflow: hidden; }
.progress-thin > span { background: linear-gradient(90deg, var(--dm-primary), var(--dm-teal)); display: block; height: 100%; transition: width 0.25s ease; }

.metric-card {
  background: #fbfcfd;
  border: 1px solid var(--dm-border);
  border-radius: 17px;
  height: 100%;
  padding: 1rem;
}

.metric-card h3 { font-size: 0.96rem; font-weight: 900; }
.metric-card p { color: var(--dm-muted); font-size: 0.78rem; line-height: 1.75; }

.question-card {
  background: #fbfcfd;
  border: 1px solid var(--dm-border);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.question-card .form-select { margin-top: auto; }

.score-options { display: grid; gap: 0.45rem; grid-template-columns: repeat(5, 1fr); }
.score-options input { opacity: 0; position: absolute; }
.score-options label {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 33, 69, 0.14);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 0.83rem;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
}
.score-options input:checked + label { background: var(--dm-primary); border-color: var(--dm-primary); color: #fff; }

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.35rem 0.68rem;
  text-align: center;
  white-space: normal;
}
.status-good { background: var(--dm-teal-soft); color: #08786e; }
.status-warn { background: var(--dm-amber-soft); color: #9a5b05; }
.status-danger { background: var(--dm-danger-soft); color: var(--dm-danger); }
.status-neutral { background: #edf0f5; color: #566176; }

.result-card { border-top: 5px solid var(--dm-primary); overflow: hidden; }
.result-head { background: linear-gradient(135deg, var(--dm-primary-soft), var(--dm-blue-soft)); padding: 1.35rem; }
.result-body { padding: 1.35rem; }
.result-statement { color: var(--dm-ink); font-size: 1.04rem; font-weight: 800; }

.key-value {
  border-bottom: 1px dashed #dce1ea;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.65rem 0;
}
.key-value:last-child { border-bottom: 0; }
.key-value .key { color: var(--dm-muted); font-size: 0.82rem; }
.key-value .value { font-size: 0.84rem; font-weight: 800; text-align: left; }

.driver-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.driver-chip { background: var(--dm-primary-soft); border-radius: 999px; color: var(--dm-primary-dark); font-size: 0.77rem; font-weight: 800; padding: 0.42rem 0.7rem; }

.constraint-item {
  background: #fff;
  border: 1px solid #dfe4ee;
  border-radius: 16px;
  padding: 1rem;
}
.constraint-item + .constraint-item { margin-top: 0.75rem; }
.constraint-item h3 { font-size: 0.94rem; font-weight: 900; }
.constraint-meta { color: var(--dm-muted); font-size: 0.77rem; }

.type-guide-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-guide-card {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 17px;
  min-height: 100%;
  padding: 1rem;
}

.type-guide-card .type-number {
  align-items: center;
  background: var(--dm-primary-soft);
  border-radius: 10px;
  color: var(--dm-primary);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.type-guide-card h3 { font-size: 0.94rem; font-weight: 900; margin: 0.8rem 0 0.35rem; }
.type-guide-card p { color: var(--dm-muted); font-size: 0.78rem; line-height: 1.75; }
.type-guide-card small { color: #33435e; display: block; font-size: 0.73rem; font-weight: 700; line-height: 1.7; }
.type-soft .type-number { background: var(--dm-teal-soft); color: #08786e; }
.type-assumption .type-number { background: var(--dm-amber-soft); color: #9a5b05; }
.type-preference .type-number { background: var(--dm-violet-soft); color: var(--dm-violet); }
.guide-questions { padding-right: 1.15rem; }
.guide-questions li + li { margin-top: 0.55rem; }

.constraint-columns {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-group {
  background: #fbfcfd;
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 1rem;
}
.boundary-group h3 { font-size: 0.94rem; font-weight: 900; }
.boundary-group ul { margin: 0; padding-right: 1.1rem; }
.boundary-group li { color: #4f5c70; font-size: 0.82rem; margin-bottom: 0.35rem; }

.article-card {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 15px;
  color: inherit;
  display: block;
  height: 100%;
  padding: 1rem;
  text-decoration: none;
}
.article-card:hover { border-color: rgba(4, 127, 131, 0.38); color: inherit; }
.article-card small { color: var(--dm-primary); font-weight: 800; }
.article-card strong { display: block; font-size: 0.92rem; margin-top: 0.3rem; }
.article-card span { color: var(--dm-muted); display: block; font-size: 0.77rem; margin-top: 0.35rem; }

.sticky-summary { position: sticky; top: 92px; }
#constraintEditor:not([hidden]) + #boundaryGuide { display: none; }

.empty-state {
  background: var(--dm-surface-soft);
  border: 1px dashed rgba(4, 127, 131, 0.34);
  border-radius: 16px;
  color: var(--dm-muted);
  padding: 1.2rem;
  text-align: center;
}

.footer-note { color: var(--dm-muted); font-size: 0.78rem; }

.toast-inline { border-radius: 13px; display: none; font-size: 0.82rem; padding: 0.7rem 0.85rem; }
.toast-inline.is-visible { display: block; }

@media (max-width: 991.98px) {
  .brand-tagline { display: none; }
  .site-header { min-height: 72px; padding: 12px 18px; }
  .sticky-summary { position: static; }
  .type-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .site-shell { border-radius: 22px; margin: 8px auto; width: calc(100% - 16px); }
  .site-header { min-height: 0; padding: 10px 13px; }
  .brand-mark { border-radius: 12px; height: 35px; width: 35px; }
  .brand-mark::before { right: 7px; top: 8px; }
  .brand-mark::after { bottom: 8px; left: 7px; }
  .brand-name { font-size: 1rem; }
  .hero { border-radius: 24px; padding: 1.55rem; }
  .hero h1, .tool-hero h1 { font-size: 2rem; }
  .tool-hero { border-radius: 22px; }
  .journey-rail { gap: 0.25rem; }
  .journey-rail::before { left: 17%; right: 17%; top: 23px; }
  .journey-number { height: 46px; width: 46px; }
  .journey-title { font-size: 0.72rem; }
  .journey-meta { display: none; }
  .choice-grid, .constraint-columns, .type-guide-grid { grid-template-columns: 1fr; }
  .key-value { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .key-value .value { text-align: right; }
  .panel-card { border-radius: 18px; }
  .site-footer { padding: 37px 17px 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .offcanvas, .no-print, .wizard-tabs, .tool-actions { display: none !important; }
  body { background: #fff; }
  .site-shell { border: 0; box-shadow: none; margin: 0; width: 100%; }
  .tool-shell { padding: 0; }
  .tool-hero { background: #fff !important; border: 1px solid #bbb; color: #111; }
  .tool-hero p, .tool-hero .eyebrow { color: #333; }
  .panel-card, .result-card, .summary-card { box-shadow: none; break-inside: avoid; }
}
