/* Paeds Plus website preview. One stylesheet, two brand token sets.
   Only the brand tokens and the logo change between "current" and "alt";
   layout, type, spacing and content are identical. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

/* ---------- Brand tokens: current Paeds Plus logo colours ---------- */
:root {
  --primary: #2e538a;          /* logo navy */
  --primary-strong: #24467a;
  --secondary: #2e824e;        /* logo green */
  --secondary-text: #256b40;   /* same green, darkened for small text */
  --accent: #ad3b3d;           /* logo red: rules and markers only */
  --accent-text: #9b3234;
  --ink: #1b2a44;
  --ink-soft: #4a5b75;
  --surface: #ffffff;
  --surface-1: #eef3fa;        /* navy tint */
  --surface-2: #edf6f0;        /* green tint */
  --surface-3: #fbf0f0;        /* red tint */
  --line: #d6e0ec;
  --line-strong: #9fb1c8;
  --on-primary: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.96);
  --node-medical: var(--primary);
  --node-allied: var(--secondary);
  --ring: var(--accent);
  --focus: #2e538a;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Brand tokens: refreshed current brand (same hues, softened, fewer shades) ---------- */
:root[data-brand="refresh"] {
  --primary: #2b4f80;          /* refined navy */
  --primary-strong: #223f68;
  --secondary: #3f8f62;        /* softer green */
  --secondary-text: #2f7350;
  --accent: #df7a6e;           /* soft coral, replaces brick and scarlet red */
  --accent-text: #b04d44;
  --ink: #1f2d44;
  --ink-soft: #4f5d72;
  --surface: #fbf9f6;          /* warm white */
  --surface-1: #eef2f7;
  --surface-2: #edf5ef;
  --surface-3: #fcefec;
  --line: #e4e1dc;
  --line-strong: #b5b0a8;
  --header-bg: rgba(251, 249, 246, 0.96);
  --focus: #2b4f80;
}

