/* RCRCC website, Draft 2 (2026-10-06): a modern reorganization in the club's own colors.
   Navy-to-sky gradient, teal and tan from rcrcc.com; yellow from the RCRCC badge, used sparingly. */
:root {
  --navy: #010066;
  --navy-2: #0b1a5e;
  --blue: #2570d6;
  --sky: #7cbdff;
  --sky-lt: #eaf4ff;
  --teal: #008080;
  --teal-dk: #006b6b;
  --tan: #cdc8b1;
  --paper: #f7f5ee;
  --ink: #14161f;
  --muted: #4a4f5c;
  --yellow: #fef236;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 600 1.05rem/1 var(--head); letter-spacing: .4px; text-decoration: none; padding: .8em 1.3em;
  border-radius: 6px; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--navy); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1rem/1.05 var(--head); letter-spacing: .3px; margin-right: auto; }
.brand img { width: 104px; }
.brand:hover { color: var(--yellow); }
.navbtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid rgba(255, 255, 255, .6); color: #fff;
  font: 600 1rem/1 var(--head); letter-spacing: .5px; padding: .55em .9em; border-radius: 6px; cursor: pointer; }
.navbtn span, .navbtn span::before, .navbtn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.navbtn span::before, .navbtn span::after { content: ""; position: absolute; left: 0; }
.navbtn span::before { top: -6px; } .navbtn span::after { top: 6px; }
.sitenav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 6px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .15); max-height: calc(100vh - 70px); overflow: auto; }
.sitenav.open { display: block; }
.navlist { list-style: none; margin: 0; padding: 0; }
.navlist > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.navlist .top { flex: 1; color: #fff; text-decoration: none; font: 600 1.2rem/1 var(--head); letter-spacing: .4px; padding: 14px 0; }
.navlist .top[aria-current="page"] { color: var(--yellow); }
.subtoggle { background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.subtoggle::before { content: "+"; font: 600 1.4rem/1 var(--head); }
.has-sub.open .subtoggle::before { content: "\2013"; }
.sub { display: none; list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; flex-basis: 100%; }
.has-sub.open .sub { display: block; }
.sub a { display: block; color: #dfe8ff; text-decoration: none; padding: 8px 0; font-size: 1rem; }
.sub a:hover { color: var(--yellow); }

@media (min-width: 980px) {
  .navbtn { display: none; }
  .sitenav { display: block; position: static; padding: 0; border: 0; background: none; max-height: none; overflow: visible; }
  .navlist { display: flex; gap: 4px; }
  .navlist > li { border: 0; display: block; }
  .navlist .top { display: block; padding: 12px 12px; font-size: 1.12rem; border-radius: 4px; }
  .navlist .top:hover, .has-sub:hover > .top { color: var(--yellow); }
  .subtoggle { display: none; }
  .sub { position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px 0; background: #fff; border-radius: 8px;
    box-shadow: 0 12px 28px rgba(1, 0, 102, .25); }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .sub a { color: var(--navy); padding: 9px 18px; font-size: 1rem; }
  .sub a:hover { background: var(--sky-lt); color: var(--navy); }
}

/* ---------- home: hero banner on the sky gradient ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, #010066 0%, #0e2990 18%, #2570d6 52%, #7cbdff 82%, #f1f8ff 100%); }
.hero-photo { position: absolute; inset: 0; z-index: -1; background: url(../images/DSC07156.JPG) 62% 45% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  opacity: .9; animation: drift 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 0, 102, .25), rgba(1, 0, 102, .55)); }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 56px; }
.hero-logo { width: min(520px, 92%); margin: 0 auto 14px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); text-align: center; }
.hero-sub { font-size: 1.15rem; max-width: 34em; margin: 0 auto; text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.hero .ctas { justify-content: center; margin-top: 1.6em; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-2%, -1%); } }
@media (min-width: 900px) {
  .hero { min-height: min(78vh, 720px); display: flex; align-items: center; }
  .hero-photo { left: 38%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); opacity: 1; }
  .hero::after { background: linear-gradient(90deg, rgba(1, 0, 102, .35) 0%, rgba(1, 0, 102, 0) 60%); }
  .hero-in { width: 100%; padding: 48px 20px 64px; }
  .hero-in > * { max-width: 560px; }
  .hero-logo { margin: 0 0 18px; }
  .hero h1, .hero-sub { text-align: left; margin-left: 0; }
  .hero .ctas { justify-content: flex-start; }
}

/* ---------- teal "before you fly" strip (the old teal strip, flag and windsock) ---------- */
.flybar { background: var(--teal); color: #fff; }
.flybar .in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.flybar-flag { width: 160px; flex: none; display: none; }
.flybar-text { padding: 18px 0; flex: 1; }
.flybar h2 { color: #fff; font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: .3em; }
.flybar h2 .sock { width: 40px; display: inline-block; }
.flybar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.flybar a { color: #fff; font-weight: 700; text-decoration-color: rgba(255, 255, 255, .5); }
.flybar a:hover { color: var(--yellow); }
@media (min-width: 700px) { .flybar-flag { display: block; } }

/* ---------- sections ---------- */
main > section, main > .about, main > .field, main > .shops, main > .around { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(48px, 7vw, 92px); }
.band-tan { background: var(--tan); }
.band-sky { background: linear-gradient(180deg, var(--sky-lt), #fff); }
.band-navy { background: linear-gradient(180deg, var(--navy) 0%, #0e2990 70%, var(--blue) 100%); color: #fff; }
.band-navy h2 { color: #fff; }
.lead { font-size: 1.15rem; max-width: 46em; }

.about { display: grid; gap: 36px; align-items: center; }
.facts { margin: 0; display: grid; gap: 22px; }
.facts div { padding-top: 14px; border-top: 3px solid var(--teal); }
.facts dt { font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--head); color: var(--navy); }
.facts dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 900px) { .about { grid-template-columns: 1.7fr 1fr; gap: 64px; } }

.join-in { display: grid; gap: 30px; align-items: center; }
.join-logos { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.join-logos img { width: auto; max-height: 110px; mix-blend-mode: multiply; }
@media (min-width: 900px) { .join-in { grid-template-columns: 1.6fr 1fr; gap: 56px; } }

.field { display: grid; gap: 32px; align-items: center; }
.field-map { margin: 0; }
.field-map img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(1, 0, 102, .18); }
.field-map figcaption { margin-top: 12px; font-size: .95rem; }
.field-map figcaption a { font-weight: 700; }
.prose .maplink { margin: -.4em 0 1.4em; }
.note { background: var(--paper); padding: 12px 16px; border-radius: 6px; font-weight: 700; }
@media (min-width: 900px) { .field { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.rulelist { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 28px; }
.rulelist li { padding-top: 16px; border-top: 3px solid var(--navy); }
.rulelist h3 a { color: var(--navy); text-decoration: none; }
.rulelist h3 a::after { content: " \2192"; color: var(--teal); }
.rulelist h3 a:hover { color: var(--blue); }
@media (min-width: 800px) { .rulelist { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.shoplist { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 26px 36px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.shoplist li { border-left: 3px solid var(--teal); padding-left: 16px; }
.shoplist h3 { margin-bottom: .25em; }
.shoplist p { margin: 0 0 .4em; }

.hgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 1.4em; }
.hcard { display: block; color: #fff; text-decoration: none; font: 600 1.15rem/1.2 var(--head); }
.hcard img, .hcard .nopic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: transform .3s, box-shadow .3s; }
.hcard .nopic { display: block; background: linear-gradient(135deg, var(--teal), var(--navy)); }
.hcard span { display: block; padding-top: 10px; }
.hcard:hover img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.hcard:hover { color: var(--yellow); }
.hcard.light { color: var(--navy); }
.hcard.light:hover { color: var(--blue); }

.around { display: grid; gap: 26px; }
.around-item { display: flex; gap: 16px; align-items: center; }
.around-item img { width: 110px; flex: none; border-radius: 6px; }
.around-item p { margin: 0; }
@media (min-width: 900px) { .around { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, #0e2990 45%, var(--blue) 100%); color: #fff; }
.page-hero .in { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 6vw, 64px) 20px; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { margin: 0; font-size: 1.15rem; color: #dfe8ff; max-width: 40em; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; }
.toc a { background: var(--paper); color: var(--navy); text-decoration: none; padding: .5em 1em; border-radius: 999px; font: 600 1rem/1 var(--head); }
.toc a:hover { background: var(--tan); }
body:has(.logos) .toc a { background: #fff; box-shadow: 0 1px 6px rgba(1, 0, 102, .1); }
.prose { max-width: 880px; padding-top: 34px; padding-bottom: 64px; }
.prose h2 { margin-top: 1.4em; }
.prose h2.sec-h { font-size: clamp(2rem, 4vw, 2.7rem); padding-top: 18px; border-top: 4px solid var(--teal); margin-top: 1.6em; }
.prose .rule-sec:first-child h2.sec-h { margin-top: .4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul.dots { padding-left: 1.2em; }
.prose ul.dots li { margin: .35em 0; }
.prose ul.dots li::marker { color: var(--teal); }
.prose ol.alpha { list-style: lower-alpha; padding-left: 1.6em; }
.prose ol.alpha li { margin: .45em 0; }
.prose ol.alpha li::marker { color: var(--teal); font-weight: 700; }
.prose ol.num { list-style: decimal; padding-left: 1.6em; }
.prose ol.num li { margin: .45em 0; }
.prose ol.num li::marker { color: var(--teal); font-weight: 700; }
/* Proposed-rules review page */
.review-note { background: #fff8d6; border: 1px solid #e8d68a; border-radius: 8px; padding: 14px 18px; margin: 26px 0 8px; }
.review-note p { margin: 0; }
span.new, span.ask { display: inline-block; font: 700 .72rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
  padding: .32em .55em; border-radius: 4px; vertical-align: .12em; margin-right: .35em; }
span.new { background: var(--teal); color: #fff; }
span.ask { background: #f3c64b; color: #3a2c00; }
.prose .pic { margin: 1.4em 0; }
.prose .pic img, .prose .cols img { margin: 0 auto; border-radius: 6px; }
.prose .cols { display: grid; gap: 20px; margin: 1.2em 0; align-items: start; }
@media (min-width: 700px) { .prose .cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.prose .cols p { font-size: .98rem; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; }
.prose .video { margin: 1.2em 0; }
.backlink { margin-top: 2em; font-weight: 700; }
.hsec, .lsec { padding-top: 36px; padding-bottom: 20px; }
.lsec:last-child, .hsec:last-of-type { padding-bottom: 64px; }

.logos { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.logos li > a, .logos li > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 18px 14px; text-align: center; text-decoration: none; color: var(--navy);
  box-shadow: 0 2px 12px rgba(1, 0, 102, .08); transition: transform .2s, box-shadow .2s; font-weight: 700; font-size: .98rem; }
.logos li > a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(1, 0, 102, .16); }
.logos img { max-height: 110px; width: auto; object-fit: contain; }
.lsec { background: none; }
body:has(.logos) main { background: var(--paper); }

/* ---------- footer ---------- */
.checker { display: grid; grid-template-columns: repeat(10, 1fr); height: 16px; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.morelinks { list-style: none; margin: 1.4em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; }
.morelinks a::after { content: " 97"; color: var(--teal); }
.checker span:nth-child(odd) { background: #000; }
.checker span:nth-child(even) { background: #fff; }
.site-foot { background: var(--navy); color: #dfe8ff; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--yellow); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 70px; display: grid; gap: 32px; }
.foot-logo { width: 260px; margin-bottom: 14px; }
.addr { font-weight: 700; color: #fff; line-height: 1.45; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; font: 600 1.15rem/1.2 var(--head); }
.foot-nav a { text-decoration: none; }
.foot-logos { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 20px; align-self: start; }
.foot-logos img { width: auto; max-height: 72px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.4fr .7fr 1.2fr; gap: 48px; } }

/* ---------- reveal on scroll (JS adds .js; reduced motion skips it) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .hcard img, .logos li > a { transition: none; }
}

.draftbadge { position: fixed; right: 12px; bottom: 12px; z-index: 50; background: #000; color: var(--yellow); pointer-events: none;
  font: italic 700 .9rem/1 var(--body); padding: .5em .85em; border: 2px solid #23237a; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
@media (max-width: 699px) { .draftbadge { font-size: .72rem; right: 8px; bottom: 8px; opacity: .9; } }
@media print { .site-head, .draftbadge, .hero-photo { display: none; } }
