/* Shared local-area responsive choreography.
   This file sits after each guide's generated styles.css and only adjusts layout behavior. */

.hero-grid,
.area-control-panel,
.metric-grid,
.card-grid,
.chart-grid,
.people-scan-grid,
.signal-grid,
.profile-grid,
.school-summary,
.fit-hero,
.place-layout,
.insight-grid,
.report-grid,
.related-carousel,
.cta-checkpoint,
.area-footer-top,
.area-footer-taxonomy {
  min-width: 0;
}

.hero-copy,
.hero-visual,
.area-card,
.area-overview,
.area-control-panel,
.marquee-shell,
.marquee-track,
.tab-panel,
.chart-card,
.visual-card,
.fit-copy,
.place-copy {
  min-width: 0;
  max-width: 100%;
}

.marquee-shell {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.marquee-nav,
.segmented button {
  min-width: 44px;
  min-height: 44px;
}

.mobile-search input,
.mobile-search button {
  min-height: 44px;
}

main,
.hero-section,
.band {
  overflow-x: hidden;
}

.area-source-notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 44, 68, 0.07);
}

.area-source-notes > summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.area-source-notes > summary::-webkit-details-marker {
  display: none;
}

.area-source-notes > summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbf8;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.area-source-notes[open] > summary::after {
  content: "-";
}

.source-notes-title,
.source-notes-meta {
  display: block;
  font-weight: 900;
}

.source-notes-title {
  color: var(--ink);
  font-size: 1.02rem;
}