/* ---------- Brand tokens: illustrative alternative ---------- */
:root[data-brand="alt"] {
  --primary: #22395a;          /* harbour navy */
  --primary-strong: #1a2d48;
  --secondary: #4f6e58;        /* sage */
  --secondary-text: #45624e;
  --accent: #d1a24c;           /* honey: decoration only */
  --accent-text: #8a5a1f;
  --ink: #2a2f36;
  --ink-soft: #57524b;
  --surface: #fbf8f3;
  --surface-1: #f3ece1;        /* sand */
  --surface-2: #e8eee7;        /* sage tint */
  --surface-3: #f6ead6;        /* honey tint */
  --line: #e2d8c9;
  --line-strong: #b9ab97;
  --header-bg: rgba(251, 248, 243, 0.96);
  --node-medical: var(--primary);
  --node-allied: var(--secondary);
  --ring: var(--accent);
  --focus: #22395a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "ss01" 0;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-strong); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 700; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--primary); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.12; font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.3125rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: 0.9375rem; }
.muted { color: var(--ink-soft); }
.measure { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--on-primary); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 2; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.bg-plain { background: var(--surface); }
.bg-blue { background: var(--surface-1); }
.bg-green { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { margin-bottom: 0; }
.kicker { display: block; color: var(--secondary-text); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--surface-1); color: var(--primary-strong); }
.btn-green { background: var(--secondary-text); color: #fff; }
.btn-green:hover { background: var(--secondary-text); color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-current { height: 52px; width: auto; }
.logo-alt { display: none; align-items: center; gap: 10px; color: var(--primary); }
.logo-alt svg { width: 40px; height: 40px; }
.logo-alt .wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 620; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1; color: var(--primary); font-variation-settings: "opsz" 72; }
:root[data-brand="alt"] .logo-current, :root[data-brand="refresh"] .logo-current { display: none; }
:root[data-brand="alt"] .logo-alt { display: inline-flex; }
.logo-refresh { display: none; align-items: center; gap: 10px; }
.logo-refresh img { height: 46px; width: auto; }
.logo-refresh .wordmark { font-family: var(--font); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1; color: #2b4f80; white-space: nowrap; }
.logo-refresh .wordmark span { color: #c25a50; }
:root[data-brand="refresh"] .logo-refresh { display: inline-flex; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.main-nav a:hover { color: var(--primary); background: var(--surface-1); }
.main-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--secondary); border-radius: 10px 10px 0 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-gp { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.header-gp:hover { color: var(--primary); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: transparent; color: var(--primary); cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .header-gp { display: none; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .logo-current { height: 44px; }
  .mobile-menu[data-open="true"] { display: block; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 0 24px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .mobile-menu ul { list-style: none; margin: 0 0 16px; padding: 0; }
  .mobile-menu li a { display: block; padding: 14px 4px; font-size: 1.1875rem; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu li a[aria-current="page"] { color: var(--primary); }
  .mobile-menu .mobile-contact { display: grid; gap: 10px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .logo-refresh img { height: 30px; }
  .logo-refresh .wordmark { font-size: 1.15rem; }
  .header-actions .btn { white-space: nowrap; }
  .logo-current { height: 40px; }
  .header-actions .btn { padding: 0 16px; min-height: 44px; font-size: 0.9375rem; }
  .logo-alt .wordmark { font-size: 1.35rem; }
  .logo-alt svg { width: 34px; height: 34px; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.hero-note {
  margin-top: 14px; background: var(--surface-1); border-radius: var(--radius-md); padding: 14px 18px;
  font-size: 0.9375rem; line-height: 1.45;
}
.hero-note strong { display: block; color: var(--primary); font-size: 1rem; }
.faces { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.faces-stack { display: flex; flex: none; }
.faces-stack img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); margin-left: -10px; }
.faces-stack img:first-child { margin-left: 0; }
.faces p { margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-soft); }
.faces a { font-weight: 700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-photo { order: -1; }
}

/* ---------- Route cards ---------- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 24px 22px; text-decoration: none; color: var(--ink); min-height: 220px;
  transition: border-color .15s ease;
}
.route-card:hover { border-color: var(--primary); color: var(--ink); }
.route-card .route-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-1); color: var(--primary); }
.route-card .route-icon .icon { width: 26px; height: 26px; }
.route-card.is-allied .route-icon { background: var(--surface-2); color: var(--secondary-text); }
.route-card h3 { margin: 6px 0 0; }
.route-card p { margin: 0; color: var(--ink-soft); }
.route-card .route-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }
.route-card .route-go .icon { width: 18px; height: 18px; }
@media (max-width: 860px) { .routes { grid-template-columns: 1fr; } .route-card { min-height: 0; } }

/* ---------- One team around your child ---------- */
.team-around { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ring-wrap { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1; }
.ring-wrap svg.ring-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; text-align: center; padding: 10px;
}
.ring-centre strong { display: block; font-size: clamp(1.05rem, 0.8rem + 1vw, 1.45rem); line-height: 1.15; }
.ring-centre span { display: block; font-size: 0.875rem; opacity: 0.9; margin-top: 4px; }
.ring-node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--surface); border: 2px solid var(--node, var(--primary)); color: var(--ink);
  border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  box-shadow: 0 4px 14px rgba(27, 42, 68, 0.08);
}
.ring-node::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--node, var(--primary)); flex: none; }
.ring-node:hover { background: var(--surface-1); color: var(--ink); }
.ring-node.is-medical { --node: var(--node-medical); }
.ring-node.is-allied { --node: var(--node-allied); }
.ring-key { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 0.9375rem; color: var(--ink-soft); }
.ring-key span { display: inline-flex; align-items: center; gap: 8px; }
.ring-key i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.team-list-mobile { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .ring-wrap.is-waiting .ring-node { opacity: 0; }
  .js .ring-wrap.is-in .ring-node { opacity: 1; transition: opacity .5s ease; transition-delay: calc(var(--i) * 90ms); }
}
@media (max-width: 980px) { .team-around { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .ring-wrap { display: none; }
  .team-list-mobile { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .team-list-mobile .ring-node { position: static; transform: none; white-space: normal; justify-content: flex-start; }
  .team-list-mobile .centre-chip { grid-column: 1 / -1; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-md); padding: 14px 18px; font-weight: 700; }
}

/* ---------- Wait times ---------- */
.waits { background: var(--surface); border-radius: var(--radius-md); border: 1.5px solid var(--line); overflow: hidden; }
.waits table { width: 100%; border-collapse: collapse; }
.waits caption { text-align: left; padding: 18px 22px 0; font-size: 0.9375rem; color: var(--ink-soft); caption-side: bottom; padding-bottom: 18px; }
.waits th, .waits td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.waits thead th { font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); background: var(--surface-1); }
.waits tbody th { font-weight: 650; }
.waits td.wait { font-weight: 700; color: var(--primary); }
.waits td.wait.closed { color: var(--accent-text); }
.waits .group-row th { background: var(--surface); color: var(--secondary-text); font-size: 0.9375rem; padding-top: 18px; }
.waits-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .waits-grid { grid-template-columns: 1fr; } .waits th, .waits td { padding: 12px 16px; } }

/* ---------- Team ---------- */
.people-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.person-mini { text-decoration: none; color: var(--ink); }
.person-mini img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 10px; background: var(--surface-1); }
.person-mini strong { display: block; font-size: 1rem; line-height: 1.3; }
.person-mini span { display: block; font-size: 0.875rem; color: var(--secondary-text); font-weight: 600; line-height: 1.35; }
.person-mini:hover strong { color: var(--primary); }
@media (max-width: 980px) { .people-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .people-strip { grid-template-columns: repeat(2, 1fr); } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.person-card { display: flex; flex-direction: column; scroll-margin-top: 110px; }
.person-card .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-1); margin-bottom: 14px; }
.initials { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); background: var(--surface-1); color: var(--primary); display: grid; place-items: center; font-size: 3rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.person-card h3 { margin: 0 0 2px; font-size: 1.1875rem; color: var(--ink); }
.person-card .role { color: var(--secondary-text); font-weight: 650; margin: 0 0 4px; font-size: 1rem; }
.person-card .quals { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 10px; }
.person-card .status { display: inline-block; font-size: 0.875rem; font-weight: 700; color: var(--accent-text); background: var(--surface-3); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.person-card details { margin-top: auto; border-top: 1px solid var(--line); }
.person-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 700; color: var(--primary); font-size: 0.9375rem; }
.person-card summary::-webkit-details-marker { display: none; }
.person-card summary .icon { width: 20px; height: 20px; transition: transform .15s ease; }
.person-card details[open] summary .icon { transform: rotate(180deg); }
.person-card details p { font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.chips li { background: var(--surface-2); color: var(--secondary-text); font-weight: 650; font-size: 0.9375rem; border-radius: 999px; padding: 6px 14px; line-height: 1.35; }
.chips.small li { font-size: 0.8125rem; padding: 4px 10px; }
.chips.blue li { background: var(--surface-1); color: var(--primary); }

/* ---------- Ticks ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  background: var(--surface-2) center / 16px 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256b40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
:root[data-brand="refresh"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7350' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
:root[data-brand="alt"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345624e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Founder story ---------- */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.story blockquote { margin: 0 0 20px; padding: 0 0 0 22px; border-left: 4px solid var(--accent); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.45; color: var(--primary); font-weight: 600; }
.story cite { display: block; font-style: normal; font-size: 0.9375rem; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story img { aspect-ratio: 4 / 3; } }

/* ---------- Claremont banner ---------- */
.claremont-band { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: center; }
.claremont-band h2 { color: var(--on-primary); }
.claremont-band p { color: rgba(255, 255, 255, 0.9); }
.claremont-band .btn-primary { background: var(--surface); color: var(--primary); }
.claremont-band .btn-primary:hover { background: var(--surface-1); color: var(--primary-strong); }
.claremont-band .when { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-align: right; }
.claremont-band .when span { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: 0.85; margin-top: 8px; }
@media (max-width: 760px) { .claremont-band { grid-template-columns: 1fr; } .claremont-band .when { text-align: left; order: -1; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--surface-1); padding-block: clamp(36px, 6vw, 72px); }
.page-hero h1 { margin-bottom: 14px; max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 26px; }
.breadcrumb { font-size: 0.9375rem; margin-bottom: 14px; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); }
.page-hero-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .page-hero-split { grid-template-columns: 1fr; } }

/* ---------- Generic layouts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .two-col, .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 30px); }
.panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel.tinted { background: var(--surface-1); border-color: transparent; }
.panel.green { background: var(--surface-2); border-color: transparent; }
.notice { display: grid; grid-template-columns: 26px 1fr; gap: 12px; background: var(--surface-3); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.9375rem; line-height: 1.55; }
.notice .icon { color: var(--accent-text); width: 24px; height: 24px; margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.notice.info { background: var(--surface-1); }
.notice.info .icon { color: var(--primary); }

/* Steps (true sequences only) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps > li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; counter-increment: step; }
.steps > li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 1.0625rem;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { margin: 8px 0 4px; font-size: 1.125rem; color: var(--ink); }
.steps p { margin: 0; color: var(--ink-soft); }

/* Service hub cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.service-card:hover { border-color: var(--primary); color: var(--ink); }
.service-card h3 { margin: 0; }
.service-card.is-allied h3 { color: var(--secondary-text); }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.service-card .tag { font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.service-card .route-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }
.service-card .route-go .icon { width: 18px; height: 18px; }
@media (max-width: 980px) { .service-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-cards { grid-template-columns: 1fr; } }
.group-title { color: var(--secondary-text); font-size: 1.375rem; margin: 0 0 18px; }
.group-title.medical { color: var(--primary); }

/* Who it's for */
.who { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }

/* Start box */
.start-box { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); border: 1.5px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.start-box h2 { margin-bottom: 10px; }
.start-box .wait-chip { display: inline-block; background: var(--surface-1); color: var(--primary); font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 0.9375rem; margin-bottom: 12px; }
@media (max-width: 760px) { .start-box { grid-template-columns: 1fr; } }

/* ---------- FAQ accordions ---------- */
.faq-group { margin-bottom: 44px; scroll-margin-top: 110px; }
.faq-group h2 { font-size: 1.625rem; margin-bottom: 8px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 650; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .chev { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-1); display: grid; place-items: center; flex: none; color: var(--primary); transition: transform .15s ease; }
.faq summary .chev .icon { width: 20px; height: 20px; }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 2px 20px; max-width: 70ch; }
.faq .faq-body p:last-child, .faq .faq-body ul:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: 100px; }
.faq-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.faq-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.faq-nav a:hover { background: var(--surface-1); color: var(--primary); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; } .faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; } .faq-nav a { background: var(--surface-1); border-radius: 999px; padding: 6px 14px; font-size: 0.9375rem; } }

