/* VFG site styles: white, green and gold (Rex, Nov 2026; Celtic green from the uniform mock-ups).
   Page bodies are white; the header, banners and footer are deep green (see .dark-zone below).
   Brand colours live in :root; change them here to re-theme. */
:root {
  --bg: #ffffff;
  --bg-2: #f1f5f0;
  --bg-3: #ffffff;
  --line: #d7e2d8;
  --text: #0c2416;
  --muted: #55695a;
  --accent: #f6c800;
  --accent-rgb: 246, 200, 0;
  --accent-ink: #04150b;
  --green: #007a33;
  --hi: var(--green);
  --shade: 4, 21, 11;
  --stripes: repeating-linear-gradient(-60deg, #06190d 0 28px, #041309 28px 56px);
  /* Uniform trim: yellow, white, green bands */
  --trim: linear-gradient(180deg, var(--accent) 0 40%, #fff 40% 60%, var(--green) 60% 100%);
  --radius: 4px;
  --max: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Deep green areas swap the colour set so everything inside reads light-on-dark */
.site-header, .hero, .page-head, .coming, .site-footer {
  --bg: #04150b;
  --bg-2: #08200f;
  --bg-3: #0d2a17;
  --line: #1a3f26;
  --text: #f5f8f3;
  --muted: #b3c7b6;
  --hi: var(--accent);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Headings: slanted, condensed, heavy, like the logo */
h1, h2, h3, .head {
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: 1.6rem; }
.accent { color: var(--hi); }
.eyebrow {
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hi);
  font-size: 1rem;
  margin: 0 0 0.6em;
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* Top bar */
.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 6px 16px;
}

/* Header and nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--shade), 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 8px 14px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0) skewX(-20deg);
  transition: transform 0.2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-20deg); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.5rem; padding: 10px 0; }
  .nav a::after { left: 0; right: auto; width: 60px; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  text-decoration: none;
  padding: 12px 28px;
  border: 0;
  background: none;
  color: var(--accent-ink);
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
/* The slanted box sits behind the text so borders stay intact */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border: 2px solid var(--accent);
  transform: skewX(-12deg);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { color: var(--text); }
.btn.ghost::before { background: transparent; border-color: var(--text); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--stripes);
  border-bottom: 1px solid var(--line);
}
/* The photo fills the right side and fades into the dark on its left edge */
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  /* Starts just past the text column, however wide the screen is */
  left: max(45%, calc((100% - var(--max)) / 2 + 600px));
  background: var(--photo) center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
@media (max-width: 820px) {
  .hero::before {
    left: 0;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  }
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--trim);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero-logo { width: min(420px, 80vw); margin-bottom: 28px; }
.hero .lede { max-width: 38ch; }

/* Page banner for inner pages */
.page-head {
  background:
    linear-gradient(90deg, rgba(var(--shade),0.96) 0%, rgba(var(--shade),0.8) 45%, rgba(var(--shade),0.35) 100%),
    var(--photo, var(--stripes)) center 35% / cover no-repeat;
  border-bottom: 8px solid;
  border-image: var(--trim) 1;
  padding: 96px 0 64px;
}
.page-head h1 { font-size: clamp(3rem, 8vw, 5.5rem); }

/* Sections and cards */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--hi); transform: translateY(-3px); }
.card .num {
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  font-size: 3rem;
  color: var(--hi);
  line-height: 1;
}
.card p { color: var(--muted); margin: 0; }
.card .go {
  margin-top: 16px;
  display: inline-block;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Photo cards (home page) */
.card.photo { padding: 0; overflow: hidden; }
.card.photo .pic { aspect-ratio: 16 / 9; background: var(--photo) center / cover no-repeat; position: relative; }
.card.photo .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg-3)); }
.card.photo .num { position: relative; margin: -36px 0 0 24px; z-index: 1; }
.card.photo .text { padding: 8px 28px 28px; }

/* Media */
.media-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.media-tabs button {
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.1rem;
  background: var(--bg-3); color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 18px; cursor: pointer;
}
.media-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.media-card { padding: 0; overflow: hidden; }
.media-card .thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(var(--shade),0.15), rgba(var(--shade),0.45)),
    var(--photo, var(--stripes)) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.media-card .thumb.video::before {
  content: "";
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%2304150b'/%3E%3C/svg%3E") center / 32px no-repeat;
}
.media-card .body { padding: 20px 22px 24px; }
.media-card .tag {
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--hi); font-size: 0.9rem;
}
.media-card h3 { margin: 6px 0 8px; font-size: 1.5rem; }

/* Coming soon */
.coming {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,122,51,0.35), transparent 55%),
    linear-gradient(rgba(var(--shade),0.78), rgba(var(--shade),0.88)),
    var(--photo, var(--stripes)) center / cover no-repeat;
  border-bottom: 8px solid;
  border-image: var(--trim) 1;
  padding: 72px 16px;
}
.coming h1 { font-size: clamp(3.5rem, 12vw, 8rem); }
.coming .stamp {
  display: inline-block;
  border: 3px solid var(--accent);
  color: var(--hi);
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 1.2rem;
  padding: 6px 18px;
  transform: rotate(-4deg);
  margin-bottom: 24px;
}

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1rem; margin-bottom: 6px;
}
.field label .req { color: var(--hi); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[readonly] { background: var(--bg-2); color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--hi); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.25);
}
.field .hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 640px) { .panel { padding: 20px; } }
.form-done {
  display: none;
  text-align: center;
  padding: 40px 16px;
}
.form-done.show { display: block; }
.form-done .check {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
  font-size: 2.2rem; color: var(--accent-ink); font-weight: 800;
}