.source-notes-meta {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.area-source-notes-content {
  padding: 0 18px 18px;
}

.area-source-notes-content .section-head {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.area-source-notes-content .report-grid {
  margin-top: 18px;
}

.area-footer-agent .area-footer-contact-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
}

.area-footer-agent .area-footer-contact-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.area-shell-footer .profile-social-links,
.area-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.area-shell-footer .profile-social-links {
  grid-column: 2;
  margin-top: 10px;
}

.area-profile-social {
  margin-top: 16px;
}

.area-shell-footer .profile-social-link,
.area-profile-social .profile-social-link {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
}

.area-shell-footer .profile-social-link {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: #fff;
}

.area-profile-social .profile-social-link {
  border: 1px solid rgba(16, 44, 68, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(16, 44, 68, 0.08);
}

.area-shell-footer .profile-social-link:hover,
.area-shell-footer .profile-social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.area-profile-social .profile-social-link:hover,
.area-profile-social .profile-social-link:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.area-shell-footer .profile-social-link::before,
.area-profile-social .profile-social-link::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.area-shell-footer .profile-social-link span,
.area-profile-social .profile-social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.area-shell-footer .profile-social-instagram,
.area-profile-social .profile-social-instagram {
  color: #c13584;
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4.5' y='4.5' width='15' height='15' rx='4.2' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='12' r='3.5' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='16.7' cy='7.3' r='1.35' fill='black'/%3E%3C/svg%3E");
}

.area-shell-footer .profile-social-linkedin,
.area-profile-social .profile-social-linkedin {
  color: #0a66c2;
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.7 9h3.7v11H4.7V9Zm1.9-5.3a2.1 2.1 0 1 1 0 4.2 2.1 2.1 0 0 1 0-4.2ZM10.4 9H14v1.5h.1c.5-.9 1.8-1.8 3.7-1.8 3.9 0 4.6 2.5 4.6 5.8V20h-3.7v-5.1c0-1.2 0-2.8-1.8-2.8s-2.1 1.3-2.1 2.7V20h-3.8V9Z'/%3E%3C/svg%3E");
}

.area-shell-footer .profile-social-substack,
.area-profile-social .profile-social-substack {
  color: #ff6719;
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v2.8H5V4Zm0 4.8h14v2.8H5V8.8Zm0 4.8h14V21l-7-3.9L5 21v-7.4Z'/%3E%3C/svg%3E");
}

.area-shell-footer .profile-social-youtube,
.area-profile-social .profile-social-youtube {
  color: #ff0000;
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.6 7.2a3 3 0 0 0-2.1-2.1C17.7 4.6 12 4.6 12 4.6s-5.7 0-7.5.5a3 3 0 0 0-2.1 2.1C2 9 2 12 2 12s0 3 .4 4.8a3 3 0 0 0 2.1 2.1c1.8.5 7.5.5 7.5.5s5.7 0 7.5-.5a3 3 0 0 0 2.1-2.1c.4-1.8.4-4.8.4-4.8s0-3-.4-4.8ZM10 15.4V8.6l5.9 3.4-5.9 3.4Z'/%3E%3C/svg%3E");
}

.area-shell-footer .profile-social-google,
.area-profile-social .profile-social-google {
  color: #4285f4;
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.6 12.2c0-.7-.1-1.3-.2-1.9H12v3.5h5.4a4.6 4.6 0 0 1-2 3v2.5h3.2c1.9-1.7 3-4.3 3-7.1Z'/%3E%3Cpath fill='black' d='M12 22c2.7 0 5-0.9 6.6-2.6l-3.2-2.5c-.9.6-2 .9-3.4.9a5.8 5.8 0 0 1-5.5-4H3.2v2.6A10 10 0 0 0 12 22Z'/%3E%3Cpath fill='black' d='M6.5 13.8a6 6 0 0 1 0-3.6V7.6H3.2a10 10 0 0 0 0 8.8l3.3-2.6Z'/%3E%3Cpath fill='black' d='M12 6.2c1.5 0 2.8.5 3.8 1.5l2.9-2.9A9.7 9.7 0 0 0 12 2a10 10 0 0 0-8.8 5.6l3.3 2.6A5.8 5.8 0 0 1 12 6.2Z'/%3E%3C/svg%3E");
}

.area-footer-compliance {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .people-scan-grid,
  .people-signals-card .segment-list,
  .profile-grid,
  .school-summary,
  .table-wrap,
  .segmented,
  .segmented.wide,
  .segmented.wrap,
  .people-tabs,
  .related-filter,
  .source-row {
    scrollbar-color: rgba(16, 121, 116, 0.74) rgba(16, 44, 68, 0.12);
    scrollbar-gutter: stable;
  }

  .people-scan-grid::-webkit-scrollbar,
  .people-signals-card .segment-list::-webkit-scrollbar,
  .profile-grid::-webkit-scrollbar,
  .school-summary::-webkit-scrollbar,
  .table-wrap::-webkit-scrollbar,
  .segmented::-webkit-scrollbar,
  .people-tabs::-webkit-scrollbar,
  .related-filter::-webkit-scrollbar,
  .source-row::-webkit-scrollbar {
    height: 8px;
  }

  .people-scan-grid::-webkit-scrollbar-track,
  .people-signals-card .segment-list::-webkit-scrollbar-track,
  .profile-grid::-webkit-scrollbar-track,
  .school-summary::-webkit-scrollbar-track,
  .table-wrap::-webkit-scrollbar-track,
  .segmented::-webkit-scrollbar-track,
  .people-tabs::-webkit-scrollbar-track,
  .related-filter::-webkit-scrollbar-track,
  .source-row::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(16, 44, 68, 0.1);
  }

  .people-scan-grid::-webkit-scrollbar-thumb,
  .people-signals-card .segment-list::-webkit-scrollbar-thumb,
  .profile-grid::-webkit-scrollbar-thumb,
  .school-summary::-webkit-scrollbar-thumb,
  .table-wrap::-webkit-scrollbar-thumb,
  .segmented::-webkit-scrollbar-thumb,
  .people-tabs::-webkit-scrollbar-thumb,
  .related-filter::-webkit-scrollbar-thumb,
  .source-row::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 121, 116, 0.72);
  }

  .people-scan-grid,
  .people-signals-card .segment-list,
  .profile-grid,
  .school-summary,
  .table-wrap {
    box-shadow: inset -22px 0 18px -24px rgba(16, 44, 68, 0.72);
  }

  .has-swipe-rail {
    position: relative;
    padding-bottom: 34px !important;
    box-shadow: inset -24px 0 20px -25px rgba(16, 44, 68, 0.78);
  }

  .has-swipe-rail::after {
    content: attr(data-swipe-rail);
    position: absolute;
    left: 0;
    bottom: 5px;
    box-sizing: border-box;
    width: min(230px, 72%);
    min-height: 22px;
    padding-left: 74px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 34px 50%, rgba(16, 121, 116, 0.94) 0 4px, transparent 4.5px),
      linear-gradient(90deg, rgba(16, 121, 116, 0.88), rgba(16, 121, 116, 0.18)) 0 50% / 64px 4px no-repeat,
      linear-gradient(90deg, rgba(16, 121, 116, 0.1), rgba(16, 121, 116, 0)) 0 0 / 100% 100% no-repeat;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 22px;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .segmented,
  .segmented.wide,
  .segmented.wrap,
  .segmented.compact,
  .segmented.vertical,
  .related-filter {
    gap: 8px;
    padding: 6px;
    border-color: rgba(16, 44, 68, 0.16);
    background: rgba(255, 255, 255, 0.76);
  }

  .segmented button,
  .related-filter button {
    min-height: 44px;
    border: 1px solid rgba(16, 44, 68, 0.22);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(16, 44, 68, 0.08);
    cursor: pointer;
  }

  .segmented button.active,
  .related-filter button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }

  .segmented button:not(.active):hover,
  .segmented button:not(.active):focus-visible,
  .related-filter button:not(.active):hover,
  .related-filter button:not(.active):focus-visible {
    border-color: rgba(16, 121, 116, 0.42);
    background: #f7fbf8;
    color: var(--ink);
  }
}

