/* CASL free checks, redone 11 Oct 2026 (the user: "this is way not awesome enough ... redo these score thing to be
   better"). Loaded only by the check pages (build-pages.mjs, CHECK_VER), on top of css/pages.css, whose plain form
   styles stay as the fallback without JavaScript. js/checks.js adds .is-live to #ck-app and builds the stepper.
   The site's own tokens only (css/site.css): cream, ink, green, terracotta; Fraunces and Atkinson Hyperlegible. */

/* ---------------------------------------------------------------- icons (masks and backgrounds) */
.pg-hero-chips li::before, .ck-app.is-live .ck-opt input:checked + span::before, .ck-g-ic, .ck-li-ic, .ck-toggle::before, .ck-allyes-ic {
  background-repeat: no-repeat; background-position: center;
}

/* ---------------------------------------------------------------- the hero, with its scene */
.pg-hero--art .pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.pg-hero--art .lede { max-width: 34em; }
.pg-hero-art { position: relative; margin: 10px 8px 10px 0; padding: clamp(10px, 1.5vw, 16px); border-radius: 30px; background: var(--cream-50);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .18); transform: rotate(1.6deg); }
.pg-hero-art::before { content: ""; position: absolute; inset: -16px; border: 2px dashed rgba(234, 191, 156, .5); border-radius: 40px; transform: rotate(-3deg); pointer-events: none; }
.pg-hero-art svg { display: block; width: 100%; height: auto; border-radius: 20px; }
.pg-hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.pg-hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(253, 251, 246, .1);
  border: 1px solid rgba(253, 251, 246, .24); color: var(--cream-50); font-size: 15px; font-weight: 700; line-height: 1.2; }
.pg-hero-chips li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background-color: var(--terra-300); background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2317332B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pg-hero-stat { margin: 20px 0 0; max-width: 36em; padding: 12px 16px 12px 18px; border-left: 4px solid var(--terra-300); border-radius: 4px 14px 14px 4px;
  background: rgba(0, 0, 0, .16); color: var(--cream-100); font-size: 16px; line-height: 1.5; }
.pg-hero-stat strong { color: var(--cream-50); }
.pg-hero-art .ck-blink { animation: ckBlink 2.6s steps(1) infinite; }
.pg-hero-art .ck-glow { animation: ckGlow 3.2s ease-in-out infinite; }
@media (max-width: 900px) {
  .pg-hero--art .pg-hero-grid { grid-template-columns: 1fr; }
  .pg-hero-art { width: 100%; max-width: 440px; margin: 14px auto 6px; transform: rotate(1deg); }
}

/* ---------------------------------------------------------------- the check, as an app */
.pg .ck-wrap { max-width: 1120px; }
.ck-app:not(.is-live) .ck-side { display: none; }
.ck-app.is-live { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); margin-top: 28px; overflow: hidden; overflow: clip;
  background: #fff; border: 1.5px solid var(--ink-100); border-radius: 32px; box-shadow: var(--shadow-lg); }
.ck-app.is-live .ck-side { position: relative; padding: clamp(18px, 3vw, 36px);
  background: radial-gradient(120% 90% at 30% 15%, var(--cream-50) 0%, var(--cream-100) 55%, var(--cream-200) 100%); border-right: 1.5px solid var(--ink-100); }
