/* =========================================================================
   Avid Hawk — site.css
   Flat design: solid colors only. No gradients, transparency, opacity,
   shadows, fixed-position overlays, or viewport-unit font sizes.
   Text contrast is 7:1 or higher everywhere (WCAG AAA).
   ========================================================================= */

:root {
  /* Brand */
  --navy:         #215375;  /* primary: 8.2:1 on white */
  --navy-dark:    #153a54;  /* dark bands: 11.9:1 with white */
  --charcoal:     #1a2733;  /* footer: 15.2:1 with white */
  --sky:          #3e92cc;  /* decorative only (borders, rules) */

  /* Neutrals */
  --ink:          #1a2733;  /* body text: 15.2:1 */
  --muted:        #3d5166;  /* secondary text: 8.2:1 */
  --rule:         #c4d4e0;  /* decorative borders */
  --rule-strong:  #6b8aa3;  /* component borders: 3.6:1 */
  --surface:      #f4f7fa;
  --tint:         #e8f1f8;
  --white:        #ffffff;
  --soft-on-dark: #d9e8f3;  /* secondary text on navy-dark: 9.5:1 */

  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --container: 76rem;
  --gutter:    1.25rem;
  --space:     3.5rem;
}
@media (min-width: 48em) { :root { --gutter: 2rem; --space: 5rem; } }

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-dark); margin: 0 0 0.75rem; font-weight: 800; }
h1 { font-size: 2.125rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
@media (min-width: 48em) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

p, ul, ol { margin: 0 0 1.25rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 3px; }

q { quotes: "\201C" "\201D" "\2018" "\2019"; }

/* One focus style for everything: solid 3px ring, white on dark areas */
/* One focus style for everything: solid 3px ring, white on dark areas.
   Written as single selectors so every checker can match them. */
a:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
button:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
summary:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
iframe:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
audio:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-dark a:focus { outline-color: var(--white); }
.on-dark button:focus { outline-color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); }
.btn--outline:hover { background: var(--tint); color: var(--navy-dark); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy-dark); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy-dark); }
.btn--ghost-light { background: var(--navy); border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: var(--navy-dark); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.btn-row li { margin: 0; }
.btn-row--center { justify-content: center; margin-top: 2.5rem; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }

.topbar { background: var(--navy-dark); color: var(--soft-on-dark); font-size: 0.95rem; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
}
.topbar a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.topbar p { margin: 0; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand { display: inline-flex; flex-shrink: 0; margin-right: auto; border-radius: var(--radius-sm); }
.brand img { width: auto; height: 3.85rem; }
@media (max-width: 23em) { .brand img { height: 3.25rem; } }   /* keep logo and Menu button on one row on the narrowest phones */

.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list li { margin: 0; }
.site-nav__list a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--white);
}
.site-nav__list a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--rule-strong); }
.site-nav__list a[aria-current="page"]:not(.btn) { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.site-nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--tint); }
.nav-toggle .fa-xmark { display: none; }
.nav-toggle[aria-expanded="true"] .fa-xmark { display: inline-block; }
.nav-toggle[aria-expanded="true"] .fa-bars { display: none; }

/* Desktop: inline navigation, "Home" link hidden (logo links home) */
@media (min-width: 64em) {
  .header-inner { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .brand img { height: 4.95rem; }
}

/* Small screens with JavaScript: full-screen menu panel.
   It is part of the page (not a fixed overlay); while open, the header
   grows to fill the screen and the page content sits below it. */
@media (max-width: 63.99em) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 2rem; }
  .js .site-nav__list li { border-bottom: 1px solid var(--rule); }
  .js .site-nav__list li.site-nav__cta { border-bottom: 0; margin: 1.5rem 0 0; }
  .js .site-nav__list a:not(.btn) { display: flex; min-height: 60px; font-size: 1.375rem; font-weight: 700; padding: 0.75rem 0.25rem; border-bottom: 0; }
  .js .site-nav__list a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 3px; }
  .js .site-nav__cta .btn { width: 100%; min-height: 56px; font-size: 1.125rem; }
  html.menu-open .site-header { min-height: 100vh; }
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--rule); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0.25rem 0; font-size: 0.95rem; }
.breadcrumb li { display: flex; align-items: center; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.5rem; color: var(--muted); }
.breadcrumb a, .breadcrumb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current] { color: var(--muted); font-weight: 600; }

