/* Shared by the homepage and the BD skin: fonts and design tokens only. */

@font-face {
  font-family: "Archivo";
  src: url("/_ahba/archivo.e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/_ahba/source-sans.19143dca07.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/_ahba/source-sans-italic.5fbc14d56c.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand ramps. Blue and green come from the AHBA logo (edits doc #2). */
  --navy-950: #001338;   /* footer */
  --navy-900: #001A4D;   /* deep panels */
  --navy: #00256A;       /* logo blue: hero, headings, primary ink on light */
  --navy-600: #30689A;   /* secondary blue, used for small accents only */
  --blue-100: #DCE6F2;   /* borders on pale blue */
  --blue-50: #EEF3F9;    /* pale section band */
  --green: #007536;      /* logo green: every Become a Member button */
  --green-700: #005A29;  /* green hover */
  --green-300: #8FD6AC;  /* green text on navy */
  --green-50: #E7F4EC;   /* pale green band */
  --gold: #E1B12C;       /* focus ring and the savings button only */
  --gold-700: #B9890C;
  --pine: #D9B680;       /* lumber in the framing drawings, never text */
  --pine-700: #A9834A;
  --concrete: #A7B1BC;

  /* Role tokens */
  --ink: #17233A;
  --ink-muted: #4A5870;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D5E6;
  --surface: #FFFFFF;
  --line: #D5DEE8;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Type scale: one ratio, gentler on phones (clamp). */
  --t-xs: 0.875rem;
  --t-sm: 1rem;
  --t-md: 1.125rem;
  --t-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-xl: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --t-hero: clamp(2.5rem, 1.2rem + 5.4vw, 5.6rem);

  /* Spacing on a 4px base. */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --wrap: 1200px;

  --radius: 4px;          /* edits doc #1: tone down the heavy rounded edges */
  --shadow-soft: 0 6px 30px rgb(0 37 106 / 0.10);

  /* One motion language: short, precise, rising like a wall being raised. */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --dur-1: 0.35s;
  --dur-2: 0.8s;
  --dur-3: 1.4s;
}

/* Homepage only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--t-lg); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--gold); color: var(--navy-950); padding: var(--s-3) var(--s-4); font-weight: 700; }
.skip:focus { top: var(--s-4); }

.section-title { font-size: var(--t-2xl); font-weight: 800; font-stretch: 100%; color: var(--navy); }
.text-link { display: inline-block; margin-top: var(--s-6); font-weight: 700; color: var(--green); text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-6);
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 var(--s-8); font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 0 var(--s-5); }
.btn-green { background: var(--green); color: var(--on-dark); }
.btn-green:hover { background: var(--green-700); color: var(--on-dark); }
.btn-ghost { border-color: rgb(255 255 255 / 0.7); color: var(--on-dark); }
.btn-ghost:hover { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--on-dark); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-700); color: var(--navy-950); }
.btn-white { background: var(--on-dark); color: var(--green-700); }
.btn-white:hover { background: var(--navy); color: var(--on-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-soft); border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }
.brand img { width: 150px; height: auto; transition: width var(--dur-1) var(--ease); }
.site-header.is-scrolled .brand img { width: 128px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav a { display: block; padding: var(--s-2) var(--s-3); font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(var(--green), var(--green)) no-repeat 50% 100% / 0 2px; transition: background-size var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.main-nav a:hover { color: var(--navy); background-size: calc(100% - 1.5rem) 2px; }
.nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.link-login { font-weight: 600; color: var(--ink); text-decoration: none; }
.link-login:hover { color: var(--green); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-block; }
  .link-login { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: min(100% - 2rem, var(--wrap)); margin: 0 auto; padding: var(--s-2) 0 var(--s-4); }
  .main-nav a { padding: var(--s-3) 0; font-size: var(--t-md); border-bottom: 1px solid var(--line); background: none; }
  .nav-mobile-only { display: block; }
  .header-actions { margin-left: auto; }
  .brand img, .site-header.is-scrolled .brand img { width: 124px; }
}
@media (max-width: 420px) {
  .header-actions .btn-sm { padding: 0 var(--s-3); font-size: var(--t-xs); }
  .brand img, .site-header.is-scrolled .brand img { width: 104px; }
  .header-row { gap: var(--s-3); }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: var(--s-16) 0 calc(var(--s-10) + var(--s-12)); }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(100deg, #000 10%, transparent 75%);
}
.hero-layout { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: var(--s-12); align-items: center; }
.hero-title { display: flex; flex-direction: column; gap: var(--s-2); }
.hero-title-main { font-size: var(--t-hero); font-weight: 850; font-stretch: 108%; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.02em; }
.hero-title-sub { font-size: var(--t-xl); font-weight: 600; font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-300); }
.hero-claim { margin-top: var(--s-6); max-width: 30ch; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
.hero-lede { margin-top: var(--s-4); max-width: 52ch; font-size: var(--t-sm); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); }
.hero-where { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--on-dark-muted); }

.hero-figure { margin: 0; position: relative; }
.hero-figure::before { content: ""; position: absolute; inset: 14% -10% -6% 12%; background: var(--green); }
.hero-house { position: relative; aspect-ratio: 1024 / 760; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(50% 2%, 100% 36%, 100% 100%, 0 100%, 0 36%); }
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linejoin: round; stroke-linecap: square; }
.hero-frame-roof { stroke: var(--green-300); stroke-width: 16; }
.hero-frame-walls { stroke: var(--on-dark); stroke-width: 4; opacity: 0.6; }
.hero-caption { position: relative; margin-top: var(--s-3); font-size: var(--t-xs); color: var(--on-dark-muted); text-align: right; }

.proof-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s-12); border-top: 1px solid rgb(255 255 255 / 0.18); }
.proof-strip li { padding: var(--s-5) var(--s-5) 0 0; font-size: var(--t-xs); color: var(--on-dark-muted); }
.proof-strip li + li { padding-left: var(--s-5); border-left: 1px solid rgb(255 255 255 / 0.18); }
.proof-strip strong { display: block; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--on-dark); }

@media (max-width: 1023px) {
  .hero { padding-top: var(--s-10); }
  .hero-layout { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-figure { max-width: 640px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .proof-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-figure::before { inset: 16% -6% -5% 18%; }
}

/* Find a pro: the directory search, placed straight under the hero so visitors who are not
   members can find a trade fast. The panel overlaps the hero edge. */
.find { position: relative; z-index: 2; margin-top: calc(var(--s-10) * -1); }
.find-panel {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s-6) var(--s-12); align-items: end;
  background: var(--surface); border-top: 4px solid var(--green); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: var(--s-8) var(--s-10);
}
.find-title { font-size: var(--t-xl); font-weight: 800; color: var(--navy); }
.find-head p { margin-top: var(--s-2); color: var(--ink-muted); font-size: var(--t-sm); max-width: 46ch; }
.find-form label { display: block; font-weight: 700; margin-bottom: var(--s-2); }
.find-row { display: flex; gap: var(--s-3); }
.find-row input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 var(--s-4);
  font: inherit; font-size: var(--t-md); color: var(--ink);
  border: 2px solid #B8C4D3; border-radius: var(--radius); background: #fff;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.find-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(0 37 106 / 0.18); }
