/* ==========================================================================
   PNOA — one stylesheet for the whole site.
   Replaces the ~46,000 lines of generated CSS from the old builder.
   Edit the tokens in :root to reskin.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --band: #f1f1f1;
  --rule: #227aaa;            /* PNOA blue: rules, borders, focus */
  --rule-dark: #1a5f85;       /* accessible blue for small text on white */
  --navy: #142c5c;            /* button fill */
  --flag-blue: #002868;       /* Pennsylvania state flag blue */
  --line: #d7d7d7;
  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --font: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

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

a { color: var(--rule-dark); }
a:hover { color: var(--ink); }

:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 3px solid var(--rule);
  outline-offset: 2px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.wrap--wide { max-width: 1400px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link ---------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 0; top: 0;
  z-index: 100;
  transform: translateY(-120%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--band);
  border-bottom: 2px solid var(--rule);
  min-height: 92px;             /* reserves space while site.js paints */
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  max-width: 1900px;
  margin-inline: auto;
  padding: 0.5rem var(--gap);
}

.site-header__logo { flex: 0 0 auto; display: block; }
.site-header__logo img { display: block; width: 118px; height: auto; }

.site-header__tagline {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  font-weight: 700;
  font-size: 1rem;
}

/* Nav --------------------------------------------------------------------- */

.nav { flex: 1 1 auto; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: 700 1rem/1 var(--font);
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  cursor: pointer;
}
.nav__bars { display: grid; gap: 4px; }
.nav__bars span { display: block; width: 22px; height: 2px; background: currentColor; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: block;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav__list a:hover,
.nav__list a:focus-visible { background: var(--flag-blue); color: #fff; }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rule); }

@media (max-width: 1250px) {
  .nav { flex-basis: 100%; order: 3; }
  .nav__toggle { display: inline-flex; }
  .nav__list { display: none; flex-direction: column; gap: 0; padding-bottom: 0.5rem; }
  .nav[data-open="true"] .nav__list { display: flex; }
  .nav__list a { padding: 0.9rem 0.5rem; border-top: 1px solid var(--line); }
  .site-header__tagline { margin-left: 0; }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: #000 url("https://www.pnoa.org/images/og-flag-img.jpg") center center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.55;
  z-index: -1;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gap);
}

.hero__eyebrow {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
}

.hero__rule {
  width: min(100%, 620px);
  min-height: 3px;
  margin: 0 0 0.65rem;
  border: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24'%3e%3cpath fill='%23227AAA' stroke-width='1' stroke-linecap='square' stroke-miterlimit='10' stroke='%23227AAA' d='M1,1L15,1L20,11L15,21L1,21L6,11Z'/%3e%3c/svg%3e");
  background-size: 3px 100%;
  background-repeat: round;
}

.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }

.hero__eyebrow { animation: rise 500ms both; }
.hero__rule { animation: slide 700ms 120ms both; }
.hero__title { animation: rise 500ms 220ms both; }

.hero__divider {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 44px;
  line-height: 0;
  overflow: hidden;
  transform: scale(-1, -1.01);
}
.hero__divider svg { display: block; width: 100%; height: 100%; }
.hero__divider path { fill: var(--paper); }

/* Home hero variant — logo and title, left aligned */
.hero--home { text-align: left; }

.hero--home .hero__inner { padding-block: clamp(4.5rem, 12vw, 11rem) clamp(4rem, 9vw, 7rem); }
.hero--home .hero__logo { display: block; width: 100%; max-width: 230px; margin: 0 0 1.75rem; }
.hero--home .hero__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.3125rem);
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
}
.hero--home .hero__sub { margin: 1rem 0 0; color: #fff; font-size: 1.0625rem; }
.hero--home .hero__divider path { fill: var(--band); }

/* Event bar — conference date and CTA, sits directly under the hero */
.eventbar { background: var(--band); border-bottom: 1px solid var(--line); }
.eventbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
}
.eventbar__text { border-left: 4px solid var(--rule); padding-left: 1.25rem; }
.eventbar__label {
  display: block;
  margin: 0 0 0.2rem;
  color: var(--rule-dark);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eventbar__date { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; }

@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes slide { from { transform: translateX(-60px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__eyebrow, .hero__rule, .hero__title { animation: none; }
}

/* Plain page header (pages without a hero image) -------------------------- */

.page-header { border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--rule); color: #fff; }
.btn--onlight { border-color: var(--navy); }
.btn--onlight:hover, .btn--onlight:focus-visible { border-color: var(--rule); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Sections and prose ------------------------------------------------------ */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { padding-top: 0; }
.section--band {
  background: var(--band);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) !important;
}

.page-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.875rem); }

.lede { margin: 1rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.375rem); font-weight: 700; }