@media (max-width: 560px) {
  .area-source-notes > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 14px;
  }

  .source-notes-meta {
    grid-column: 1;
    grid-row: 2;
  }

  .area-source-notes > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .area-source-notes-content {
    padding: 0 14px 14px;
  }
}

@media (min-width: 1081px) {
  .area-shell-header .header-top {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 560px) auto;
  }

  .area-shell-header .menu-toggle {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .area-shell-header .header-top {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 520px) auto auto;
  }

  .area-shell-header .desktop-search {
    display: flex;
  }

  .area-shell-header .mobile-search {
    display: none;
  }

  .area-shell-header .primary-nav {
    display: none;
  }

  .area-shell-header .menu-panel {
    inset: 78px 0 auto;
    max-height: calc(100vh - 78px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 24px;
  }

  .area-control-panel {
    grid-column: 1 / -1;
  }

  .metric-grid,
  .card-grid,
  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people-scan-grid,
  .fit-hero,
  .place-layout,
  .cta-checkpoint,
  .area-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .related-carousel {
    grid-auto-columns: minmax(280px, 36%);
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 22px;
  }

  .area-control-panel {
    grid-column: 1 / -1;
  }

  .hero-section {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
  }

  .metric-grid,
  .card-grid,
  .chart-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid,
  .school-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-scan-grid,
  .fit-hero,
  .place-layout,
  .cta-checkpoint,
  .area-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  }

  .fit-grid,
  .civic-grid {
    grid-template-columns: 1fr;
  }

  .segmented.wide,
  .people-tabs {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, max-content);
    grid-template-columns: none;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .related-carousel {
    grid-auto-columns: minmax(290px, 46%);
  }

  .bar-row,
  .visual-row,
  .segment-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bar-row strong,
  .visual-row strong,
  .segment-row small {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section,
  .band {
    padding-block: 38px;
  }

  .source-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }

  .source-row a,
  .source-row span,
  .pill {
    flex: 0 0 auto;
  }

  .metric-grid,
  .card-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 82vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 14px;
  }

  .metric-card,
  .mini-card,
  .insight-box,
  .report-card,
  .signal-card,
  .profile-cell {
    scroll-snap-align: start;
  }

  .segmented,
  .segmented.wide,
  .segmented.wrap,
  .people-tabs,
  .related-filter {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, max-content);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .segmented button {
    white-space: normal;
  }

  .marquee-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "track track"
      "prev next";
    gap: 8px;
  }

  .marquee-track,
  .school-marquee {
    grid-area: track;
    grid-auto-columns: minmax(230px, 82vw);
  }

  .marquee-nav {
    min-height: 48px;
  }

  .marquee-nav[data-marquee-prev],
  .marquee-nav[data-school-prev],
  .marquee-nav:first-child {
    grid-area: prev;
  }

  .marquee-nav[data-marquee-next],
  .marquee-nav[data-school-next],
  .marquee-nav:last-child {
    grid-area: next;
  }

  .related-carousel {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .related-card,
  .related-card:nth-child(3n + 2),
  .related-card:nth-child(3n + 3),
  .related-card:hover,
  .related-card:focus-visible,
  .related-card:nth-child(3n + 2):hover,
  .related-card:nth-child(3n + 2):focus-visible,
  .related-card:nth-child(3n + 3):hover,
  .related-card:nth-child(3n + 3):focus-visible {
    transform: none;
  }

  .area-search-row,
  .school-search-row,
  .school-controls,
  .panel-title,
  .section-head,
  .people-scan-grid,
  .fit-hero,
  .place-layout,
  .cta-checkpoint {
    grid-template-columns: 1fr;
  }

  .area-footer-taxonomy {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 12px;
  }

  .area-footer-taxonomy section {
    scroll-snap-align: start;
  }
}

