/* greeleyattorneys.com - the one stylesheet.
   Everything that changes between the three design directions is a custom
   property set in /assets/directions/<design>.css (loaded before this file);
   this file never names a colour, font or radius directly. Mobile first:
   the base rules are the phone layout, the @media blocks widen it. */

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-size, 1.0625rem);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { font-style: italic; color: var(--color-muted); }
a { color: var(--color-link); text-decoration-thickness: from-font; text-underline-offset: .15em; }
a:hover { color: var(--color-brand-deep); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
  color: var(--color-brand);
  margin: 0 0 .5em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, blockquote, figure, table, hr { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--rule-color); }
strong { font-weight: var(--strong-weight, 650); }
:focus-visible { outline: 3px solid var(--focus, var(--color-brand)); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--color-accent); color: var(--color-brand-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--color-brand); color: var(--color-on-dark); border-radius: var(--button-radius); font-family: var(--font-ui); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* --- layout -------------------------------------------------------------- */
.container { width: min(100% - 2rem, var(--max-width, 72rem)); margin-inline: auto; }
.container--prose { max-width: 46rem; }
.section { padding-block: var(--section-pad); }
.section--lead, .section--continued { padding-bottom: 0; }
.section--follow { padding-top: 1.5rem; }
.section--tint { background: var(--color-tint); }
.section--dark { background: var(--color-brand); color: var(--color-on-dark); --color-link: var(--color-on-dark); --focus: var(--color-accent); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-on-dark); }
.section--dark a:hover { color: var(--color-accent-on-dark, var(--color-accent)); }
.section__title { margin-bottom: 1.25rem; }
/* Block margins only: a band that is nothing but buttons is a .container too, and `margin: 1.5rem 0 0` once zeroed the side margins that center it, so the buttons sat against the left edge of wide screens. */
.section__actions { text-align: center; margin-block: 1.5rem 0; }
.section__actions p { margin: 0; }
.section--lead .container > h2:only-child, .section--lead .container > h3:only-child { margin-bottom: 0; }
/* A heading-only block whose band differs from its neighbour's: a short centered band of its own, never a heading hanging off a band's bottom edge. */
.section--statement { padding-block: clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section--statement .container > h2, .section--statement .container > h3 { margin: 0 auto; max-width: 40rem; }
.section--statement .container > h2::after, .section--statement .container > h3::after { content: ""; display: block; width: 3rem; height: 2px; margin: .75rem auto 0; background: var(--color-accent); }
.section--dark.section--statement .container > h2::after, .section--dark.section--statement .container > h3::after { background: var(--kicker-color, var(--color-accent)); }
.hero + .section--dark.section--statement { border-top: 1px solid rgba(255, 255, 255, .14); }
.label-band { text-align: center; }
.label-band h2, .label-band h3 { margin: 0; }
.label-band h2::after, .label-band h3::after { content: ""; display: block; width: 3rem; height: 2px; margin: .6rem auto 0; background: var(--color-accent); }
.columns { display: grid; gap: 1.5rem; }
/* A sidebar card beside a run of copy: the block's own copy, then every block the build folded beside the card (templates.mjs, asideSection), each a row of the grid. On a phone they stack in document order: the copy, the card, the rest. */
.with-aside { display: grid; gap: 2.5rem; }
.with-aside__aside { min-width: 0; }
.with-aside__main > * + * { margin-top: 1.5rem; }
.with-aside__main--quote { text-align: center; }
@media (min-width: 48em) { .columns--2, .columns--3, .columns--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .with-aside { grid-template-columns: minmax(0, 1fr) 22rem; column-gap: 4rem; row-gap: 2.5rem; align-items: start; }
  .with-aside__main { grid-column: 1; }
  /* The card spans every row of copy (`data-rows`, set by the build), so the copy never has to be as tall as the card; the last row is the flexible one, so a card taller than the run adds its extra to the end of the run, not between the blocks. */
  .with-aside__aside { grid-column: 2; grid-row: 1 / -1; }
  .with-aside[data-rows="2"] { grid-template-rows: auto 1fr; }
  .with-aside[data-rows="3"] { grid-template-rows: repeat(2, auto) 1fr; }
  .with-aside[data-rows="4"] { grid-template-rows: repeat(3, auto) 1fr; }
  .with-aside[data-rows="5"] { grid-template-rows: repeat(4, auto) 1fr; }
  .with-aside[data-rows="6"] { grid-template-rows: repeat(5, auto) 1fr; }
  .with-aside[data-rows="7"] { grid-template-rows: repeat(6, auto) 1fr; }
  .with-aside[data-rows="8"] { grid-template-rows: repeat(7, auto) 1fr; }
}
/* The card follows the reader down the run only when the whole of it fits the window: cut off at the bottom, its Send button would be out of reach until the run ended. */
@media (min-width: 64em) and (min-height: 64em) { .with-aside__aside { position: sticky; top: calc(var(--header-height) + 1rem); } }
/* When a page's copy is shorter than the card even with what follows folded beside it, the card goes under the copy as a wide band: its heading and attorney links beside the form, the form's fields in two columns. */
.aside-band { margin-top: 2.5rem; }
.aside-band__after { margin-top: 2.5rem; }
.aside-band__lead + .aside-band__form { margin-top: 1.5rem; }
.sidebar-card--band .contact-form { margin-top: 0; }
@media (min-width: 48em) {
  .aside-band--lead .sidebar-card--band { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; }
  .aside-band__lead + .aside-band__form { margin-top: 0; }
  .contact-form--band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; row-gap: 1rem; align-items: start; }
  .contact-form--band .field { margin-bottom: 0; }
  .contact-form--band .field--message { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; display: flex; flex-direction: column; }
  .contact-form--band .field--message textarea { flex: 1; }
  .contact-form--band .field--verify { grid-column: 1; }
  .contact-form--band button { grid-column: 2; grid-row: 4; justify-self: end; }
  .contact-form--band .form-alt, .contact-form--band .form-note, .contact-form--band .form-status { grid-column: 1 / -1; margin: 0; }
}