.find-row .btn { min-height: 52px; flex: 0 0 auto; border: 0; cursor: pointer; }
.find-trades { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.find-trades p { font-size: var(--t-sm); font-weight: 700; color: var(--ink-muted); }
/* Eight trades split evenly: 4 + 4 on wide screens, 2 x 4 on phones (never 7 + 1) */
.find-trades ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); width: 100%; }
.find-trades li { display: flex; }
.find-trades li a { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 767px) { .find-trades ul { grid-template-columns: 1fr 1fr; } }
.find-trades a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--blue-100); border-radius: var(--radius); background: var(--blue-50);
  font-weight: 600; color: var(--navy); text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.find-trades a:hover, .find-trades a:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--on-dark); transform: translateY(-2px); }
@media (max-width: 1023px) {
  .find { margin-top: calc(var(--s-6) * -1); }
  .find-panel { grid-template-columns: 1fr; padding: var(--s-6); }
}
@media (max-width: 560px) {
  .find-row { flex-direction: column; }
  .find-row .btn { width: 100%; }
  /* Eight trades as an even 2 x 4 grid on phones */
  .find-trades ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .find-trades li { display: flex; }
  .find-trades a { width: 100%; justify-content: center; text-align: center; }
}

/* Mission */
.mission { padding: var(--section) 0; }
.find + .mission { padding-top: calc(var(--section) * 0.75); }
.mission-layout { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-12); }
.mission-statement { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; line-height: 1.22; color: var(--navy); max-width: 30ch; }
.mission-how { margin-top: var(--s-8); font-weight: 700; color: var(--ink-muted); }
.pillars { margin-top: var(--s-4); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-8); }
.pillars li { position: relative; padding: var(--s-3) 0 var(--s-3) 2.25rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.pillars li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem; width: 1.25rem; height: 1.05rem;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 14% 100%, 14% 42%, 0 42%);
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.pillars li:last-child { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .mission-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .pillars { grid-template-columns: 1fr; }
}