/* Crisis support */
.crisis { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 32px); }
.crisis h2 { font-size: 1.5rem; }
.crisis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.crisis-item { background: var(--surface-1); border-radius: var(--radius-sm); padding: 16px 18px; }
.crisis-item h3 { font-size: 1.0625rem; margin: 0 0 4px; color: var(--ink); }
.crisis-item a.tel { font-size: 1.25rem; font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 4px; }
.crisis-item p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.crisis-000 { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.125rem; }
.crisis-000 a { font-size: 1.75rem; font-weight: 800; text-decoration: none; color: var(--accent-text); }
@media (max-width: 700px) { .crisis-grid { grid-template-columns: 1fr; } }

/* ---------- Decision tree ---------- */
.finder { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.finder-progress { font-size: 0.9375rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 10px; }
.finder fieldset { border: 0; padding: 0; margin: 0; }
.finder legend { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 750; color: var(--primary); line-height: 1.2; margin-bottom: 18px; padding: 0; letter-spacing: -0.015em; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius-md);
  padding: 18px 20px; cursor: pointer; font: inherit; color: var(--ink); min-height: 92px;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice strong { font-size: 1.0625rem; color: var(--ink); }
.choice span { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }
.choice:hover { border-color: var(--primary); }
.choice[aria-pressed="true"] { border-color: var(--primary); background: var(--surface-1); }
.finder-step + .finder-step { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.js .finder-step[hidden], .js .finder-result[hidden] { display: none; }
.finder-result { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.finder-result h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
html:not(.js) .finder [hidden] { display: block !important; }
.refer-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 980px) { .refer-layout { grid-template-columns: 1fr; } }
.finder-reset { margin-top: 18px; background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.no-js-note { display: none; }
html:not(.js) .no-js-note { display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 1rem; }
.field .hint { display: block; font-size: 0.875rem; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.field .error { display: none; color: var(--accent-text); font-size: 0.875rem; font-weight: 650; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: var(--accent-text); }
.field.has-error .error { display: block; }
.collection-notice { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 0; }
.form-success { display: none; background: var(--surface-2); border-radius: var(--radius-md); padding: 22px 24px; }
.form-success h3 { color: var(--secondary-text); margin-bottom: 6px; }
.form-success p:last-child { margin-bottom: 0; }
form.is-sent .form-body { display: none; }
form.is-sent .form-success { display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* ---------- Map ---------- */
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-md); background: var(--surface-1); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-1); color: var(--primary); display: grid; place-items: center; }
.contact-list .ci .icon { width: 22px; height: 22px; }
.contact-list h3 { font-size: 1.0625rem; margin: 0 0 2px; color: var(--ink); }
.contact-list p { margin: 0; }
.contact-list a.big { font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 4px 18px 4px 0; font-weight: 400; white-space: nowrap; }
.hours th { font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(44px, 6vw, 64px); font-size: 0.9375rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid h2 { font-size: 1rem; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.footer-grid p { margin: 0 0 8px; }
.footer-brand .logo-current { height: 46px; margin-bottom: 14px; }
.footer-brand .logo-alt, .footer-brand .logo-refresh { margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px 90px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.875rem; }
.footer-bottom strong { color: var(--accent-text); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Brand preview switch ---------- */
.brand-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: #ffffff; border: 1px solid #c9d3e0; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(20, 30, 50, 0.18); font-family: var(--font); font-size: 0.875rem; color: #2a3446;
}
.brand-switch .label { font-weight: 700; margin-right: 2px; }
.brand-switch .notes-link { margin-left: 4px; padding: 8px 12px; border-radius: 999px; font-weight: 700; color: #2a3446; text-decoration: none; border-left: 1px solid #e3e3e3; border-radius: 0 999px 999px 0; }
.brand-switch .notes-link:hover { background: #f1f1f1; }
.brand-switch button {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  background: transparent; color: #2a3446; min-height: 36px;
}
.brand-switch button[aria-pressed="true"] { background: #2a3446; color: #fff; }
@media (max-width: 520px) { .brand-switch { left: 8px; bottom: 8px; padding: 4px; gap: 2px; } .brand-switch .label { display: none; } .brand-switch button { padding: 7px 11px; font-size: 0.8125rem; } }
@media print { .brand-switch { display: none; } }


/* =================================================================
   Motion layer. Every effect maps to a native Wix setting (see the
   Wix build notes page). Rules: slow, once, and never essential.
   Anything that keeps moving has a pause button and stops for
   people who ask their device to reduce motion.
   ================================================================= */

/* 1. Scroll reveal: soft fade-up, once (Wix: entrance animation "Fade In" or "Float In") */
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--rv-i, 0) * 90ms); }

/* 2. Hero: underline that draws itself, and three brand circles that pop in */
.scribble { position: relative; white-space: nowrap; }
.scribble-line { position: absolute; left: -2%; width: 104%; bottom: -0.16em; height: 0.34em; overflow: visible; pointer-events: none; }
.scribble-line { clip-path: inset(0 100% 0 0); animation: pp-draw 1s .55s cubic-bezier(.6,.1,.3,1) forwards; }
.scribble-line path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes pp-draw { to { clip-path: inset(0 0 0 0); } }
.hero { overflow-x: clip; }
.hero-photo img { position: relative; z-index: 1; }
.hero-dot { position: absolute; border-radius: 50%; z-index: 0; transform: scale(0); animation: pp-pop .7s cubic-bezier(.3,1.5,.5,1) forwards; }
.hero-dot.d1 { width: 34%; aspect-ratio: 1; left: -7%; top: -8%; background: var(--accent); opacity: .9; animation-delay: .25s; }
.hero-dot.d2 { width: 18%; aspect-ratio: 1; right: -5%; top: 46%; background: var(--secondary); opacity: .9; animation-delay: .45s; }
.hero-dot.d3 { width: 9%; aspect-ratio: 1; right: 10%; top: -5%; background: var(--primary); animation-delay: .6s; }
@keyframes pp-pop { to { transform: scale(1); } }
.hero-photo .hero-note { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero-dot.d1 { width: 28%; left: -4%; top: -5%; } .hero-dot.d2 { right: -3%; } }

/* 3. Tickers (Wix: Pro Gallery slider set to continuous auto-slide, or a marquee) */
.ticker { position: relative; display: flex; align-items: center; gap: 14px; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: pp-ticker var(--dur, 60s) linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes pp-ticker { to { transform: translateX(-50%); } }
.ticker-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ticker-toggle:hover { border-color: var(--primary); color: var(--primary); }
.ticker-toggle .icon { width: 18px; height: 18px; }
.ticker-toggle .t-play, .ticker.is-paused .ticker-toggle .t-pause { display: none; }
.ticker.is-paused .ticker-toggle .t-play { display: inline; }
html:not(.js) .ticker-toggle { display: none; }

.ticker-band { background: var(--surface); padding-block: 14px 26px; border-top: 1px solid var(--line); }
.ticker-label { margin: 0; flex: none; font-weight: 800; color: var(--primary); font-size: 0.9375rem; }
.ticker-words li { display: inline-flex; align-items: center; white-space: nowrap; padding-right: 30px; font-weight: 600; color: var(--ink-soft); font-size: 1rem; }
.ticker-words li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-right: 30px; background: var(--secondary); opacity: .75; }
.ticker-words li:nth-child(3n+2)::before { background: var(--accent); }
.ticker-words li:nth-child(3n)::before { background: var(--primary); opacity: .55; }
@media (max-width: 600px) { .ticker-label { display: none; } }

.inside .section-head { margin-bottom: 28px; }
.people-section .section-head { margin-bottom: 28px; }
.ticker-people { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.ticker-people .ticker-track { animation-direction: reverse; }
.ticker-people li { padding-right: 18px; }
.ticker-people figure { margin: 0; width: clamp(150px, 15vw, 200px); }
.ticker-people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-1); }
.ticker-people figcaption { margin-top: 10px; line-height: 1.3; }
.ticker-people figcaption strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.ticker-people figcaption span { display: block; font-size: 0.8125rem; color: var(--secondary-text); font-weight: 600; }
.ticker-people .ticker-toggle { position: absolute; right: calc(var(--gutter) + 10px); top: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(20,30,50,.12); }
.ticker-photos { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.ticker-photos li { padding-right: 18px; }
.ticker-photos img { height: clamp(190px, 22vw, 290px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.ticker-photos li:nth-child(even) img { aspect-ratio: 1 / 1; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.ticker-photos .ticker-toggle { position: absolute; right: calc(var(--gutter) + 10px); bottom: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(20,30,50,.12); }

/* 4. Gentle hover feedback (Wix: hover effects on containers and buttons) */
.route-card, .service-card { transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.route-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,45,68,.09); }
.route-card .route-icon { transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.route-card:hover .route-icon { transform: rotate(-6deg) scale(1.06); }
.route-go .icon, .link-arrow .icon { transition: transform .2s ease; }
.route-card:hover .route-go .icon, .service-card:hover .route-go .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.person-mini img { transition: transform .3s ease, box-shadow .3s ease; }
.person-mini:hover img { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(31,45,68,.12); }
.btn { transition: background-color .15s ease, transform .12s ease; }
.btn:active { transform: scale(.98); }

/* 5. Soft curved edges on coloured sections (Wix: section divider, "curve") */
.section.bg-blue, .section.bg-green { position: relative; }
.section.bg-blue::before, .section.bg-green::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 23px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 360 0 1080 0 1440 24 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 360 0 1080 0 1440 24 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* 6. Steps: the joining line grows as each step appears */
.js .steps.rv-steps > li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
.js .steps.rv-steps > li.is-in:not(:last-child)::after { transform: scaleY(1); transition: transform .6s ease .25s; }

@media print { .js .rv { opacity: 1 !important; transform: none !important; } .ticker-toggle { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .scribble-line { clip-path: none; }
  .hero-dot { transform: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .ticker-track li[aria-hidden="true"] { display: none; }
  .ticker-track li { scroll-snap-align: start; }
  .ticker-toggle { display: none; }
  .js .steps.rv-steps > li:not(:last-child)::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Wix build notes (preview only) ---------- */
.notes { max-width: 1040px; }
.notes h2 { margin-top: 52px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.notes h2:first-child { margin-top: 0; }
.notes-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.notes-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.notes-table th, .notes-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notes-table thead th { background: var(--surface-1); font-size: 0.8125rem; color: var(--ink-soft); }
.notes-table tr:last-child td { border-bottom: 0; }
.notes-table td:first-child { font-weight: 700; color: var(--ink); min-width: 150px; }
@media (max-width: 700px) { .notes-table table { min-width: 640px; } }

/* ---------- Services hub groups ---------- */
.svc-group-title { color: var(--primary); }
.svc-group-title.is-allied { color: var(--secondary-text); }
.svc-group .section-head { margin-bottom: 24px; }
.hero-jump { display: contents; }

/* ---------- About: vision and beliefs ---------- */
.vision-band { background: var(--primary); color: var(--on-primary); position: relative; }
.vision-band .eyebrow { margin: 0 0 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem; opacity: .85; }
.vision-band .vision { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.2; font-weight: 750; letter-spacing: -0.02em; max-width: 26ch; margin: 0 0 18px; text-wrap: balance; }
.vision-band .vision-sub { max-width: 60ch; opacity: .9; margin: 0; font-size: 1.0625rem; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.belief { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.belief h3 { margin: 12px 0 6px; }
.belief p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.belief-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-1); color: var(--primary); }
.belief:nth-child(3n+2) .belief-icon { background: var(--surface-2); color: var(--secondary-text); }
.belief:nth-child(3n) .belief-icon { background: var(--surface-3); color: var(--accent-text); }
@media (max-width: 980px) { .beliefs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .beliefs { grid-template-columns: 1fr; } }
.page-hero img.portrait-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; max-height: 460px; width: auto; margin-inline: auto; }

/* ---------- Claremont ---------- */
.cl-hero { position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.cl-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,45,0) 30%, rgba(15,25,45,.72) 100%); }
.cl-hero-text { position: relative; z-index: 1; padding-block: 40px 54px; }
.cl-hero h1, .cl-hero .lede { color: #fff; }
.cl-hero .lede { max-width: 56ch; }
.cl-hero .breadcrumb a, .cl-hero .breadcrumb li { color: rgba(255,255,255,.9); }
.cl-hero .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.8); }
.cl-hero .btn-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }
.cl-credit { position: absolute; right: 14px; bottom: 8px; z-index: 1; margin: 0; font-size: .75rem; color: rgba(255,255,255,.85); }
.cl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cl-facts div { border-top: 3px solid var(--accent); padding-top: 14px; }
.cl-facts strong { display: block; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; color: var(--primary); font-weight: 800; letter-spacing: -0.02em; }
.cl-facts span { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) { .cl-facts { grid-template-columns: repeat(2, 1fr); } }
.cl-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-gallery figure { margin: 0; }
.cl-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.cl-gallery .big img { aspect-ratio: 21 / 9; object-position: center 60%; }
.cl-gallery .big { grid-column: 1 / -1; }
@media (max-width: 640px) { .cl-gallery { grid-template-columns: 1fr; } .cl-gallery .big img { aspect-ratio: 16 / 9; } }

/* ---------- Referral form with letter auto-fill ---------- */
.rf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.rf-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
@media (max-width: 980px) { .rf-layout { grid-template-columns: 1fr; } .rf-aside { position: static; } }
.rf-body { display: grid; gap: 18px; }
.rf-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); }
.rf-card h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 8px; }
.rf-card h2:focus { outline: none; }
.rf-step { margin: 0 0 4px; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary-text); }
.rf-upload { border-color: var(--primary); box-shadow: 0 10px 30px rgba(31,45,68,.06); }
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-1); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); }
.dropzone.has-file { border-style: solid; border-color: var(--secondary); background: var(--surface-2); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.dz-icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.dz-icon .icon { width: 28px; height: 28px; }
.dz-main strong { display: block; color: var(--ink); }
.dz-main span { display: block; color: var(--ink-soft); font-size: .9375rem; }
.rf-file { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-1); font-size: .9375rem; }
.rf-file-name { font-weight: 700; overflow-wrap: anywhere; }
.rf-file-size { color: var(--ink-soft); }
.rf-file-remove { margin-left: auto; background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rf-status:empty { display: none; }
.rf-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-1); font-size: .9375rem; line-height: 1.5; }
.rf-status.is-ok { background: var(--surface-2); border-left: 4px solid var(--secondary); }
.rf-status.is-warn { background: var(--surface-3); border-left: 4px solid var(--accent); }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--primary); animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.rf-upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.rf-private { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .875rem; color: var(--ink-soft); max-width: 52ch; }
.rf-private .icon { color: var(--secondary-text); margin-top: 2px; }
.field.is-autofilled input, .field.is-autofilled textarea, fieldset.is-autofilled .dob-row input { background: #fffbea; border-color: #d9b44a; }
:root[data-brand="refresh"] .field.is-autofilled input, :root[data-brand="refresh"] fieldset.is-autofilled .dob-row input { background: #fff8ec; }
.field.is-edited input, fieldset.is-edited .dob-row input { background: var(--surface); border-color: var(--line-strong); }
.af-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #f7e7b5; color: #6b5310; font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.is-edited .af-tag { background: var(--surface-1); color: var(--ink-soft); }
.options legend { font-weight: 700; margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .opts { grid-template-columns: 1fr; } }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .9688rem; line-height: 1.4; }
.opt:hover { border-color: var(--primary); }
.opt input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--surface-1); }
.opt-note { margin: 8px 0 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.dob-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; max-width: 360px; }
.dob-row label { display: grid; gap: 4px; font-size: .875rem; color: var(--ink-soft); }
.dob legend { font-weight: 700; margin-bottom: 8px; }
.confirm { border-color: var(--primary); }
.rf-letter-err { display: none; }
.rf-letter-err.is-shown { display: block; }
.field.has-error .opt, fieldset.has-error .opt { border-color: var(--accent-text); }
.rf .form-success { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--surface-2); }
.rf.is-sent .rf-body { display: none; }
.rf.is-sent .form-success { display: block; }
.field .opt input { width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 0; }
.field .opt input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.field label.opt { display: flex; margin-bottom: 0; font-weight: 500; }
.field .dob-row label { display: grid; margin-bottom: 0; font-weight: 500; }
.field.dob.has-error input { border-color: var(--accent-text); }
.field input[type=file] { min-height: 0; padding: 10px; background: var(--surface-1); }
.field .af-tag { display: inline-block; }
.field label .af-tag, .field legend .af-tag { margin-top: 0; }