/* --- prose (the migrated page copy and the posts) ------------------------- */
.prose { max-width: 46rem; }
.with-aside__main .prose, .columns .prose, .container--prose .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li > ul { margin: .3em 0 0; }
.prose img { border-radius: var(--radius-lg); margin-block: 1rem; }
.prose p > img:only-child { margin-inline: auto; }
.prose blockquote { border-left: 3px solid var(--color-accent); padding: .25rem 0 .25rem 1.25rem; color: var(--color-muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--rule-color); padding: .5rem .7rem; text-align: left; }
.prose hr { margin: 1.5rem 0; width: 4rem; border-top: 2px solid var(--color-accent); }
.prose .button { margin-top: .5rem; }
.prose p:has(> img[width="150"]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.prose p > img[width="150"] { margin: 0; width: 8rem; height: 8rem; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(11, 53, 83, .14)); }
@media (max-width: 30em) { .prose p:has(> img[width="150"]) { gap: 1rem; } .prose p > img[width="150"] { width: 6rem; height: 6rem; } }
.profile-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--font-ui); font-size: .95rem; }

/* --- buttons ------------------------------------------------------------- */
.button, .contact-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .6rem 1.35rem;
  font-family: var(--font-ui); font-weight: var(--button-weight); font-size: var(--button-size, .95rem);
  letter-spacing: var(--button-tracking); text-transform: var(--button-case);
  text-decoration: none; line-height: 1.2; text-align: center;
  border-radius: var(--button-radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.button--primary, .contact-form button { background: var(--color-cta); color: var(--color-cta-ink); border-color: var(--color-cta); }
.button--primary:hover, .contact-form button:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: var(--color-cta-ink); }
.button--secondary, .button:not([class*="button--"]) { background: transparent; color: var(--color-brand); border-color: currentColor; }
.button--secondary:hover, .button:not([class*="button--"]):hover { background: var(--color-brand); color: var(--color-on-dark); }
.section--dark .button--secondary, .section--dark .button:not([class*="button--"]) { color: var(--color-on-dark); }
.section--dark .button--secondary:hover { background: var(--color-on-dark); color: var(--color-brand); }
.button--hero { background: var(--color-cta); color: var(--color-cta-ink); border-color: var(--color-cta); }
.button--hero:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: var(--color-cta-ink); }
.button:active { transform: translateY(1px); }

