/*
 * Base styles: reset, typography, layout containers and the shared brand classes ported from
 * the prototype's src/styles.css. All values come from tokens.css.
 * Fonts: Barlow Condensed and Work Sans, self-hosted (../fonts, SIL Open Font License), latin
 * subset (covers French), as Google Fonts serves them to the prototype.
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/work-sans.woff2") format("woff2"); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

body {
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: var(--leading-tight);
}
h1 { font-size: var(--text-5xl); line-height: var(--text-5xl--line-height); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
/* Public pages: section headings as the prototype's <Heading> (4xl, 5xl on wide screens). */
:where(:root:has(.site-header)) h2 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); }
@media (min-width: 64rem) { :where(:root:has(.site-header)) h2 { font-size: var(--text-5xl); line-height: var(--text-5xl--line-height); } }
.section-lead { max-width: 48rem; margin-top: 0.75rem; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--muted-foreground); }

p + p { margin-top: 1em; }

:focus-visible { outline: var(--ring-width-strong) solid var(--ring); outline-offset: var(--ring-offset); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--ink-foreground);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.public-container {
  width: 100%;
  max-width: var(--container-7xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.workspace-container {
  width: 100%;
  max-width: var(--container-5xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading-width { max-width: var(--container-3xl); }

/* ---------- Brand classes (from the prototype) ---------- */
.surface-ink { background-color: var(--ink); color: var(--ink-foreground); }
/* Gold text is --gold-text on light surfaces and the brighter --gold on dark ones. */
.surface-ink :is(.eyebrow, .card-subtitle, .action-link), .surface-ink .rich-text :is(a:not(.btn-brand), h3) { color: var(--gold); }
.overlay-ink { background-image: var(--gradient-ink); }
.bg-gold-gradient { background-image: var(--gradient-gold); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--gold-text);
}

.card-subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  color: var(--gold-text);
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  color: var(--gold-text);
  text-decoration: none;
}
/* The prototype's ActionLabel: a trailing arrow that nudges right on hover. */
.action-link::after { content: ""; flex-shrink: 0; width: 1rem; height: 1rem; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate 0.15s; }
a:hover > .action-link::after, a.action-link:hover::after { translate: 0.25rem 0; }

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  text-decoration: none;
  background-image: var(--gradient-gold);
  color: var(--gold-foreground);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, filter var(--duration-fast) ease;
}
.btn-brand:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-gold); filter: brightness(1.03); }
.btn-brand:active { transform: translateY(0); }
.btn-brand[data-variant="dark"] { background-image: none; background-color: var(--ink); color: var(--ink-foreground); }
.btn-brand[data-size="lg"] { padding: 1.05rem 2.5rem; font-size: 1.15rem; }

/* ---------- Placeholder hero (milestone 1) ---------- */
.hero { padding-block: 6rem; }
.hero h1 { margin-block: 0.5rem 1rem; }

/* ---------- Error page ---------- */
.error-page { padding-block: 5rem; max-width: var(--container-3xl); }
.error-page h1 { margin-block: 0.5rem 1rem; }
.error-page p:last-child { margin-top: 2rem; }
.error-page__ref, .toast__ref { font-size: var(--text-sm); color: var(--muted-foreground); }

/* ---------- Toasts (COMPONENTS.md: Sonner replacement) ---------- */
.toaster {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 50;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
}
.toast {
  padding: 0.75rem 1rem;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
}
.toast[data-kind="error"] { border-color: var(--destructive-border); }

/* ---------- htmx indicators (replaces htmx's runtime CSS, disabled for the CSP) ---------- */
.htmx-indicator { opacity: 0; visibility: hidden; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; visibility: visible; transition: opacity var(--duration-base) ease-in; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 40rem) {
  h1 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); }
}

/* Forms */
.stack > * + * { margin-top: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
}
.field input:focus-visible { outline-offset: 0; }
.form-note { margin-top: 1rem; color: var(--muted-foreground); }
.form-note strong { color: var(--foreground); }
.form-alert {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--destructive-border);
  border-radius: var(--radius-md);
}

/* Sign-in */
.auth-page { display: grid; place-items: center; min-height: 70vh; padding: 3rem 1rem; }
.auth-card { width: min(100%, 26rem); }
.auth-card h1 { font-size: var(--text-3xl); margin-block: 0.25rem 1rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1.5rem 1rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
/* Google's sign-in branding: white button, standard "G", plain label. */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid oklch(0.75 0.005 260);
  border-radius: var(--radius-full);
  background-color: #fff;
  color: #1f1f1f;
  font-weight: 500;
  text-decoration: none;
}
.btn-google:hover { background-color: oklch(0.97 0.003 260); }
.backoffice-placeholder { padding-block: 3rem; }
.backoffice-placeholder form { margin-top: 1.5rem; }

/* Impersonation ("sign in as") banner: on every page while it lasts. */
.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
  background-color: var(--ink);
  color: var(--ink-foreground);
  font-size: var(--text-sm);
}
.impersonation-banner p { margin: 0; }
.impersonation-banner button {
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  background: transparent;
  color: inherit;
  font-weight: 600;
}
.sign-in-as { list-style: none; padding: 0; margin-block: 1rem 2rem; max-width: 36rem; }
.sign-in-as li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--border); }
.sign-in-as button { border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.3rem 0.9rem; background: var(--card); }

/* Photo library */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.media-library h1, .media-edit h1 { margin-block: 0.25rem 1.5rem; }
.media-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.media-upload label { font-weight: 600; }
.media-upload .form-note { flex-basis: 100%; margin: 0; }
.upload-results { margin-block: 1rem; padding-left: 1.25rem; }
.text-error { color: var(--destructive); }
.media-search { display: flex; gap: 0.5rem; margin-block: 1.5rem; max-width: 32rem; }
.media-search input { flex: 1; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.media-search button, .pager a:not(.btn) { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--card); }
.media-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.media-grid li { display: grid; gap: 0.35rem; align-content: start; }
.media-grid a { display: grid; gap: 0.35rem; color: inherit; text-decoration: none; }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); background: var(--muted); }
.media-name { font-size: var(--text-sm); overflow-wrap: anywhere; }
.badge { justify-self: start; padding: 0.1rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; background: var(--muted); color: var(--muted-foreground); }
.badge[data-tone="warning"] { background: oklch(0.93 0.07 85); color: oklch(0.38 0.08 70); }
.pager { display: flex; gap: 0.75rem; margin-block: 2rem; }
.media-edit-layout { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .media-edit-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.media-preview { margin: 0; }
.media-preview img { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--muted); }
.media-preview figcaption { margin-top: 0.5rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.field textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-md); background-color: var(--background); font: inherit; }
.field-hint { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.checkbox { display: flex; gap: 0.5rem; align-items: center; }
.form-success { margin-block: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--muted); }
.btn-danger { border: 1px solid var(--destructive); border-radius: var(--radius-full); padding: 0.5rem 1.1rem; background: transparent; color: var(--destructive); font-weight: 600; }

