/*
 * LCLC Core components: finder, countdown, next-up band, early-bird banner,
 * phone Register bar, announcement bar, staff cards, buttons.
 * Colors and type come from the lclc-child theme's tokens (tokens.css); the
 * values after each comma are fallbacks so a component never renders bare.
 */

.lclc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--lclc-body, "Figtree", system-ui, sans-serif); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.lclc-btn-sm { padding: 12px 18px; font-size: .95rem; }
.lclc-btn-lake { background: var(--lclc-lake, #355EAB); color: #fff; }
.lclc-btn-lake:hover, .lclc-btn-lake:focus-visible { background: var(--lclc-lake-deep, #1F3D78); color: #fff; }
.lclc-btn-hill { background: var(--lclc-hill, #85BF62); color: var(--lclc-ink, #121C2F); }
.lclc-btn-hill:hover, .lclc-btn-hill:focus-visible { background: #9ACB7D; color: var(--lclc-ink, #121C2F); }
.lclc-btn-line { background: transparent; color: var(--lclc-lake-deep, #1F3D78); border-color: var(--lclc-lake, #355EAB); }
.lclc-btn-line:hover { background: var(--lclc-lake, #355EAB); color: #fff; }
.lclc-btn-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.lclc-btn-white:hover { background: #fff; color: var(--lclc-ink, #121C2F); }
.lclc-btn[aria-disabled="true"] { background: var(--lclc-mist, #F3F6FB); color: var(--lclc-ink-soft, #4B5770); border-color: var(--lclc-line, #DCE4F1); cursor: default; }
.lclc-label { font-weight: 600; }

/* Find your camper's week */
.lclc-finder { --gap: 16px; }
.lclc-picker { display: grid; gap: 12px; }
.lclc-picker-label { font-weight: 700; color: var(--lclc-ink, #121C2F); }
.lclc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lclc-chip { font-family: var(--lclc-body, "Figtree", system-ui, sans-serif); font-weight: 700; font-size: 1rem; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--lclc-line, #DCE4F1); background: #fff; color: var(--lclc-lake-deep, #1F3D78); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
/* BB Theme paints every button blue on hover and focus; the chips keep their own states. */
.lclc-chip:hover, .lclc-chip:focus, .lclc-chip:active { background: #fff; color: var(--lclc-lake-deep, #1F3D78); border-color: var(--lclc-lake, #355EAB); box-shadow: none; text-shadow: none; }
.lclc-chip[aria-pressed="true"], .lclc-chip[aria-pressed="true"]:hover, .lclc-chip[aria-pressed="true"]:focus { background: var(--lclc-lake, #355EAB); border-color: var(--lclc-lake, #355EAB); color: #fff; }
.lclc-chip:focus-visible { outline: 3px solid var(--lclc-lake, #355EAB); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.lclc-result { margin: 28px 0 0; font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 700; font-size: 1.35rem; color: var(--lclc-lake-deep, #1F3D78); min-height: 1.6em; }
.lclc-weeks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.lclc-wk { background: #fff; border: 2px solid var(--lclc-line, #DCE4F1); border-radius: 14px; padding: 12px 10px 14px; display: grid; gap: 6px; align-content: start; transition: border-color .2s ease, background-color .2s ease, opacity .2s ease; }
.lclc-wk-n { font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 700; font-size: 1.05rem; color: var(--lclc-lake-deep, #1F3D78); }
.lclc-wk-d { font-size: .82rem; color: var(--lclc-ink-soft, #4B5770); line-height: 1.3; }
.lclc-wk-p { font-size: .8rem; font-weight: 600; color: var(--lclc-ink, #121C2F); line-height: 1.35; }
.lclc-weeks.filtering .lclc-wk { opacity: .45; }
.lclc-weeks.filtering .lclc-wk.on { opacity: 1; border-color: var(--lclc-lake, #355EAB); background: #EAF0FA; }
.lclc-programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 28px; }
.lclc-prog { background: #fff; border-radius: var(--lclc-radius, 18px); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--lclc-shadow, 0 1px 2px rgba(18,28,47,.06), 0 8px 24px rgba(18,28,47,.08)); }
.lclc-prog[hidden] { display: none !important; }
.lclc-prog-img { position: relative; aspect-ratio: 4 / 3; background: var(--lclc-mist, #F3F6FB); }
.lclc-prog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lclc-badge { position: absolute; left: 12px; top: 12px; background: var(--lclc-hill, #85BF62); color: var(--lclc-ink, #121C2F); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 4px 10px; }
.lclc-prog-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lclc-prog-body h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.lclc-prog-body p { margin: 0; }
.lclc-prog-grades { font-size: .9rem; font-weight: 600; color: var(--lclc-lake, #355EAB); }
.lclc-prog-dates { font-size: .9rem; color: var(--lclc-ink-soft, #4B5770); line-height: 1.4; }
.lclc-prog-price { font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 800; font-size: 1.5rem; color: var(--lclc-ink, #121C2F); margin-top: 4px !important; }
.lclc-prog-price.soft { font-size: 1.05rem; font-weight: 700; color: var(--lclc-ink-soft, #4B5770); }
.lclc-prog-foot { margin-top: auto; padding-top: 14px; }
.lclc-prog-foot .lclc-btn { width: 100%; }
.lclc-finder-note { margin-top: 28px; font-size: .95rem; color: var(--lclc-ink-soft, #4B5770); max-width: 78ch; }
@media (max-width: 900px) { .lclc-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lclc-weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lclc-programs { grid-template-columns: 1fr; } .lclc-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Countdown */
.lclc-count { color: #fff; background: rgba(9,18,38,.55); border: 1px solid rgba(255,255,255,.3); border-radius: var(--lclc-radius, 18px); padding: 22px 22px 20px; max-width: 280px; }
.lclc-count-num { font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 800; font-size: 4rem; line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lclc-count-unit { font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 700; font-size: 1.15rem; margin-top: 6px; }
.lclc-count-note { margin: 8px 0 0; font-size: .95rem; color: var(--lclc-sky, #BECEEA); }
.lclc-count[hidden] { display: none; }

/* Next-up band (sits on a dark row) */
.lclc-next { color: #fff; }
.lclc-next[hidden], .lclc-next-item[hidden] { display: none; }
.lclc-next-when { margin: 0 0 6px; font-weight: 700; color: var(--lclc-hill, #85BF62); display: flex; flex-wrap: wrap; gap: 0 .6em; }
.lclc-next-in { color: var(--lclc-sky, #BECEEA); font-weight: 600; }
.lclc-next-in:empty { display: none; }
.lclc-next-title { margin: 0; color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.05; }
.lclc-next-summary { margin: 10px 0 0; color: var(--lclc-sky, #BECEEA); max-width: 60ch; }
.lclc-next-actions { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Early-bird banner */
.lclc-early { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: #EAF0FA; border: 2px solid var(--lclc-lake, #355EAB); border-radius: var(--lclc-radius, 18px); padding: 18px 22px; }
.lclc-early p { margin: 0; font-weight: 600; color: var(--lclc-ink, #121C2F); max-width: 62ch; }
.lclc-early[hidden] { display: none; }

/* Announcement bar */
.lclc-announce { background: var(--lclc-night, #0E1A33); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .95rem; }
.lclc-announce p { margin: 0; }
.lclc-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lclc-announce[hidden] { display: none; }

/* Phone Register bar */
.lclc-regbar { display: none; }
@media (max-width: 767px) {
  .lclc-regbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--lclc-line, #DCE4F1); box-shadow: 0 -6px 20px rgba(18,28,47,.08); }
  .lclc-regbar .lclc-btn { flex: 1; min-height: 48px; }
  .lclc-regbar .lclc-btn-line { flex: 0 0 auto; }
  body.lclc-page-summer-camp, body.lclc-page-family-camp, body.lclc-page-winter-retreats { padding-bottom: 76px; }
  body:has(input:focus, textarea:focus, select:focus) .lclc-regbar { display: none; }
}

/* Staff cards */
.lclc-staff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lclc-staff-card { background: #fff; border: 1px solid var(--lclc-line, #DCE4F1); border-radius: var(--lclc-radius, 18px); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.lclc-staff-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.lclc-staff-card p { margin: 0; }
.lclc-staff-name { font-family: var(--lclc-display, "Bricolage Grotesque", system-ui, sans-serif); font-weight: 700; font-size: 1.1rem; color: var(--lclc-ink, #121C2F); }
.lclc-staff-role { color: var(--lclc-ink-soft, #4B5770); font-size: .95rem; }
.lclc-staff-email { font-size: .95rem; margin-top: 4px !important; }

@media (prefers-reduced-motion: reduce) {
  .lclc-btn, .lclc-chip, .lclc-wk { transition: none; }
}