/* ── Page hero (subpages) ─────────────────────────────────────────────────── */
/* Compact header. The photo is a decorative CSS background on an empty
   element behind the panel; all text sits on the panel's solid color.
   Phones: the photo is a strip above the panel. Larger screens: behind it. */
.page-hero { position: relative; background: var(--navy-dark); color: var(--white); }
.page-hero__bg {
  aspect-ratio: 16 / 7;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
}
.page-hero__inner { position: relative; padding: 0; }
.page-hero__panel { background: var(--navy-dark); color: var(--white); padding: 1.5rem var(--gutter) 1.75rem; }
.page-hero h1 { color: var(--white); font-size: 1.875rem; margin-bottom: 0.5rem; }
.page-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.8rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-hero__desc { font-size: 1.0625rem; max-width: 48ch; margin: 0; }
.page-hero .post-meta { color: var(--white); }

/* No photo: a simple solid band */
.page-hero--plain .page-hero__panel { padding-top: 2.25rem; padding-bottom: 2.25rem; }

@media (min-width: 48em) {
  .page-hero__bg { position: absolute; inset: 0; aspect-ratio: auto; }
  .page-hero__inner { padding: 3rem var(--gutter); }
  .page-hero__panel { max-width: 34rem; padding: 1.75rem 2rem; border-radius: var(--radius-lg); border: 2px solid var(--white); }
  .page-hero h1 { font-size: 2.25rem; }
  .page-hero--plain .page-hero__inner { padding: 0 var(--gutter); }
  .page-hero--plain .page-hero__panel { max-width: none; padding: 2.75rem 0; border: 0; border-radius: 0; }
}
@media (min-width: 64em) {
  .page-hero__inner { padding-top: 3.75rem; padding-bottom: 3.75rem; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: var(--space) 0; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--tint); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }

.eyebrow { display: block; margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }

