/* Northeast Arkansas MOAA Chapter — site styles.
   Phone-first, large readable text, and no very new CSS so older phones work. */

:root {
  --navy: #14284B;
  --navy-dark: #0B1830;
  --navy-mid: #1D3560;
  --gold: #C9A227;
  --ink: #1C1C1C;
  --muted: #4A5468;
  --label: #5A6478;
  --paper: #F7F5F0;
  --sand: #E9E4D8;
  --rule: #E5E0D4;
  --light: #DDE3EE;
  --red: #B3261E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.stack > * + * { margin-top: 18px; }
.strong { font-weight: 700; }
.label {
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--label);
}
.h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 30px; line-height: 1.2; color: var(--navy); }
.h3 { font-family: "Source Serif 4", Georgia, serif; font-size: 24px; line-height: 1.25; }
.lead { font-size: 19px; }
.empty-note { color: var(--muted); }

/* Buttons: at least 48px tall for easy tapping */
.btn {
  display: inline-block; min-height: 48px; padding: 12px 22px;
  border-radius: 6px; font-weight: 700; text-decoration: none; text-align: center;
  line-height: 24px;
}
.btn--big { padding: 14px 26px; }
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { color: var(--navy-dark); background: #D9B23A; }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { color: #FFFFFF; background: var(--navy-dark); }
.btn--ghost { color: #FFFFFF; border: 2px solid #FFFFFF; padding-top: 12px; padding-bottom: 12px; }
.btn--ghost:hover { color: var(--navy); background: #FFFFFF; }
.btn--outline { color: var(--navy); border: 2px solid var(--navy); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; margin: -6px; }
.btn-row .btn { margin: 6px; }

/* Signed-in bar (only when an officer is signed in) */
.signed-in-bar { background: var(--red); color: #FFFFFF; font-size: 16px; }
.signed-in-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.signed-in-bar__actions { display: flex; align-items: center; flex-wrap: wrap; }
.signed-in-bar a, .signed-in-bar button {
  color: #FFFFFF; font: inherit; font-weight: 700; margin-left: 16px;
}
.signed-in-bar form { margin: 0; display: inline; }
.signed-in-bar button { background: none; border: 1px solid #FFFFFF; border-radius: 4px; padding: 4px 10px; cursor: pointer; }

/* Top line and masthead */
.topline { background: var(--navy-dark); color: #E6E9EF; font-size: 15px; }
.topline__inner { display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topline a { color: #E6E9EF; margin-left: 18px; }
.topline__links a:first-child { margin-left: 0; }
.topline__inner > span:first-child { margin-right: 18px; }

.masthead { background: var(--navy); color: #FFFFFF; border-bottom: 4px solid var(--gold); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; color: #FFFFFF; text-decoration: none; margin: 6px 24px 6px 0; }
.brand:hover { color: #FFFFFF; }
.brand__logo {
  width: 60px; height: 60px; flex: 0 0 60px; margin-right: 14px;
  border: 2px solid var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--gold);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: "Source Serif 4", Georgia, serif; font-size: 23px; font-weight: 700; line-height: 1.15; }
.brand__sub { font-size: 15px; color: #C8D2E3; }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; font-weight: 600; font-size: 17px; margin: 0 -10px; }
.mainnav a { color: #FFFFFF; text-decoration: none; padding: 10px; }
.mainnav a:hover { text-decoration: underline; }
.mainnav .btn { margin-left: 10px; padding: 12px 20px; }
.mainnav .btn:hover { text-decoration: none; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; padding-top: 40px; padding-bottom: 72px; margin: 0 auto; }
.hero__text { flex: 1 1 480px; min-width: 0; margin: 0 20px 24px 0; }
.hero__text > * + * { margin-top: 18px; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.hero__title { font-family: "Source Serif 4", Georgia, serif; font-size: 34px; line-height: 1.12; }
.hero__lead { font-size: 19px; color: var(--light); max-width: 560px; }
.hero__photo {
  flex: 1 1 380px; min-width: 0; min-height: 220px;
  border-radius: 10px; border: 2px dashed #6F84A8; background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #C8D2E3; font-size: 16px;
}

/* Next meeting card */
.meeting-wrap { margin-top: -40px; position: relative; }
.meeting {
  background: #FFFFFF; border-radius: 10px; box-shadow: 0 6px 24px rgba(11, 24, 48, 0.12);
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: flex-start;
}
.meeting > * { margin: 8px 24px 8px 0; }
.meeting__when { flex: 1 1 240px; display: flex; flex-direction: column; }
.meeting__date { font-family: "Source Serif 4", Georgia, serif; font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.meeting__part { flex: 1 1 240px; display: flex; flex-direction: column; }
.meeting__part--wide { flex-basis: 300px; }
.meeting__contact {
  flex: 1 1 100%; margin-right: 0; border-top: 1px solid var(--rule); padding-top: 14px;
  font-size: 16px; color: var(--muted);
}

/* Sections */
.section { padding-top: 56px; padding-bottom: 24px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.section__head > * { margin-right: 12px; }
.intro { max-width: 760px; }
.intro > * + * { margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-gap: 20px; margin-top: 28px; }
.card { background: #FFFFFF; border-radius: 10px; padding: 24px; border-top: 4px solid var(--navy); color: var(--ink); }
.card svg { color: var(--navy); }
.card h3 { font-size: 22px; color: var(--navy); margin: 8px 0; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; }
.split--center { align-items: center; }
.split__main { flex: 999 1 560px; min-width: 0; margin-right: 32px; margin-bottom: 24px; }
.split__side { flex: 1 1 300px; min-width: 0; margin-bottom: 24px; }

/* Events list */
.month { background: #FFFFFF; border-radius: 10px; padding: 8px 20px 10px; }
.month__name { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin: 12px 0 4px; }
.event { display: flex; padding: 14px 0; border-top: 1px solid var(--rule); }
.event--highlight { background: #F3EEDD; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 6px; }
.event--highlight .event__title { font-family: "Source Serif 4", Georgia, serif; font-size: 22px; color: var(--navy); }
.event__date { width: 56px; flex: 0 0 56px; margin-right: 14px; text-align: center; display: flex; flex-direction: column; }
.event__dow { font-size: 13px; font-weight: 700; color: var(--label); }
.event__day { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.event__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.event__title { font-weight: 700; font-size: 19px; }
.event__detail { color: var(--muted); font-size: 16px; }

.tag {
  display: inline-block; background: var(--navy); color: #FFFFFF; font-size: 13px; font-weight: 700;
  padding: 1px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; line-height: 1.5;
  border: 1.5px solid var(--navy);
}
.tag--outline { background: transparent; color: var(--navy); }
.legend .tag:first-child { margin-left: 0; }

/* Side panels */
.panel { border-radius: 10px; padding: 24px; }
.panel > * + * { margin-top: 12px; }
.panel--navy { background: var(--navy); color: #FFFFFF; }
.panel--navy p { color: var(--light); }
.panel--outline { background: #FFFFFF; border: 2px solid var(--navy); }
.panel--outline .h3 { color: var(--navy); }
.muted-light { color: #B9C3D6; }

/* Join band */
.band { background: var(--sand); padding-top: 48px; padding-bottom: 32px; margin-top: 32px; }
.band .split__main > * + * { margin-top: 14px; }
.band .btn { display: block; }

/* Leadership */
.officers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-gap: 14px; }
.officer { background: #FFFFFF; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; }
.officer__name { font-size: 20px; font-weight: 700; }
.officer a { font-size: 16px; }
.links { list-style: none; margin: 0; padding: 0; font-weight: 600; }
.links li + li { margin-top: 10px; }

/* Footer */
.footer { background: var(--navy-dark); color: var(--light); font-size: 16px; margin-top: 48px; }
.footer a { color: #FFFFFF; }
.footer__cols { display: flex; flex-wrap: wrap; padding-top: 40px; }
.footer__col { flex: 1 1 220px; display: flex; flex-direction: column; margin: 0 32px 24px 0; }
.footer__col > * + * { margin-top: 6px; }
.footer__col--wide { flex-basis: 300px; }
.footer__name { font-family: "Source Serif 4", Georgia, serif; font-size: 21px; font-weight: 700; color: #FFFFFF; }
.footer__heading { font-weight: 700; color: #FFFFFF; }
.footer__base {
  border-top: 1px solid #2C3F63; padding-top: 18px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: #B9C3D6;
}
.footer__base > span { margin: 4px 16px 4px 0; }
.footer__base a { color: #B9C3D6; }

/* Wider screens */
@media (min-width: 700px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero__title { font-size: 46px; }
  .hero__inner { padding-top: 56px; }
  .hero__photo { min-height: 320px; }
  .h2 { font-size: 34px; }
  .meeting { padding: 26px 32px; }
  .month { padding: 8px 24px 12px; }
}

/* ---------- Photos ---------- */
.hero__photo--real { position: relative; padding: 0; overflow: hidden; border: 0; display: block; background: var(--navy-mid); }
.hero__photo--real img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 420px; object-fit: cover; }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: rgba(11, 24, 48, 0.78); color: #FFFFFF; font-size: 15px; text-align: left;
}
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-gap: 10px; margin-top: 16px; }
.photo-strip img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-gap: 18px; margin-top: 24px; }
.album-card { display: flex; flex-direction: column; background: #FFFFFF; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); }
.album-card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.album-card__title { font-weight: 700; font-size: 20px; color: var(--navy); padding: 14px 16px 2px; }
.album-card__meta { color: var(--muted); font-size: 16px; padding: 0 16px 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-gap: 10px; margin-top: 18px; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.photo figcaption { font-size: 15px; color: var(--muted); margin-top: 4px; }
.event__photos { font-weight: 700; font-size: 16px; margin-top: 4px; }

/* ---------- Newsletters ---------- */
.newsletter-cover { display: block; width: 100%; max-width: 260px; border-radius: 6px; background: #FFFFFF; }
.link-light { color: #FFFFFF; display: inline-block; margin-left: 4px; }
.panel--navy .link-light:hover { color: #FFFFFF; }
.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-gap: 18px; margin-top: 24px; }
.issue { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); }
.issue img, .issue__blank {
  display: block; width: 100%; height: 230px; object-fit: cover; object-position: top;
  border-radius: 8px; background: #FFFFFF; border: 1px solid var(--rule);
}
.issue__blank { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--label); }
.issue__title { font-weight: 700; font-size: 18px; margin-top: 8px; }

/* ---------- Officer pages ---------- */
.narrow { max-width: 760px; }
.form-card { background: #FFFFFF; border-radius: 10px; padding: 22px 20px; margin-top: 20px; }
.form-card > * + * { margin-top: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=date],
.field input[type=email], .field select, .field input[type=file] {
  display: block; width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; font-size: 18px;
  border: 2px solid #9AA3B5; border-radius: 6px; background: #FFFFFF; color: var(--ink);
}
.field input[type=file] { padding: 12px; background: var(--paper); }
.field--check label { display: flex; align-items: flex-start; font-weight: 600; }
.field--check input { width: 26px; height: 26px; flex: 0 0 26px; margin: 2px 12px 0 0; }
.field__help { color: var(--muted); font-size: 16px; margin-top: 6px; }
.field__error { color: var(--red); font-weight: 700; margin-top: 6px; }
.field--error input, .field--error select { border-color: var(--red); }
.field-row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.field-row .field { flex: 1 1 160px; margin: 0 8px; }
.btn--full { display: block; width: 100%; }
.btn--small { min-height: 40px; padding: 6px 12px; font-size: 16px; line-height: 24px; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
button.btn--outline { border: 2px solid var(--navy); }
button.btn[disabled] { opacity: 0.6; cursor: default; }
.notice { background: #FBF3D9; border-left: 0; border: 2px solid var(--gold); border-radius: 8px; padding: 14px 16px; }
.tip { background: #FFFFFF; border-radius: 10px; padding: 16px 18px; margin-top: 20px; color: var(--muted); }
.big-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-gap: 16px; margin-top: 24px; }
.big-button {
  display: flex; flex-direction: column; min-height: 110px; padding: 22px; border-radius: 12px;
  background: var(--navy); color: #FFFFFF; text-decoration: none;
}
.big-button:hover { color: #FFFFFF; background: var(--navy-dark); }
.big-button--plain { background: #FFFFFF; color: var(--navy); border: 2px solid var(--navy); }
.big-button--plain:hover { color: var(--navy); background: #FFFFFF; }
.big-button__title { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 700; }
.big-button__text { font-size: 17px; opacity: 0.9; margin-top: 4px; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 14px; margin-top: 14px; }
.manage-photo { background: #FFFFFF; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; }
.manage-photo img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.manage-photo--hidden img { opacity: 0.35; }
.manage-photo__album { font-size: 14px; color: var(--muted); margin: 6px 0; }
.manage-photo form { margin-top: auto; }
.manage-photo .btn { width: 100%; }

/* ---------- Pop-ups ---------- */
.popup {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
  background: rgba(11, 24, 48, 0.55); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup[hidden] { display: none; }
.popup__box { background: #FFFFFF; border-radius: 12px; padding: 26px 24px; max-width: 440px; width: 100%; text-align: center; }
.popup__box > * + * { margin-top: 14px; }
.popup__title { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; color: var(--navy); }
.popup__msg { font-size: 18px; }
.popup__msg--warning, .popup__msg--error { color: var(--red); font-size: 16px; text-align: left; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto; border-radius: 50%;
  border: 5px solid var(--rule); border-top-color: var(--navy);
  -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite;
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
