/* 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; }
.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%; }
#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; }
.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; }
@media (max-width: 760px) {
  .fd { grid-template-columns: 1fr; gap: .7rem; padding: 1rem 1.1rem; }
  .fd .btn { justify-content: center; }
}

/* ---------------------------------------------------------------- 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="calendar"] .ic, .d-tabs a[data-go="calendar"] .ic { color: #8DB8E3; }
.d-nav a[data-go="media"] .ic, .d-tabs a[data-go="media"] .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="calendar"] { background: var(--c-calendar); }
.d-nav a.on[data-go="media"] { 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-media .d-seg a.on, .sec-media .d-who { color: var(--c-media); }
.sec-media .d-seg a.on .d-n, .sec-media .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-media .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; } }

/* 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="calendar"] { background: var(--c-calendar); }
  .d-tabs a.on[data-go="media"] { 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; }