/* ── Content + sidebar layout ─────────────────────────────────────────────── */
.layout { display: grid; gap: 3rem; padding-top: 3rem; padding-bottom: var(--space); }
@media (min-width: 64em) { .layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.lead { font-size: 1.25rem; }
.content-image { width: 100%; margin: 0 0 1.5rem; border-radius: var(--radius); background: var(--tint); }

/* Image beside text: on top on phones (it comes first in the page),
   to the right of the text on larger screens. */
.media-split { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.media-split__img { width: 100%; border-radius: var(--radius); background: var(--tint); }
@media (min-width: 48em) {
  .media-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .media-split__img { grid-column: 2; grid-row: 1; }
  .media-split__text { grid-column: 1; grid-row: 1; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.card-grid > li { margin: 0; display: flex; }
@media (min-width: 40em) { .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.card:hover, .card:has(.card__link:focus) { border-color: var(--navy); }

.card__media { aspect-ratio: 16 / 10; background: var(--tint); border-bottom: 1px solid var(--rule); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--bg { background-size: cover; background-position: center; }
.card__media--contain img { object-fit: contain; padding: 1.25rem; background: var(--white); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card__body > :last-child { margin-bottom: 0; }
.card__body p { font-size: 1rem; color: var(--muted); }
.card h2 { font-size: 1.375rem; }
.card h3 { font-size: 1.25rem; }

/* Whole card is clickable through its heading link */
.card__link { color: var(--navy-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { text-decoration-thickness: 4px; }

.tags { margin: 0 0 0.25rem; }
.tag {
  display: inline-block;
  margin: 0 0.4rem 0.6rem 0;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}

/* Feature list */
.feature-grid { display: grid; gap: 1.25rem; list-style: none; margin: 0 0 2rem; padding: 0 !important; }
@media (min-width: 40em) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-grid > li { margin: 0; padding: 1.5rem; border: 1px solid var(--rule); border-left: 4px solid var(--sky); border-radius: var(--radius); background: var(--white); }
.feature-grid h3 { font-size: 1.125rem; margin: 0 0 0.5rem; }
.feature-grid p { margin: 0; font-size: 1rem; color: var(--muted); }

.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list i { position: absolute; left: 0; top: 0.35em; color: var(--navy); }

/* ── Callout ──────────────────────────────────────────────────────────────── */
.callout { margin-top: 3rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--navy-dark); color: var(--white); }
.callout h2 { color: var(--white); font-size: 1.5rem; margin-top: 0; }
.callout p { max-width: 60ch; }
.callout a:not(.btn) { color: var(--white); }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.widget__title { font-size: 1.125rem; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 3px solid var(--sky); }
.widget p { font-size: 1rem; color: var(--muted); }
.widget .widget-phone { margin: 0.5rem 0 0; color: var(--ink); }
.widget-phone a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.widget-nav { list-style: none; margin: 0; padding: 0; }
.widget-nav li { margin: 0; border-bottom: 1px solid var(--rule); }
.widget-nav li:last-child { border-bottom: 0; }
.widget-nav a { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0; font-size: 1rem; font-weight: 600; text-decoration: none; }
.widget-nav a:hover { text-decoration: underline; }
.widget-nav a[aria-current="page"] { color: var(--navy-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; }
.widget-nav i { color: var(--navy); width: 1.25rem; text-align: center; }
.widget-nav .count { margin-left: auto; color: var(--muted); }

.widget--dark { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.widget--dark .widget__title { color: var(--white); }
.widget--dark p { color: var(--soft-on-dark); }

.widget-posts { list-style: none; margin: 0; padding: 0; }
.widget-posts li { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.widget-posts li:last-child { border-bottom: 0; }
.widget-posts a { display: block; min-height: 44px; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.widget-posts .date { display: block; font-size: 0.875rem; color: var(--muted); }

/* ── Home hero ────────────────────────────────────────────────────────────── */
/* The photo is a decorative CSS background on an empty element behind the
   panel. All text sits on the panel's solid color, never on the photo.
   Phones: the photo is a strip above the panel. Larger screens: behind it,
   with the panel on the right. */
.home-hero { position: relative; background: var(--navy-dark); }
.home-hero__bg {
  aspect-ratio: 16 / 9;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: 70% center;
}
.home-hero__inner { position: relative; padding: 0; }
.home-hero__panel {
  background: var(--navy-dark);
  color: var(--white);
  padding: 2rem var(--gutter) 2.5rem;
}
.home-hero h1 { color: var(--white); font-size: 2.375rem; }
.home-hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 6px; text-underline-offset: 0.15em; }
.home-hero__desc { font-size: 1.1875rem; max-width: 58ch; }

@media (min-width: 48em) {
  .home-hero__bg { position: absolute; inset: 0; aspect-ratio: auto; }
  .home-hero__inner { padding: 5rem var(--gutter); }
  .home-hero__panel { max-width: 40rem; margin-left: auto; padding: 2.5rem; border-radius: var(--radius-lg); border: 2px solid var(--white); }
  .home-hero h1 { font-size: 3.25rem; }
}
@media (min-width: 64em) {
  .home-hero__inner { padding-top: 6.5rem; padding-bottom: 6.5rem; }
}

/* ── Stats band ───────────────────────────────────────────────────────────── */
.stats-band { background: var(--navy); color: var(--white); padding: 2.5rem 0; border-top: 4px solid var(--sky); }
.stats-band__title { color: var(--white); font-size: 1.125rem; margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48em) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { margin: 0; padding-left: 1rem; border-left: 4px solid var(--sky); }
.stats__num { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
@media (min-width: 30em) { .stats__num { font-size: 1.875rem; } }
.stats__label { display: block; font-size: 1rem; color: var(--white); }

/* ── Split layout ─────────────────────────────────────────────────────────── */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64em) { .split { grid-template-columns: 1fr 1fr; } }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.quote-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  background: var(--white);
}
.quote-card__text { margin: 0 0 1.25rem; font-size: 1.125rem; }
.quote-card__name { margin: auto 0 0; display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 600; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band { background: var(--navy); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 48ch; margin-left: auto; margin-right: auto; color: var(--white); }
.cta-band .btn-row { justify-content: center; }

/* ── Video: loads only when the visitor presses play ──────────────────────── */
/* The cover photo is a decorative CSS background on an empty element. The
   play label sits on a solid badge, so text is never placed on the photo.
   The frame does not clip, so the focus ring shows outside it on white. */
.video-block { margin-bottom: 2.5rem; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--navy-dark); }
.video-frame--square { aspect-ratio: 1 / 1; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: var(--radius); }
.video-play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  text-decoration: none;
}
.video-play:hover { color: var(--white); }
a.video-play:focus { outline: 3px solid var(--navy); outline-offset: 4px; }
.video-cover {
  position: absolute;
  inset: 0;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
}
.video-play__badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 15rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  background: var(--navy-dark);
  color: var(--white);
}
.video-play--cover .video-play__badge { border: 2px solid var(--white); }
.video-play:hover .video-play__badge { background: var(--navy); }
.video-play__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 3px solid var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
}
.video-play__label { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.video-note { font-size: 1rem; color: var(--muted); margin: 0.75rem 0; }

/* ── Disclosure (show/hide panels) ────────────────────────────────────────── */
.disclosure { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--white); margin-bottom: 1rem; }
.disclosure__heading { margin: 0; font-size: 1.0625rem; }
.disclosure__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-dark);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.disclosure__toggle:hover { background: var(--tint); }
.disclosure__toggle:focus { outline-offset: -3px; }
.disclosure__toggle i { color: var(--navy); flex-shrink: 0; }
.disclosure__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.disclosure__body { padding: 0.25rem 1.25rem 1.25rem; }
.disclosure__body h3, .disclosure__body h4 { font-size: 1rem; margin-top: 1rem; }
.disclosure__body p { font-size: 1rem; }
.disclosure__body audio { width: 100%; }

/* ── Galleries ────────────────────────────────────────────────────────────── */
.gallery { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; margin: 0 0 2rem; padding: 0 !important; }
.gallery--large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.gallery--3 { grid-template-columns: 1fr; }
@media (min-width: 40em) { .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--tint); }
.gallery--wide img { aspect-ratio: 4 / 3; }
.gallery--contain img { object-fit: contain; padding: 1rem; background: var(--white); }
.gallery figcaption { margin-top: 0.6rem; font-size: 0.95rem; font-weight: 600; color: var(--muted); }

/* ── Team profiles ────────────────────────────────────────────────────────── */
.team-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 3rem; padding: 0 !important; }
@media (min-width: 48em) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-grid li { margin: 0; }
.team-grid a { display: block; text-decoration: none; border-radius: var(--radius); }
.team-photo { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--rule); background-color: var(--tint); background-size: cover; background-position: center top; }
.team-grid .team-name { display: block; margin-top: 0.6rem; font-weight: 700; text-decoration: underline; }
.team-grid .team-role { display: block; font-size: 0.95rem; color: var(--muted); }

.profile { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 48em) { .profile { grid-template-columns: 14rem 1fr; gap: 2rem; } }
.profile img { width: 100%; max-width: 16rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.profile__role { font-weight: 600; color: var(--navy); }
.profile h3 { font-size: 1.0625rem; margin-top: 1.5rem; }

/* ── Jump links ───────────────────────────────────────────────────────────── */
.jump-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0 !important; margin: 0 0 1rem; }
.jump-links li { margin: 0; }

/* ── Blog listing ─────────────────────────────────────────────────────────── */
.filter-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; }
.filter-list li { margin: 0; }
.filter-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--white);
}
.filter-list a:hover { background: var(--tint); }
.filter-list a[aria-current="page"] { background: var(--navy); color: var(--white); }
.results-count { font-size: 1rem; color: var(--muted); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 2.5rem 0 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover { background: var(--tint); }
.pagination a[aria-current="page"] { background: var(--navy); color: var(--white); }
.pagination ul { align-items: center; gap: 1rem; }
.pagination a { gap: 0.5rem; }
.pagination .pagination__status { border: 0; min-width: 0; padding: 0; color: var(--muted); font-weight: 600; }

/* ── Blog post ────────────────────────────────────────────────────────────── */
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; font-size: 1rem; }
.post-meta i { margin-right: 0.35rem; }
.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-footer p { font-size: 1rem; color: var(--muted); }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.office { font-style: normal; }
.office p { margin: 0 0 0.75rem; font-size: 1rem; }
.office a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.form-slot { padding: 2rem; border: 2px dashed var(--rule-strong); border-radius: var(--radius); background: var(--surface); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: var(--soft-on-dark); font-size: 1rem; border-top: 4px solid var(--sky); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.0625rem; margin-bottom: 1rem; }

