/* The new pages: schedule, photos, sign in, the sponsor area and Leon's admin. site.css (the home page's own styles)
   loads first, so colours, type, buttons, fields and the header are the same as the rest of the site. */
.pg { background: #fff; --card: 0 1px 2px rgba(17,24,39,.06), 0 12px 32px rgba(17,24,39,.08); }
.pg-main { padding-top: 4.5rem; min-height: 72vh; }
.pg-main form { display: block; }
/* the admin's forms lay out on a grid (the line above is for the site's own contact form styles) */
.pg-main form.formcard, .pg-main form.pwnote, .pg-main form.d-pwform { display: grid; }
/* the site's own form rule makes two columns; the password boxes are one column, every box keeps its own height */
.pg-main form.pwnote, .pg-main form.d-pwform { grid-template-columns: minmax(0, 1fr); align-items: start; }
.pg .lead { color: var(--muted); font-size: 1.05rem; max-width: 42rem; line-height: 1.6; }
.pg-head { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(1.8rem, 3vw, 2.8rem); }
.pg-head h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.05; }
.pg-head .lead { margin-top: 1rem; }
.pg-sec, .sp-sec { padding: 0 0 clamp(3.5rem, 6vw, 6rem); }
.pg-sec h2, .sp-sec h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 1.4rem; }
.sp-sec h2 + .lead { margin: -.6rem 0 1.6rem; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: 1rem; }
.kicker .ic { width: 1rem; height: 1rem; }
.link { font: 600 .92rem/1.2 "Montserrat", sans-serif; color: var(--deep); background: none; border: 0; padding: .4rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.more { margin-top: 1.4rem; }
.more a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--deep); text-decoration: none; }
.pg [hidden] { display: none !important; }

/* app header (sign in, sponsor area, admin): logo plus a few plain links, on phones too */
.app-top nav { gap: 1.4rem; }
.app-top nav a:not(.btn), .app-top nav .link { display: inline-flex !important; color: var(--muted); font-size: .88rem; text-decoration: none; padding: 0; }
.app-top nav a:hover, .app-top nav .link:hover { color: var(--ink); }
@media (max-width: 520px) { .app-top nav { gap: .9rem; } .app-top nav a:not(.btn), .app-top nav .link { font-size: .8rem; } }

/* ---------------------------------------------------------------- schedule: results */
.board.res td:first-child { width: 9.5rem; white-space: nowrap; }
.board.res td:first-child em { font-style: normal; font-weight: 650; font-size: .95rem; color: var(--deep); margin-left: .45rem; }
.board.res td small { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 550; color: var(--muted); }
.board.res td a { color: inherit; text-decoration: none; }
.board.res td a:hover { text-decoration: underline; text-underline-offset: .2em; }
.board.res td:last-child { width: 12rem; }
.board.res td small.when-m { display: none; }
@media (max-width: 760px) {
  .board.res td:first-child { width: 5.6rem; white-space: normal; }
  .board.res td:first-child em { display: block; margin: .3rem 0 0; }
  .board.res td:last-child { width: auto; font-size: .82rem; }
  .board.res th:last-child, .board.res td:last-child { display: none; }
  .board.res td small.when-m { display: block; }
}

/* ---------------------------------------------------------------- photos page */
.masonry { list-style: none; padding: 0; columns: 3 17rem; column-gap: clamp(.75rem, 1.2vw, 1.25rem); }
.masonry li { break-inside: avoid; margin-bottom: clamp(.75rem, 1.2vw, 1.25rem); }
.masonry .ph { display: block; width: 100%; padding: 0; border: 0; background: var(--alt); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.masonry img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.masonry .ph:hover img { transform: scale(1.025); }
.masonry p { margin-top: .55rem; font-size: .9rem; color: var(--muted); font-weight: 550; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10,14,20,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 6rem); width: auto; height: auto; border-radius: 1rem; }
.lightbox button { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .masonry { columns: 2; column-gap: .6rem; } .masonry li { margin-bottom: .6rem; } .masonry .ph { border-radius: 1rem; } }
@media (max-width: 760px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1.2rem; transform: none; } .lightbox .lb-prev { left: calc(50% - 3.6rem); } .lightbox .lb-next { right: calc(50% - 3.6rem); } }

/* ---------------------------------------------------------------- sign in */
.login { display: grid; place-items: center; padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); }
.login .card { width: min(100%, 27rem); }
.login h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 1rem; }
.stack .step { display: grid; gap: 1.1rem; }
.stack .lead { font-size: 1rem; }
.stack .btn { justify-content: center; }
.stack .field input { width: 100%; }
/* sponsors: one box for the code Leon sent them */
#sp-code { display: grid; gap: 1.1rem; }
#sp-code-in { font: 700 1.2rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
#sp-code .hint { color: var(--muted); font-size: .9rem; font-weight: 500; }
#sp-code .status:empty { display: none; }
.login .other { margin-top: 2rem; font-size: .88rem; }
.login .other a { color: var(--muted); font-weight: 600; }
#code { font-size: 1.6rem; letter-spacing: .35em; font-weight: 650; text-align: center; }
.stack .status { display: block; margin-top: 1rem; min-height: 1.4em; }