/* --- header -------------------------------------------------------------- */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--header-border); position: sticky; top: 0; z-index: 50; box-shadow: var(--header-shadow, none); }
.site-header__inner { display: flex; align-items: center; gap: .75rem; min-height: var(--header-height); flex-wrap: wrap; }
.brand { margin-right: auto; display: inline-flex; align-items: center; padding-block: .6rem; }
.brand img { height: var(--logo-height); width: auto; }
.site-header__phone { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; padding: .5rem; border-radius: var(--button-radius); white-space: nowrap; }
.site-header__phone span { display: none; }
.site-header__phone .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 2px solid currentColor; border-radius: var(--button-radius); color: inherit; padding: .45rem .7rem; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; text-transform: var(--ui-case); letter-spacing: var(--ui-tracking); cursor: pointer; }
.nav-toggle .icon { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon + .icon { display: none; }
.nav-toggle[aria-expanded="true"] .icon { display: none; }
.nav-toggle[aria-expanded="true"] .icon + .icon { display: block; }
.site-nav { display: none; flex-basis: 100%; padding: .5rem 0 1rem; }
.nav-open .site-nav, .no-js .site-nav { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__item { border-top: 1px solid var(--header-border); display: flex; flex-wrap: wrap; align-items: center; }
.site-nav__item > a { flex: 1; display: block; padding: .8rem 0; color: inherit; text-decoration: none; font-family: var(--font-ui); font-weight: var(--nav-weight, 600); font-size: var(--nav-size, 1rem); text-transform: var(--nav-case, none); letter-spacing: var(--nav-tracking, 0); }
.site-nav__item.is-active > a { color: var(--nav-active, var(--color-accent-ink)); }
.site-nav__item > a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--color-accent); }
/* At least 24px each way at every width (WCAG 2.5.8): the desktop rule narrows the padding, not the button. */
.site-nav__more { background: none; border: 0; color: inherit; padding: .6rem; cursor: pointer; border-radius: var(--button-radius); display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; min-height: 1.5rem; }
.site-nav__more .icon { transition: transform .15s; }
.site-nav__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__submenu { display: none; flex-basis: 100%; list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; border-left: 2px solid var(--color-accent); }
.is-open > .site-nav__submenu, .no-js .site-nav__submenu { display: block; }
.site-nav__submenu a { display: block; padding: .5rem 0; color: inherit; text-decoration: none; font-family: var(--font-ui); font-size: .95rem; }
.site-nav__submenu a[aria-current="page"], .site-nav__submenu a:hover { color: var(--nav-active, var(--color-accent-ink)); }
/* The Blog panel (build/templates.mjs, blogMenu): two short groups, each a plain label over a list; one list on phones, two columns on desktop. */
.site-nav__group ul { list-style: none; margin: 0; padding: 0; }
.site-nav__group + .site-nav__group { margin-top: .75rem; }
.site-nav__group-label { margin: .4rem 0 .1rem; font-family: var(--font-ui); font-size: var(--ui-size, .75rem); font-weight: 600; letter-spacing: var(--ui-tracking, .08em); text-transform: var(--ui-case, uppercase); opacity: .75; }
.site-nav__submenu a.site-nav__all { font-weight: 600; }
.site-nav__cta { margin-top: 1rem; width: 100%; }
/* The wide desktop panel (menus.json `panel`, build/templates.mjs navPanel) never shows on a phone, whose accordion is the item's `children`; the 64em block below opens it. */
.site-nav__panel { display: none; }
@media (min-width: 30em) { .site-header__phone span { display: inline; } }
@media (min-width: 64em) {
  .site-header__inner { flex-wrap: nowrap; gap: 1.25rem; position: relative; }
  .brand { margin-right: 0; }
  .site-header__phone { order: 3; }
  .nav-toggle { display: none; }
  /* The list and its items reach the header's bottom edge, so every drop-down hangs from the header itself and the pointer never crosses a gap on the way down. */
  .site-nav, .no-js .site-nav { display: flex; align-items: center; align-self: stretch; gap: 1rem; flex: 1; justify-content: flex-end; padding: 0; order: 2; }
  .site-nav__list { display: flex; align-self: stretch; gap: clamp(.25rem, 1vw, 1rem); }
  .site-nav__item { border: 0; position: relative; flex-wrap: nowrap; }
  .site-nav__item > a { padding: .5rem .35rem; white-space: nowrap; }
  .site-nav__more { padding: .35rem .1rem; }
  .site-nav__submenu, .no-js .site-nav__submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; max-width: 22rem; background: var(--submenu-bg, var(--color-surface)); color: var(--submenu-ink, var(--color-ink)); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .5rem; margin: 0; border-left-width: 1px; z-index: 60; }
  .site-nav__item--parent:hover > .site-nav__submenu, .site-nav__item--parent:focus-within > .site-nav__submenu, .site-nav__item--parent.is-open > .site-nav__submenu { display: block; }
  .site-nav__submenu a { padding: .5rem .75rem; border-radius: var(--radius); white-space: normal; }
  .site-nav__submenu a:hover { background: var(--color-tint); }
  .site-nav__submenu--panel { left: auto; right: 0; min-width: 36rem; max-width: 44rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 1rem; padding: .75rem; }
  .site-nav__item--parent:hover > .site-nav__submenu--panel, .site-nav__item--parent:focus-within > .site-nav__submenu--panel, .site-nav__item--parent.is-open > .site-nav__submenu--panel { display: grid; }
  .site-nav__group + .site-nav__group { margin-top: 0; }
  .site-nav__group-label { margin: 0 0 .15rem; padding: .25rem .75rem; color: var(--color-muted); opacity: 1; }
  .site-nav__submenu a.site-nav__all { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--color-line); border-top-left-radius: 0; border-top-right-radius: 0; }
  .site-nav__cta { margin: 0; width: auto; order: 4; }
  .site-header__phone { padding: .5rem .25rem; }
  /* The wide panel (menus.json `panel`, build/templates.mjs navPanel; Practice Areas today): hung from the header's bottom edge and about 56rem wide, never a takeover; two columns with a line under each link, the aside links under the right column, the item's own page and the header's button at the foot. Its item's phone list is hidden here instead. */
  .site-nav__item--panel { position: static; }
  .site-nav__item--panel > .site-nav__submenu, .site-nav__item--panel:hover > .site-nav__submenu, .site-nav__item--panel:focus-within > .site-nav__submenu, .site-nav__item--panel.is-open > .site-nav__submenu { display: none; }
  .site-nav__panel { display: none; position: absolute; top: 100%; right: 0; width: min(56rem, 100%); max-height: calc(100vh - var(--header-height) - 1rem); overflow-y: auto; background: var(--submenu-bg, var(--color-surface)); color: var(--submenu-ink, var(--color-ink)); border: 1px solid var(--color-line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem 1.5rem; z-index: 60; text-align: left; }
  .site-nav__item--parent:hover > .site-nav__panel, .site-nav__item--parent:focus-within > .site-nav__panel, .site-nav__item--parent.is-open > .site-nav__panel { display: block; }
  .site-nav__panel-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 1.5rem; }
  .site-nav__panel-side { display: flex; flex-direction: column; gap: .75rem; border-left: 1px solid var(--color-line); padding-left: 1.5rem; }
  .site-nav__panel .site-nav__group-label { margin: 0 0 .1rem; padding: 0 .6rem; }
  .site-nav__group-intro { margin: 0 0 .5rem; padding: 0 .6rem; font-family: var(--font-ui); font-size: .85rem; line-height: 1.4; color: var(--color-muted); }
  .site-nav__panel ul { list-style: none; margin: 0; padding: 0; }
  .site-nav__panel a { display: block; padding: .3rem .6rem; border-radius: var(--radius); color: inherit; text-decoration: none; font-family: var(--font-ui); font-size: .95rem; line-height: 1.35; }
  .site-nav__panel a:hover { background: var(--color-tint); }
  .site-nav__panel a[aria-current="page"] { color: var(--color-accent-ink); }
  .site-nav__name { display: block; font-weight: 600; }
  .site-nav__summary { display: block; margin-top: .05rem; font-size: .78rem; line-height: 1.35; color: var(--color-muted); }
  .site-nav__aside { border-top: 1px solid var(--color-line); padding-top: .75rem; }
  .site-nav__aside a { font-weight: 600; }
  .site-nav__panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--color-line); }
  .site-nav__panel-foot .site-nav__all { color: var(--color-accent-ink); }
  .site-nav__panel .button { margin: 0; white-space: nowrap; }
}
@media (min-width: 64em) and (max-width: 80em) { .site-nav__cta { display: none; } }

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: var(--hero-ink); background: var(--hero-band-bg); background-image: var(--hero-band-image); background-size: cover; background-position: center; text-align: var(--hero-align); }
.hero--photo { background: var(--hero-bg); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-image-position, center); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__inner { padding-block: clamp(2.5rem, 7vw, 4.5rem); max-width: var(--hero-max, 52rem); margin-inline: var(--hero-margin, auto); display: flow-root; --focus: var(--color-accent); }
.hero--home .hero__inner { padding-block: clamp(3.5rem, 12vw, 8rem); min-height: var(--hero-min-height, 0); display: flex; flex-direction: column; justify-content: center; }
.hero__kicker { font-family: var(--font-ui); font-size: var(--ui-size); font-weight: var(--ui-weight); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--kicker-color); margin: 0 0 1rem; }
.hero__kicker a { color: inherit; text-decoration: none; }
.hero__kicker a:hover { text-decoration: underline; }
.hero__title { color: var(--hero-ink); font-size: var(--display-size); font-weight: var(--display-weight, var(--heading-weight)); margin-bottom: .6rem; }
.hero--home .hero__title { font-size: var(--display-size-home, var(--display-size)); letter-spacing: var(--display-tracking, var(--heading-tracking)); }
.hero__sub { font-family: var(--font-heading); font-size: 1.2rem; color: var(--kicker-color); margin: 0 0 .6rem; }
.hero__lede { font-size: 1.1rem; max-width: 40rem; margin: .5rem 0 0; opacity: .92; }
.hero--photo .hero__lede { color: var(--hero-ink); }
.hero__meta { font-family: var(--font-ui); font-size: .95rem; opacity: .85; margin: .5rem 0 0; }
.hero__actions { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: var(--hero-actions-align, flex-start); }
.hero[style], .hero--band .hero__inner { }
.hero--post .hero__inner, .hero--profile .hero__inner { max-width: 46rem; }
.hero--post .hero__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
@media (min-width: 64em) { .hero--home .hero__inner { padding-block: clamp(5rem, 14vw, 10rem); } }

