:root {
  --paper: #fffcf8;
  --muted: var(--ink);
  --display: Georgia, "Times New Roman", serif;
}
[data-theme="rose"] { --paper: #fffdf9; --muted: #5a4139; }
[data-theme="sage"] {
  --page: #f7f6f0;
  --ink: #173e36;
  --accent: #21483e;
  --tint: #e8eee5;
  --line: #c9d3c4;
  --paper: #fffdf8;
  --muted: #42564b;
  --display: Georgia, "Times New Roman", serif;
}
body { font-family: var(--ui); }
.shell { width: min(1180px, calc(100% - 3rem)); }
.skip { z-index: 10; }
.site-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  column-gap: clamp(.75rem, 2vw, 1.6rem);
  min-height: 5.75rem;
  padding-block: .9rem;
  border-block-end: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .62rem; white-space: nowrap; font: 1.27rem/1.15 var(--display); }
.brand .brand-mark { width: 41px; height: 41px; flex: 0 0 41px; }
.brand img { width: 41px; height: 41px; border-radius: 10px; }
.site-head nav { align-items: center; justify-content: center; gap: .15rem clamp(.55rem, 1.6vw, 1.25rem); }
.site-head nav a, .locale a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"], .locale a:hover { text-decoration: underline; }
.locale { font: 650 .85rem/1.25 var(--ui); }
.site-head .actions { grid-column: -2 / -1; flex-wrap: nowrap; }
.button { border-radius: .6rem; min-height: 50px; padding-inline: .8rem; }
.button.primary:hover { background: #152f28; }
.button.secondary:hover { background: #e3eadf; }
.button.secondary span + span { font-size: max(14px, .83rem); }
.hero, .hero.illustrated {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.8rem, 6vw, 5.7rem);
  min-height: auto;
  overflow: visible;
  margin: clamp(2.4rem, 6vw, 5rem) 0 clamp(3.2rem, 7vw, 5.8rem);
  border: 0;
  background: none;
}
.hero-copy { padding: 0; max-width: 650px; }
.hero h1 { color: var(--ink); font: 400 clamp(2.65rem, 5.2vw, 5.1rem)/1.03 var(--display); letter-spacing: -.045em; margin: .5rem 0 1.1rem; }
.hero:not(.home-hero) h1 { font-size: clamp(2.4rem, 4.2vw, 4.2rem); }
.context { display: inline-block; color: var(--accent); font: 650 .74rem/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.standfirst { max-width: 55ch; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.19rem); line-height: 1.62; }
.hero .actions { max-width: max-content; margin-block-start: 1.35rem; }
.hero .actions .button { min-width: min(100%, 145px); }
.hero-media { margin: 0; min-width: 0; }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 1.3rem; background: var(--tint); }
.hero-media figcaption { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; }
h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.18; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.8rem); letter-spacing: -.018em; margin: 0 0 .8rem; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.52rem); margin: 0 0 .55rem; }
a { text-decoration-thickness: 1px; }
.services, .process, .questions { margin-block: 3.25rem; }
.services > p, .text-pane p, .process p, .questions p { color: var(--muted); }
.card-grid, .step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.service-card { display: flex; flex-direction: column; padding: 1.3rem; min-height: 10rem; border-radius: 1rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.service-card:hover { border-color: var(--accent); background: #f0f3ea; }
.service-card:hover h3 { text-decoration: underline; text-underline-offset: .2rem; }
.service-card p { margin: 0 0 .85rem; }
.service-card .arrow { align-self: flex-end; margin-block-start: auto; font: 1.3rem/1.3 var(--ui); }
.process { background: var(--tint); border-radius: 1.12rem; padding: clamp(1.3rem, 3vw, 2.55rem); }
.step-grid { margin-bottom: 0; padding-inline-start: 1.7rem; }
.step-grid li { padding-inline-start: .2rem; }
.step-grid li::marker { font: 650 1rem/1 var(--ui); }
.step-grid p { margin: .45rem 0 .2rem; }
.questions { max-width: 850px; }
.faq details { padding: .78rem 0; border-block-end: 1px solid var(--line); }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 620; padding: .28rem .45rem; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0; padding: 0 .5rem .6rem; }
.questions > a { display: inline-block; margin-top: .9rem; }
.contact-band { margin-block: 3.5rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.1rem; background: var(--paper); }
.contact-band p { max-width: 58ch; color: var(--muted); }
.contact-band .actions { width: fit-content; }
.route-panel { padding: clamp(1rem, 3.2vw, 2.05rem); background: var(--tint); border-radius: 1.1rem; }
.route-panel h2 { font-size: 1.45rem; }
.route-panel ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.route-panel li + li { border-block-start: 1px solid var(--line); }
.route-panel a { display: flex; align-items: center; min-height: 46px; padding: .4rem .1rem; }
.text-pane { max-width: 820px; }
.text-pane section + section { margin-block-start: 2.2rem; }
.text-pane section > p { max-width: 70ch; }
.text-pane .related, .text-pane .source-links { border-color: var(--line); }
.site-footer { padding: 1.35rem 0 2.5rem; background: var(--tint); color: var(--ink); }
@media (max-width: 1100px) {
  .site-head { grid-template-columns: minmax(0, 1fr) auto; }
  .site-head nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
  .site-head:has(.locale) nav { grid-column: 1; }
  .site-head .locale { grid-row: 2; grid-column: 2; justify-self: end; align-self: end; }
  .site-head .actions { grid-row: 3; grid-column: 1 / -1; margin-top: .42rem; }
}
@media (max-width: 760px) {
  .site-head { gap: .12rem .6rem; padding-block: .65rem .8rem; }
  .brand { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .site-head nav { gap: 0 .75rem; }
  .site-head .actions { flex-wrap: wrap; min-width: 0; }
  .button { min-width: 0; overflow-wrap: anywhere; }
  .button.secondary span { max-width: 100%; white-space: normal; }
  h2, h3 { overflow-wrap: anywhere; }
  .shell { width: calc(100% - 1.6rem); }
  .hero, .hero.illustrated { grid-template-columns: 1fr; gap: 1.5rem; margin-block: 2.2rem 3rem; }
  .hero .actions { max-width: 100%; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 4.3rem); }
  .hero-image { max-height: 450px; aspect-ratio: 1.22 / 1; }
  .card-grid, .step-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card, .text-pane { overflow-wrap: anywhere; }
  .service-card { min-height: auto; }
}
@media (max-width: 370px) {
  .brand { font-size: 1.05rem; }
  .brand img { width: 35px; height: 35px; }
  .site-head nav { font-size: .77rem; gap: 0 .7rem; }
  .button { padding-inline: .48rem; }
  .hero .actions .button { min-width: 0; }
}


/* Give standalone footer links a larger hit area on touch screens. */
@media (max-width: 760px), (pointer: coarse) {
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    min-inline-size: 44px;
    max-inline-size: 100%;
  }
}