/* Agent Roster */
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.page-heading h1 { margin: 0.25rem 0; }
.roster.narrow { max-width: 40rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1rem 1.5rem; }
.filters input, .filters select { padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.filters input { flex: 1 1 16rem; }
.filters button, .account-panel button:not(.btn-danger), .sign-in-as button { padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.data-table th { text-align: left; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); padding: 0.5rem; }
.data-table td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.5rem; vertical-align: middle; }
@media (max-width: 50rem) {
  .data-table thead { display: none; }
  .data-table tr { display: grid; gap: 0.25rem; padding-block: 0.75rem; border-bottom: 1px solid var(--border); }
  .data-table td { border: 0; padding: 0; }
}
.person-cell { display: flex; align-items: center; gap: 0.75rem; }
.person-name { font-weight: 600; }
.muted { color: var(--muted-foreground); }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.avatar-lg { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.avatar-empty { background: var(--muted); }
.badge[data-status="Invited"] { background: oklch(0.93 0.06 240); color: oklch(0.38 0.08 250); }
.badge[data-status="Disabled"] { background: oklch(0.93 0.05 27); color: var(--destructive); }
.badge[data-status="Archived"] { background: var(--muted); color: var(--muted-foreground); }
.person-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .person-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }
.person-form fieldset, fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.person-form > fieldset > legend { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-bottom: 0.5rem; }
fieldset.field legend { font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.4rem; }
.field select { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-md); background-color: var(--background); }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.checkbox-grid { display: grid; gap: 0.35rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.profile-photo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.account-panel { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.account-panel h2 { margin: 0; font-size: var(--text-xl); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: var(--text-sm); }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.narrow-form { max-width: 48rem; }
.order-buttons { display: flex; gap: 0.35rem; }
.order-buttons button { min-width: 2.25rem; padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.hours-table { border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.25rem 0.75rem 0.25rem 0; text-align: left; }
.hours-table input { padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.field img { width: 100%; max-width: 12rem; height: auto; border-radius: var(--radius-md); }
.position-input { width: 4rem; padding: 0.3rem 0.4rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.members-table select { padding: 0.3rem 0.4rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.label { font-weight: 600; font-size: var(--text-sm); }
.danger-zone { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; justify-items: start; }
.danger-zone h2 { margin: 0; font-size: var(--text-xl); }
.ordered-list { padding: 0; list-style: none; counter-reset: item; }
.ordered-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.75rem; border-bottom: 1px solid var(--border); }
.ordered-list .order-buttons button { min-width: auto; }

/* ---------- Public site ---------- */
/* ---------- Public header (as the prototype's) ---------- */
/* It stays on screen, so in-page links (#support) stop below it. */
:root:has(.site-header) { scroll-padding-top: 5.5rem; }
@media (min-width: 48rem) { :root:has(.site-header) { scroll-padding-top: 7rem; } }
@media (min-width: 64rem) { :root:has(.site-header) { scroll-padding-top: 11rem; } }
.site-header { position: sticky; top: 0; z-index: 40; }
.site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--ink); color: var(--ink-foreground); }
@media (min-width: 64rem) { .site-header__bar { padding-inline: 2.5rem; } }
.site-logo img { display: block; width: auto; height: 3.5rem; }
@media (min-width: 48rem) { .site-logo img { height: 5rem; } }
@media (min-width: 64rem) { .site-logo img { height: 5.9rem; } }
.site-header__cta { justify-self: end; white-space: nowrap; }
@media (max-width: 30rem) { .site-header__cta { padding: 0.5rem 0.8rem; font-size: 0.75rem; letter-spacing: 0.08em; } }

/* The menu button and its panel, on narrow screens. */
.site-menu { justify-self: start; }
.site-menu summary { list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu > summary { display: flex; padding: 0.25rem; }
.site-menu__close, .site-menu[open] .site-menu__open { display: none; }
.site-menu[open] .site-menu__close { display: block; }
@media (min-width: 64rem) { .site-menu { visibility: hidden; } }
.site-menu__panel { position: absolute; inset-inline: 0; top: 100%; max-height: calc(100vh - 5rem); overflow-y: auto; background: var(--ink); color: var(--ink-foreground); border-top: 1px solid oklch(from var(--gold) l c h / 0.5); }
.site-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.site-menu__panel > ul > li { border-bottom: 1px solid var(--ink-border); }
.site-menu__panel a { color: inherit; text-decoration: none; }
.site-menu__link { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.site-menu__chevron { transition: rotate 0.15s; }
.site-menu__panel details[open] .site-menu__chevron { rotate: 180deg; }
.site-menu__panel details ul { padding-bottom: 0.5rem; }
.site-menu__panel details ul a { display: block; padding: 0.5rem 1.5rem 0.5rem 2.5rem; font-size: var(--text-sm); color: var(--ink-muted); }
.site-menu__panel details ul a:hover { color: var(--ink-foreground); }

/* The menu bar, on wide screens. */
.site-nav { display: none; background: var(--ink-raised); border-block: 1px solid oklch(from var(--gold) l c h / 0.5); }
@media (min-width: 64rem) { .site-nav { display: block; } }
.site-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__item + .site-nav__item::before { content: ""; width: 1px; height: 1rem; background: var(--ink-border); }
.site-nav__item > a { display: flex; align-items: center; gap: 0.25rem; padding: 0.75rem 1rem; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-foreground); text-decoration: none; transition: color 0.15s; }
@media (min-width: 80rem) { .site-nav__item > a { padding-inline: 1.25rem; } }
.site-nav__item > a:hover, .site-nav__item > a.is-current { color: var(--gold); }
.site-nav__dropdown { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 14rem; list-style: none; margin: 0; padding: 0.5rem 0; background: var(--ink); border-top: 2px solid var(--gold); box-shadow: var(--shadow-elevated); visibility: hidden; opacity: 0; transition: opacity 0.15s, visibility 0.15s; }
.site-nav__item:hover .site-nav__dropdown, .site-nav__item:focus-within .site-nav__dropdown { visibility: visible; opacity: 1; }
.site-nav__dropdown a { display: block; padding: 0.5rem 1.25rem; font-size: var(--text-sm); color: var(--ink-muted); text-decoration: none; }
.site-nav__dropdown a:hover { background: var(--ink-raised); color: var(--ink-foreground); }
.site-nav__dropdown a[aria-current] { color: var(--gold); }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--ink-border); }
main:has(> .home-offices:last-child) + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); padding-inline: 2rem; } }
.site-footer__logo { width: auto; height: 6rem; margin-bottom: 0.75rem; }
.site-footer__about { max-width: 24rem; margin-top: 1.5rem; font-size: var(--text-sm); color: var(--ink-muted); }
.site-footer__heading { font-size: var(--text-sm); letter-spacing: 0.24em; color: var(--gold); margin-bottom: 1.25rem; }
.site-footer__offices { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: var(--text-sm); }
.site-footer__email { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-size: var(--text-sm); }
.site-footer__email .icon { width: 1rem; height: 1rem; color: currentColor; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; padding: 1.5rem var(--gutter); border-top: 1px solid var(--ink-border); font-size: 0.75rem; color: var(--ink-muted); }
/* As the prototype's PageHero: py-16, py-20 on wide screens. */
.page-hero { padding-block: 4rem; }
@media (min-width: 64rem) { .page-hero { padding-block: 5rem; } }
.page-hero h1 { margin-top: 0.25rem; }
.page-hero h1 + p, .page-hero__lead { margin-top: 0.75rem; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero a { text-decoration: none; }
.section { padding-block: 3rem; }
.section h2 { margin-block: 2.5rem 1.25rem; }
.section h2:first-child { margin-top: 0; }
.section .eyebrow + h2 { margin-top: 0.25rem; }
.empty-state { padding-block: 4rem; text-align: center; color: var(--muted-foreground); }
.result-count { margin-block: 1rem; color: var(--muted-foreground); font-size: var(--text-sm); }
.directory-filters { display: grid; gap: 1rem; align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin-bottom: 1rem; }

.card-grid, .office-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.5rem; }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.office-grid { margin-top: 3rem; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
@media (min-width: 64rem) { .office-grid { grid-template-columns: repeat(3, 1fr); } }
.person-card { display: grid; gap: 0.2rem; align-content: start; }
.person-card a { display: grid; gap: 0.6rem; text-decoration: none; }
.card-photo, .person-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--muted); }
/* Office cards, as the prototype's: the whole card links to the office. */
.office-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); transition: border-color 0.15s; }
.office-card:hover { border-color: var(--gold); }
.office-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: scale 0.5s; }
.office-card:hover img { scale: 1.05; }
.office-card__body { padding: 1.5rem; }
.office-card h3 a { text-decoration: none; }
.office-card h3 a::after { content: ""; position: absolute; inset: 0; }
.office-card h3 a:hover { color: var(--gold-text); }
.office-card__line { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.office-card__line .icon { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--gold); }
.office-card__phone { position: relative; z-index: 1; margin-top: 0.5rem; font-weight: 500; color: var(--foreground); text-decoration: none; }
.office-card__phone:hover { color: var(--gold); }
.card-photo--empty { display: grid; place-items: center; font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 700; color: var(--gold-text); }
.team-image-frame { display: block; }
.team-image-frame--logo img { object-fit: contain; padding: 1.5rem; background: var(--card); border: 1px solid var(--border); }
.person-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.person-card a:hover .person-card__name, .office-card a:hover .person-card__name { color: var(--gold-text); }
.person-card__title { font-weight: 600; }
.person-card__meta { font-size: var(--text-sm); color: var(--muted-foreground); }
.person-card__office { display: flex; align-items: center; gap: 0.375rem; }
.person-card__office .icon { flex-shrink: 0; width: 0.875rem; height: 0.875rem; color: var(--gold); }