/* --- sidebar card -------------------------------------------------------- */
.sidebar-card { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 1.5rem; border-top: 4px solid var(--color-accent); }
.sidebar-card > :first-child { margin-top: 0; }
.sidebar-card h2, .sidebar-card h3, .sidebar-card h4 { font-size: 1.2rem; margin-bottom: .75rem; }
/* The card's own link paragraphs (an attorney each) are rows with a rule and an arrow. Only the card's direct children: a link inside the form's sentences (the chat offer, the phone in the note) is an ordinary link. */
.sidebar-card > p:has(> a:only-child:not(.button)), .aside-band__lead > p:has(> a:only-child:not(.button)) { margin: 0; }
.sidebar-card > p > a:only-child:not(.button), .aside-band__lead > p > a:only-child:not(.button) { display: block; padding: .5rem 0; border-bottom: 1px solid var(--rule-color); text-decoration: none; font-weight: 600; font-family: var(--font-ui); }
.sidebar-card > p > a:only-child:not(.button)::after, .aside-band__lead > p > a:only-child:not(.button)::after { content: " →"; color: var(--color-accent-ink); }
.sidebar-card > p > a:only-child:not(.button):hover, .aside-band__lead > p > a:only-child:not(.button):hover { color: var(--color-accent-ink); }
.sidebar-card .contact-form { margin-top: 1.25rem; }