/* ---------- For GPs: ways to refer ---------- */
.ways { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.way { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.way h3 { margin: 4px 0 0; }
.way p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.way .link-arrow { margin-top: auto; padding-top: 6px; }
.way.is-best { border-color: var(--primary); box-shadow: 0 12px 30px rgba(31,45,68,.08); }
.way-tag { position: absolute; top: -13px; left: 20px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.way-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-1); color: var(--primary); }
.way-edi { margin-top: auto !important; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-1); font-size: .9375rem !important; }
.way-edi strong { color: var(--accent-text); }
@media (max-width: 980px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Printable GP guide ---------- */
.guide { padding-block: clamp(24px, 4vw, 48px); background: var(--surface-1); }
.guide-sheet { max-width: 900px; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 10px 30px rgba(31,45,68,.08); }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.guide h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); margin-bottom: 8px; }
.guide h2 { font-size: 1.2rem; margin: 22px 0 10px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.guide-list { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.guide-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-soft); }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .brand-switch, .no-print, .skip-link { display: none !important; }
  .guide { padding: 0; background: #fff; }
  .guide-sheet { box-shadow: none; padding: 0; max-width: none; }
  body { font-size: 11pt; }
  .guide h1 { font-size: 22pt; }
  .steps > li { padding-bottom: 10px; }
}

