:root {
  --ink: #17342f;
  --ink-soft: #52645f;
  --green: #235b52;
  --green-dark: #17473f;
  --green-pale: #dfece7;
  --coral: #e98068;
  --coral-dark: #c95f49;
  --peach: #f8dfd6;
  --cream: #f7f3ee;
  --paper: #fffdf9;
  --white: #ffffff;
  --blue: #dbe9ee;
  --line: rgba(23, 52, 47, 0.12);
  --shadow-sm: 0 8px 24px rgba(28, 57, 50, 0.08);
  --shadow-lg: 0 26px 70px rgba(28, 57, 50, 0.14);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: min(1180px, calc(100% - 40px));
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 128, 104, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.emergency-bar {
  position: relative;
  z-index: 60;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.emergency-inner {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 24px;
}

.emergency-inner > span {
  color: white;
  font-weight: 700;
}

.emergency-inner a {
  transition: color 0.2s;
}

.emergency-inner a:hover {
  color: white;
}

.emergency-inner strong {
  margin-right: 5px;
  color: #ffd5cb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 238, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(27, 54, 48, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand small {
  color: var(--coral);
  font-size: inherit;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  fill: var(--green);
}

.brand-mark .brand-seed {
  fill: var(--peach);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(18px, 2.2vw, 32px);
}

.desktop-nav a {
  position: relative;
  color: #294c45;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.language-switcher button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.language-switcher button.active {
  background: var(--green);
  color: white;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.icon-button:hover {
  background: white;
  transform: translateY(-1px);
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

#app {
  min-height: 64vh;
  overflow: hidden;
}

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 7px;
}

.page-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1s infinite ease-in-out;
}

.page-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.page-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

.page {
  animation: pageIn 0.4s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.display-title {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 68px);
}

.lead {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  box-shadow: 0 10px 20px rgba(35, 91, 82, 0.16);
  color: white;
}

.button-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(35, 91, 82, 0.22);
}

.button-coral {
  background: var(--coral);
  color: #291711;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.button-small {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 14px;
}

.button-wide {
  width: 100%;
}

.hero {
  padding: 34px 0 60px;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 610px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  color: white;
  isolation: isolate;
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 46, 40, 0.94) 0%, rgba(17, 46, 40, 0.72) 41%, rgba(17, 46, 40, 0.06) 72%);
  content: "";
}

.hero-card > img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  width: min(610px, 65%);
  padding: clamp(44px, 6vw, 78px);
  flex-direction: column;
  justify-content: center;
}

.hero-content .eyebrow {
  color: #ffc4b6;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 76px);
}

.hero-content p {
  max-width: 530px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: white;
  backdrop-filter: blur(8px);
}

.hero-trust {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ed2bd;
  box-shadow: 0 0 0 4px rgba(158, 210, 189, 0.12);
  content: "";
}

.quick-grid {
  display: grid;
  margin-top: -30px;
  padding: 0 30px;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: transform 0.24s, box-shadow 0.24s;
}

.quick-card:hover {
  box-shadow: 0 18px 40px rgba(28, 57, 50, 0.14);
  transform: translateY(-5px);
}

.quick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 20px;
  place-items: center;
}

.quick-card:nth-child(2) .quick-icon {
  background: var(--peach);
  color: var(--coral-dark);
}

.quick-card:nth-child(3) .quick-icon {
  background: var(--blue);
}

.quick-card:nth-child(4) .quick-icon {
  background: #eee4f2;
  color: #755d7c;
}

.quick-card strong {
  font-family: var(--display);
  font-size: 16px;
}

.quick-card span:last-child {
  color: var(--ink-soft);
  font-size: 13px;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 24px;
}

.section-heading h2 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s;
}

.text-link:hover::after {
  transform: translateX(4px);
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.25s, box-shadow 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.article-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--green-pale);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.article-card:hover .article-card-image img {
  transform: scale(1.035);
}

.category-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card .category-chip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
}

.article-card-body {
  padding: 22px;
}

