/* EAA Chapter 283 — shared site styles
   Converted from the Generated Template components (SiteHeader/SiteFooter + shared classes),
   plus the responsive layer. Page-specific layout keeps the original inline styles and
   opts into responsive stacking via the g2/g3/g4 grid classes. */

* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-family: 'Public Sans', sans-serif; }

/* The hidden attribute must always win, even over display:flex classes/inline styles
   (login/dashboard toggling on members.html, the announcement bar, etc.). */
[hidden] { display: none !important; }

/* ============ ANNOUNCEMENT BAR ============ */
.announce-bar {
  background: #042A5C; color: #dce8fb; padding: 11px 56px;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 14.5px; font-weight: 600;
}
.announce-bar span { text-align: center; line-height: 1.3; }
.announce-bar button {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #9cc2f2; font-size: 17px;
  cursor: pointer; line-height: 1; padding: 6px;
}

/* ============ HEADER / NAV ============ */
.nav-bar {
  background: #fff; border-bottom: 1px solid #eef1f6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 10px; background: #0A5BC4;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px;
}
.brand-name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; color: #16203A; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.navlink {
  text-decoration: none; color: #3a4761; font-weight: 600; font-size: 15px;
  position: relative; padding: 8px 2px; white-space: nowrap; transition: color .15s;
}
.navlink:hover { color: #0A5BC4; }
.navlink.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2.5px; border-radius: 2px; background: #0A5BC4;
}
.nav-cta {
  background: #0A5BC4; color: #fff; padding: 11px 20px; border-radius: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.nav-toggle {
  display: none; background: #fff; border: 1px solid #e0e6ef; border-radius: 10px;
  width: 44px; height: 44px; font-size: 20px; color: #0A5BC4; cursor: pointer;
}

/* ============ FOOTER ============ */
.site-footer { background: #042A5C; color: #cdddf6; padding: 64px 40px 36px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-badge {
  width: 42px; height: 42px; border-radius: 10px; background: #0A5BC4;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 16px;
}
.footer-title { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 21px; color: #fff; }
.footer-blurb { font-size: 15.5px; line-height: 1.7; color: #9fb8de; margin: 0 0 18px; max-width: 320px; }
.footer-social { font-size: 14px; font-weight: 600; color: #cdddf6; text-decoration: none; border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 8px; }
.footer-head { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #7fa3d6; margin-bottom: 12px; }
.flink { color: #b9cdea; text-decoration: none; font-size: 15px; line-height: 2.0; transition: color .15s; }
.flink:hover { color: #fff; }
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: #7fa3d6;
}

/* ============ SHARED COMPONENTS (from the template pages) ============ */
.cta-primary { background: #0A5BC4; color: #fff; padding: 16px 28px; border-radius: 11px; font-weight: 700; font-size: 17px; text-decoration: none; display: inline-block; transition: background .15s; border: none; cursor: pointer; font-family: inherit; }
.cta-primary:hover { background: #06408C; }
.cta-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; padding: 16px 28px; border-radius: 11px; font-weight: 700; font-size: 17px; text-decoration: none; display: inline-block; transition: background .15s; }
.cta-ghost:hover { background: rgba(255,255,255,.12); }
.cta-outline { border: 1.5px solid #0A5BC4; color: #0A5BC4; padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 16px; text-decoration: none; display: inline-block; }
.cta-outline:hover { background: #EAF1FB; }
.link-arrow { color: #0A5BC4; font-weight: 700; font-size: 17px; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.fld { width: 100%; font-family: 'Public Sans', sans-serif; font-size: 16px; padding: 14px 16px; border: 1.5px solid #d9e0ea; border-radius: 11px; color: #16203A; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fld:focus { outline: none; border-color: #0A5BC4; box-shadow: 0 0 0 3px rgba(10,91,196,.14); }
.flbl { display: block; font-size: 14px; font-weight: 700; color: #16203A; margin-bottom: 7px; }

.social { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px 18px; border: 1px solid #e7ecf3; border-radius: 12px; transition: background .15s; }
.social:hover { background: #f7f9fd; }

.post-card { text-decoration: none; display: block; border: 1px solid #e7ecf3; border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 16px 36px -18px rgba(16,32,58,.3); transform: translateY(-3px); }
.nl-row { text-decoration: none; }
.nl-row:hover { background: #f3f7fd !important; }
.ev-row { text-decoration: none; }
.ev-row:hover { background: #f3f7fd !important; }
.doc-row { text-decoration: none; }
.doc-row:hover { background: #f3f7fd !important; }

.navbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e0e6ef; background: #fff; color: #0A5BC4; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.navbtn:hover { background: #EAF1FB; }

.faq-btn { width: 100%; background: transparent; border: none; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; text-align: left; }
.faq-btn:hover { background: #f7f9fd; }

.side-btn { width: 100%; text-align: left; border: none; cursor: pointer; font-family: inherit; font-size: 15.5px; font-weight: 600; padding: 12px 16px; border-radius: 10px; transition: background .15s, color .15s; display: flex; align-items: center; gap: 10px; background: transparent; color: #3a4761; }
.side-btn.active { font-weight: 700; background: #0A5BC4; color: #fff; }

/* Photo placeholder (striped box) */
.ph { position: relative; background: repeating-linear-gradient(135deg, #d6e2f1 0 16px, #e7eef8 16px 32px); border-radius: 14px; overflow: hidden; }
.ph > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: 'Courier New', monospace; font-size: 11.5px; color: #43587a; background: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 6px; text-align: center; white-space: nowrap; }

/* ============ RESPONSIVE LAYER ============ */
/* Pages tag their fixed grids with g2/g3/g4 so they stack on small screens. */
@media (max-width: 980px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid #eef1f6;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 24px 18px; box-shadow: 0 18px 30px -18px rgba(16,32,58,.25); z-index: 100;
  }
  .site-nav.open { display: flex; }
  .navlink { padding: 12px 4px; font-size: 16px; }
  .navlink.active::after { display: none; }
  .navlink.active { color: #0A5BC4; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-bar { position: relative; padding: 14px 20px; }
  .announce-bar { padding: 11px 48px 11px 16px; font-size: 13.5px; }
  .announce-bar button { right: 10px; }
}

@media (max-width: 920px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 38px !important; }
  section h2 { font-size: 28px !important; }
  /* generous fixed paddings tighten up on small screens */
  .pad-section { padding-left: 22px !important; padding-right: 22px !important; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px !important; }
}

/* The events calendar keeps its 7 columns but scrolls sideways on phones. */
.cal-scroll { overflow-x: auto; }
.cal-scroll .cal-min { min-width: 640px; }