/* --- forms --------------------------------------------------------------- */
.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.contact-form .required { color: var(--color-required, #a3321f); }
.contact-form input, .contact-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--color-line-strong, var(--color-muted)); border-radius: var(--radius); background: var(--color-surface); color: var(--color-ink); font-family: var(--font-ui); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-brand); outline: 3px solid var(--color-focus-soft, transparent); outline-offset: 0; }
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form .form-note { font-size: .85rem; color: var(--color-muted); margin: .5rem 0 1rem; }
.contact-form button { width: 100%; }
.contact-form .field--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .field--verify { min-height: 65px; }
.contact-form .form-status { margin: 0 0 .75rem; font-family: var(--font-ui); font-size: .95rem; }
.contact-form .form-status:empty { display: none; }
.contact-form .form-status--error { color: var(--color-required, #a3321f); font-weight: 600; }
.contact-form button:disabled { opacity: .6; cursor: progress; }
@media (min-width: 48em) { .contact-form:not(.contact-form--compact) button { width: auto; } }
/* The sidebar's form is the narrow one: tighter rows, a shorter message box and a smaller note, so the card stands no taller than it must beside the copy. */
.contact-form--compact .field { margin-bottom: .75rem; }
.contact-form--compact textarea { min-height: 5rem; }
.contact-form--compact .form-alt, .contact-form--band .form-alt { font-size: .9rem; margin: .25rem 0 .6rem; }
.contact-form--compact .form-note { font-size: .8rem; line-height: 1.45; }

/* --- cards: practice areas ----------------------------------------------- */
/* A tile is a photo, a title and one line on what the area covers; the whole tile is the link.
   Phones get a compact row per area (thumbnail beside the words) so nine areas are a scan, not a
   scroll; from 40em the tiles stand two across, from 64em three across, or four across when the
   set divides by four (`path-grid--4`, set by the template). A short last row is centred instead
   of left hanging: the grid has twice the tracks it needs, every tile spans two, and a leftover
   starts a track in. */
.path-grid, .post-grid, .team-grid, .gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.path-grid { gap: .75rem; }
.path-card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 1rem; text-decoration: none; color: inherit; background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s; }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.path-card__media { position: relative; margin: 0; align-self: stretch; min-height: 6.5rem; overflow: hidden; background: var(--color-tint); }
.path-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.path-card:hover .path-card__media img { transform: scale(1.04); }
.path-card__body { display: block; padding: .85rem 1rem .85rem 0; }
.path-card__title { display: block; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.1rem; line-height: 1.25; color: var(--color-brand); text-wrap: balance; }
.path-card:not(.path-card--static) .path-card__title::after { content: " \2192"; color: var(--color-accent-ink); white-space: nowrap; }
.path-card:hover .path-card__title { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: .2em; }
.path-card__summary { display: block; margin-top: .3rem; font-size: .92rem; line-height: 1.45; color: var(--color-muted); }
.path-card--static { opacity: .9; }
.path-grid__note { margin: 1.25rem 0 0; font-size: .95rem; color: var(--color-muted); }
.path-grid__note p { margin: 0; }
@media (min-width: 40em) {
  .path-grid { gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-grid > li { grid-column: span 2; }
  .path-grid > li:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  .path-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .path-card__media { aspect-ratio: var(--card-image-ratio, 3 / 2); min-height: 0; align-self: auto; }
  .path-card__body { padding: 1rem 1.15rem 1.15rem; flex: 1; }
  .path-card__title { font-size: 1.2rem; }
}
@media (min-width: 64em) {
  .path-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .path-grid:not(.path-grid--4) > li:last-child:nth-child(odd) { grid-column: span 2; }
  .path-grid:not(.path-grid--4) > li:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
  .path-grid:not(.path-grid--4) > li:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  .path-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-grid--4 > li { grid-column: auto; }
}

/* --- press strip --------------------------------------------------------- */
/* Outlets that have quoted the firm, each a link to the piece: the outlet's mark where the item has
   a logo file (public/assets/press/; each file's source and licence are in SOURCES.md there),
   otherwise the name set as a wordmark in type. The logos share one band, in grey until a pointer
   or focus finds them: a wide mark fits a box one line high, a square or stacked one (`tall`) a box
   half as high again, and the two kinds centre on each other. The row drifts on its own, stops under
   a pointer or keyboard focus, and under reduced motion wraps and stands still. */
.press { text-align: center; }
.press__title { font-family: var(--font-ui); font-size: var(--ui-size); font-weight: var(--ui-weight); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--color-accent-ink); margin: 0 0 .6rem; }
.press__lede { max-width: 42rem; margin: 0 auto 1.5rem; color: var(--color-muted); }
.press__lede p { margin: 0; }
/* A quote from one of the outlets closes the strip (the press block's `quote`). */
.press .press__quote { margin-top: 2.25rem; }
.press__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.press__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; animation: press-drift 48s linear infinite; }
.press__list > li { margin-right: 3.5rem; }
.press__track:hover .press__list, .press__track:focus-within .press__list, .press--paused .press__list { animation-play-state: paused; }
/* The strip's own pause button (WCAG 2.2.2): a small text button under the outlets; pressed, the strip stands still until it is pressed again. */
.press__controls { margin: .6rem 0 0; }
.press__pause { background: none; border: 1px solid transparent; padding: .3rem .7rem; font: inherit; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .04em; color: var(--color-muted); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; border-radius: var(--button-radius); min-height: 1.5rem; }
.press__pause:hover { color: var(--color-brand); }
.press__pause[aria-pressed="true"] { text-decoration: none; border-color: var(--color-line-strong, var(--color-muted)); color: var(--color-brand); }
.press__item { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; text-decoration: none; color: var(--color-muted); white-space: nowrap; }
.press__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.45rem; letter-spacing: var(--heading-tracking); line-height: 1.1; }
.press__note { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.press__logo { display: block; height: 1.75rem; width: auto; max-width: 11rem; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.press__logo--tall { height: 2.75rem; }
a.press__item:hover .press__logo, a.press__item:focus-visible .press__logo { filter: none; opacity: 1; }
a.press__item:hover, a.press__item:focus-visible { color: var(--color-brand); }
.section--press { padding-block: clamp(2rem, 4vw, 3rem); }
@keyframes press-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .press__track { -webkit-mask-image: none; mask-image: none; }
  .press__controls { display: none; }
  .press__list { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; }
  .press__list > li { margin: 0 1.5rem; }
  .press__list > li[aria-hidden="true"] { display: none; }
}

/* --- steps ---------------------------------------------------------------- */
.section__lede { max-width: 46rem; margin: -.5rem 0 1.5rem; color: var(--color-muted); }
.section__lede p { margin: 0; }

/* --- cards: posts -------------------------------------------------------- */
/* A wrapping row, not a grid, so the cards of a short last row widen to fill it and no card sits beside white space. The page size (site.json, posts_per_page) is a multiple of the one to four columns a row holds, so only the archive's final page ever has a short row. A card that widens past 40rem (one card filling a row) is laid out across, image beside text, instead of down. */
.post-grid { display: flex; flex-wrap: wrap; }
.post-card { display: flex; flex: 1 1 17rem; min-width: 0; container-type: inline-size; }
.post-card__link { display: flex; flex: 1; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__media { margin: 0; aspect-ratio: 1.91 / 1; max-height: 14rem; background: var(--color-tint); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: block; height: 100%; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-deep)); }
.post-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem 1.25rem; flex: 1; }
.post-card__category { font-family: var(--font-ui); font-size: var(--ui-size); font-weight: var(--ui-weight); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--color-accent-ink); }
.post-card__title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; line-height: 1.3; color: var(--color-brand); text-wrap: balance; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: .2em; }
.post-card__date { font-family: var(--font-ui); font-size: .85rem; color: var(--color-muted); margin-top: auto; }
@container (min-width: 40rem) {
  .post-card__link { flex-direction: row; }
  .post-card__media { flex: 0 0 40%; aspect-ratio: auto; max-height: none; min-height: 12rem; }
  .post-card__body { padding: 1.5rem 1.75rem; justify-content: center; }
  .post-card__title { font-size: 1.45rem; }
  .post-card__date { margin-top: .25rem; }
}
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }
.pagination__status { margin: 0; font-family: var(--font-ui); color: var(--color-muted); }

