/* Damocles public site: additions on top of site/css/style.css (same palette and type) */

.muted { color: var(--grey-dark); }
.small { font-size: 13px; }
.narrow { width: min(860px, 100% - 48px); margin-inline: auto; }
.page-pad { padding: clamp(40px, 6vw, 80px) 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose a, .lead a, .news-item a { text-decoration: underline; }

/* ---------- announcement banner ---------- */
.site-banner { background: var(--orange); color: #fff; font-size: 15px; position: relative; z-index: 101; }
.site-banner .container { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 0; }
.site-banner strong { font-weight: 700; }
.site-banner a { text-decoration: underline; margin-left: auto; white-space: nowrap; }
.site-banner + .site-banner { border-top: 1px solid rgba(255,255,255,.3); }

/* ---------- header: original nav + "Hoplite Invitational" pill + login icon, kept on one line ---------- */
.brand img { max-width: none; }
.site-nav a, .header-cta .btn { white-space: nowrap; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.login-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--white); flex: none; }
.login-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.login-link:hover, .login-link:focus-visible { color: var(--gold); }
.site-nav .nav-extra { display: none; }              /* News + Member Login: phone/tablet menu only (footer on desktop) */
@media (min-width: 1025px) {
  .site-nav > ul { gap: 18px; }
  .site-nav a { font-size: 16px; letter-spacing: .06em; }
  .site-nav .nav-event a {
    font-size: 13px; letter-spacing: .06em; padding: 6px 12px; line-height: 1.2;
    color: var(--gold); border: 1px solid var(--gold); border-radius: 999px;
  }
  .site-nav .nav-event a:hover, .site-nav .nav-event a:focus-visible, .site-nav .nav-event a[aria-current="page"] { background: var(--gold); color: var(--dark); }
}
@media (min-width: 1025px) and (max-width: 1260px) {
  .brand img { height: 80px; }
  .site-header .bar { gap: 16px; }
  .site-nav > ul { gap: 12px; }
  .site-nav a { font-size: 15px; letter-spacing: .04em; }
  .site-nav .nav-event a { font-size: 12px; padding: 5px 9px; letter-spacing: .02em; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 0 16px; }
}
@media (min-width: 1025px) and (max-width: 1160px) {
  .site-nav > ul { gap: 10px; }
  .site-nav a { font-size: 14px; letter-spacing: .02em; }
  .site-nav .nav-event a { font-size: 11px; padding: 4px 8px; letter-spacing: 0; }
}
@media (max-width: 1024px) { .site-nav .nav-extra { display: block; } }
/* Phones: hide the Join a Class button (the tab bar and menu cover it) but keep the member login icon */
@media (max-width: 480px) {
  .site-header .header-cta { display: flex; }
  .site-header .header-cta .btn { display: none; }
  .login-link { width: 40px; height: 40px; }
  .login-link svg { width: 26px; height: 26px; }
}
.footer-links { margin-top: 18px !important; font-size: 14px !important; }
.footer-links a { text-decoration: underline; }

/* ---------- schedule calendar ---------- */
.schedule-wrap { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); background: #f6f6f4; scroll-margin-top: var(--header-h); }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav h2, .cal-nav h3 { font-size: clamp(22px, 3vw, 30px); min-width: 210px; text-align: center; font-weight: 600; }
.cal-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--dark); color: #fff; line-height: 1; }
.cal-btn:hover { background: var(--orange); }
.cal-today { font-size: 14px; text-decoration: underline; }
.cal-filter { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cal-filter select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--dark); background: #fff; }
.cal-subscribe { margin-left: auto; font-size: 14px; padding: 8px 14px; border: 1px solid var(--dark); background: #fff; }
.cal-subscribe:hover { background: var(--dark); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; font-size: 13px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend-item i.x { background: repeating-linear-gradient(45deg, #ccc 0 3px, #fff 3px 6px); border: 1px solid #aaa; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #ddd; gap: 1px; border: 1px solid #ddd; }
.cal-head { background: var(--dark); color: #fff; text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
.cal-day { background: #fff; min-height: 120px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: #fafafa; }
.cal-day.other .cal-date { color: #bbb; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day.today .cal-date { background: var(--orange); color: #fff; border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.cal-day.closed { background: repeating-linear-gradient(135deg, #fff 0 8px, #f7f7f7 8px 16px); }
.cal-date { font-size: 13px; font-weight: 600; }
.cal-closed { font-size: 12px; color: var(--grey-dark); font-style: italic; }

.chip { font-size: 12px; line-height: 1.3; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 3px; }
.chip summary { list-style: none; cursor: pointer; padding: 3px 6px; display: flex; flex-wrap: wrap; gap: 0 5px; }
.chip summary::-webkit-details-marker { display: none; }
.chip summary:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.chip-time { font-weight: 700; white-space: nowrap; }
.chip-title { overflow: hidden; text-overflow: ellipsis; }
.chip.cancelled { background: repeating-linear-gradient(45deg, #f3f3f3 0 4px, #fff 4px 8px); border-left-color: #c92a2a; }
.chip.cancelled .chip-title { text-decoration: line-through; color: #777; }
.chip-flag { background: #c92a2a; color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }
.chip-body { padding: 6px 8px 8px; display: grid; gap: 4px; font-size: 12.5px; background: #fff; border-top: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.chip-cancel { color: #c92a2a; font-weight: 600; }
.chip-note { background: #fff8e1; padding: 4px 6px; }
.chip-links a { text-decoration: underline; }
.cal-day .chip[open] { position: relative; z-index: 5; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

.agenda { display: none; }
.agenda-day { background: #fff; padding: 14px 16px; margin-bottom: 10px; border-left: 4px solid var(--dark); }
.agenda-day.today { border-left-color: var(--orange); }
.agenda-day h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.agenda .chip { margin-bottom: 6px; font-size: 14px; }
.agenda .chip-body { font-size: 14px; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .agenda { display: block; }
  .cal-subscribe { margin-left: 0; }
  .cal-nav h2, .cal-nav h3 { min-width: 0; }
}

/* ---------- home: upcoming ---------- */
.upcoming { padding: clamp(40px, 6vw, 72px) 0; background: #f6f6f4; }
.upcoming-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.upcoming-head h2 { font-size: clamp(30px, 4vw, 44px); }
.upcoming-head .eyebrow { margin-bottom: 8px; color: var(--orange); }
.news-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.news-pill { background: var(--dark); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.news-pill.alert { background: var(--orange); }
.upcoming-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.up-day { background: #fff; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.up-day h3 { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.up-day h3 small { font-weight: 400; color: var(--grey-dark); font-size: 13px; }
.up-item { border-left: 4px solid var(--c); padding: 4px 0 4px 10px; margin-bottom: 8px; display: grid; font-size: 14px; }
.up-item .t { font-size: 12px; color: var(--grey-dark); }
.up-item.cancelled .n { text-decoration: line-through; color: #888; }
.up-item .x { color: #c92a2a; font-size: 12px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 1000px) { .upcoming-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .upcoming-days { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news-item { padding: 24px 0; border-bottom: 1px solid #e6e6e6; scroll-margin-top: calc(var(--header-h) + 16px); }
.news-item time { font-size: 13px; color: var(--orange); letter-spacing: .08em; text-transform: uppercase; }
.news-item h2 { font-size: 26px; margin: 6px 0 12px; font-weight: 600; }
.news-item.past { opacity: .65; }

/* ---------- registration: pick an existing fencer ---------- */
.who-picker { margin-bottom: 28px; }
.who-picker h2 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 6px; margin-bottom: 14px; }
.who-list { display: flex; flex-wrap: wrap; gap: 10px; }
.who { display: flex; flex-direction: column; padding: 10px 16px; border: 1px solid var(--dark); min-width: 160px; background: #fff; }
.who small { color: var(--grey-dark); font-size: 13px; }
.who:hover { border-color: var(--orange); }
.who.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.who.on small { color: var(--gold); }
.returning-note { background: #f6f6f4; border-left: 4px solid var(--amber); padding: 12px 16px; font-size: 15px; }
.returning-note a { text-decoration: underline; }

/* ---------- forms ---------- */
.club-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.club-form legend { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 6px; width: 100%; }
.club-form legend .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field select { font-family: var(--font); font-size: 16px; padding: 10px 12px; border: 1px solid var(--dark); background: var(--white); color: var(--dark); }
.field select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.validation-message { color: #c92a2a; font-size: 13px; margin-top: 4px; }
input.invalid, select.invalid, textarea.invalid { border-color: #c92a2a !important; }
.check, .check-row label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; cursor: pointer; }
.check input, .check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.waiver { background: #f6f6f4; padding: 18px 20px; margin-top: 18px; }
.waiver h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.waiver p { font-size: 14px; }
.form-error { background: #fff0f0; border-left: 4px solid #c92a2a; padding: 12px 16px; margin-bottom: 20px; }
.form-done { background: #f6f6f4; border-left: 5px solid var(--orange); padding: 28px; }
.form-done h2 { font-size: 26px; margin-bottom: 10px; }
.coach-cta { margin-top: 40px; }
.lesson-offer { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6e6e6; font-size: 15px; }
.lesson-offer .btn { margin-top: 10px; min-height: 40px; }
.coach-cta a { text-decoration: underline; }

/* Blazor moves focus to the page heading after navigation (for screen readers); don't draw a box around it. */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }

/* ---------- volunteer / coach application ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; margin-bottom: 16px; }
.avail-row { display: grid; grid-template-columns: 150px 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.avail-row .check { margin: 0; }
.avail-row input[type=time] { font-family: var(--font); font-size: 15px; padding: 6px 8px; border: 1px solid var(--dark); }
@media (max-width: 520px) { .avail-row { grid-template-columns: 1fr 1fr auto 1fr; font-size: 14px; } }

/* Hoplite Invitational (hosted tournament) */
.table-scroll { overflow-x: auto; margin: 10px 0 18px; }
.sf-events { width: 100%; border-collapse: collapse; font-size: 15px; }
.sf-events th, .sf-events td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.sf-events th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #777; }
.sf-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sf-events-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; margin: 14px 0; }
.sf-events-pick label.off { opacity: .4; }
@media (max-width: 640px) { .sf-form .field-row { grid-template-columns: 1fr; } }

/* ---------- original-style page banner (volunteer-hero look) for pages the original site didn't have ---------- */
.volunteer-hero.page-banner { padding: clamp(48px, 6vw, 84px) 0; }
.volunteer-hero .lead + .btn-row, .volunteer-hero .lead + .lead { margin-top: 20px; }
.hoplite-banner { background-image: url('site/images/program-hoplites.jpg'); }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f1f1f1; color: var(--dark); }

/* ---------- programs: links under the original texts + live prices & class times ---------- */
.program-card h2 a:hover, .program-card h2 a:focus-visible { text-decoration: underline; }
.program-details .section-title { margin-bottom: 18px; }
.program-details .details-lead { text-align: center; font-size: 17px; line-height: 1.7; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.program-info { border-top: 5px solid var(--accent, var(--orange)); scroll-margin-top: calc(var(--header-h) + 16px); }
.program-info h3 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 8px; color: var(--grey-dark); }
.program-info .free-note { color: var(--orange); font-weight: 600; }
.program-info .mini-btns { margin-top: 18px; }
.when { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 4px; }
.price-list { list-style: none; padding: 0 !important; margin: 0 0 18px !important; display: grid; gap: 8px; }
.price-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 !important; }
.price-list .price { font-size: 22px; font-weight: 700; color: var(--orange); min-width: 92px; }
.price-list small { flex-basis: 100%; color: var(--grey-dark); }
.capacity { font-weight: 600; color: #2b8a3e; }
.capacity.full { color: #c92a2a; }

/* ---------- schedule: live calendar heading ---------- */
.schedule-wrap .upcoming-head h2 { font-size: clamp(36px, 5vw, 56px); }
.schedule-wrap .terms { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 12px 0 0; font-size: 15px; }
.schedule-wrap .terms b { font-weight: 600; }
.cal-note { max-width: 420px; margin: 0; font-size: 15px; color: var(--grey-dark); }

/* Program picture uploaded in the portal (Programs & pricing) */
.program-info { --pad: clamp(28px, 4vw, 44px); }
.program-info .program-photo { display:block; width:calc(100% + 2 * var(--pad)); max-width:none; margin:calc(-1 * var(--pad)) calc(-1 * var(--pad)) 16px; aspect-ratio:4/3; object-fit:cover; object-position:center 18%; border-radius:0; }


/* Phones: no pinch or double-tap zoom (zooming made the fixed bottom menu float up the page) */
html { touch-action: pan-x pan-y; }


/* Schedule: price under each class (Programs & pricing → "Under each class name") */
.chip-price { flex-basis: 100%; font-size: 11px; font-weight: 600; color: #555; }
.chip.cancelled .chip-price { display: none; }


/* Price tiers limited to a group (Students, Seniors…) */
.price-list .rate-for { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e8f0fb; color: #1f4f8f; font-size: 12px; font-weight: 600; letter-spacing: .02em; }


/* Price tier link (e.g. funding / coverage application) */
.price-list .tier-link { display: inline-block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--orange); text-decoration: underline; word-break: break-word; }
.tier-link-row { display: block; margin-top: 4px; }
.tier-link-row a { color: var(--orange); font-weight: 600; text-decoration: underline; }

