/* ==========================================================================
   CRMA — site styles
   ========================================================================== */

:root {
  --navy: #1c2f40;
  --navy-2: #26405a;
  --slate: #40596c;
  --rust: #a8431f;
  --rust-dark: #8c3517;
  --paper: #f5f2ec;
  --card: #ffffff;
  --ink: #1d242b;
  --muted: #56626e;
  --line: #e0dbd0;
  --focus: #e8a33d;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 14px rgba(20, 30, 40, .06);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1160px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-underline-offset: 2px; }
a:hover { color: var(--rust-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

.small { font-size: .95rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--rust); color: #fff; }
.btn-accent:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand img { border-radius: 4px; width: 64px; height: auto; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 500; line-height: 1.15;
  display: block; max-width: 14em;
}
.brand-short { display: none; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  white-space: nowrap;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 6px;
}
.site-nav a:not(.btn):hover { background: var(--paper); color: var(--rust); }
.site-nav a[aria-current="page"] { color: var(--rust); }
.site-nav a.btn[aria-current="page"] { color: #fff; background: var(--rust-dark); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 13px; width: 20px; height: 2px;
  background: var(--navy); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(20, 34, 48, .96) 0%, rgba(28, 47, 64, .88) 45%, rgba(28, 47, 64, .55) 100%),
    url("../images/hero-locomotive.jpg") center 40% / cover no-repeat,
    var(--navy);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .9rem; color: #f0b79c; margin-bottom: .8em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .35em;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: #dbe3ea;
  max-width: 32em;
  margin-bottom: 1.8em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.next-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  border-top: 5px solid var(--rust);
}
.next-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .85rem; color: var(--rust);
  margin-bottom: .6em;
}
.next-date { font-weight: 700; color: var(--muted); margin-bottom: .2em; }
.next-title {
  font-family: var(--font-head);
  font-size: 1.6rem; line-height: 1.15;
  color: var(--navy);
  margin-bottom: .3em;
}
.next-where { color: var(--muted); margin-bottom: 1.2em; }
.next-link { display: block; text-align: center; margin-top: 12px; font-weight: 600; }

/* ---------- Inner page banner ---------- */
.page-hero {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(20, 34, 48, .97) 0%, rgba(28, 47, 64, .9) 55%, rgba(28, 47, 64, .7) 100%),
    url("../images/hero-locomotive.jpg") center 45% / cover no-repeat,
    var(--navy);
  padding: 56px 0 52px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .3em;
}
.page-hero p { color: #dbe3ea; font-size: 1.15rem; max-width: 40em; margin: 0; }
.page-hero .eyebrow { margin-bottom: .6em; }

/* Generic prose block for inner pages */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Pay */
.section-pay { background: #fff; border-bottom: 1px solid var(--line); }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pay-card {
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pay-card:hover {
  border-color: var(--rust);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.pay-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  margin-bottom: 16px;
}
.pay-icon .icon { width: 24px; height: 24px; }
.pay-title { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.pay-price { font-weight: 700; color: var(--rust); margin: 4px 0 6px; }
.pay-note { color: var(--muted); font-size: .98rem; flex: 1; }
.pay-go {
  margin-top: 16px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--rust); font-size: .95rem;
}
.pay-check { margin: 24px 0 0; color: var(--muted); font-size: .98rem; }

/* Meetings */
.meetings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}
.lead { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.venue {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 24px;
}
.venue .icon { color: var(--rust); width: 26px; height: 26px; margin-top: 2px; }

.timeline { list-style: none; margin: 0 0 24px; padding: 0; }
.timeline li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 10px 0 10px 22px;
  border-left: 3px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 17px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--slate);
}
.t-time { font-weight: 700; min-width: 9.5em; }
.t-label { color: var(--muted); }