/* --- cards: team --------------------------------------------------------- */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
.team-card { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; }
.team-card__media { margin: 0; aspect-ratio: 4 / 5; background: var(--color-tint); overflow: hidden; }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card__initials { display: grid; place-items: center; height: 100%; font-family: var(--font-heading); font-size: 3rem; color: var(--color-accent-ink); background: linear-gradient(160deg, var(--color-tint), var(--color-paper)); }
.team-card__body { padding: 1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.team-card__name { font-size: 1.25rem; margin: 0; }
.team-card__name a { color: inherit; text-decoration: none; }
.team-card__name a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.team-card__title { margin: 0; color: var(--color-muted); font-family: var(--font-ui); font-size: .95rem; }
.team-card__more { margin: .5rem 0 0; font-family: var(--font-ui); font-size: .95rem; font-weight: 600; }
.team-card__more a { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.team-card__more a:hover { text-decoration: underline; }
.team-card__bio { margin-top: .75rem; border-top: 1px solid var(--rule-color); padding-top: .5rem; font-size: .95rem; }
.team-card__bio summary { cursor: pointer; font-family: var(--font-ui); font-weight: 600; color: var(--color-brand); padding: .4rem 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.team-card__bio summary::-webkit-details-marker { display: none; }
.team-card__bio summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--color-accent-ink); }
.team-card__bio[open] summary::after { content: "−"; }
.team-card__bio .prose { padding-top: .5rem; }
.team-card__bio .prose p:first-child a[href^="tel:"] { font-weight: 600; }

/* --- media + text, profile ----------------------------------------------- */
.media-text { display: grid; gap: 2rem; align-items: start; }
.media-text__media { margin: 0; }
.media-text__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.media-text__media--circle img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 48em) {
  .media-text { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; }
  .media-text--right .media-text__media { order: 2; }
}
.profile__grid { display: grid; gap: 2.5rem; }
.profile__card { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 1.5rem; }
.profile__media { margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--card-radius) var(--card-radius) 0 0; background: var(--color-tint); }
.profile__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile__title { font-family: var(--font-ui); font-size: var(--ui-size); font-weight: var(--ui-weight); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--color-accent-ink); margin: 0 0 1rem; }
.profile__label { font-family: var(--font-ui); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin: 1.25rem 0 .4rem; font-weight: 600; }
.profile__card ul { list-style: none; margin: 0; padding: 0; }
.profile__card li { padding: .35rem 0; border-bottom: 1px solid var(--rule-color); font-size: .95rem; }
.profile__card li:last-child { border-bottom: 0; }
.profile__contact a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-ui); font-weight: 600; overflow-wrap: anywhere; }
.profile__contact a:hover { text-decoration: underline; }
@media (min-width: 60em) {
  .profile__grid { grid-template-columns: 20rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .profile__card { position: sticky; top: calc(var(--header-height) + 1rem); }
}

/* --- contact page -------------------------------------------------------- */
.contact__grid { display: grid; gap: 2.5rem; }
.contact__form { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 1.5rem; border-top: 4px solid var(--color-accent); }
.contact__form-title { font-size: 1.4rem; margin-bottom: 1rem; }
.office__title { font-size: 1.15rem; margin: 0 0 .5rem; }
.office__address { font-style: normal; margin: 0 0 .75rem; }
.office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.office__list li { display: flex; gap: .6rem; align-items: flex-start; }
.office__list .icon { margin-top: .2rem; color: var(--color-accent-ink); }
.contact__intro .office { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-color); }
@media (min-width: 60em) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } .contact__form { padding: 2rem; } }