.footer-grid { display: grid; gap: 2.5rem; padding-top: var(--space); padding-bottom: 2.5rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } }

.footer-logo { display: inline-flex; margin-bottom: 1rem; border-radius: var(--radius-sm); }
.footer-logo img { width: 11rem; height: auto; filter: brightness(0) invert(1); }

.footer-address { font-style: normal; }
.footer-address p { margin: 0 0 0.75rem; }
.footer-address a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.social { list-style: none; display: flex; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; }
.social li { margin: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--white); border-radius: 50%; text-decoration: none; }
.social a:hover { background: var(--navy-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--navy-dark);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); text-align: center; background: var(--surface); }
.notfound__box { max-width: 36rem; }
.notfound__box img { width: 15.625rem; margin: 0 auto 2rem; }
.notfound__box .btn-row { justify-content: center; }

/* ── Visible only with JavaScript ─────────────────────────────────────────── */
html:not(.js) .js-only { display: none; }
.js .no-js-only { display: none; }   /* shown only when JavaScript is off (instead of <noscript>) */

/* ── Motion only when the visitor has not asked for reduced motion ───────── */
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .site-nav a, .filter-list a, .disclosure__toggle i, .social a, .video-play__badge {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }
}

/* ── Windows High Contrast / forced colors ────────────────────────────────── */
@media (forced-colors: active) {
  .btn, .nav-toggle, .filter-list a, .pagination a, .social a, .video-play__icon { border-color: ButtonText; }
  .site-nav__list a[aria-current="page"], .widget-nav a[aria-current="page"] { text-decoration: underline; }
  .footer-logo img { filter: none; background: Canvas; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  .topbar, .site-nav, .nav-toggle, .breadcrumb, .sidebar, .social, .video-frame { display: none; }
  .home-hero__bg, .page-hero__bg { display: none; }
  .page-hero, .page-hero__panel, .home-hero, .home-hero__panel, .stats-band, .cta-band, .site-footer, .callout { background: #fff; color: #000; }
}

/* Address lines (one element per line) */
.line { display: block; }
.section .section { padding: 2.5rem 0 1rem; }

/* ── Image lightbox (classic overlay) ─────────────────────────────────────── */
html.dialog-open { overflow: hidden; }
.lightbox {
  width: min(100% - 2rem, 70rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}
.lightbox::backdrop { background: var(--charcoal); }   /* solid, no transparency */
.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.lightbox__title { margin: 0; font-size: 1.0625rem; }
.lightbox__controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lightbox__controls [hidden] { display: none; }
.lightbox__figure { margin: 0; padding: 1.25rem; }
.lightbox__img {
  width: 100%;
  max-height: calc(100vh - 12rem);
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius);
}
.lightbox__caption { margin-top: 0.75rem; font-weight: 600; }

/* Gallery links that open the lightbox */
.gallery a.gallery__link { display: block; border-radius: var(--radius); }
.gallery a.gallery__link:hover img { border-color: var(--navy); }
