:root {
  color-scheme: light;
  --color-bg: #f5f1e6;
  --color-surface: #ffffff;
  --color-border: #26313a;
  --color-accent: #2f6b62;
  --color-accent-dark: #1f4a44;
  --color-menu-head-bg: #e8dcc3;
  --color-menu-bg: #faf6ec;
  --color-link: #4b5d52;
  --color-link-hover: #b5592e;
  --color-body-text: #2a2823;
  --color-muted: #6b6558;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-body-text);
  background: var(--color-bg);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: var(--color-link); }

/* Banner */
.site-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
}
.site-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.brand-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}
.quick-tabs {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.14);
}
.quick-tabs a {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.quick-tabs a:last-child { border-right: none; }
.quick-tabs a:hover { background: rgba(255, 255, 255, 0.14); }

/* Shell / layout */
.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(200px, 235px) 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  background: var(--color-menu-bg);
  border: 2px solid var(--color-border);
  border-radius: 0.3rem;
  overflow: hidden;
}
.nav-links { display: block; }
.nav-group + .nav-group { border-top: 2px solid var(--color-border); }
.nav-group h3 {
  margin: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-border);
  background: var(--color-menu-head-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group li a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 49, 58, 0.12);
}
.nav-group li:last-child a { border-bottom: none; }
.nav-group li a:hover,
.nav-group li a.is-active {
  color: var(--color-link-hover);
  background: rgba(181, 89, 46, 0.09);
}
.nav-group li a.is-active { font-weight: 700; }

.content {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

/* Hero image */
.hero-frame {
  margin: 0;
  border: 2px solid var(--color-border);
  border-radius: 0.3rem;
  overflow: hidden;
  background: #111;
}
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-credit {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-muted);
  text-align: right;
  background: var(--color-menu-bg);
  border-top: 1px solid var(--color-border);
}
.photo-credit a { color: inherit; }

/* Cards */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-link-hover);
  margin: 0 0 0.5rem;
}

.hero-card,
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.3rem;
  padding: 1.4rem;
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--color-accent-dark);
}

.hero-card p,
.card p {
  margin: 0;
  color: var(--color-body-text);
}

.hero-card .note {
  margin-top: 0.9rem;
  color: var(--color-accent-dark);
  font-weight: 600;
}

.button-link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.button-link:hover { background: var(--color-accent-dark); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--color-accent-dark);
}

.card p { color: var(--color-body-text); }

.card-figure {
  margin: 0 0 0.75rem;
}
.card-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
}
.card-figure figcaption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-muted);
}

.inventory-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.inventory-list li {
  border-left: 3px solid var(--color-accent);
  padding: 0.45rem 0.7rem;
  background: var(--color-menu-bg);
  border-radius: 0.25rem;
  color: var(--color-body-text);
  font-size: 0.92rem;
}

.inventory-list strong { color: var(--color-accent-dark); }
.inventory-list em { font-style: normal; color: var(--color-link-hover); }
.inventory-list small { display: block; margin-top: 0.2rem; color: var(--color-muted); }

.source-content {
  display: grid;
  gap: 0.8rem;
  color: var(--color-body-text);
}
.source-content p,
.source-content li,
.source-content td,
.source-content th {
  margin: 0;
  color: inherit;
}
.source-content p br {
  display: block;
  content: "";
  margin-top: 0.8rem;
}
.source-content h1,
.source-content h2,
.source-content h3,
.source-content h4 {
  margin: 0.2rem 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-accent-dark);
}
.source-content ul,
.source-content ol {
  padding-left: 1.15rem;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.source-content a {
  color: var(--color-link-hover);
  text-decoration: underline;
}
.source-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
  margin: 0.2rem 0;
}
.source-content hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0.6rem 0;
}
.source-content blockquote {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-muted);
}

/* Collapsible bibliography sections (life-member pages etc.) */
.card details {
  border: 1px solid var(--color-border);
  border-radius: 0.3rem;
  margin-bottom: 0.6rem;
  background: var(--color-menu-bg);
}
.card details:last-child { margin-bottom: 0; }
.card details summary {
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
}
.card details[open] summary { border-bottom: 1px solid var(--color-border); }
.card details .inventory-list {
  margin: 0.7rem;
}

/* ANGFA History page: indent the first line of each article paragraph */
.history-article > p {
  text-indent: 1.5em;
}

/* Scanned-document style boxes (ANGFA History page) */
.card-details-box {
  border: 2px solid var(--color-border);
  border-radius: 0.3rem;
  padding: 1.1rem 1.3rem;
  margin: 0.2rem 0 1rem;
  background: var(--color-menu-bg);
}
.card-details-box .box-title {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 0.7rem;
  line-height: 1.4;
}
.two-col-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}
.two-col-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 220px;
  min-width: 200px;
}
.two-col-list li {
  padding: 0.15rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(38, 49, 58, 0.08);
}
.two-col-list li:last-child { border-bottom: none; }
.two-col-list li em { color: var(--color-accent-dark); font-style: normal; font-weight: 700; }

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.history-table th,
.history-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.history-table thead th {
  background: var(--color-menu-head-bg);
  color: var(--color-border);
  font-family: Georgia, "Times New Roman", serif;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-top: 2px solid var(--color-border);
  background: var(--color-menu-bg);
}
.site-footer a { color: inherit; }
.site-footer p { margin: 0.2rem 0; }

@media (max-width: 860px) {
  .site-shell { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