.profile-hero { padding-block: 3.5rem; }
.profile-hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) { .profile-hero__inner { grid-template-columns: 20rem 1fr; } }
.profile-photo { width: 100%; max-width: 20rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--ink-raised); display: block; }
.profile-hero h1 { margin-block: 0.25rem; }
.profile-hero a { text-decoration: none; }
.profile-title { font-size: var(--text-xl); color: var(--ink-muted); }
.designations { margin-top: 0.5rem; font-weight: 600; letter-spacing: 0.05em; color: var(--gold); }
.pill-link { display: inline-flex; margin-top: 0.75rem; padding: 0.25rem 1rem; border: 1px solid var(--gold); border-radius: var(--radius-full); color: var(--gold); font-weight: 600; font-size: var(--text-sm); }
.pill-link:hover { background: var(--gold); color: var(--gold-foreground); }
.contact-list { list-style: none; padding: 0; margin-block: 1.25rem; display: grid; gap: 0.4rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }
.muted-ink { color: var(--ink-muted); font-size: var(--text-sm); }
.social-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-links a { display: inline-block; padding: 0.3rem 0.9rem; border: 1px solid var(--ink-border); border-radius: var(--radius-full); font-size: var(--text-sm); }
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.social-links--light a { border-color: var(--border); }
.social-links--light a:hover { border-color: var(--gold-dark); color: var(--gold-text); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { padding: 0.25rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-sm); }
.service-areas { padding-left: 1.25rem; }
.service-areas li + li { margin-top: 0.35rem; }
/* As the prototype's RichText: relaxed lines, slightly softened text, gold links. */
.rich-text { line-height: var(--leading-relaxed); color: oklch(from var(--foreground) l c h / 0.85); }
.surface-ink .rich-text { color: inherit; }
.rich-text > * + * { margin-top: 1rem; }
.rich-text a:not(.btn-brand) { font-weight: 500; color: var(--gold-text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rich-text a:not(.btn-brand):hover { color: var(--foreground); }
.rich-text strong { font-weight: 600; color: var(--foreground); }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li + li { margin-top: 0.5rem; }
.rich-text ul, .rich-text ol { padding-left: 1.5rem; }
.rich-text h2, .rich-text h3, .rich-text h4 { color: var(--foreground); }
.rich-text h2 { margin-top: 3rem; font-size: var(--text-3xl); line-height: var(--leading-tight); }
@media (min-width: 64rem) { .rich-text h2 { font-size: var(--text-4xl); } }
.rich-text h3 { margin-top: 2.5rem; font-size: var(--text-2xl); color: var(--gold-text); }
.rich-text h4 { margin-top: 2rem; font-size: var(--text-xl); }
.rich-text > :first-child { margin-top: 0; }


/* Office pages, as the prototype's. */
.office-intro { display: grid; gap: 3rem; align-items: center; padding-block: 4rem; }
@media (min-width: 64rem) { .office-intro { grid-template-columns: 1fr 1fr; } }
.office-intro h2 { margin-top: 0.25rem; }
.office-intro__text { margin-top: 1.5rem; font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.office-lead-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.contact-lines li, .contact-lines a { display: flex; align-items: center; gap: 0.75rem; }
.contact-lines li:has(> span) { align-items: flex-start; }
.contact-lines a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--gold-text); }
.contact-lines .icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--gold); }
.contact-lines + .social-links { margin-top: 1rem; }
.office-strip { padding-bottom: 4rem; }
.office-strip .seal-divider { margin-bottom: 2.5rem; }
.seal-divider { display: flex; align-items: center; gap: 1rem; }
.seal-divider span { flex: 1; height: 1px; background: oklch(from var(--foreground) l c h / 0.25); }
.seal-divider .icon--seal { width: auto; height: 2rem; }
.filmstrip { position: relative; }
.filmstrip__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 0.5rem; }
.filmstrip__track::-webkit-scrollbar { display: none; }
.filmstrip__photo { flex-shrink: 0; width: auto; height: 11rem; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius-lg); scroll-snap-align: start; }
@media (min-width: 40rem) { .filmstrip__photo { height: 15rem; } }
.filmstrip picture { flex-shrink: 0; scroll-snap-align: start; }
.filmstrip__arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; translate: 0 -50%; border: 0; border-radius: 50%; background: var(--ink); color: var(--gold); box-shadow: var(--shadow-elevated); cursor: pointer; transition: scale 0.15s; }
.filmstrip__arrow:hover { scale: 1.05; }
.filmstrip__arrow[hidden] { display: none; }
.filmstrip__arrow--prev { left: 0.5rem; }
.filmstrip__arrow--next { right: 0.5rem; }
.office-band { padding-block: 4rem; border-top: 1px solid var(--border); background: var(--secondary); }
.office-band .card-grid { margin-top: 2rem; }
.office-agents .directory-filters { margin-top: 1.5rem; }
.office-contact__inner { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .office-contact__inner { grid-template-columns: 1fr 2fr; } }
.office-contact h2 { font-size: var(--text-4xl); }
.office-contact .contact-lines { margin-top: 1.5rem; }
.office-map { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius-lg); }
main:has(> .office-contact:last-child, > .faq:last-child, > .join-page:last-child) + .site-footer { margin-top: 0; }
/* People as the prototype's boxed cards (office pages). */
.card-grid--boxed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
@media (min-width: 64rem) { .card-grid--boxed { grid-template-columns: repeat(4, 1fr); } }
.card-grid--boxed .person-card { position: relative; overflow: hidden; gap: 0.15rem; padding-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); transition: border-color 0.15s; }
.card-grid--boxed .person-card:hover { border-color: var(--gold); }
.card-grid--boxed .person-card > a { gap: 1rem; }
.card-grid--boxed .person-card > a::after { content: ""; position: absolute; inset: 0; }
.card-grid--boxed .person-card img, .card-grid--boxed .card-photo { border-radius: 0; }
.card-grid--boxed .person-card > :not(a), .card-grid--boxed .person-card__name { padding-inline: 1rem; }
.card-grid--boxed .person-card__name { font-size: var(--text-lg); font-weight: 700; text-transform: uppercase; }
.card-grid--boxed .person-card__title { font-size: var(--text-sm); font-weight: 400; color: var(--muted-foreground); }
.card-grid--boxed .person-card__meta { font-size: 0.75rem; }

