/* ---------------------------------------------------------------- base */
:root {
  --paper: #f7f5f0;
  --card: #fffefb;
  --ink: #1c1a17;
  --ink-2: #56504a;
  --ink-3: #8b8378;
  --rule: #ded6c9;
  --rule-2: #ece5da;
  --brand: #7a4419;
  --brand-2: #96582a;
  --wash: #f0e7da;
  --warn: #f5ecd6;
  --warn-line: #ddc48a;
  --warn-ink: #6b4c12;
  --bad: #8f3322;
  --bad-bg: #f7e8e5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
dl, dd { margin: 0; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ---------------------------------------------------------------- announcement */
.announce {
  background: var(--warn); border-bottom: 1px solid var(--warn-line); color: var(--warn-ink);
  font-size: .9rem; font-weight: 600; text-align: center; padding: .6rem 1.25rem;
}

/* ---------------------------------------------------------------- header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.wordmark-name { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; white-space: nowrap; }
.wordmark-sub {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .12rem; white-space: nowrap;
}
.masthead-meta { display: flex; align-items: center; gap: 1.4rem; font-size: .88rem; }
.masthead-meta a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.masthead-meta a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.masthead-meta a.nav-cta { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- intro */
.intro { padding: clamp(2.5rem, 7vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.intro h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: .4em; }
.intro-text p { color: var(--ink-2); max-width: 50ch; }
.when-line { color: var(--ink) !important; font-size: 1.05rem; }
.when-line strong { font-weight: 600; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.next-ride {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--brand); background: var(--card);
  border-radius: 3px; padding: .55rem .9rem; margin: .4rem 0 0;
}
.next-ride span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.next-ride strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 3px; min-height: 44px;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-2); }
.btn-solid:disabled { background: var(--ink-3); cursor: progress; }
.btn-plain { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn-plain:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- sections */
.band { border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 3.75rem) 0; scroll-margin-top: 1rem; }
.band h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-bottom: 1.25rem; }