/* --- quote, FAQ, call to action, gallery --------------------------------- */
.section--quote { text-align: center; }
.quote { margin: 0 auto; max-width: 40rem; }
.quote .icon--quote { width: 2rem; height: 2rem; color: var(--color-accent); margin: 0 auto .75rem; }
.quote blockquote { margin: 0; font-family: var(--font-heading); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.4; color: var(--color-brand); font-style: var(--quote-style, italic); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 1rem; font-family: var(--font-ui); font-size: var(--ui-size); font-weight: var(--ui-weight); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--color-accent-ink); }
.quote figcaption::before { content: "— "; }
.faq__item { border-top: 1px solid var(--rule-color); }
.faq__item:last-child { border-bottom: 1px solid var(--rule-color); }
.faq__item summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.15rem; color: var(--color-brand); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; line-height: 1; color: var(--color-accent-ink); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 0 1.25rem; }
.cta { background: var(--cta-bg, var(--color-brand)); color: var(--color-on-dark); --color-link: var(--color-on-dark); --focus: var(--color-accent); }
.cta__inner { display: grid; gap: 1.25rem; align-items: center; text-align: center; max-width: 52rem; }
.cta__inner h2 { color: var(--color-on-dark); margin: 0; }
.cta__inner p { margin: 0; font-size: 1.05rem; opacity: .95; }
.cta__inner .button { background: var(--color-cta); color: var(--color-cta-ink); border-color: var(--color-cta); }
.cta__inner .button:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); }
.gallery { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* --- client reviews (the home page's "What clients say" block) ----------- */
.reviews__intro { max-width: 46rem; margin: -.5rem 0 1.75rem; color: var(--color-muted); }
/* On a phone the cards are one row that scrolls sideways and snaps a card at a time, bleeding to the screen's edge; from tablet width up they are a grid. */
.reviews { list-style: none; margin: 0 -1rem; padding: .25rem 1rem .75rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 22rem); gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; }
.reviews > li { scroll-snap-align: start; display: flex; min-width: 0; }
.review { position: relative; margin: 0; display: flex; flex-direction: column; gap: .75rem; width: 100%; padding: 1.5rem; background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: box-shadow .15s ease, transform .15s ease; }
/* The "via Google" line is the card's link to the firm's reviews there; its ::after covers the whole card, so the card is the click target and the ring on focus is the card's. */
.review__link { color: inherit; text-decoration: none; }
.review__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.review__link:hover { color: var(--color-brand); text-decoration: underline; }
.review__link:focus-visible { outline: none; }
.review:has(.review__link:hover) { box-shadow: var(--card-shadow-hover, 0 10px 24px rgba(0, 0, 0, .12)); transform: translateY(-2px); }
.review:has(.review__link:focus-visible) { outline: 3px solid var(--focus, var(--color-brand)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .review { transition: none; } .review:has(.review__link:hover) { transform: none; } }
.review__stars { display: inline-flex; gap: .15rem; color: var(--star-color, var(--kicker-color, var(--color-accent))); }
.review__stars .icon { width: 1.1rem; height: 1.1rem; }
.review__stars .icon--off { opacity: .3; }
.review__quote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.55; color: var(--color-ink); overflow-wrap: anywhere; }
.review__quote p { margin: 0 0 .6em; }
.review__quote p:last-child { margin-bottom: 0; }
.review__meta { font-family: var(--font-ui); font-size: .85rem; color: var(--color-muted); }
.review__meta > * + *::before { content: " · "; }
.review__author { font-weight: var(--strong-weight, 650); color: var(--color-brand); }
@media (min-width: 48em) { .reviews { margin: 0; padding: 0; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; overflow: visible; scroll-snap-type: none; } }
@media (min-width: 64em) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reviews > li:last-child:nth-child(3n + 1) { grid-column: 2; } }

