/* ============================================================================
   No Worries Migration – stylesheet
   Palette sampled from nwm_logo_transparent.png (PIL colour count):
     cyan #25AAE2 · magenta #E8088C · yellow #F7ED1C · near-black #10121E
   No webfonts, no CDN, no framework. One script, for the mobile nav only.
   ========================================================================= */

:root {
  /* brand – sampled from the logo, do not eyeball */
  --cyan:      #25AAE2;
  --magenta:   #E8088C;
  --yellow:    #F7ED1C;
  --ink:       #10121E;

  /* surfaces */
  --paper:     #FFFFFF;
  --paper-2:   #F3F6FA;
  --paper-3:   #E9EEF5;
  --line:      #DCE3EC;
  --line-soft: #EAEFF5;

  /* type */
  --fg:        #10121E;
  --fg-2:      #39415A;
  --muted:     #5F6980;

  /* interactive */
  --link:      #0E6FA0;
  --link-hover:#0A5478;

  /* the hero is committed dark in BOTH themes */
  --hero-bg:   #10121E;
  --hero-fg:   #FFFFFF;
  --hero-muted:#A8B2C7;
  --hero-line: rgba(255,255,255,.14);

  --radius: 3px;
  --maxw: 1140px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui,
          -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #0D0F1A;
    --paper-2:   #141726;
    --paper-3:   #1C2033;
    --line:      #262C42;
    --line-soft: #1E2336;
    --fg:        #EEF1F7;
    --fg-2:      #C3CADB;
    --muted:     #939DB4;
    --link:      #5CC2EE;
    --link-hover:#8AD5F5;
  }
}
:root[data-theme="dark"] {
  --paper:     #0D0F1A;
  --paper-2:   #141726;
  --paper-3:   #1C2033;
  --line:      #262C42;
  --line-soft: #1E2336;
  --fg:        #EEF1F7;
  --fg-2:      #C3CADB;
  --muted:     #939DB4;
  --link:      #5CC2EE;
  --link-hover:#8AD5F5;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- the signature device: the tri-colour brand bar -------------- */
.bar {
  height: 4px; width: 100%; border: 0; margin: 0;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.34%, var(--magenta) 33.34% 66.67%, var(--yellow) 66.67% 100%);
}
.bar--sm { height: 3px; }
.bar--rule { width: 74px; margin: 0 0 1.5rem; }

/* ---------- typography ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.1;
  letter-spacing: -.022em;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4.15rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.14rem, 1.7vw, 1.32rem); letter-spacing: -.012em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: clamp(1.12rem, 1.75vw, 1.32rem); color: var(--fg-2); line-height: 1.55; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow--onDark { color: var(--hero-muted); }

/* ---------- header ----------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { max-width: 1280px; }   /* the nav needs more room than the text column */
.head-in {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 42px; height: auto; }
.brand b { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; display: block; }
.brand span {
  display: block; font-family: var(--mono); font-size: .625rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.25rem; }
/* :not(.btn) matters -- `.nav a` outranks `.btn--primary` on specificity and would
   otherwise strip the CTA's white text and its horizontal padding. */
.nav a:not(.btn) {
  color: var(--fg-2); text-decoration: none; font-size: .945rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--fg); border-bottom-color: var(--cyan); }
.nav a:not(.btn)[aria-current="page"] { color: var(--fg); border-bottom-color: var(--magenta); }

.navtoggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .7rem; color: var(--fg);
  font: 600 .875rem/1 var(--sans); cursor: pointer;
}

@media (max-width: 940px) {
  .navtoggle { display: block; margin-left: auto; }
  .brand { margin-right: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: .9rem; text-align: center; align-self: stretch; }
}

/* ---------- buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .96rem/1 var(--sans);
  padding: .87rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  white-space: nowrap; flex: none;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: #c2077a; color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn--onDark { border-color: var(--hero-line); color: #fff; background: transparent; }
.btn--onDark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { padding: .62rem 1rem; font-size: .875rem; }

/* ---------- hero ------------------------------------------------------- */
.hero {
  background: var(--hero-bg); color: var(--hero-fg);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.34%, var(--magenta) 33.34% 66.67%, var(--yellow) 66.67% 100%);
}
/* brand watermark: the three sails, large, bleeding off the right edge */
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: -3%; top: 50%; transform: translateY(-50%);
  width: min(44%, 520px); aspect-ratio: 848 / 644;
  background: url("assets/logo-mark.png") center right / contain no-repeat;
  opacity: .13;
}
@media (max-width: 900px) { .hero::before { display: none; } }

