/* NACA site header and footer, layout "Option A" — identical to
   naca-usa.wildapricot.org (user.css 2.12, sections 15 and 16).
   Generated from shared/site-chrome.js. Do not edit here: edit that file
   and run  npm run tools:site-chrome  */

.naca-site-header, .naca-site-footer {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
/* The page column, as on Wild Apricot (user.css "Page width", 2026-11-16).
   Every app page's content column and this header and footer use
   --naca-page-column, so changing the width means changing these lines and
   the same rule in user.css. Inside an iframe the Wild Apricot page already
   gives the margins, so there the column keeps the theme's 10px a side. */
:root {
  --naca-page-max: clamp(960px, 88vw, 1440px);
  --naca-page-gutter: clamp(16px, 2.5vw, 40px);
  --naca-page-column: calc(100% - 20px);
}
@media screen and (min-width: 960px) {
  :root { --naca-page-column: calc(min(100%, var(--naca-page-max)) - 2 * var(--naca-page-gutter)); }
}
html.is-embedded { --naca-page-column: calc(100% - 20px); }

.naca-site-header *, .naca-site-footer * { box-sizing: border-box; }
html.is-embedded .naca-site-header, html.is-embedded .naca-site-footer { display: none !important; }
.naca-site-header ul, .naca-site-footer ul { list-style: none; margin: 0; padding: 0; }
.naca-site-header li, .naca-site-footer li { margin: 0; padding: 0; }
.naca-site-header a, .naca-site-footer a { text-decoration: none; }
.naca-site-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.naca-site-header a:focus-visible, .naca-site-header button:focus-visible,
.naca-site-footer a:focus-visible { outline: 2px solid #f4a523; outline-offset: 2px; }

/* The page column (--naca-page-column, above) */
.naca-site-header .naca-site-inner,
.naca-site-footer .naca-site-inner { width: var(--naca-page-column, calc(100% - 20px)); max-width: none; margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.naca-site-header {
  position: relative;
  z-index: 1000;
  background: linear-gradient(#091530 0 36px, #0e1e3c 36px);
  border-bottom: 3px solid #f4a523;
}
.naca-site-header .naca-site-inner { position: relative; }
.naca-site-header .naca-site-logo { position: absolute; left: 0; display: block; width: fit-content; line-height: 0; z-index: 30; }
.naca-site-header .naca-site-logo img { display: block; width: 180px; height: 60px; object-fit: contain; }
.naca-site-header .naca-site-tagline {
  position: absolute; left: 0; top: 0; height: 36px;
  font-size: 12.5px; font-weight: 400; line-height: 36px; color: #b2c8e6; white-space: nowrap;
}
.naca-site-header .naca-site-account {
  position: absolute; top: 0; right: 0; height: 36px; z-index: 11;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
}
.naca-site-header .naca-site-account a {
  display: inline-block; color: #b2c8e6; font-size: 12.5px; font-weight: 500; line-height: 1.2;
}
.naca-site-header .naca-site-account a.naca-site-me { color: #fff; font-weight: 600; }
.naca-site-header .naca-site-account a:hover { color: #fff; }
.naca-site-header .naca-site-menu > li > a { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.naca-site-header .naca-site-menutoggle { display: none; }

@media screen and (min-width: 960px) {
  .naca-site-header .naca-site-inner { height: 120px; }
  .naca-site-header .naca-site-logo { top: 48px; }
  .naca-site-header .naca-site-nav { position: absolute; left: 204px; right: 0; top: 36px; height: 84px; z-index: 20; }
  .naca-site-header .naca-site-menu { display: flex; justify-content: flex-end; align-items: center; height: 84px; }
  .naca-site-header .naca-site-menu > li { position: relative; display: flex; align-items: center; height: 84px; }
  .naca-site-header .naca-site-menu > li > a { display: flex; align-items: center; height: 84px; padding: 0 11px; line-height: 1; }
  .naca-site-header .naca-site-menu:has(> li:nth-child(8)) > li > a { padding: 0 9px; }
  .naca-site-header .naca-site-menu > li > a:hover,
  .naca-site-header .naca-site-menu > li:hover > a { color: #4a90e2; }
  .naca-site-header .naca-site-menu > li.sel > a { box-shadow: inset 0 -3px 0 #4a90e2; }
  .naca-site-header .naca-site-menu > li.dir > a::after {
    content: ""; display: inline-block; flex: none; width: 5px; height: 5px; margin: 0 0 3px 7px;
    border-right: 1.5px solid #9ca3af; border-bottom: 1.5px solid #9ca3af; transform: rotate(45deg);
  }
  .naca-site-header .naca-site-sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 1001; min-width: 200px; padding: 6px 0;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; box-shadow: 0 10px 25px rgba(14, 30, 60, 0.18);
  }
  .naca-site-header .naca-site-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .naca-site-header .naca-site-menu > li:hover > .naca-site-sub,
  .naca-site-header .naca-site-menu > li:focus-within > .naca-site-sub { display: block; }
  .naca-site-header .naca-site-sub a {
    display: block; padding: 10px 16px; color: #13243d; font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap;
  }
  .naca-site-header .naca-site-sub a:hover { background: #ecf1f9; color: #0e1e3c; }
}

@media screen and (max-width: 959px) {
  .naca-site-header { background: linear-gradient(#091530 0 34px, #0e1e3c 34px); }
  .naca-site-header .naca-site-inner { padding-top: 106px; }
  .naca-site-header .naca-site-tagline { display: none; }
  .naca-site-header .naca-site-account { height: 34px; gap: 14px; }
  .naca-site-header .naca-site-account a { font-size: 12px; }
  .naca-site-header .naca-site-account a.naca-site-pw { display: none; }
  .naca-site-header .naca-site-logo { top: 49px; }
  .naca-site-header .naca-site-logo img { width: 126px; height: 42px; }
  .naca-site-header .naca-site-menutoggle {
    display: block; position: absolute; top: 48px; right: 0; z-index: 31;
    width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M3 6h16M3 11h16M3 16h16' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    cursor: pointer;
  }
  .naca-site-header .naca-site-menu { display: none; margin: 0 -10px; background: #1e395e; }
  .naca-site-header.is-open .naca-site-menu { display: block; }
  .naca-site-header .naca-site-menu > li { border-top: 1px solid #2c5182; }
  .naca-site-header .naca-site-menu > li > a { display: block; padding: 14px 20px; font-size: 15px; line-height: 22px; }
  .naca-site-header .naca-site-menu > li.sel > a { box-shadow: inset 4px 0 0 #4a90e2; }
  .naca-site-header .naca-site-sub { padding: 0 0 8px; }
  .naca-site-header .naca-site-sub a {
    display: block; padding: 9px 20px 9px 36px; color: #d8e3f3; font-size: 14px; font-weight: 500; line-height: 22px;
  }
  .naca-site-header .naca-site-sub a:hover { color: #fff; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.naca-site-footer {
  margin-top: 40px;
  padding-bottom: 15px;               /* Wild Apricot's empty bottom zone */
  background: #0e1e3c;
  border-top: 3px solid #f4a523;
}
.naca-site-footer .naca-footer { padding: 48px 0 0; color: #d8e3f3; font-size: 14px; line-height: 1.6; }
.naca-site-footer .naca-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.naca-site-footer .naca-footer-logo { display: block; width: fit-content; line-height: 0; }
.naca-site-footer .naca-footer-logo img { display: block; width: 132px; height: 44px; object-fit: contain; }
.naca-site-footer .naca-footer p { margin: 14px 0 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: #d8e3f3; }
.naca-site-footer .naca-footer p.naca-footer-addr { font-size: 13.5px; color: #b2c8e6; }
.naca-site-footer .naca-footer h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.naca-site-footer .naca-footer ul { display: flex; flex-direction: column; gap: 8px; }
.naca-site-footer .naca-footer li { font-size: 14px; line-height: 1.5; }
.naca-site-footer .naca-footer a { color: #d8e3f3; font-weight: 400; }
.naca-site-footer .naca-footer a:hover { color: #fff; text-decoration: underline; }
.naca-site-footer .naca-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 1.5; color: #b2c8e6;
}
.naca-site-footer .naca-footer-bottom a { color: #b2c8e6; }
@media screen and (max-width: 959px) {
  .naca-site-footer .naca-footer { padding-top: 36px; }
  .naca-site-footer .naca-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 28px; }
  .naca-site-footer .naca-footer-cols > .naca-footer-brand { grid-column: 1 / -1; }
}

@media print { .naca-site-header, .naca-site-footer { display: none !important; } }