/* --- posts --------------------------------------------------------------- */
.post__body { padding-block: 2rem var(--section-pad); }
.post__figure { margin: 0 0 2rem; }
.post__figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post .prose { font-size: 1.1rem; }
.related .section__title { text-align: center; }
@media (min-width: 48em) { .post__body { padding-top: 3rem; } }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--footer-bg, var(--color-brand-deep)); color: var(--color-on-dark); --color-link: var(--color-on-dark); --focus: var(--color-accent); margin-top: auto; font-size: .95rem; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-on-dark, var(--color-accent)); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer__brand img { height: 5.5rem; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { font-family: var(--font-ui); font-size: var(--ui-size); letter-spacing: var(--ui-tracking); text-transform: var(--ui-case); color: var(--color-accent-on-dark, var(--color-accent)); max-width: 20rem; }
.site-footer__title, .site-footer .office__title { font-size: .85rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent-on-dark, var(--color-accent)); margin: 0 0 .75rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li, .site-footer__areas li { padding: .25rem 0; }
.site-footer .office__list .icon { color: var(--color-accent-on-dark, var(--color-accent)); }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--color-on-dark-muted, rgba(255,255,255,.3)); border-radius: 50%; }
.social a:hover { border-color: var(--color-accent); background: rgba(255,255,255,.06); }
.social .icon { width: 1.2rem; height: 1.2rem; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-family: var(--font-ui); font-size: .85rem; color: var(--color-on-dark-muted, rgba(255,255,255,.75)); }
.site-footer__bar p { margin: 0; }
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.4fr 1.2fr .8fr 1fr; gap: 3rem; } }
/* On a phone the footer stacks in one column; centred, it reads as the page's close rather than a list hanging off the left gutter. */
@media (max-width: 39.99em) {
  .site-footer__grid, .site-footer__bar { text-align: center; }
  .site-footer__brand img, .site-footer__brand p { margin-inline: auto; }
  .social, .site-footer__bar, .office__list li { justify-content: center; }
}

/* --- page frame ---------------------------------------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-main { flex: 1; }
@media print {
  .site-header, .site-footer, .skip-link, .cta, .section--quote, .contact-form, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* On a phone the logo gives up a fifth of its height so the brand, the phone and the menu button share one row. */
@media (max-width: 29.99em) { .brand img { height: calc(var(--logo-height) * .8); } .nav-toggle { padding: .4rem .55rem; } }

/* --- thank-you page ------------------------------------------------------ */
.hero--thanks { --hero-align: center; }
.hero--thanks .hero__inner { max-width: 52rem; }
.thanks__inner { max-width: 46rem; text-align: center; }
.thanks__mark { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-tint); color: var(--color-accent-ink); }
.thanks__mark .icon { width: 2.4rem; height: 2.4rem; }
.thanks__lede { font-family: var(--font-heading); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: var(--color-brand); margin: 0 auto 1.75rem; max-width: 38rem; text-wrap: balance; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; }
.thanks-next__title { text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 1.5rem; }
.step__num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-brand); color: var(--color-on-dark); font-family: var(--font-ui); font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.step__title { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--color-muted); }
.thanks__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; margin: 2.25rem 0 0; font-family: var(--font-ui); font-weight: 600; }
.thanks__links a { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.thanks__links a:hover { text-decoration: underline; }