/* the scene stays in view while the results run on below it */
.ck-app.is-live .ck-side-in { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 8px; padding-top: clamp(0px, 2vw, 24px); }
.ck-app.is-live .ck-main { display: flex; flex-direction: column; min-height: 540px; padding: clamp(22px, 3.4vw, 44px); }
.ck-app.is-live .ck-form { display: flex; flex-direction: column; flex: 1; margin: 0; }
.ck-app.is-live [hidden] { display: none !important; }
.ck-done > .wrap > .pg-intro { display: none; }
.ck-app.is-live .ck-group { margin: 0; }
.ck-app.is-live .ck-group-h, .ck-app.is-live .ck-qn, .ck-app.is-live .ck-submit, .ck-app.is-live .ck-count { display: none; }
.ck-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* progress: the room you're in, where you are, a segment per question with a gap between rooms */
.ck-top-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.ck-sect { font-size: 13.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-800); }
.ck-pos { font-size: 15px; font-weight: 700; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.ck-segs { display: flex; gap: 4px; margin-top: 12px; }
.ck-segs i { flex: 1; height: 8px; border-radius: 99px; background: var(--cream-200); transition: background-color .3s; }
.ck-segs i.gap { margin-left: 8px; }
.ck-segs i.done { background: var(--green-600); }
.ck-segs i.cur { background: var(--terra-500); }

/* one question at a time */
.ck-app.is-live .ck-q { display: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* a fieldset draws its legend above its padding, so the space above the question is a margin */
.ck-app.is-live .ck-q.is-current { display: block; margin-top: 28px; animation: ckIn .4s var(--ease-out); }
.ck-app.is-live .ck-q legend { float: none; display: block; width: auto; margin: 0; padding: 0; outline: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.22; letter-spacing: -.012em; color: var(--ink-900); text-wrap: balance; }
.ck-app.is-live .ck-q legend:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 6px; }
.ck-app.is-live .ck-hint { margin: 10px 0 0; padding: 0; font-size: 16.5px; }
.ck-app.is-live .ck-opts { display: grid; gap: 12px; margin: 0; padding: 26px 0 0; }
.ck-app.is-live .ck-opt { display: block; }
.ck-app.is-live .ck-opt span { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 62px; padding: 12px 18px 12px 16px; border: 2px solid var(--ink-100);
  border-radius: 18px; background: var(--cream-50); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink-900); text-align: left;
  transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.ck-app.is-live .ck-opt span::before { content: ""; flex: none; width: 30px; height: 30px; margin: 0; border: 2.5px solid var(--ink-200); border-radius: 50%;
  background-color: #fff; transform: none; }
.ck-app.is-live .ck-opt:hover span { border-color: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ck-app.is-live .ck-opt input:checked + span { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.ck-app.is-live .ck-opt input:checked + span::before { border-color: var(--green-700); background-color: var(--green-700); background-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FDFBF6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: ckPop .32s var(--ease-out); }
.ck-app.is-live .ck-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ck-app.is-live .ck-opt span::after { content: attr(data-k); margin-left: auto; padding: 1px 8px; border: 1.5px solid var(--ink-200); border-radius: 7px;
    font-size: 13px; font-weight: 800; color: var(--ink-500); }
}
.ck-app.is-live .ck-err { margin: 16px 0 0; }
.ck-nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.ck-back { padding: 10px 6px; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink-700); cursor: pointer; }
.ck-back:hover { color: var(--green-700); }
.ck-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ck-next { margin-left: auto; }
/* before an answer: quieter, but still readable (a faded button failed the contrast check) */
.ck-next.is-wait { border-color: var(--ink-200); background: var(--cream-100); color: var(--ink-700); box-shadow: none; }

/* ---------------------------------------------------------------- the scene: the room being asked about lights up */
.ck-scene svg { display: block; width: 100%; height: auto; }
.ck-scene .ck-room { transition: opacity .45s var(--ease-out), filter .45s var(--ease-out); }
.ck-scene.is-asking .ck-room { opacity: .26; filter: saturate(.4); }
.ck-scene.is-asking .ck-room.is-on { opacity: 1; filter: none; }
.ck-scene .ck-blink { animation: ckBlink 2.6s steps(1) infinite; }
.ck-scene .ck-glow { animation: ckGlow 3.2s ease-in-out infinite; }
.ck-spot { opacity: 0; transition: opacity .35s; }
.ck-spot-halo { fill: var(--terra-300); opacity: 0; transform-box: fill-box; transform-origin: center; }
.ck-spot-disc { fill: var(--green-900); stroke: #fff; stroke-width: 2.5; }
.ck-spot-dot { fill: #fff; }
.ck-spot-ok, .ck-spot-bang { display: none; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-scene.is-asking .ck-spot.is-cur { opacity: 1; }
.ck-scene.is-asking .ck-spot.is-cur .ck-spot-halo { opacity: .5; animation: ckHalo 1.6s ease-in-out infinite; }
.ck-scene.is-asking .ck-spot[data-v="yes"], .ck-scene.is-asking .ck-spot[data-v="partly"], .ck-scene.is-asking .ck-spot[data-v="no"], .ck-scene.is-asking .ck-spot[data-v="na"] { opacity: .9; }
.ck-app.is-results .ck-spot { opacity: 1; }
.ck-spot[data-v="yes"] .ck-spot-disc { fill: var(--green-600); }
.ck-spot[data-v="partly"] .ck-spot-disc { fill: var(--terra-500); }
.ck-spot[data-v="no"] .ck-spot-disc { fill: var(--terra-700); }
.ck-spot[data-v="na"] .ck-spot-disc { fill: var(--ink-200); }
.ck-spot[data-v="yes"] .ck-spot-dot, .ck-spot[data-v="partly"] .ck-spot-dot, .ck-spot[data-v="no"] .ck-spot-dot { display: none; }
.ck-spot[data-v="yes"] .ck-spot-ok, .ck-spot[data-v="partly"] .ck-spot-bang, .ck-spot[data-v="no"] .ck-spot-bang { display: inline; }
.ck-app.is-results .ck-spot[data-v="partly"] .ck-spot-halo, .ck-app.is-results .ck-spot[data-v="no"] .ck-spot-halo { opacity: .45; animation: ckHalo 2.4s ease-in-out infinite; }
.ck-scene-cap { min-height: 1.4em; margin: 4px 0 0; text-align: center; font-size: 13.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }

/* the finder's list, filling as you answer */
.ck-app.is-live .ck-found { justify-content: flex-start; }
.ck-found-k { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-800); }
.ck-found-n { margin: 2px 0 10px; font-size: 18px; font-weight: 700; color: var(--ink-700); }
.ck-found-n span { display: block; font-family: var(--serif); font-size: 68px; font-weight: 600; line-height: 1; color: var(--green-900); font-variant-numeric: tabular-nums; }
.ck-found-lv { margin-top: 12px; }
.ck-found-lv > p { margin: 0 0 7px; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-700); }
.ck-found-lv ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ck-found-lv li { padding: 6px 12px; border: 1.5px solid var(--green-200); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 700; color: var(--green-900); animation: ckIn .35s var(--ease-out); }
.ck-found-lv li.none { border-style: dashed; border-color: var(--ink-200); background: none; color: var(--ink-500); font-weight: 600; }

/* ---------------------------------------------------------------- working it out */
.ck-app.is-working .ck-form, .ck-app.is-working .ck-top { display: none; }
.ck-working { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 340px; margin: auto; font-size: 20px; font-weight: 800; color: var(--green-800); }
.ck-spinner { width: 30px; height: 30px; border: 4px solid var(--green-100); border-top-color: var(--green-700); border-radius: 50%; animation: ckSpin .8s linear infinite; }

/* ---------------------------------------------------------------- results */
.ck-app.is-live .ck-result { margin: 0; padding: 0; border: 0; animation: ckIn .45s var(--ease-out); }
.ck-res-head { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 30px); }
.ck-dial { position: relative; flex: none; width: 172px; height: 172px; }
.ck-dial svg { display: block; width: 100%; height: 100%; }
.ck-dial-bg { fill: none; stroke: var(--cream-200); stroke-width: 16; }
.ck-dial-fg { fill: none; stroke: var(--green-700); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.25s var(--ease-out); }
.ck-dial.lv-1 .ck-dial-fg { stroke: var(--green-600); }
.ck-dial.lv-2 .ck-dial-fg { stroke: var(--terra-500); }
.ck-dial.lv-3 .ck-dial-fg { stroke: var(--terra-700); }
.ck-dial-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ck-dial-num span { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--green-900); font-variant-numeric: tabular-nums; }
.ck-dial-num small { margin-top: 6px; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-500); }
.ck-big { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 156px; height: 156px; border-radius: 50%;
  background: var(--green-900); color: var(--cream-50); line-height: 1; box-shadow: var(--shadow-md); }
