/* ============================================================================
   COMPLIANCE CALENDAR  (loads after hybrid.css and group-theme.css)
   Used only by /compliance-calendar/, /compliance/ and /compliance/<slug>/.
   Everything is scoped under .cc so nothing here touches the rest of the site.

   Colour carries one meaning on these pages, always with a text label:
     sunrise orange  = LAW               (legislation says you must)
     dusk blue       = BRITISH STANDARD  (a standard recommends it)
     noon green      = GUIDANCE          (a regulator or industry body recommends it)
     night purple    = NOT FIXED         (no fixed interval, or evidence not settled)
   Shape backs the colour up: law is solid, standard is outlined, guidance is dashed.
   ============================================================================ */

.cc {
  --cc-law: #B75316;      /* AA on cream; the bright token is kept for fills behind white text */
  --cc-std: #2E5FAB;
  --cc-gui: #2f7223;
  --cc-open: #7A2E8F;
  --cc-law-soft: rgba(232,116,44,0.12);
  --cc-std-soft: rgba(46,95,171,0.10);
  --cc-gui-soft: rgba(61,142,46,0.12);
  --cc-open-soft: rgba(122,46,143,0.09);
  --cc-card: #fffdf8;
}
.cc [hidden] { display: none !important; }

/* links: never browser blue. Plain text links take the site rule (inherit, underline, orange on hover);
   links with a class (chips, rows, buttons) carry their own look below. */
.cc a { color: inherit; }

/* focus: visible everywhere, on cream and on dusk */
.cc a:focus-visible, .cc button:focus-visible, .cc summary:focus-visible, .cc input:focus-visible { outline: 3px solid var(--cc-std); outline-offset: 3px; }
.cc .p-hero a:focus-visible, .cc .cc-deliver a:focus-visible { outline-color: var(--dawn-amber); }

/* the house FAQ marker uses a dash when open; these pages use a minus sign */
.cc .faq-item[open] summary::after { content: "\2212"; }
.cc .faq-item summary::after { color: var(--cc-law); }

/* ───────────── hero ───────────── */
.cc .p-hero.cc-hero { padding-top: clamp(84px, 8.4vw, 120px); padding-bottom: clamp(30px, 3.4vw, 46px); }
.cc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr); gap: clamp(28px, 4vw, 60px); align-items: end; }
.cc-hero--q h1 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1; max-width: 23ch; text-wrap: balance; }
.cc-hero--tool h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 0.96; }
.cc-hero .kicker a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cc-hero .lede { max-width: 54ch; }
.cc-stats { display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3vw, 44px); margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(244,234,216,0.28); list-style: none; }
.cc-stats li { display: flex; flex-direction: column; gap: 4px; min-width: 84px; }
.cc-stats b { font-family: var(--d-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 50px); line-height: 0.9; color: #fff; letter-spacing: 0.01em; }
.cc-stats span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dawn-amber); }
.cc-stats .is-date b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
.cc-hero .cta-row { margin-top: 28px; }

/* the rhythm figure: twelve months across, one row per rhythm */
.cc-fig { border: 1px solid rgba(244,234,216,0.3); padding: 20px 22px 18px; background: rgba(16,22,44,0.3); }
.cc-fig-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dawn-amber); margin: 0 0 14px; }
.cc-fig-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(244,234,216,0.14); }
.cc-fig-row > span { font-family: var(--d-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,234,216,0.9); white-space: nowrap; }
.cc-fig .cc-dots i { background: var(--dawn-amber); }
.cc-fig .cc-dots .bar { background: var(--dawn-amber); }
.cc-fig-foot { display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin-top: 8px; }
.cc-fig-foot div { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; color: rgba(244,234,216,0.55); text-align: center; }
@media (max-width: 900px) { .cc-hero-grid { grid-template-columns: 1fr; } .cc-fig { display: none; } }