.article-card-body h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.article-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.journey-item {
  position: relative;
  padding: 30px 28px;
  border-top: 1px solid var(--line);
}

.journey-item:not(:last-child)::after {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.journey-number {
  display: block;
  margin-bottom: 22px;
  color: var(--coral-dark);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.journey-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.journey-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.feature-split {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-photo {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-panel {
  display: flex;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: white;
  flex-direction: column;
  justify-content: center;
}

.feature-panel .eyebrow {
  color: #ffc4b6;
}

.feature-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 50px);
}

.feature-panel > p {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
}

.feature-list {
  display: grid;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  gap: 13px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.feature-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffd3c8;
  content: "✓";
  flex: 0 0 auto;
  font-size: 12px;
  place-items: center;
}

.feature-panel .button {
  align-self: flex-start;
}

.newsletter {
  display: grid;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--peach);
  grid-template-columns: 1fr auto;
  gap: 30px;
}

.newsletter h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.newsletter p {
  max-width: 590px;
  margin: 0;
  color: #6c4f48;
}

.newsletter-form {
  display: flex;
  min-width: min(100%, 420px);
  align-items: center;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(86, 54, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.page-hero {
  padding: 64px 0 52px;
}

.page-hero-centered {
  text-align: center;
}

.page-hero-centered .display-title,
.page-hero-centered .lead {
  margin-right: auto;
  margin-left: auto;
}

.page-hero-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: white;
}

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

.page-hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 54, 47, 0.93), rgba(20, 54, 47, 0.46) 56%, rgba(20, 54, 47, 0.05));
  content: "";
}

.page-hero-image .page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 390px;
  width: min(640px, 65%);
  padding: clamp(36px, 6vw, 70px);
  flex-direction: column;
  justify-content: center;
}

.page-hero-image .eyebrow {
  color: #ffc4b6;
}