.ck-big span { font-family: var(--serif); font-size: 62px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-big small { margin-top: 6px; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-300); }
.ck-res-sum { flex: 1; min-width: 230px; }
.ck-res-k { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-800); }
.ck-res-level { margin: 4px 0 6px; outline: none; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; color: var(--green-900); }
.ck-res-level.lv-2, .ck-res-level.lv-3 { color: var(--terra-800); }
.ck-res-band { margin: 0; font-size: 17.5px; color: var(--ink-700); }
.ck-res-note { margin: 8px 0 0; font-size: 15.5px; font-weight: 700; color: var(--green-700); }

.ck-groups { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.ck-groups li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 4px 12px; padding: 11px 14px; border: 1.5px solid var(--ink-100); border-radius: 15px; background: var(--cream-50); }
.ck-g-ic { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; background-size: 15px; }
.ck-g-l { font-size: 16.5px; font-weight: 700; color: var(--ink-900); }
.ck-g-s { font-size: 14.5px; font-weight: 800; color: var(--ink-700); text-align: right; }
.ck-g-bar { grid-column: 2 / 4; height: 6px; overflow: hidden; border-radius: 99px; background: var(--cream-200); }
.ck-g-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-600); }
.ck-groups .is-part .ck-g-bar i { background: var(--terra-500); }
.ck-groups .is-todo .ck-g-bar i { background: var(--terra-700); }