/* Registration steps */
.steps { display: flex; gap: 8px; margin-bottom: 28px; counter-reset: step; }
.steps li {
  list-style: none;
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.05rem; color: var(--muted);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  padding-left: 24px;
}
.steps li:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 14px; }
.steps li.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps li.done { color: var(--text); }
.steps { padding: 0; }
@media (max-width: 640px) { .steps li { font-size: 0.9rem; padding: 8px 8px 8px 18px; } }
.step-pane { display: none; }
.step-pane.active { display: block; }

/* Waiver documents */
.doc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.doc-head::-webkit-details-marker { display: none; }
.doc-head h3 { margin: 0; font-size: 1.5rem; }
.doc-head .meta { color: var(--muted); font-size: 0.85rem; }
.doc-head::after {
  content: "+";
  font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--hi); line-height: 1;
}
details[open] > .doc-head::after { content: "\2212"; }
.doc-body {
  padding: 0 22px 22px;
  color: var(--text);
}
.doc-text {
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
}
.doc-text h4 { margin: 1em 0 0.3em; font-size: 1rem; }
.doc-text p { margin: 0 0 0.8em; }
.placeholder-note {
  background: rgba(var(--accent-rgb),0.08);
  border: 1px dashed var(--accent);
  color: inherit;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.agree {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: var(--radius);
}
.agree input { width: 22px; height: 22px; accent-color: var(--hi); flex: none; margin-top: 2px; }
.agree.locked { opacity: 0.5; }
.read-hint { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.progress-line {
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 8px 0 20px; color: var(--muted);
}
.progress-line b { color: var(--hi); }

/* Contact info blocks */
.info-list { display: grid; gap: 16px; }
.info-list .item { padding: 18px 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); }
.info-list .item .head { font-size: 1.2rem; margin-bottom: 4px; }
.info-list .item p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 8px solid;
  border-image: var(--trim) 1;
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img { height: 28px; width: auto; margin-bottom: 12px; }
.site-footer h4 {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  color: var(--text); letter-spacing: 0.08em; margin: 0 0 10px; font-size: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }

/* Members link in the header */
.nav a.nav-members { color: var(--accent); }
@media (min-width: 821px) {
  .nav a.nav-members { margin-left: 8px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 6px 14px; }
  .nav a.nav-members::after { display: none; }
  .nav a.nav-members[aria-current="page"], .nav a.nav-members:hover { background: var(--accent); color: var(--accent-ink); }
}

/* Member portal and admin */
.btn.sm { font-size: 1rem; padding: 8px 18px; }
.page-head.slim { padding: 56px 0 36px; }
.page-head.slim h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0; }
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: var(--radius); padding: 10px 14px; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; margin-left: 8px; color: var(--hi); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sub-head { font-size: 2rem; margin-top: 40px; }

.feed { display: grid; gap: 14px; margin-top: 20px; }
.feed .item { background: var(--bg-3); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 18px 22px; }
.feed .item h3 { margin: 0 0 6px; font-size: 1.5rem; }
.feed .item p { margin: 0 0 6px; }
.feed .item .meta { color: var(--muted); font-size: 0.9rem; }
.feed .item.event { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; }
.feed .item.event .when {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1.1; color: var(--hi);
}
@media (max-width: 560px) { .feed .item.event { grid-template-columns: 1fr; gap: 4px; } }
.board-form { margin-top: 4px; }
.board-form textarea { min-height: 90px; }
.signed { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input { flex: 1 1 240px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font: inherit; }
.choice { display: flex; flex-wrap: wrap; gap: 18px; }
.choice input { width: auto; }
.choice label { display: flex; gap: 6px; align-items: center; font-family: var(--body); font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.link-box { margin-top: 16px; padding: 16px 18px; background: rgba(var(--accent-rgb), 0.12); border: 1px solid var(--accent); border-radius: var(--radius); }
.link-box p { margin: 0 0 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th {
  background: var(--bg-2); font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.95rem;
}
.table tbody tr:hover { background: var(--bg-2); }
.table a { color: var(--green); }

/* Signed waiver record (admin) and printing */
.record-details { display: grid; gap: 4px; margin: 0 0 16px; font-size: 0.95rem; overflow-wrap: anywhere; }
.record-details b { font-weight: 600; }
.signed-doc .doc-text { max-height: none; }
.signed-doc .doc-head { cursor: default; }
.signed-doc .doc-head::after { content: none; }
@media print {
  .topbar, .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 0; }
  .doc { border: 1px solid #999; border-left: 4px solid #007a33; break-inside: auto; }
  .signed-doc { break-before: page; }
  .signed-doc:first-of-type { break-before: auto; }
  .doc-text { background: #fff; border: 0; padding: 0; overflow: visible; }
  a { color: inherit; text-decoration: none; }
}
