:root {
  --bg: #f6f2eb;
  --surface: #ffffff;
  --surface-soft: #fbf8f3;
  --ink: #101117;
  --muted: #5d5a63;
  --brand: #5630a8;
  --accent: #0ea5c6;
  --warm: #d48a31;
  --line: rgba(16, 17, 23, 0.1);
  --shadow: 0 24px 80px rgba(17, 16, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(86,48,168,0.10), transparent 24%),
    linear-gradient(180deg, #faf7f1 0%, #ffffff 25%, var(--bg) 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.resource-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px 24px 86px;
}

.resource-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  background: rgba(250,247,241,0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: 166px;
  color: var(--brand);
  text-decoration: none;
}

.brand-mark svg { width: 100%; height: auto; }

.nav-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 5px;
  border: 1px solid rgba(86,48,168,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 28px rgba(17,16,24,0.06);
}

.nav-rail::-webkit-scrollbar { display: none; }

.nav-rail a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #3b3648;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-rail a:hover {
  color: var(--brand);
  background: rgba(86,48,168,0.08);
  box-shadow: inset 0 0 0 1px rgba(86,48,168,0.10);
}

.nav-rail a:focus-visible,
.button:focus-visible,
.tool-search:focus-visible,
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid rgba(14,165,198,0.34);
  outline-offset: 2px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(72,39,144,0.62);
  border-radius: 14px;
  background: linear-gradient(145deg, #7650dd 0%, var(--brand) 52%, #45228d 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 14px 30px rgba(86,48,168,0.18);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button-soft {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.82);
  color: var(--brand);
  box-shadow: 0 12px 26px rgba(17,16,24,0.08);
}

.button-soft-dark {
  border-color: rgba(86,48,168,0.16);
  background: rgba(255,255,255,0.78);
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(17,16,24,0.06);
}

.floating-enquiry {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 52px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.38), transparent 36%),
    linear-gradient(145deg, #7650dd, #4a2196);
  color: #fff;
  box-shadow: 0 18px 44px rgba(86,48,168,0.26), inset 0 1px 0 rgba(255,255,255,0.24);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: max-width 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.floating-enquiry:hover,
.floating-enquiry:focus-visible {
  max-width: 178px;
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(86,48,168,0.32), inset 0 1px 0 rgba(255,255,255,0.28);
}

.float-dot {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.52);
  animation: float-pulse 1.9s ease-in-out infinite;
}

.float-dot::before,
.float-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.float-dot::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.float-copy {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-enquiry:hover .float-copy,
.floating-enquiry:focus-visible .float-copy {
  opacity: 1;
  transform: translateX(0);
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.46); }
  58% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 38%, rgba(255,255,255,0.08) 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  padding: clamp(28px, 5vw, 58px);
}

.tool-hero h1 {
  max-width: 12.5ch;
}

.meta {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.9;
  font-weight: 900;
}

h2 {
  max-width: 14ch;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 0.95;
  font-weight: 900;
}