/* Steps: the sticky house is framed as each step scrolls past */
.steps { background: var(--blue-50); padding: var(--section) 0; }
.steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: start; }
.steps-visual { position: sticky; top: 120px; }
.build { width: 100%; height: auto; overflow: visible; }
.build-label { margin-top: var(--s-4); text-align: center; font-family: var(--f-display); font-weight: 700; color: var(--navy-600); min-height: 1.6em; }
.b-ground line { stroke: var(--navy); stroke-width: 3; }
.b-foundation rect { fill: var(--concrete); }
.b-plate { fill: var(--pine); stroke: var(--pine-700); stroke-width: 1.5; }
.b-studs rect { fill: var(--pine); stroke: var(--pine-700); stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 100%; }
.b-rafters { fill: none; stroke: var(--pine-700); stroke-width: 7; stroke-linecap: square; }
.b-roofline { fill: none; stroke: var(--green); stroke-width: 14; stroke-linecap: square; stroke-linejoin: miter; }
.b-lights rect { fill: var(--blue-100); stroke: var(--navy); stroke-width: 3; transition: fill var(--dur-2) var(--ease); }
.build[data-stage="3"] .b-lights rect { fill: #F6D77A; }
.build[data-stage="3"] .b-lights .b-door { fill: var(--navy); }

.steps-copy .section-title { max-width: 14ch; }
.step-list { margin-top: var(--s-10); counter-reset: step; }
.step { position: relative; padding: var(--s-8) 0 var(--s-10) 4.5rem; border-top: 1px solid var(--blue-100); }
.step-num {
  position: absolute; left: 0; top: var(--s-8); width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius); background: var(--surface);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.step.is-active .step-num, .step.is-done .step-num { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.step h3 { color: var(--navy); }
.step p { margin-top: var(--s-3); max-width: 46ch; color: var(--ink-muted); }
.step .btn { margin-top: var(--s-5); }
/* Scroll room for the house to build; capped so tall screens don't get huge gaps. */
@media (min-width: 1024px) { .step { min-height: min(46vh, 420px); } .step:last-child { min-height: 0; } }
@media (max-width: 1023px) {
  .steps-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .steps-visual {
    top: 76px; z-index: 2; margin-inline: -1rem; /* the wrap gutter below 1024px; 100vw would include the scrollbar */
    display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: var(--s-4);
    padding: var(--s-3) var(--s-4); background: var(--blue-50); border-bottom: 1px solid var(--blue-100);
  }
  .build { max-height: 112px; }
  .build-label { margin: 0; text-align: left; font-size: var(--t-sm); }
  /* The house leads on phones and stays pinned under the header while the steps scroll. */
  .steps-layout { display: flex; flex-direction: column; align-items: stretch; }
  .steps-copy .section-title { max-width: none; }
}

/* Why join */
.why { padding: var(--section) 0; }
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: end; }
.why-head p { color: var(--ink-muted); max-width: 52ch; }
.why-grid { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.why-item { position: relative; padding-top: var(--s-6); border-top: 3px solid var(--navy); }
.why-item::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.why-item:hover::before, .why-item.is-in::before { transform: scaleX(1); }
.why-icon { width: 48px; height: 48px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { margin-top: var(--s-4); color: var(--navy); }
.why-item p { margin-top: var(--s-2); color: var(--ink-muted); }
@media (max-width: 860px) {
  .why-head { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* Quote */
.quote-band { background: var(--green-50); padding: var(--s-16) 0; }
.quote { margin: 0 auto; max-width: 960px; position: relative; padding-left: clamp(3rem, 8vw, 6rem); }
/* Archivo's heavy quote mark reads as two blocks, so the mark is set in a serif. */
.quote::before { content: "\201C"; position: absolute; left: 0; top: -0.12em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 12vw, 9rem); font-weight: 700; line-height: 1; color: var(--green); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; line-height: 1.25; color: var(--navy); }
.quote figcaption { margin-top: var(--s-5); color: var(--ink-muted); }
.quote figcaption strong { color: var(--ink); margin-right: var(--s-2); }

/* Ready to join */
.ready { background: var(--navy-900); color: var(--on-dark); padding: var(--section) 0; overflow: hidden; }
.ready-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
.ready .section-title { color: var(--on-dark); }
.ready-lede { margin-top: var(--s-4); max-width: 46ch; color: var(--on-dark-muted); font-size: var(--t-md); }
.checks { margin: var(--s-8) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-6); }
.checks li { position: relative; padding-left: 2rem; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 0.55rem; height: 1rem; border: solid var(--green-300); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(1); transform-origin: 50% 50%; transition: transform var(--dur-1) var(--ease); }
.ready-panel { position: relative; }
.ready-photo { margin: 0; position: relative; }
.ready-photo::after { content: ""; position: absolute; inset: auto -5% -7% 22%; height: 46%; background: var(--green); z-index: -1; }
.ready-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.numbers { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); position: relative; margin: -3rem var(--s-6) 0; box-shadow: var(--shadow-soft); }
/* dd sits above dt visually; packed to the top so numerals align when a label wraps. */
.number { padding: var(--s-5); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); }
.number + .number { border-left: 1px solid rgb(255 255 255 / 0.15); }
.number dt { font-size: var(--t-xs); color: var(--on-dark-muted); }
.number dd { margin: 0; font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .ready-layout { grid-template-columns: 1fr; gap: var(--s-12); }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .numbers { margin: -2rem 0 0; }
  .number { padding: var(--s-4) var(--s-3); }
}

/* NAHB savings */
.savings { padding: var(--section) 0 0; overflow: hidden; }
.savings-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6) var(--s-12); align-items: center; }
.savings-copy .section-title { grid-row: span 2; }
.savings-copy p { color: var(--ink-muted); }
.savings-copy .btn { justify-self: start; grid-column: 2; }
.marquee { position: relative; margin-top: var(--s-12); background: var(--green); color: var(--on-dark); overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-6) 0 var(--s-6) var(--s-8); font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: var(--t-lg); white-space: nowrap; }
.marquee-list li::after { content: ""; width: 0.9rem; height: 0.8rem; background: var(--green-300); clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 14% 100%, 14% 42%, 0 42%); }
.marquee-pause { position: absolute; right: var(--s-4); top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 var(--s-4); background: var(--green-700); color: var(--on-dark); border: 1px solid rgb(255 255 255 / 0.5); border-radius: var(--radius); font: 600 var(--t-xs) var(--f-body); cursor: pointer; }
@media (max-width: 860px) {
  .savings-copy { grid-template-columns: 1fr; }
  .savings-copy .btn { grid-column: 1; }
}