.page-hero-image h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero-image p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar button:hover,
.filter-bar button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.directory-controls {
  display: grid;
  margin-bottom: 30px;
  grid-template-columns: 1fr 260px;
  gap: 14px;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-control svg {
  position: absolute;
  left: 17px;
  width: 19px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  pointer-events: none;
}

.field-control input,
.field-control select {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.field-control.has-icon input {
  padding-left: 48px;
}

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

.hospital-card {
  position: relative;
  display: grid;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  grid-template-columns: 1fr auto;
  gap: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hospital-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.hospital-city {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hospital-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hospital-card address {
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
}

.hospital-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hospital-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.hospital-index {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--peach);
  color: var(--coral-dark);
  font-family: var(--display);
  font-weight: 800;
  place-items: center;
}

.source-note,
.info-note {
  padding: 20px 22px;
  border: 1px solid rgba(35, 91, 82, 0.12);
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  color: #31574f;
  font-size: 14px;
}

.source-note {
  margin-top: 28px;
}

.source-note a,
.info-note a,
.article-content a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(35, 91, 82, 0.28);
  text-underline-offset: 3px;
}

.calculator-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
}

.calculator-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.calculator-card {
  padding: clamp(26px, 4vw, 42px);
}

.calculator-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.calculator-card > p {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

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

.form-grid label,
.form-stack label {
  display: grid;
  color: #294c45;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.form-grid input,
.form-grid select,
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.form-stack textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.check-field {
  display: flex !important;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  margin-top: 26px;
  align-items: center;
  gap: 12px;
}

.result-card {
  position: sticky;
  top: 108px;
  overflow: hidden;
}

.result-header {
  padding: 28px;
  background: var(--green);
  color: white;
}

.result-header span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.result-header strong {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -0.05em;
}

.result-body {
  padding: 12px 28px 28px;
}

.result-line {
  display: flex;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 18px;
}

.result-line span {
  color: var(--ink-soft);
  font-size: 14px;
}

.result-line strong {
  text-align: right;
}

.result-disclaimer {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.segmented {
  display: grid;
  padding: 4px;
  border-radius: 14px;
  background: var(--green-pale);
  grid-template-columns: 1fr 1fr;
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.segmented button.active {
  background: white;
  box-shadow: 0 4px 10px rgba(35, 91, 82, 0.09);
  color: var(--green);
}

.name-tool {
  display: grid;
  align-items: stretch;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.name-photo {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.name-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-photo::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(16, 43, 37, 0.74));
  content: "";
}

.name-photo-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  left: 28px;
  color: white;
}

.name-photo-caption h2 {
  margin: 0;
  font-size: 32px;
}

.name-panel {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.name-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
}

.name-panel > p {
  color: var(--ink-soft);
}

.name-filters {
  display: grid;
  margin: 26px 0;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.name-filters label {
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.name-filters select {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.name-result {
  display: grid;
  min-height: 290px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--green-pale);
  text-align: center;
  place-items: center;
}

.name-result-inner {
  width: 100%;
}

.name-result small {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.name-result h2 {
  margin: 13px 0 7px;
  font-size: clamp(40px, 6vw, 68px);
}

.name-result p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--ink-soft);
}

.name-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.favorites {
  margin-top: 22px;
}

.favorites h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.favorite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-chip {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 700;
}

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

.help-card {
  display: flex;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  flex-direction: column;
}

.help-card.urgent {
  border-color: rgba(201, 95, 73, 0.2);
  background: var(--peach);
}

.help-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 15px;
  background: var(--green-pale);
  font-size: 21px;
  place-items: center;
}

.help-card.urgent .help-card-icon {
  background: rgba(255, 255, 255, 0.6);
}

.help-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.help-card p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.help-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.help-card.urgent a {
  color: #9d3d2c;
}

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

.directory-link {
  display: flex;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.directory-link:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.directory-link strong {
  display: block;
  margin-bottom: 4px;
}

.directory-link span {
  color: var(--ink-soft);
  font-size: 13px;
}

.directory-link::after {
  content: "↗";
  font-weight: 800;
}

.article-hero {
  padding: 52px 0 30px;
}

.article-hero-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
}

.article-hero h1 {
  margin: 17px 0 18px;
  font-size: clamp(38px, 5vw, 62px);
}

.article-hero .lead {
  font-size: 18px;
}

.article-meta {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-hero-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  padding: 48px 0 90px;
  grid-template-columns: minmax(0, 720px) 280px;
  justify-content: space-between;
  gap: 60px;
}

.article-content {
  color: #284841;
  font-size: 17px;
}

.article-content h2 {
  margin: 42px 0 16px;
  color: var(--ink);
  font-size: 30px;
}

.article-content h3 {
  margin: 30px 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  display: grid;
  margin: 0 0 26px;
  padding-left: 24px;
  gap: 9px;
}

.article-content blockquote {
  margin: 34px 0;
  padding: 22px 24px;
  border: 0;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--peach);
  color: #64483f;
}

.article-content .info-note {
  margin: 30px 0;
}

.article-aside {
  align-self: start;
}

.aside-sticky {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.aside-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.aside-card p {
  color: var(--ink-soft);
  font-size: 13px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-buttons button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 800;
  place-items: center;
}

.content-page {
  padding: 64px 0 90px;
}

.content-narrow {
  max-width: 780px;
  margin-inline: auto;
}

.content-narrow h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 58px);
}

.content-narrow h2 {
  margin: 40px 0 14px;
  font-size: 27px;
}

.content-narrow p,
.content-narrow li {
  color: #3f5e57;
}

.source-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.source-list a {
  display: flex;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
}

.source-list a::after {
  content: "↗";
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed rgba(23, 52, 47, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--ink-soft);
}

.site-footer {
  padding: 66px 0 20px;
  background: #163f38;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 0.8fr 1fr;
  gap: 50px;
}

.footer-brand {
  margin-bottom: 18px;
  color: white;
}

.footer-brand .brand-mark svg {
  fill: #f5c2b6;
}

.footer-grid > div:first-child p {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.63);
}

.footer-grid h3 {
  margin: 6px 0 18px;
  color: #f5c2b6;
  font-size: 14px;
  letter-spacing: 0;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-grid a:hover {
  color: white !important;
}

.footer-note {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.footer-note h3 {
  margin-top: 0;
}

.footer-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
}

dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(13, 36, 31, 0.58);
  backdrop-filter: blur(6px);
}

.search-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.search-shell {
  padding: clamp(24px, 5vw, 42px);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.search-head h2 {
  margin: 0;
  font-size: 28px;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input svg {
  position: absolute;
  left: 17px;
  width: 21px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
}

.search-input input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 49px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  font-size: 16px;
}

.search-results {
  display: grid;
  max-height: 420px;
  overflow: auto;
  margin-top: 18px;
  gap: 8px;
}

.search-result {
  display: grid;
  padding: 14px;
  border-radius: 13px;
  background: var(--cream);
  grid-template-columns: 68px 1fr;
  gap: 14px;
}

.search-result img {
  width: 68px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.search-result span {
  color: var(--ink-soft);
  font-size: 12px;
}

.search-hint {
  padding: 24px 8px;
  color: var(--ink-soft);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 18px;
  border-radius: 13px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: max-height 0.25s, padding 0.25s, opacity 0.2s;
  }

  .mobile-nav.open {
    max-height: 400px;
    padding: 8px 20px 22px;
    opacity: 1;
  }

  .mobile-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }

  .hero-card {
    min-height: 560px;
  }

  .hero-content {
    width: 72%;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-item:nth-child(2)::after {
    display: none;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    width: min(100%, 560px);
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100% - 28px, 680px);
    --radius-lg: 26px;
  }

  .emergency-inner {
    justify-content: center;
    min-height: 34px;
  }

  .emergency-inner > span,
  .emergency-inner a:last-child {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .language-switcher button {
    width: 31px;
    height: 28px;
  }

  .search-toggle {
    display: none;
  }

  .hero {
    padding: 16px 0 50px;
  }

  .hero-card {
    min-height: 650px;
  }

  .hero-card > img {
    object-position: 64% center;
  }

  .hero-card::after {
    background: linear-gradient(0deg, rgba(15, 43, 37, 0.98) 0%, rgba(15, 43, 37, 0.82) 45%, rgba(15, 43, 37, 0.1) 85%);
  }

  .hero-content {
    align-self: end;
    width: 100%;
    padding: 34px 26px 46px;
  }

  .hero-content h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-trust {
    margin-top: 24px;
    gap: 10px 18px;
  }

  .quick-grid {
    margin-top: -18px;
    padding: 0 12px;
  }

  .quick-card {
    min-height: 122px;
    padding: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .article-grid,
  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-photo {
    min-height: 400px;
  }

  .newsletter-form {
    min-width: 0;
  }

  .page-hero {
    padding: 44px 0 36px;
  }

  .page-hero-image {
    min-height: 500px;
  }

  .page-hero-image::after {
    background: linear-gradient(0deg, rgba(18, 49, 43, 0.98), rgba(18, 49, 43, 0.32) 85%);
  }

  .page-hero-image .page-hero-content {
    justify-content: flex-end;
    min-height: 500px;
    width: 100%;
    padding: 36px 28px;
  }

  .directory-controls {
    grid-template-columns: 1fr;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }

  .name-tool {
    grid-template-columns: 1fr;
  }

  .name-photo {
    min-height: 400px;
  }

  .article-hero-inner {
    grid-template-columns: 1fr;
  }

  .article-hero-image {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .article-aside {
    order: -1;
  }

  .aside-sticky {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > div:first-child,
  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .language-switcher button {
    width: 28px;
  }

  .header-actions {
    gap: 6px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 105px;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey-item::after {
    display: none;
  }

  .article-grid,
  .help-grid,
  .directory-links {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter-form .button {
    width: 100%;
  }

  .form-grid,
  .name-filters {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .name-panel {
    padding: 26px 20px;
  }

  .name-result {
    padding: 24px 16px;
  }

  .aside-sticky {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child,
  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@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;
  }
}