h3 {
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

p, li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.lede {
  max-width: 66ch;
  margin: 24px 0 0;
  font-size: 18px;
}

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

.section {
  padding-top: 84px;
  scroll-margin-top: 92px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.tool-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jump-card {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,240,252,0.72)),
    radial-gradient(circle at 88% 12%, rgba(14,165,198,0.16), transparent 24%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(17,16,24,0.07);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.jump-card:hover {
  transform: translateY(-4px);
  border-color: rgba(86,48,168,0.28);
  box-shadow: 0 24px 50px rgba(86,48,168,0.13);
}

.jump-card span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(86,48,168,0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.jump-card strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.jump-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card,
.tool-card,
.guide-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(86,48,168,0.08), transparent 30%),
    rgba(255,255,255,0.86);
  box-shadow: 0 18px 46px rgba(17,16,24,0.08);
}

.path-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.path-primary {
  min-height: 390px;
  padding: 28px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(145deg, rgba(28,23,38,0.92), rgba(67,43,126,0.88)),
    url('./assets/resource-center-hero-ai-optimized.webp') center / cover;
  color: #fff;
}

.path-primary h3,
.path-primary p,
.path-primary .meta { color: #fff; }
.path-primary p { color: rgba(255,255,255,0.76); }

.path-stack {
  display: grid;
  gap: 18px;
}

.path-card,
.guide-card,
.note-card,
.tool-card {
  padding: 24px;
}

.path-card p,
.guide-card p,
.note-card p,
.tool-card p {
  margin-bottom: 0;
}

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

.visual-card {
  position: relative;
  min-height: 180px;
  margin: -4px -4px 20px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 22%, rgba(86,48,168,0.18), transparent 25%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(235,229,249,0.88));
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 18px;
  border: 1px solid rgba(86,48,168,0.14);
  background:
    linear-gradient(90deg, rgba(86,48,168,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(86,48,168,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.visual-card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--brand);
}

.draw-line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-line 4.6s ease-in-out infinite;
}

.pulse-node {
  transform-origin: center;
  animation: pulse-node 2.4s ease-in-out infinite;
}

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

.tool-grid-primary {
  grid-template-columns: 1.15fr .85fr;
}

.tool-card-large {
  padding: clamp(20px, 3vw, 32px);
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.formula-chip {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 9px 12px;
  border: 1px solid rgba(86,48,168,0.18);
  border-radius: 999px;
  background: rgba(86,48,168,0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16,17,23,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
}

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(86,48,168,0.10), rgba(14,165,198,0.08));
}

.result small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.result-split > div {
  padding-right: 12px;
  border-right: 1px solid rgba(16,17,23,0.1);
}

.result-split > div:last-child {
  border-right: 0;
}

.result-dark {
  background:
    radial-gradient(circle at 90% 0%, rgba(14,165,198,0.18), transparent 30%),
    linear-gradient(145deg, #191622, #2c2442);
  color: #fff;
}

.section-tool-layout,
.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 22px;
  align-items: stretch;
}

.budget-output {
  display: grid;
  align-content: stretch;
  gap: 14px;
}

.budget-output .result {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.tool-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.project-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(16,17,23,0.1);
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
}

.project-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.project-table th,
.project-table td {
  padding: 13px;
  border-bottom: 1px solid rgba(16,17,23,0.08);
  text-align: left;
  vertical-align: middle;
}

.project-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-table input,
.project-table select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16,17,23,0.1);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
}

.project-row-total {
  min-width: 110px;
  color: var(--ink);
  font-weight: 900;
}

.tool-actions {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.inline-result {
  min-width: 300px;
  margin-top: 0;
  padding: 14px 18px;
}

.tool-page-shell {
  width: min(100%, 1280px);
}

.tool-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.tool-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.tool-page-hero {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(86,48,168,0.16), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,240,252,0.78));
  box-shadow: var(--shadow);
  min-width: 0;
}

.tool-page-hero h1 {
  max-width: 13ch;
  font-size: clamp(44px, 6vw, 78px);
}

.tool-page-hero p {
  max-width: 70ch;
}

.tool-calculator {
  padding: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.tool-page-grid,
.tool-page-hero,
.tool-calculator,
.tool-explorer {
  max-width: 100%;
}

.tool-page-hero p,
.tool-calculator p,
.formula-note p {
  overflow-wrap: anywhere;
}

.tool-explorer {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.tool-explorer h2 {
  font-size: 28px;
  max-width: none;
}

.tool-search {
  width: 100%;
  min-height: 46px;
  margin: 14px 0;
  border: 1px solid rgba(16,17,23,0.12);
  border-radius: 16px;
  background: #fff;
  padding: 11px 13px;
}

.tool-explorer-list {
  display: grid;
  gap: 10px;
}

.tool-explorer-link {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(16,17,23,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  color: inherit;
  text-decoration: none;
}

.tool-explorer-link span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-explorer-link strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.tool-explorer-link.is-active {
  background:
    radial-gradient(circle at 100% 0%, rgba(14,165,198,0.16), transparent 30%),
    rgba(86,48,168,0.09);
  border-color: rgba(86,48,168,0.22);
}

.tool-page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.calculate-button::after {
  content: "";
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  transition: width .22s ease, height .22s ease;
}

.calculate-button.is-calculating::after {
  width: 10px;
  height: 10px;
  animation: calc-dot .72s ease-in-out infinite;
}

.result-placeholder {
  color: rgba(255,255,255,0.72);
}

.result.is-calculating {
  position: relative;
  overflow: hidden;
}

.result.is-calculating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-100%);
  animation: result-sweep .8s ease infinite;
}

.result.has-result strong {
  animation: result-pop .34s cubic-bezier(.16, 1, .3, 1);
}

.formula-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(16,17,23,0.08);
}

.formula-note h2 {
  max-width: none;
  font-size: 24px;
  margin-bottom: 8px;
}

