/* events page: the weekly rounds as a short ruled strip on white under the title band, then the
   annual events as stacked paper cards over the grey texture, each with a photo and a small
   calendar page. The timeline styles further down are kept for the About page's milestones */

/* weekly: a short strip, not a feature. Tags and Doubles as two quiet rows under a small
   heading, ruled like a list, so the annual events below carry the page */
.ev-weekly{padding:2.8rem 0 3.2rem;background:#fff}
.ev-weekly :focus-visible{outline-color:var(--sign)}
.home .ev-weekly h2{font:700 max(2rem,18px)/1.2 var(--display);color:var(--head)}
.ev-wk{list-style:none;margin:1.2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 4rem;max-width:96rem}
.ev-wk-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;align-content:start;gap:.4rem 1.2rem;padding:1.2rem 0 1.4rem;border-top:.1rem solid rgba(89,68,56,.18);color:var(--ink)}
.home .ev-wk-card h3{font:700 max(1.8rem,16px)/1.2 var(--display);color:var(--sign)}
.ev-wk-card .ev-when{margin:0}
.ev-wk-card .ev-note{grid-column:1/-1;margin:0;padding:0;font-size:var(--small);line-height:1.5;color:var(--muted)}
.ev-wk-card .tba{margin:0;padding:0 .8rem;font-size:max(1.4rem,14px)}
.ev-wk-card a{color:var(--bark);font-weight:700}
.ev-wk-card a:hover{color:var(--ink)}

/* annual: one paper card per event, stacked in calendar order. A photo on the left (a drawn
   placeholder until the club has pictures), then a small calendar page beside the details: the
   month alone in the middle of the page, or, once the Events list gives an event a date still to come, the month on the red band and the day under it */