.schedule {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.schedule-list { list-style: none; margin: 0; padding: 0; }
.sched-item {
  display: flex; gap: 16px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sched-item:last-child { border-bottom: 0; }
.sched-date {
  flex: none;
  width: 58px; text-align: center;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.sched-date .m {
  display: block; background: var(--slate); color: #fff;
  font-family: var(--font-head); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em;
  padding: 2px 0;
}
.sched-date .d { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); line-height: 1.4; }
.type-golf .sched-date .m { background: #3e6b3f; }
.sched-title { display: block; font-weight: 700; }
.sched-title a { color: var(--ink); }
.sched-where { display: block; color: var(--muted); font-size: .98rem; }
.is-next .sched-date .m { background: var(--rust); }
.is-past { opacity: .45; }
.badge {
  display: inline-block; vertical-align: 2px;
  background: var(--rust); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 1px 8px; border-radius: 99px; margin-left: 4px;
}

/* News */
.section-news { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.news-item {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 4px solid var(--slate);
}
.news-item h3 { font-size: 1.2rem; }
.news-item p { color: var(--muted); flex: 1; }
.news-date { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.news-link { font-weight: 700; text-decoration: none; }
.news-link:hover { text-decoration: underline; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.history { display: flex; gap: 32px; margin: 24px 0; }
.history div { border-left: 3px solid var(--rust); padding-left: 14px; }
.history dt { font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; }
.history dd { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.link-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px;
}
.link-list a { font-weight: 600; }

/* Members */
.section-members { background: #fff; border-top: 1px solid var(--line); }
.members-list {
  list-style: none; margin: 0; padding: 0;
  columns: 4 220px; column-gap: 32px;
}
.members-list li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3dc; padding: 56px 0 24px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.footer-brand { font-family: var(--font-head); font-size: 2rem; color: #fff; letter-spacing: .08em; margin-bottom: .2em; }
.footer-h {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: #fff;
  margin-bottom: 1em;
}
.site-footer address { font-style: normal; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; font-size: .92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .site-nav a:not(.btn) { padding: 8px 7px; font-size: .94rem; }
  .nav-cta { margin-left: 4px; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
  .site-nav a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { display: flex; min-height: 48px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meetings-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand-name { display: none; }
  .brand-short { display: block; font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .06em; }
  .section { padding: 52px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
  .pay-icon { margin-bottom: 0; width: 44px; height: 44px; }
  .pay-title { flex: 1; }
  .pay-price, .pay-note, .pay-go { flex-basis: 100%; }
  .pay-go { margin-top: 8px; }
  .schedule { padding: 20px; }
  .t-time { min-width: 8.5em; }
  .history { gap: 20px; }
  .link-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ========== Content pages ========== */
/* Styles for events, membership, scholarship, gallery, about and contact pages. */

/* ---------- Shared helpers ---------- */
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.page-hero .hero-actions { margin-top: 28px; }

.kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .88rem; color: var(--rust);
  margin-bottom: .5em;
}
.kicker:empty { display: none; }
.section-head .kicker { color: var(--rust); font-size: .88rem; margin-bottom: .5em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.section-white .card { background: var(--paper); }
.card > :last-child { margin-bottom: 0; }
.card-accent { border-top: 5px solid var(--rust); }
.card h3 { font-size: 1.4rem; }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  margin-bottom: 16px;
}
.card-icon .icon { width: 24px; height: 24px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Label / price rows */
.price-list { margin: 0 0 20px; padding: 0; }
.price-list div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.price-list div:last-child { border-bottom: 0; }
.price-list dt { font-weight: 600; }
.price-list dd { margin: 0; font-weight: 700; color: var(--rust); text-align: right; }
.price-list small { font-weight: 400; font-size: .9rem; color: var(--muted); margin-left: 2px; }

/* ---------- Meetings & Events ---------- */
.meeting-sub { font-size: 1.1rem; margin: 8px 0 12px; }
.dinner-card .btn { margin-top: 4px; }
.dinner-card .next-link { margin-top: 14px; }

.schedule-wide .schedule-list { columns: 2; column-gap: 48px; }
.schedule-wide .sched-item { break-inside: avoid; }
.section-white .schedule { background: var(--paper); }
.section-white .sched-item { border-bottom-color: var(--line); }

.golf-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.golf-body { padding: 36px; }
.golf-body h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.golf-where {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--muted);
  margin-bottom: 16px;
}
.golf-where .icon { color: var(--rust); }
.golf-body .price-list { max-width: 30em; }
.golf-photo { margin: 0; min-height: 260px; }
.golf-photo img { width: 100%; height: 100%; object-fit: cover; }

.golf-summer {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #3e6b3f;
  border-radius: var(--radius);
}
.golf-summer > .icon { width: 28px; height: 28px; color: #3e6b3f; margin-top: 2px; }
.golf-summer h3 { margin-bottom: .3em; }
.golf-summer p { margin: 0; color: var(--muted); }

/* ---------- Membership ---------- */
.intro-quote {
  margin: 0;
  padding: 28px 30px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  border-left: 5px solid var(--rust);
}
.intro-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 .5em;
}
.intro-quote footer { color: #c9d3dc; font-size: .98rem; }

.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fee-card {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--slate);
  border-radius: var(--radius);
}
.fee-card.is-supply { border-top-color: var(--rust); }
.fee-card.is-railroad { border-top-color: var(--navy); }
.fee-card h3 { font-size: 1.35rem; margin-bottom: .6em; }
.fee-price {
  font-family: var(--font-head);
  font-size: 2.6rem; line-height: 1;
  color: var(--navy);
  margin: 0 0 6px;
}
.fee-price-note { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.fee-lines {
  list-style: none;
  margin: auto 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.fee-lines li { display: flex; justify-content: space-between; gap: 12px; }
.fee-lines strong { color: var(--rust); white-space: nowrap; }
.fee-foot { margin: 20px 0 0; }

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.join-card { display: flex; flex-direction: column; }
.join-card p { color: var(--muted); }
.join-card .btn-row { margin-top: auto; padding-top: 8px; }
.mail-to {
  font-style: normal; font-weight: 600;
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--paper);
  border-radius: 8px;
  border-left: 3px solid var(--slate);
}

/* ---------- Scholarship ---------- */
.scholar-intro { font-size: 1.15rem; }
ol.eligibility {
  list-style: none; counter-reset: elig;
  margin: 0 0 1.5em; padding: 0;
}
ol.eligibility li {
  counter-increment: elig;
  position: relative;
  margin: 0;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--line);
}
ol.eligibility li:last-child { border-bottom: 0; }
ol.eligibility li::before {
  content: counter(elig);
  position: absolute; left: 0; top: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-size: 1.05rem;
}
.scholar-aside { position: sticky; top: 96px; }
.deadline { text-align: center; }
.deadline .kicker { justify-content: center; }
.deadline-date {
  font-family: var(--font-head);
  font-size: 3rem; line-height: 1;
  color: var(--navy);
  margin: 0 0 .3em;
}
.deadline .btn { margin: 8px 0 14px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transition: transform .25s, opacity .25s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: .92; }
.gallery-item:focus-visible { outline-offset: 3px; }

html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 20, 28, .95);
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(12, 20, 28, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: flex-end; padding: 12px 16px 4px; }
.lb-stage {
  display: grid; place-items: center;
  min-height: 0;
  padding: 0 16px;
  touch-action: pan-y pinch-zoom;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  width: auto; height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  transition: opacity .15s;
}
.lb-img.is-loading { opacity: .35; }
.lb-bar {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 12px 16px 20px;
}
.lb-counter { font-family: var(--font-head); letter-spacing: .08em; min-width: 5.5em; text-align: center; }
.lb-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 26px; height: 26px; }

/* ---------- About ---------- */
.hist-photo { margin: 0; }
.hist-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.board-group + .board-group { margin-top: 36px; }
.board-group > h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
}
.board-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.board-card {
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.board-avatar {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--slate); color: #fff;
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .04em;
}
.is-officer .board-avatar { background: var(--rust); }
.board-card h4 {
  font-family: var(--font-head); font-weight: 500;
  font-size: 1.2rem; line-height: 1.2;
  color: var(--navy);
  margin: 0;
}
.board-role {
  display: block;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--rust);
}
.board-company { display: block; color: var(--muted); font-size: .98rem; }
.board-contact { margin: 28px 0 0; font-size: 1.1rem; }

.doc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doc-card {
  display: flex; align-items: flex-start; gap: 16px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.doc-card:hover {
  border-color: var(--rust);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.doc-icon {
  flex: none;
  width: 46px; height: 54px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #f6e6de; color: var(--rust);
}
.doc-icon .icon { width: 26px; height: 26px; }
.doc-title { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; color: var(--navy); }
.doc-desc { display: block; color: var(--muted); font-size: .98rem; margin-top: 2px; }
.doc-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--rust);
}
.doc-meta .icon { width: 1.1em; height: 1.1em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-grid .card { display: flex; flex-direction: column; }
.contact-grid .card p { color: var(--muted); }
.contact-grid address { font-style: normal; font-size: 1.1rem; margin-bottom: 1em; }
.contact-email { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-grid .btn-row { margin-top: auto; padding-top: 8px; }

/* ---------- Content pages: responsive ---------- */
@media (max-width: 960px) {
  .split, .split-even { grid-template-columns: 1fr; gap: 36px; }
  .golf-feature { grid-template-columns: 1fr; }
  .golf-photo { order: -1; min-height: 0; height: 220px; }
  .fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scholar-aside { position: static; }
  .schedule-wide .schedule-list { columns: 1; }
}

@media (max-width: 560px) {
  .card { padding: 22px 20px; }
  .golf-body { padding: 24px 20px; }
  .golf-photo { height: 180px; }
  .golf-summer { padding: 18px; gap: 12px; }
  .btn-row .btn, .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .fee-grid, .join-grid, .doc-grid { grid-template-columns: 1fr; }
  .intro-quote { padding: 22px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .board-grid { grid-template-columns: 1fr; }
  .lb-top { padding: 8px 8px 4px; }
  .lb-stage { padding: 0 8px; }
  .lb-img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .lb-bar { gap: 16px; padding-bottom: 16px; }
}