/* ---------------------------------------------------------------- sponsor area */
.posts { list-style: none; padding: 0; display: grid; gap: clamp(1.2rem, 2vw, 1.8rem); max-width: 46rem; }
.post { background: var(--alt); border-radius: var(--r); padding: clamp(1.3rem, 2.4vw, 2rem); }
.post-date { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-body p { margin-top: .7rem; font-size: 1.02rem; line-height: 1.65; }
.post img { margin-top: 1.1rem; width: 100%; max-width: 30rem; height: auto; border-radius: 1rem; display: block; }
.post .chip { margin-bottom: .6rem; }
.post-photos { display: grid; gap: .5rem; margin-top: 1.1rem; max-width: 40rem; }
.post-photos.n2, .post-photos.n3 { grid-template-columns: 1fr 1fr; }
.post-photos img { margin: 0; max-width: none; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.post-photos.n1 img { aspect-ratio: auto; height: auto; max-width: 30rem; }
.post .tip-frame { margin-top: 1.1rem; max-width: 30rem; }
.embed { position: relative; margin-top: 1.1rem; max-width: 40rem; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--ink); }
.embed.tall { aspect-ratio: 9 / 16; max-width: 20rem; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .8rem 1.1rem; border-radius: 999px; background: #fff; color: var(--deep); font-weight: 650; text-decoration: none; }
.post-link .ic { width: 1.05rem; height: 1.05rem; }
#tips .posts + .vids { margin-top: clamp(1.2rem, 2vw, 1.8rem); }
/* the sponsor area's menu: Book Leon, My season, Tips, Where I'm playing */
.sp-jump { position: sticky; top: 4.5rem; z-index: 4; margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); padding: .6rem 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.sp-jump .wrap { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.sp-jump .wrap::-webkit-scrollbar { display: none; }
.sp-jump a { flex: none; padding: .7rem 1.1rem; border-radius: 999px; background: var(--alt); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.sp-jump a:first-child { background: var(--deep); color: #fff; }
.sp-sec { scroll-margin-top: 9rem; }
.sp-none { color: var(--muted); font-weight: 550; background: var(--alt); border-radius: 1.1rem; padding: 1.1rem 1.3rem; max-width: 52rem; }
.sp-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; max-width: 52rem; margin-bottom: clamp(1.2rem, 2vw, 1.8rem); }
.sp-results li { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 1.1rem; background: var(--alt); }
.sp-results .fin { display: inline-grid; place-items: center; min-width: 2.8rem; height: 2rem; padding: 0 .6rem; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 700; font-size: .85rem; }
.sp-results .fin.win { background: var(--deep); color: #fff; }
.sp-results b { display: block; font-weight: 650; font-size: .95rem; }
.sp-results small { color: var(--muted); font-weight: 550; font-size: .82rem; }
.sp-jump .s { display: none; }
@media (max-width: 760px) { .sp-jump { top: 3.6rem; } .sp-jump .l { display: none; } .sp-jump .s { display: inline; } .sp-jump a { padding: .65rem .95rem; font-size: .86rem; } }
.vids { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: start; }
.tip-frame { border-radius: 1.2rem; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.tip-frame.tall { aspect-ratio: 9 / 14; }
.tip-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tip h3 { margin-top: .9rem; font-size: 1.05rem; font-weight: 650; }
.tip p { margin-top: .3rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.tip .post-date { font-size: .74rem; }
.fdays { list-style: none; padding: 0; display: grid; gap: .55rem; max-width: 52rem; }
.fd-month { margin-top: 1rem; font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fd-month:first-child { margin-top: 0; }
.fd { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; background: var(--alt); border-radius: 1.1rem; padding: .9rem .9rem .9rem 1.3rem; }
.fd-day b { font-weight: 650; }
.fd-day span { display: block; font-size: .88rem; color: var(--muted); font-weight: 550; margin-top: .15rem; }
.fd-kinds { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-block; font-size: .78rem; font-weight: 650; color: var(--deep); background: var(--tint); border-radius: 999px; padding: .35rem .7rem; }
.fd .btn { padding: .75rem 1.1rem; font-size: .84rem; }
.ask-form { margin-top: 1.2rem; background: var(--tint); border-radius: var(--r); padding: clamp(1.2rem, 2.4vw, 1.8rem); max-width: 52rem; }
.ask-form h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 1rem; }
.ask-form .field { margin-bottom: 1rem; }
.ask-form .field input, .ask-form .field textarea, .ask-form .select select { background: #fff; width: 100%; }
.ask-form .send { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.ask-form.done h3 { margin: 0; }
/* the sponsor area, look A (Marcus, 9 Nov): Leon's photo across the top, then the important things as white cards;
   photos only where they help (the top, his news) */
/* it starts under the fixed top bar (-4.5rem, the page's top padding) so no strip shows between them */
.sp-hero { position: relative; margin-top: -4.5rem; height: calc(clamp(22rem, 40vw, 34rem) + 4.5rem); overflow: hidden; color: #fff; }
.sp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,24,.78), rgba(8,14,24,.15) 55%, rgba(8,14,24,0)); }
.sp-hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(1.8rem, 4vw, 3rem); }
.sp-hero .kicker { align-self: flex-start; color: #fff; margin-bottom: .7rem; }
.sp-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.02; }
.sp-hero .lead { margin-top: .7rem; color: #fff; opacity: .92; font-size: 1.1rem; font-weight: 500; max-width: 34rem; }
.sp-jump { top: 4rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); padding: .75rem 0; }
.sp-sub { margin-bottom: 1.2rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
.sp-jump a { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(17,24,39,.12); }
.sp-jump a:first-child { box-shadow: none; }
.fdays { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; max-width: none; }
.fdays > .ask-form { grid-column: 1 / -1; margin-top: .2rem; }
.fd { grid-template-columns: auto 1fr; align-items: center; gap: .9rem 1rem; padding: 1.1rem; border-radius: 1.4rem; background: #fff; box-shadow: var(--card); }
.fd .btn { grid-column: 1 / -1; justify-content: center; padding: .85rem 1.1rem; font-size: .88rem; }
.fd-date { display: grid; place-items: center; align-content: center; gap: .25rem; width: 4.2rem; height: 4.4rem; border-radius: 1rem; background: var(--tint); color: var(--deep); line-height: 1; }
.fd-date b { font-size: 1.6rem; font-weight: 700; }
.fd-date span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fd-day b { font-size: 1.05rem; }
.fd-kinds { margin-top: .45rem; }
.sp-none { background: #fff; box-shadow: var(--card); border-radius: 1.4rem; padding: 1.2rem 1.4rem; }
.sp-results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; max-width: none; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sp-results li { gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 1.4rem; background: #fff; box-shadow: var(--card); }
.sp-results .fin { min-width: 3.6rem; height: 3.6rem; padding: 0 .5rem; border-radius: 1rem; font-size: 1.3rem; }
.sp-results b { font-size: 1rem; line-height: 1.25; }
.sp-results small { display: block; margin-top: .2rem; }
.sp-sec .posts { max-width: none; gap: clamp(2.2rem, 4vw, 3.4rem); }
.post { background: none; border-radius: 0; padding: 0; }
.post .post-photos { margin-top: 0; }
.post-photos + .post-tx { margin-top: 1rem; }
.post-tx { max-width: 44rem; }
.post-date { color: var(--deep); }
.sp-sec .post.has-ph { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
.sp-sec .post.has-ph .post-tx { margin-top: 0; }
.sp-sec .post.has-ph .post-photos { max-width: none; }
.sp-sec .post-body p { font-size: 1.1rem; }
.sp-sec .ev { background: #fff; box-shadow: var(--card); }
.sp-sec .ev-date, .sp-sec .ev-link { background: var(--tint); }
@media (max-width: 760px) {
  .sp-hero { height: 35.5rem; }
  .sp-jump { top: 3.6rem; }
  .sp-hero > img { object-position: 18% 50%; }
  .sp-sec .post.has-ph { grid-template-columns: 1fr; }
  .sp-sec .post.has-ph .post-tx { margin-top: 1rem; }
}

/* ---------------------------------------------------------------- Leon's admin: a dashboard
   A computer gets a navy menu on the left and white cards. His phone gets a white page with a navy bar at the
   bottom (Home, Calendar, Media, Sponsors, Account). */
.pg-admin { --navy: #10233A; --side-ink: #C9D5E3; --side-muted: #7F93AB; --soft: #F4F7FA; --ink2: #0E1B2C; --muted2: #5B6B7F;
  --ring: 0 0 0 1px rgba(14,27,44,.09); --shadow: 0 1px 2px rgba(14,27,44,.05), 0 8px 28px rgba(14,27,44,.07); --pad: clamp(1.25rem, 2.6vw, 2.5rem); }
.pg-admin .pg-main { padding-top: 0; min-height: 100vh; }
.d-loading { padding: 3rem var(--pad); color: var(--muted2); font-weight: 550; }
.dash { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; color: var(--ink2); }
.dash .ic { width: 1.15rem; height: 1.15rem; }
.dash h1, .dash h2 { color: var(--ink2); }

/* the navy menu */
.d-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.4rem 1rem 1.1rem; background: var(--navy); color: #fff; overflow-y: auto; }
.d-brand { display: flex; align-items: center; gap: .75rem; padding: .2rem .6rem 1.6rem; color: #fff; text-decoration: none; }
.d-brand img { width: 2.4rem; height: auto; }
.d-brand b { display: block; font-size: .95rem; font-weight: 650; }
.d-brand span { font-size: .75rem; color: var(--side-muted); font-weight: 500; }
.d-nav, .d-foot { display: grid; gap: .2rem; }
.d-nav a, .d-foot a { display: flex; align-items: center; gap: .75rem; min-height: 2.65rem; padding: 0 .8rem; border-radius: .85rem; color: var(--side-ink); font-size: .92rem; font-weight: 500; text-decoration: none; }
.d-nav a .ic, .d-foot a .ic { color: var(--side-muted); }
.d-nav a:hover, .d-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.d-nav a.on { background: var(--deep); color: #fff; font-weight: 600; }
.d-nav a.on .ic { color: #fff; }
.d-foot { margin-top: auto; padding-top: 1rem; }
.d-foot a > .ic:last-child:not(:first-child) { margin-left: auto; width: .95rem; height: .95rem; }
.d-foot .d-me { margin-top: .4rem; padding: .6rem; background: rgba(255,255,255,.07); }
.d-foot .d-me.on { background: rgba(255,255,255,.14); }
.d-me b { display: block; font-size: .82rem; font-weight: 600; color: #fff; max-width: 10.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-me small { font-size: .72rem; color: var(--side-muted); }
.d-badge { margin-left: auto; display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #5B8DBF; color: #fff; font-size: .7rem; font-weight: 700; font-style: normal; line-height: 1; }
.d-av { display: inline-grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint); color: var(--deep); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.d-av.lg { width: 3.4rem; height: 3.4rem; font-size: 1.05rem; }
.d-av.soft { background: #fff; box-shadow: var(--ring); }

/* the top bar and the page */
.d-main { min-width: 0; }
.d-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); }
.d-top-in, .d-body { width: min(100% - 2 * var(--pad), 84rem); margin-inline: auto; }
.d-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.6rem; }
.d-top-l, .d-top-r { display: flex; align-items: center; gap: .6rem; }
.d-crumb { font-weight: 600; font-size: .92rem; color: var(--muted2); }
.d-mlogo, .d-mav { display: none; }
.dash .btn { padding: .78rem 1.15rem; font-size: .86rem; }
.dash .btn .ic { width: 1.05rem; height: 1.05rem; }
.btn-ghost { background: #fff; color: var(--ink2); box-shadow: var(--ring); }
.d-addwrap { position: relative; }
.d-addmenu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; width: 16.5rem; padding: .45rem; border-radius: 1.2rem; background: #fff; box-shadow: 0 14px 44px rgba(14,27,44,.18), var(--ring); display: grid; gap: .1rem; }
.d-addmenu button, .d-quick button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem; border: 0; border-radius: .85rem; background: none; font: 600 .88rem/1.25 "Montserrat", sans-serif; color: var(--ink2); text-align: left; cursor: pointer; }
.d-addmenu button:hover, .d-quick button:hover { background: var(--soft); }
.d-qi, .d-ico { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: var(--tint); color: var(--deep); }
.d-body { padding: .4rem 0 4.5rem; }
.d-hello { padding: .8rem 0 1.6rem; }
.d-hello h1, .d-page-head h1 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.d-hello p, .d-page-head p { margin-top: .4rem; color: var(--muted2); font-weight: 500; max-width: 46rem; }
.d-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 0 1.4rem; margin: 0; }
.d-page-head .btn { flex: none; }

/* stat tiles */
.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.d-stat { position: relative; min-width: 0; padding: 1.25rem 1.3rem; border-radius: 1.3rem; background: #fff; box-shadow: var(--shadow); }
.d-stat .d-ico { position: absolute; top: 1.05rem; right: 1.05rem; width: 2.5rem; height: 2.5rem; }
.d-stat-k { font-size: .9rem; font-weight: 500; color: var(--muted2); }
.d-stat-v { margin-top: .4rem; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.d-stat-s { margin-top: .4rem; padding-right: .5rem; font-size: .82rem; font-weight: 500; color: var(--muted2); line-height: 1.4; overflow-wrap: anywhere; }
.d-stat-s a { display: inline-flex; align-items: center; gap: .2rem; color: var(--deep); font-weight: 650; text-decoration: none; }
.d-stat-s a .ic { width: .95rem; height: .95rem; }
.d-stat.hi { background: var(--deep); color: #fff; }
.d-stat.hi .d-stat-k, .d-stat.hi .d-stat-s, .d-stat.hi .d-stat-s a { color: #D6E4F2; }
.d-stat.hi .d-ico { background: rgba(255,255,255,.14); color: #fff; }
.d-wait { display: inline-flex; align-items: center; gap: .45rem; }
.d-wait i { width: .5rem; height: .5rem; border-radius: 50%; background: #E0A100; }

/* cards */
.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); gap: 1rem; margin-top: 1rem; align-items: start; }
.d-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: 1rem; align-items: start; }
.d-col { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.d-card { min-width: 0; padding: 1.4rem; border-radius: 1.4rem; background: #fff; box-shadow: var(--shadow); }
.d-card-h { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.d-card-h h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -.005em; }
.d-card-h h2 span { display: inline-flex; align-items: center; gap: .55rem; }
.d-card-h h2 .d-badge { margin: 0; }
.d-card-h .btn { padding: .62rem 1rem; font-size: .82rem; }
.d-link { display: inline-flex; align-items: center; gap: .2rem; margin-top: .9rem; color: var(--deep); font-size: .86rem; font-weight: 650; text-decoration: none; }
.d-card-h .d-link { margin: 0; }
.d-link .ic { width: .95rem; height: .95rem; }
.d-note { margin-bottom: 1rem; color: var(--muted2); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.d-quiet { color: var(--muted2); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.d-who { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .7rem; padding: .35rem .75rem; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: .78rem; font-weight: 650; }
.d-who .ic { width: .95rem; height: .95rem; }
.d-empty { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: 1rem; border-radius: 1.1rem; background: var(--soft); }
.d-empty > div { flex: 1 1 14rem; }
.d-empty b { font-weight: 650; }
.d-empty p { color: var(--muted2); font-size: .88rem; font-weight: 500; }
.d-empty .d-ico { background: #fff; }
.d-seg { display: inline-flex; gap: .2rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: .28rem; border-radius: 999px; background: var(--soft); }
.d-seg::-webkit-scrollbar { display: none; }
.d-seg a { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .62rem 1.05rem; border-radius: 999px; color: var(--muted2); font-size: .88rem; font-weight: 600; text-decoration: none; }
.d-seg a.on { background: #fff; color: var(--ink2); box-shadow: 0 1px 3px rgba(14,27,44,.12); }
.d-n { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: rgba(14,27,44,.07); font-size: .7rem; font-weight: 700; }
.d-seg a.on .d-n { background: var(--tint); color: var(--deep); }

/* lists, rows and results */
.d-row { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.d-row > div { min-width: 0; }
.d-date { display: grid; place-items: center; flex: none; width: 3rem; height: 3.2rem; border-radius: .85rem; background: #fff; color: var(--muted2); font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; line-height: 1; box-shadow: var(--ring); }
.d-date b { display: block; color: var(--ink2); font-size: 1.15rem; letter-spacing: 0; margin-bottom: .1rem; }
.d-res { display: flex; align-items: center; flex: none; min-width: 5.5rem; }
.d-fin { display: inline-grid; place-items: center; min-width: 2.7rem; height: 1.85rem; padding: 0 .65rem; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: .82rem; font-weight: 700; }
.d-fin.win { background: var(--deep); color: #fff; }
.d-score { margin-left: .55rem; color: var(--muted2); font-weight: 650; font-variant-numeric: tabular-nums; }
.d-tbl { width: 100%; border-collapse: separate; border-spacing: 0 .3rem; font-size: .9rem; }
.d-tbl th { padding: .2rem .8rem; text-align: left; color: var(--muted2); font-size: .76rem; font-weight: 600; }
.d-tbl td { padding: .65rem .8rem; vertical-align: middle; }
.d-tbl tbody tr:nth-child(odd) td { background: var(--soft); }
.d-tbl td:first-child { border-radius: .85rem 0 0 .85rem; white-space: nowrap; }
.d-tbl td:last-child { border-radius: 0 .85rem .85rem 0; }
.d-tbl b { font-weight: 600; }
.d-tbl small { display: none; }
.d-r { text-align: right; }
.d-edit { border: 0; background: none; padding: .3rem; color: var(--deep); font: 650 .84rem/1 "Montserrat", sans-serif; cursor: pointer; }
.d-spons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.d-spons li { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .7rem; border-radius: 1rem; background: var(--soft); }
.d-spons b { display: block; font-size: .88rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-spons small { color: var(--muted2); font-size: .76rem; font-weight: 500; }
.d-spons li > div { min-width: 0; }
.d-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.d-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; display: block; }
.d-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.d-quick button { background: var(--soft); padding: .6rem; }
.d-quick .d-qi { background: #fff; box-shadow: var(--ring); }
/* the narrow column: a request's buttons go under its words */
.d-col-side .item { grid-template-columns: minmax(0, 1fr); }
.d-col-side .item .acts { justify-content: flex-start; padding-left: 3.1rem; }

/* the month card: events and free days together */
.d-month .acts { display: flex; gap: .3rem; }
.d-month .ibtn { padding: .5rem; background: var(--soft); }
.d-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.d-dow { padding-bottom: .3rem; color: var(--muted2); font-size: .7rem; font-weight: 650; }
.d-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: .7rem; font-size: .84rem; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.d-day.blank { visibility: hidden; }
.d-day.is-ev { background: var(--deep); color: #fff; }
.d-day.is-fr { background: var(--tint); color: var(--deep); }
.d-day.both { background: #B4483C; color: #fff; }
.d-day.today { box-shadow: inset 0 0 0 2px var(--ink2); }
.d-legend { display: flex; align-items: center; gap: .45rem; margin: .9rem 0 .2rem; color: var(--muted2); font-size: .78rem; font-weight: 600; }
.d-legend .dot + .dot, .d-legend .dot:nth-of-type(2) { margin-left: .8rem; }
.dot { display: inline-block; flex: none; width: .65rem; height: .65rem; border-radius: 50%; }
.dot.is-ev { background: var(--deep); }
.dot.is-fr { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(47,95,138,.35); }
.d-mlist { list-style: none; padding: 0; display: grid; gap: .45rem; margin-top: .9rem; }
.d-mlist li { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: .85rem; background: var(--soft); }
.d-mlist b { display: block; font-size: .85rem; font-weight: 600; }
.d-mlist small { color: var(--muted2); font-size: .76rem; font-weight: 500; }
.d-month .d-quiet { margin-top: .8rem; font-size: .85rem; }

/* account */
.d-me-card b { display: block; font-size: 1.05rem; font-weight: 700; }
.d-me-card .meta { color: var(--muted2); font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }
.d-pwform { display: grid; gap: .8rem; max-width: 30rem; }
.d-pwform .field input { width: 100%; }
.d-pwform .acts { display: flex; gap: .4rem; }
.d-pwform > p:first-child { display: none; }
.d-links { display: grid; gap: .4rem; }
.d-links a, .d-links button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .55rem; border: 0; border-radius: .9rem; background: var(--soft); color: var(--ink2); font: 600 .9rem/1.2 "Montserrat", sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.d-links a > .ic:last-child { margin-left: auto; color: var(--muted2); width: 1rem; height: 1rem; }
.d-links .d-ico { background: #fff; }
.d-links button { color: #9B2C2C; }
.d-links button .d-ico { color: #9B2C2C; }

/* the pieces every section uses */
.subhead { margin: 1.4rem 0 .7rem; font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); }
.d-card > .subhead:nth-child(2) { margin-top: 0; }
.items { list-style: none; padding: 0; display: grid; gap: .55rem; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; align-items: center; padding: .85rem .9rem .85rem 1rem; border-radius: 1.1rem; background: var(--soft); }
.item b { font-weight: 650; }
.item .meta { display: block; margin-top: .2rem; color: var(--muted2); font-size: .86rem; font-weight: 500; line-height: 1.45; }
.item .meta.warn, .warn { color: #9A5B00; font-weight: 600; }
.warn:empty { display: none; }
.item .text { margin-top: .3rem; white-space: pre-wrap; line-height: 1.55; font-size: .92rem; }
.item .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.item .acts .acts { display: contents; }
.item img.thumb { display: block; width: 100%; max-width: 14rem; margin-top: .6rem; border-radius: .8rem; }
.ibtn { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink2); font: 600 .82rem/1 "Montserrat", sans-serif; text-decoration: none; cursor: pointer; box-shadow: var(--ring); }
.ibtn .ic, .ibtn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.danger { color: #9B2C2C; }
.ibtn.yes { background: #9B2C2C; color: #fff; box-shadow: none; }
.ibtn:disabled { opacity: .45; cursor: default; }
.formcard { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; margin: 0 0 1.1rem; padding: clamp(1.1rem, 2.2vw, 1.5rem); border-radius: 1.2rem; background: var(--tint); }
.formcard .full { grid-column: 1 / -1; }
.formcard .field input, .formcard .field textarea, .formcard .select select { width: 100%; background: #fff; }
.formcard .field textarea { min-height: 7rem; }
.formcard .hint { color: var(--muted2); font-size: .8rem; font-weight: 550; }
.formcard .row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.formcard .btn { flex: none; white-space: nowrap; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; }
.checks input { width: 1.05rem; height: 1.05rem; accent-color: var(--deep); }
.err { color: #9B2C2C; font-size: .9rem; font-weight: 600; }
.err:empty, .ok-msg:empty { display: none; }
.ok-msg { margin-bottom: .8rem; color: var(--deep); font-size: .9rem; font-weight: 600; }
.bar { height: .5rem; overflow: hidden; border-radius: 999px; background: #fff; }
.bar i { display: block; width: 0; height: 100%; background: var(--deep); transition: width .2s ease; }
.pgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem; }
.pcard { display: grid; gap: .55rem; min-width: 0; padding: .55rem; border-radius: 1.1rem; background: var(--soft); }
.pcard img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .75rem; }
.pcard input { width: 100%; padding: .55rem .6rem; border: 0; border-radius: .7rem; background: #fff; font: 500 .85rem/1.3 "Montserrat", sans-serif; }
.pcard .acts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; }
.pcard .acts .acts { display: contents; }
.pcard .ibtn { padding: .5rem .6rem; }
.pcard .home { color: var(--deep); font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.vthumb { display: block; width: 7.5rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .7rem; background: var(--stone); }
.vrow { display: flex; align-items: center; gap: 1rem; }
.empty { padding: .4rem 0 .6rem; color: var(--muted2); font-weight: 550; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 90; transform: translateX(-50%); padding: .85rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; box-shadow: 0 .6rem 1.8rem rgba(17,18,20,.2); }
.filebtn { position: relative; overflow: hidden; }
.pwrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pwrow input { flex: 1 1 13rem; min-width: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace !important; letter-spacing: .02em; }
.pwrow .ibtn { flex: none; }
.pwnote { display: grid; gap: .55rem; margin: 0 0 1.1rem; padding: 1.1rem 1.3rem; border-radius: 1.2rem; background: var(--tint); }
.pwnote .pw { display: block; width: fit-content; max-width: 100%; margin-top: .4rem; padding: .35rem .6rem; border-radius: .6rem; background: #fff; color: var(--deep); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.1rem; overflow-wrap: anywhere; }
.pwnote .acts, .d-pwform .acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pwset .field, .d-pwform .field { max-width: 26rem; }
.pwnote .hint { color: var(--muted2); font-size: .86rem; font-weight: 500; }
.pwset { max-width: 34rem; margin-top: .6rem; }
.pwset .field input { width: 100%; background: #fff; }
.d-tabs { display: none; }

/* each section has its own colour, all in one cool family: calendar blue, media teal, sponsors indigo, account slate */
.dash { --c-calendar: #2F5F8A; --t-calendar: #E6EFF8; --c-media: #167A78; --t-media: #DDF1EF; --c-sponsors: #4B4FA6; --t-sponsors: #EAEAF8; --c-account: #56677C; --t-account: #EDF1F5; }
.c-calendar { background: var(--t-calendar); color: var(--c-calendar); }
.c-media { background: var(--t-media); color: var(--c-media); }
.c-sponsors { background: var(--t-sponsors); color: var(--c-sponsors); }
.c-account { background: var(--t-account); color: var(--c-account); }
.d-chip { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: .7rem; }
.d-chip .ic { width: 1.1rem; height: 1.1rem; }
.d-titled { display: inline-flex; align-items: center; gap: .65rem; }
.d-titled .d-badge { margin: 0; }
.d-page-head h1 { display: flex; align-items: center; gap: .8rem; }
.d-page-head .d-chip { width: 2.8rem; height: 2.8rem; border-radius: .9rem; }
.d-page-head .d-chip .ic { width: 1.4rem; height: 1.4rem; }
.d-quick .d-qi[class*="c-"], .d-addmenu .d-qi[class*="c-"] { box-shadow: none; }
.d-empty .d-ico[class*="c-"] { background: #fff; }
.d-nav a[data-go="tournaments"] .ic, .d-tabs a[data-go="tournaments"] .ic { color: #8DB8E3; }
.d-nav a[data-go="photos"] .ic, .d-tabs a[data-go="photos"] .ic { color: #63C7C1; }
.d-nav a[data-go="sponsors"] .ic, .d-tabs a[data-go="sponsors"] .ic { color: #AEB1F2; }
.d-nav a.on[data-go="tournaments"] { background: var(--c-calendar); }
.d-nav a.on[data-go="photos"] { background: var(--c-media); }
.d-nav a.on[data-go="sponsors"] { background: var(--c-sponsors); }
.d-nav a.on .ic, .d-tabs a.on .ic { color: #fff; }
.d-wait i { background: var(--c-sponsors); }
.sec-photos .d-seg a.on, .sec-photos .d-who { color: var(--c-media); }
.sec-photos .d-seg a.on .d-n, .sec-photos .d-who { background: var(--t-media); color: var(--c-media); }
.sec-sponsors .d-seg a.on, .sec-sponsors .d-who { color: var(--c-sponsors); }
.sec-sponsors .d-seg a.on .d-n, .sec-sponsors .d-who { background: var(--t-sponsors); color: var(--c-sponsors); }
.sec-photos .pcard .home { color: var(--c-media); }
.d-day.is-fr { background: var(--t-sponsors); color: var(--c-sponsors); }
.dot.is-fr { background: var(--t-sponsors); box-shadow: inset 0 0 0 1px rgba(75,79,166,.4); }

/* the overview opens on a photo of Leon, in full colour; the words sit on a black fade (never a white haze) */
.d-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; min-height: 15.5rem; margin: .6rem 0 1.4rem; border-radius: 1.6rem; background: #1d2b3c; color: #fff; }
.d-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 32%; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(8,16,28,.72) 0%, rgba(8,16,28,.45) 38%, rgba(8,16,28,0) 68%); }
.d-hero-c { position: relative; z-index: 1; max-width: 31rem; padding: 2rem 2.4rem; }
.d-hero h1 { color: #fff !important; font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.d-hero p { margin: .5rem 0 1.15rem; color: rgba(255,255,255,.9); font-weight: 500; }
.d-hero .btn-white { color: var(--ink2); }
@media (min-width: 1800px) { .d-hero { min-height: 18rem; } }

/* ---------------------------------------------------------------- the simpler admin (9 Nov): home tasks, sponsor
   switches, news with photos/video/link, tap-the-days free days */
.dash { --c-free: #2E7D4F; --t-free: #E3F3EA; }
.c-free { background: var(--t-free); color: var(--c-free); }
.d-nav a[data-go="free"] .ic, .d-tabs a[data-go="free"] .ic { color: #7FD3A3; }
.d-nav a.on[data-go="free"] { background: var(--c-free); }
.d-nav a.on .ic, .d-tabs a.on .ic { color: #fff; }
.d-scrolled .d-top { box-shadow: 0 8px 24px rgba(14,27,44,.07); }
.toast { display: flex; align-items: center; gap: .5rem; }
.toast .ic { width: 1.1rem; height: 1.1rem; color: #7EE2A8; }
.toast.bad { background: #7A2424; }
/* the message keeps its own width (left: 50% would squeeze it into half the screen) */
.toast { width: max-content; max-width: calc(100vw - 2rem); }
.toast-act { flex: none; margin-left: .4rem; padding: .45rem .85rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font: 700 .85rem/1 "Montserrat", sans-serif; cursor: pointer; }
.del-warn { flex-basis: 100%; color: #7A2424; font-size: .82rem; font-weight: 600; }
.p-nologo .ibtn { flex: none; }
.p-postrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem; }
.p-postrow .btn { padding: .95rem .8rem !important; }
/* the preview: the post as his sponsors will see it */
/* margin: auto centres it (the site's reset sets every margin to 0, which left it in the top-left corner) */
.p-preview { margin: auto; width: min(100% - 1.5rem, 34rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1.4rem; background: #fff; box-shadow: 0 24px 70px rgba(14,27,44,.3); }
.p-preview::backdrop { background: rgba(10,16,28,.55); }
.p-preview-in { display: grid; gap: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.2rem; }
.p-preview-k { display: flex; align-items: center; gap: .5rem; color: #4B4FA6; font-size: .88rem; font-weight: 650; }
.p-preview-k .ic { width: 1.1rem; height: 1.1rem; }
.p-preview .posts { list-style: none; padding: 0; margin: 0; }
.p-preview-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.p-preview-acts .btn { justify-content: center; padding: .9rem .8rem; }

/* who sees it */
.p-who { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; padding: .42rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.p-who .ic { width: .95rem; height: .95rem; }
.p-web { background: var(--t-calendar); color: var(--c-calendar); }
.p-spa { background: var(--t-sponsors); color: var(--c-sponsors); }
.d-seg { margin-bottom: 1rem; }
.d-seg + .d-card, .p-who + .d-card { margin-top: 0; }

/* home */
.d-hero.p-slim { min-height: 12.5rem; }
.p-q { margin: 1.4rem 0 .8rem; font-size: 1.12rem; font-weight: 700; color: var(--ink2); }
.p-row2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "tasks needs" "tasks logos"; column-gap: 1.2rem; align-items: start; }
.p-col-needs { grid-area: needs; } .p-col-tasks { grid-area: tasks; } .p-col-logos { grid-area: logos; }
.p-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.p-task { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .8rem; min-height: 7rem; padding: 1rem; border: 0; border-radius: 1.25rem; background: #fff; box-shadow: var(--shadow); color: var(--ink2); font: 650 .98rem/1.25 "Montserrat", sans-serif; text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.p-task:hover { box-shadow: 0 2px 4px rgba(14,27,44,.06), 0 12px 32px rgba(14,27,44,.1); }
.p-task:active { transform: scale(.97); }
.p-task .d-chip { width: 2.6rem; height: 2.6rem; border-radius: .85rem; }
.p-task .d-chip .ic { width: 1.35rem; height: 1.35rem; }
.p-task small { display: block; margin-top: .15rem; color: var(--muted2); font-size: .76rem; font-weight: 500; }
.p-need { display: grid; gap: .6rem; }
.p-n { display: flex; align-items: center; gap: .8rem; padding: .85rem; border-radius: 1.15rem; background: #fff; box-shadow: var(--shadow); }
.p-n > div { flex: 1; min-width: 0; }
.p-n b { display: block; font-size: .92rem; font-weight: 650; }
.p-n p { color: var(--muted2); font-size: .8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-n .btn { flex: none; padding: .6rem 1rem; font-size: .8rem; }
.p-allgood { display: flex; align-items: center; gap: .5rem; padding: .9rem 1rem; border-radius: 1.1rem; background: var(--t-free); color: var(--c-free); font-weight: 600; }
.p-allgood .ic { width: 1.1rem; height: 1.1rem; }
.p-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; text-decoration: none; }
.p-logos span { display: grid; place-items: center; height: 4.4rem; padding: .7rem; border-radius: 1rem; background: var(--soft); color: var(--deep); font-size: .72rem; font-weight: 700; text-align: center; }
.p-logos img { max-width: 100%; max-height: 2.3rem; object-fit: contain; }

/* sponsors */
.p-spons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .8rem; align-items: start; }
.p-sp { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; padding: 1rem; border-radius: 1.25rem; background: var(--soft); }
.p-sp-h { display: flex; align-items: center; gap: .8rem; }
.p-sp-h > div { flex: 1; min-width: 0; }
.p-sp-h b { display: block; font-size: 1rem; font-weight: 700; }
.p-sp-h small { color: var(--muted2); font-size: .8rem; font-weight: 500; }
.p-logo { display: grid; place-items: center; flex: none; width: 3.3rem; height: 3.3rem; padding: .45rem; border-radius: .9rem; background: #fff; box-shadow: var(--ring); color: var(--deep); overflow: hidden; }
.p-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-logo b { font-size: .85rem; }
.p-logo .ic { width: 1.3rem; height: 1.3rem; color: var(--muted2); }
.p-sw { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .8rem; border-radius: .95rem; background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink2); }
.formcard .p-sw { background: #fff; }
.p-sw small { display: block; color: var(--muted2); font-weight: 500; font-size: .76rem; overflow-wrap: anywhere; }
.p-tog { position: relative; flex: none; width: 3.1rem; height: 1.8rem; padding: 0; border: 0; border-radius: 999px; background: #C9D2DD; cursor: pointer; transition: background-color .2s ease; }
.p-tog::after { content: ""; position: absolute; top: .22rem; left: .22rem; width: 1.36rem; height: 1.36rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s cubic-bezier(.2,.7,.2,1); }
.p-tog.on::after { left: 1.52rem; }
.p-tog.web.on { background: var(--c-calendar); }
.p-tog.spa.on { background: var(--c-sponsors); }
.p-ask { display: grid; gap: .6rem; padding: .85rem; border-radius: .95rem; background: #FBEDEA; color: #7A2424; font-weight: 600; font-size: .88rem; }
.p-ask .acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.p-logins { list-style: none; padding: 0; display: grid; gap: .45rem; }
.p-logins > li { display: grid; gap: .5rem; padding: .7rem .8rem; border-radius: .95rem; background: #fff; }
.p-logins b { display: block; font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.p-logins small { color: var(--muted2); font-size: .76rem; font-weight: 500; }
.p-logins .acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.p-logins .formcard { margin: 0; }
.p-more { justify-self: start; font-size: .84rem; }
/* a sponsor's code and the link with it in */
/* minmax(0, 1fr): a long link is cut off with ... instead of widening the card (and the whole page on a phone) */
.p-code { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; padding: 1rem; border-radius: 1rem; background: #fff; }
.p-code-k { font-size: .76rem; font-weight: 700; color: var(--muted2); }
.p-code-k + .p-code-row { margin-top: -.15rem; }
.p-code-row + .p-code-k { margin-top: .35rem; }
.p-code-row { display: flex; align-items: center; gap: .5rem; }
.p-code-v, .p-code-url { flex: 1; min-width: 0; padding: .75rem .9rem; border-radius: .8rem; background: var(--soft); color: var(--ink2); }
.p-code-v { font: 700 1.05rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.p-code-url { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-code .hint { color: var(--muted2); font-size: .8rem; font-weight: 500; line-height: 1.45; margin-top: .2rem; }
.p-code .acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.p-code .formcard { margin: 0; }
.p-sp .formcard { margin: 0; background: #fff; }
/* a form inside a sponsor's white card: its boxes are soft grey, so they show */
.p-sp .formcard .field input, .p-sp .formcard .field textarea, .p-logins .formcard input { background: var(--soft); }
.p-sp .formcard .checks label { background: var(--soft); }
.p-editing { display: grid; gap: .5rem; }
.p-remove { display: flex; justify-content: flex-end; }
.p-logopick { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.p-att { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .85rem .4rem; border: 0; border-radius: 1rem; background: #fff; color: var(--ink2); font: 650 .84rem/1.2 "Montserrat", sans-serif; cursor: pointer; }
.p-att .ic { width: 1.4rem; height: 1.4rem; color: var(--c-sponsors); }
.p-att-row { flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .55rem .9rem .55rem .55rem; }
.p-loginbits { display: grid; gap: 1rem; }
.formcard .subhead { margin: .3rem 0 -.3rem; }
.formcard .subhead:first-child { margin-top: 0; }

/* news */
.p-news { grid-template-columns: minmax(0, 1fr); }
.p-attach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.p-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.p-thumbs span { position: relative; }
.p-thumbs img { display: block; width: 4.6rem; height: 4.6rem; border-radius: .8rem; object-fit: cover; }
.p-thumbs.small img { width: 3.4rem; height: 3.4rem; border-radius: .6rem; }
.p-thumbs.small { margin-top: .5rem; }
.p-x { position: absolute; top: -.4rem; right: -.4rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--ink2); color: #fff; cursor: pointer; }
.p-x .ic { width: .9rem; height: .9rem; }
.p-file { position: relative; display: flex; align-items: center; gap: .6rem; padding: .7rem 2.4rem .7rem .8rem; border-radius: .95rem; background: #fff; font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.p-file .ic { width: 1.2rem; height: 1.2rem; color: var(--c-sponsors); flex: none; }
.p-file .p-x { top: 50%; right: .6rem; transform: translateY(-50%); }
.p-tick { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; border-radius: 1rem; background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.p-tick input { width: 1.15rem; height: 1.15rem; accent-color: var(--c-sponsors); }
.p-big { justify-content: center; width: 100%; padding: 1rem !important; font-size: 1rem !important; }
.p-ghostlink { display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--c-sponsors); font-weight: 650; font-size: .9rem; text-decoration: none; }
.p-ghostlink .ic { width: 1.1rem; height: 1.1rem; }
.p-tag { display: inline-block; margin-left: .5rem; padding: .15rem .5rem; border-radius: 999px; background: var(--t-sponsors); color: var(--c-sponsors); font-size: .7rem; font-weight: 700; }
.item .meta .ic { width: .95rem; height: .95rem; vertical-align: -.15rem; }

/* tournaments: add a finish right in the list */
.p-wait { background: var(--t-calendar); }
.p-finish { display: grid; gap: .7rem; }
.p-finish-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; }
.p-finish-in input { min-width: 0; padding: .75rem .85rem; border: 2px solid transparent; border-radius: .9rem; background: #fff; font: 500 .95rem/1.3 "Montserrat", sans-serif; color: var(--ink2); }
.p-finish-in input:focus { border-color: var(--accent); outline: none; }
.p-finish-in .btn { padding: .75rem 1.1rem; }

/* free days: tap the days */
.p-cal .d-grid { gap: .35rem; }
button.d-day { width: 100%; padding: 0; border: 0; background: none; font: 600 .95rem/1 "Montserrat", sans-serif; color: var(--ink2); border-radius: .8rem; cursor: pointer; transition: background-color .15s ease, transform .12s ease; }
button.d-day:hover:not(:disabled):not(.is-ev):not(.is-fr) { background: var(--t-free); }
button.d-day:active:not(:disabled) { transform: scale(.92); }
.p-cal .d-day.is-fr { background: var(--c-free); color: #fff; }
.p-cal .d-day.is-ev { background: var(--t-calendar); color: var(--c-calendar); cursor: not-allowed; }
.p-cal .d-day.past { color: #B9C3CF; cursor: default; }
.p-cal .d-day.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c-free); }
.p-cal .d-day.today:not(.sel) { box-shadow: inset 0 0 0 2px var(--ink2); }
.p-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem; color: var(--muted2); font-size: .78rem; font-weight: 600; }
.p-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.p-legend i { width: .8rem; height: .8rem; border-radius: .25rem; }
.p-legend .k-fr { background: var(--c-free); } .p-legend .k-ev { background: var(--t-calendar); box-shadow: inset 0 0 0 1px rgba(47,95,138,.35); }
.p-day { display: grid; gap: .8rem; margin-top: 1rem; padding: 1rem; border-radius: 1.2rem; background: var(--t-free); }
.p-day > b { font-size: 1rem; color: var(--ink2); }
.p-day .checks button { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink2); font: 600 .9rem/1 "Montserrat", sans-serif; cursor: pointer; }
.p-day .checks button.on { background: var(--c-free); color: #fff; }
.p-day .checks .ic { width: 1rem; height: 1rem; }
.p-day .field input { width: 100%; background: #fff; }
.p-day .acts { display: flex; }
.p-tip { display: flex; align-items: flex-start; gap: .5rem; margin-top: .9rem; color: var(--muted2); font-size: .82rem; font-weight: 500; }
.p-tip .ic { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; }
.p-pick { padding: 0; }
.p-pick > button { width: 100%; padding: .85rem 1rem; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.p-free { grid-template-columns: minmax(0, 38rem) minmax(16rem, 26rem); }
.p-cal .d-day { aspect-ratio: auto; height: 3rem; }

@media (max-width: 1180px) {
  .p-row2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "needs" "tasks" "logos"; }
  .p-free { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .d-tabs a.on[data-go="free"] { background: var(--c-free); }
  .d-hero.p-slim { min-height: 11.5rem; }
  .p-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .p-task { min-height: 6.4rem; }
  .p-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-logos span { height: 3.6rem; padding: .5rem; }
  .p-finish-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-finish-in .btn { grid-column: 1 / -1; justify-content: center; }
  button.d-day { font-size: .9rem; }
  .p-cal .d-day { height: 2.7rem; }
  .p-logins .ibtn { padding: .5rem .7rem; font-size: .78rem; }
}

/* motion that answers him (none when the phone asks for less motion) */
@keyframes d-flash { 0% { box-shadow: 0 0 0 3px rgba(47,95,138,.45); background-color: #DCE9F6; } 100% { box-shadow: 0 0 0 0 rgba(47,95,138,0); } }
.d-flash { animation: d-flash 1.6s ease-out; }
@keyframes d-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast { animation: d-toast-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes d-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes d-fade { from { opacity: 0; } }
.p-preview[open] { animation: d-pop .28s cubic-bezier(.2,.7,.2,1); }
.p-preview[open]::backdrop { animation: d-fade .28s ease; }
.p-ask, .pwnote { animation: d-pop .26s cubic-bezier(.2,.7,.2,1); }
.dash .btn, .dash .ibtn, .p-att, .d-seg a, .d-tabs a, .d-nav a, .p-day .checks button { transition: transform .12s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.dash .btn:active, .dash .ibtn:active, .p-att:active, .d-tabs a:active, .d-seg a:active, .p-day .checks button:active { transform: scale(.96); }
.d-hero img { will-change: transform; }
/* while the admin loads: the shape of the page, gently shimmering */
.d-skel { width: min(100% - 2 * var(--pad), 84rem); margin: 5.5rem auto 0; display: grid; gap: 1rem; }
.d-skel i { display: block; border-radius: 1.2rem; background: linear-gradient(90deg, #EEF2F6 0%, #F7F9FB 40%, #EEF2F6 80%) 0 0 / 300% 100%; animation: d-shimmer 1.4s linear infinite; }
.d-skel .s-hero { height: 12rem; border-radius: 1.6rem; }
.d-skel .s-line { width: 14rem; height: 1.4rem; margin-top: .6rem; }
.d-skel .s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.d-skel .s-grid i { height: 7rem; }
@keyframes d-shimmer { to { background-position: -300% 0; } }
@media (max-width: 760px) { .d-skel { margin-top: 4.6rem; } .d-skel .s-grid { grid-template-columns: 1fr 1fr; } .d-skel .s-hero { height: 11rem; } }
@media (prefers-reduced-motion: reduce) {
  .d-flash, .toast, .p-preview[open], .p-preview[open]::backdrop, .p-ask, .pwnote, .d-skel i { animation: none !important; }
  .d-flash { background-color: #DCE9F6; }
  .p-tog, .p-tog::after, .dash .btn, .dash .ibtn, .p-att, .d-seg a, .d-tabs a, .d-nav a { transition: none !important; }
}

/* help: a ? on every page, the tour's spotlight and card, Getting started */
.p-help { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; margin-left: .2rem; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink2); font: 700 .95rem/1 "Montserrat", sans-serif; cursor: pointer; box-shadow: var(--ring); vertical-align: middle; }
.p-help:hover { background: var(--tint); color: var(--deep); }
.p-q { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.tour-layer { position: fixed; inset: 0; z-index: 200; }
.tour-hole { position: fixed; border-radius: 1.1rem; box-shadow: 0 0 0 200vmax rgba(10,16,28,.62); pointer-events: none; transition: left .3s cubic-bezier(.2,.7,.2,1), top .3s cubic-bezier(.2,.7,.2,1), width .3s cubic-bezier(.2,.7,.2,1), height .3s cubic-bezier(.2,.7,.2,1); }
.tour-hole.none { left: 50%; top: 50%; width: 0; height: 0; }
.tour-card { position: fixed; left: 50%; transform: translateX(-50%); width: min(100% - 1.5rem, 24rem); padding: 1.1rem 1.2rem 1rem; border-radius: 1.3rem; background: #fff; color: var(--ink2); box-shadow: 0 20px 60px rgba(10,16,28,.35); transition: top .3s cubic-bezier(.2,.7,.2,1); }
.tour-step { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); }
.tour-card h3 { margin-top: .3rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.tour-card > p:not(.tour-step) { margin-top: .4rem; color: var(--muted2); font-size: .92rem; font-weight: 500; line-height: 1.5; }
.tour-acts { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.tour-go { display: flex; align-items: center; gap: .4rem; }
.tour-go .btn { padding: .72rem 1.2rem; font-size: .88rem; }
.tour-layer .link { font-size: .88rem; }
.p-setup .d-card-h h2 { flex-wrap: wrap; }
.p-count { padding: .25rem .6rem; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: .74rem; font-weight: 700; }
.p-bar { height: .45rem; margin: -.2rem 0 .9rem; border-radius: 999px; background: var(--soft); overflow: hidden; }
.p-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c-free); transition: width .4s ease; }
.p-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .5rem; }
.p-steps button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .8rem; border: 0; border-radius: .95rem; background: var(--soft); color: var(--ink2); font: 600 .9rem/1.3 "Montserrat", sans-serif; text-align: left; cursor: pointer; }
.p-steps button > span:nth-child(2) { flex: 1; }
.p-steps button .ic { width: 1rem; height: 1rem; color: var(--muted2); }
.p-steps button.ok { color: var(--muted2); cursor: default; }
.p-steps button.ok > span:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(91,107,127,.5); }
.p-tick-c { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C9D2DD; }
.p-steps button.ok .p-tick-c { background: var(--c-free); box-shadow: none; }
.p-steps button.ok .p-tick-c .ic { width: .9rem; height: .9rem; color: #fff; }
.d-hero + .p-setup { margin-bottom: .2rem; }
.p-tours { display: flex; flex-wrap: wrap; gap: .45rem; }
.p-tours .btn { padding: .7rem 1.1rem; font-size: .86rem; }
@media (max-width: 760px) { .p-tours .btn { width: 100%; justify-content: center; } }

/* big screens: the menu stays the same width, the page keeps to a readable width */
@media (min-width: 1800px) {
  .dash { grid-template-columns: 18rem minmax(0, 1fr); }
  .d-top-in, .d-body { width: min(100% - 2 * var(--pad), 120rem); }
}

/* tablets: the two columns stack */
@media (max-width: 1180px) {
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-cols, .d-split { grid-template-columns: minmax(0, 1fr); }
}

/* his phone: a white page, the navy bar at the bottom */
@media (max-width: 760px) {
  .dash { display: block; }
  .d-side, .d-crumb, .d-wide, .d-quickcard { display: none; }
  .d-top { box-shadow: 0 1px 0 rgba(14,27,44,.04); }
  .d-top-in { height: 4rem; }
  .d-mlogo { display: block; }
  .d-mlogo img { width: 2.3rem; height: auto; }
  .d-mav { display: block; text-decoration: none; }
  .d-body { padding-bottom: 7.5rem; }
  .d-hello { padding: .6rem 0 1.1rem; }
  .d-hello h1, .d-page-head h1 { font-size: 1.65rem; }
  .d-hello p, .d-page-head p { font-size: .92rem; }
  .d-page-head { align-items: flex-start; padding: .6rem 0 1.1rem; }
  .d-page-head .btn { width: 100%; justify-content: center; }
  .d-stats { gap: .65rem; }
  .d-stat { padding: 1rem; border-radius: 1.15rem; }
  .d-stat .d-ico { top: .85rem; right: .85rem; width: 2.1rem; height: 2.1rem; }
  .d-stat-v { font-size: 1.8rem; }
  .d-stat-s { font-size: .76rem; padding-right: 0; }
  .d-stat.hi { background: #fff; color: var(--ink2); }
  .d-stat.hi .d-stat-k, .d-stat.hi .d-stat-s { color: var(--muted2); }
  .d-stat.hi .d-stat-s a { color: var(--deep); }
  .d-stat.hi .d-ico { background: var(--tint); color: var(--deep); }
  .d-cols { gap: .75rem; margin-top: .75rem; }
  .d-col { gap: .75rem; }
  .d-col-side { order: -1; }
  .d-split { gap: .75rem; }
  .d-card { padding: 1.05rem; border-radius: 1.2rem; }
  .d-seg { display: flex; width: 100%; }
  .d-seg a { flex: 1 0 auto; justify-content: center; padding: .62rem .8rem; }
  .d-tbl td { padding: .6rem .6rem; }
  .d-tbl small { display: block; margin-top: .15rem; color: var(--muted2); font-size: .76rem; font-weight: 500; }
  .formcard { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .pcard { padding: .45rem; }
  .pcard .ibtn { padding: .45rem .5rem; font-size: .76rem; }
  .item { grid-template-columns: 1fr; }
  .item .acts { justify-content: flex-start; }
  .item .ibtn { padding: .55rem .7rem; }
  .vrow { align-items: flex-start; }
  .d-tabs { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; justify-content: space-between; padding: .4rem; border-radius: 1.5rem; background: var(--navy); box-shadow: 0 10px 30px rgba(14,27,44,.28); }
  .d-tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .5rem .2rem; border-radius: 1.1rem; color: #8FA3BA; font-size: .66rem; font-weight: 600; text-decoration: none; }
  .d-tabs a .ic { width: 1.3rem; height: 1.3rem; }
  .d-tabs a.on { background: var(--deep); color: #fff; }
  .d-tabs .d-badge { position: absolute; top: .15rem; right: calc(50% - 1.35rem); margin: 0; min-width: 1.1rem; height: 1.1rem; font-size: .62rem; }
  .toast { bottom: 6.6rem; }
  .d-addmenu { position: fixed; top: 4.2rem; right: .75rem; left: .75rem; width: auto; }
  .d-hero { min-height: 14rem; align-items: flex-end; justify-content: flex-start; margin-top: .4rem; border-radius: 1.3rem; }
  .d-hero img { object-position: 12% 28%; }
  .d-hero::after { background: linear-gradient(to top, rgba(8,16,28,.78) 0%, rgba(8,16,28,.35) 50%, rgba(8,16,28,0) 80%); }
  .d-hero-c { padding: 1.2rem 1.2rem 1.25rem; }
  .d-hero h1 { font-size: 1.55rem; }
  .d-hero p { margin: .35rem 0 .8rem; font-size: .85rem; }
  .d-hero .btn { padding: .65rem 1rem; font-size: .82rem; }
  .d-page-head .d-chip { width: 2.4rem; height: 2.4rem; }
  .d-tabs a.on[data-go="tournaments"] { background: var(--c-calendar); }
  .d-tabs a.on[data-go="photos"] { background: var(--c-media); }
  .d-tabs a.on[data-go="sponsors"] { background: var(--c-sponsors); }
  .d-tabs a.on[data-go="account"] { background: var(--c-account); }
}

/* the sponsor's own password box */
.pw-form { max-width: 34rem; background: var(--alt); border-radius: var(--r); padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.pw-form.first { background: var(--tint); }
.pw-form h2 { margin-bottom: .6rem; }
.pw-form .lead { margin-bottom: 1rem; font-size: 1rem; }
.pw-form .field { margin-bottom: 1rem; }
.pw-form .field input { width: 100%; background: #fff; }
.pw-form .send { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#back-pw { margin-top: .4rem; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