/* ticks and marks, shared */
.ck-groups .is-ok .ck-g-ic, .ck-li--yes .ck-li-ic, .ck-li--fixed .ck-li-ic { background-color: var(--green-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ck-groups .is-part .ck-g-ic, .ck-groups .is-todo .ck-g-ic, .ck-li--partly .ck-li-ic, .ck-li--no .ck-li-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.5v8.5M12 18.4v.2' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ck-groups .is-part .ck-g-ic, .ck-li--partly .ck-li-ic { background-color: var(--terra-500); }
.ck-groups .is-todo .ck-g-ic, .ck-li--no .ck-li-ic { background-color: var(--terra-700); }
.ck-li--na .ck-li-ic, .ck-li--none .ck-li-ic { background-color: var(--ink-200); }

.ck-h3 { margin: 32px 0 12px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); font-weight: 600; letter-spacing: -.01em; color: var(--ink-900); }
.ck-fixes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ck-fix { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 18px 16px; border: 1.5px solid var(--ink-100); border-radius: 20px; background: #fff;
  box-shadow: var(--shadow-sm); animation: ckIn .45s var(--ease-out) both; }
.ck-fix:nth-child(2) { animation-delay: .08s; }
.ck-fix:nth-child(3) { animation-delay: .16s; }
.ck-fix-n { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-900);
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--cream-50); }
.ck-fix-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.ck-fix-tags:empty { display: none; }
.ck-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ck-tag--law { background: var(--terra-100); color: var(--terra-800); }
.ck-tag--big { background: var(--green-100); color: var(--green-800); }
.ck-tag--quick { background: var(--cream-200); color: var(--ink-700); }
.ck-tag--part { border: 1px solid var(--ink-200); background: var(--cream-50); color: var(--ink-700); }
.ck-fix-t { margin: 0; font-size: 19.5px; line-height: 1.3; color: var(--ink-900); }
.ck-fix-tip { margin: 6px 0 0; font-size: 16.5px; color: var(--ink-700); }
.ck-fix-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.ck-fix-link { border-bottom: 2px solid var(--green-200); font-weight: 800; color: var(--green-700); text-decoration: none; }
.ck-fix-link:hover { border-color: var(--green-700); color: var(--green-900); }
.ck-fix-link--quiet { border-color: var(--ink-200); font-weight: 700; color: var(--ink-700); }
.ck-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border: 2px solid var(--ink-200); border-radius: 999px; background: #fff;
  font: inherit; font-size: 15px; font-weight: 800; color: var(--ink-700); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ck-toggle::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--ink-200); border-radius: 6px; background-color: #fff; background-size: 13px; }