/* ---------- Careers ---------- */
.eyebrow { margin: 0 0 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem; color: var(--secondary-text); }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.biz h3 { margin: 12px 0 6px; font-size: 1.1875rem; }
.biz p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.biz-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-1); color: var(--primary); }
.biz:nth-child(even) .biz-icon { background: var(--surface-2); color: var(--secondary-text); }
@media (max-width: 980px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .biz-grid { grid-template-columns: 1fr; } }
.dev-demand { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.dev-demand .panel { border-left: 4px solid var(--accent); }
@media (max-width: 860px) { .dev-demand { grid-template-columns: 1fr; } }
.pay-panel { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); align-self: start; }
.pay-panel h2 { color: var(--on-primary); }
.pay-panel p { margin: 0; opacity: .92; }
.lp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,45,68,.1); border-color: var(--primary); color: var(--ink); }
.lp-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.lp-card > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-card h3 { margin: 0; }
.lp-card p { margin: 0; color: var(--ink-soft); }
.lp-card .tag { font-size: .8125rem; font-weight: 800; color: var(--secondary-text); text-transform: uppercase; letter-spacing: .06em; }
.lp-card .route-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }
@media (max-width: 860px) { .lp-cards { grid-template-columns: 1fr; } }
.aud h2 { font-size: 1.5rem; margin-top: 12px; }
.aud-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-1); color: var(--primary); }
.move-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: mv; }
.move-steps > div { background: var(--surface); border-radius: var(--radius-md); padding: 22px; }
.move-steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.move-steps h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.move-steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 980px) { .move-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .move-steps { grid-template-columns: 1fr; } }

