/* ==========================================================================
   AIY Property 2026 — layout styles
   Colors reference CSS custom properties set per-property in the
   Customizer (see inc/customizer.php) — never hardcode a property's
   brand color directly in this file.
   ========================================================================== */

/* Header / nav */

/* Mobile nav toggle — hidden on desktop, becomes visible in the mobile
   media query below. */
.aiy-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.aiy-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--aiy-color-accent, #0A3254);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.aiy-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aiy-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.aiy-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* .aiy-header-row previously used shorthand `padding: 16px 0`. Since this
   and .aiy-container are both applied to the same element with equal CSS
   specificity, and this rule loads after .aiy-container's, the shorthand
   completely overrode the container's left/right 4em gutter instead of
   just setting vertical spacing — the header lost its horizontal gutter
   entirely. Fixed by setting only padding-top/padding-bottom below, which
   leaves the container's horizontal padding untouched. */
.aiy-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E3EAEE;
}

.aiy-brand-property {
  display: flex;
  flex-direction: column;
}
.aiy-brand-name {
  font-weight: 700;
  font-size: 26px; /* was 17px — ~50% larger per request */
  color: var(--aiy-color-accent, #0A3254);
  letter-spacing: 0.2px;
  text-decoration: none;
  line-height: 1.1;
}
.aiy-brand-logo img {
  /* 2026-09-22: was 64px / 160px. Height cap raised to 6rem (96px) so
     square and vertical logos render at a readable size. Width cap raised
     to 20rem (320px) so wide wordmarks have room but still can't crowd the
     nav: a ~2:1 logo like Bexley's lands around 196px wide (height-limited),
     while a 5:1 wordmark hits the width cap first and scales down.
     rem (not em) so header font-size changes can't resize the logo. */
  max-height: 6rem;
  max-width: min(100%, 20rem);
  width: auto;
  height: auto;
  display: block;
}

.aiy-brand-logo img {
  max-height: 6rem;
  max-width: min(100%, 20rem);
  width: auto;
  height: auto;
  display: block;
}

/* SVGs without width/height on the <svg> root have no intrinsic size,
   so width:auto collapses to 0 in the flex header. Give them a height
   and let the viewBox aspect ratio set the width. */
.aiy-brand-logo img[src*=".svg"] {
  height: 6rem;
}

.aiy-primary-nav > ul {
  /* FIXED (2026-08-27): was ".aiy-primary-nav ul" (descendant combinator),
     which matched EVERY <ul> anywhere inside the nav — including
     .aiy-city-properties buried deep inside the mega menu's cards. That
     rule's higher specificity ((0,1,1) vs .aiy-city-properties's (0,1,0))
     silently overrode display:block with flex regardless of source
     order, which is why property lists kept rendering side-by-side no
     matter how many times .aiy-city-properties itself was "fixed" — the
     real bug was never in that rule at all. The child combinator (>)
     scopes this to ONLY the top-level menu <ul>, not nested ones. */
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aiy-primary-nav > ul > li > a {
  /* Scoped (2026-08-27) — was ".aiy-primary-nav a", matching every link
     ANYWHERE inside the nav, including every property name, city-more
     link, and the "View all communities" link nested inside the mega
     menu. Not visibly broken currently (a more specific rule happens to
     win on color), but display:flex was still leaking through onto
     those links since the old rule never lost the cascade on THAT
     specific property. Same bug class as the .aiy-primary-nav ul fix
     above — closing it off here too before it causes a second, harder-
     to-spot version of the same problem. */
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--aiy-color-primary, #185ABC);
}

/* Icon alignment, carried over from the confirmed working CSS */
.menu-communities a .material-symbols-outlined {
  margin-right: 6px;
  font-size: 1.1em;
  vertical-align: -2px;
}

/*
 * Material Symbols base styling — required for the variable font to
 * render as the outlined style at a consistent weight. Without
 * font-variation-settings, the glyphs can render inconsistently across
 * browsers (some default to filled, weights can look uneven).
 */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  display: inline-block;
  /*
   * REAL FIX (2026-09-11): Google's own Material Symbols stylesheet
   * bundles its own ".material-symbols-outlined { font-size: 24px; }"
   * rule targeting this exact class. That's an explicit declaration ON
   * THE ELEMENT ITSELF, so it always wins over whatever font-size is
   * set on an ancestor like .feat-icon — inheritance only applies when
   * nothing explicit matches the element directly, and Google's rule
   * does. Setting it here, directly on the class, at 32px per your
   * confirmed test — loads after Google's stylesheet (see the enqueue
   * order in functions.php), so this wins on identical specificity.
   */
  font-size: 32px;
}

/* Application Login — styled as a button, not a plain nav link */
.aiy-primary-nav a.aiy-nav-btn {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  background: linear-gradient(120deg, #0092D0, #0F4D80); /* reverted to the original two-darker-blue gradient per direct request — this is back to how it was before the brand-blue/light-tint change */
  padding: 9px 20px;
  border-radius: 30px;
  box-shadow: 0 6px 14px rgba(0,146,208,0.3);
}
.aiy-primary-nav a.aiy-nav-btn:hover { opacity: 0.92; }

/* ==========================================================================
   Mega menu — "Our Communities" dropdown.
   Values below are pulled DIRECTLY from the approved prototype's own CSS
   (.mega, .mega-top, .filter-box, .mega-masonry, .city-block — confirmed
   2026-08-19), not estimated from a screenshot. Neutral grays/lines are
   hardcoded to match the prototype exactly; city-name and count-badge
   colors use the brand custom properties so this still adapts correctly
   across every property's palette instead of hardcoding the prototype's
   one navy/blue example.
   ========================================================================== */
.aiy-site-header { position: relative; }
.aiy-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 4em;
  right: 4em;
  margin-top: 0;
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 10px;
  box-shadow: 0 24px 40px rgba(10,50,84,0.16);
  padding: 20px 24px 22px;
  z-index: 50;
}
/* CONVERTED from :hover/:focus-within to a click-driven .is-open class
   (2026-08-27) — see theme.js for why. .has-mega-menu:focus-within is
   kept as a supplementary accessibility fallback: a keyboard user
   tabbing to a link inside the (JS-opened) panel keeps it visibly open
   even if focus moves in a way the click state doesn't track, but the
   primary open/close mechanism is now the click handler's .is-open
   class, not hover. */
.has-mega-menu.is-open .aiy-mega-menu,
.has-mega-menu:focus-within .aiy-mega-menu {
  display: block;
}

.aiy-mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid #E3EAEE;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.aiy-mega-menu-summary {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6C808A;
}
.aiy-mega-menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F4F8FA;
  border: 1px solid #E3EAEE;
  border-radius: 24px;
  padding: 7px 14px;
  width: 260px;
}
.aiy-mega-menu-search svg { width: 13px; height: 13px; flex-shrink: 0; }
.aiy-mega-menu-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 12px;
  width: 100%;
}
.aiy-mega-menu-viewall {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aiy-color-primary, #0092D0);
  text-decoration: none;
}
.aiy-mega-menu-viewall:hover { text-decoration: underline; }