/* Local-area vertical viewports: keep dense research sections browseable
   without turning the page into one very long stack. */
@media (min-width: 561px) and (max-width: 900px) {
  .people-scan-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(390px, 68vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 14px;
  }

  .people-signals-card,
  .people-profile-card {
    scroll-snap-align: start;
  }

  .people-profile-card .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
    padding-bottom: 0;
  }

  .people-signals-card .segment-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 62%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .people-signals-card .segment-row {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfbf8;
    scroll-snap-align: start;
  }

  .people-signals-card .segment-row small,
  .people-signals-card .segment-row span small {
    text-align: left;
  }

  .school-summary {
    grid-template-columns: minmax(170px, 1.35fr) repeat(3, minmax(108px, 0.75fr));
    gap: 8px;
    overflow-x: visible;
    box-shadow: none;
  }

  .summary-chip {
    min-width: 0;
    padding: 9px;
  }

  .summary-chip strong {
    font-size: clamp(1rem, 2.4vw, 1.18rem);
    line-height: 1.15;
  }

  .area-footer-taxonomy {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .people-signals-card .segment-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 62%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .people-signals-card .segment-row {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfbf8;
    scroll-snap-align: start;
  }

  .people-signals-card .segment-row small,
  .people-signals-card .segment-row span small {
    text-align: left;
  }
}

@media (min-width: 561px) and (max-width: 700px) {
  .school-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    box-shadow: none;
    padding-bottom: 0;
  }

  .summary-chip {
    min-width: 0;
    min-height: 0;
    padding: 11px;
  }

  .summary-chip strong {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    line-height: 1.16;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .school-table {
    min-width: 720px;
  }
}