/* a strip of twelve months with marks on it (hero figure, rhythm headers) */
.cc-dots { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; height: 14px; }
.cc-dots i { grid-row: 1; justify-self: center; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cc-dots .bar { grid-row: 1; grid-column: 1 / -1; height: 6px; border-radius: 3px; background: currentColor; }

/* ───────────── badges: law, British Standard, guidance ───────────── */
.cc-b { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.2; padding: 5px 8px 4px; border: 2px solid; white-space: nowrap; }
.cc-b--law { background: var(--cc-law); border-color: var(--cc-law); color: #fff; }
.cc-b--standard { border-color: var(--cc-std); color: var(--cc-std); background: var(--cc-std-soft); }
.cc-b--guidance { border-color: var(--cc-gui); border-style: dashed; color: var(--cc-gui); background: var(--cc-gui-soft); }
.cc-b--open { border-color: var(--cc-open); color: var(--cc-open); background: var(--cc-open-soft); }
.cc-b--plain { border-color: var(--ink); color: var(--ink); }
.cc-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* rhythm chips: small, quiet, ink */
.cc-r { display: inline-block; font-family: var(--d-display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 5px 8px 4px; background: var(--ink); color: var(--cream); white-space: nowrap; }
.cc-r--none { background: var(--cc-open); }
.cc-rs { display: flex; flex-wrap: wrap; gap: 5px; }

/* ───────────── scope and disclaimer ───────────── */
.cc-disc { display: grid; grid-template-columns: auto 1fr; gap: 6px clamp(16px, 2.4vw, 32px); align-items: start; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0 22px; margin: clamp(36px, 4vw, 56px) 0 0; }
.cc-disc-k { grid-row: span 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0; }
.cc-disc-k b { font-family: var(--d-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.cc-disc p { margin: 0; font-size: 14.5px; line-height: 1.6; font-weight: 500; color: var(--ink-2); max-width: 86ch; }
.cc-disc p strong { color: var(--ink); }
@media (max-width: 700px) { .cc-disc { grid-template-columns: 1fr; } .cc-disc-k { flex-direction: row; align-items: center; grid-row: auto; } }

/* ============================================================================
   THE PLANNER
   ============================================================================ */

.cc-builder { display: none; padding-top: clamp(36px, 4vw, 60px); }
.js .cc-builder { display: block; }
.cc-nojs { margin: clamp(28px, 3vw, 44px) 0 0; padding: 14px 18px; border-left: 4px solid var(--cc-open); background: var(--cc-open-soft); font-weight: 600; max-width: 70ch; }

.cc-step { display: grid; grid-template-columns: clamp(92px, 10vw, 150px) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); border-top: 3px solid var(--ink); padding: clamp(22px, 2.6vw, 36px) 0 clamp(26px, 3vw, 44px); }
.cc-step-n { font-family: var(--d-display); font-weight: 800; font-size: clamp(46px, 5.5vw, 82px); line-height: 0.9; }
.cc-step-h { font-family: var(--d-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 8px; }
.cc-step-p { font-size: 15.5px; line-height: 1.55; font-weight: 500; color: var(--ink-2); max-width: 62ch; margin: 0 0 20px; }
@media (max-width: 700px) {
  .cc-step { grid-template-columns: 1fr; gap: 6px; }
  .cc-step-n { font-size: 34px; color: var(--cc-law); }
}

/* building type and height: big radio tiles */
.cc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cc-tiles.is-bands { grid-template-columns: 1fr; } }
.cc-tile { position: relative; display: block; cursor: pointer; }
.cc-tile input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.cc-tile-box { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; height: 100%; padding: 16px 18px 14px; border: 2px solid var(--ink); background: var(--cc-card); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.cc-tile-name { font-family: var(--d-display); font-weight: 700; font-size: clamp(21px, 2vw, 27px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.cc-tile-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.cc-tile:hover .cc-tile-box { background: var(--paper-2); transform: translateY(-2px); }
.cc-tile input:checked + .cc-tile-box { background: var(--night); color: var(--night-text); border-color: var(--night);
  background-image: linear-gradient(90deg, var(--m-orange) 0 25%, var(--m-green) 25% 50%, var(--m-blue) 50% 75%, var(--m-purple) 75% 100%); background-size: 100% 8px; background-repeat: no-repeat; background-position: 0 100%; }
.cc-tile input:checked + .cc-tile-box .cc-tile-sub { color: var(--dawn-amber); }
.cc-tile input:focus-visible + .cc-tile-box { outline: 3px solid var(--cc-std); outline-offset: 3px; }
.cc-tiles.is-bands .cc-tile-box { min-height: 84px; }
.cc-band { margin-top: 22px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.cc-sub-h { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.cc-band .cc-step-p { margin-bottom: 14px; }
.needs-band .cc-band { border-top: 3px solid var(--cc-law); }

/* systems: tick chips, grouped as the dataset groups them */
.cc-sys-empty { font-size: 15.5px; font-weight: 600; color: var(--ink-2); margin: 0; padding: 16px 18px; border: 2px dashed rgba(28,24,18,0.3); max-width: 62ch; }
.is-picked .cc-sys-empty { display: none; }
.cc-sys-wrap { display: none; }
.is-picked .cc-sys-wrap { display: block; }
.cc-sysgroup { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.cc-sysgroup:first-of-type { border-top: 0; padding-top: 0; }
.cc-sysgroup-h { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 9px 0 0; }
@media (max-width: 860px) { .cc-sysgroup { grid-template-columns: 1fr; } .cc-sysgroup-h { margin-top: 0; } }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip { position: relative; cursor: pointer; }
.cc-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-chip span { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 14px 8px 10px; border: 1.5px solid rgba(28,24,18,0.45); background: transparent; font-size: 14px; font-weight: 600; line-height: 1.25; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
.cc-chip span::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; background: transparent; }
.cc-chip:hover span { border-color: var(--ink); background: var(--paper-2); }
.cc-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cc-chip input:checked + span::before { border-color: var(--cream); background: var(--cream) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.4l3.2 3.2L13 4.6' fill='none' stroke='%231c1812' stroke-width='2.4'/></svg>") center / 100% no-repeat; }
.cc-chip input:focus-visible + span { outline: 3px solid var(--cc-std); outline-offset: 2px; }
.cc-tools { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; align-items: center; }
.cc-textbtn { appearance: none; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.cc-textbtn:hover { color: var(--cc-law); }
.cc-tools-note { font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* start date */
.cc-date-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cc-date { font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); padding: 11px 14px; min-height: 50px; border: 2px solid var(--ink); border-radius: 0; background: var(--cc-card); }
.cc .cc-date:focus, .cc .cc-date:focus-within { outline: 3px solid var(--cc-std); outline-offset: 3px; }
.cc-date-note { font-size: 13.5px; color: var(--ink-2); font-weight: 500; max-width: 46ch; }

/* ───────────── the plan ───────────── */
.cc-plan { border-top: 3px solid var(--ink); padding-top: clamp(30px, 3.4vw, 50px); scroll-margin-top: 90px; }
.cc-plan-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (max-width: 900px) { .cc-plan-top { grid-template-columns: 1fr; align-items: start; } }
.cc-plan .kicker { margin-bottom: 14px; }
.cc-plan-h .if-picked, .is-picked .cc-plan-h .if-all { display: none; }
.is-picked .cc-plan-h .if-picked { display: inline; }
.cc-summary { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; font-weight: 500; color: var(--ink); margin: 0; max-width: 56ch; }
.cc-summary strong { font-weight: 700; }
.cc-summary .law { color: var(--cc-law); font-weight: 700; }

/* how the tasks split by basis */
.cc-split { margin-top: 26px; }
.cc-bar { display: flex; height: 14px; background: var(--line); }
.cc-bar span { display: block; min-width: 0; transition: flex-grow 0.3s ease; }
.cc-bar .law { background: var(--cc-law); }
.cc-bar .standard { background: var(--cc-std); }
.cc-bar .guidance { background: repeating-linear-gradient(135deg, var(--cc-gui) 0 6px, #58a14a 6px 10px); }
.cc-key { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.cc-key li { display: grid; grid-template-columns: 2.6ch 150px minmax(0, 1fr); align-items: center; gap: 4px 12px; font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.cc-key b { font-family: var(--d-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--ink); text-align: right; }
.cc-key .cc-b { justify-self: start; }
@media (max-width: 760px) {
  .cc-key { gap: 12px; }
  .cc-key li { grid-template-columns: 2.6ch minmax(0, 1fr); }
  .cc-key li > span:last-child { grid-column: 2; }
}

/* actions */
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.cc-actions .btn { cursor: pointer; font-size: 16px; padding: 13px 20px; }
.cc button.btn { font-family: var(--d-display); border-radius: 0; }
.cc button.btn[disabled] { opacity: 0.38; cursor: not-allowed; transform: none; }
.cc-status { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 0; min-height: 1.5em; }
.cc-status.ok { color: var(--cc-gui); }
.cc-share { display: none; margin-top: 10px; gap: 8px; align-items: center; flex-wrap: wrap; }
.cc-share.on { display: flex; }
.cc-share input { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 14px; padding: 9px 10px; border: 2px solid var(--ink); background: var(--cc-card); color: var(--ink); border-radius: 0; }

/* jump links: one per rhythm, with a live count */
.cc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.cc a.cc-jump-a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px 7px; border: 2px solid var(--ink); text-decoration: none; font-family: var(--d-display); font-weight: 700; font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }
.cc-jump-a b { font-family: var(--d-body); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
.cc a.cc-jump-a:hover { background: var(--ink); color: var(--cream); }
.cc-jump-a:hover b { color: var(--cream); }
.cc-jump .is-none .cc-jump-a { border-color: var(--cc-open); color: var(--cc-open); }
.cc-jump .is-none .cc-jump-a b { color: var(--cc-open); }
.cc .cc-jump .is-none a.cc-jump-a:hover { background: var(--cc-open); color: #fff; }
.cc-jump .is-none .cc-jump-a:hover b { color: #fff; }

.cc-wait { display: none; margin: 28px 0 0; padding: 22px 24px; border: 2px dashed var(--cc-law); font-size: 17px; font-weight: 600; max-width: 60ch; }
.needs-band .cc-wait { display: block; }
.needs-band .cc-year, .needs-band .cc-rhythms, .needs-band .cc-jump, .needs-band .cc-split { display: none; }

/* ───────────── 12-month view ───────────── */
.cc-year { margin-top: clamp(30px, 3.4vw, 48px); border: 3px solid var(--ink); background: var(--cc-card); }
.cc-year > summary { position: relative; cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; padding: 16px 58px 16px clamp(14px, 2vw, 24px); }
.cc-year > summary::-webkit-details-marker { display: none; }
.cc-year > summary h3 { font-family: var(--d-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin: 0; }
.cc-year > summary span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cc-year > summary::after { content: "+"; position: absolute; right: clamp(14px, 2vw, 24px); top: 18px; font-family: var(--d-display); font-weight: 800; font-size: 34px; line-height: 0.8; color: var(--cc-law); }
.cc-year[open] > summary::after { content: "\2212"; }
.cc-year-body { padding: 0 clamp(14px, 2vw, 24px) 20px; }
.cc-yr-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
.cc-yr-key li { display: flex; align-items: center; gap: 8px; }
.cc-yr-key i { flex: none; }

.cc-yr-head, .cc-yr-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0 18px; align-items: center; }
.cc-yr-head { position: sticky; top: var(--cc-nav-h, 72px); z-index: 4; background: var(--cc-card); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 7px 0 6px; }
.cc-yr-head > span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.cc-yr-months { display: grid; grid-template-columns: repeat(12, 1fr); text-align: center; font-family: var(--d-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.cc-yr-months span:first-child { color: var(--cc-law); }
.cc-yr-group { font-family: var(--d-display); font-weight: 800; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; padding: 16px 0 5px; border-bottom: 1px solid var(--ink); display: flex; gap: 10px; align-items: baseline; }
.cc-yr-group small { font-family: var(--d-body); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--ink-2); }
.cc-yr-row { border-bottom: 1px solid var(--line); min-height: 34px; }
.cc-yr-label { font-size: 13.5px; line-height: 1.3; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 500; }
.cc-yr-label b { color: var(--ink); font-weight: 700; }
.cc-yr-strip { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; height: 34px;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.cc-yr-strip i, .cc-yr-key i { grid-row: 1; justify-self: center; display: block; width: 13px; height: 13px; box-sizing: border-box; }
.cc-yr-strip .bar { grid-row: 1; grid-column: 1 / -1; height: 9px; margin: 0 3px; box-sizing: border-box; }
.cc-yr-strip em { grid-row: 1; grid-column: 2 / -1; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* law: solid disc. standard: solid square. guidance: open ring. */
.m-law i, .cc-yr-key .m-law { background: var(--cc-law); border-radius: 50%; }
.m-law .bar { background: var(--cc-law); border-radius: 5px; }
.m-standard i, .cc-yr-key .m-standard { background: var(--cc-std); }
.m-standard .bar { background: var(--cc-std); }
.m-guidance i, .cc-yr-key .m-guidance { border: 3px solid var(--cc-gui); border-radius: 50%; background: transparent; }
.m-guidance .bar { border: 2px solid var(--cc-gui); border-radius: 5px; background: var(--cc-gui-soft); }
@media (max-width: 760px) {
  .cc-yr-head, .cc-yr-row { grid-template-columns: 1fr; }
  .cc-yr-head > span { display: none; }
  .cc-yr-months { font-size: 12px; letter-spacing: 0; }
  .cc-yr-label { padding: 8px 0 1px; font-size: 13px; white-space: normal; }
  .cc-yr-label b, .cc-yr-label span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cc-yr-row { min-height: 0; }
  .cc-yr-strip { height: 24px; }
  .cc-yr-strip i, .cc-yr-key i { width: 11px; height: 11px; }
}

/* ───────────── rhythm sections and task tables ───────────── */
.cc-rhythm { margin-top: clamp(44px, 5vw, 76px); scroll-margin-top: 90px; }
.cc-rh { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 300px); gap: 6px clamp(16px, 2.4vw, 32px); align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.cc-rh-stamp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: clamp(84px, 9vw, 132px); }
.cc-rh-stamp b { font-family: var(--d-display); font-weight: 800; font-size: clamp(50px, 6vw, 88px); line-height: 0.8; letter-spacing: 0.01em; }
.cc-rh-stamp span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #625d55; }
.cc-rh h3 { font-family: var(--d-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 46px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.cc-rh-side { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #625d55; margin-top: 7px; }
.cc-rh-side b { color: var(--ink); }
.cc-rh-fig { color: var(--ink); padding-bottom: 6px; }
.cc-rh-fig .cc-dots { background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; height: 22px; }
.cc-rhythm.is-none .cc-rh { border-bottom-color: var(--cc-open); }
.cc-rhythm.is-none .cc-rh-stamp b, .cc-rhythm.is-none .cc-rh-stamp span, .cc-rhythm.is-none h3 { color: var(--cc-open); }
.cc-rh-note { font-size: 14.5px; line-height: 1.55; font-weight: 500; color: var(--ink-2); max-width: 74ch; margin: 14px 0 0; }
@media (max-width: 760px) { .cc-rh { grid-template-columns: auto minmax(0, 1fr); } .cc-rh-fig { display: none; } }

.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #625d55; padding: 12px 18px 9px 0; border-bottom: 1px solid var(--ink); }
.cc-table td { padding: 16px 18px 17px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.cc-table th:last-child, .cc-table td:last-child { padding-right: 0; }
.cc-table tr:hover td { background: rgba(28,24,18,0.025); }
.cc-table .c-task { width: 46%; }
.cc-table .c-how { width: 21%; }
.cc-table .c-who { width: 20%; }
.cc a.cc-sys { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #625d55; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(28,24,18,0.3); margin-bottom: 5px; }
.cc a.cc-sys:hover { color: var(--cc-law); text-decoration-color: currentColor; }
.cc-t { display: block; font-size: 16.5px; line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.cc-cond { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: default; }
.cc-cond b { color: var(--ink); font-weight: 700; }
.cc-cond input { display: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.is-picked .cc-cond { cursor: pointer; }
.is-picked .cc-cond input { display: block; }
.cc-how b { display: block; font-family: var(--d-display); font-weight: 700; font-size: 21px; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.cc-how small, .cc-basis-t { display: block; font-size: 13.5px; line-height: 1.45; margin-top: 5px; color: var(--ink-2); }
.cc-rhythm.is-none .cc-how b { font-family: var(--d-body); font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: 0; text-transform: none; }
tr.cc-off td { opacity: 0.5; }
tr.cc-off .cc-t { text-decoration: line-through; }
tr.cc-off td.cc-task { opacity: 1; }
tr.cc-off .cc-sys, tr.cc-off .cc-t { opacity: 0.5; }
.cc-refs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.cc-refs span { color: #625d55; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.14em; align-self: center; }

@media (max-width: 760px) {
  .cc-table, .cc-table tbody, .cc-table td { display: block; }
  .cc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .cc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
  .cc-table td { border: 0; padding: 0; width: auto !important; }
  .cc-table tr:hover td { background: none; }
  .cc-table td.cc-task, .cc-table td.cc-basis, .cc-table td.cc-wide { grid-column: 1 / -1; }
  .cc-table td.cc-basis { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .cc-table td.cc-basis .cc-flag { margin-top: 0; }
  .cc-regime .cc-table td.cc-basis { order: 0; display: block; }
  .cc-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #625d55; margin-bottom: 3px; }
  .cc-how b { font-size: 19px; }
}

/* ============================================================================
   REGIME PAGES
   ============================================================================ */
.cc-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(34px, 4vw, 56px); }
@media (max-width: 900px) { .cc-top { grid-template-columns: 1fr; } }
.cc-answer { position: relative; border: 3px solid var(--ink); background: var(--cc-card); padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.8vw, 38px) clamp(24px, 2.8vw, 36px) calc(clamp(20px, 2.8vw, 38px) + 12px); }
.cc-answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(180deg, var(--m-orange) 0 25%, var(--m-green) 25% 50%, var(--m-blue) 50% 75%, var(--m-purple) 75% 100%); }
.cc-answer .kicker { margin-bottom: 12px; color: var(--ink) !important; }
.cc-answer p { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.46; font-weight: 500; color: var(--ink); margin: 0; text-wrap: pretty; }
.cc-glance { border-top: 3px solid var(--ink); }
.cc-glance dl { margin: 0; }
.cc-glance div { padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.cc-glance dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 7px; }
.cc-glance dd { margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.cc-glance dd small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }

.cc-conf { margin-top: clamp(24px, 3vw, 36px); border-left: 6px solid var(--cc-open); background: var(--cc-open-soft); padding: 16px 20px 17px; max-width: 92ch; }
.cc-conf b { display: block; font-family: var(--d-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--cc-open); margin-bottom: 4px; }
.cc-conf p { margin: 0; font-size: 15.5px; line-height: 1.55; font-weight: 500; color: var(--ink); }

.cc-sec { padding-top: clamp(44px, 5vw, 76px); }
.cc-sec > .kicker { margin-bottom: 12px; }
.cc-h2 { font-family: var(--d-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.95; letter-spacing: 0.005em; margin: 0 0 22px; }
.cc-regime .cc-table { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.cc-regime .cc-table .c-task { width: 30%; }
.cc-regime .cc-table .c-how { width: 18%; }
.cc-regime .cc-table .c-who { width: 17%; }
.cc-regime .cc-table tr:last-child td { border-bottom: 0; }
.cc-regime .cc-cond { cursor: default; }

.cc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .cc-duo { grid-template-columns: 1fr; } }
.cc-panel { border: 2px solid var(--ink); border-top: 0; padding: 0 clamp(18px, 2.2vw, 28px) 24px; background: var(--cc-card); }
.cc-panel::before { content: ""; display: block; height: 5px; margin: 0 calc(-1 * clamp(18px, 2.2vw, 28px) - 2px) 22px; background: var(--ink); }
.cc-panel.is-law::before { background: var(--cc-law); }
.cc-panel.is-std::before { background: var(--m-blue); }
.cc-panel.is-rec::before { background: var(--m-green); }
.cc-panel.is-note::before { background: var(--m-purple); }
.cc-panel h2 { font-family: var(--d-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin: 0 0 12px; }
.cc-panel p { font-size: 15.5px; line-height: 1.62; font-weight: 500; color: var(--ink-2); margin: 0 0 12px; }
.cc-panel p:last-child { margin-bottom: 0; }
.cc-records { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cc-records li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.cc-records li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border: 2px solid var(--ink); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.4l3.2 3.2L13 4.6' fill='none' stroke='%232f7223' stroke-width='2.6'/></svg>") center / 100% no-repeat; }

/* who delivers it */
.cc-deliver { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px clamp(24px, 4vw, 56px); align-items: center; background: var(--night); color: var(--night-text); padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px); border-bottom: 8px solid transparent; border-image: linear-gradient(90deg, var(--m-orange) 0 25%, var(--m-green) 25% 50%, var(--m-blue) 50% 75%, var(--m-purple) 75% 100%) 1; }
.cc-deliver .kicker { color: var(--dawn-amber) !important; margin-bottom: 10px; }
.cc-deliver .cc-deliver-name { font-family: var(--d-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.95; text-transform: uppercase; color: #fff; margin: 0 0 12px; max-width: none; }
.cc-deliver p { font-size: 16px; line-height: 1.6; font-weight: 500; color: rgba(244,234,216,0.88); margin: 0; max-width: 62ch; }
.cc-deliver .btn { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.cc-deliver .btn:hover { background: #fff; border-color: #fff; }
.cc-deliver a:not([class]):is(:hover, :focus-visible) { color: var(--m-orange) !important; }
.cc-deliver.is-none { background: transparent; color: var(--ink); border: 2px dashed rgba(28,24,18,0.5); border-image: none; }
.cc-deliver.is-none .kicker { color: var(--ink-2) !important; }
.cc-deliver.is-none .cc-deliver-name { color: var(--ink); font-size: clamp(26px, 3vw, 40px); }
.cc-deliver.is-none p { color: var(--ink-2); }
@media (max-width: 760px) { .cc-deliver { grid-template-columns: 1fr; } }

/* sources */
.cc-sources { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.cc-sources > li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 18px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.cc-sources > li:target { background: var(--cc-std-soft); box-shadow: -14px 0 0 var(--cc-std-soft), 14px 0 0 var(--cc-std-soft); }
.cc-src-id { font-family: var(--d-display); font-weight: 800; font-size: 30px; line-height: 0.9; text-transform: uppercase; color: var(--ink); }
.cc-src-t { font-size: 16.5px; line-height: 1.4; font-weight: 700; margin: 0; }
.cc-src-m { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--ink-2); margin: 5px 0 0; }
.cc-sources blockquote { margin: 14px 0 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--m-orange); }
.cc-sources blockquote p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; font-style: italic; color: var(--ink); }
.cc-sources blockquote footer { margin-top: 6px; font-size: 13px; line-height: 1.45; font-weight: 500; color: #625d55; font-style: normal; }
.cc-sources blockquote cite { font-style: normal; }
.cc-src-s { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; font-weight: 500; }
@media (max-width: 640px) { .cc-sources > li { grid-template-columns: 1fr; } .cc-src-id { font-size: 22px; } }

/* related regimes and index rows */
.cc-list { border-top: 3px solid var(--ink); }
.cc a.cc-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.8fr) 34px; gap: 10px clamp(14px, 2vw, 28px); align-items: center; padding: 17px 0 18px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.15s ease; }
.cc a.cc-row:last-child { border-bottom: 3px solid var(--ink); }
.cc a.cc-row:hover { background: rgba(28,24,18,0.04); }
.cc-row-q { font-family: var(--d-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
.cc-row-q small { display: block; font-family: var(--d-body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.cc-row:hover .cc-row-q span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cc-row-go { font-family: var(--d-display); font-weight: 800; font-size: 30px; text-align: right; transition: transform 0.2s ease; }
.cc-row:hover .cc-row-go { transform: translateX(6px); }
@media (max-width: 860px) {
  .cc a.cc-row { grid-template-columns: minmax(0, 1fr) 28px; }
  .cc-row-q { grid-column: 1; }
  .cc-row .cc-rs, .cc-row .cc-badges { grid-column: 1; }
  .cc-row-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* next step: into the planner */
.cc-next { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 18px clamp(24px, 4vw, 60px); align-items: center; border: 3px solid var(--ink); padding: clamp(22px, 2.8vw, 38px) clamp(20px, 3vw, 44px); background: var(--cc-card); }
.cc-next .btn { color: var(--cream); white-space: nowrap; }   /* .cc a inherits colour, which made this ink on ink */
.cc-next h2 { font-family: var(--d-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); line-height: 0.95; text-transform: uppercase; margin: 0 0 10px; }
.cc-next p { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--ink-2); max-width: 58ch; }
@media (max-width: 760px) { .cc-next { grid-template-columns: 1fr; } }
.cc .closing { padding-top: clamp(44px, 5vw, 76px) !important; }

/* ============================================================================
   INDEX
   ============================================================================ */
.cc-basis-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .cc-basis-cards { grid-template-columns: 1fr; } }
.cc-basis-card { border: 2px solid var(--ink); border-top: 0; padding: 0 22px 22px; background: var(--cc-card); display: flex; flex-direction: column; gap: 12px; }
.cc-basis-card::before { content: ""; display: block; height: 5px; margin: 0 -24px 10px; }
.cc-basis-card.is-law::before { background: var(--cc-law); }
.cc-basis-card.is-standard::before { background: var(--cc-std); }
.cc-basis-card.is-guidance::before { background: repeating-linear-gradient(135deg, var(--cc-gui) 0 6px, #58a14a 6px 10px); }
.cc-basis-card h3 { font-family: var(--d-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 0.95; text-transform: uppercase; margin: 0; }
.cc-basis-card p { font-size: 15.5px; line-height: 1.58; font-weight: 500; color: var(--ink-2); margin: 0; flex-grow: 1; }
.cc-basis-card .n { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.cc-basis-card .n b { font-family: var(--d-display); font-weight: 800; font-size: 40px; line-height: 0.85; color: var(--ink); letter-spacing: 0.01em; }
.cc-group { padding-top: clamp(44px, 5vw, 72px); scroll-margin-top: 80px; }
.cc-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.cc-group-h h2 { font-family: var(--d-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.95; margin: 0; }
.cc-group-h span { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.cc-groupnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cc a.cc-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 13px; border: 1.5px solid rgba(28,24,18,0.45); text-decoration: none; font-size: 14px; font-weight: 600; }
.cc-pill b { font-family: var(--d-display); font-weight: 700; font-size: 16px; color: #625d55; }
.cc a.cc-pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cc a.cc-pill:hover b { color: var(--cream); }
.cc-cite { border: 2px solid var(--ink); background: var(--cc-card); padding: 18px 22px 20px; margin-top: 22px; max-width: 92ch; }
.cc-cite p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--ink-2); }
.cc-cite .q { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; color: var(--ink); margin: 8px 0 10px; overflow-wrap: anywhere; }
.cc-prose p { font-size: 16px; line-height: 1.65; font-weight: 500; color: var(--ink-2); max-width: 72ch; margin: 0 0 14px; }

/* ───────────── cautions, flags, deadlines (purple = not settled) ───────────── */
.cc-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; color: var(--cc-open); white-space: nowrap; }
.cc-flag::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--cc-open); transform: rotate(45deg); flex: none; }
.cc-flag.is-strong::before { background: var(--cc-open); }
.cc a.cc-flag { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cc a.cc-flag:hover { color: var(--cc-open); text-decoration-thickness: 2px; }
.cc-basis .cc-flag { display: flex; margin-top: 9px; }

.cc-cautions { margin-top: clamp(28px, 3vw, 40px); border-left: 6px solid var(--cc-open); background: var(--cc-open-soft); padding: 18px clamp(16px, 2vw, 24px) 8px; }
.cc-cautions h3 { font-family: var(--d-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cc-open); margin: 0 0 6px; }
.cc-cautions-h p { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 500; color: var(--ink); max-width: 86ch; }
.cc-cautions ul { list-style: none; margin: 12px 0 0; padding: 0; }
.cc-cautions li { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 2px 20px; padding: 10px 0 11px; border-top: 1px solid rgba(122,46,143,0.28); font-size: 14px; line-height: 1.5; color: var(--ink); }
.cc-cautions li a { font-weight: 700; }
.cc-cautions li.is-strong a::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--cc-open); transform: rotate(45deg); margin: 0 9px 1px 2px; }
.cc-cautions li.is-note a::before { content: ""; display: inline-block; width: 9px; height: 9px; box-sizing: border-box; border: 2px solid var(--cc-open); transform: rotate(45deg); margin: 0 9px 1px 2px; }
@media (max-width: 760px) { .cc-cautions li { grid-template-columns: 1fr; } }

.cc-conf.is-strong { border-left-width: 10px; background: rgba(122,46,143,0.14); padding: 20px 24px 22px; }
.cc-conf.is-strong b { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.05; margin-bottom: 8px; }
.cc-conf.is-strong p { font-size: 16.5px; }
.cc-conf .cc-conf-do { margin-top: 10px; font-weight: 700; }

.cc-deadline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 26px); align-items: center; margin-top: clamp(20px, 2.4vw, 28px); border: 3px solid var(--cc-law); background: var(--cc-law-soft); padding: 16px clamp(16px, 2vw, 24px) 18px; }
.cc-deadline-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 12px 9px; background: var(--cc-law); color: #fff; text-align: center; }
.cc-deadline-stamp b { font-family: var(--d-display); font-weight: 800; font-size: 54px; line-height: 0.85; }
.cc-deadline-stamp span { font-family: var(--d-display); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 5px; white-space: nowrap; }
.cc-deadline strong { display: block; font-family: var(--d-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cc-law); margin-bottom: 4px; }
.cc-deadline p { margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .cc-deadline { grid-template-columns: 1fr; gap: 12px; } .cc-deadline-stamp { flex-direction: row; gap: 10px; align-items: baseline; justify-content: flex-start; } .cc-deadline-stamp b { font-size: 34px; } }

.cc-verify { font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--ink-2); max-width: 86ch; margin: -6px 0 22px; padding-left: 16px; border-left: 4px solid var(--cc-std); }
.cc-tnote { font-size: 14px; line-height: 1.55; font-weight: 500; color: var(--ink-2); margin: 14px 0 0; max-width: 80ch; }
.cc-glance-b { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.cc-glance-b:last-child { margin-bottom: 0; }
.cc-anchor { scroll-margin-top: 70px; }

/* print header is for paper only */
.cc-print { display: none; }

/* ============================================================================
   PRINT: the plan on one or two pages of A4
   ============================================================================ */
@media print {
  @page { size: A4; margin: 8mm 9mm 9mm; }
  html, body { background: #fff !important; padding: 0 !important; }
  .nav, .callbar, .foot, .skip, .cc .p-hero, .cc-builder, .cc-actions, .cc-status, .cc-share, .cc-jump, .cc-year, .cc-next, .cc .closing, .cc-nojs,
  .cc-rh-fig, .cc-wait, .cc-plan-top, .cc-bar, .cc-refs, .cc-cautions-h p, .cc-rh-note { display: none !important; }
  .page, .cc { background: #fff !important; min-height: 0 !important; }
  .shell { max-width: none; padding: 0; }
  .cc * { color: #000 !important; }
  .cc a { text-decoration: none !important; }
  .cc-plan { border: 0; padding: 0; }

  /* header: brand line, what the plan is for, the numbers */
  .cc-print { display: block; border-bottom: 1.5pt solid #000; padding-bottom: 3pt; margin-bottom: 4pt; }
  .cc-print-brand { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--d-display); font-weight: 800; font-size: 8pt; letter-spacing: 0.08em; text-transform: uppercase; }
  .cc-print h2 { font-family: var(--d-display); font-weight: 800; font-size: 17pt; line-height: 1; text-transform: uppercase; margin: 2pt 0; }
  .cc-print p { font-size: 7.2pt; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }

  /* key to the badges, on one line each */
  .cc-split { margin: 0 0 3pt; }
  .cc-key { display: flex; gap: 0 14pt; margin: 0; }
  .cc-key li { display: flex; align-items: baseline; gap: 3pt; font-size: 6.3pt; line-height: 1.25; }
  .cc-key li > span:last-child { display: none; }
  .cc-key b { font-size: 9pt; }
  .cc-b { font-size: 5.6pt; padding: 1.2pt 2.6pt 0.8pt; border-width: 0.6pt; background: none !important; letter-spacing: 0.06em; }
  .cc-b--law { background: #000 !important; color: #fff !important; border-color: #000; }
  .cc-b--standard { border-color: #000; }
  .cc-b--guidance { border-color: #000; border-style: dashed; }

  /* cautions, kept but small */
  .cc-cautions { margin: 3pt 0 0; padding: 2pt 0 0 5pt; border-left: 2pt solid #000; background: none; break-inside: avoid; }
  .cc-cautions h3 { font-size: 7.6pt; margin: 0 0 1pt; }
  .cc-cautions ul { margin: 0; columns: 3; column-gap: 10pt; }
  .cc-cautions li { display: block; padding: 0 0 1.5pt; border: 0; font-size: 6.2pt; line-height: 1.25; break-inside: avoid; }
  .cc-cautions li a { margin-right: 3pt; }
  .cc-cautions li a::before { display: none !important; }
  .cc-flag { font-size: 5.6pt; letter-spacing: 0; gap: 2pt; }
  .cc-flag::before { width: 3.5pt; height: 3.5pt; border-width: 0.6pt; border-color: #000; }
  .cc-flag.is-strong::before { background: #000; }
  .cc-basis .cc-flag { display: inline-flex; margin: 0; order: -1; }

  /* rhythm blocks */
  .cc-rhythm { margin-top: 3.5pt; }
  .cc-rh { display: flex; align-items: baseline; gap: 6pt; border-bottom: 1pt solid #000 !important; padding-bottom: 1pt; break-after: avoid; }
  .cc-rh-stamp { flex-direction: row; align-items: baseline; gap: 2.5pt; min-width: 0; order: 2; }
  .cc-rh-stamp b { font-size: 9pt; line-height: 1; font-weight: 700; }
  .cc-rh-stamp span { font-size: 6pt; letter-spacing: 0.08em; }
  .cc-rh h3 { font-size: 10.5pt; display: inline; }
  .cc-rh-side { display: inline; margin: 0 0 0 5pt; font-size: 6pt; letter-spacing: 0.08em; }
  /* each rhythm's tasks flow in two columns; a task is a three-line block:
     system and task, then how often, who and the basis badge */
  .cc-table, .cc-table tbody { display: block; width: 100%; }
  .cc-table thead { display: none; }
  .cc-table tbody { columns: 2; column-gap: 14pt; column-rule: 0.4pt solid #bbb; }
  .cc-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4pt; padding: 1.3pt 0 1.5pt; border-bottom: 0.4pt solid #aaa; break-inside: avoid; }
  .cc-table td { display: block; padding: 0 !important; border: 0; font-size: 6.3pt; line-height: 1.17; width: auto !important; opacity: 1; }
  .cc-table td::before { display: none !important; }
  .cc-table td.cc-task { flex: 0 0 100%; }
  .cc-table td.cc-how { flex: 0 1 auto; }
  .cc-table td.cc-who { flex: 1 1 30%; }
  .cc-table td.cc-who::before { display: inline !important; content: "· " !important; font: inherit; letter-spacing: 0; margin: 0; text-transform: none; }
  .cc-table td.cc-basis { flex: 0 0 auto; margin-left: auto; order: 0; display: flex; gap: 4pt; align-items: center; }
  .cc a.cc-sys { display: inline; font-size: 5.4pt; letter-spacing: 0.04em; margin: 0; }
  .cc-sys::after { content: ": "; }
  .cc-t { display: inline; font-size: 6.7pt; line-height: 1.16; font-weight: 600; }
  .cc-cond { display: inline; margin: 0 0 0 2pt; font-size: 5.9pt; line-height: 1.16; }
  .cc-cond input { display: none !important; }
  .cc-how b, .cc-rhythm.is-none .cc-how b { font-family: var(--d-body); font-size: 6.3pt; line-height: 1.17; letter-spacing: 0; text-transform: none; font-weight: 700; display: inline; }
  .cc-how small { display: inline; font-size: 5.8pt; line-height: 1.16; margin: 0 0 0 2pt; }
  tr.cc-off { display: none !important; }

  .cc-disc { display: block; margin-top: 5pt; padding: 3pt 0 0; border-top: 1pt solid #000; border-bottom: 0; break-inside: avoid; }
  .cc-disc .cc-disc-k { display: none; }
  .cc-disc p { font-size: 6.2pt; line-height: 1.25; max-width: none; display: inline; }
}
