/* The checklist (/checklist/, flagship 2026-11-25). .fine-print, .cta-short and .chips come from weekend.css */

/* Header: words and a Start button left, four real photos of places on the list right */
.clx-hero { padding-bottom: var(--sp-24); }
.clx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-48); align-items: center; }
.clx-hero h1 { font-size: var(--h1-page); }
.clx-hero .lede { margin-top: var(--sp-16); max-width: 34em; }
.clx-friend { margin: var(--sp-12) 0 0; padding: var(--sp-8) var(--sp-16); display: inline-block; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--sun) 22%, #fffaf2); font: 500 1rem/1.4 var(--sans); color: var(--ink); }
.clx-start-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12) var(--sp-20); margin: var(--sp-24) 0 0; }
.clx-start-row .guide-checked { margin: 0; }
.clx-start { font-size: 1.12rem; padding: 1em 1.8em; }
.clx-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: var(--sp-8); height: 400px; }
.clx-mo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.clx-mo-0 { grid-row: 1 / span 3; }
.clx-mo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* an open photo credit is never clipped by its tile or card (photos.css does the same for other cards) */
:is(.clx-mo, .clx-ph, .clx-item):has(.pcred[open]) { overflow: visible; z-index: 3; }

/* Score bar: ring, count and tier, buttons. Sticks under the header while you tick (.clx-flow holds the list, so it sticks all the way down) */
.clx-flow { position: relative; }
.clx-score-sec { position: sticky; top: 76px; z-index: 6; padding: var(--sp-8) 0; }
.clx-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-8) var(--sp-20); padding: var(--sp-12) var(--sp-20);
  border-radius: var(--radius); background: color-mix(in srgb, #fffaf2 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-2); }
.clx-ring-box { position: relative; width: 64px; height: 64px; }
.clx-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.clx-ring circle { fill: none; stroke-width: 9; }
.clx-ring-bg { stroke: var(--paper-2); }
.clx-ring-fg { stroke: var(--sea); stroke-linecap: round; transition: stroke-dasharray .5s var(--ease); }
.clx-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .82rem/1 var(--sans); color: var(--ink); }
.clx-score-t { min-width: 0; }
.clx-bar .cl-score { margin: 0; font: 600 1.12rem/1.2 var(--sans); color: var(--ink-2); }
.clx-bar .cl-score b { font: 400 1.75rem/1 var(--serif); color: var(--ink); }
.clx-tier { margin: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4) var(--sp-12); font: 600 .9rem/1.2 var(--sans); color: var(--tile); }
.clx-btns { display: flex; gap: var(--sp-8); align-items: center; }
.clx-btns .btn { padding: .75em 1.15em; font-size: .9rem; }
.clx-bar .cl-reset { font: 600 .82rem/1 var(--sans); background: none; border: 0; color: var(--ink-3); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.clx-bar .cl-reset:hover { color: var(--ink); }
.clx-bar .cl-said { grid-column: 1 / -1; margin: 0; font-size: .9rem; font-weight: 600; color: var(--sea); overflow-wrap: anywhere; }
.clx-bar .cl-said:empty { display: none; }

/* This week's three */
.clx-week { padding-top: var(--sp-24); padding-bottom: 0; }
.clx-wk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4) var(--sp-16); margin-bottom: var(--sp-16); }
.clx-wk-next { margin: 0; color: var(--ink-3); font-size: .9rem; }
.clx-wk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); }
.clx-wk-i { position: relative; }
.clx-wk-i > .pcred { z-index: 2; }
.clx-wk-i a { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; color: #fffaf2; text-decoration: none; background: var(--sea-deep); }
.clx-wk-i img, .clx-wk-i .clx-drawn { position: absolute; inset: 0; border-radius: var(--radius) var(--radius) 0 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.clx-wk-i a:hover img { transform: scale(1.03); }
.clx-wk-i a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 36, .78), rgba(10, 20, 36, 0) 58%); }
.clx-wk-t { position: absolute; left: var(--sp-16); right: var(--sp-16); bottom: var(--sp-16); z-index: 1; display: grid; gap: var(--sp-4); }
.clx-wk-t b { font: 400 var(--h3-card)/1.1 var(--serif); }
.clx-wk-t small { font: 600 .82rem/1.2 var(--sans); color: var(--sun-2); }
.clx-wk-done { position: absolute; top: var(--sp-12); right: var(--sp-12); z-index: 1; padding: var(--sp-4) var(--sp-12); border-radius: 999px; background: var(--sea); font: 600 .82rem/1.4 var(--sans); }
.clx-wk-i .clx-drawn span { display: none; }