.aiy-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* was 4 — at 4 columns, longer property names ("Pheasant Run Apartments") didn't fit as a whole word, forcing a break-word fallback. hyphens:auto was added to soften that, but browser support for automatic hyphenation is genuinely inconsistent (confirmed not rendering on Chrome in testing) — 3 wider columns fixes the actual root cause instead of depending on a browser feature that doesn't reliably work. */
  gap: 14px 18px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.aiy-city-card {
  min-width: 0; /* CRITICAL for CSS Grid — without this, a long unbroken name forces this track wider than its fr share and the whole grid overflows past the viewport */
  padding: 12px 14px;
  background: #F4F8FA;
  border: 1px solid #E3EAEE;
  border-radius: 8px;
  overflow-wrap: break-word; /* wraps at spaces normally; only force-breaks if a word truly can't fit alone. Do NOT add word-break:break-word alongside this — it's notoriously over-aggressive and will chop words like "Apartments" mid-letter even when a normal wrap would fit. */
  hyphens: auto; /* when a force-break genuinely is needed (narrow 4-column cards + a long word like "Apartments"), this inserts a real hyphen at a syllable boundary instead of leaving a bare orphaned letter on its own line — relies on the page's lang attribute, already set via language_attributes() in header.php */
}
.aiy-city-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 7px;
  cursor: pointer;
}
.aiy-city-name {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--aiy-color-accent, #0A3254);
}
.aiy-city-card-head:hover .aiy-city-name { color: var(--aiy-color-primary, #0092D0); }
/* 2026-10-12: city name is now a link to /locations/{slug}/ */
a.aiy-city-name { text-decoration: none; }
a.aiy-city-name:hover,
a.aiy-city-name:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.aiy-city-count {
  font-weight: 600;
  font-size: 10px;
  color: #fff;
  background: var(--aiy-color-primary, #0092D0);
  border-radius: 20px;
  padding: 1px 7px;
}
.aiy-city-properties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block; /* explicit, in case anything upstream sets flex/grid context */
}
.aiy-city-properties li {
  display: block;   /* explicit — guarantees one property per line regardless of context */
  width: 100%;
  font-size: 11.5px;
  padding: 3px 0;
  border-bottom: 1px dotted #DCE6EA;
}
.aiy-city-properties li:last-child { border-bottom: none; }
.aiy-city-properties a {
  color: #2B3A42;
  text-decoration: none;
}
.aiy-city-properties a:hover { color: var(--aiy-color-primary, #0092D0); }
.aiy-city-more {
  display: block;
  padding: 3px 0;
  font-size: 11.5px;
  font-style: italic;
  color: #6C808A;
  text-decoration: none;
}

.aiy-mega-menu-no-results {
  text-align: center;
  color: #6C808A;
  padding: 24px;
  font-size: 13px;
}

/* Specials banner — property-specific, not a network search. Rebuilt
   2026-09-15 to match the actual prototype design (pill tag, gradient
   background, CTA, dismiss button) — values pulled directly from the
   prototype source, adapted to our brand color variables instead of
   its own hardcoded blues. */
.aiy-specials-banner {
  background: linear-gradient(120deg, var(--aiy-color-accent, #0D3B66), var(--aiy-color-primary, #185ABC));
  color: #fff;
}
.aiy-specials-banner-inner {
  /* padding-top/bottom only, NOT shorthand `padding` — this class is
     combined with .aiy-container on the same element (see
     specials-banner.php), and shorthand here would repeat the exact
     gutter-collision bug already fixed once on .aiy-header-row: it
     happens to produce the right result today since both use 4em, but
     that's fragile — if the container's gutter value ever changes,
     this would silently stop tracking it. */
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  flex-wrap: wrap;
}
.aiy-specials-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.aiy-specials-tag svg { width: 12px; height: 12px; }
.aiy-specials-copy { font-size: 12.5px; font-weight: 500; }
.aiy-specials-cta {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.aiy-specials-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  padding: 4px;
}
.aiy-specials-close:hover { opacity: 1; }

@media (max-width: 780px) {
  .aiy-specials-banner-inner { padding-right: 44px; } /* extra room for the dismiss button; NOT shorthand, so .aiy-container's own left padding and this rule's own top/bottom stay untouched */
}

/* Hero */
.aiy-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.aiy-btn-primary {
  background: var(--aiy-color-primary, #185ABC);
  color: #fff;
}

/* Contact block (phone / 24hr resident line) */
.aiy-contact-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aiy-contact-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.aiy-contact-note {
  font-size: 13px;
  max-width: 480px;
  margin: 4px auto 0;
  opacity: 0.85;
}

/* ==========================================================================
   Property page — mosaic gallery, feature tiles, floorplan teaser.
   Structure ported from the confirmed prototype; colors use the brand
   custom properties so it still works across every property's palette.
   ========================================================================== */

.aiy-crumbtrail {
  padding: 20px 0; /* matches .aiy-address-display's margin below, per request that both share the same vertical rhythm */
  font-size: 11.5px;
  color: #6C808A;
}
.aiy-crumbtrail a { color: #6C808A; text-decoration: none; }
.aiy-crumbtrail a:hover { color: var(--aiy-color-primary, #0092D0); text-decoration: underline; }
.aiy-crumbtrail strong { color: var(--aiy-color-accent, #0A3254); font-weight: 600; }

.prop-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; /* matches prototype exactly — was wrongly 2fr 1fr 1fr with an extra implied column */
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 440px; /* increased from 300px per request */
  overflow: hidden; /* THE FIX — this is what makes border-radius below actually round the photo corners instead of clipping nothing */
  border-radius: 12px;
  /* margin-top removed (was 24px) — it was stacking with .aiy-crumbtrail's
     own 20px padding-bottom (padding + margin don't collapse), making the
     gap below the breadcrumb 44px vs 20px above it. The breadcrumb's own
     padding is already symmetric on its own; this mosaic margin was the
     actual source of the visible asymmetry, not the breadcrumb itself. */
}
.prop-mosaic .cell {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #E2ECEF, #E2ECEF 12px, #D8E4E8 12px, #D8E4E8 24px);
}
.prop-mosaic .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prop-mosaic .m-main { grid-row: 1 / 3; }
.prop-mosaic .more-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.prop-mosaic .placeholder-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8FA3AA;
  font-size: 13px;
}

/* Partial gallery — 1-4 real photos, no placeholder cells mixed in */
.prop-mosaic--partial { display: block; }
.prop-mosaic--partial .m-main-solo {
  height: 460px; /* increased from 360px per request */
  margin-bottom: 4px;
  overflow: hidden;
}
.prop-mosaic--partial .m-main-solo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mosaic-secondary-row {
  display: flex;
  gap: 4px;
}
.mosaic-secondary-row .cell {
  flex: 1;
  height: 220px; /* increased from 160px per request */
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #E2ECEF, #E2ECEF 12px, #D8E4E8 12px, #D8E4E8 24px);
}
.mosaic-secondary-row .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Whole mosaic is clickable — opens the lightbox */
.prop-mosaic[data-lightbox-trigger] { cursor: pointer; }

/* Lightbox — full-screen scrollable modal, matches the Zillow pattern:
   vertical scroll through every photo, not a one-at-a-time carousel. */
.aiy-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,25,0.94);
  z-index: 1000;
  overflow-y: auto;
  padding: 70px 0 40px;
}
.aiy-lightbox.is-open { display: block; }
.aiy-lightbox-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px;
}
.aiy-lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.aiy-lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aiy-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.aiy-lightbox-count {
  position: fixed;
  top: 30px;
  left: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 1001;
}

.aiy-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;
}

.aiy-address-display {
  font-size: 21px; /* was 28px — reduced to 0.75x per request, was oversized especially on mobile */
  font-weight: 700;
  color: var(--aiy-color-accent, #0A3254);
  margin: 20px 0; /* was 0 — genuinely zero gap above (touching the mosaic) and below (touching the amenities card), matching the 20px rhythm used for the breadcrumb elsewhere on this page */
  letter-spacing: -0.01em;
}
.aiy-address-part { white-space: nowrap; } /* line can only break between street and city/state */

.features-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.aiy-features-disclaimer {
  font-size: 12px;
  font-style: italic;
  color: #4e5253;
  margin: -12px 0 28px;
  text-align: center;
}
.feat-card { border: 1px solid #E5E5E5; border-radius: 8px; overflow: hidden; }
.feat-card .band {
  background: var(--aiy-color-accent, #0D3B66);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feat-icon-grid {
  display: grid;
  /*
   * CHANGED (2026-09-15): was grid-auto-flow:column with 4 items per
   * column before wrapping to a new one — fine for the original small
   * lists (5-11 items), but Tony's final lists can go up to 49 items,
   * which could need a dozen-plus columns and triggered real horizontal
   * scrolling once enough boxes were checked on a property. Switched to
   * a simple 2-column grid that grows downward (more rows) instead of
   * sideways (more columns) — works correctly no matter how many items
   * end up checked, and the horizontal-scroll safety net is no longer
   * needed since this can't run out of width.
   */
  grid-template-columns: repeat(2, 1fr);
  column-gap: 24px;
  padding: 6px 20px 14px;
}
.feat-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid #EEF1F3; /* the divider line between rows */
}
.feat-tile:nth-last-child(-n+2) { border-bottom: none; } /* the final row (last 2 items in DOM order) doesn't need a trailing divider — works correctly whether the total count is odd or even, unlike the old :nth-child(4n) rule this replaced, which was tuned for the previous 4-per-column layout */
.feat-icon {
  width: 64px;
  height: 64px;
  color: var(--aiy-color-primary, #0092D0);
  display: flex;
  align-items: center;
  justify-content: center;
  /* font-size here does nothing — the glyph's actual size is set
     directly on .material-symbols-outlined (see that rule for why).
     Kept this box at 64px regardless since it still controls the
     icon's clickable/visual footprint, just not the glyph size itself. */
  flex-shrink: 0; /* icon never compresses, even if the label text is long */
}
.feat-label { color: #333; line-height: 1.3; }

.floorplan-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 22px; /* was 15px — H3-scale per request */
  font-weight: 700;
  color: var(--aiy-color-primary, #0092D0); /* blue, per request */
  text-align: center;
}

.cta-wrap { padding: 20px 0 32px; }
.cta-wrap--centered { display: flex; justify-content: center; }
.cta-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 13.5px; /* was 12.5px — "a little larger" */
  color: #fff;
  /* 2026-09-22: was hardcoded gold (#da9d0d). Client was on the fence, so
     it's now a per-property Customizer setting (AIY Property Branding →
     Button Color), defaulting to light blue. */
  background: var(--aiy-color-button, #0092D0);
  padding: 15px 34px; /* was 13px 30px — "a little larger" */
  border-radius: 30px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--aiy-color-button, #0092D0) 35%, transparent); /* shadow follows whatever button color is set */
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Contact card — phone number + resident line (manager block removed 2026-08-21) */
.contact-card {
  border: 1px solid #E3EAEE;
  border-radius: 10px;
  padding: 22px 24px;
}

/* Contact card + Birdeye reviews row (front-page.php) — 2026-09-23.
   50/50 when a property has a Birdeye script; card alone is full width. */
.aiy-contact-row { margin-bottom: 32px; }
.aiy-contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; /* both columns match the taller one's height */
}
/* Balance pass: the reviews sit in a card that matches the contact card
   (same border, radius, padding, height), with a small heading in the
   same style as the "24/7 Resident Line" label, so the row reads as a
   matched pair instead of a card next to a floating widget. */
.aiy-contact-row--split .contact-card { height: 100%; }
.aiy-contact-row--split .aiy-contact-row__reviews {
  border: 1px solid #E3EAEE;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.aiy-reviews-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aiy-color-primary, #0092D0);
  margin: 0 0 12px;
}
.aiy-reviews-embed { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.aiy-contact-row__card, .aiy-contact-row__reviews { min-width: 0; } /* lets the third-party widget shrink instead of blowing out the grid */
.aiy-contact-row__reviews { overflow: hidden; }
/* In a half-width column the icon + text need less room */
.aiy-contact-row--split .cc-resident { gap: 16px; }
.aiy-contact-row--split .cc-resident-icon { width: 64px; height: 64px; }
.aiy-contact-row--split .cc-resident-icon .material-symbols-outlined { font-size: 32px; }
/* 2026-09-22: resident line is now the hero of the card; property phone
   is a single quiet line below it. Replaces the old .cc-numbers /
   .cc-explain two-column layout. */
.cc-resident {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cc-resident-text { flex: 1; min-width: 0; max-width: 640px; }
.cc-resident-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* soft tint of the property's primary color behind the default icon */
  background: color-mix(in srgb, var(--aiy-color-primary, #0092D0) 12%, #fff);
  color: var(--aiy-color-primary, #0092D0);
}
.cc-resident-icon .material-symbols-outlined { font-size: 40px; }
/* An uploaded icon brings its own design, so no tinted circle behind it */
.cc-resident-icon--custom { background: none; border-radius: 0; }
.cc-resident-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cc-resident-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aiy-color-primary, #0092D0);
  margin-bottom: 4px;
}
.cc-resident-number {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--aiy-color-accent, #0A3254);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.cc-resident-number:hover { text-decoration: underline; }
.cc-resident-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--aiy-color-accent, #0A3254);
  margin: 8px 0 12px;
}
.cc-resident-body {
  font-size: 15px;
  line-height: 1.65;
  color: #33434B;
  margin: 0;
}
.cc-property-phone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E3EAEE;
  font-size: 16px; /* was 13.5px — bumped per 2026-09-23 review */
  color: #6C808A;
}
.cc-property-phone:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.cc-property-phone-label { font-weight: 600; margin-right: 4px; }
.cc-property-phone a { color: var(--aiy-color-accent, #0A3254); font-weight: 700; font-size: 18px; text-decoration: none; }
.cc-property-phone a:hover { text-decoration: underline; }

.emergency-strip {
  background: #FDECEC;
  border: 1px solid #F5C6C6;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.aiy-neighborhood-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid #EEE;
}
.aiy-neighborhood-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0 0 10px;
}
.aiy-neighborhood-text { font-size: 14px; color: #444; line-height: 1.6; }
.aiy-neighborhood-map-embed {
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
}
.aiy-neighborhood-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 780px) {
  .aiy-neighborhood-map { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .prop-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); height: 480px; }
  .prop-mosaic .m-main { grid-row: 1 / 2; grid-column: 1 / 3; }
  .features-wrap { grid-template-columns: 1fr; }
}

/* Footer */
.aiy-site-footer {
  background: #fff;
  color: #2B3A42;
  padding: 40px 0 0;
}

/* .aiy-footer-equal-housing-block is combined with .aiy-container on the
   same element (see footer.php) — using padding-top/padding-bottom only,
   NOT shorthand `padding`, for the same reason documented on
   .aiy-header-row: shorthand would silently override the container's
   left/right gutter instead of just adding vertical spacing. */
.aiy-footer-equal-housing-block {
  text-align: center;
  padding-top: 8px;
  padding-bottom: 32px;
}
/* General-purpose "this isn't real content yet" flag — used wherever
   a section is functional but waiting on real data (e.g. hero image
   not uploaded yet). Kept as a shared utility rather than one-off
   styles per location. */
.aiy-placeholder-flag {
  font-size: 12px;
  font-style: italic;
  color: #B23A2E;
  margin: 12px 0;
}

.aiy-eho-icon {
  width: 80px; /* was 120px, too big — dialed back */
  height: 80px;
  margin: 0 auto 12px;
}
.aiy-eho-icon img {
  width: 100%;
  height: 100%;
  display: block;
  /* Real logo defaults to solid black — opacity here is literally "what
     percentage of black" it renders at. 45% reads as a mid-gray; adjust
     this one number to taste rather than touching the SVG itself. */
  opacity: 0.45;
}
.aiy-eho-label {
  font-size: 13px; /* was 10.5px — "eyebrow" label, bumped per request */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C808A;
  margin-bottom: 6px;
}
.aiy-eho-text {
  font-size: 16px;
  color: #6C808A;
  max-width: 760px; /* was 480px — too narrow, wrapped the "complies with..." sentence to two lines. Widened generously rather than forcing nowrap, which would risk the text overflowing instead of fitting if this estimate were slightly off. */
  margin: 0 auto;
}
.aiy-footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}
.aiy-footer-legal-links a {
  color: var(--aiy-color-primary, #0092D0);
  font-size: 12px;
  text-decoration: none;
}
.aiy-footer-legal-links a:hover { text-decoration: underline; }
.aiy-footer-copyright { font-size: 11px; color: #9AAAB2; margin-top: 14px; }

@media (max-width: 780px) {
  /* Reduced gutter — 4em was fine on desktop but way too tight relative
     to a ~375px mobile viewport (128px total eaten by padding alone). */
  .aiy-container { padding: 0 1em; }

  /* Header line was getting hit by wrapped property-name text on
     tablet portrait/mobile — 26px was sized for desktop, where the row
     is wide enough that names rarely wrap. On a narrow viewport, a
     longer property name plus the hamburger button competing for the
     same row easily wraps to two lines, and the border-bottom line
     wasn't given enough clearance for that. Reduced size directly
     lowers the chance of wrapping at all; the extra bottom padding is
     a safety margin for when a name is long enough to wrap regardless. */
  .aiy-brand-name { font-size: 19px; line-height: 1.25; }
  /* 2026-09-22: was padding-bottom 22px (top stayed 16px), which left the
     header visibly bottom-heavy. Balanced at 16px — the extra bottom room
     was only a safety margin for wrapped text names, and line-height
     already handles that. */
  .aiy-header-row { padding-top: 16px; padding-bottom: 16px; }
  /* The toggle is a 36px tap target around 22px lines, so the visible
     lines sat 7px inside the gutter while the logo sat right on it.
     Pull the button out by that 7px so both edges line up. */
  .aiy-nav-toggle { margin-right: -7px; }
  .aiy-brand-logo img {
    /* 2026-09-22: was 40px / 120px. Scaled with the desktop increase;
       64px tall keeps the header compact next to the hamburger. */
    max-height: 4rem;
    max-width: min(100%, 12.5rem); /* 200px */
  }
  .aiy-address-display { font-size: 18px; line-height: 1.3; } /* was 21px at all sizes */
  .cc-resident-number { font-size: 28px; }
  .cc-resident { gap: 16px; }
  .cc-resident-icon { width: 56px; height: 56px; }
  .cc-resident-icon .material-symbols-outlined { font-size: 28px; }
  /* 2026-09-22: on mobile, "Our Communities" is a plain link to the
     communities page (see theme.js) — the mega menu never opens here. */
  .has-mega-menu.is-open .aiy-mega-menu,
  .has-mega-menu:focus-within .aiy-mega-menu { display: none; }
  .aiy-eho-text {
    max-width: 90%; /* the 760px desktop max-width would be too wide relative to a narrow phone screen */
  }

  /* Hamburger becomes visible, nav becomes a stacked toggle panel. */
  .aiy-nav-toggle { display: flex; }
  .aiy-primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E3EAEE;
    box-shadow: 0 12px 24px rgba(10,50,84,0.12);
    /* FIXED (2026-09-22): no z-index here meant the panel sat UNDER any
       later positioned element it overlapped. .prop-mosaic .cell is
       position:relative, so the gallery painted over the panel and hid
       Resident Services + Application Login. Only "Our Communities" showed
       because its row happened to land over the (non-positioned)
       breadcrumb. 100 clears page content (highest is 20) and stays
       below the lightbox (1000+). */
    z-index: 100;
  }
  .aiy-primary-nav.is-open { display: block; }
  .aiy-primary-nav > ul {
    /* Same fix as the desktop rule above — scoped to direct child only
       so this doesn't reach into .aiy-city-properties nested inside the
       mega menu. */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 1em 16px;
  }
  .aiy-primary-nav > ul > li { border-bottom: 1px solid #F0F0F0; }
  .aiy-primary-nav > ul > li:last-child { border-bottom: none; }
  .aiy-primary-nav a { padding: 14px 4px; }
  .aiy-primary-nav a.aiy-nav-btn { justify-content: center; margin: 10px 0; }
  /* No hover-disabling rule needed anymore — the trigger is click-based
     at every screen size now (2026-08-27), so mobile gets the same rich
     panel via tap instead of being routed straight past it to the flat
     /our-communities/ page. Genuine improvement, not just parity. */

  .aiy-mega-menu { position: static; left: auto; right: auto; margin: 8px 0 0; box-shadow: none; border: 1px solid #E3EAEE; }
  .aiy-mega-menu-grid { grid-template-columns: 1fr 1fr; }
  .aiy-mega-menu-search { width: 100%; }

  .aiy-two-col, .aiy-footer-grid { grid-template-columns: 1fr; }
}

/* Corporate homepage — hero */
.aiy-hero--full {
  min-height: 100vh;
  background-color: var(--aiy-color-accent, #0A3254); /* fallback if no hero image is set */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* was center — the photo has the family positioned to the right with open space on the left, so left-aligned text fits the composition */
  color: #fff;
  padding: 0 4em;
  position: relative;
  text-align: left; /* was center */
}
/* Navy fade behind the hero text — 2026-09-23. Solid on the left where
   the headline sits, easing to a light tint on the right over the photo. */
.aiy-hero--full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,50,84,0.94) 0%,
    rgba(10,50,84,0.88) 28%,
    rgba(10,50,84,0.55) 50%,
    rgba(10,50,84,0.22) 72%,
    rgba(10,50,84,0.15) 100%
  );
  pointer-events: none;
}
.aiy-hero-content { position: relative; z-index: 1; } /* above the fade */
.aiy-hero-content {
  max-width: 640px;
  width: 100%;
}
.aiy-hero--full h1 {
  font-size: 64px; /* was 34px — "make this more of a moment" */
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.aiy-hero-subtext {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  max-width: 480px;
  margin: 0 0 44px; /* was 0 auto 44px — auto-centered it within the column; left-aligned now to match the rest of the hero */
  line-height: 1.6;
}

/* "Find Your Community" search block, built directly into the hero */
.aiy-hero-search { max-width: 520px; margin: 0; } /* was margin: 0 auto — left-aligned now */
.aiy-hero-search-label {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.aiy-city-search { max-width: 100%; position: relative; }
.aiy-city-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 40px;
  padding: 16px 24px;
  /* Glass/frosted treatment — sits on top of the hero photo, so a
     solid panel would fight the image; blurring what's behind it
     instead is the modern pattern for search-over-photography (Airbnb,
     Zillow-style hero search bars) and was the "make it look cool"
     ask specifically. */
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.aiy-city-search-input-wrap:focus-within {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 4px rgba(97,142,209,0.35); /* soft brand-blue glow on focus */
}
.aiy-city-search-input-wrap svg { width: 18px; height: 18px; flex-shrink: 0; }
.aiy-city-search-input-wrap input {
  border: none;
  outline: none;
  background: none;
  font-size: 16px;
  width: 100%;
  color: #fff;
}
.aiy-city-search-input-wrap input::placeholder { color: rgba(255,255,255,0.7); }

.aiy-city-search-results {
  display: none; /* revealed by JS on focus/typing */
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  /* Solid, not glass — this is a list people need to actually read and
     click; legibility wins over the frosted effect here. */
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(10,50,84,0.28);
  padding: 8px;
  z-index: 20;
  text-align: left;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.aiy-city-search-results.is-open { display: block; }
.aiy-city-search-results.is-open.is-visible { opacity: 1; transform: translateY(0); }
.aiy-city-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.aiy-city-search-item:hover { background: #F4F8FA; }
.aiy-city-search-item .name { font-size: 14px; font-weight: 600; color: var(--aiy-color-accent, #0A3254); }
.aiy-city-search-item .count {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--aiy-color-primary, #0092D0);
  border-radius: 20px;
  padding: 2px 9px;
}
.aiy-city-search-empty { padding: 10px 12px; font-size: 13px; color: #6C808A; margin: 0; }

.aiy-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--aiy-color-primary, #0092D0);
  margin-bottom: 8px;
  margin-top: 0; /* 2026-10-12: was 40px — stacked on the breadcrumb's 20px padding + .aiy-loc-hero padding, leaving a big gap above "Our Communities in" */
}

@media (max-width: 780px) {
  /* 2026-09-22: was 0 1.25em (20px) vs the header's 1em (16px) gutter,
     so hero text sat 4px right of the logo. Matched to the container. */
  .aiy-hero--full { padding: 0 1em; min-height: 100vh; }
  .aiy-hero--full h1 { font-size: 38px; }
  .aiy-hero-subtext { font-size: 16px; margin-bottom: 32px; }
}

/* Location page — city-filtered property listing */
.aiy-loc-hero { padding: 16px 4em 12px; } /* was 32px 4em 24px — too much space stacking on top of the breadcrumb's own padding and before the card grid */
.aiy-loc-hero h1 { font-size: 28px; font-weight: 800; color: var(--aiy-color-accent, #0A3254); margin: 0 0 8px; }
.aiy-loc-hero p { font-size: 14px; color: #6C808A; margin: 0; }

.aiy-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; /* was 20px */
  padding-bottom: 48px;
}
.aiy-prop-card {
  display: block;
  border: 1px solid #E3EAEE;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.aiy-prop-card:hover { box-shadow: 0 12px 26px rgba(10,50,84,0.14); transform: translateY(-2px); }
.aiy-prop-card .photo {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.aiy-prop-card .photo--placeholder {
  background-image: repeating-linear-gradient(45deg, #E2ECEF, #E2ECEF 12px, #D8E4E8 12px, #D8E4E8 24px);
}
.aiy-prop-card .body { padding: 14px 16px 16px; }
.aiy-prop-card .name { font-size: 15px; font-weight: 700; color: var(--aiy-color-accent, #0A3254); margin-bottom: 4px; }
.aiy-prop-card .unit { font-size: 12px; color: #6C808A; }

@media (max-width: 780px) {
  .aiy-loc-hero { padding: 12px 1em 10px; } /* was 24px 1em 20px, reduced proportionally to the desktop change */
  .aiy-prop-grid { grid-template-columns: 1fr 1fr; padding-left: 1em; padding-right: 1em; }
  .feat-icon-grid { grid-template-columns: 1fr; }
  .feat-tile:nth-last-child(-n+2) { border-bottom: 1px solid #EEF1F3; } /* undo the desktop "last row" exception — in single-column mode every item is its own row */
  .feat-tile:last-child { border-bottom: none; }
}

/* ==========================================================================
   Our Communities directory (page-our-communities.php) — 2026-09-22
   ========================================================================== */
.aiy-comm-hero { padding-top: 8px; padding-bottom: 24px; }
.aiy-comm-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.aiy-comm-hero p { font-size: 16px; color: #6C808A; margin: 0; }

.aiy-comm-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 16px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #E3EAEE;
}
.admin-bar .aiy-comm-toolbar { top: 32px; }
.aiy-comm-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  border: 1px solid #D5DFE4;
  border-radius: 40px;
  padding: 12px 20px;
  background: #F7FAFB;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.aiy-comm-search:focus-within {
  background: #fff;
  border-color: var(--aiy-color-primary, #0092D0);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aiy-color-primary, #0092D0) 18%, transparent);
}
.aiy-comm-search .material-symbols-outlined { font-size: 22px; color: #6C808A; }
.aiy-comm-search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 16px; /* 16px stops iOS from zooming on focus */
  color: var(--aiy-color-accent, #0A3254);
  min-width: 0;
}
.aiy-comm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aiy-comm-chip {
  border: 1px solid #D5DFE4;
  background: #fff;
  color: var(--aiy-color-accent, #0A3254);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.aiy-comm-chip:hover { border-color: var(--aiy-color-primary, #0092D0); }
.aiy-comm-chip .count {
  font-size: 11.5px;
  font-weight: 600;
  color: #6C808A;
  margin-left: 4px;
}
.aiy-comm-chip.is-active {
  background: var(--aiy-color-accent, #0A3254);
  border-color: var(--aiy-color-accent, #0A3254);
  color: #fff;
}
.aiy-comm-chip.is-active .count { color: rgba(255,255,255,0.75); }
.aiy-comm-status { font-size: 12.5px; color: #6C808A; margin: 12px 0 0; }

.aiy-comm-city { padding-top: 24px; }
.aiy-comm-city[hidden] { display: none; }
.aiy-comm-city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.aiy-comm-city-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0;
}
.aiy-comm-city-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aiy-color-primary, #0092D0);
  text-decoration: none;
}
.aiy-comm-city-head a:hover { text-decoration: underline; }

.aiy-prop-grid.aiy-prop-grid--directory {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}
.aiy-prop-grid--directory .aiy-prop-card[hidden] { display: none; }
.aiy-prop-grid--directory .photo { height: 180px; }
.aiy-prop-card .more {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aiy-color-primary, #0092D0);
}
.aiy-comm-empty {
  padding: 40px 0 64px;
  font-size: 15px;
  color: #6C808A;
  text-align: center;
}

/* ==========================================================================
   Default pages — About, Privacy Policy, etc. (page.php) — 2026-09-22
   ========================================================================== */
.aiy-page { padding-bottom: 64px; }
.aiy-page-header {
  max-width: 760px;
  padding: 8px 0 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #E3EAEE;
}
.aiy-page-header h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0;
  letter-spacing: -0.01em;
}
.aiy-page-updated { font-size: 13px; color: #6C808A; margin: 8px 0 0; }
.aiy-page-content {
  max-width: 760px; /* ~75 characters per line — comfortable for long legal copy */
  font-size: 16.5px;
  line-height: 1.75;
  color: #33434B;
}
.aiy-page-content > *:first-child { margin-top: 0; }
.aiy-page-content p { margin: 0 0 1.1em; }
.aiy-page-content h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--aiy-color-accent, #0A3254);
  margin: 2.2em 0 0.6em;
}
.aiy-page-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--aiy-color-accent, #0A3254);
  margin: 1.8em 0 0.5em;
}
.aiy-page-content ul,
.aiy-page-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.aiy-page-content li { margin-bottom: 0.4em; }
.aiy-page-content li::marker { color: var(--aiy-color-primary, #0092D0); }
.aiy-page-content a {
  color: var(--aiy-color-primary, #0092D0);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere; /* long raw URLs in legal copy can't overflow on phones */
}
.aiy-page-content strong { color: var(--aiy-color-accent, #0A3254); }
.aiy-page-content img { max-width: 100%; height: auto; border-radius: 8px; }
.aiy-page-content hr { border: none; border-top: 1px solid #E3EAEE; margin: 2em 0; }

/* Mobile overrides for the directory and default pages. Kept at the END
   of the file on purpose: these rules have the same specificity as the
   desktop rules above, so they only win if they come after them. */
@media (max-width: 780px) {
  .aiy-comm-hero h1 { font-size: 30px; }
  .aiy-prop-grid.aiy-prop-grid--directory { grid-template-columns: 1fr 1fr; padding-left: 0; padding-right: 0; }
  .aiy-comm-city-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .aiy-prop-grid--directory .photo { height: 120px; }
  .aiy-comm-toolbar { position: static; } /* sticky toolbar eats too much of a phone screen */
  .aiy-page-header h1 { font-size: 30px; }
  .aiy-page-content { font-size: 15.5px; }
}


/* Contact + reviews row stacks on tablets and phones (2026-09-23).
   At the end of the file so it beats the grid rule above. */
@media (max-width: 900px) {
  .aiy-contact-row--split { grid-template-columns: 1fr; }
}

/* Hero fade on phones — 2026-09-23. The text spans the full width here,
   so a left-to-right fade would leave its right edge on the bright part
   of the photo. Use an even navy wash instead. */
@media (max-width: 780px) {
  .aiy-hero--full::before {
    background: linear-gradient(180deg, rgba(10,50,84,0.82) 0%, rgba(10,50,84,0.7) 60%, rgba(10,50,84,0.8) 100%);
  }
}

/* ==========================================================================
   Page Sections (templates/sections-page.php) — 2026-09-25
   Flexible blocks for About AIY. Backgrounds: white / gray / light-blue /
   blue / navy; blue + navy get .aiy-sec--dark (white text).
   ========================================================================== */
.aiy-sections { overflow-x: hidden; }
.aiy-sections-empty { padding: 64px 0; color: #6C808A; }

.aiy-sec { padding: 80px 0; }
.aiy-sec--space-compact { padding: 48px 0; }
.aiy-sec--space-roomy { padding: 112px 0; }

.aiy-sec--bg-white { background: #fff; }
.aiy-sec--bg-gray { background: #F4F6F8; }
.aiy-sec--bg-light-blue { background: color-mix(in srgb, var(--aiy-color-primary, #0092D0) 10%, #fff); }
.aiy-sec--bg-blue { background: var(--aiy-color-primary, #0092D0); }
.aiy-sec--bg-navy { background: var(--aiy-color-accent, #0A3254); }

/* Two stacked sections with the same light background would read as one
   big block with a double gap — tighten the seam between them. */
.aiy-sec--bg-white + .aiy-sec--bg-white,
.aiy-sec--bg-gray + .aiy-sec--bg-gray,
.aiy-sec--bg-light-blue + .aiy-sec--bg-light-blue { padding-top: 0; }

/* Shared type */
.aiy-sec-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aiy-color-primary, #0092D0);
  margin: 0 0 12px;
}
.aiy-sec-heading {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0 0 20px;
}
.aiy-sec-prose { font-size: 17px; line-height: 1.75; color: #33434B; }
.aiy-sec-prose > *:first-child { margin-top: 0; }
.aiy-sec-prose > *:last-child { margin-bottom: 0; }
.aiy-sec-prose p { margin: 0 0 1em; }
.aiy-sec-prose ul, .aiy-sec-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.aiy-sec-prose li { margin-bottom: 0.35em; }
.aiy-sec-prose a { color: var(--aiy-color-primary, #0092D0); text-underline-offset: 2px; }
.aiy-sec-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.aiy-sec-intro { font-size: 17px; line-height: 1.6; color: #6C808A; margin: 0; }
.aiy-sec-center-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.aiy-sec-center-head .aiy-sec-heading { margin-bottom: 12px; }

/* Dark backgrounds: flip text to white */
.aiy-sec--dark .aiy-sec-heading,
.aiy-sec--dark .aiy-sec-prose,
.aiy-sec--dark .aiy-sec-intro,
.aiy-sec--dark p { color: #fff; }
.aiy-sec--dark .aiy-sec-prose { color: rgba(255,255,255,0.9); }
.aiy-sec--dark .aiy-sec-eyebrow { color: rgba(255,255,255,0.75); }
.aiy-sec--dark .aiy-sec-prose a { color: #fff; }

/* Button */
.aiy-sec-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 40px;
  background: var(--aiy-color-button, #0092D0);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.aiy-sec-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10,50,84,0.22); }
.aiy-sec--dark .aiy-sec-btn { background: #fff; color: var(--aiy-color-accent, #0A3254); }

/* --- Hero --- */
.aiy-sec--hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--aiy-color-accent, #0A3254);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
}
.aiy-sec-hero--h-short { min-height: 360px; }
.aiy-sec-hero--h-medium { min-height: 520px; }
.aiy-sec-hero--h-tall { min-height: 80vh; }
.aiy-sec--hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.aiy-sec-hero--fade::before {
  background: linear-gradient(90deg, rgba(10,50,84,0.94) 0%, rgba(10,50,84,0.88) 28%, rgba(10,50,84,0.55) 50%, rgba(10,50,84,0.22) 72%, rgba(10,50,84,0.15) 100%);
}
.aiy-sec-hero--even::before { background: rgba(10,50,84,0.7); }
.aiy-sec-hero--dark::before { background: rgba(0,0,0,0.5); }
.aiy-sec-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.aiy-sec-hero__content { max-width: 640px; }
.aiy-sec-hero--center .aiy-sec-hero__content { margin: 0 auto; text-align: center; }
.aiy-sec-hero__heading {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.aiy-sec-hero__text { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.92); margin: 0; }

/* --- Image + Text --- */
.aiy-sec-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.aiy-sec-split--img-right .aiy-sec-split__media { order: 2; }
.aiy-sec-split--no-img .aiy-sec-split__grid { grid-template-columns: 1fr; max-width: 760px; }
.aiy-sec-split__media img { display: block; width: 100%; height: auto; }
.aiy-sec-split--rounded .aiy-sec-split__media img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(10,50,84,0.12);
}
/* Edge to edge: image fills its half of the screen, top to bottom */
.aiy-sec-split--bleed { padding-top: 0; padding-bottom: 0; }
.aiy-sec-split--bleed .aiy-sec-split__grid { gap: 0; align-items: stretch; }
.aiy-sec-split--bleed .aiy-sec-split__media img { height: 100%; min-height: 420px; object-fit: cover; }
.aiy-sec-split--bleed .aiy-sec-split__body { padding: 80px 4em; max-width: 680px; align-self: center; }
.aiy-sec-split--bleed.aiy-sec-split--img-left .aiy-sec-split__body { justify-self: start; }
.aiy-sec-split--bleed.aiy-sec-split--img-right .aiy-sec-split__body { justify-self: end; }

/* --- Text --- */
.aiy-sec-text--narrow .aiy-sec-text__inner { max-width: 760px; }
.aiy-sec-text--wide .aiy-sec-text__inner { max-width: 1100px; }
.aiy-sec-text--center .aiy-sec-text__inner { margin: 0 auto; text-align: center; }
.aiy-sec-text--left.aiy-sec-text--narrow .aiy-sec-text__inner { margin: 0; }

/* --- Quote --- */
.aiy-sec-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.aiy-sec-quote__mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 0.6;
  height: 44px;
  color: var(--aiy-color-primary, #0092D0);
}
.aiy-sec-quote__text { margin: 0; }
.aiy-sec-quote__text p {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0;
}
.aiy-sec-quote__by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
  font-size: 15px;
  color: #6C808A;
}
.aiy-sec-quote__by strong { display: block; color: var(--aiy-color-accent, #0A3254); font-size: 16px; }
.aiy-sec-quote__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.aiy-sec--dark .aiy-sec-quote__mark { color: rgba(255,255,255,0.5); }
.aiy-sec--dark .aiy-sec-quote__text p,
.aiy-sec--dark .aiy-sec-quote__by strong { color: #fff; }
.aiy-sec--dark .aiy-sec-quote__by { color: rgba(255,255,255,0.75); }

/* --- Stats --- */
.aiy-sec-stats {
  display: grid;
  grid-template-columns: repeat(var(--aiy-stat-cols, 3), 1fr);
  gap: 24px;
  text-align: center;
}
.aiy-sec-stat__num {
  display: block;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--aiy-color-accent, #0A3254);
}
.aiy-sec-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6C808A;
}
.aiy-sec--dark .aiy-sec-stat__num { color: #fff; }
.aiy-sec--dark .aiy-sec-stat__label { color: rgba(255,255,255,0.75); }

/* --- Feature Cards --- */
.aiy-sec-cards {
  display: grid;
  grid-template-columns: repeat(var(--aiy-card-cols, 3), 1fr);
  gap: 24px;
}
.aiy-sec-card {
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 14px;
  padding: 28px;
}
.aiy-sec--bg-white .aiy-sec-card { background: #F7FAFB; }
.aiy-sec--dark .aiy-sec-card { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.aiy-sec-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  background: color-mix(in srgb, var(--aiy-color-primary, #0092D0) 12%, #fff);
  color: var(--aiy-color-primary, #0092D0);
  margin-bottom: 18px;
}
.aiy-sec-card__title { font-size: 19px; font-weight: 700; color: var(--aiy-color-accent, #0A3254); margin: 0 0 8px; }
.aiy-sec-card__text { font-size: 15px; line-height: 1.65; color: #33434B; margin: 0; }
.aiy-sec--dark .aiy-sec-card__title { color: #fff; }
.aiy-sec--dark .aiy-sec-card__text { color: rgba(255,255,255,0.85); }

/* --- Call to Action --- */
.aiy-sec-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.aiy-sec-cta .aiy-sec-heading { font-size: 30px; margin-bottom: 8px; }
.aiy-sec-cta p { font-size: 17px; line-height: 1.6; color: #33434B; margin: 0; max-width: 620px; }
.aiy-sec-cta .aiy-sec-btn { margin-top: 0; flex-shrink: 0; }
.aiy-sec--dark .aiy-sec-cta p { color: rgba(255,255,255,0.9); }

/* --- Tablet / mobile --- */
@media (max-width: 900px) {
  .aiy-sec-cards { grid-template-columns: 1fr 1fr; }
  .aiy-sec-split__grid { gap: 40px; }
}
@media (max-width: 780px) {
  .aiy-sec { padding: 56px 0; }
  .aiy-sec--space-compact { padding: 36px 0; }
  .aiy-sec--space-roomy { padding: 72px 0; }
  .aiy-sec-heading { font-size: 28px; }
  .aiy-sec-prose { font-size: 16px; }
  .aiy-sec-hero__heading { font-size: 36px; }
  .aiy-sec-hero__text { font-size: 17px; }
  .aiy-sec-hero--h-medium { min-height: 420px; }
  .aiy-sec-hero--h-tall { min-height: 70vh; }
  .aiy-sec-hero--fade::before { background: rgba(10,50,84,0.75); } /* text spans full width on phones */

  /* Image always on top on phones, whichever side it's on at desktop */
  .aiy-sec-split__grid { grid-template-columns: 1fr; gap: 28px; }
  .aiy-sec-split--img-right .aiy-sec-split__media { order: 0; }
  .aiy-sec-split--bleed .aiy-sec-split__media img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .aiy-sec-split--bleed .aiy-sec-split__body { padding: 40px 1em 56px; }

  .aiy-sec-quote__text p { font-size: 21px; }
  .aiy-sec-stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .aiy-sec-stat__num { font-size: 40px; }
  .aiy-sec-cards { grid-template-columns: 1fr; }
  .aiy-sec-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Page Sections additions — 2026-10-03
   Button styles, Image + Text gallery, Photo Collage, Banner Ribbon,
   photo viewer.
   ========================================================================== */

/* Button styles */
.aiy-sec-btn .material-symbols-outlined { font-size: 20px; vertical-align: -4px; margin-left: 6px; transition: transform 0.15s; }
.aiy-sec-btn--outline {
  background: transparent;
  color: var(--aiy-color-accent, #0A3254);
  box-shadow: inset 0 0 0 2px var(--aiy-color-accent, #0A3254);
}
.aiy-sec-btn--outline:hover { box-shadow: inset 0 0 0 2px var(--aiy-color-accent, #0A3254), 0 8px 20px rgba(10,50,84,0.15); }
.aiy-sec--dark .aiy-sec-btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.aiy-sec-btn--spotlight {
  padding: 18px 34px;
  font-size: 17px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--aiy-color-button, #0092D0) 40%, transparent);
}
.aiy-sec-btn--spotlight:hover .material-symbols-outlined { transform: translateX(4px); }

/* Image + Text: mini gallery (1 large + up to 4 small) */
.aiy-sec-minigallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 4 / 3;
}
.aiy-sec-minigallery__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #E3EAEE;
}
.aiy-sec-minigallery__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.aiy-sec-minigallery__tile:hover img { transform: scale(1.04); }
.aiy-sec-minigallery__tile:first-child { grid-row: span 2; }
/* fewer photos: let the small tiles stretch to fill */
.aiy-sec-minigallery--n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.aiy-sec-minigallery--n2 .aiy-sec-minigallery__tile:first-child { grid-row: auto; }
.aiy-sec-minigallery--n3 { grid-template-columns: 2fr 1fr; }
.aiy-sec-minigallery--n4 { grid-template-columns: 2fr 1fr 1fr; }
.aiy-sec-minigallery--n4 .aiy-sec-minigallery__tile:last-child { grid-column: span 2; }
.aiy-sec-minigallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,50,84,0.6);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

/* Photo Collage */
.aiy-sec-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense; /* back-fills gaps left by mixed sizes */
  gap: 12px;
}
.aiy-sec-collage__item { position: relative; margin: 0; min-width: 0; display: flex; flex-direction: column; }
.aiy-sec-collage__item--wide { grid-column: span 2; }
.aiy-sec-collage__item--tall { grid-row: span 2; }
.aiy-sec-collage__item--large { grid-column: span 2; grid-row: span 2; }
.aiy-sec-collage__photo {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #E3EAEE;
}
.aiy-sec-collage__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.aiy-sec-collage__photo:hover img { transform: scale(1.04); }
/* Captions on the photo: soft navy gradient along the bottom edge */
.aiy-sec-collage--cap-overlay .aiy-sec-collage__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(0deg, rgba(10,50,84,0.88) 0%, rgba(10,50,84,0) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
}
.aiy-sec-collage__item--large .aiy-sec-collage__caption { font-size: 16px; }
/* Captions below: rows grow a little so text fits under the photo */
.aiy-sec-collage--cap-below .aiy-sec-collage { grid-auto-rows: 250px; }
.aiy-sec-collage--cap-below .aiy-sec-collage__caption {
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aiy-color-accent, #0A3254);
}
.aiy-sec--dark.aiy-sec-collage--cap-below .aiy-sec-collage__caption { color: #fff; }
.aiy-sec-collage__cta { text-align: center; margin-top: 12px; }

/* Banner Ribbon */
.aiy-sec--ribbon { padding: 40px 0; }
.aiy-sec-ribbon--slim { padding: 22px 0; }
.aiy-sec-ribbon { display: flex; align-items: center; gap: 28px; }
.aiy-sec-ribbon__rule { flex: 1; height: 2px; background: currentColor; opacity: 0.25; color: var(--aiy-color-accent, #0A3254); }
.aiy-sec--dark .aiy-sec-ribbon__rule { color: #fff; }
.aiy-sec-ribbon__text { text-align: center; max-width: 720px; }
.aiy-sec-ribbon__icon { font-size: 34px; color: var(--aiy-color-primary, #0092D0); display: block; margin-bottom: 6px; }
.aiy-sec--dark .aiy-sec-ribbon__icon { color: rgba(255,255,255,0.8); }
.aiy-sec-ribbon__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--aiy-color-accent, #0A3254);
  margin: 0;
}
.aiy-sec-ribbon--slim .aiy-sec-ribbon__title { font-size: 24px; }
.aiy-sec--dark .aiy-sec-ribbon__title { color: #fff; }
.aiy-sec-ribbon__sub { font-size: 16px; margin: 8px 0 0; color: #6C808A; }
.aiy-sec--dark .aiy-sec-ribbon__sub { color: rgba(255,255,255,0.8); }

/* Photo viewer */
.aiy-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 56px 16px;
  background: rgba(5,20,35,0.94);
}
.aiy-viewer[hidden] { display: none; }
.aiy-viewer__figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.aiy-viewer__img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; }
.aiy-viewer__caption { color: #fff; font-size: 16px; line-height: 1.5; text-align: center; margin-top: 14px; max-width: 720px; }
.aiy-viewer__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.aiy-viewer__nav {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.aiy-viewer__nav:hover { background: rgba(255,255,255,0.24); }
.aiy-viewer__nav .material-symbols-outlined { font-size: 32px; }
.aiy-viewer__count { position: absolute; top: 20px; left: 20px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .aiy-sec-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .aiy-sec-collage--cap-below .aiy-sec-collage { grid-auto-rows: 210px; }
}
@media (max-width: 780px) {
  .aiy-sec-ribbon { gap: 14px; }
  .aiy-sec-ribbon__title { font-size: 26px; }
  .aiy-sec-ribbon--slim .aiy-sec-ribbon__title { font-size: 20px; }
  .aiy-sec-collage { gap: 8px; grid-auto-rows: 150px; }
  .aiy-sec-collage--cap-below .aiy-sec-collage { grid-auto-rows: 185px; }
  .aiy-sec-collage--cap-overlay .aiy-sec-collage__caption { font-size: 12.5px; padding: 28px 10px 8px; }
  .aiy-sec-btn--spotlight { padding: 16px 26px; font-size: 16px; }
  /* Phones: prev/next sit over the photo's edges instead of beside it */
  .aiy-viewer { padding: 56px 8px; }
  .aiy-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.4); }
  .aiy-viewer__prev { left: 8px; }
  .aiy-viewer__next { right: 8px; }
}


/* ==========================================================================
   Homepage hero sizing — 2026-10-12
   Header + hero together fill one screen. Was min-height:100vh on the hero
   alone, so header + hero ran past the fold and the vertically-centered
   text sat low with a big empty band on top. --aiy-header-h is measured
   in theme.js (header height + admin bar); the fallbacks cover no-JS.
   svh = small viewport height, so iOS Safari's toolbar doesn't hide the
   bottom of the hero. vh line first as the fallback for older browsers.
   ========================================================================== */
.aiy-hero--full {
  min-height: calc(100vh - var(--aiy-header-h, 180px));
  min-height: calc(100svh - var(--aiy-header-h, 180px));
}
@media (max-width: 780px) {
  /* Phones (2026-10-12, v2): photo on top, text below it. The image is
     sized to the screen width (not cover) and pinned to the top, so the
     whole family shows; it then fades into solid navy, and the headline,
     subtext and search sit on the navy at the bottom. */
  .aiy-hero--full {
    min-height: calc(100vh - var(--aiy-header-h, 110px));
    min-height: calc(100svh - var(--aiy-header-h, 110px));
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 32px;
    background-color: #0A3254;
    background-size: 230% auto;
    background-position: 74% top;
  }
  .aiy-hero--full h1 { font-size: 36px; margin-bottom: 14px; }
  .aiy-hero-subtext { font-size: 15.5px; line-height: 1.5; margin-bottom: 24px; }
  /* Clear over the photo, fading to the solid navy the text sits on.
     The fade lands where the 230%-wide photo ends (~130vw down). */
  .aiy-hero--full::before {
    background: linear-gradient(
      180deg,
      rgba(10,50,84,0.05) 0,
      rgba(10,50,84,0.10) 70vw,
      rgba(10,50,84,0.80) 110vw,
      rgba(10,50,84,1) 128vw,
      rgba(10,50,84,1) 100%
    );
  }
}


/* ==========================================================================
   2026-10-12 — mobile polish: specials bar, nav panel, long feature lists
   ========================================================================== */

/* Specials bar on phones: one tidy block instead of a wrapped pill, a
   floating ×, and an orphaned call link. Icon chip | offer + call | ×  */
@media (max-width: 780px) {
  .aiy-specials-banner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 1em; /* × is in the grid now, not absolutely positioned */
  }
  .aiy-specials-tag {
    grid-column: 1; grid-row: 1 / span 2;
    width: 34px; height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    align-self: center;
  }
  .aiy-specials-tag svg { width: 16px; height: 16px; }
  .aiy-specials-tag-text { /* kept for screen readers, hidden visually */
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .aiy-specials-copy {
    grid-column: 2; grid-row: 1;
    font-size: 14px; font-weight: 700; line-height: 1.3;
  }
  .aiy-specials-cta {
    grid-column: 2; grid-row: 2;
    font-size: 13px; font-weight: 600;
    opacity: 0.95;
  }
  .aiy-specials-close {
    grid-column: 3; grid-row: 1 / span 2;
    position: static;
    transform: none;
    align-self: center;
    font-size: 22px;
    padding: 6px;
    margin-right: -6px;
  }
}

/* Mobile nav panel: open directly under the logo row and cover the
   specials bar, instead of starting below it. The banner lives inside
   <header>, so top:100% of the header was the bottom of the banner;
   anchoring to the row fixes that. */
@media (max-width: 780px) {
  .aiy-header-row { position: relative; }
}

/* Long amenity / feature lists: first 8 on phones, first 12 on desktop. */
.feat-more {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: #F4F8FA;
  border: none;
  border-top: 1px solid #EEF1F3;
  color: var(--aiy-color-primary, #0092D0);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.feat-more:hover { background: #EAF2F6; }
.feat-more .material-symbols-outlined { font-size: 20px; transition: transform .2s; }
.feat-more[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }

/* Desktop: two columns, cut after 12 */
@media (min-width: 781px) {
  .feat-card.has-more-desktop .feat-more { display: flex; }
  .feat-card.has-more-desktop.is-collapsed .feat-tile:nth-child(n+13) { display: none; }
  .feat-card.has-more-desktop.is-collapsed .feat-tile:nth-child(11),
  .feat-card.has-more-desktop.is-collapsed .feat-tile:nth-child(12) { border-bottom: none; }
}
/* Phones: one column, cut after 8 */
@media (max-width: 780px) {
  .feat-card.has-more-mobile .feat-more { display: flex; }
  .feat-card.has-more-mobile.is-collapsed .feat-tile:nth-child(n+9) { display: none; }
  .feat-card.has-more-mobile.is-collapsed .feat-tile:nth-child(8) { border-bottom: none; }
}

/* ==========================================================================
   Nav "you are here" state, dropdown caret, About AIY submenu (2026-11-18)
   Tony's request: underline/color on About AIY and Our Communities so
   visitors know where they are; arrow showing those items open a menu;
   About AIY quick-jump to its child pages (Our Team, Spotlight, …).
   ========================================================================== */
/* Current page: one solid bar under the whole link (text + caret),
   drawn as a pseudo-element so it can't split into separate underlines
   the way text-decoration did around the inline-block caret icon.
   Hover: no line, the link just brightens. */
.aiy-primary-nav > ul > li > a {
  position: relative;
  transition: filter .15s ease;
}
.aiy-primary-nav > ul > li > a:hover,
.aiy-primary-nav > ul > li > a:focus-visible {
  filter: brightness(1.35);
}
.aiy-primary-nav > ul > li.is-current > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
/* The Application Login pill keeps its own hover (opacity) */
.aiy-primary-nav a.aiy-nav-btn:hover { filter: none; }

/* Caret. Overrides the global 32px Material Symbols size and the
   6px right margin on ".menu-communities a .material-symbols-outlined". */
.aiy-primary-nav .aiy-nav-caret,
.menu-communities a .material-symbols-outlined.aiy-nav-caret {
  font-size: 20px;
  margin: 0 0 0 2px;
  vertical-align: 0;
  transition: transform .2s ease;
}
.has-mega-menu.is-open > a .aiy-nav-caret,
.has-submenu.is-open > a .aiy-nav-caret { transform: rotate(180deg); }

/* About AIY submenu — small dropdown, same card look as the mega menu */
.aiy-primary-nav > ul > li.has-submenu { position: relative; }
.aiy-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 10px;
  box-shadow: 0 24px 40px rgba(10,50,84,0.16);
  z-index: 50;
}
.has-submenu.is-open .aiy-submenu,
.has-submenu:focus-within .aiy-submenu { display: block; }
.aiy-submenu a {
  display: block;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--aiy-color-primary, #185ABC);
}
.aiy-submenu a:hover,
.aiy-submenu a:focus-visible { background: #F4F8FA; }
.aiy-submenu li.is-current > a { box-shadow: inset 3px 0 0 currentColor; }

@media (max-width: 780px) {
  /* Mobile: no dropdowns. "About AIY" navigates normally and its
     child pages are listed underneath it, indented. The Our Communities
     caret is hidden because that link goes straight to the page here. */
  .menu-communities .aiy-nav-caret,
  .menu-about .aiy-nav-caret { display: none; }
  /* Full-width rows here, so mark the current item with a left bar
     instead of an underline (same style as the submenu's current item). */
  .aiy-primary-nav > ul > li.is-current > a::after { display: none; }
  .aiy-primary-nav > ul > li.is-current > a { box-shadow: inset 3px 0 0 currentColor; padding-left: 12px; }
  .aiy-submenu,
  .has-submenu.is-open .aiy-submenu,
  .has-submenu:focus-within .aiy-submenu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .aiy-submenu .aiy-submenu-overview { display: none; }
  .aiy-submenu a { padding: 10px 4px; font-weight: 500; }
}