/* Office listings (listing server): boxed like the agent cards, no link yet */
.office-listings .listing-grid { margin-top: 2rem; }
.office-listings__count { margin-top: 0.5rem; color: var(--muted-foreground); }
.listing-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.listing-card__photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--muted); }
.listing-card__photo--empty { display: grid; place-items: center; color: var(--gold-text); }
.listing-card__photo--empty .icon { width: 2.5rem; height: 2.5rem; }
.listing-card__body { display: grid; align-content: start; gap: 0.25rem; padding: 1rem; }
.listing-card__price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--gold-text); }
.listing-card__address { font-size: var(--text-base); font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: normal; font-family: var(--font-body, inherit); }
.listing-card__meta { display: flex; align-items: center; gap: 0.375rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.listing-card__meta .icon { flex-shrink: 0; width: 0.875rem; height: 0.875rem; color: var(--gold); }
.listing-card__rooms { display: flex; gap: 1rem; font-size: var(--text-sm); }
.listing-card__kind { font-size: var(--text-sm); color: var(--muted-foreground); }
.listing-card__fine { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.office-listings__notice { margin-top: 1.5rem; max-width: 60rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* Listing search (/listings): filters over a map with the results beside it on wide screens,
   the map above the results on phones. */
.listing-search { padding: 1rem var(--gutter) 2rem; }
.listing-search__filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin-bottom: 1rem; }
.listing-search__title { flex: 1 0 100%; font-size: var(--text-3xl); }
.listing-search__filters label { display: grid; gap: 0.25rem; flex: 1 1 8rem; font-size: var(--text-sm); font-weight: 600; }
.listing-search__filters input, .listing-search__filters select { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font-weight: 400; }
.listing-search__demo { margin-bottom: 1rem; padding: 0.6rem 0.9rem; border-left: 4px solid var(--gold); border-radius: var(--radius-md); background: var(--gold-10); font-size: var(--text-sm); }
.listing-search__body { display: grid; gap: 1rem; }
.listing-search__map { height: 55vh; min-height: 18rem; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.listing-search__count { margin-bottom: 0.25rem; }
.listing-search__hint { font-size: var(--text-sm); color: var(--muted-foreground); }
.listing-search__notice { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.listing-search__cards { display: grid; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.listing-card--row { grid-template-rows: none; grid-template-columns: 7.5rem 1fr; }
.listing-card--row .listing-card__photo { aspect-ratio: auto; height: 100%; min-height: 7rem; }
.listing-card--row .listing-card__body { padding: 0.75rem 1rem; }
.listing-card--row .listing-card__price { font-size: var(--text-xl); }
.listing-card.is-selected { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold); }
.listing-map__label { font-size: var(--text-sm); }
.listing-map__price { font-weight: 700; }
/* Phones: the filters are one row that scrolls sideways, so the map is on the first screen. */
@media (max-width: 40rem) {
  .listing-search { padding-top: 0.75rem; }
  .listing-search__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.5rem; scrollbar-width: thin; }
  .listing-search__filters label { flex: 0 0 7.5rem; }
  .listing-search__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .listing-search__demo { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
  .listing-search__map { height: 60vh; }
}
@media (min-width: 64rem) {
  .listing-search__body { grid-template-columns: minmax(0, 3fr) minmax(22rem, 2fr); align-items: start; }
  .listing-search__map { position: sticky; top: 1rem; height: calc(100vh - 2rem); }
  .listing-search__results { max-height: calc(100vh - 2rem); overflow-y: auto; padding-right: 0.25rem; }
}

/* ---------- Content blocks (as the prototype's ServiceSections) ---------- */
.block { padding-top: 3rem; }
.block:has(+ .block-cta) { padding-bottom: 3rem; }
/* The last block, before whatever the page puts after (a service's closing band is a section too). */
.block:not(.block-cta, :has(~ .block)) { padding-bottom: 4rem; }
.block > .seal-divider { margin-bottom: 3rem; }
.block-heading { margin-bottom: 2rem; }
.block-heading h2 { margin-top: 0.25rem; }
.block-heading--center { text-align: center; }
.block-heading--center .section-lead { margin-inline: auto; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
}
.split__media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.split__heading { margin-bottom: 1rem; font-size: var(--text-3xl); }
@media (min-width: 64rem) { .split__heading { font-size: var(--text-4xl); } }
.block-grid { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .block-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .block-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .block-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
/* The prototype's FeatureCard. */
.feature-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
/* The picture's own shape (width and height are on the img), so logos and portraits aren't cut off. */
.feature-card > img, .feature-card > picture img { display: block; width: 100%; height: auto; }
.feature-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.feature-card :is(h2, h3) { font-size: var(--text-2xl); }
.feature-card .card-subtitle { margin-top: 0.25rem; }
.feature-card__text { margin-top: 0.75rem; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.feature-card .action-link { margin-top: auto; padding-top: 1rem; }
/* The prototype's icon features: big gold icon, title, text, button; centred. */
.block-features .block-grid { gap: 3rem; }
.block-feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.block-feature .icon { width: auto; height: 5rem; color: var(--gold); }
.block-feature :is(h2, h3) { margin-top: 1.25rem; font-size: var(--text-3xl); letter-spacing: 0.08em; }
.block-feature p { flex: 1; max-width: 24rem; margin-top: 0.75rem; line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.block-feature .btn-brand { margin-top: 1.5rem; }
/* Feature list, "cards" look (the join page's plan and advantages): each item in a card with a
   gold icon tile; a label ("Days 1–30") puts the tile beside the title; points list under it. */
.block-features--cards .block-heading { max-width: 48rem; }
.feature-cards { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .feature-cards[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .feature-cards[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
.feature-cards > li { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.feature-cards > li > :is(h2, h3) { margin-top: 1.25rem; font-size: var(--text-xl); }
.feature-cards__head { display: flex; align-items: center; gap: 1rem; }
.feature-cards > li:has(> .feature-cards__head) { padding: 2rem; }
.feature-cards__head :is(h2, h3) { margin-top: 0.125rem; font-size: var(--text-2xl); }
.feature-cards__label { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.feature-cards > li > p { margin-top: 0.75rem; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.feature-cards__head + p { margin-top: 1.25rem !important; }
.feature-cards__points { list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.625rem; font-size: var(--text-sm); font-weight: 500; text-align: left; }
.feature-cards__points li { position: relative; padding-left: 1rem; }
.feature-cards__points li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.375rem; height: 0.375rem; border-radius: 50%; background-image: var(--gradient-gold); }
.feature-cards .action-link { margin-top: auto; padding-top: 1rem; }
.icon-tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background-image: var(--gradient-gold); color: var(--gold-foreground); }
.icon-tile .icon { width: 1.25rem; height: 1.25rem; color: currentColor; }
.features-callout { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 3rem; padding: 2rem; border-block: 1px solid oklch(from var(--gold) l c h / 0.4); background: var(--secondary); text-align: center; }
@media (min-width: 40rem) { .features-callout { flex-direction: row; justify-content: space-between; text-align: left; } }
.features-callout p { max-width: 36rem; font-size: var(--text-sm); font-weight: 500; }
.features-callout .btn-brand { flex-shrink: 0; }
/* Questions and answers block: the .faq styles below, centred in the container. */
.block-faq .faq { margin-inline: auto; }
.block-features__cta { margin-top: 2rem; text-align: center; }
.gallery-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.block-subheading { max-width: var(--container-3xl); color: var(--muted-foreground); margin-bottom: 1.5rem; }
/* A service's body beside its picture: pictures full width, buttons spaced like the prototype's. */
.inline-images { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.inline-images img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.rich-text .btn-brand { margin-top: 1.5rem; text-decoration: none; }
.icon { width: 2.75rem; height: 2.75rem; color: var(--gold-text); }
.icon--seal { width: 3rem; height: 3rem; object-fit: contain; }
.block-cta { padding-block: 3rem; }
.block-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--gold-foreground); }
.block-cta__inner h2 { margin: 0 0 0.5rem; }
.block-cta__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.video-facade { position: relative; display: grid; place-items: end start; aspect-ratio: 16 / 9; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--ink-foreground); text-decoration: none; font-weight: 600; overflow: hidden; }
.video-facade__play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 5rem; height: 5rem; border-radius: 50%; border: 2px solid currentColor; }
.video-facade__play::after { content: ""; position: absolute; inset: 50% auto auto 54%; translate: -50% -50%; border-style: solid; border-width: 0.9rem 0 0.9rem 1.5rem; border-color: transparent transparent transparent currentColor; }
.video-facade:hover .video-facade__play { color: var(--gold); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }

/* Block editor */
.block-editor { display: grid; gap: 1.25rem; }
.block-editor__block { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; display: grid; gap: 1rem; background: var(--card); }
.block-editor__block > legend { font-weight: 600; padding-inline: 0.35rem; }
.block-editor__item { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 0.75rem 1rem; display: grid; gap: 0.75rem; }
.block-editor__item > legend { font-size: var(--text-sm); color: var(--muted-foreground); padding-inline: 0.35rem; }
.block-editor__controls, .block-editor__add { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.block-editor__controls button:not(.btn-danger, .btn), .block-editor__add button:not(.btn) { padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--background); }
.block-editor__add select { padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.html-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-sm); }
.field-row--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }

/* ---------- Home page ---------- */
.home-hero { position: relative; isolation: isolate; min-height: 88vh; display: grid; align-items: end; overflow: hidden; }
.home-hero picture, .home-hero__video, .home-hero__overlay { position: absolute; inset: 0; z-index: -1; }
/* The video covers the hero (16:9, cropped) and is taller by 10rem, so YouTube's title bar
   and logo fall outside; it fades in over the still image once it's playing. The image is
   the page's first paint, and stays when the video doesn't play. */
.home-hero__video { overflow: hidden; pointer-events: none; container-type: size; }
.home-hero__video iframe { --h: calc(max(100cqh, 56.25cqw) + 10rem); position: absolute; left: 50%; top: 50%; height: var(--h); width: calc(var(--h) * 16 / 9); border: 0; translate: -50% -50%; opacity: 0; transition: opacity 0.8s; }
.home-hero__video.is-playing iframe { opacity: 1; }
.home-hero__image { width: 100%; height: 100%; object-fit: cover; }
/* Home page sections, sized as the prototype's (HeroSection, CoreValuesGrid, AboutVideoSection,
   PlanBanner, PillarSection, OfficesGrid). Its home sections pad 2rem on wide screens. */
@media (min-width: 64rem) { .home-hero__content, .core-values, .pillar__inner, .plan-banner__inner { padding-inline: 2rem; } }
.home-hero__content { padding-block: 7rem 4rem; }
@media (min-width: 64rem) { .home-hero__content { padding-bottom: 6rem; } }
.home-hero h1 { max-width: 56rem; margin-top: 0.5rem; font-size: var(--text-5xl); line-height: 0.95; }
@media (min-width: 40rem) { .home-hero h1 { font-size: var(--text-6xl); } }
@media (min-width: 64rem) { .home-hero h1 { font-size: var(--text-7xl); } }
.home-hero h1 span { display: block; color: var(--gold); }
.home-hero__lead { max-width: 36rem; margin-top: 1.5rem; font-size: var(--text-lg); color: var(--ink-muted); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.home-hero__cta { padding: 0.875rem 1.75rem; font-size: 0.95rem; letter-spacing: 0.16em; }
.home-hero__cta.btn-outline { padding: calc(0.875rem - 1px) calc(1.75rem - 1px); }
/* As tall as .btn-brand beside it: the same text size, and padding less its 1px border. */
.btn-outline { display: inline-flex; align-items: center; padding: calc(0.8rem - 1px) calc(1.75rem - 1px); font-size: 0.95rem; border: 1px solid var(--ink-border); border-radius: var(--radius-full); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; box-shadow: var(--shadow-card); transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(var(--lift)); }

.core-values { display: grid; gap: 3rem; padding-block: 5rem; }
@media (min-width: 64rem) {
  .core-values { grid-template-columns: auto 1fr; gap: 4rem; padding-block: 7rem; }
  .core-values__title { align-self: center; padding-right: 3rem; border-right: 1px solid oklch(from var(--foreground) l c h / 0.7); }
}
.core-values__title { margin: 0; font-size: var(--text-5xl); line-height: 1; }
@media (min-width: 64rem) { .core-values__title { font-size: var(--text-6xl); } }
.core-values__title .eyebrow { display: block; margin-bottom: 0.25rem; }
.core-values__title br { display: none; }
@media (min-width: 64rem) { .core-values__title br { display: inline; } }
.core-values__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem; }
@media (min-width: 48rem) { .core-values__grid { grid-template-columns: repeat(3, 1fr); } }
.core-values__grid li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.core-values__grid .icon { width: auto; height: 4rem; color: var(--gold); }
.core-values__grid h3 { margin-top: 1.25rem; font-size: var(--text-3xl); letter-spacing: 0.08em; }
.core-values__grid p { flex: 1; margin-top: 0.75rem; line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.core-values__grid .btn-brand { margin-top: 1.5rem; }

.home-video { padding-block: 4rem; text-align: center; }
@media (min-width: 64rem) { .home-video { padding-block: 5rem; } }
.home-video h2 { margin-top: 0.25rem; }
.home-video__lead { max-width: 48rem; margin: 0.75rem auto 0; font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-muted); }
.home-video .video-facade, .home-video .video-frame { margin-top: 3rem; border: 1px solid var(--ink-border); box-shadow: var(--shadow-elevated); }
.video-facade--poster { padding: 0; }
.video-facade--poster picture, .video-facade--poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade--poster::before { content: ""; position: absolute; inset: 0; z-index: 1; background: oklch(from var(--ink) l c h / 0.3); transition: background 0.15s; }
.video-facade--poster:hover::before { background: oklch(from var(--ink) l c h / 0.1); }
.video-facade--poster .video-facade__play { z-index: 2; width: 6rem; height: 6rem; border: 1px solid oklch(from var(--ink-foreground) l c h / 0.4); background: oklch(from var(--ink-foreground) l c h / 0.2); backdrop-filter: blur(4px); color: var(--ink-foreground); transition: scale 0.15s; }
.video-facade--poster:hover .video-facade__play { scale: 1.1; color: var(--ink-foreground); }

.plan-banner { padding-block: 3.5rem; }
.plan-banner__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; color: var(--gold-foreground); }
@media (min-width: 64rem) { .plan-banner__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.plan-banner h2 { margin: 0; font-size: var(--text-3xl); line-height: var(--leading-tight); }
@media (min-width: 64rem) { .plan-banner h2 { font-size: var(--text-4xl); } }
.plan-banner p { max-width: 36rem; margin-top: 0.5rem; font-size: var(--text-sm); font-weight: 500; opacity: 0.8; }

.pillar { padding-block: 4rem; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
@media (min-width: 64rem) { .pillar { padding-block: 5rem; } }
.pillar__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) {
  .pillar__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .pillar--reversed .pillar__text { order: 2; }
}
.pillar__text h2 { margin-top: 0.25rem; }
.pillar__text .rich-text { margin-top: 1.25rem; line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.pillar__text > .btn-brand { margin-top: 2.25rem; }
.pillar-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated); }
.check-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 2rem; font-size: var(--text-sm); font-weight: 500; line-height: 1.5rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.125rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--gold-foreground); background-image: var(--gradient-gold); }
.check-list li::after { content: ""; position: absolute; left: 0.25rem; top: 0.375rem; width: 0.75rem; height: 0.75rem; background: var(--gold-foreground); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

.home-offices { padding-block: 4rem; border-top: 1px solid var(--border); background: var(--secondary); }

/* ---------- Services ---------- */
.page-hero__lead { max-width: 48rem; margin-top: 0.75rem; color: var(--ink-muted); font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero-actions--center { justify-content: center; }
.service-category { padding-block: 4rem; border-bottom: 1px solid var(--border); scroll-margin-top: 1rem; }
.service-category--alt { background: var(--muted); }
.service-grid { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.service-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; }
.service-card:hover { border-color: var(--gold); }
.service-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 1rem; background: var(--secondary, var(--muted)); }
.service-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.5rem; }
.service-card__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.service-card__summary { flex: 1; font-size: var(--text-sm); color: var(--muted-foreground); }
.closing-band { padding-block: 4rem; text-align: center; }
/* A lone button under the heading; a row of them (.hero-actions) has its own spacing. */
.closing-band .public-container > .btn-brand { margin-top: 1.5rem; }
.service-intro { display: grid; gap: 2.5rem; align-items: center; padding-block: 3rem 1rem; }
.service-intro__text > h2 { margin-bottom: 1rem; font-size: var(--text-3xl); }
@media (min-width: 64rem) { .service-intro__text > h2 { font-size: var(--text-4xl); } }
@media (min-width: 64rem) { .service-intro { grid-template-columns: 1fr 1fr; } }
.service-hero { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.preview-banner { position: sticky; top: 0; z-index: 40; margin: 0; padding: 0.6rem 1rem; text-align: center; background: oklch(0.85 0.12 85); color: var(--gold-foreground); font-weight: 600; }
.admin-group { margin-block: 2rem; }
.admin-group__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.admin-group__heading h2 { margin: 0; font-size: var(--text-2xl); }
.page-image { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.legal { padding-block: 4rem; }
.legal-text { max-width: 48rem; margin-inline: auto; }
.about-hub { padding-block: 4rem; }
@media (min-width: 64rem) { .about-hub { padding-block: 5rem; } }
.about-hub section { padding-block: 3rem; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.about-hub section:first-child { margin-top: 2.5rem; }
.about-hub h2 { font-size: var(--text-3xl); }
.about-hub p { margin-top: 1rem; color: var(--muted-foreground); }
.about-hub .btn-brand { margin-top: 1rem; }
.about-hub .action-link { margin-top: 0.75rem; }

/* The notification bell (features/notifications), shared by every module's header. */
.bell { position: relative; }
.bell summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-lg); }
.bell summary::-webkit-details-marker { display: none; }
.bell__count { min-width: 1.25rem; padding: 0 0.35rem; border-radius: 999px; background: var(--gold); color: var(--primary); font-size: var(--text-xs); font-weight: 700; text-align: center; }
.bell__panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 20;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.bell__list { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.bell__list li { display: grid; gap: 0.1rem; }
.bell__list li.is-unread .bell__item { font-weight: 700; }
.bell__item { all: unset; cursor: pointer; color: var(--foreground); }
.bell__item:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.notification-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.notification-list li { padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.notification-list li.is-unread { border-left: 3px solid var(--gold); }
.notification-list p { margin: 0.25rem 0; }
.notification-list__title { all: unset; cursor: pointer; font-weight: 600; }
.notification-list__title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
/* ---------- News, recognition ---------- */
.news-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.news-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--muted); }
.news-card__body { display: grid; gap: 0.35rem; padding-top: 0.85rem; }
.news-card__date { font-size: var(--text-sm); color: var(--muted-foreground); }
.news-card__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.15; }
.news-card:hover .news-card__title { color: var(--gold-text); }
.news-card__summary { color: var(--muted-foreground); }
.article-meta { margin-top: 0.75rem; color: var(--ink-muted); }
.article-meta a { color: var(--gold); text-decoration: none; }
.article-image { width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.recognition-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; }
.recognition-card__media { display: grid; place-items: center; aspect-ratio: 1; background: var(--ink); }
.recognition-card__media .icon { width: 4rem; height: 4rem; color: var(--gold); }
.recognition-card__image { width: 100%; height: 100%; object-fit: cover; }
.recognition-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.35rem; padding: 1.25rem; }
.recognition-card__body .action-link { margin-top: auto; padding-top: 0.75rem; }
.events-past-heading { margin-top: 3.5rem; }
.register-panel { max-width: 40rem; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); scroll-margin-top: 1rem; }
.register-panel h2 { margin-top: 0; }
.register-panel .checkbox { align-items: flex-start; font-size: var(--text-sm); }
.register-panel .checkbox input { margin-top: 0.2rem; }

/* ---------- Join ---------- */
/* The Join page, as the prototype's routes/join.tsx. */
.join-hero { min-height: 0; }
.join-hero .home-hero__image { opacity: 0.6; }
.join-hero .home-hero__content { padding-block: 7rem 4rem; }
@media (min-width: 64rem) { .join-hero .home-hero__content { padding-block: 9rem 6rem; } }
.join-hero h1 { margin-top: 1.25rem; }
/* Its blocks (site/join.html) are spaced like sections, without seal dividers, with a
   full-width rule between them. */
.join-page { overflow-x: clip; }
.join-page .block > .seal-divider { display: none; }
.join-page .block { padding-block: 4rem; scroll-margin-top: 1rem; }
@media (min-width: 64rem) { .join-page .block { padding: 5rem 2rem; } }
.join-page .block-features--cards .block-heading { margin-bottom: 3.5rem; }
.join-page .block + .block { position: relative; }
.join-page .block + .block::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; translate: -50% 0; border-top: 1px solid var(--border); }
.join-page .home-hero__lead > p + p { margin-top: 1rem; }
.join-apply { padding-block: 4rem; scroll-margin-top: 1rem; }
@media (min-width: 64rem) { .join-apply { padding-block: 5rem; } }
.join-apply__inner { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .join-apply__inner { grid-template-columns: 1fr 1fr; gap: 4rem; padding-inline: 2rem; } }
.join-apply__intro { color: var(--gold-foreground); }
.join-apply__intro .eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.32em; color: var(--gold-foreground); opacity: 0.8; }
.join-apply__intro h2 { margin-top: 0.25rem; }
.join-apply__intro > p:not(.eyebrow) { max-width: 28rem; margin-top: 1.25rem; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-relaxed); opacity: 0.9; }
.join-apply__intro ul { list-style: none; margin-top: 2rem; padding: 0; display: grid; gap: 0.75rem; font-size: var(--text-sm); font-weight: 500; }
.join-apply__intro ul li { display: flex; align-items: center; gap: 0.75rem; }
.join-apply__intro ul li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--gold-foreground); }
.join-apply__culture { display: flex; align-items: center; gap: 0.75rem; margin-top: 2.5rem; font-size: var(--text-sm); font-weight: 600; }
.join-apply__culture .icon { width: 1rem; height: 1rem; color: currentColor; }
.join-form { padding: 1.5rem; border: 1px solid var(--ink-border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-elevated); }
@media (min-width: 40rem) { .join-form { padding: 2rem; } }
.join-form .stack > * + * { margin-top: 1.25rem; }
.join-form .field-row { gap: 1.25rem; }
.join-form .field label { font-weight: 500; }
.join-form .field input, .join-form .field select, .join-form .field textarea { padding: 0.5rem 0.75rem; background-color: var(--card); font-size: var(--text-sm); }
.join-form__submit { width: 100%; }
.join-form .field-hint { font-size: 0.75rem; text-align: center; }
.join-form__done { display: grid; gap: 0.75rem; justify-items: center; padding: 1rem; text-align: center; }
.join-form__done .icon { width: 3rem; height: 3rem; color: var(--gold); }
.join-form__done h3 { margin-top: 0.5rem; }
.join-form__done p { max-width: 28rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.join-form__done .btn-brand { margin-top: 1rem; }
.faq { max-width: 48rem; }
.faq > .eyebrow, .faq > h2, .faq > .section-lead { text-align: center; margin-inline: auto; }
.faq > .section-lead { margin-bottom: 3rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 1rem; height: 1rem; background: var(--muted-foreground); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { padding-bottom: 1rem; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.lead-message { margin: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--muted); white-space: pre-wrap; }
.lead-note { padding-block: 0.75rem; border-bottom: 1px solid var(--border); }
.lead-note p { margin: 0; white-space: pre-wrap; }

.dashboard { width: 100%; max-width: var(--container-5xl); margin-inline: auto; padding-inline: var(--gutter); }
.dashboard-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.dashboard-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.dashboard-card h2 { margin: 0 0 0.75rem; font-size: var(--text-xl); }
.dashboard-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.inline-form { display: inline; margin: 0; }
@media (min-width: 40rem) { .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Listings: news, events, recognition (as the prototype's cards) ---------- */
.list-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
@media (min-width: 40rem) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .list-grid { grid-template-columns: repeat(3, 1fr); } }
.list-card, .recognition-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform 0.15s; }
.list-card:hover, .recognition-card:hover { transform: translateY(-0.125rem); }
.list-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.list-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; transition: scale 0.3s; }
.list-card:hover .list-card__media img { scale: 1.05; }
.list-card__body, .recognition-card__body { display: flex; flex: 1; flex-direction: column; gap: 0; padding: 1.25rem; }
.list-card__title { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.list-card__body > .list-card__title:first-child { margin-top: 0; }
.recognition-card__name { font-size: var(--text-2xl); }
.list-card__meta { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.list-card__meta + .list-card__meta { margin-top: 0.25rem; }
.list-card__meta .icon { flex-shrink: 0; width: 0.875rem; height: 0.875rem; color: currentColor; }
.list-card__summary { margin-top: 0.75rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.list-card__body .action-link, .recognition-card__body .action-link { margin-top: auto; padding-top: 1rem; }
.recognition-card__body .card-subtitle { margin-top: 0.25rem; }
.list-heading { margin-bottom: 1.5rem; font-size: var(--text-3xl); }
.date-badge { position: absolute; left: 1rem; top: 1rem; display: grid; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); background: var(--gold); color: var(--gold-foreground); font-size: 0.75rem; font-weight: 600; line-height: 1.1; text-align: center; text-transform: uppercase; }
.date-badge__day { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1; }
.date-badge__year { margin-top: 0.25rem; }

/* ---------- Management team (as the prototype's /the-team) ---------- */
.managers { display: grid; gap: 4rem; padding-block: 4rem; }
.manager { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) {
  .manager { grid-template-columns: 17.5rem 1fr; }
  .manager--reversed { grid-template-columns: 1fr 17.5rem; }
  .manager--reversed > :first-child { order: 2; }
}
.manager__photo { display: block; text-decoration: none; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--secondary); box-shadow: var(--shadow-card); }
.manager__photo img, .manager__photo .card-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.manager h2 { font-size: var(--text-3xl); }
.manager h2 a { color: inherit; text-decoration: none; }
.manager h2 a:hover { color: var(--gold-text); }
.manager .card-subtitle { margin-top: 0.25rem; }
.manager .rich-text, .manager > div > .muted { margin-top: 1rem; }
.manager .action-link { margin-top: 1rem; }

/* ---------- Agent and team directories ---------- */
.directory-tabs { display: inline-flex; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
.directory-tabs a { padding: 0.6rem 1rem; font-size: var(--text-sm); font-weight: 600; color: var(--foreground); text-decoration: none; }
.directory-tabs a[aria-current] { background: var(--ink); color: var(--ink-foreground); }
.js form[data-autosubmit] > button[type="submit"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 64rem) {
  .directory-filters[data-autosubmit] { display: flex; }
  .directory-filters[data-autosubmit] .field { flex: 0 0 12.5rem; }
  .directory-filters[data-autosubmit] .field:first-of-type { flex: 1; }
}

/* ---------- Imported pages: events, articles, shout-outs, teams (as the prototype's) ---------- */
.event-date-chip { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.5rem 1rem; border-radius: var(--radius-md); background: var(--gold); color: var(--gold-foreground); font-size: var(--text-sm); font-weight: 600; }
.event-date-chip .icon { width: 1rem; height: 1rem; color: currentColor; }
.event-intro { padding-block: 3.5rem 0; }
.event-intro h2 { margin-top: 0.25rem; margin-bottom: 1rem; }
.event-intro .split__media iframe, .event-intro .split__media .video-facade { width: 100%; }
.event-details { display: grid; gap: 2rem; align-items: start; padding-top: 3.5rem; }
@media (min-width: 64rem) { .event-details { grid-template-columns: 1fr 1fr; } }
.event-details__panel { padding: 2rem; border-radius: var(--radius-lg); }
.event-details__panel h2, .event-details__signup h2 { margin: 0; font-size: var(--text-2xl); }
.event-details__panel h2 { color: var(--gold); }
.event-details__panel .contact-lines { margin-top: 1.25rem; }
.event-details__map { color: var(--ink-muted); }
.event-details__signup { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.event-details .register-panel { max-width: none; }
.event-details .register-panel h2 { font-size: var(--text-2xl); }
.event-strip, .event-gallery { padding-top: 3.5rem; }
.event-strip .seal-divider, .event-gallery .seal-divider { margin-bottom: 3rem; }
.event-gallery { padding-bottom: 1rem; }
.event-gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.event-gallery__head h2 { margin: 0.25rem 0 0; }
.event-gallery--link { text-align: center; }
.gallery-grid--square { gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .gallery-grid--square { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .gallery-grid--square { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid--square img { aspect-ratio: 1; }

.article-body { margin: 2.5rem auto 0; font-size: var(--text-lg); }
.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: -0.75rem; font-size: var(--text-sm); }
.byline__photo { width: 3rem; height: 3rem; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: top; }
.byline__photo--empty { display: grid; place-items: center; background: var(--ink); }
.byline__photo--empty .icon { width: auto; height: 1.5rem; color: var(--gold); }
.byline__label, .byline__title { color: var(--muted-foreground); }
.byline a { font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.recognition-page { display: grid; gap: 2.5rem; align-items: start; padding-block: 3rem 4rem; }
@media (min-width: 48rem) { .recognition-page { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.recognition-page__photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.recognition-page__photo--empty { display: grid; place-items: center; aspect-ratio: 1; background: var(--ink); }
.recognition-page__photo--empty .icon { width: auto; height: 5rem; color: var(--gold); }
.recognition-page h1 { margin-top: 0.25rem; }
.recognition-page .eyebrow a { text-decoration: none; }
.recognition-page__headline { margin-top: 0.5rem; font-size: var(--text-lg); font-weight: 600; color: var(--gold-text); }
.recognition-page__summary { margin-top: 1rem; font-size: var(--text-lg); color: var(--muted-foreground); }
.recognition-page .rich-text { margin-top: 1rem; }
.recognition-page__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }

.team-hero__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 36rem)); justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.team-hero__photo, .team-hero__logo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.team-hero__photo { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-card); }
.team-hero__office { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; color: var(--ink-muted); }
.team-hero__office .icon { width: 1rem; height: 1rem; color: var(--gold); }
.team-hero__office a { color: inherit; }
.team-hero__office a:hover { color: var(--gold); }
.team-hero__count { margin-top: 0.5rem; font-size: var(--text-sm); color: var(--ink-muted); }

/* The prototype's "View profile →" on boxed person cards. */
.person-card__more { display: none; }
.card-grid--boxed .person-card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-size: var(--text-xs); font-weight: 600; color: var(--gold-text); }
.card-grid--boxed .person-card__more::after { content: "→"; }

/* A page that reads as one story (Our Story): one divider at the start, not one per block. */
.story-blocks .block + .block > .seal-divider { display: none; }
/* A page's own picture beside its text: a portrait shouldn't tower over it. */
.service-intro .page-image { width: auto; max-width: 100%; max-height: 32rem; margin-inline: auto; }

/* Library photos inside rich text (brk_ui::rich_text::render_images) */
.rich-text figure { margin: 1.5rem 0; }
.rich-text figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.rich-text u { text-underline-offset: 3px; }

/* Table content block (brk_ui::blocks::Block::Table) */
.block-table { padding-block: 2.5rem; }
.block-table__heading { margin-bottom: 1.25rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.content-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.content-table caption { caption-side: bottom; padding: 0.75rem 1rem; text-align: left; font-size: var(--text-xs); color: var(--muted-foreground); }
.content-table th { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--muted); text-align: left; font-weight: 600; white-space: nowrap; }
.content-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.content-table tbody tr:last-child td { border-bottom: 0; }

/* Video list content block (brk_ui::blocks::Block::VideoList): the player beside its list; on a
   phone the player sits above. The list scrolls within the player's height on wide screens. */
.block-video-list--joined { padding-top: 2rem; }
.video-list { display: grid; gap: 1rem; }
.video-list__player { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow-card); }
.video-list__player .video-facade, .video-list__player .video-frame { display: grid; width: 100%; height: 100%; border: 0; border-radius: 0; }
.video-list__panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.video-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.video-list__head h2 { margin: 0; font-size: var(--text-lg); }
.video-list__count { margin-left: auto; white-space: nowrap; font-size: var(--text-sm); color: var(--muted-foreground); }
.video-list__items { max-height: 24rem; margin: 0; padding: 0.375rem 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.video-list__item { display: grid; grid-template-columns: 7rem 1fr; gap: 0.875rem; align-items: center; padding: 0.5rem 1.25rem; color: inherit; text-decoration: none; }
.video-list__item:hover { background: var(--muted); }
.video-list__item[aria-current="true"] { background: var(--muted); box-shadow: inset 3px 0 0 var(--gold); }
.video-list__item:focus-visible { outline-offset: -3px; }
.video-list__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--ink); }
.video-list__thumb picture, .video-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-list__play { position: absolute; right: 0.3rem; bottom: 0.3rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: oklch(from var(--ink) l c h / 0.7); }
.video-list__play::after { content: ""; position: absolute; inset: 50% auto auto 56%; translate: -50% -50%; border-style: solid; border-width: 0.3rem 0 0.3rem 0.5rem; border-color: transparent transparent transparent var(--ink-foreground); }
.video-list__title { font-size: var(--text-sm); line-height: 1.4; }
.video-list__item[aria-current="true"] .video-list__title { font-weight: 600; }
@media (min-width: 64rem) {
  .video-list { grid-template-columns: minmax(20rem, 26rem) 1fr; grid-template-areas: "list player"; gap: 1.5rem; }
  .video-list__player { grid-area: player; }
  /* Sized by the player: the panel adds no height of its own and its list scrolls. */
  .video-list__panel { grid-area: list; contain: size; }
  .video-list__items { flex: 1 1 0; max-height: none; }
}