.formula-note p {
  margin: 0;
}

.tool-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tool-mini-grid .result {
  margin-top: 0;
}

@keyframes calc-dot {
  0%, 100% { transform: scale(.72); opacity: .5; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes result-sweep {
  to { transform: translateX(100%); }
}

@keyframes result-pop {
  from { transform: translateY(8px); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}

.result strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.result-dark,
.result-dark * {
  color: #fff;
}

.result-dark span,
.result-dark small,
.result-dark .result-placeholder {
  color: rgba(255,255,255,0.78);
}

.result-dark strong,
.result-dark.has-result strong {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

.result-dark.result-split > div {
  border-color: rgba(255,255,255,0.16);
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(16,17,23,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.64);
  cursor: pointer;
}

.check-row input { margin-top: 3px; accent-color: var(--brand); }
.check-row span { color: var(--muted); font-size: 14px; line-height: 1.55; }

.note-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.process-map {
  min-height: 420px;
  position: sticky;
  top: 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(86,48,168,0.14), transparent 28%),
    linear-gradient(145deg, #191622, #2c2442);
}

.process-map svg {
  width: 100%;
  height: 100%;
  color: #fff;
}

.note-list {
  display: grid;
  gap: 16px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(14,165,198,0.14), transparent 24%),
    linear-gradient(145deg, #1b1724, #101117);
  color: #fff;
}

.cta-panel h2,
.cta-panel p { color: #fff; }
.cta-panel p { color: rgba(255,255,255,0.72); }

@keyframes draw-line {
  0% { stroke-dashoffset: 260; opacity: 0.15; }
  38%, 72% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: -260; opacity: 0.15; }
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.54; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 900px) {
  .resource-shell { padding: 12px 14px 60px; }
  .resource-nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(86,48,168,0.12);
    border-radius: 24px;
    background:
      radial-gradient(circle at 12% 0%, rgba(86,48,168,0.12), transparent 34%),
      rgba(255,255,255,0.82);
    box-shadow: 0 18px 44px rgba(17,16,24,0.08);
  }
  .nav-rail {
    width: 100%;
    justify-content: flex-start;
    border-radius: 999px;
  }
  .nav-rail a {
    padding: 9px 12px;
    scroll-snap-align: center;
  }
  .brand-mark { width: 130px; margin-left: 0; }
  .hero { min-height: 590px; }
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74), rgba(255,255,255,0.22)); }
  .section-head,
  .path-grid,
  .guide-grid,
  .tool-grid,
  .tool-grid-primary,
  .tool-jump-grid,
  .section-tool-layout,
  .budget-layout,
  .tool-page-grid,
  .tool-mini-grid,
  .note-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }
  .process-map { position: relative; top: auto; min-height: 300px; }
  .tool-explorer { position: relative; top: auto; }
  .tool-form { grid-template-columns: 1fr; }
  .result-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-split > div:nth-child(2) { border-right: 0; }
  .tool-actions { flex-direction: column; }
  .inline-result { min-width: 0; }
}

@media (max-width: 560px) {
  .resource-shell {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
    overflow: hidden;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 22px;
    align-self: end;
  }
  h1 {
    max-width: 11ch;
    font-size: 34px;
    line-height: 0.96;
  }
  h2 { font-size: 36px; }
  .tool-hero h1 { max-width: 100%; }
  .resource-nav {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    gap: 8px;
    width: 100%;
    padding: 12px;
  }
  .brand-mark {
    width: clamp(132px, 40vw, 160px);
    margin-left: 0;
    justify-self: start;
  }
  .nav-rail {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .nav-rail a {
    min-height: 40px;
    flex: 0 1 auto;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
  }
  .floating-enquiry {
    right: 14px;
    bottom: 14px;
    max-width: 52px;
  }
  .hero-actions .button,
  .cta-panel .button { width: 100%; }
  .tool-card-head { display: grid; }
  .formula-chip { max-width: none; }
  .result-split { grid-template-columns: 1fr; }
  .result-split > div {
    border-right: 0;
    border-bottom: 1px solid rgba(16,17,23,0.1);
    padding: 0 0 12px;
  }
  .result-dark.result-split > div {
    border-bottom-color: rgba(255,255,255,0.16);
  }
  .result-split > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .jump-card { min-height: 142px; }
  .tool-page-hero h1 { font-size: 38px; max-width: 11ch; }
  .tool-page-actions .button { width: 100%; }
}