/* ---------- International careers ---------- */
.intl-hero { position: relative; min-height: clamp(440px, 66vh, 680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--primary); }
.intl-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.intl-hero > img { object-position: center 42%; }
.intl-hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,18,35,.82) 0%, rgba(10,18,35,.62) 38%, rgba(10,18,35,.18) 68%, rgba(10,18,35,0) 85%),
  linear-gradient(180deg, rgba(10,18,35,0) 55%, rgba(10,18,35,.35) 100%); }
.intl-hero-text h1, .intl-hero-text .lede, .intl-hero .breadcrumb { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media (max-width: 760px) { .intl-hero::after { background: linear-gradient(180deg, rgba(10,18,35,.15) 0%, rgba(10,18,35,.55) 40%, rgba(10,18,35,.88) 100%); } }
.intl-hero-text { position: relative; z-index: 1; padding-block: 40px 56px; color: #fff; }
.intl-hero h1 { color: #fff; max-width: 20ch; }
.intl-hero .lede { color: rgba(255,255,255,.95); max-width: 58ch; }
.intl-hero .breadcrumb a, .intl-hero .breadcrumb li { color: rgba(255,255,255,.9); }
.intl-hero .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.8); }
.intl-hero .btn-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }
.wa-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wa-fact { border-top: 3px solid var(--secondary); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.wa-fact strong { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--primary); font-weight: 800; letter-spacing: -0.02em; }
.wa-fact span { font-weight: 600; color: var(--ink); line-height: 1.35; }
.wa-fact a { font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 860px) { .wa-facts { grid-template-columns: repeat(2, 1fr); } }
.perth-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perth-gallery figure { margin: 0; }
.perth-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.perth-gallery figcaption { margin-top: 8px; font-size: .9375rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 860px) { .perth-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perth-gallery { grid-template-columns: 1fr; } }