.prose { max-width: 70ch; }
.prose--wide { max-width: 92ch; }
.prose--spaced > p + p { margin-top: 2.25rem; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
.prose h3 { margin-top: 2rem; font-size: 1.1875rem; }
.prose ul { margin: 1.15rem 0 0; padding-left: 1.35rem; }
.prose li + li { margin-top: 0.75rem; }
.prose a { text-underline-offset: 2px; }
.prose--center { margin-inline: auto; text-align: center; }
.prose--center > * + * { margin-top: 2.75rem; }
.prose--center p + p { margin-top: 2.75rem; }

.intro-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .intro-cols { grid-template-columns: 1fr; } }
.intro-cols__col { font-size: 1.0625rem; line-height: 1.75; letter-spacing: 0.005em; color: var(--ink-soft); font-weight: 400; }
.intro-cols__col p { margin: 0; }
.intro-cols__col p + p { margin-top: 1.5rem; }
.intro-cols__col--bold { color: var(--ink); font-weight: 700; }
.note { color: var(--ink-soft); font-style: italic; }

.media { margin: 2rem 0 0; }
.media img { display: block; width: 100%; max-width: 620px; border: 1px solid var(--line); }

/* Side-rule callouts ------------------------------------------------------ */

.callouts { display: grid; gap: 1.75rem; margin-top: 2rem; max-width: 80ch; }
.callouts--cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: none; align-items: start; }

.callout { border-left: 4px solid var(--rule); padding: 0.15rem 0 0.15rem 1.5rem; }
.callout__label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--rule-dark);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.callout h2, .callout h3 { margin: 0; font-size: 1.1875rem; }
.callout p { margin: 0.4rem 0 0; }
.callout ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.callout li + li { margin-top: 0.4rem; }
.callout__meta { color: var(--ink-soft); }

.callout--flag { border-left-color: var(--flag-blue); }
.callout--flag .callout__label { color: var(--flag-blue); }

/* Image beside text ------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2rem;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split__media img { display: block; width: 100%; border: 1px solid var(--line); }
.split__text > * + * { margin-top: 1.15rem; }
.split__text p { margin: 0; }

/* Roster (directors, past presidents) ------------------------------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.roster > li { border-left: 4px solid var(--flag-blue); padding-left: 1.25rem; }
.roster dt {
  color: var(--flag-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.roster dd { margin: 0.3rem 0 0; }
.roster .roster__name { font-size: 1.125rem; font-weight: 700; }
.roster .roster__org { color: var(--ink-soft); font-size: 0.9375rem; }
.roster dl { margin: 0; }

/* Sponsors ---------------------------------------------------------------- */

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #4f4f4f;
  background: var(--paper);
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}
.sponsor img { width: 200px; height: 200px; object-fit: contain; }
.sponsor__name { font-weight: 800; font-size: 1.1875rem; line-height: 1.25; }
.sponsor__role { font-weight: 700; font-size: 1.0625rem; color: var(--ink-soft); }

/* Embedded forms ---------------------------------------------------------- */

.embed { margin-top: 2rem; border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; min-height: 1400px; border: 0; }

/* Address block ----------------------------------------------------------- */

.address-block { margin-top: 2rem; border-left: 4px solid var(--rule); padding-left: 1.5rem; font-style: normal; }
.address-block p { margin: 0; }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--band); border-top: 2px solid var(--rule); }

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gap) 0;
  font-size: 1rem;
}
@media (max-width: 950px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--rule-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.footer-brand img { flex: 0 0 auto; width: 74px; height: auto; }
.footer-brand h2 { font-size: 1.1875rem; font-weight: 700; }
.footer-brand p {
  margin: 0.6rem 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer-nav { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.footer-nav a { font-weight: 700; }

.footer-contact address { font-style: normal; line-height: 1.55; }
.footer-contact p { margin: 0.75rem 0 0; }
.footer-contact .footer-phone { font-weight: 700; }

.footer-bottom {
  max-width: 1400px;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 1rem var(--gap) 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer-bottom__inner p { margin: 0; }
.footer-bottom__inner .footer-credit { margin-left: auto; }
@media (max-width: 650px) { .footer-bottom__inner .footer-credit { margin-left: 0; } }

/* Print ------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .skip-link, .hero__video, .hero__divider { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