.ck-toggle:hover { border-color: var(--green-600); }
.ck-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ck-toggle[aria-pressed="true"] { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }
.ck-toggle[aria-pressed="true"]::before { border-color: var(--green-600); background-color: var(--green-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ck-toggle--sm { padding: 4px 10px 4px 6px; font-size: 13.5px; }
.ck-toggle--sm::before { width: 16px; height: 16px; background-size: 11px; }
.ck-allyes { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 18px; border: 1.5px solid var(--green-200); border-radius: 18px; background: var(--green-50); }
.ck-allyes p { margin: 0; font-size: 17.5px; font-weight: 700; color: var(--green-900); }
.ck-allyes-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background-color: var(--green-600); background-size: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.ck-all { margin-top: 22px; border: 1.5px solid var(--ink-100); border-radius: 18px; background: var(--cream-50); }
.ck-all summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 800; color: var(--green-800); }
.ck-all summary::-webkit-details-marker { display: none; }
.ck-all summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--green-700); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.ck-all[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ck-all summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 16px; }
.ck-list { display: grid; margin: 0; padding: 0 18px 12px; list-style: none; }
.ck-li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px 12px; padding: 11px 0; border-top: 1px solid var(--ink-100); }
.ck-li-ic { width: 22px; height: 22px; border-radius: 50%; background-size: 13px; }
.ck-li-t { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.ck-li-s { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-align: right; text-transform: uppercase; color: var(--ink-500); }
.ck-li .ck-toggle { grid-column: 2 / 4; justify-self: start; }

.ck-progs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ck-prog { padding: 16px 18px; border: 1.5px solid var(--ink-100); border-radius: 18px; background: #fff; animation: ckIn .4s var(--ease-out) both; }
.ck-prog h4 { margin: 0; font-size: 19px; line-height: 1.3; color: var(--ink-900); }
.ck-prog p { margin: 6px 0 0; font-size: 16px; color: var(--ink-700); }
.ck-prog.is-fixed { border-color: var(--green-200); background: var(--green-50); }
.ck-caveat { margin: 24px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--cream-100); font-size: 15.5px; color: var(--ink-700); }

/* keep it: print, email, remind, share, again */
.ck-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1.5px solid var(--ink-100); }
.ck-act { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 2px solid var(--green-700); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 800; color: var(--green-800); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ck-act:hover { background: var(--green-50); }
.ck-act:first-child { background: var(--green-700); color: var(--cream-50); }
.ck-act:first-child:hover { border-color: var(--green-800); background: var(--green-800); }
.ck-act--quiet { border-color: var(--ink-200); color: var(--ink-700); }
.ck-act:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ck-act-ic { flex: none; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ck-act-ic--print { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 17H4a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2M6 14h12v7H6z'/%3E%3C/svg%3E"); }
.ck-act-ic--mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.ck-act-ic--cal { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.ck-act-ic--share { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6M16 7l-4-4-4 4M12 3v13'/%3E%3C/svg%3E"); }
.ck-act-ic--again { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.6-6.1M3.5 4v5h5'/%3E%3C/svg%3E"); }

.ck-toast { position: fixed; left: 50%; bottom: 22px; z-index: 1000; max-width: min(560px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 16px;
  background: var(--green-900); box-shadow: var(--shadow-xl); color: var(--cream-50); font-size: 16.5px; font-weight: 700; text-align: center;
  transform: translate(-50%, 160%); transition: transform .35s var(--ease-out); }
.ck-toast.is-on { transform: translate(-50%, 0); }
.ck-confetti { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.ck-print-head { display: none; }

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 860px) {
  .ck-app.is-live { grid-template-columns: 1fr; border-radius: 26px; }
  .ck-app.is-live .ck-side { padding: 14px 16px 10px; border-right: 0; border-bottom: 1.5px solid var(--ink-100); }
  .ck-app.is-live .ck-scene svg { width: auto; max-width: 100%; max-height: 210px; margin: 0 auto; }
  .ck-app.is-live:not(.is-results) .ck-scene-cap { display: none; }
  .ck-app.is-live .ck-main { min-height: 0; padding: 20px 18px 22px; }
  .ck-app.is-results .ck-found { display: none; }
  .ck-found-n span { display: inline; margin-right: 6px; font-size: 44px; }
  .ck-found-lv { margin-top: 8px; }
}
@media (max-width: 520px) {
  .ck-app.is-live .ck-scene svg { max-height: 170px; }
  .ck-app.is-live .ck-q legend { margin-top: 22px; font-size: 22px; }
  .ck-app.is-live .ck-opts { padding-top: 20px; gap: 10px; }
  .ck-app.is-live .ck-opt span { min-height: 58px; font-size: 18px; }
  .ck-dial { width: 140px; height: 140px; }
  .ck-dial-num span { font-size: 46px; }
  .ck-big { width: 128px; height: 128px; }
  .ck-big span { font-size: 50px; }
  .ck-fix { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .ck-fix-n { width: 34px; height: 34px; font-size: 17px; }
  .ck-act { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 11px 10px; font-size: 15px; }
  .ck-act:first-child { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- printing the plan */
@media print {
  .site-header, .site-footer, .pg-hero, .pg-cta-sec, .pg-faq, .pg-more, .pg-notes, .ck-share, .ck-toggle, .ck-top, .ck-nav, .ck-toast, .ck-confetti,
  .pg-check > .wrap > .pg-h2, .pg-check > .wrap > .pg-intro, .ck-found, .ck-scene-cap { display: none !important; }
  body { background: #fff !important; }
  .pg-sec { padding: 0 !important; }
  /* on paper: the CASL line first, then the scene small, then the plan at full width */
  .ck-app.is-live { display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .ck-app.is-live .ck-main, .ck-app.is-live .ck-result { display: contents; }
  .ck-print-head { order: -2; }
  .ck-app.is-live .ck-side { order: -1; width: 100%; max-width: 300px; margin: 0 auto 6px; padding: 0; border: 0; background: none; }
  .ck-app.is-live .ck-side-in { position: static; padding: 0; }
  .ck-print-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #17332B; font-size: 12px; }
  .ck-fix, .ck-prog, .ck-groups li { break-inside: avoid; page-break-inside: avoid; box-shadow: none; animation: none; }
  .ck-h3 { break-after: avoid; page-break-after: avoid; }
  .ck-all { border: 0; background: none; }
  .ck-all summary { display: none; }
  .ck-list { padding: 0; }
  .ck-dial-fg { transition: none; }
  a.ck-fix-link[data-print]::after { content: " " attr(data-print); font-weight: 400; font-size: 11px; color: #555; }
  a.ck-fix-link [aria-hidden] { display: none; }
}

/* ---------------------------------------------------------------- motion */
@keyframes ckIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ckPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ckHalo { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1.18); opacity: .18; } }
@keyframes ckBlink { 0%, 88% { opacity: 1; } 90%, 98% { opacity: .15; } }
@keyframes ckGlow { 0%, 100% { opacity: .25; } 50% { opacity: .55; } }
@keyframes ckSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ck-app *, .ck-app, .pg-hero-art * { animation: none !important; transition: none !important; }
  .ck-toast { transition: none; }
}