/* Sponsors */
.sponsors { background: var(--blue-50); padding: var(--section) 0; }
.sponsors-head { text-align: center; max-width: 760px; margin: 0 auto; }
.sponsors-head p { margin-top: var(--s-4); color: var(--ink-muted); }
/* 14 tiles: 7 + 7 on desktop, 2 columns (7 rows) below, so rows always split evenly. */
.sponsor-wall { margin-top: var(--s-10); display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-3); }
@media (max-width: 1099px) { .sponsor-wall { grid-template-columns: repeat(2, 1fr); } }
.sponsor-wall li {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 5.5rem; line-height: 1.2;
  padding: var(--s-4) var(--s-3); background: var(--surface); border: 1px solid var(--blue-100); border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: var(--t-md); color: var(--navy);
  transition: transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.sponsor-wall li:hover { transform: translateY(-3px); border-color: var(--green); }
.sponsor-wall .sponsor-join { border: 2px dashed var(--green); background: transparent; padding: 0; }
.sponsor-wall .sponsor-join { align-items: stretch; }
.sponsor-join a { display: flex; align-items: center; justify-content: center; width: 100%; padding: var(--s-4) var(--s-3); color: var(--green); text-decoration: none; }

/* Meetings and get involved */
.involved { padding: var(--section) 0; }
.meetings { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-12); align-items: start; }
.meetings-head p { margin-top: var(--s-4); color: var(--ink-muted); max-width: 46ch; }
.meeting-list { display: grid; gap: var(--s-3); }
.meeting { display: flex; gap: var(--s-5); align-items: center; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.meeting:hover { border-color: var(--navy); transform: translateX(4px); }
.meeting time { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; display: grid; place-content: center; text-align: center; background: var(--navy); color: var(--on-dark); border-radius: var(--radius); line-height: 1; }
.m-month { font-size: var(--t-xs); font-weight: 700; color: var(--green-300); }
.m-day { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; margin-top: var(--s-1); }
.meeting h3 { font-size: var(--t-md); color: var(--navy); }
.meeting p { font-size: var(--t-xs); color: var(--ink-muted); margin-top: var(--s-1); }
.involved-grid { margin-top: var(--s-16); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.involved-card { position: relative; padding: var(--s-8); border: 2px solid var(--navy); border-radius: var(--radius); transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.involved-card h3 a { color: var(--navy); text-decoration: none; }
.involved-card h3 a::after { content: ""; position: absolute; inset: 0; }
.involved-card p { margin-top: var(--s-3); color: var(--ink-muted); max-width: 44ch; }
.involved-cta { display: inline-block; margin-top: var(--s-5); font-weight: 700; color: var(--green); background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size var(--dur-1) var(--ease); padding-bottom: 2px; }
.involved-card:hover, .involved-card:focus-within { background: var(--navy); }
.involved-card:hover h3 a, .involved-card:focus-within h3 a { color: var(--on-dark); }
.involved-card:hover p, .involved-card:focus-within p { color: var(--on-dark-muted); }
.involved-card:hover .involved-cta, .involved-card:focus-within .involved-cta { color: var(--green-300); background-size: 100% 2px; }
@media (max-width: 860px) {
  .meetings { grid-template-columns: 1fr; gap: var(--s-8); }
  .involved-grid { grid-template-columns: 1fr; }
}


/* ---------- Motion (only with JS present and motion allowed) ---------- */

/* Hero: the roofline is framed in on load. Text and photo stay still so LCP is never delayed. */
.motion .hero-frame-roof, .motion .hero-frame-walls { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur-3) var(--ease) 0.2s forwards; }
.motion .hero-frame-walls { animation-delay: 0.9s; }
.motion .hero-figure::before { transform: translate(-6%, 6%); animation: settle var(--dur-3) var(--ease) 0.1s forwards; }
.motion .proof-strip li { transform: translateY(14px); clip-path: inset(0 0 100% 0); animation: raise var(--dur-2) var(--ease) forwards; }
.motion .proof-strip li:nth-child(1) { animation-delay: 0.5s; }
.motion .proof-strip li:nth-child(2) { animation-delay: 0.62s; }
.motion .proof-strip li:nth-child(3) { animation-delay: 0.74s; }
.motion .proof-strip li:nth-child(4) { animation-delay: 0.86s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { to { transform: none; } }
@keyframes raise { to { transform: none; clip-path: inset(0 0 -10% 0); } }

/* Scroll reveals: raised into place. A fail-safe in site.js reveals anything already passed. */
.motion .reveal { transform: translateY(28px); clip-path: inset(0 0 100% 0); transition: transform var(--dur-2) var(--ease), clip-path var(--dur-2) var(--ease); }
.motion .reveal.is-in { transform: none; clip-path: inset(0 0 -20% 0); }
.motion .why-item:nth-child(2) { transition-delay: 0.1s; }
.motion .why-item:nth-child(3) { transition-delay: 0.2s; }
.motion .involved-card:nth-child(2) { transition-delay: 0.1s; }

/* Mission pillars light up one by one, like houses on a street. */
.motion .pillars li::before { background: var(--blue-100); transform: translateY(6px); }
.motion .pillars.is-in li::before { background: var(--green); transform: none; }
.motion .pillars.is-in li:nth-child(2)::before { transition-delay: 0.12s; }
.motion .pillars.is-in li:nth-child(3)::before { transition-delay: 0.24s; }
.motion .pillars.is-in li:nth-child(4)::before { transition-delay: 0.36s; }
.motion .pillars.is-in li:nth-child(5)::before { transition-delay: 0.48s; }

/* Checklist ticks are drawn in sequence. */
.motion .checks li::before { transform: rotate(45deg) scale(0); }
.motion .checks.is-in li::before { transform: rotate(45deg) scale(1); }
.motion .checks.is-in li:nth-child(2)::before { transition-delay: 0.08s; }
.motion .checks.is-in li:nth-child(3)::before { transition-delay: 0.16s; }
.motion .checks.is-in li:nth-child(4)::before { transition-delay: 0.24s; }
.motion .checks.is-in li:nth-child(5)::before { transition-delay: 0.32s; }
.motion .checks.is-in li:nth-child(6)::before { transition-delay: 0.4s; }

/* The house in the steps section: each stage frames the next part. */
.motion .b-foundation { transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.motion .b-studs rect { transition: transform var(--dur-2) var(--ease); }
.motion .b-rafters, .motion .b-roofline { stroke-dasharray: 1; transition: stroke-dashoffset var(--dur-3) var(--ease); }
.motion .build[data-stage="0"] .b-foundation { transform: translateY(18px); opacity: 0; }
.motion .build[data-stage="0"] .b-studs rect, .motion .build[data-stage="1"] .b-studs rect { transform: scaleY(0); }
.motion .build:not([data-stage="3"]) .b-rafters, .motion .build:not([data-stage="3"]) .b-roofline { stroke-dashoffset: 1; }
.motion .build[data-stage="3"] .b-rafters, .motion .build[data-stage="3"] .b-roofline { stroke-dashoffset: 0; }
.motion .build[data-stage="3"] .b-roofline { transition-delay: 0.35s; }
.motion .b-studs rect:nth-child(2) { transition-delay: 0.04s; }
.motion .b-studs rect:nth-child(3) { transition-delay: 0.08s; }
.motion .b-studs rect:nth-child(4) { transition-delay: 0.12s; }
.motion .b-studs rect:nth-child(5) { transition-delay: 0.16s; }
.motion .b-studs rect:nth-child(6) { transition-delay: 0.2s; }
.motion .b-studs rect:nth-child(7) { transition-delay: 0.24s; }
.motion .b-studs rect:nth-child(8) { transition-delay: 0.28s; }
.motion .b-studs rect:nth-child(9) { transition-delay: 0.32s; }
.motion .b-studs rect:nth-child(10) { transition-delay: 0.36s; }
.motion .b-studs rect:nth-child(11) { transition-delay: 0.42s; }
.motion .b-studs rect:nth-child(12) { transition-delay: 0.48s; }

/* NAHB savings ticker: the page's one ambient loop, with a pause button. */
.motion .marquee-track { animation: ticker 48s linear infinite; }
.motion .marquee.is-paused .marquee-track, .motion .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
/* Without motion the brands sit still, wrapped and centred. */
html:not(.motion) .marquee-track { display: block; width: auto; }
html:not(.motion) .marquee-list[aria-hidden="true"], html:not(.motion) .marquee-pause { display: none; }
html:not(.motion) .marquee-list { flex-wrap: wrap; justify-content: center; padding: var(--s-2) var(--s-4) var(--s-6); }
html:not(.motion) .marquee-list li { padding: var(--s-4) var(--s-4) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- Events page (/events), fed by GHL Event Management ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: var(--s-16) 0 var(--s-12); }
.page-kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-300); }
.page-title { margin-top: var(--s-3); font-size: var(--t-hero); font-weight: 850; font-stretch: 108%; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.02em; }
.page-lede { margin-top: var(--s-5); max-width: 56ch; font-size: var(--t-md); color: var(--on-dark-muted); }
html.motion .page-hero .page-kicker, html.motion .page-hero .page-lede { animation: rise var(--dur-2) var(--ease) both; }
html.motion .page-hero .page-lede { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.events { padding: var(--section) 0; }
/* Even split: 2 columns, an odd last card centred (house rule) */
.event-grid { --cols: 4; --gap: var(--s-5); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: var(--s-8); }
/* Four across; a short last row is centred, never left-hanging (house rule) */
.event-card { display: flex; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.event-link { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface, #fff); color: inherit; text-decoration: none; overflow: hidden; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.event-link:hover, .event-link:focus-visible { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.event-media { position: relative; aspect-ratio: 16 / 9; background: var(--blue-50); }
.event-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.event-date { position: absolute; left: var(--s-4); bottom: calc(var(--s-4) * -1); width: 4.5rem; height: 4.5rem; display: grid; place-content: center; text-align: center; background: var(--navy); color: var(--on-dark); border-radius: var(--radius); line-height: 1; box-shadow: var(--shadow-soft); }
.event-body { display: flex; flex-direction: column; flex: 1; padding: calc(var(--s-5) + var(--s-3)) var(--s-4) var(--s-4); }
.event-title { font-size: var(--t-md); font-weight: 800; line-height: 1.25; color: var(--navy); }
.event-when { margin-top: var(--s-3); font-weight: 600; color: var(--ink); }
.event-where { margin-top: var(--s-2); color: var(--ink-muted); }
.event-summary { margin-top: var(--s-3); color: var(--ink-muted); }
.event-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); }
.event-price { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 800; color: var(--green-700); }
.events-empty { margin-top: var(--s-6); padding: var(--s-8); border: 1px dashed var(--line); border-radius: var(--radius); max-width: 60ch; }
.events-empty p + p { margin-top: var(--s-3); }

@media (max-width: 1100px) { .event-grid { --cols: 2; } }
@media (max-width: 600px) { .event-grid { --cols: 1; } }
.event-venue { background: var(--blue-50); padding: var(--section) 0; }
.venue-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-12); align-items: start; }
.venue-layout p { margin-top: var(--s-4); color: var(--ink-muted); max-width: 54ch; }
.venue-facts { display: grid; gap: var(--s-4); }
.venue-facts div { padding: var(--s-4) var(--s-5); background: #fff; border-left: 4px solid var(--green); border-radius: var(--radius); }
.venue-facts dt { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.venue-facts dd { margin: var(--s-1) 0 0; font-weight: 700; color: var(--navy); }
@media (max-width: 860px) {
  .venue-layout { grid-template-columns: 1fr; gap: var(--s-8); }
}
.meeting-link { color: inherit; text-decoration: none; }
/* Whole row (date badge included) opens the event: the title link is stretched over the row. */
.meeting:has(.meeting-link) { position: relative; cursor: pointer; }
.meeting-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.meeting:has(.meeting-link:hover) { border-color: var(--navy); transform: translateX(4px); }
.meeting-link:focus-visible { outline: none; }
.meeting-link:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.meeting-link:hover, .meeting-link:focus-visible { color: var(--green-700); text-decoration: underline; }

/* Shared chrome: the "Become a Member" band and the footer, rendered on the homepage and
   injected into every BD page by the Worker. Classes are namespaced (ahc-) and every rule
   sets its own font, spacing and colour, so Bootstrap on BD pages cannot leak in. */

.ahc, .ahc *, .ahc *::before, .ahc *::after { box-sizing: border-box; }
.ahc { font-family: var(--f-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ahc h2, .ahc p, .ahc ul, .ahc li, .ahc address { margin: 0; padding: 0; }
.ahc ul { list-style: none; }
.ahc-wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.ahc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.ahc-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ahc-btn:focus-visible, .ahc a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ahc-btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1.0625rem; }
.ahc-btn-green { background: var(--green); color: #fff; }
.ahc-btn-green:hover, .ahc-btn-green:focus { background: var(--green-700); color: #fff; }
.ahc-btn-white { background: #fff; color: var(--green-700); }
.ahc-btn-white:hover, .ahc-btn-white:focus { background: var(--navy); color: #fff; }

/* Band */
.ahc-cta { background: var(--green); color: #fff; padding: 4rem 0; }
.ahc-cta-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.ahc-cta-title { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; color: #fff; }
.ahc-cta p { margin-top: 1rem; color: #fff; }
.ahc-cta p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 860px) { .ahc-cta-layout { grid-template-columns: 1fr; } }

/* Footer */
.ahc-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 4rem 0 2rem; font-size: 1rem; }
.ahc-footer a { color: #fff; text-decoration: none; }
.ahc-footer a:hover, .ahc-footer a:focus { color: var(--green-300); text-decoration: underline; }
.ahc-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 0.8fr; gap: 2.5rem; }
.ahc-logo { width: 180px; height: auto; background: #fff; padding: 0.5rem 0.75rem; border-radius: var(--radius); display: block; }
.ahc-footer-brand p { margin: 1rem 0 1.25rem; max-width: 32ch; }
.ahc-footer-brand .ahc-btn { color: #fff; text-decoration: none; }
.ahc-heading { font-family: var(--f-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0; }
.ahc-footer address { font-style: normal; line-height: 1.75; }
.ahc-footer address strong { color: #fff; }
.ahc-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ahc-footer-links li + li { margin-top: 0.5rem; }
.ahc-social { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.ahc-social svg { width: 22px; height: 22px; fill: currentColor; }
.ahc-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.875rem; }
.ahc-legal a + a { margin-left: 1rem; }
.ahc-credits { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.8125rem; }
.ahc-legal .ahc-credits a { display: inline-flex; align-items: center; gap: 0.375rem; margin: 0; color: var(--on-dark-muted); }
.ahc-legal .ahc-credits a:hover, .ahc-legal .ahc-credits a:focus { color: #fff; }
.ahc-credits img { display: block; height: 1rem; width: auto; }
@media (max-width: 1023px) { .ahc-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ahc-footer-grid { grid-template-columns: 1fr; } }

/* Phone menu injected into BD pages (the homepage has its own header). */
.ahc-menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; flex: 0 0 auto; }
.ahc-menu-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ahc-bars, .ahc-bars::before, .ahc-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; transition: transform var(--dur-1) var(--ease); }
.ahc-bars::before, .ahc-bars::after { content: ""; position: absolute; left: 0; }
.ahc-bars::before { top: -6px; }
.ahc-bars::after { top: 6px; }
.ahc-menu-toggle[aria-expanded="true"] .ahc-bars { background: transparent; }
.ahc-menu-toggle[aria-expanded="true"] .ahc-bars::before { transform: translateY(6px) rotate(45deg); }
.ahc-menu-toggle[aria-expanded="true"] .ahc-bars::after { transform: translateY(-6px) rotate(-45deg); }
.ahc-mnav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); position: relative; z-index: 60; }
.ahc-mnav ul { padding: 0.5rem 0 1rem; margin-inline: auto; } /* .ahc ul reset outranks .ahc-wrap */
.ahc-mnav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-body); font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.ahc-mnav a:hover, .ahc-mnav a:focus { color: var(--green); }
@media (max-width: 993px) { .ahc-menu-toggle { display: inline-block; } }
@media (min-width: 994px) { .ahc-mnav { display: none; } }

/* Phone action bar (edits list #6): pinned to the bottom on phones, homepage and BD pages. */
.ahc-mbar { display: none; }
@media (max-width: 767px) {
  .ahc-mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgb(0 37 106 / 0.12);
  }
  .ahc-mbar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius);
    font-family: var(--f-display); font-weight: 700; font-size: 1rem; text-decoration: none;
  }
  .ahc-mbar-find { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
  .ahc-mbar-join { background: var(--green); color: #fff; border: 2px solid var(--green); }
  .ahc-mbar a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  body:has(.ahc-mbar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Initials tile in place of BD's stock listing photo: one treatment for every member. */
.ahc-tile {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; width: 100%; max-width: 160px;
  background: var(--navy); color: #fff; border-radius: var(--radius); position: relative; overflow: hidden;
  font-family: var(--f-display); font-weight: 800; letter-spacing: 0.02em; font-size: clamp(1.25rem, 4vw, 2.25rem);
}
.ahc-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: var(--green); }
.ahc-tile-lg { max-width: none; aspect-ratio: 3 / 2; font-size: clamp(2.5rem, 8vw, 5rem); }