/* Group headings and jump chips */
.clx-sec { padding-top: var(--sp-24); scroll-margin-top: 176px; } /* Start ticking lands the chips below the header and score bar */
.clx-chips { position: relative; }
.clx-chips .chip { text-decoration: none; }
.clx-cc { margin-left: var(--sp-4); font-weight: 500; color: var(--ink-3); }
.clx-h { font: 400 var(--h2-sec)/1.1 var(--serif); }
.clx-gh { margin: var(--sp-l) 0 var(--sp-16); scroll-margin-top: 190px; }
.clx-gh span { font: 600 .82rem/1 var(--sans); color: var(--ink-3); margin-left: var(--sp-8); letter-spacing: .04em; }

/* Item cards: photo, tick and name, the fact, our guide and the source */
.clx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-16); }
.clx-item { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fffaf2; box-shadow: var(--shadow-1); overflow: hidden; scroll-margin-top: 190px; transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.clx-item:has(.cl-box:checked) { box-shadow: 0 0 0 2px var(--sea); background: #f1f6f4; }
.clx-ph { position: relative; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.clx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; transition: filter .3s var(--ease); }
.clx-ph .pcred { z-index: 2; }
.clx-item:has(.cl-box:checked) .clx-ph img { filter: saturate(.75) brightness(.9); }
.clx-when { position: absolute; left: var(--sp-12); top: var(--sp-12); z-index: 1; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(10, 20, 36, .72); color: #fffaf2; font: 600 .75rem/1.3 var(--sans); }
.clx-item .cl-box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clx-item label { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-16) var(--sp-16) 0; cursor: pointer; }
.clx-item label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the tap target */
.clx-item .cl-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(24, 34, 46, .3); background: #fffaf2; transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.clx-item .cl-tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .25s var(--ease); }
.clx-item .cl-box:checked + label .cl-tick { background: var(--sea); box-shadow: none; transform: scale(1.08); }
.clx-item .cl-box:checked + label .cl-tick svg { stroke-dashoffset: 0; }
.clx-item .cl-box:focus-visible + label .cl-tick { outline: 3px solid var(--sun); outline-offset: 2px; }
.clx-name { font: 600 1.12rem/1.25 var(--sans); color: var(--ink); }
.clx-fact { margin: var(--sp-8) var(--sp-16) 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.clx-links { position: relative; z-index: 1; margin: auto 0 0; padding: var(--sp-12) var(--sp-16) var(--sp-16); display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); align-items: baseline; font-size: .82rem; }
.clx-guide { font-weight: 600; color: var(--tile); text-decoration: none; }
.clx-guide:hover { text-decoration: underline; }
.clx-src { color: var(--ink-3); }
.clx-hiding .clx-item:has(.cl-box:checked) { display: none; }
.clx-hiding .clx-gh:has(+ .clx-list:not(:has(.cl-box:not(:checked)))) { display: none; } /* a group with nothing left */
.no-js .clx-score-sec { display: none; } /* the count needs the script; without it the cards still tick */
.clx-btns .cl-share { gap: 0; }

/* A place with no photo of its own: its name set large on the group's colour */
.clx-drawn { position: absolute; inset: 0; border-radius: var(--radius) var(--radius) 0 0; display: grid; place-items: end start; padding: var(--sp-16); overflow: hidden; color: #fffaf2;
  background: radial-gradient(circle at 85% 18%, rgba(247, 197, 111, .55) 0 14%, transparent 15%), repeating-linear-gradient(170deg, transparent 0 22px, rgba(255, 250, 242, .07) 22px 24px), var(--clx-bg, var(--sea)); }
.clx-drawn span { font: 400 var(--h2-card)/1.1 var(--serif); max-width: 85%; }
.clx-d-outdoors { --clx-bg: var(--sea); }
.clx-d-culture { --clx-bg: var(--tile-deep); }
.clx-d-seasonal { --clx-bg: var(--dusk); }
.clx-d-hidden { --clx-bg: var(--sage); }
.clx-d-food { --clx-bg: var(--tile); }

/* Keep playing */
.clx-more { padding-top: 0; }
.clx-more .clx-h { margin-bottom: var(--sp-16); }
.clx-more-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-12); }
.clx-more-l a { display: grid; gap: var(--sp-4); height: 100%; padding: var(--sp-16) var(--sp-20); border-radius: var(--radius); background: #fffaf2; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow .2s var(--ease); }
.clx-more-l a:hover { box-shadow: var(--shadow-2); }
.clx-more-l b { font: 400 var(--h2-card)/1.15 var(--serif); }
.clx-more-l span { font-size: .9rem; color: var(--ink-2); }

/* Score card dialog */
.clx-dlg { width: min(680px, calc(100vw - 32px)); padding: var(--sp-24); border: 0; border-radius: var(--radius); background: #fffaf2; color: var(--ink); box-shadow: var(--shadow-2); }
.clx-dlg::backdrop { background: rgba(10, 20, 36, .6); }
.clx-dlg-x { position: absolute; top: var(--sp-8); right: var(--sp-8); margin: 0; }
.clx-dlg-x button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font: 400 1.75rem/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.clx-dlg-h { font: 400 var(--h2-card)/1.2 var(--serif); margin: 0 0 var(--sp-16); }
.clx-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--radius-sm); background: var(--sea-deep); }
.clx-dlg-btns { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-16); }
.clx-dlg-btns .btn { padding: .75em 1.15em; font-size: .9rem; }
.clx-dlg-said { margin: var(--sp-12) 0 0; font-size: .9rem; font-weight: 600; color: var(--sea); overflow-wrap: anywhere; }
.clx-dlg-said:empty { display: none; }

