:root {
  color-scheme: light;
  --brand-primary: #153b59;
  --brand-primary-hover: #0d2d45;
  --brand-link: #1f6f9f;
  --brand-sky: #5ca2dc;
  --brand-lime: #c3d52d;
  --brand-teal: #44b5bc;
  --brand-yellow: #fec346;
  --brand-orange: #fe9d36;
  --brand-orange-deep: #9c4318;
  --brand-orange-soft: #fff0df;
  --brand-green: #2f7445;
  --brand-green-soft: #edf6e5;
  --ink: #12252f;
  --ink-soft: #3d515b;
  --paper: #fbfaf5;
  --paper-warm: #f3efe3;
  --surface: #ffffff;
  --surface-2: #edf6fb;
  --navy: var(--brand-primary);
  --blue: var(--brand-primary);
  --blue-dark: var(--brand-primary-hover);
  --teal: #176f72;
  --teal-bright: var(--brand-teal);
  --coral: var(--brand-orange);
  --amber: var(--brand-yellow);
  --red: #b83f3f;
  --green: #217651;
  --line: #cad9e3;
  --line-strong: #9db3c3;
  --focus: #ffb23d;
  --shadow-sm: 0 1px 2px rgba(14, 49, 67, 0.08), 0 8px 24px rgba(14, 49, 67, 0.06);
  --shadow-md: 0 18px 50px rgba(14, 49, 67, 0.14);
  --radius-sm: 0.45rem;
  --radius: 0.9rem;
  --radius-lg: 1.6rem;
  --radius-pill: 999px;
  --container: 1180px;
  --measure: 68ch;
  --step--1: clamp(0.82rem, 0.79rem + 0.16vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.22vw, 1.12rem);
  --step-1: clamp(1.22rem, 1.08rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.15rem);
  --step-3: clamp(2rem, 1.6rem + 1.7vw, 3rem);
  --step-4: clamp(2.7rem, 2rem + 3.2vw, 5.25rem);
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5.5rem;
  --space-8: 8rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

main {
  min-height: 65vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.19em;
}

a:hover {
  color: var(--brand-link);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #bcebe6;
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p,
ul,
ol,
dl,
blockquote {
  margin-block: 0 1em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--navy);
  font-weight: 720;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--space-5);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 2rem), 840px);
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.stack > * + * { margin-top: var(--stack-space, var(--space-3)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-space, var(--space-3)); align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-3);
  color: var(--brand-primary);
  font-size: var(--step--1);
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  width: 1.6rem;
  height: 0.22rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-orange) 0 50%, var(--brand-lime) 50%);
  content: "";
}

.lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.text-center { text-align: center; }
.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;
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(158, 179, 178, 0.55);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(135%);
}

.header-inner {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  color: var(--navy);
  line-height: 0;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 2.65rem;
  max-width: min(13.75rem, 38vw);
  object-fit: contain;
}

.brand-footer {
  width: fit-content;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  background: #fff;
}

.brand-logo--footer {
  height: 2.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.55rem 0.72rem;
  border: 0;
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-link[aria-current="page"],
.nav-trigger[aria-expanded="true"] {
  background: rgba(92, 162, 220, 0.14);
  color: var(--brand-primary);
}

.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand-lime); }

.nav-trigger::after {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 160ms ease;
}

.nav-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  width: min(23rem, 80vw);
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  list-style: none;
}

.nav-submenu[hidden] { display: none; }

.nav-submenu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(92, 162, 220, 0.14);
  color: var(--brand-primary);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  place-items: center;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines::before { transform: translateY(-0.42rem); }
.nav-toggle-lines::after { transform: translateY(0.3rem); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-2px) rotate(-45deg); }

/* Buttons and chips */
.button,
.button:visited {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-primary);
  box-shadow: 0 5px 14px rgba(21, 59, 89, 0.22);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 8px 18px rgba(21, 59, 89, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.button--secondary {
  border-color: #d98647;
  background: var(--brand-orange-soft);
  box-shadow: none;
  color: var(--brand-orange-deep);
}

.button--secondary:hover {
  border-color: var(--brand-orange-deep);
  background: #ffe4c8;
  box-shadow: none;
  color: #71300f;
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--brand-primary);
}