.ev-cards{list-style:none;margin:3.6rem 0 0;padding:0;display:grid;gap:2rem;max-width:96rem}
.ev-card{display:grid;grid-template-columns:minmax(0,24rem) minmax(0,1fr);overflow:hidden;background:#fbf7ee;border-radius:.4rem;box-shadow:0 .2rem .4rem rgba(40,22,8,.1),0 1rem 2rem -1.2rem rgba(40,22,8,.35);color:var(--ink)}
.ev-pic{position:relative;min-height:15rem;background:#e4dcc6}
.ev-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ev-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2.4rem;align-items:start;padding:2.6rem 2.8rem 2.8rem}
.ev-cal{width:6.4rem;margin:0;overflow:hidden;background:#fff;border:.1rem solid rgba(89,68,56,.2);border-radius:.6rem;box-shadow:0 .1rem .2rem rgba(40,22,8,.12),0 .5rem 1rem -.5rem rgba(40,22,8,.35);text-align:center}
.cal-m{display:block;padding:.5rem 0 .4rem;background:#b8432f;font:800 max(1.2rem,12px)/1.3 var(--text);letter-spacing:.1em;text-transform:uppercase;color:#fff}
.cal-d{display:block;padding:.7rem 0 .8rem;font:700 3.2rem/1 var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.ev-cal.mo .cal-m{height:1.2rem;padding:0}
.ev-cal.mo .cal-d{display:flex;align-items:center;justify-content:center;height:5.4rem;padding:0;font:800 max(1.8rem,16px)/1 var(--text);letter-spacing:.06em;text-transform:uppercase;color:var(--sign)}
.home .ev-what h3{font:700 clamp(2.2rem,2vw,2.8rem)/1.15 var(--display);letter-spacing:-.01em;color:var(--sign);text-wrap:balance}
.ev-what .ev-note{margin:.8rem 0 0;padding:0;max-width:60ch;color:var(--muted);line-height:1.5}
.ev-what .ev-when{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.4rem 0 0}
.ev-what .ev-when:empty{display:none}
.ev-what .tba{margin:0;padding:.3rem 1rem;font-size:max(1.5rem,15px)}
.ev-what a{color:var(--bark);font-weight:700}
.ev-what a:hover{color:var(--ink)}
.ev-card.next{box-shadow:0 0 0 .2rem var(--bark),0 1rem 2rem -1.2rem rgba(40,22,8,.35)}

/* about page milestones: the year as a timeline, Jan 1 at the top and Dec 31 at the foot. A rail runs down the
   left with every month on it; a month with events carries a pin and its events as paper rows */
.ev-annual{padding:6.4rem 0 8rem}
.ev-tl{--rail:11.2rem;position:relative;list-style:none;margin:3.6rem 0 0;padding:0;max-width:96rem}
.ev-tl::before{content:"";position:absolute;top:1.2rem;bottom:1.2rem;left:calc(var(--rail) - .1rem);width:.3rem;border-radius:.3rem;background:rgba(89,68,56,.28)}
.tl-m,.tl-cap{position:relative;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);align-items:start}
.tl-m::before,.tl-cap::before{content:"";position:absolute;left:var(--rail);top:1.1rem;width:.9rem;height:.9rem;margin-left:-.45rem;border-radius:50%;background:#f0f0f0;border:.2rem solid rgba(89,68,56,.4);box-sizing:border-box}
.tl-mon{grid-column:1;padding:.4rem 2.4rem 0 0;text-align:right;font:700 var(--small)/1.6 var(--text);letter-spacing:.06em;text-transform:uppercase;color:#6b5e53}
.tl-m{min-height:3.2rem}
.tl-cap .tl-mon{color:var(--head);white-space:nowrap;direction:rtl}
.tl-cap::before{width:1.4rem;height:1.4rem;margin-left:-.7rem;top:.85rem;background:var(--bark);border:0}
.tl-cap:first-child{margin-bottom:1.2rem}
.tl-cap.end{margin-top:1.2rem}
.tl-m.on{margin:1.2rem 0 2rem}
.tl-m.on::before{--pin:#b8432f;width:1.6rem;height:1.6rem;margin-left:-.8rem;top:1.9rem;background:var(--pin);border:0;box-shadow:0 .2rem 0 rgba(40,22,8,.3)}
.tl-m.on .tl-mon{padding-top:1.4rem;font:700 max(1.8rem,16px)/1.4 var(--display);letter-spacing:.04em;color:var(--sign)}
.tl-evs{grid-column:2;display:grid;gap:1.4rem;padding-left:3.2rem}
.tl-ev{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem 2.4rem;align-items:start;padding:2rem 2.4rem 2.2rem;background:#fbf7ee;border-radius:.3rem;box-shadow:0 .2rem .4rem rgba(40,22,8,.1),0 1rem 2rem -1.2rem rgba(40,22,8,.35);color:var(--ink)}
.home .tl-ev h3{font:700 clamp(2.2rem,2vw,2.8rem)/1.15 var(--display);letter-spacing:-.01em;color:var(--sign)}
.tl-ev .ev-note{margin:.8rem 0 0;padding:0;max-width:60ch;color:var(--muted);line-height:1.5}
.tl-ev .ev-when{margin:.2rem 0 0}
.tl-ev .tba{margin:0;padding:.3rem 1rem;font-size:max(1.5rem,15px)}
.tl-ev a{color:var(--bark);font-weight:700}
.tl-ev a:hover{color:var(--ink)}
.tl-ev .ev-when{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.8rem}
.tl-ev .ev-when:empty{display:none}
/* where the year stands: the current month on the rail, and the next event to come */
.tl-now{display:block;margin-top:.2rem;font:800 max(1.2rem,12px)/1.4 var(--text);letter-spacing:.08em;text-transform:uppercase;color:#8a3324}
.tl-m.now:not(.on)::before{background:#8a3324;border-color:#8a3324}
.tl-m.now:not(.on) .tl-mon{color:var(--sign)}
.tl-ev.next{box-shadow:0 0 0 .2rem var(--bark),0 1rem 2rem -1.2rem rgba(40,22,8,.35)}
.tl-next{display:inline-block;padding:.3rem 1rem;border:.15rem solid var(--gold);border-radius:.4rem;background:var(--gold);font:700 max(1.5rem,15px)/1.5 var(--text);color:var(--sign);white-space:nowrap}
.ev-more{margin-top:4rem;max-width:60ch}

/* date tags: dashed while a date is still to come, outlined for a general date, filled once the
   Events list gives an exact date, muted once that date has passed */
.tba{display:inline-block;margin-right:.6rem;padding:.1rem .8rem;border:.15rem dashed #8a7a6a;border-radius:.4rem;font:700 var(--small)/1.5 var(--text);color:var(--muted);white-space:nowrap}
.tba.gen{border-style:solid;border-color:rgba(89,68,56,.45);color:var(--head)}
.tba.held{border-style:solid;border-color:rgba(89,68,56,.3);color:var(--muted)}
.tba.set{border-style:solid;border-color:var(--bark);background:var(--bark);color:var(--gold)}

/* calendar, first under the title band: a "Next up" line beside the heading, then three compact months side by
   side (on phones only the first keeps its grid; later months are just their lists). Club events fill their day in
   the calendar-page red, work days get a dotted outline, and the weekly rounds are small dots under their days
   (Tags green, Doubles bark), explained in words by the fine print. Filled in by js/calendar.js */
.ev-calsec{padding:2.4rem 0 2rem;background:#fff}
.ev-calsec :focus-visible{outline-color:var(--sign)}
.cal{--red:#b8432f;--dbl:var(--bark);--tag:#1d7a35;max-width:var(--col)}
.cal-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.6rem 2.4rem}
.home .cal-head h2{margin:0;font:700 max(2rem,18px)/1.2 var(--display);color:var(--head)}
.cal-next{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 2rem;margin:0;font-size:var(--small);line-height:1.4;color:var(--ink)}
.cal-next:empty{display:none}
.cal-next-h{font:800 max(1.1rem,11px)/1.4 var(--text);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cal-next-i{display:inline-flex;align-items:baseline;gap:.6rem}
.cal-next-i b{font-weight:700;color:var(--sign)}
.cal-mark{flex:none;align-self:center;width:.9rem;height:.9rem;border-radius:.2rem}
.cal-next-i.ev .cal-mark{background:var(--red)}
.cal-next-i.wd .cal-mark{outline:.15rem dotted var(--red);outline-offset:-.15rem}
.cal-next-i.tag .cal-mark,.cal-next-i.dbl .cal-mark{width:.8rem;height:.8rem;border-radius:50%}
.cal-next-i.tag .cal-mark{background:var(--tag)}
.cal-next-i.dbl .cal-mark{background:var(--dbl)}
.cal-status{margin:1.2rem 0 0;font-size:var(--small);line-height:1.4;color:var(--muted)}
.cal-status[hidden]{display:none}
.cal-retry{margin:0;padding:.2rem .8rem;border:.15rem solid var(--bark);border-radius:.4rem;background:none;font:700 var(--small)/1.4 var(--text);color:var(--bark);cursor:pointer}
.cal-retry:hover{background:var(--bark);color:#fff}
.cal-dot{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;flex:none}
.cal-dot.dbl{background:var(--dbl)}
.cal-dot.tag{background:var(--tag)}
.cal-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1.6rem;margin-top:1.4rem}
.cal-mo{padding:1.4rem 1.6rem 1.6rem;background:#fbf7ee;border-radius:.4rem;box-shadow:0 .1rem .3rem rgba(40,22,8,.1),0 .8rem 1.6rem -1rem rgba(40,22,8,.3);color:var(--ink)}
.home .cal-mo h3{margin:0 0 .6rem;font:700 max(1.6rem,15px)/1.2 var(--display);color:var(--sign)}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.2rem;text-align:center}
.cal-dow{padding-bottom:.2rem;font:800 max(1rem,10px)/1.4 var(--text);letter-spacing:.08em;color:var(--muted)}
.cal-day{position:relative;display:flex;align-items:center;justify-content:center;height:3.2rem;border-radius:.4rem;font:500 max(1.3rem,12px)/1 var(--text);font-variant-numeric:tabular-nums;color:var(--ink)}
.cal-day b{font-weight:inherit;transform:translateY(-.15rem)}
.cal-dots{position:absolute;left:0;right:0;bottom:.35rem;display:flex;justify-content:center;gap:.2rem}
.cal-dots .cal-dot{display:block}
.cal-day.past{color:rgba(43,35,29,.35)}
.cal-day.past .cal-dot{opacity:.35}
.cal-day.today{background:rgba(232,196,64,.35);font-weight:800}
.cal-day.ev{background:var(--red);color:#fff;font-weight:800}
.cal-day.ev .cal-dot{background:#fff}
.cal-day.ev.past{background:rgba(184,67,47,.35)}
.cal-day.ev.today{box-shadow:inset 0 0 0 .2rem rgba(232,196,64,.9)}
.cal-day.wd{outline:.15rem dotted var(--red);outline-offset:-.3rem;color:var(--red);font-weight:800}
.cal-day.wd.past{outline-color:rgba(184,67,47,.35);color:rgba(184,67,47,.45)}
.cal-list{list-style:none;margin:1rem 0 0;padding:1rem 0 0;border-top:.1rem solid rgba(89,68,56,.18);display:grid;gap:.6rem}
.cal-list li{display:grid;grid-template-columns:3.6rem minmax(0,1fr);align-items:center;gap:1rem;font-size:var(--small);line-height:1.3}
.cal-when{display:flex;flex-direction:column;align-items:center;padding:.2rem 0;border-radius:.4rem;background:var(--red);color:#fff;font:800 max(.95rem,10px)/1.2 var(--text);letter-spacing:.06em;text-transform:uppercase}
.cal-when b{font:700 max(1.5rem,15px)/1.1 var(--display);letter-spacing:0}
.cal-ev.wd .cal-when{background:none;outline:.15rem dotted var(--red);outline-offset:-.15rem;color:var(--red)}
.cal-what{display:flex;flex-direction:column}
.cal-name{font-weight:700;color:var(--sign)}
.cal-time,.cal-also{color:var(--muted)}
.cal-none{margin:1rem 0 0;padding-top:1rem;border-top:.1rem solid rgba(89,68,56,.18);font-size:var(--small);color:var(--muted)}
.cal-fine{margin:1.4rem 0 0;max-width:80ch;font-size:var(--small);line-height:1.6;color:var(--muted)}
.cal-fine .cal-dot{width:.8rem;height:.8rem;margin-right:.2rem;vertical-align:.05em}
.cal-fine .cal-k{margin-right:1.6rem;font-weight:700;color:var(--ink);white-space:nowrap}
.cal-fine a{color:var(--sign);text-underline-offset:.2em}
@media (max-width:899px){
.cal-months{grid-template-columns:1fr;max-width:40rem}
.ev-calsec{padding:2rem 0 1.8rem}
.cal-head{flex-direction:column;align-items:flex-start}
.cal-next{flex-direction:column;gap:.2rem}
}
@media (max-width:699px){
.cal-months{gap:1rem}
.cal-day{height:3.4rem;font-size:max(1.4rem,14px)}
/* later months on phones: just the heading and the list, no grid */
.cal-mo + .cal-mo{padding:1.2rem 1.6rem 1.4rem}
.cal-mo + .cal-mo .cal-grid{display:none}
.home .cal-mo + .cal-mo h3{margin:0}
.cal-mo + .cal-mo .cal-list{margin-top:.6rem;padding-top:0;border-top:0}
.cal-mo + .cal-mo.quiet{display:none}
.cal.loading .cal-mo + .cal-mo,.cal.nodata .cal-mo + .cal-mo{display:none}
}

@media (max-width:899px){
.ev-weekly{padding:2.4rem 0 2.8rem}
.ev-annual{padding:4.8rem 0 6.4rem}
}
@media (max-width:699px){
.ev-tl{--rail:5.6rem}
.tl-mon{padding-right:1.6rem;font-size:max(1.2rem,12px);letter-spacing:.04em}
.tl-m.on .tl-mon{font-size:max(1.5rem,15px)}
.tl-evs{padding-left:2rem}
.tl-ev{grid-template-columns:1fr;padding:1.8rem 1.8rem 2rem}
.tl-ev .ev-when{order:-1;margin:0;justify-content:flex-start}
.tl-ev .ev-note{margin-top:.4rem}
.ev-wk{grid-template-columns:1fr;margin-top:.8rem}
.ev-cards{gap:1.6rem;margin-top:2.4rem}
.ev-card{grid-template-columns:1fr}
.ev-pic{min-height:0;aspect-ratio:2/1}
.ev-body{gap:1.6rem;padding:1.8rem 1.8rem 2rem}
.ev-cal{width:5.6rem}
.cal-d{font-size:2.8rem}
.ev-cal.mo .cal-d{height:4.8rem}
}
/* weekly event icons: a column on the left of each card, beside the name, time and note */
.ev-wk-card{grid-template-columns:auto auto minmax(0,1fr)}
.ev-wk-card .ev-ico{grid-column:1;grid-row:1/span 2;align-self:start;width:5.2rem;height:5.2rem;margin-right:.4rem}
.ev-wk-card h3{grid-column:2}
.ev-wk-card .ev-when{grid-column:3;justify-self:start}
.ev-wk-card .ev-note{grid-column:2/-1}
.ev-ico-tags rect{stroke:rgba(60,40,30,.6);stroke-width:2}
.ev-ico-dubs{fill:none;stroke:var(--sign);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}