/* Inside pages (Tags, Standings, Lost & Found, Contact, news posts), in the home page's look:
   the header's brown runs on into a title band, then plain reading sections on white or the
   grey paper texture, then the same brown "Find us" footer. Colours, type and buttons come
   from home.css; every rule here sits under .home so the older page styles in site.css lose. */

/* title band */
body.home:has(.p-top) .hdr-b{display:none}
.p-top{background:var(--bark) repeating-linear-gradient(90deg,rgba(0,0,0,.045) 0 .2rem,transparent .2rem .9rem);color:var(--wood);padding:3.2rem 0 5.6rem}
.home .p-top h1{font-size:clamp(3.4rem,4vw,5.2rem);line-height:1;letter-spacing:-.02em;color:var(--gold);text-shadow:0 .2rem 0 rgba(0,0,0,.3)}
.p-lede{margin-top:1.6rem;max-width:62ch;font-size:max(1.9rem,17px);color:#eee3d3}
.p-lede+.p-lede{margin-top:1.2rem}
.p-lede a{color:var(--gold);font-weight:700}
.p-lede b{color:#fff;font-weight:700}
.p-top .h-cta{margin-top:2.8rem}

/* the live next-round notice, pinned up in the title band: the home board's calendar card and
   stamp, on the band's brown instead of cork */
.nr{--paper:#fbf7ee;--pin:#b8432f;margin-top:2.4rem}
/* each round on its own pinned card; inside, a rule sets the date apart from the event */
.nr-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:1.6rem 2rem;max-width:100%}
.nr-rd{position:relative;display:flex;align-items:center;gap:1.8rem;min-width:30rem;padding:1rem 2.6rem 1rem 2rem;color:var(--ink);background:var(--paper);border-radius:.3rem;box-shadow:0 .2rem .6rem rgba(0,0,0,.35)}
.nr-rd::before{content:"";position:absolute;top:-.4rem;left:50%;width:.9rem;height:.9rem;margin-left:-.45rem;border-radius:50%;background:var(--pin);box-shadow:0 .15rem 0 rgba(40,22,8,.35)}
.nr-rd .day{flex:none;width:4.8rem;padding:.2rem 0;background:none;border-radius:0;box-shadow:none}
.nr-card{flex:1;display:flex;align-items:center;justify-content:space-between;gap:1.4rem;align-self:stretch;padding-left:1.8rem;border-left:.2rem solid rgba(89,68,56,.28)}
.nr-what{display:grid;font-size:var(--small);line-height:1.3;color:var(--muted)}
.nr-what b{font:700 max(1.6rem,16px)/1.2 var(--display);color:var(--ink)}
.nr-rd.is-off .day b{color:#6f6052}
.nr-rd.is-off s{text-decoration-thickness:.12rem}

/* reading sections */
.p-sec{padding:6.4rem 0;background-color:#fff}
.p-sec.txh{background-color:#f0f0f0}
.p-sec :focus-visible{outline-color:var(--sign)}
.home .p-sec h2{font-size:3.4rem;line-height:1.1}
.p-sec a{color:var(--bark);font-weight:700}
.p-sec a:hover{color:var(--ink)}
/* a section's heading sits in a left column, its content in the reading column beside it */
.p-row{display:grid;grid-template-columns:26rem minmax(0,1fr);gap:4.8rem;align-items:start}
.p-text{max-width:68ch}
.p-text p+p{margin-top:1.2em}
.p-list{margin:0;padding-left:1.2em;max-width:68ch}
.p-list li+li{margin-top:.9em}
.p-list li::marker{color:var(--bark)}
.p-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 5.6rem;max-width:none}
.p-cols>.p-list{max-width:none}
ul.p-cols{gap:.9em 5.6rem;padding-left:1.2em}
ul.p-cols li+li{margin-top:0}

/* tags: the rules, one ruled row per term */
.defs{margin:3.2rem 0 0;max-width:72ch}
.defs>div{display:grid;grid-template-columns:16rem minmax(0,1fr);gap:2.4rem;padding:1.6rem 0;border-top:.15rem solid rgba(89,68,56,.18)}
.defs>div:first-child{padding-top:0;border-top:0}
.defs dt{font:700 max(1.7rem,16px)/1.4 var(--display);color:var(--head)}
.defs dd{margin:0}

/* tags: a newcomer's first round, four numbered steps */
.fsteps{counter-reset:st;list-style:none;margin:0;padding:0;display:grid;gap:2.8rem;max-width:68ch}
.fsteps li{counter-increment:st;position:relative;padding-left:6rem}
.fsteps li::before{content:counter(st);position:absolute;left:0;top:0;display:grid;place-items:center;width:4.4rem;height:4.4rem;border-radius:50%;background:var(--bark);color:var(--gold);font:700 2rem/1 var(--display)}
.fsteps b{display:block;margin:.9rem 0 .4rem;font:700 max(1.8rem,16px)/1.3 var(--display);color:var(--head)}
.p-text+.nr{margin-top:2.4rem}

/* lost and found: three numbered steps, each a photo and one line */
.flow{counter-reset:f;list-style:none;margin:2.8rem 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3.2rem}
.flow li{counter-increment:f}
.flow img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:1rem;box-shadow:0 1rem 2.2rem -1rem rgba(40,30,20,.45)}
.flow p{display:grid;grid-template-columns:4.4rem minmax(0,1fr);gap:1.4rem;align-items:center;margin-top:2rem;font:700 max(1.8rem,16px)/1.3 var(--display);color:var(--head)}
.flow p::before{content:counter(f);display:grid;place-items:center;width:4.4rem;height:4.4rem;border-radius:50%;background:var(--bark);color:var(--gold);font:700 2rem/1 var(--display)}
/* the circle keeps to the top of its row, so all three line up however many lines the text runs to */
.flow p::before{align-self:start}
.flow+.p-cols{margin-top:4.8rem;padding-top:4rem;border-top:.15rem solid rgba(89,68,56,.18)}
/* lost and found: mark your disc, two do/don't photo pairs (bottom, rim) on paper cards */
.mk{display:grid;grid-template-columns:1fr 1fr;gap:3.2rem;margin:2.8rem 0 4rem}
.mk-pair{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;padding:1.2rem;background:#fbf7ee;border-radius:1.2rem;box-shadow:0 1rem 2.2rem -1rem rgba(40,30,20,.45)}
.mk-ph{position:relative}
.mk-ph img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:.8rem}
.mk-ph.is-ok img{outline:.4rem solid #2f7d3a;outline-offset:-.4rem}
.mk-ph.is-no img{filter:saturate(.75) brightness(.92)}
.mk-b{position:absolute;top:1rem;left:1rem;display:grid;place-items:center;width:4.4rem;height:4.4rem;border-radius:50%;color:#fff;box-shadow:0 .2rem .6rem rgba(0,0,0,.35)}
.mk-b svg{width:2.6rem;height:2.6rem}
.is-ok .mk-b{background:#2f7d3a}
.is-no .mk-b{background:#b8432f}

/* standings: the table runs down the page at its full length; its header row stays in view */
.home .board{position:static;width:auto;height:auto;overflow:visible;font-family:var(--text);font-size:max(1.6rem,16px)}
/* the number columns never shrink below their text; a table is never narrower than --st-min
   (those columns plus 11rem, about 14 letters, for a name), and standings.js puts as many tables
   side by side as fit at that width. A longer name wraps to a second line instead of being cut off */
.home .table-container{padding:0;gap:3.2rem;--st-tag:max(6rem,58px);--st-rnd:max(6rem,56px);--st-avg:max(5.4rem,54px);--st-min:calc(var(--st-tag) + var(--st-rnd) + var(--st-avg) + max(11rem,110px) + 1.2rem)}
.home .table-container>p{grid-column:1/-1;font-weight:700}
.home .row-layout{height:auto;min-height:4rem;grid-template-columns:var(--st-tag) var(--st-rnd) minmax(0,1fr) var(--st-avg);padding:0 .6rem}
.home .entry-row .player-col{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;padding:.6rem .8rem .6rem 0;line-height:1.3}
.home .header-row{background:#fff;color:var(--head);border-bottom:.2rem solid var(--bark);font-family:var(--display)}
.home .header-row button{min-height:4.4rem}
.home .header-row button:hover{color:var(--ink)}
.home .header-row button:focus-visible{outline:.3rem solid var(--sign)}
.home .entry-row{border-bottom:.1rem solid rgba(89,68,56,.12)}
.home .entry-row:nth-child(even){background:#f7f4ee}
.home .entry-row:hover{background:var(--wood)}
.home .player-col{color:var(--ink)}
.home .rounds-col,.home .avg-col{color:var(--muted)}
/* standings: when the table was last updated, right above it, under the search */
.home .upd{position:static;margin:0 0 1.2rem;padding:0;font:400 var(--small)/1.4 var(--text);color:var(--muted)}
.home .p-top .join{position:static;font:inherit;font-size:max(1.9rem,17px);padding:0}
.home .p-top .join a{color:var(--gold)}

/* standings: the search box and the key, side by side above the table */
.st-tools{display:grid;grid-template-columns:minmax(0,36rem) minmax(0,1fr);gap:1.2rem 5.6rem;align-items:start;margin-bottom:4rem}
.st-find label{display:block;margin-bottom:.6rem;font:700 max(1.7rem,16px)/1.3 var(--display);color:var(--head)}
.st-find input{width:100%;min-height:4.8rem;padding:1rem 1.4rem;border:.15rem solid #8a7a6a;border-radius:.6rem;background:#fff;font:400 max(1.7rem,16px)/1.4 var(--text);color:var(--ink);caret-color:var(--bark)}
.st-find input::placeholder{color:#6f6052}
.st-find input:focus-visible{outline:.3rem solid var(--sign);outline-offset:.1rem;border-color:var(--sign)}
.st-find input:disabled{background:#f7f4ee}
.st-count{min-height:1.4em;margin-top:.6rem;font:700 var(--small)/1.4 var(--text);color:var(--muted)}
.st-key{margin:0;display:grid;gap:.8rem;font-size:var(--small);line-height:1.45;color:var(--muted)}
.st-key div{display:grid;grid-template-columns:9.6rem minmax(0,1fr);gap:1.2rem}
.st-key dt{font-weight:700;color:var(--head)}
.st-key dd{margin:0}
.home .table-container.one{grid-template-columns:minmax(0,52rem)}

/* contact: the form, in the reading column */
.p-form{max-width:60rem}
.home .fg{column-gap:2rem}
.home .f label{margin:0 0 .6rem;font:700 var(--small)/1.4 var(--text);color:var(--head)}
.home .f{margin-bottom:2rem}
.home .f input,.home .f textarea,.home .f select{height:auto;min-height:4.8rem;padding:1rem 1.4rem;border:.15rem solid #8a7a6a;border-radius:.6rem;font:400 max(1.7rem,16px)/1.4 var(--text);color:var(--ink);caret-color:var(--bark)}
.home .f textarea{min-height:14rem}
.home .f input:focus-visible,.home .f textarea:focus-visible,.home .f select:focus-visible{outline:.3rem solid var(--sign);outline-offset:.1rem;border-color:var(--sign)}
.home .f [aria-invalid=true]{border-color:var(--off)}
.home .f .err,.home .form-error{margin-top:.6rem;font:700 var(--small)/1.4 var(--text);color:var(--off)}
.home .form-error a{color:var(--off)}
.home .sub{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:4.8rem;margin:.8rem 0 0;padding:0 2.8rem;border-radius:99rem;background:var(--bark);color:var(--gold);font:700 max(1.8rem,16px)/1 var(--display);transition:filter .2s}
.home .sub:hover{filter:brightness(1.08)}
.home .hint,.home .thanks{position:static;font:400 var(--body)/1.55 var(--text);color:var(--ink);padding:0}
.home .thanks{font-weight:700}

/* news post: title and date in the band, then the cover and the body in a reading column */
.home .h-post{padding:5.6rem 0 6.4rem}
.h-post .h-wrap>*{max-width:76rem}
.home .h-post .cover{margin:0;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:1rem;box-shadow:0 1rem 2.2rem -1rem rgba(40,30,20,.45)}
.home .h-post .cover+.body{margin-top:3.2rem}
.home .h-post .body{margin-top:0}

/* the announcement strip: the home page pins announcements on its board, so the strip is for
   every other page. It shows only once there is an announcement to show */
body.home:has(.p-top) .top.on{display:flex;min-height:0;padding:1rem 2rem;background:var(--gold);color:var(--sign);font:700 max(1.6rem,16px)/1.35 var(--display)}
body.home:has(.p-top) .top.on .al{color:inherit}

@media (min-width:900px){
.home .sub{min-height:clamp(44px,3.6rem,54px);font-size:clamp(16px,1.4rem,19px)}
.p-lede{font-size:clamp(18px,1.5rem,22px)}
.home .p-top .join{font-size:clamp(18px,1.5rem,22px)}
.p-top{padding-top:3.6rem}
}
@media (max-width:899px){
.p-top{padding:2.4rem 0 4rem}
.home .p-top h1{font-size:3.2rem;line-height:1.05}
.p-sec{padding:4.8rem 0}
.home .p-sec h2{font-size:2.8rem}
.p-row{grid-template-columns:1fr;gap:2rem}
.flow{gap:2rem}
.home .table-container{gap:2rem}
}
@media (max-width:699px){
.st-tools{grid-template-columns:1fr}
.flow{grid-template-columns:1fr;gap:3.2rem}
.flow li{max-width:44rem}
.p-cols,.mk{grid-template-columns:1fr}
.p-cols>.p-list+.p-list{margin-top:.9em}
.mk{gap:2rem}
.mk-pair{gap:.8rem;padding:.8rem}
.mk-b{top:.6rem;left:.6rem;width:3.6rem;height:3.6rem}
.mk-b svg{width:2.2rem;height:2.2rem}
.defs>div{grid-template-columns:1fr;gap:.4rem}
.home .fg{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.home .sub{transition:none}}
.st-keyd summary{display:none}
.table-container[aria-busy="true"]{min-height:70vh}
.p-text p,.p-text li{max-width:68ch}
@media (max-width:699px){
.st-keyd summary{display:flex;align-items:center;gap:.8rem;min-height:4.4rem;font:700 max(1.6rem,16px)/1.3 var(--text);color:var(--bark);cursor:pointer;list-style:none;text-decoration:underline;text-decoration-thickness:.1rem;text-underline-offset:.3rem}
.st-keyd summary::-webkit-details-marker{display:none}
.st-keyd summary::after{content:"";width:.9rem;height:.9rem;border-right:.22rem solid currentColor;border-bottom:.22rem solid currentColor;transform:rotate(45deg) translateY(-.3rem);transition:transform .2s}
.st-keyd[open] summary::after{transform:rotate(-135deg) translateY(-.3rem)}
.st-keyd summary:focus-visible{outline:.3rem solid var(--sign);outline-offset:.2rem;border-radius:.4rem}
.st-keyd[open] .st-key{margin-top:.8rem}
.st-tools{gap:0;margin-bottom:1.6rem}
.st-count:empty{min-height:0;margin:0}
.st-keyd{margin-top:.8rem}
.nr-rd{min-width:26rem;padding:.9rem 1.8rem .9rem 1.4rem;gap:1.2rem}
.nr-rd .day{width:4.2rem}
.nr-card{gap:.8rem;padding-left:1.2rem}
}
@media (max-width:419px){
.nr-list{display:grid;width:100%;max-width:36rem}
.nr-rd{min-width:0}
}
.btn .ext-i{width:.85em;height:.85em;margin-left:.5em;flex:none}
.c-tips{margin:2rem 0 0;padding-left:1.2em;display:grid;gap:.4rem;max-width:60ch;font-size:var(--small);line-height:1.5}
.st-res{display:flex;flex-wrap:wrap;align-items:center;gap:0 1.6rem;margin-top:.4rem}
.st-res .st-count{min-height:0;margin:0}
.st-all{min-height:4.4rem;padding:0;border:0;background:none;font:700 max(1.6rem,16px)/1.3 var(--text);color:var(--bark);text-decoration:underline;text-decoration-thickness:.1rem;text-underline-offset:.3rem;cursor:pointer}
.st-all[hidden]{display:none}
.st-all:focus-visible{outline:.3rem solid var(--sign);outline-offset:.2rem;border-radius:.4rem}
.p-text p,.p-text li{max-width:60ch}

/* standings that couldn't refresh: the saved copy's note, and no search box over an empty table */
.st-tools[hidden]{display:none}
.home .upd.stale{color:var(--ink)}
.home .upd.stale a{color:var(--bark);font-weight:700}