.club-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.where-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (max-width: 860px) {
  .club-grid, .where-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

.club-photo { margin: 0; }
.club-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.club-side > p { color: var(--ink-2); }

.spec { border-top: 1px solid var(--rule); margin: 1.4rem 0 0; }
.spec > div { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule-2); }
.spec dt { width: 6rem; flex: none; font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.spec dd { font-size: .98rem; font-weight: 600; }

.sub-h { font-size: 1rem; margin-bottom: .5rem; }
.drive { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.drive li { font-size: .92rem; color: var(--ink-2); padding: .2rem 0 .2rem 1rem; position: relative; }
.drive li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.drive strong { color: var(--ink); font-weight: 600; }

.addr-block { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- map */
.map { display: block; position: relative; height: 380px; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: #e8e2d8; }
@media (max-width: 860px) { .map { height: 300px; } }
.map-tiles { position: absolute; left: 50%; top: 50%; }
.map-tiles img { position: absolute; display: block; max-width: none; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); line-height: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.map-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 8px);
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: .2rem .55rem;
  font-size: .76rem; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.map-attr { position: absolute; right: 0; bottom: 0; font-size: .6rem; color: var(--ink-2); background: rgba(255,255,255,.8); padding: .08rem .35rem; }

/* ---------------------------------------------------------------- notes */
.notes-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2.5rem; }
.notes-list dt { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.notes-list dd { color: var(--ink-2); font-size: .9rem; }

.cta-band { background: var(--wash); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* ---------------------------------------------------------------- panels & forms */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.15rem; }

.step-intro { font-size: .82rem; color: var(--ink-3); margin: 0 0 .8rem; }
.rule { border: 0; border-top: 1px solid var(--rule-2); margin: 1.25rem 0; }

.field { display: block; margin-bottom: 1rem; }
.label, .field > span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.field em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.field .field-note { font-weight: 400; margin: .3rem 0 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; gap: 0; } }

/* Untyped inputs must match too — `input[type=text]` silently skips them. */
input:where(:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button])),
textarea, select {
  width: 100%; font: inherit; padding: .58rem .7rem; border: 1px solid var(--rule);
  border-radius: 3px; background: #fff; color: var(--ink); min-height: 44px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

.field-note { font-size: .78rem; color: var(--ink-3); margin: 0; }

.callout {
  border: 1px solid var(--rule); background: var(--wash); border-radius: 3px;
  padding: .7rem .85rem; font-size: .85rem; margin: 0 0 1rem;
}
.callout span { color: var(--ink-2); }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; margin: 1rem 0; }
.check input { margin-top: .18rem; flex: none; width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-error {
  background: var(--bad-bg); border: 1px solid #e3c4bd; color: var(--bad);
  border-radius: 3px; padding: .6rem .8rem; font-size: .85rem; margin: 1rem 0;
}
.fine { font-size: .8rem; color: var(--ink-3); margin: .8rem 0 0; }

/* --- children riding under a parent's signature --- */
.minors-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .2rem; }
.minors-head h2 { margin: 0; }
.minor-row { display: grid; grid-template-columns: 1fr 11rem auto; gap: 0 .6rem; align-items: end; }
.minor-row .field { margin-bottom: .7rem; }
.minor-remove {
  font: inherit; font-size: 1.3rem; line-height: 1; width: 44px; height: 44px; margin-bottom: .7rem;
  border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: var(--ink-3); cursor: pointer;
}
.minor-remove:hover { border-color: var(--bad); color: var(--bad); }
@media (max-width: 520px) {
  .minor-row { grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule-2); margin-bottom: .7rem; }
  .minor-row .field:first-child { grid-column: 1 / -1; }
}
.link-btn { font: inherit; font-size: .88rem; font-weight: 600; background: none; border: 0; padding: .3rem 0; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- the agreement --- */
.waiver-doc {
  height: 340px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 3px;
  padding: .9rem 1rem; background: #fff; font-size: .84rem; line-height: 1.55; margin-bottom: 1.25rem;
  overscroll-behavior: contain;
}
@media (max-width: 560px) { .waiver-doc { height: 280px; } }
.waiver-doc:focus { outline: 2px solid var(--brand); }
.waiver-doc h5 { font-family: var(--serif); font-size: .95rem; margin: 1rem 0 .3rem; }
.waiver-doc p { margin: 0 0 .6rem; }
.waiver-doc ul { margin: 0 0 .6rem; padding-left: 1.1rem; }
.waiver-doc li { margin-bottom: .35rem; }
.waiver-doc .warning { border: 1px solid var(--ink); padding: .55rem .65rem; font-weight: 700; }
.waiver-doc .doc-head { font-size: .76rem; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin-bottom: .7rem; }
.sig-input { font-family: "Snell Roundhand", "Apple Chancery", cursive; font-size: 1.25rem; }

.sheet { max-width: 680px; padding: clamp(1.75rem, 5vw, 2.75rem) 0 3rem; }
.sheet-head { margin-bottom: 1.5rem; }
.sheet-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .35rem; }
.sheet-head p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }
.doc-title { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 .15rem; }

.done-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.copy-box { border: 1px solid var(--rule); border-radius: 3px; background: var(--wash); padding: .85rem .95rem; margin-top: 1.25rem; }
.copy-box strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.copy-box p { font-size: .82rem; color: var(--ink-2); margin: 0 0 .6rem; }
.copy-row { display: flex; gap: .4rem; }
.copy-row input { flex: 1; min-width: 0; font-size: .8rem; }
.copy-row .btn { flex: none; white-space: nowrap; }

.lookup { margin-top: 1.25rem; }
.lookup summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.lookup summary:hover { color: var(--brand); }
.lookup-body { padding-top: .9rem; }

/* ---------------------------------------------------------------- footer */
.footer { padding: clamp(2rem, 5vw, 2.75rem) 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer h3 { font-size: 1.05rem; margin-bottom: .35em; }
.footer-info p { margin-bottom: .4rem; font-size: .92rem; }
.addr, .contact { color: var(--ink-2); }
.contact:empty { display: none; }

.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule-2);
  font-size: .78rem; color: var(--ink-3);
}
.footer-base a { color: var(--ink-3); }

@media (max-width: 600px) {
  .masthead-meta { gap: .9rem; font-size: .82rem; }
  .masthead-meta a.nav-extra { display: none; }
  .panel { padding: .95rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