.button--quiet:hover {
  background: var(--surface-2);
  box-shadow: none;
  color: var(--brand-link);
}

.hero-actions .button--quiet {
  border-color: #9db3c3;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-primary);
}

.hero-actions .button--quiet:hover {
  border-color: var(--brand-primary);
  background: #fff;
  color: var(--brand-primary-hover);
}

.button--danger { background: var(--red); }
.button--small { min-height: 2.35rem; padding: 0.5rem 0.85rem; font-size: var(--step--1); }
.button[disabled],
.button[aria-disabled="true"] { opacity: 0.52; cursor: not-allowed; transform: none; box-shadow: none; }

.chip,
.tag,
.source-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.chip--accent { border-color: #8dd9d3; background: #dff6f3; color: #075d59; }
.chip--warning { border-color: #e29a59; background: var(--brand-orange-soft); color: #7a3e12; }
.tag { border-color: #a5c878; background: var(--brand-green-soft); color: #285c38; }
.source-chip { border-color: #e5a566; background: var(--brand-orange-soft); color: #744019; }

/* Hero and narrative sections */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero {
  padding-block: clamp(4rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 82% 20%, rgba(21, 175, 164, 0.24), transparent 26rem),
    radial-gradient(circle at 18% 90%, rgba(228, 94, 67, 0.12), transparent 24rem),
    linear-gradient(135deg, #f7f5ec 0%, #eef8f6 58%, #edf1fb 100%);
}

.hero::before,
.page-hero::before {
  position: absolute;
  z-index: -1;
  top: -7rem;
  right: -4rem;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(14, 49, 67, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.2rem rgba(14, 49, 67, 0.025),
    0 0 0 6.4rem rgba(14, 49, 67, 0.018);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 13ch;
}

.hero-copy .lede {
  margin-top: var(--space-4);
}

.hero-actions {
  display: flex;
  margin-top: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-note {
  display: flex;
  margin-top: var(--space-4);
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.hero-note::before {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.43rem;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 5px rgba(47, 116, 69, 0.14);
  content: "";
  flex: 0 0 auto;
}

.hero-visual,
.civic-map {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid rgba(14, 49, 67, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy), #1f6a55);
  box-shadow: var(--shadow-md);
}

.hero-visual::before,
.civic-map::before {
  position: absolute;
  inset: 12% 9% auto auto;
  width: 9rem;
  height: 9rem;
  border: 1.1rem solid var(--teal-bright);
  border-right-color: var(--coral);
  border-radius: 50%;
  content: "";
  transform: rotate(24deg);
}

.hero-visual::after,
.civic-map::after {
  position: absolute;
  right: 10%;
  bottom: 12%;
  left: 10%;
  height: 38%;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--teal-bright) 0 24%, transparent 24% 29%, #7fa3ff 29% 62%, transparent 62% 67%, var(--coral) 67%),
    rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 75%, 24% 38%, 45% 58%, 68% 15%, 100% 0, 100% 100%, 0 100%);
  content: "";
  opacity: 0.9;
}

.page-hero {
  padding-block: clamp(3.3rem, 6vw, 6.3rem);
  background: linear-gradient(120deg, var(--paper-warm), #edf6f4);
}

.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: var(--space-4); }

.breadcrumbs {
  display: flex;
  margin: 0 0 var(--space-4);
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 0.45rem;
  color: var(--line-strong);
  content: "/";
}

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.section--compact { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--navy); color: #eaf3f2; }
.section--dark h2,
.section--dark h3,
.section--dark strong { color: #fff; }
.section--dark .lede,
.section--dark .muted { color: #c6d8d8; }

.section-heading {
  display: grid;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.section-heading--split {
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  gap: var(--space-6);
  align-items: end;
}

.callout-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #eaf3f2;
  box-shadow: var(--shadow-md);
}

.callout-band::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border: 2.6rem solid rgba(21, 175, 164, 0.25);
  border-radius: 50%;
  content: "";
}

.callout-band > * { position: relative; z-index: 1; }
.callout-band h2,
.callout-band h3 { color: #fff; }

/* Cards and process */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.card,
.service-card,
.feature-card,
.publication-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.card--interactive,
a.card {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card--interactive:hover,
a.card:hover {
  border-color: #8ac9c4;
  box-shadow: var(--shadow-md);
  color: inherit;
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
  place-items: center;
  background: #dff6f3;
  color: var(--teal);
  font-weight: 820;
}

.card h3,
.service-card h3,
.feature-card h3 { font-size: var(--step-1); }
.card p,
.service-card p,
.feature-card p { color: var(--ink-soft); }
.card-link { margin-top: auto; color: var(--blue-dark); font-weight: 740; }

.method-timeline {
  display: grid;
  margin: var(--space-5) 0 0;
  padding: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  counter-reset: method;
  list-style: none;
}

.method-step {
  position: relative;
  min-width: 0;
  padding: 4rem 0.9rem 1rem;
  border-top: 2px solid var(--line-strong);
}

.method-step-number {
  position: absolute;
  top: -1.25rem;
  left: 0.8rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  border: 4px solid var(--paper);
  border-radius: 50%;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 820;
}

.method-step:nth-child(3n + 2) .method-step-number { background: var(--blue); }
.method-step:nth-child(3n) .method-step-number { background: var(--coral); }
.method-step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.method-step p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }

.principle-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
}

.principle-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.principle-list li::before {
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--teal);
  border-top: 0;
  border-left: 0;
  content: "";
  transform: rotate(45deg);
}

/* Tool and application surfaces */
.tools-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.tool-card {
  display: grid;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

.tool-card:hover { border-color: var(--brand-sky); color: inherit; }
.tool-card-number { color: var(--brand-link); font-size: var(--step-2); font-weight: 840; line-height: 1; }

.tool-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.tool-header {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 10%, rgba(21, 175, 164, 0.19), transparent 12rem),
    linear-gradient(120deg, #f8f5e9, #f0f7f6);
}

.tool-header h1,
.tool-header h2 { max-width: 22ch; }
.tool-header p { max-width: 70ch; margin-top: var(--space-3); color: var(--ink-soft); }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.3fr) minmax(0, 1fr);
  min-height: 32rem;
}

.tool-sidebar {
  padding: var(--space-4);
  border-right: 1px solid var(--line);
  background: #f6f8f5;
}

.tool-panel,
.tool-body {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

.tool-actions {
  display: flex;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

.step-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  display: grid;
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  grid-template-columns: 1.55rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--ink-soft);
  counter-increment: steps;
  font-size: var(--step--1);
  font-weight: 630;
}

.step-list li::before {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  background: #fff;
  content: counter(steps);
  font-size: 0.7rem;
}

.step-list li[aria-current="step"],
.step-list li.is-current {
  background: #dff6f3;
  color: var(--navy);
}

.step-list li[aria-current="step"]::before,
.step-list li.is-current::before {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.progress-track,
.tool-progress {
  overflow: hidden;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: #dbe5e3;
}

.progress-track > span,
.tool-progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 240ms ease;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
}

.field--full { grid-column: 1 / -1; }

.field label,
.field-label,
fieldset > legend {
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 740;
}

.field-hint,
.form-hint {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(14, 49, 67, 0.035);
}

textarea { min-height: 8rem; resize: vertical; }

input:hover,
select:hover,
textarea:hover { border-color: #708f8d; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 90, 199, 0.14);
}

[aria-invalid="true"],
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red) !important;
}

.field-error {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 650;
}

fieldset {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

fieldset > legend { padding-inline: 0.35rem; }

.choice-group {
  display: grid;
  gap: 0.55rem;
}

.choice {
  display: flex;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  gap: 0.65rem;
  background: #fff;
  cursor: pointer;
}

.choice:hover,
.choice:has(input:checked) {
  border-color: #7bc9c3;
  background: #ecf9f7;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.filter-bar,
.search-panel {
  display: grid;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: minmax(15rem, 1.5fr) repeat(2, minmax(10rem, 0.75fr)) auto;
  gap: var(--space-2);
  align-items: end;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.notice,
.alert {
  display: grid;
  padding: 0.95rem 1rem;
  border: 1px solid #9acdc8;
  border-left: 0.32rem solid var(--teal);
  border-radius: var(--radius-sm);
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  background: #edf9f7;
  color: #174a47;
  font-size: 0.9rem;
}

.notice::before,
.alert::before {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  place-items: center;
  background: var(--teal);
  color: #fff;
  content: "i";
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
}

.notice--warning,
.alert--warning { border-color: #e8c974; border-left-color: var(--amber); background: #fff8df; color: #66480e; }
.notice--warning::before,
.alert--warning::before { background: var(--amber); content: "!"; }
.notice--error,
.alert--error { border-color: #dda2a2; border-left-color: var(--red); background: #fff0f0; color: #742828; }
.notice--error::before,
.alert--error::before { background: var(--red); content: "!"; }
.notice--success,
.alert--success { border-color: #9ac7af; border-left-color: var(--green); background: #edf8f1; color: #19583b; }
.notice--success::before,
.alert--success::before { background: var(--green); content: "✓"; }

.result-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid #9acdc8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4fbfa, #f7f8f1);
}

.result-grid,
.scenario-grid {
  display: grid;
  margin-top: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.metric,
.scenario-card {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.metric-value {
  display: block;
  color: var(--navy);
  font-size: var(--step-2);
  font-weight: 820;
  line-height: 1.1;
}

.metric-label { color: var(--ink-soft); font-size: var(--step--1); }

.score-ring {
  display: grid;
  width: 9.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  background: conic-gradient(var(--teal) var(--score, 0%), #dfe9e7 0);
}

.score-ring::before {
  display: grid;
  width: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  background: #fff;
  color: var(--navy);
  content: attr(data-score);
  font-size: var(--step-2);
  font-weight: 840;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf5f3;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7fbfa; }

.diagram-canvas {
  position: relative;
  min-height: 18rem;
  overflow: auto;
  padding: var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(14, 49, 67, 0.16) 1px, transparent 1.5px),
    #f9fbfa;
  background-size: 20px 20px;
}

.diagram-node {
  position: relative;
  padding: 0.8rem 1rem;
  border: 1px solid #7cbdb7;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  display: grid;
  min-height: 15rem;
  padding: var(--space-5);
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  color: var(--ink-soft);
  text-align: center;
}

.empty-state::before {
  width: 3.5rem;
  height: 3.5rem;
  border: 0.55rem solid #cce8e4;
  border-right-color: var(--coral);
  border-radius: 50%;
  content: "";
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.loading::before {
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  content: "";
}

@keyframes spin { to { transform: rotate(360deg); } }

/* News, research and publications */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.news-card:hover { border-color: #8ac9c4; box-shadow: var(--shadow-md); }

.news-cover {
  position: relative;
  display: grid;
  min-height: 11rem;
  padding: var(--space-3);
  overflow: hidden;
  align-content: end;
  background:
    linear-gradient(145deg, transparent 46%, rgba(255, 255, 255, 0.12) 47% 52%, transparent 53%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.07) 32px 33px),
    linear-gradient(135deg, #0e3143, #087f79);
  color: #fff;
}

.news-card:nth-child(3n + 2) .news-cover {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.16) 0 12%, transparent 12.5%),
    repeating-linear-gradient(-35deg, transparent 0 28px, rgba(255, 255, 255, 0.07) 29px 31px),
    linear-gradient(135deg, #233b73, #315ac7);
}

.news-card:nth-child(3n) .news-cover {
  background:
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.13) 43% 47%, transparent 48%),
    radial-gradient(circle at 20% 75%, rgba(255, 255, 255, 0.12) 0 18%, transparent 18.5%),
    linear-gradient(135deg, #793d30, #e45e43);
}

.news-cover::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 0.7rem solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
}

.news-cover-label {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  font-size: 0.78rem;
  font-weight: 790;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-body {
  display: flex;
  padding: var(--space-4);
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
}

.news-card h2,
.news-card h3 { font-size: var(--step-1); }
.news-card h2 a,
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h2 a:hover,
.news-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.news-card-summary { color: var(--ink-soft); font-size: 0.93rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; color: var(--ink-soft); font-size: 0.76rem; }
.news-card-footer { margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--line); }

.news-controls {
  display: grid;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  background: var(--surface);
}

.news-status {
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 750;
}

.results-count { margin: 0 0 0.85rem; color: var(--ink-soft); font-size: var(--step--1); }

.publication-list { display: grid; gap: var(--space-3); }
.publication-item {
  display: grid;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  background: var(--surface);
}
.publication-item h3 { margin: 0.35rem 0 0.65rem; }
.publication-type,
.publication-status { color: var(--teal); font-size: 0.75rem; font-weight: 780; letter-spacing: 0.04em; text-transform: uppercase; }

.preview-banner {
  display: flex;
  min-height: 2rem;
  padding: 0.35rem clamp(1rem, 4vw, 3rem);
  justify-content: space-between;
  gap: 1rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.76rem;
}

.route-loading,
.loading-state { padding: var(--space-7) var(--space-4); text-align: center; color: var(--ink-soft); }

.process-map {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025));
}
.process-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.process-map path { fill: none; stroke: rgba(255,255,255,0.36); stroke-width: 3; stroke-dasharray: 8 9; }
.process-map circle { fill: var(--coral); stroke: #fff; stroke-width: 3; }
.process-node {
  position: absolute;
  z-index: 1;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(7, 31, 43, 0.8);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.process-node.n1 { top: 16%; left: 7%; }
.process-node.n2 { top: 36%; left: 38%; }
.process-node.n3 { top: 25%; right: 5%; }
.process-node.n4 { bottom: 18%; left: 12%; }
.process-node.n5 { right: 8%; bottom: 15%; }

@media (max-width: 760px) {
  .preview-banner { align-items: flex-start; flex-direction: column; gap: 0.1rem; }
  .news-controls,
  .publication-item { grid-template-columns: 1fr; }
  .process-map { min-height: 20rem; }
}

.editorial-note {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.publication-card { border-left: 0.35rem solid var(--blue); }
.publication-meta { color: var(--ink-soft); font-size: var(--step--1); }

.pagination {
  display: flex;
  margin-top: var(--space-5);
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.pagination button,
.pagination a {
  display: grid;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  place-items: center;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}

.pagination [aria-current="page"] { border-color: var(--brand-green); background: var(--brand-green); color: #fff; }

/* Contact and footer */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.privacy-note {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 0.25rem solid var(--brand-green);
  background: var(--brand-green-soft);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.site-footer {
  padding-block: var(--space-6) var(--space-4);
  background: var(--brand-primary);
  color: #dbe8e7;
}

.site-footer a { color: #dbe8e7; }
.site-footer a:hover { color: var(--brand-lime); }
.site-footer .brand { color: #fff; }
.site-footer .button { color: #fff; }
.site-footer .button:hover { color: #fff; }
.site-footer .button--secondary { color: var(--navy); }
.site-footer .button--secondary:hover { color: var(--brand-link); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.2fr) repeat(3, minmax(8rem, 0.7fr));
  gap: var(--space-5);
}

.footer-title { margin-bottom: var(--space-2); color: #fff; font-size: 0.84rem; font-weight: 780; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links { display: grid; margin: 0; padding: 0; gap: 0.5rem; list-style: none; }
.footer-links a { font-size: 0.88rem; text-decoration: none; }
.footer-bottom { display: flex; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(219, 232, 231, 0.2); flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; color: #a9bfbe; font-size: 0.76rem; }

.toast-region {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: min(24rem, calc(100% - 2rem));
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

/* Integration layer for the live preview markup */
.header-inner,
.hero-grid,
.section-inner,
.footer-grid,
.footer-bottom,
.section-cta > .callout-band,
.method-timeline {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section-inner.narrow {
  width: min(calc(100% - 2rem), 840px);
}

.section-lead {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.button--light,
.button-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: #fff;
  box-shadow: none;
  color: var(--navy);
}

.button--light:hover,
.button-light:hover {
  border-color: #fff;
  background: var(--surface-2);
  box-shadow: none;
  color: var(--brand-link);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: none;
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--brand-link);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--brand-link);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--blue-dark);
}

.text-link,
.text-button {
  color: var(--brand-primary);
  font-size: 0.92rem;
  font-weight: 740;
}

.text-button {
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.text-button:hover { background: var(--surface-2); color: var(--brand-link); }
.text-button.danger { color: var(--red); }

.tool-card > :not(.tool-card-number) { grid-column: 2; }

.hero-signal {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid rgba(14, 49, 67, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 72% 24%, rgba(21, 175, 164, 0.34) 0 13%, transparent 13.5%),
    linear-gradient(145deg, rgba(14, 49, 67, 0.96), rgba(8, 127, 121, 0.84));
  box-shadow: var(--shadow-md);
}

.hero-signal::before,
.hero-signal::after,
.hero-signal span {
  position: absolute;
  display: block;
  border-radius: var(--radius-pill);
  content: "";
}

.hero-signal::before {
  inset: 18% 12% auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4rem 0 rgba(255, 255, 255, 0.22), 0 8rem 0 rgba(255, 255, 255, 0.16);
}

.hero-signal::after {
  right: 12%;
  bottom: 12%;
  width: 7rem;
  height: 7rem;
  border: 1rem solid rgba(255, 255, 255, 0.3);
  border-right-color: var(--coral);
  border-radius: 50%;
}

.hero-signal span {
  left: 12%;
  width: 34%;
  height: 0.7rem;
  background: var(--teal-bright);
}

.hero-signal span:nth-child(1) { top: 24%; width: 58%; }
.hero-signal span:nth-child(2) { top: 44%; width: 38%; background: #87a6ff; }
.hero-signal span:nth-child(3) { top: 64%; width: 66%; background: var(--coral); }
.hero-signal span:nth-child(4) { top: 84%; width: 28%; background: #fff; }

.tool-host > .tool-shell,
.tool-host.publicia-tool--experiences,
.tool-host.publicia-tool--evaluator,
.tool-host.publicia-tool--request {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.tool-intro,
.tool-heading {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 10%, rgba(21, 175, 164, 0.19), transparent 12rem),
    linear-gradient(120deg, #f8f5e9, #f0f7f6);
}

.tool-intro h2,
.tool-heading h2 { max-width: 24ch; }
.tool-intro p,
.tool-heading p { max-width: 70ch; margin-top: var(--space-3); color: var(--ink-soft); }

[data-tool-body],
.risk-evaluator,
.guided-request {
  display: grid;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  gap: var(--space-4);
}

.tool-form,
.diagnostic-questions,
.mapped-steps,
.request-step {
  display: grid;
  gap: var(--space-3);
}

.diagnostic-questions,
.mapped-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-grid,
.choice-grid,
.tool-filters,
.experience-results,
.step-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.form-grid > label,
.procedure-meta {
  display: grid;
  gap: 0.42rem;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 740;
}

.tool-filters {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  background: #f8faf8;
}

.field--wide,
.tool-filters .tool-actions { grid-column: 1 / -1; }

.choice-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.choice-card,
.choice-row,
.checkbox-field,
.consent-row {
  display: flex;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  gap: 0.65rem;
  background: #fff;
  cursor: pointer;
}

.choice-card:hover,
.choice-card:has(input:checked),
.choice-row:hover,
.choice-row:has(input:checked),
.checkbox-field:has(input:checked),
.consent-row:has(input:checked) {
  border-color: #7bc9c3;
  background: #ecf9f7;
}

.choice-card small { display: block; margin-top: 0.2rem; color: var(--ink-soft); line-height: 1.4; }
.question-dimension { display: block; margin-bottom: 0.35rem; color: var(--teal); font-size: var(--step--1); }

.tool-error {
  padding: 0.9rem 1rem;
  border: 1px solid #dda2a2;
  border-left: 0.32rem solid var(--red);
  border-radius: var(--radius-sm);
  background: #fff0f0;
  color: #742828;
  font-weight: 650;
}

.tool-results { margin-top: var(--space-4); }

.result-card {
  display: grid;
  padding: var(--space-4);
  border: 1px solid #9acdc8;
  border-radius: var(--radius);
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
  background: linear-gradient(135deg, #f4fbfa, #f7f8f1);
}

.result-score {
  display: grid;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: var(--step-2);
  font-weight: 840;
}

.result-score span { display: block; font-size: var(--step--1); }
.result-section,
.method-note { margin-top: var(--space-4); }
.method-note { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8faf8; }
.method-note summary { color: var(--navy); font-weight: 760; cursor: pointer; }
.table-footnote,
.field-help { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.45; }

.sr-status {
  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;
}

.step-form { margin-top: var(--space-4); }
.procedure-list { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.section-heading-row { display: flex; margin-bottom: var(--space-3); flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }

.mapped-step article {
  display: grid;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
  background: #fff;
}

.step-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 820;
}

.step-details { margin-top: var(--space-2); }
.step-details div { min-width: 0; }
.step-details dt { color: var(--ink-soft); font-size: 0.74rem; font-weight: 760; text-transform: uppercase; }
.step-details dd { margin: 0; overflow-wrap: anywhere; }
.step-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: flex-end; }

.experience-results { padding: clamp(1.35rem, 3vw, 2.5rem); }
.experience-card { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.experience-card__meta { color: var(--teal); font-size: var(--step--1); font-weight: 760; }
.experience-card__facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem var(--space-2); }
.experience-card__facts dt { color: var(--ink-soft); font-weight: 720; }
.experience-card__facts dd { margin: 0; }

.question-card { display: grid; margin: 0; gap: 0.55rem; }
.question-card legend { margin-bottom: var(--space-2); }
.evaluation-result { padding: var(--space-4); border: 1px solid #9acdc8; border-radius: var(--radius); background: linear-gradient(135deg, #f4fbfa, #f7f8f1); }
.risk-score { color: var(--teal); font-size: var(--step-1); font-weight: 820; }
.checklist { display: grid; gap: 0.55rem; }
.result-caveat { padding: var(--space-3); border-left: 0.3rem solid var(--amber); background: #fff8df; }

.step-progress { width: fit-content; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: #dff6f3; color: var(--teal); font-size: var(--step--1); font-weight: 780; }
.step-title { font-size: var(--step-2); }
.checkbox-group { display: grid; gap: 0.55rem; }
.request-review { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8faf8; }
.review-list { display: grid; gap: 0.4rem; }
.review-row { display: grid; grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr); gap: var(--space-2); }
.review-row dt { color: var(--ink-soft); font-weight: 720; }
.review-row dd { margin: 0; overflow-wrap: anywhere; }
.preview-notice,
.tool-note { padding: var(--space-3); border-left: 0.3rem solid var(--teal); background: #edf9f7; color: var(--ink-soft); }
.tool-note { margin: 0 clamp(1.35rem, 3vw, 2.5rem) clamp(1.35rem, 3vw, 2.5rem); }

.tool-status { min-height: 1.5rem; margin: var(--space-3) clamp(1.35rem, 3vw, 2.5rem) 0; font-weight: 650; }
.risk-evaluator .tool-status,
.guided-request .tool-status { margin: 0; }
.tool-status--error { color: var(--red); }
.tool-status--success { color: var(--green); }
.tool-status--warning { color: #74500b; }
.tool-status--empty { color: var(--ink-soft); }

.contact-form { display: grid; gap: var(--space-3); }
.form-status { min-height: 1.5rem; color: var(--teal); font-weight: 650; }
.form-status.is-error { color: var(--red); }
.form-status.is-success { color: var(--green); }

/* Responsive */
@media (max-width: 1050px) {
  .nav-link,
  .nav-trigger { padding-inline: 0.5rem; font-size: 0.82rem; }
  .header-inner { gap: var(--space-2); }
  .card-grid,
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-5); }
  .footer-grid { grid-template-columns: minmax(15rem, 1.2fr) repeat(2, minmax(8rem, 0.7fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - 5.2rem);
    padding: 1rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open,
  .nav[data-open="true"],
  .nav-toggle[aria-expanded="true"] + .nav { display: block; }
  .nav-list { display: grid; align-items: stretch; }
  .nav-link,
  .nav-trigger { width: 100%; min-height: 3rem; padding: 0.7rem 0.8rem; justify-content: space-between; font-size: 0.96rem; text-align: left; }
  .nav-submenu { position: static; width: 100%; margin-top: 0.25rem; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-visual { min-height: 20rem; }
  .section-heading--split { grid-template-columns: 1fr; gap: var(--space-3); }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .step-list { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  .filter-bar,
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid,
  .tool-filters,
  .experience-results,
  .step-details { grid-template-columns: 1fr; }
  .hero-page .hero-signal { min-height: 14rem; }
}

@media (max-width: 680px) {
  :root { --space-7: 4.2rem; --space-8: 5.5rem; }
  .container,
  .container--narrow,
  .header-inner,
  .hero-grid,
  .section-inner,
  .footer-grid,
  .footer-bottom,
  .section-cta > .callout-band,
  .method-timeline { width: min(calc(100% - 1.25rem), var(--container)); }
  .section-inner.narrow { width: min(calc(100% - 1.25rem), 840px); }
  .header-inner { min-height: 4.65rem; }
  .nav { inset-block-start: 100%; max-height: calc(100dvh - 4.65rem); }
  .brand-logo { height: 2.15rem; max-width: min(11.2rem, 58vw); }
  .brand-logo--footer { height: 2.2rem; }
  .hero { padding-block: 3.5rem 4.5rem; }
  .hero-visual { min-height: 16rem; }
  .two-col,
  .three-col,
  .card-grid,
  .news-grid,
  .tools-index,
  .field-grid,
  .form-grid,
  .choice-grid,
  .tool-filters,
  .experience-results,
  .result-grid,
  .scenario-grid,
  .principle-list { grid-template-columns: 1fr; }
  .method-timeline { grid-template-columns: 1fr; gap: 0; }
  .method-step { padding: 1rem 0.7rem 1rem 3.7rem; border-top: 0; border-left: 2px solid var(--line-strong); }
  .method-step-number { top: 0.6rem; left: -1.25rem; }
  .filter-bar,
  .search-panel { grid-template-columns: 1fr; }
  .tool-actions { flex-direction: column-reverse; align-items: stretch; }
  .tool-actions .button { width: 100%; }
  .mapped-step article { grid-template-columns: auto minmax(0, 1fr); }
  .step-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .result-card { grid-template-columns: 1fr; }
  .result-score { width: 6rem; }
  .hero-page .hero-signal { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { display: grid; }
}

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

@media (forced-colors: active) {
  .button,
  .chip,
  .tag,
  .card,
  .tool-shell,
  .news-card,
  .notice { border: 1px solid CanvasText; }
  .hero-visual,
  .news-cover { forced-color-adjust: none; }
}

@media print {
  :root { --ink: #000; --navy: #000; --paper: #fff; --surface: #fff; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header,
  .site-footer,
  .nav,
  .nav-toggle,
  .hero-actions,
  .tool-actions,
  .filter-bar,
  .search-panel,
  .toast-region,
  .button--quiet,
  [data-no-print] { display: none !important; }
  .container,
  .container--narrow { width: 100%; }
  .hero,
  .page-hero,
  .section { padding-block: 1.25rem; border: 0; background: #fff; }
  .hero::before,
  .page-hero::before,
  .callout-band::after { display: none; }
  .hero-grid,
  .section-heading--split,
  .contact-layout,
  .tool-layout { display: block; }
  .hero-visual { display: none; }
  .card,
  .service-card,
  .feature-card,
  .tool-shell,
  .result-panel,
  .news-card,
  .contact-panel,
  .callout-band {
    break-inside: avoid;
    border: 1px solid #777;
    background: #fff;
    box-shadow: none;
    color: #000;
  }
  .callout-band h2,
  .callout-band h3 { color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .news-grid,
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cover { min-height: 4rem; background: #ddd !important; color: #000; }
  .table-wrap { overflow: visible; }
}