.hero-in { padding-block: clamp(3.75rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
           position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .5em; }
.hero .lede { color: var(--hero-muted); max-width: 72ch; font-size: clamp(1.1rem,1.6vw,1.28rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }

.hero-strip {
  border-top: 1px solid var(--hero-line);
  margin-top: clamp(2.75rem, 5vw, 4rem); padding-top: 1.6rem;
  display: grid; gap: 1.4rem 2.5rem; margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.hero-strip > div { min-width: 0; }
.hero-strip dt {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--hero-muted); margin-bottom: .35rem;
}
.hero-strip dd { margin: 0; font-size: .97rem; color: #fff; font-weight: 500; }
.hero-strip dd a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.hero-strip dd a:hover { color: var(--yellow); }

/* ---------- enquiry form, sitting in the dark hero ---------------------- */
.heroform {
  border-top: 1px solid var(--hero-line);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem); padding-top: 1.9rem;
  /* was 720px, which left a third of the hero empty. The watermark bleeds off the
     right edge and sits behind, so the form can take the full column width. */
  max-width: none;
}
.heroform-lede {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--hero-muted); margin: 0 0 1.1rem;
}
/* every track has a 0 minimum so they shrink together instead of one being
   crushed -- the footer bug of 16 Aug 2026, not repeated here */
.heroform-grid {
  display: grid; gap: 1rem 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.heroform-wide { grid-column: 1 / -1; }
.heroform label { display: block; min-width: 0; }
.heroform label > span {
  display: block; font-size: .78rem; color: var(--hero-muted);
  margin-bottom: .35rem; letter-spacing: .01em;
}
.heroform input, .heroform textarea {
  width: 100%; font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--hero-line); border-radius: var(--radius);
  padding: .68rem .8rem; resize: vertical;
}
.heroform input:hover, .heroform textarea:hover { border-color: rgba(255,255,255,.32); }
.heroform input:focus-visible, .heroform textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 1px;
  background: rgba(255,255,255,.1); border-color: transparent;
}
.heroform-foot {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-top: 1.25rem; flex-wrap: wrap;
}
.heroform-note {
  margin: 0; font-size: .8rem; line-height: 1.5; color: var(--hero-muted);
  max-width: 42ch; flex: 1 1 260px;
}
.heroform-note a { color: var(--hero-muted); text-decoration-color: rgba(255,255,255,.4); }
.heroform-note a:hover { color: var(--yellow); }
.heroform-msg { margin: 1rem 0 0; font-size: .93rem; color: #fff; }
.heroform-msg[data-state="ok"]   { color: var(--yellow); }
.heroform-msg[data-state="err"]  { color: #FFB4C8; }
.heroform[data-sending="true"] button { opacity: .55; pointer-events: none; }
/* honeypot -- present for bots, never shown to or focusable by a person */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) {
  .heroform-grid { grid-template-columns: 1fr; }
}

/* ---------- generic section -------------------------------------------- */
.sec { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.sec--alt { background: var(--paper-2); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- practice-area grid ----------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.cell { background: var(--paper); padding: 1.6rem 1.5rem 1.7rem; position: relative; }
.cell::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--accent, var(--cyan)); opacity: 0; transition: opacity .15s ease;
}
a.cell { text-decoration: none; color: inherit; display: block; }
a.cell:hover { background: var(--paper-2); }
a.cell:hover::before { opacity: 1; }
/* --accent paints RULES (decorative, any chroma is fine).
   --accent-ink paints TEXT and must clear 4.5:1 on the page background. */
.cell .num {
  font-family: var(--mono); font-size: .715rem; letter-spacing: .04em; line-height: 1.5;
  color: var(--accent-ink, var(--link)); font-weight: 700; display: block; margin-bottom: .8rem;
}
.cell > h3:first-child { margin-top: .2rem; }
.cell h3 { margin-bottom: .45rem; }
.cell p { font-size: .935rem; color: var(--muted); margin: 0; max-width: none; }
.cell .more {
  display: inline-block; margin-top: .9rem; font-size: .875rem; font-weight: 600;
  color: var(--link);
}

/* rotate the three brand colours across any grid */
.grid > :nth-child(3n+1) { --accent: var(--cyan);    --accent-ink: #0B6690; }
.grid > :nth-child(3n+2) { --accent: var(--magenta); --accent-ink: #B60670; }
.grid > :nth-child(3n+3) { --accent: var(--yellow);  --accent-ink: #736800; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grid > :nth-child(3n+1) { --accent-ink: #63C7F0; }
  :root:not([data-theme="light"]) .grid > :nth-child(3n+2) { --accent-ink: #FF6BBB; }
  :root:not([data-theme="light"]) .grid > :nth-child(3n+3) { --accent-ink: #E6DA46; }
}
:root[data-theme="dark"] .grid > :nth-child(3n+1) { --accent-ink: #63C7F0; }
:root[data-theme="dark"] .grid > :nth-child(3n+2) { --accent-ink: #FF6BBB; }
:root[data-theme="dark"] .grid > :nth-child(3n+3) { --accent-ink: #E6DA46; }

/* ---------- steps ------------------------------------------------------ */
.steps { counter-reset: s; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.step { border-top: 3px solid var(--line); padding-top: 1.15rem; }
.step:nth-child(4n+1) { border-top-color: var(--cyan); }
.step:nth-child(4n+2) { border-top-color: var(--magenta); }
.step:nth-child(4n+3) { border-top-color: #C9BE00; }
.step:nth-child(4n+4) { border-top-color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step:nth-child(4n+3) { border-top-color: var(--yellow); }
  :root:not([data-theme="light"]) .step:nth-child(4n+4) { border-top-color: var(--fg-2); }
}
:root[data-theme="dark"] .step:nth-child(4n+3) { border-top-color: var(--yellow); }
:root[data-theme="dark"] .step:nth-child(4n+4) { border-top-color: var(--fg-2); }
.step b {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.step h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- callout band ----------------------------------------------- */
.band {
  background: var(--ink); color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
}
.band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.34%, var(--magenta) 33.34% 66.67%, var(--yellow) 66.67% 100%);
}
.band h2 { color: #fff; }
.band p { color: #C3CBDC; }
.band .eyebrow { color: #8E99B2; }
.band-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- prose ------------------------------------------------------ */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .42em; }
.prose li::marker { color: var(--cyan); }

.q {
  border-left: 3px solid var(--magenta);
  padding: .15rem 0 .15rem 1.15rem; margin: 1.75rem 0;
  font-size: 1.1rem; color: var(--fg-2); font-style: italic;
}

/* ---------- definition list / spec table -------------------------------- */
.spec { border-top: 1px solid var(--line); margin: 0; }
.spec div {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 620px) { .spec div { grid-template-columns: 1fr; gap: .2rem; } }
.spec dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); padding-top: .28rem;
}
.spec dd { margin: 0; font-size: .98rem; }

/* ---------- legislation library ----------------------------------------- */
.libgroup { margin-bottom: 2.75rem; }
.libgroup > h3 {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg); font-weight: 700;
  padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .libgroup > h3 { border-bottom-color: var(--fg-2); }
}
:root[data-theme="dark"] .libgroup > h3 { border-bottom-color: var(--fg-2); }
.lib { list-style: none; padding: 0; margin: 0; }
.lib li { border-bottom: 1px solid var(--line-soft); }
.lib a {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.25rem;
  align-items: baseline; padding: .85rem .2rem; text-decoration: none; color: var(--fg);
}
.lib a:hover { background: var(--paper-2); }
.lib a:hover .lib-t { color: var(--link); text-decoration: underline; }
.lib-t { font-size: .96rem; line-height: 1.45; }
.lib-id { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 620px) { .lib a { grid-template-columns: 1fr; } }

/* ---------- resource cards ---------------------------------------------- */
.reslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px;
           background: var(--line); border: 1px solid var(--line); }
.reslist li { background: var(--paper); }
.reslist a { display: flex; gap: 1rem; align-items: baseline; padding: 1.15rem 1.35rem;
             text-decoration: none; color: var(--fg); }
.reslist a:hover { background: var(--paper-2); color: var(--link); }
.reslist .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
              text-transform: uppercase; color: var(--muted); min-width: 4.5rem; }

/* ---------- provider name list ------------------------------------------ */
.names {
  list-style: none; padding: 0; margin: 0;
  columns: 4 220px; column-gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.names li {
  break-inside: avoid; padding: .62rem 0 .62rem 1.1rem;
  border-bottom: 1px solid var(--line-soft); font-size: .95rem; position: relative;
  color: var(--fg-2);
}
.names li::before {
  content: ""; position: absolute; left: 0; top: 1.12rem;
  width: 5px; height: 5px; background: var(--cyan);
}
.names li:nth-child(3n+2)::before { background: var(--magenta); }
.names li:nth-child(3n+3)::before { background: var(--yellow); }

/* ---------- portrait ---------------------------------------------------- */
.portrait { margin: 0; }
.portrait img {
  width: 100%; height: auto; border-radius: 2px;
  border: 1px solid var(--line);
}
.portrait figcaption {
  margin-top: .85rem; font-weight: 600; font-size: .97rem; color: var(--fg);
  border-left: 3px solid var(--magenta); padding-left: .8rem; line-height: 1.35;
}
.portrait figcaption span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: .3rem;
}
.mugshot {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line);
  margin: 0 0 1.25rem;
}

/* ---------- FAQ accordion ----------------------------------------------- */
.qalist { border-top: 1px solid var(--line); max-width: 74ch; }
.qa { border-bottom: 1px solid var(--line); }
.qa > summary {
  list-style: none; cursor: pointer; padding: 1.05rem 2.25rem 1.05rem 0;
  position: relative; font-weight: 600; font-size: 1.06rem; line-height: 1.4;
  color: var(--fg);
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.5rem;
  width: 11px; height: 11px; border-right: 2px solid var(--magenta);
  border-bottom: 2px solid var(--magenta); transform: rotate(45deg);
  transition: transform .18s ease;
}
.qa[open] > summary::after { transform: rotate(-135deg); top: 1.75rem; }
.qa > summary:hover { color: var(--link); }
.qa-body { padding: 0 2.25rem 1.4rem 0; }
.qa-body p { font-size: .99rem; color: var(--fg-2); }
.qa-body p:last-child { margin-bottom: 0; }
.qa-body ul { padding-left: 1.15rem; margin: 0 0 1em; }
.qa-body li { margin-bottom: .5em; color: var(--fg-2); }
.qa-body li::marker { color: var(--cyan); }
.qa-body strong { color: var(--fg); }

/* ---------- notes ------------------------------------------------------- */
.note {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  padding: 1.15rem 1.35rem; margin: 1.75rem 0; font-size: .935rem; color: var(--fg-2);
}
.note--warn { border-left-color: var(--magenta); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--fg); }

/* ---------- contact ----------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem,4vw,3.25rem); grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--fg);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .8rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); outline: 2px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  outline-offset: 0;
}

/* ---------- footer ------------------------------------------------------ */
.site-foot { background: var(--ink); color: #B9C1D4; padding-block: clamp(3rem,5vw,4.25rem) 2.25rem; }
/* The brand column USED to be minmax(0,1.5fr) beside repeat(auto-fit, minmax(160px,1fr)).
   Those 160px tracks hold their floor while the brand track, with a min of 0, gets
   crushed: at 320px it collapsed to ~84px, the wordmark overlapped the PRACTICE
   column and the address broke one word per line. Reported from a real iPhone
   16 Aug 2026. Headless Chrome cannot lay out under ~500px, so this was invisible
   to every screenshot taken before it shipped -- see src/tools/narrow.py.
   Explicit breakpoints now, and every track can shrink instead of overflowing. */
.foot-grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr));
}
.foot-grid > * { min-width: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 1.9rem; } }
/* the email is one long unbreakable token -- never let it set the column width */
.site-foot { overflow-wrap: break-word; }
.site-foot a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-foot h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: #7F8AA3; margin: 0 0 .9rem; font-weight: 600;
}
.site-foot a { color: #DCE2EF; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .5rem; font-size: .93rem; }
.site-foot .brand b { color: #fff; }
.site-foot .brand span { color: #7F8AA3; }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; line-height: 1.65; color: #8B95AC;
}
/* The 90ch cap left roughly half the footer empty on a desktop. Two balanced
   columns fill the width AND keep the line length readable -- simply removing the
   cap would give ~175-character lines at this size, which is worse, not better.
   `break-inside: avoid` stops a paragraph being split across the column boundary,
   which matters when the text is a legal notice. */
.foot-legal p { max-width: 64ch; }
@media (min-width: 900px) {
  .foot-legal { columns: 2; column-gap: 3.5rem; }
  .foot-legal p { max-width: none; break-inside: avoid; }
  .foot-legal p:first-child { margin-top: 0; }
}
.foot-legal strong { color: #DCE2EF; }

/* ---------- misc -------------------------------------------------------- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
.tight { max-width: 58ch; }
.overflow-x { overflow-x: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .site-head, .navtoggle, .hero-cta, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