.vision-band .eyebrow { color: #fff; }
.claremont-band { grid-template-columns: 1fr 1fr; }
.cl-band-img { margin: 0; }
.cl-band-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); }
.cl-band-img figcaption { margin-top: 6px; font-size: .75rem; color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .claremont-band { grid-template-columns: 1fr; } }
.svc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(20px, 4vw, 40px); }
.svc-col .muted { margin-bottom: 20px; }
@media (max-width: 760px) { .svc-pair { grid-template-columns: 1fr; } }

.rf-file[hidden] { display: none; }

/* International hero v2: text on a solid panel beside the photo, so it is always readable */
.intl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: clamp(460px, 64vh, 640px); align-items: stretch; background: var(--primary); }
.intl-hero::after { display: none; }
.intl-hero-photo { position: relative; order: 2; min-height: 320px; }
.intl-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.intl-hero-text { order: 1; position: static; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(32px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.intl-hero-text h1, .intl-hero-text .lede, .intl-hero .breadcrumb { text-shadow: none; }
.intl-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.3rem); }
@media (max-width: 860px) {
  .intl-hero { grid-template-columns: 1fr; }
  .intl-hero-photo { order: 0; aspect-ratio: 3 / 2; min-height: 0; }
  .intl-hero-text { padding: 28px var(--gutter) 36px; }
}
/* Tea house hero: keep the building in frame when the photo panel is cropped */
.intl-hero-photo img { object-position: 45% 50%; }
.intl-hero .btn-primary { background: var(--surface); color: var(--primary); }
.intl-hero .btn-primary:hover { background: var(--surface-1); color: var(--primary-strong); }
/* International hero v3: photo fills the left half, text on the right with room to breathe */
.intl-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(480px, 66vh, 660px); }
.intl-hero-photo { order: 1; }
.intl-hero-text { order: 2; padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 88px) clamp(40px, 5vw, 80px) clamp(28px, 4.5vw, 72px); }
.intl-hero h1 { max-width: 19ch; font-size: clamp(2rem, 1.3rem + 2vw, 3.1rem); }
.intl-hero .lede { max-width: 46ch; }
@media (max-width: 1100px) and (min-width: 861px) { .intl-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
@media (max-width: 860px) { .intl-hero { grid-template-columns: 1fr; min-height: 0; } .intl-hero-photo { order: 0; aspect-ratio: 3 / 2; min-height: 0; } .intl-hero-text { order: 1; padding: 28px var(--gutter) 36px; } .intl-hero h1 { max-width: none; } }
.wa-src { margin: 2px 0 0; font-size: .8125rem; color: var(--ink-soft); }
.wa-src a { color: var(--ink-soft); }

/* Ring v2 (20 Oct): compact two-line labels so nothing spills into the centre circle; diagram and key centred */
.team-around > div:last-child { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ring-wrap { max-width: 500px; }
.ring-centre { width: 30%; padding: 8px; }
.ring-centre strong { font-size: clamp(1rem, 0.75rem + 0.9vw, 1.3rem); }
.ring-centre span { font-size: 0.8125rem; line-height: 1.25; }
.ring-wrap .ring-node { white-space: nowrap; font-size: 0.875rem; line-height: 1.2; padding: 7px 14px 7px 11px; text-align: left; }
.ring-key { justify-content: center; }

/* 20 Oct: logo as a photo placeholder (Rachel) */
.initials.logo-ph { padding: 18%; }
.initials.logo-ph .brand-logo, .initials.logo-ph > * { max-width: 100%; }
.initials.logo-ph .logo-current { width: 100%; height: auto; }
.initials.logo-ph .logo-refresh img, .initials.logo-ph .logo-alt svg { width: 64px; height: 64px; }
.initials.logo-ph .logo-refresh, .initials.logo-ph .logo-alt { flex-direction: column; gap: 8px; }
.initials.logo-ph .wordmark { font-size: 1.35rem; }
/* 20 Oct: Claremont gallery is now two images side by side */
.cl-gallery img { aspect-ratio: 16 / 10; }
/* 20 Oct: preview switcher fits a 375px phone with the Gareth logo link added */
@media (max-width: 520px) {
  .brand-switch { right: 8px; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
  .brand-switch::-webkit-scrollbar { display: none; }
  .brand-switch button { padding: 6px 8px; font-size: 0.75rem; min-height: 32px; }
  .brand-switch .notes-link { padding: 6px 8px; font-size: 0.75rem; margin-left: 0; white-space: nowrap; flex: none; }
  .brand-switch button { flex: none; }
}
.brand-switch .logo-link { border-radius: 999px; border-left: 1px solid #e3e3e3; }
@media (max-width: 520px) {
  .brand-switch { padding: 3px; gap: 0; }
  .brand-switch button, .brand-switch .notes-link { padding: 6px 7px; font-size: 0.71875rem; }
}
/* 20 Oct: phone-width fixes (grid children could grow wider than the screen) */
.two-col > *, .faq-layout > *, .contact-grid > * { min-width: 0; }
.map-frame { max-width: 100%; }
.contact-list li > * { min-width: 0; }
.contact-list a.big { overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-list a.big { font-size: 1.0625rem; } }
@media (max-width: 420px) { .hours th, .hours td { padding-right: 10px; } .hours td { white-space: normal; } }
/* 20 Oct: header fits very small phones (320px) */
@media (max-width: 359px) {
  .header-actions { gap: 6px; }
  .header-actions .btn-small { padding: 8px 11px; font-size: 0.8125rem; }
  .logo-refresh img { height: 34px; }
  .logo-refresh .wordmark { font-size: 1.3rem; }
  .logo-current { height: 40px; }
  .logo-alt svg { width: 32px; height: 32px; }
  .logo-alt .wordmark { font-size: 1.25rem; }
}
@media (max-width: 340px) {
  .header-inner .logo-refresh .wordmark, .header-inner .logo-alt .wordmark { display: none; }
  .header-inner .logo-current { height: 34px; }
}
.crisis-000 { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 480px) { .wa-facts { grid-template-columns: 1fr; } }

/* ---------- Referral form v2 (20 Oct 2026) ---------- */
.rf2 .rf-body > .notice { margin-bottom: 18px; }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-1); font-size: .9375rem; color: var(--ink); }
.rf-consent .icon { color: var(--secondary-text); margin-top: 3px; flex: none; }
.rf-letter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rf-camera { display: none; }
@media (pointer: coarse) { .rf-camera { display: inline-flex; } }
.rf-noletter { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--primary-strong); }
.rf-stop { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface-3); }
.rf-stop h3 { margin-top: 0; }
.rf-stop p:last-child { margin-bottom: 0; }
.rf-step-err, .rf-send-err { display: none; }
.rf-step-err.is-shown, .rf-send-err.is-shown { display: block; }
.rf-q-note { margin-top: -4px; }
/* Each detail read from the letter has its own "Correct" tick */
#rf-check-grid .field { position: relative; padding: 12px 12px 10px; border-radius: var(--radius-md); border: 1px solid #ecd9a0; background: #fffdf5; }
#rf-check-grid .field.is-confirmed { border-color: var(--secondary); background: var(--surface-2); }
#rf-check-grid .field.has-error { border-color: var(--accent-text); }
#rf-check-grid .field.is-confirmed input, #rf-check-grid .field.is-confirmed textarea, #rf-check-grid .field.is-confirmed .dob-row input { background: #fff; border-color: var(--line); }
.rf-ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--secondary); color: var(--secondary-text); font-weight: 700; font-size: .875rem; cursor: pointer; background: #fff; }
.rf-ok input { width: 18px; height: 18px; accent-color: var(--secondary); margin: 0; }
.is-confirmed .rf-ok { background: var(--secondary); color: #fff; }
.is-confirmed .af-tag { background: var(--surface-1); color: var(--ink-soft); }
#rf-check-grid .field.has-error:not(.is-confirmed)::after { content: "Tick Correct, or fix this detail."; display: block; margin-top: 6px; color: var(--accent-text); font-size: .875rem; font-weight: 650; }
#rf-check-grid .field.has-error:not(.is-confirmed) .error { display: none; }
/* Review before submitting */
.rf-review { display: grid; grid-template-columns: 1fr; gap: 0; margin: 4px 0 18px; border-top: 1px solid var(--line); }
.rf-review > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rf-review dt { font-weight: 700; color: var(--ink-soft); font-size: .9375rem; }
.rf-review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .rf-review > div { grid-template-columns: 1fr; gap: 2px; } }
.rf-ref { font-weight: 800; font-size: 1.125rem; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.rf2 select { width: 100%; }
#rf-check-grid .field label.rf-ok { display: inline-flex; width: auto; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 14px 6px 10px; font-size: .875rem; font-weight: 700; line-height: 1.2; border-radius: 999px; }
#rf-check-grid .field label.rf-ok input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; box-shadow: none; flex: none; background: none; }
#rf-check-grid .field label.rf-ok span { display: inline; }

/* Gareth logo home page (20 Oct): his logo, exactly as supplied, in the header and footer */
.logo-gareth { display: block; height: 58px; width: auto; }
.footer-brand .logo-gareth { height: 64px; margin-bottom: 14px; }
.gareth-home .site-header { background: rgba(255, 255, 255, 0.97); }
@media (max-width: 420px) { .site-header .logo-gareth { height: 46px; } }
@media (max-width: 340px) { .site-header .logo-gareth { height: 38px; } }
.brand-switch .logo-link[aria-current="page"] { background: #2a3446; color: #fff; }
.site-header .logo-gareth { height: 62px; }
@media (max-width: 420px) { .site-header .logo-gareth { height: 46px; } }
@media (max-width: 340px) { .site-header .logo-gareth { height: 38px; } }
.footer-brand .logo-gareth { background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; }

/* 26 Oct: phone layout fixes on the referral form (found on iPhone) */
/* Space between the last field and the Continue button */
.rf-card > .btn-row { margin-top: 20px; }
/* Questions with options: heading inside its box, not on the box's border; no stray indent */
fieldset.field > legend { padding: 0; }
#rf-check-grid fieldset.field > legend { float: left; width: 100%; margin-bottom: 8px; }
#rf-check-grid fieldset.field > legend + * { clear: both; }
/* "From the letter" tag beside the question, hint below; a wrapped tag starts at the left edge */
.field .af-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.field .af-head > .af-tag { margin: 0; }
.field .af-head > .hint { flex-basis: 100%; margin-top: 0; }
/* iPhone date fields: same width as the other boxes, date on the left */
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 1.5; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* Solid header: no blurred page content showing through around the logo */
.site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 28 Oct: stopgap banner on every page while the new referral form beds in */
.help-banner { background: var(--primary); color: var(--on-primary); font-size: .9375rem; line-height: 1.4; text-align: center; padding: 9px 0; }
.help-banner a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.help-banner a:hover { color: inherit; }
@media print { .help-banner { display: none; } }

/* 28 Oct: placeholder portraits show only the current logo (a .person-mini span rule was showing all three) */
:root:not([data-brand="refresh"]) .initials .logo-refresh, :root:not([data-brand="alt"]) .initials .logo-alt { display: none; }