@media (max-width: 560px) {
  .people-scan-grid,
  .school-summary {
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 14px;
  }

  .people-scan-grid {
    grid-auto-columns: minmax(278px, 78vw);
  }

  .school-summary {
    grid-auto-columns: minmax(176px, 58vw);
    margin-bottom: 10px;
  }

  .people-signals-card,
  .people-profile-card,
  .summary-chip {
    scroll-snap-align: start;
  }

  .people-profile-card .profile-grid {
    grid-auto-columns: minmax(190px, 70vw);
  }

  .people-signals-card .segment-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 72vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .people-signals-card .segment-row {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfbf8;
    scroll-snap-align: start;
  }

  .people-signals-card .segment-row small,
  .people-signals-card .segment-row span small {
    text-align: left;
  }

  .table-wrap {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
  }

  .school-table {
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(316px, 86vw);
    gap: 10px;
    background: transparent;
  }

  .school-head {
    display: none;
  }

  [data-school-rows] {
    display: contents;
  }

  .school-row {
    min-height: 168px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .school-row span {
    min-width: 0;
  }

  .school-row > span:first-child,
  .school-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .school-row > span:nth-child(5) {
    display: none;
  }

  .school-row > span:nth-child(3)::before,
  .school-row > span:nth-child(4)::before {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .school-row > span:nth-child(3)::before {
    content: "Grades";
  }

  .school-row > span:nth-child(4)::before {
    content: "ZIP";
  }
}

@media (max-width: 900px) {
  .people-scan-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    box-shadow: none;
    padding-bottom: 0;
  }

  .people-signals-card,
  .people-profile-card {
    scroll-snap-align: none;
  }

  .people-profile-card .profile-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(178px, 42%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .people-profile-card .profile-cell {
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .area-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 14px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .area-footer-agent,
  .area-footer-service {
    min-height: 0;
  }

  .area-footer-agent {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .area-footer-agent .footer-headshot {
    width: 56px;
    height: 56px;
  }

  .area-footer-agent p {
    overflow-wrap: anywhere;
  }

  .area-footer-agent .area-footer-contact-links {
    grid-column: 1 / -1;
    display: grid;
    gap: 3px;
  }

  .area-footer-agent .profile-social-links {
    grid-column: 1 / -1;
  }

  .area-footer-agent .area-footer-contact-links a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.28;
  }

  .area-footer-service {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
  }

  .area-footer-service h2 {
    font-size: clamp(1.18rem, 3vw, 1.5rem);
  }

  .area-footer-service p:not(.eyebrow) {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .footer-contact-button {
    width: 100%;
  }

  .area-footer-taxonomy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 20px 14px;
    overflow-x: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding-bottom: 0;
  }

  .area-footer-taxonomy section {
    min-height: 0;
  }

  .area-footer-taxonomy section:last-child {
    grid-column: 1 / -1;
  }

  .area-footer-bottom {
    margin-top: 18px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 560px) {
  .area-footer-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .area-footer-agent,
  .area-footer-service {
    padding: 16px;
  }

  .area-footer-agent {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .area-footer-agent .footer-headshot {
    width: 56px;
    height: 56px;
  }

  .area-footer-agent strong,
  .area-footer-service h2 {
    font-size: 1.05rem;
    line-height: 1.14;
  }

  .area-footer-agent span,
  .area-footer-agent em,
  .area-footer-agent p,
  .area-footer-service p,
  .area-footer-taxonomy a,
  .area-footer-taxonomy span {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .area-footer-service p:not(.eyebrow) {
    display: none;
  }

  .footer-contact-button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .area-footer-taxonomy {
    gap: 18px 12px;
  }

  .school-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    box-shadow: none;
    padding-bottom: 0;
  }

  .summary-chip {
    min-width: 0;
    min-height: 0;
    padding: 11px;
    scroll-snap-align: none;
  }

  .summary-chip strong {
    font-size: clamp(1rem, 5vw, 1.16rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .summary-chip span,
  .summary-chip-control small {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

/* Local-area decision surfaces should adapt to the viewport, not force the
   visitor to discover hidden sideways content. Generated area pages still keep
   their page-specific art direction; this shared layer fixes the interaction
   model across phone, tablet, laptop, and short landscape windows. */
.source-row,
.segmented,
.segmented.wide,
.segmented.wrap,
.segmented.compact,
.segmented.vertical,
.people-tabs,
.related-filter {
  min-width: 0;
  max-width: 100%;
}

.source-row a,
.source-row span,
.pill,
.segmented button,
.related-filter button {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}

.related-carousel-shell {
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 0;
}

.related-carousel-shell .marquee-nav {
  display: none;
}

.related-carousel {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: stretch;
  gap: 16px;
  overflow: visible;
  overscroll-behavior-inline: auto;
  scroll-snap-type: none;
  padding: 0;
  box-shadow: none;
}

.related-card,
.related-empty {
  min-width: 0;
  scroll-snap-align: none;
}

.related-card,
.related-card:nth-child(3n + 2),
.related-card:nth-child(3n + 3),
.related-card:hover,
.related-card:focus-visible,
.related-card:nth-child(3n + 2):hover,
.related-card:nth-child(3n + 2):focus-visible,
.related-card:nth-child(3n + 3):hover,
.related-card:nth-child(3n + 3):focus-visible {
  transform: none;
}

@media (max-width: 1180px) {
  .source-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
    gap: 8px;
    overflow: visible;
    overscroll-behavior-inline: auto;
    scrollbar-width: auto;
    padding-bottom: 0;
  }

  .source-row a,
  .source-row span,
  .pill {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    white-space: normal;
  }

  .marquee-shell:not(.related-carousel-shell) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0;
  }

  .marquee-shell:not(.related-carousel-shell) .marquee-nav {
    display: none;
  }

  .marquee-track:not(.related-carousel),
  .zip-marquee,
  .school-marquee {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding: 0;
    box-shadow: none;
  }

  .zip-card,
  .school-marquee-card {
    min-width: 0;
    min-height: 68px;
    scroll-snap-align: none;
  }

  .segmented,
  .segmented.wide,
  .segmented.wrap,
  .segmented.compact,
  .segmented.vertical,
  .people-tabs,
  .related-filter {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scrollbar-width: auto;
    padding: 6px;
  }

  .segmented button,
  .related-filter button {
    white-space: normal;
    line-height: 1.16;
    padding: 9px 10px;
  }
}

@media (max-width: 900px) {
  .hero-section,
  .band {
    padding-block: clamp(32px, 7vw, 46px);
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  h2 {
    font-size: clamp(1.58rem, 7vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.18rem, 5.6vw, 1.55rem);
  }

  .lede,
  .section-help,
  .school-tool-help,
  .panel-title p {
    font-size: clamp(0.95rem, 3.8vw, 1.06rem);
    line-height: 1.48;
  }

  .metric-grid,
  .card-grid,
  .chart-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid,
  .school-summary,
  .people-profile-card .profile-grid,
  .people-signals-card .segment-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    box-shadow: none;
    padding-bottom: 0;
  }

  .metric-grid,
  .card-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid,
  .people-profile-card .profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  }

  .chart-grid,
  .people-signals-card .segment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-summary {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  }

  .metric-card,
  .mini-card,
  .insight-box,
  .report-card,
  .signal-card,
  .profile-cell,
  .summary-chip,
  .people-signals-card .segment-row,
  .school-row {
    min-width: 0;
    min-height: 0;
    scroll-snap-align: none;
  }

  .metric-card,
  .mini-card,
  .insight-box,
  .summary-chip,
  .profile-cell,
  .signal-card {
    padding: clamp(12px, 3.4vw, 16px);
  }

  .metric-card strong,
  .mini-card strong,
  .summary-chip strong {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    line-height: 1.08;
  }

  .tab-panel,
  .fit-panel,
  .place-panel,
  .school-tool,
  .research-map,
  .civic-list {
    padding: clamp(14px, 4vw, 20px);
  }

  .panel-title,
  .school-controls,
  .school-search-row,
  .area-search-row,
  .section-head,
  .fit-hero,
  .place-layout,
  .civic-grid,
  .cta-checkpoint {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-controls {
    display: grid;
    gap: 10px;
  }

  .school-search-row {
    align-items: stretch;
  }

  .summary-chip-control select {
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .school-table {
    min-width: 0;
    display: grid;
    gap: 10px;
    background: transparent;
  }

  .school-head {
    display: none;
  }

  [data-school-rows] {
    display: contents;
  }

  .school-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .school-row > span:first-child,
  .school-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .school-row > span:nth-child(5) {
    display: none;
  }

  .hero-visual img,
  .visual-card img {
    height: auto;
    max-height: min(48svh, 360px);
    aspect-ratio: auto;
    object-fit: contain;
    background: #eef1ef;
  }

  .visual-card small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .related-card {
    min-height: 0;
    grid-template-rows: minmax(150px, auto) minmax(0, 1fr);
  }

  .related-card-photo {
    min-height: 150px;
  }

  .related-card-photo strong {
    font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .hero-section,
  .band {
    padding-block: 30px;
  }

  .source-row,
  .segmented,
  .segmented.wide,
  .segmented.wrap,
  .segmented.compact,
  .segmented.vertical,
  .people-tabs,
  .related-filter {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  }

  .metric-grid,
  .card-grid,
  .chart-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid,
  .school-summary,
  .people-profile-card .profile-grid,
  .people-signals-card .segment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-chip-control {
    grid-column: 1 / -1;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .area-shell-header .header-top {
    min-height: 54px;
    gap: 8px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-lockup .brand-headshot {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy span,
  .brand-copy em,
  .mobile-search {
    display: none !important;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-panel {
    inset: 54px 0 0 !important;
    max-height: calc(100svh - 54px) !important;
  }

  .overlay-bar {
    padding-top: 12px;
    padding-bottom: 4px;
  }

  .overlay-bar h2 {
    font-size: clamp(1.18rem, 3vw, 1.45rem);
  }

  .mobile-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .mobile-menu-grid a {
    min-height: 0;
    padding: 10px;
  }

  .mobile-menu-grid strong {
    font-size: 0.92rem;
  }

  .mobile-menu-grid span {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .hero-section,
  .band {
    padding-block: 24px;
  }

  h1 {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.45rem, 4.4vw, 2rem);
  }

  .lede,
  .section-help,
  .school-tool-help,
  .panel-title p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .answer-first {
    padding: 14px;
  }

  .metric-grid,
  .card-grid,
  .insight-grid,
  .report-grid,
  .signal-grid,
  .profile-grid,
  .school-summary,
  .people-profile-card .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card,
  .mini-card,
  .insight-box,
  .summary-chip,
  .profile-cell,
  .signal-card,
  .civic-item {
    padding: 12px;
  }

  .metric-card strong,
  .mini-card strong,
  .summary-chip strong {
    font-size: clamp(1.16rem, 4.4vw, 1.58rem);
  }

  .tab-panel,
  .fit-panel,
  .place-panel,
  .school-tool,
  .research-map,
  .civic-list {
    padding: 14px;
  }

  .hero-visual img,
  .visual-card img {
    max-height: min(46svh, 240px);
  }

  .pin-map {
    max-height: min(56svh, 280px);
  }
}

@media (max-width: 1500px) {
  .marquee-shell:not(.related-carousel-shell) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-inline: 0;
  }

  .marquee-shell:not(.related-carousel-shell) .marquee-nav {
    display: none;
  }

  .marquee-track:not(.related-carousel),
  .zip-marquee,
  .school-marquee {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding: 0;
    box-shadow: none;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .school-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .school-controls .segmented,
  .school-controls .segmented.wide,
  .school-controls .segmented.compact {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scrollbar-width: auto;
  }

  .people-signals-card .segment-list,
  .people-profile-card .profile-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding-bottom: 0;
    box-shadow: none;
  }

  .people-signals-card .segment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-profile-card .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .school-table {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}