@media (max-width: 899px) {
  .clx-hero-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .clx-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; height: 88px; order: -1; }
  .clx-mo-0 { grid-row: auto; }
  .clx-mo .pcred { right: var(--sp-4); bottom: var(--sp-4); }
  .clx-mo .pcred[open] .pcred-t { position: fixed; top: 88px; bottom: auto; left: var(--sp-16); right: var(--sp-16); max-width: none; } /* tiles are too small to hold it */
  .clx-wk { grid-template-columns: 1fr; }
  .clx-wk-i a { aspect-ratio: 16 / 7; }
  .clx-more-l { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .clx-bar { padding: var(--sp-8) var(--sp-12); gap: var(--sp-8) var(--sp-12); }
  .clx-ring-box { width: 48px; height: 48px; }
  .clx-bar .cl-score { font-size: 1rem; }
  .clx-bar .cl-score b { font-size: 1.5rem; }
  .clx-wide { display: none; }
  .clx-list { grid-template-columns: 1fr; }
  .clx-ph { aspect-ratio: 16 / 9; }
  .clx-more-l { grid-template-columns: 1fr; }
  .clx-dlg { padding: var(--sp-16); }
}
@media (prefers-reduced-motion: reduce) { .clx-ring-fg, .clx-item .cl-tick, .clx-item .cl-tick svg, .clx-wk-i img { transition: none; } }
