/* CronLens · identity.css
   Light limestone page, one dark bronze sundial, an almanac ledger beside it.
   System fonts only: C059 / Century Schoolbook antiqua with small caps, Noto Sans Mono for expressions. */

:root {
  --stone: #e5e1d7;
  --sheet: #faf8f2;
  --rule: #b9ae98;
  --ink: #1f1a14;
  --muted: #574c3f;
  --brass-text: #6f4d0b;
  --vermilion: #9e2e1a;
  --indigo: #33438a;
  --job-a: #7a5510;
  --job-b: #2a6a5d;
  --job-c: #733866;
  --job-d: #3b4859;
  --bronze: #221b14;
  --numeral: #efe6d0;
  --brass-on: #d4a64a;
  --tint: #efe4c8;
  --serif: "C059", "Century Schoolbook", "New Century Schoolbook", "TeX Gyre Schola", "Iowan Old Style", "Noto Serif", serif;
  --mono: "Noto Sans Mono", "Liberation Mono", "Adwaita Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 17px/1.6 var(--serif);
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, figure, pre, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: var(--brass-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
code, kbd, samp { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { background: var(--tint); color: var(--ink); }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.cl-plate :focus-visible, .cl-plate:focus-visible { outline-color: #a3b0ff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -80px; padding: 10px 16px; background: var(--ink); color: var(--sheet); text-decoration: none; }
.skip-link:focus { top: 10px; color: var(--sheet); }

.cl-wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.cl-narrow { width: min(52rem, 100% - 2 * var(--gutter)); }
.cl-caps { font-variant-caps: all-small-caps; letter-spacing: .06em; }
.cl-mono { font-family: var(--mono); overflow-wrap: anywhere; }
.cl-muted { color: var(--muted); }
.cl-small { font-size: 14px; }
.cl-num-inline { font-variant-numeric: tabular-nums lining-nums; }

/* type scale */
.cl-h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; }
.cl-h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; font-weight: 700; }
.cl-h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 700; }
.cl-eyebrow { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--brass-text); margin-bottom: 14px; font-weight: 700; }
.cl-lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); margin-top: 18px; max-width: 40rem; }
.cl-tablenum { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--brass-text); font-weight: 700; }
.cl-subhead { font-size: 15px; font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 12px; }

/* buttons */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--muted); border-radius: 2px;
  background: var(--sheet); color: var(--brass-text);
  font-family: var(--serif); font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 3px #d8cfbb;
  transition: background-color .15s, color .15s;
}
.cl-btn:hover { background: var(--tint); color: var(--ink); }
.cl-btn-primary { background: var(--brass-text); color: var(--sheet); border-color: var(--brass-text); box-shadow: inset 0 0 0 2px var(--brass-text), inset 0 0 0 3px #c9a45a; }
.cl-btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.cl-btn-quiet { background: transparent; box-shadow: none; border-style: dashed; }
.cl-btn-small { min-height: 36px; padding: 5px 12px; font-size: 15px; }
.cl-btn:disabled, .cl-btn[aria-disabled="true"] { color: #7d7264; border-color: #9c917f; background: #ece8de; box-shadow: none; }
@media (pointer: coarse) { .cl-btn-small { min-height: 44px; } }

/* ---------------------------------------------------------------- header: the unrolled bezel */
.cl-header { position: sticky; top: 0; z-index: 40; background: var(--stone); border-bottom: 1px solid var(--ink); }
.cl-header-inner { position: relative; height: var(--header-h); width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.cl-brand { position: absolute; left: 0; top: 0; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; z-index: 2; }
.cl-brand-dial { width: 28px; height: 28px; flex: none; }
.cl-brand-name { font-size: 21px; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.cl-brand:hover { color: var(--brass-text); }
.cl-bezel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none;
  background:
    linear-gradient(to right, var(--ink) 1px, transparent 1px) 0 100% / calc(100% / 24) 12px repeat-x,
    linear-gradient(to right, var(--muted) 1px, transparent 1px) 0 100% / calc(100% / 96) 6px repeat-x;
  border-right: 1px solid var(--ink);
}
.cl-nav { position: absolute; left: 0; right: 0; top: 0; bottom: 16px; }
.cl-nav-list { list-style: none; position: relative; height: 100%; }
.cl-nav-list li { position: absolute; bottom: 4px; left: calc(var(--at) * 100% / 24); transform: translateX(-50%); }
/* even four-hour spacing: at 901px the widest neighbours ("Справочник", "Начало работы") still clear each other */
.cl-at-6 { --at: 6; } .cl-at-10 { --at: 10; } .cl-at-14 { --at: 14; } .cl-at-18 { --at: 18; } .cl-at-22 { --at: 22; }
.cl-nav a {
  position: relative; display: block; padding: 6px 4px 8px; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .07em; font-weight: 700;
}
.cl-nav a::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 1px; height: 6px; background: var(--ink); transform: translateX(-.5px); }
.cl-nav a:hover { color: var(--brass-text); }
.cl-nav a[aria-current="page"] { color: var(--brass-text); }
.cl-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 14px solid var(--brass-text);
  transform: translateX(-50%) skewX(-18deg); transform-origin: top; transition: transform .25s ease;
}
.cl-nav a[aria-current="page"]:hover::after { transform: translateX(-50%) skewX(18deg); }
.cl-nav-toggle { display: none; }

@media (max-width: 1100px) and (min-width: 901px) { .cl-nav a { font-size: 15px; letter-spacing: .05em; } }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .cl-brand { bottom: 16px; }
  .cl-nav-toggle {
    position: absolute; right: 0; top: 50%; transform: translateY(calc(-50% - 8px));
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
    border: 1px solid var(--muted); background: var(--sheet); color: var(--ink); border-radius: 2px;
    font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700;
  }
  .cl-toggle-ticks { display: inline-flex; flex-direction: column; gap: 4px; }
  .cl-toggle-ticks i { display: block; height: 1.5px; background: var(--ink); width: 16px; }
  .cl-toggle-ticks i:nth-child(2) { width: 10px; }
  .cl-nav-toggle[aria-expanded="true"] .cl-toggle-ticks i:nth-child(2) { width: 16px; }
  .cl-nav { display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; bottom: auto; margin-top: 1px; background: var(--sheet); border-bottom: 2px solid var(--ink); box-shadow: 0 12px 24px rgba(31, 26, 20, .18); }
  .cl-nav.is-open { display: block; }
  .cl-nav-list { height: auto; padding: 8px var(--gutter) 14px; }
  .cl-nav-list li { position: static; transform: none; border-bottom: 1px dotted var(--rule); }
  .cl-nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 0; font-size: 18px; }
  .cl-nav a::before { position: static; flex: none; width: 18px; height: 1px; transform: none; background: var(--muted); }
  .cl-nav-list li:nth-child(odd) a::before { width: 26px; background: var(--ink); }
  .cl-nav a[aria-current="page"]::after { position: static; transform: rotate(-90deg); border-top-width: 10px; border-left-width: 5px; border-right-width: 5px; margin-left: auto; }
  .cl-nav a[aria-current="page"]:hover::after { transform: rotate(-90deg); }
}

/* ---------------------------------------------------------------- footer */
.cl-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--sheet); border-top: 2px solid var(--ink); }
.cl-footer-inner { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 0 0 28px; }
.cl-footer-scale { list-style: none; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); font-size: 12px; font-variant-numeric: tabular-nums lining-nums; color: var(--muted); }
.cl-footer-scale li { position: relative; padding: 14px 0 6px 3px; border-left: 1px solid var(--ink); line-height: 1; }
.cl-footer-scale li::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 5px; background: var(--muted); }
.cl-footer-scale li:nth-child(13) { color: var(--brass-text); font-weight: 700; }
.cl-footer-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px 0 24px; }
.cl-footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.cl-footer-brand p { color: var(--muted); max-width: 26rem; }
.cl-footer-col h2 { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .1em; margin-bottom: 8px; }
.cl-footer-col a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; }
.cl-footer-col a:hover { color: var(--brass-text); text-decoration: underline; }
.cl-footer-line { border-top: 1px dotted var(--rule); padding-top: 16px; font-size: 14px; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; overflow-wrap: anywhere; }
@media (max-width: 800px) { .cl-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cl-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .cl-footer-scale { font-size: 11px; }
  .cl-footer-scale li { padding-left: 1px; }
  .cl-footer-scale li:not(:nth-child(3n+1)) { color: transparent; }
  .cl-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cl-footer-col a { padding: 8px 0; }
}

/* ---------------------------------------------------------------- shared components */
.cl-section { padding-block: clamp(48px, 7vw, 88px); }
.cl-section + .cl-section { border-top: 1px solid var(--rule); }
.cl-section-head { max-width: 46rem; margin-bottom: clamp(24px, 3.5vw, 40px); }
.cl-section-head .cl-h2 { margin-top: 6px; }
.cl-section-lede { margin-top: 12px; color: var(--muted); }
.cl-fallback { color: var(--muted); font-style: italic; padding: 24px; text-align: center; }
.cl-figcap { font-size: 14px; color: var(--muted); margin-top: 12px; }
.cl-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cl-table-scroll:focus-visible { outline-offset: 4px; }

/* almanac tables: ephemeris-like, antiqua numerals, dotted guides */
.cl-almanac { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; background: var(--sheet); }
.cl-almanac caption { caption-side: top; text-align: left; font-size: 14px; color: var(--muted); padding: 0 0 8px; font-style: italic; }
.cl-almanac thead th { font-weight: 700; font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .08em; text-align: left; padding: 7px 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.cl-almanac td, .cl-almanac tbody th { padding: 7px 10px; border-bottom: 1px dotted var(--rule); vertical-align: top; text-align: left; }
.cl-almanac tbody th { font-weight: 700; }
.cl-almanac tbody tr:last-child td, .cl-almanac tbody tr:last-child th { border-bottom: 1px solid var(--ink); }
.cl-almanac tr.is-marked td { background: #f3ecdb; }
@media (max-width: 600px) { .cl-almanac td, .cl-almanac tbody th, .cl-almanac thead th { padding-inline: 7px; } }

/* segmented radio groups */
.cl-segradio { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0; }
.cl-segradio legend { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.cl-segradio label { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.cl-segradio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cl-segradio span { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 44px; padding: 6px 12px; border: 1px solid var(--muted); margin-left: -1px; background: var(--sheet); color: var(--ink); font-size: 15px; line-height: 1.2; text-align: center; }
.cl-segradio label:first-of-type span { margin-left: 0; }
.cl-segradio small { display: block; font-size: 12px; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .05em; margin-top: 2px; }
.cl-segradio input:checked + span { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.cl-segradio input:checked + span small { color: #d9cfb8; }
.cl-segradio input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; position: relative; z-index: 1; }
.cl-segradio label:hover span { background: var(--tint); }
.cl-segradio label:hover input:checked + span { background: var(--ink); }

/* the dark bronze plate and the dial */
.cl-plate { position: relative; }
.cl-dialbox, .cl-plate-hero, .cl-plate-small { width: 100%; }
.cl-dial { width: 100%; height: auto; display: block; }
.cl-dial text { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.cl-num { font-size: 15px; }
.cl-num-noon { font-weight: 700; }
.cl-dial-note { font-size: 11.5px; font-variant-caps: all-small-caps; letter-spacing: .05em; }
.cl-ringletter { font-size: 11px; font-weight: 700; }
.cl-inner-date { font-size: 12.5px; font-weight: 700; }
.cl-inner-zone { font-family: var(--mono) !important; font-size: 9.5px; }
.cl-inner-len { font-size: 12px; font-variant-caps: all-small-caps; letter-spacing: .05em; }
.cl-inner-tr { font-size: 9.5px; }
.cl-inner-empty { font-size: 11.5px; }
.cl-pencil { font-size: 9px; font-style: italic; }
.cl-bracket-x { font-size: 10px; }
.cl-tick { cursor: pointer; outline: none; }
.cl-tick .cl-halo { stroke: transparent; stroke-width: 2; }
.cl-tick:hover .cl-halo { stroke: var(--numeral); stroke-width: 1; stroke-dasharray: 2 2; }
.cl-tick.is-selected .cl-halo { stroke: var(--numeral); stroke-width: 1.6; }
.cl-tick:focus-visible .cl-halo { stroke: #a3b0ff; stroke-width: 3; stroke-dasharray: none; }
.cl-plate.is-stale .cl-dial, .cl-dial.is-stale { opacity: .5; filter: saturate(.3); }
.cl-callout text { font-family: var(--serif); }
.cl-plate-small .cl-dial-note { font-size: 15px; }
.cl-dial textPath { letter-spacing: .04em; }
/* 360px plates (scale 0.82): lift the smallest labels; the transition line inside the disk moves to the
   caption under the dial, which carries the same offsets */
@media (max-width: 900px) {
  .cl-plate-hero .cl-inner-tr { display: none; }
  .cl-plate-hero .cl-inner-zone { font-size: 11.5px; }
  .cl-plate-hero .cl-dial-note { font-size: 14px; }
}
@media (max-width: 600px) {
  .cl-plate-work .cl-inner-tr { display: none; }
  .cl-plate-work .cl-inner-date { font-size: 14px; }
  .cl-plate-work .cl-inner-zone { font-size: 11.5px; }
  .cl-plate-work .cl-pencil { font-size: 12px; }
  .cl-plate-work .cl-dial-note { font-size: 14px; }
}

/* ---------------------------------------------------------------- home: first screen */
.cl-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.cl-hero-grid {
  display: grid; gap: 22px clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "dial text" "dial ledger" "dial cta" "dial .";
  grid-template-rows: auto auto auto 1fr;
}
.cl-hero-grid > * { min-width: 0; }
.cl-hero-text { grid-area: text; }
.cl-hero-dial { grid-area: dial; }
.cl-hero-ledger { grid-area: ledger; }
.cl-hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 10px; }
.cl-hero .cl-lede { font-size: 1.08rem; }
.cl-plate-hero { max-width: 640px; margin-inline: auto; }
.cl-hero-dial .cl-figcap { max-width: 640px; margin-inline: auto; }
.cl-hero-rules { max-width: 640px; margin: 14px auto 0; }
.cl-hero-table { font-size: 14.5px; }
.cl-hero-table td, .cl-hero-table thead th { padding-inline: 8px; }
.cl-hero-table td:nth-child(2), .cl-hero-table td:nth-child(5) { white-space: nowrap; }
.cl-hero-table td:last-child { min-width: 8.5rem; }
/* phones: the excerpt becomes one line per run; the mark gets its own full-width line under a marked run */
@media (max-width: 600px) {
  .cl-hero-table, .cl-hero-table thead, .cl-hero-table tbody { display: block; }
  .cl-hero-table caption { display: block; }
  .cl-hero-table tr { display: grid; grid-template-columns: 1.2em repeat(4, minmax(0, 1fr)); column-gap: 4px; border-bottom: 1px dotted var(--rule); }
  .cl-hero-table thead tr { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); align-items: end; }
  .cl-hero-table thead th { font-size: 12px; letter-spacing: .02em; line-height: 1.2; }
  .cl-hero-table tbody tr:last-child { border-bottom: 1px solid var(--ink); }
  .cl-hero-table thead th, .cl-hero-table tbody td { display: block; min-width: 0; padding: 6px 0; border: 0 !important; }
  .cl-hero-table thead th:last-child { display: none; }
  .cl-hero-table td:last-child { grid-column: 1 / -1; min-width: 0; padding-top: 0; font-size: 14px; }
  .cl-hero-table tbody tr:not(.is-marked) td:last-child { display: none; }
  .cl-hero-table tr.is-marked { background: #f3ecdb; }
}
.cl-after, .cl-rule-note { font-size: 15px; color: var(--muted); margin-top: 10px; }
.cl-after { color: var(--ink); font-style: italic; }
@media (max-width: 900px) {
  .cl-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "dial" "ledger" "cta"; grid-template-rows: none; }
  .cl-plate-hero { max-width: 360px; }
}

/* table I: three days of one zone */
.cl-legend-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.cl-legend-fig { min-width: 0; }
.cl-plate-small { max-width: 300px; margin-inline: auto; }
.cl-legend-fig figcaption { margin-top: 12px; display: grid; gap: 2px; text-align: center; }
.cl-legend-fig figcaption strong { font-size: 1.35rem; font-variant-numeric: tabular-nums lining-nums; }
.cl-legend-fig figcaption span:last-child { font-size: 15px; color: var(--muted); }
.cl-callouts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; margin-top: 32px; border-top: 1px solid var(--ink); padding-top: 18px; }
.cl-callouts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.cl-callout-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--bronze); background: var(--sheet); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums lining-nums; }
.cl-footnote { margin-top: 18px; font-size: 15px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .cl-legend-row { grid-template-columns: minmax(0, 1fr); } .cl-plate-small { max-width: 280px; } .cl-callouts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .cl-callouts { grid-template-columns: minmax(0, 1fr); } }

/* table II: four quarters of the day */
.cl-quarter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cl-quarter { padding: 18px clamp(12px, 1.6vw, 22px) 22px; border-right: 1px dotted var(--rule); min-width: 0; }
.cl-quarter:last-child { border-right: 0; }
.cl-quarter-strip { width: 100%; height: auto; max-width: 240px; }
.cl-quarter-hours { margin-top: 6px; color: var(--brass-text); font-weight: 700; font-size: 15px; }
.cl-quarter h3 { font-size: 1.25rem; line-height: 1.25; margin-top: 8px; }
.cl-question { font-style: italic; color: var(--ink); margin: 8px 0; }
.cl-quarter p:last-child { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .cl-quarter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-quarter:nth-child(2) { border-right: 0; } .cl-quarter:nth-child(-n+2) { border-bottom: 1px dotted var(--rule); } }
@media (max-width: 600px) { .cl-quarter-grid { grid-template-columns: minmax(0, 1fr); } .cl-quarter { border-right: 0; border-bottom: 1px dotted var(--rule); padding-inline: 0; } }

/* table III: three positions of the shadow */
.cl-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.cl-step { min-width: 0; }
.cl-vignette { width: 100%; max-width: 180px; height: auto; }
.cl-step-num { font-size: 1.6rem; font-weight: 700; color: var(--brass-text); margin-top: 10px; line-height: 1; }
.cl-step h3 { font-size: 1.25rem; margin: 6px 0; }
.cl-step p:last-child { color: var(--muted); }
@media (max-width: 800px) { .cl-steps { grid-template-columns: minmax(0, 1fr); } .cl-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 18px; } .cl-vignette { grid-row: span 3; } }
@media (max-width: 420px) { .cl-step { grid-template-columns: 88px minmax(0, 1fr); } }

/* contents with dotted leaders */
.cl-toc, .cl-samplerows { list-style: none; border-top: 2px solid var(--ink); }
.cl-toc li, .cl-samplerows li { border-bottom: 1px solid var(--rule); }
.cl-toc a, .cl-samplerows a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.cl-toc a:hover, .cl-samplerows a:hover { background: var(--sheet); }
.cl-toc a:hover .cl-toc-title, .cl-samplerows a:hover .cl-sample-name { color: var(--brass-text); text-decoration: underline; }
.cl-toc-num { font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--brass-text); font-weight: 700; padding-top: 2px; }
.cl-toc-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cl-toc-title, .cl-sample-name { font-weight: 700; font-size: 1.1rem; flex: 0 1 auto; }
.cl-toc-lead { flex: 1 1 40px; min-width: 24px; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.cl-toc-sum, .cl-sample-detail { flex: 0 1 48%; color: var(--muted); font-size: 15.5px; }
.cl-samplerows a { grid-template-columns: 2.5rem minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: baseline; }
.cl-samplerows .cl-toc-lead { align-self: center; min-width: 32px; width: 60px; transform: none; }
@media (max-width: 700px) {
  .cl-toc a { grid-template-columns: minmax(0, 1fr); }
  .cl-toc-line { display: block; }
  .cl-toc-line .cl-toc-lead { display: none; }
  .cl-toc-sum { display: block; margin-top: 4px; }
  .cl-samplerows a { grid-template-columns: 2rem minmax(0, 1fr); }
  .cl-samplerows .cl-toc-lead { display: none; }
  .cl-sample-detail { grid-column: 2; }
}

/* notes (FAQ) as footnotes */
.cl-fnlist { border-top: 2px solid var(--ink); }
.cl-fn { border-bottom: 1px dotted var(--rule); }
.cl-fn summary { display: flex; gap: 12px; align-items: baseline; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; }
.cl-fn summary::-webkit-details-marker { display: none; }
.cl-fn summary::after { content: "+"; margin-left: auto; color: var(--brass-text); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.cl-fn[open] summary::after { content: "−"; }
.cl-fn-num { font-size: .75em; color: var(--brass-text); min-width: 1.2em; font-variant-numeric: tabular-nums lining-nums; }
.cl-fn p { padding: 0 4px 16px 2.1em; color: var(--muted); max-width: 44rem; }
.cl-fn-more { margin-top: 18px; color: var(--muted); }

/* ---------------------------------------------------------------- product: intro and workspace */
.cl-intro { padding-block: clamp(28px, 4vw, 52px) 20px; }
.cl-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 20px 48px; align-items: end; }
.cl-plaque { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4px var(--rule); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; margin-bottom: 10px; }
.cl-intro-side p.cl-muted { font-size: 15px; }
@media (max-width: 800px) { .cl-intro-grid { grid-template-columns: minmax(0, 1fr); } }

.cl-workspace { padding-block: 12px clamp(40px, 6vw, 72px); }
.cl-notice { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--vermilion); background: var(--sheet); color: var(--ink); }
.cl-register, .cl-calcbar { background: var(--sheet); border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule); padding: clamp(14px, 2.4vw, 26px); }
.cl-calcbar { margin: 18px 0 0; min-width: 0; }
.cl-calcbar > legend.cl-reg-title { float: left; width: 100%; margin-bottom: 12px; }
.cl-calc-grid { clear: both; }
.cl-reg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: center; margin-bottom: 16px; }
.cl-reg-letter { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bronze); color: var(--brass-on); font-size: 1.35rem; font-weight: 700; }
.cl-reg-title { font-size: 1.15rem; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.cl-reg-note { font-size: 15px; color: var(--muted); }
.cl-reg-head-b { margin-bottom: 12px; }

.cl-jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1100px) { .cl-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-card { min-width: 0; background: #fffdf8; border: 1px solid var(--muted); padding: 14px 16px 16px; }
.cl-card-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 10px; }
.cl-card-title { font-size: 1rem; font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; flex: 1; }
.cl-swatch { display: inline-block; width: 14px; height: 14px; flex: none; border: 1px solid var(--ink); vertical-align: -2px; }
.cl-swatch.cl-sw-0 { background: var(--job-a); } .cl-swatch.cl-sw-1 { background: var(--job-b); } .cl-swatch.cl-sw-2 { background: var(--job-c); } .cl-swatch.cl-sw-3 { background: var(--job-d); }
.cl-jobmark { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border: 1.5px solid currentColor; font-weight: 700; font-size: 14px; line-height: 1; }
.cl-jobmark.cl-sw-0 { color: var(--job-a); } .cl-jobmark.cl-sw-1 { color: var(--job-b); } .cl-jobmark.cl-sw-2 { color: var(--job-c); } .cl-jobmark.cl-sw-3 { color: var(--job-d); }

.cl-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 10px; }
.cl-field > label, .cl-field > legend { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
fieldset.cl-field { border: 0; padding: 0; margin: 0 0 10px; }
.cl-field input, .cl-field select, .cl-field textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--muted); border-radius: 2px;
  background: #fffdf8; color: var(--ink); font-family: var(--serif); font-size: 16px;
}
.cl-field input.cl-mono { font-family: var(--mono); font-size: 15.5px; }
.cl-field input[aria-invalid="true"], .cl-field select[aria-invalid="true"] { border-color: var(--vermilion); border-width: 2px; background: #fbefeb; }
.cl-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-inline input[type="date"] { flex: 1 1 10rem; width: auto; }
.cl-inline input[type="time"] { flex: 0 1 7.5rem; width: auto; }
.cl-help, .cl-note { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cl-note:empty { display: none; }
.cl-err { font-size: 14.5px; color: var(--vermilion); line-height: 1.45; }
.cl-err::before { content: "✕ "; font-weight: 700; }

/* the five engraved cartouches */
.cl-cartouches { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.cl-cart { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 7px; border: 1px solid var(--muted); border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 3px #d8cfbb; text-align: center; }
.cl-cart-label { font-size: 12.5px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); line-height: 1.2; }
.cl-cart-val { font-family: var(--mono); font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; color: var(--ink); }
.cl-cart.is-invalid { border-color: var(--vermilion); border-width: 2px; background: #fbefeb; box-shadow: none; }
.cl-cart.is-invalid .cl-cart-val, .cl-cart.is-invalid .cl-cart-label { color: var(--vermilion); }
.cl-reading { font-style: italic; margin-top: 4px; }
.cl-class { font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--brass-text); font-weight: 700; margin-bottom: 8px; }
.cl-class:empty { display: none; }
.cl-card-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0 12px; }
.cl-jobs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
@media (max-width: 600px) {
  .cl-cartouches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cl-cart:nth-child(-n+3) { grid-column: span 2; }
  .cl-cart:nth-child(n+4) { grid-column: span 3; }
  .cl-card-row { grid-template-columns: minmax(0, 1fr); }
}

/* calculation bar */
.cl-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 20px; }
.cl-f-window, .cl-f-rules { grid-column: span 2; }
.cl-f-extra input + .cl-err + input { margin-top: 6px; }
@media (max-width: 560px) { .cl-f-window, .cl-f-rules { grid-column: auto; } .cl-segradio label { flex-basis: 100%; } .cl-segradio span { margin-left: 0; margin-top: -1px; } }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dotted var(--rule); }
.cl-status { font-size: 15px; color: var(--ink); }
.cl-status:empty { display: none; }
.cl-actions .cl-status { flex: 1 1 14rem; }

/* register B: dial column + ledger column */
.cl-regb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.cl-regb > * { min-width: 0; }
@media (min-width: 1180px) {
  .cl-regb { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
  .cl-regb-left { position: sticky; top: calc(var(--header-h) + 12px); }
}
.cl-plate-work { max-width: 520px; margin: 10px auto 0; }
@media (max-width: 1179px) { .cl-plate-work { max-width: 420px; } }
@media (max-width: 600px) { .cl-plate-work { max-width: 360px; } }
.cl-daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-daylabel { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; text-align: center; }
.cl-chips { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.cl-chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-chip-label { font-size: 13.5px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cl-chip { min-height: 32px; padding: 3px 12px; border: 1px solid var(--indigo); border-radius: 999px; background: var(--sheet); color: var(--indigo); font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.cl-chip:hover { background: #e6e8f3; }
@media (pointer: coarse) { .cl-chip { min-height: 44px; } }
.cl-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: 6px 0; cursor: pointer; }
.cl-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brass-text); flex: none; }
.cl-keys { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.cl-inspector-box { margin-top: 18px; background: var(--sheet); border: 1px solid var(--muted); padding: 12px 14px; }
.cl-insp { display: grid; gap: 0; }
.cl-insp > div { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 2px 12px; padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 15px; }
.cl-insp dt { font-size: 13.5px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cl-insp dd { min-width: 0; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 480px) { .cl-insp > div { grid-template-columns: minmax(0, 1fr); } }
.cl-rules-mini { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.cl-rules-mini caption { text-align: left; font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; padding-bottom: 4px; }
.cl-rules-mini th, .cl-rules-mini td { text-align: left; vertical-align: top; padding: 5px 6px; border-top: 1px dotted var(--rule); }
.cl-rules-mini th { width: 40%; font-weight: 700; }
.cl-rules-mini tr.is-current { background: var(--tint); }
.cl-src { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .05em; }

/* notes */
.cl-notelist { list-style: none; border-top: 1px solid var(--ink); }
.cl-notelist li { border-bottom: 1px dotted var(--rule); }
.cl-note-btn { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 4px; border: 0; background: transparent; text-align: left; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.cl-note-btn:hover { background: var(--sheet); }
.cl-note-num { flex: none; color: var(--brass-text); font-size: 1.15em; line-height: 1.2; }
.cl-notes { margin-bottom: 24px; }

/* ledger */
.cl-stamp { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border: 2px solid var(--vermilion); color: var(--vermilion); font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: .08em; transform: rotate(-1.5deg); background: #fbefeb; }
.cl-filter { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cl-filter-label { font-size: 13.5px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cl-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--muted); background: var(--sheet); font-size: 14.5px; border-radius: 2px; }
.cl-seg-btn[aria-checked="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
@media (pointer: coarse) { .cl-seg-btn { min-height: 44px; } }
.cl-summary { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cl-ledger-table { min-width: 680px; }
@media (min-width: 601px) { .cl-ledger-table.cl-no-extra { min-width: 560px; } }
.cl-no-extra thead th:nth-child(7), .cl-no-extra td.cl-extras { display: none; }
.cl-ledger-table td { font-size: 15px; }
.cl-ledger-table td, .cl-ledger-table thead th { padding-inline: 6px; }
.cl-ledger-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.cl-ledger-table .cl-n { text-align: right; white-space: nowrap; }
.cl-ledger-table .cl-local { font-weight: 700; white-space: nowrap; }
.cl-ledger-table .cl-off, .cl-ledger-table .cl-utc { white-space: nowrap; }
.cl-ledger-table .cl-since { font-size: 14px; color: var(--muted); min-width: 4.5rem; }
.cl-off { color: var(--muted); }
.cl-ledger-table tr.is-selected td { background: var(--tint); }
.cl-ledger-table tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--indigo); }
.cl-rowbtn { border: 0; padding: 0; background: none; color: var(--brass-text); text-decoration: underline dotted; text-underline-offset: .2em; font-size: inherit; white-space: nowrap; text-align: left; min-height: 24px; }
.cl-rowbtn:hover { color: var(--ink); }
.cl-rowbtn[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration-style: solid; }
.cl-ledger-table tr.cl-lost td { border-top: 1px dashed var(--vermilion); border-bottom: 1px dashed var(--vermilion); background: #fbf3ef; color: var(--vermilion); }
.cl-lost-text { font-style: italic; }
.cl-empty-row td { text-align: center; color: var(--muted); font-style: italic; padding: 18px; }
.cl-extra { display: block; font-size: 14px; white-space: nowrap; }
.cl-extra .cl-mono { font-size: 12.5px; }
.cl-dayshift { font-size: 12.5px; font-variant-caps: all-small-caps; color: var(--muted); }
.cl-pencil-sup { font-style: italic; color: var(--brass-text); font-size: 12px; margin-left: 2px; }
.cl-marks { min-width: 11rem; }
.cl-marks .cl-mark { white-space: normal; }
.cl-mark { display: inline-flex; align-items: center; gap: 4px; margin: 1px 4px 2px 0; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.cl-mark-catchup { color: var(--brass-text); }
.cl-mark-repeat-first, .cl-mark-repeat-second { color: var(--indigo); }
.cl-mark-overlap { color: var(--vermilion); }
.cl-mark-longer-than-interval { color: var(--job-c); }
.cl-mark-skip { color: var(--muted); border-style: dashed; white-space: normal; }
.cl-mark-sub { display: block; font-size: 12.5px; color: var(--muted); font-style: italic; }
.cl-after-line { font-size: 14.5px; margin-top: 10px; }
.cl-ledger > .cl-btn { margin-top: 10px; }

/* export */
.cl-export { margin-top: 28px; }
.cl-export-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-reason { margin-top: 8px; font-size: 14.5px; color: var(--muted); font-style: italic; }
.cl-export .cl-status { margin-top: 8px; }
.cl-copy-fallback { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.cl-copy-fallback label { font-size: 14px; font-weight: 700; color: var(--vermilion); }
.cl-copy-fallback textarea { width: 100%; font-family: var(--mono); font-size: 13.5px; padding: 8px; border: 1px solid var(--muted); background: #fffdf8; }
.cl-fpline { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.cl-fpline code { font-size: 15.5px; letter-spacing: .06em; background: var(--sheet); border: 1px solid var(--rule); padding: 1px 8px; }
.cl-fpline .cl-status { flex-basis: 100%; color: var(--job-b); }
.cl-samples-list { border-top: 1px solid var(--rule); }

/* ledger as almanac entries on narrow screens */
@media (max-width: 600px) {
  .cl-ledger .cl-table-scroll { overflow: visible; }
  .cl-ledger-table { min-width: 0; background: transparent; }
  .cl-ledger-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cl-ledger-table tbody, .cl-ledger-table tr { display: block; }
  .cl-ledger-table tr:not(.cl-empty-row) {
    display: grid; grid-template-columns: 2.6em 2.2em minmax(0, 1fr) minmax(0, 1fr);
    /* offset and UTC each get a full line: side by side the offset spilled over the UTC cell on 320–390px */
    grid-template-areas: "n job date date" "local local local local" "off off off off" "utc utc utc utc" "extra extra extra extra" "since since since since" "marks marks marks marks";
    gap: 2px 8px; padding: 12px 12px; margin-bottom: 8px; background: var(--sheet); border: 1px solid var(--rule);
  }
  .cl-ledger-table td { display: block; border: 0 !important; padding: 0; background: transparent !important; box-shadow: none !important; }
  .cl-ledger-table tr.is-selected { background: var(--tint); box-shadow: inset 4px 0 0 var(--indigo); }
  .cl-ledger-table td:nth-child(1) { grid-area: n; text-align: left; }
  .cl-ledger-table td:nth-child(2) { grid-area: job; }
  .cl-ledger-table td:nth-child(3) { grid-area: date; }
  .cl-ledger-table td.cl-local { grid-area: local; font-size: 2rem; line-height: 1.1; }
  .cl-ledger-table td.cl-off { grid-area: off; white-space: normal; }
  .cl-ledger-table td.cl-utc { grid-area: utc; white-space: normal; }
  .cl-ledger-table td.cl-extras { grid-area: extra; }
  .cl-ledger-table td.cl-since { grid-area: since; font-size: 14px; color: var(--muted); }
  .cl-ledger-table td.cl-marks { grid-area: marks; min-width: 0; }
  .cl-ledger-table td.cl-off::before, .cl-ledger-table td.cl-utc::before, .cl-ledger-table td.cl-since::before, .cl-ledger-table td.cl-extras::before {
    content: attr(data-l) " "; font-size: 12.5px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  }
  .cl-ledger-table td.cl-extras::before { display: block; }
  .cl-ledger-table tr.cl-lost { grid-template-areas: "n job date date" "lost lost lost lost"; border: 1px dashed var(--vermilion); background: #fbf3ef; color: var(--vermilion); }
  .cl-ledger-table tr.cl-lost td.cl-lost-text { grid-area: lost; }
  .cl-extra { white-space: normal; }
  .cl-mark { white-space: normal; }
}

/* ---------------------------------------------------------------- docs: narrow text, wide margin with marginalia */
.cl-docpage { padding-block: clamp(28px, 4vw, 56px) 8px; }
.cl-dochead { max-width: 52rem; margin-bottom: clamp(24px, 4vw, 44px); }
.cl-onpage { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 20px; padding-top: 10px; border-top: 1px dotted var(--rule); }
.cl-onpage a { padding: 6px 0; font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; text-decoration: none; }
.cl-onpage a:not(:last-child)::after { content: "·"; color: var(--muted); padding: 0 10px; font-weight: 400; }
.cl-onpage a:hover { text-decoration: underline; }
.cl-onpage a[aria-current="page"] { color: var(--ink); }
.cl-docsec { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 44rem); gap: 16px clamp(28px, 5vw, 72px); padding-block: clamp(22px, 3vw, 36px); border-top: 1px solid var(--rule); }
.cl-docsec > * { min-width: 0; }
.cl-marg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 6px; }
.cl-marg .cl-mini { width: 132px; height: auto; margin-top: 8px; }
.cl-marg .cl-mini:first-child { margin-top: 0; }
.cl-marg-big { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; font-weight: 700; color: var(--brass-text); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.cl-marg-big.cl-mono { font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 400; }
.cl-marg-cap { font-size: 14px; color: var(--muted); line-height: 1.35; }
.cl-marg-cap .cl-caps { display: block; color: var(--ink); font-weight: 700; }
.cl-err-sample { color: var(--vermilion); }
.cl-docbody > * + * { margin-top: 14px; }
.cl-docbody > .cl-h2 + * { margin-top: 12px; }
.cl-docbody .cl-h2 { margin-bottom: 4px; }
.cl-docbody .cl-h2 ~ .cl-h2 { margin-top: 30px; }
.cl-docbody .cl-h3 { margin-top: 24px; }
.cl-docbody p { max-width: 44rem; }
.cl-aside { border-left: 3px solid var(--rule); padding-left: 14px; color: var(--muted); font-style: italic; }
.cl-list { padding-left: 1.3em; }
.cl-list li { margin: 6px 0; padding-left: 4px; }
.cl-list-no { list-style: none; padding-left: 0; }
.cl-list-no li::before { content: "✕"; color: var(--vermilion); margin-right: 10px; font-size: .85em; }
.cl-sources li { font-size: 16px; }
.cl-glossary > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 2px 18px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.cl-glossary > div:first-child { border-top: 2px solid var(--ink); }
.cl-glossary dt { font-weight: 700; }
.cl-glossary dd { color: var(--ink); }
.cl-code { font-family: var(--mono); font-size: 14px; line-height: 1.55; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--brass-text); padding: 12px 14px; overflow-x: auto; max-width: 100%; white-space: pre; }
.cl-code code { font-size: inherit; overflow-wrap: normal; }
.cl-copybox .cl-code { margin-bottom: 8px; }
.cl-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cl-limits th { width: 42%; }
.cl-legend-table td:first-child { font-size: 1.15rem; white-space: nowrap; color: var(--brass-text); }
.cl-small-table { max-width: 32rem; }
.cl-errors td:first-child { white-space: nowrap; }
.cl-gsteps { list-style: none; }
.cl-gs-n { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; margin-right: 10px; border-radius: 50%; background: var(--bronze); color: var(--brass-on); font-size: .9em; vertical-align: .05em; }
@media (max-width: 900px) {
  .cl-docsec { grid-template-columns: minmax(0, 1fr); }
  .cl-marg { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 0; }
  .cl-marg .cl-mini { width: 76px; margin-top: 0; }
  .cl-marg-cap { max-width: 16rem; }
}
@media (max-width: 600px) {
  .cl-glossary > div { grid-template-columns: minmax(0, 1fr); }
  .cl-errors td:first-child, .cl-legend-table td:first-child { white-space: normal; }
}

/* guides: time codes in the margin */
.cl-guidehead { max-width: 52rem; }
.cl-gsec { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 44rem); gap: 10px clamp(24px, 4vw, 56px); padding-block: 26px; border-top: 1px solid var(--rule); }
.cl-timecode { font-size: 1.6rem; font-weight: 700; color: var(--brass-text); font-variant-numeric: tabular-nums lining-nums; line-height: 1.15; position: relative; padding-top: 12px; }
.cl-timecode::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 8px; background: linear-gradient(to right, var(--ink) 1px, transparent 1px) 0 0 / 25% 8px repeat-x; }
.cl-gbody p { margin-top: 12px; max-width: 44rem; }
.cl-trybox { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; margin-top: 30px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule); max-width: 58rem; }
.cl-try-label { grid-column: 1 / -1; font-weight: 700; color: var(--brass-text); }
.cl-guidenav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; max-width: 58rem; border-top: 2px solid var(--ink); padding-top: 16px; }
.cl-guidenav a { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 700; }
.cl-guidenav a .cl-caps { color: var(--brass-text); font-weight: 700; font-size: 14px; }
.cl-guidenav a:hover { text-decoration: underline; }
.cl-guidenav-next { text-align: right; align-items: flex-end; }
.cl-guides-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 700px) {
  .cl-gsec { grid-template-columns: minmax(0, 1fr); }
  .cl-timecode { font-size: 1.3rem; width: 6rem; }
  .cl-trybox { grid-template-columns: minmax(0, 1fr); }
  .cl-guidenav { grid-template-columns: minmax(0, 1fr); }
  .cl-guidenav-next { text-align: left; align-items: flex-start; }
}

/* policies, help, 404 */
.cl-policy { max-width: 46rem; border-top: 2px solid var(--ink); }
.cl-policy section { padding: 18px 0; border-bottom: 1px dotted var(--rule); }
.cl-policy section p { margin-top: 6px; }
.cl-policy-end { margin-top: 18px; color: var(--muted); font-size: 15px; }
.cl-404-grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 24px 56px; align-items: center; padding-block: clamp(24px, 6vw, 80px); }
.cl-404-dial .cl-mini { width: 100%; max-width: 260px; height: auto; }
.cl-404-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 700px) { .cl-404-grid { grid-template-columns: minmax(0, 1fr); } .cl-404-dial .cl-mini { max-width: 160px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .cl-header, .cl-footer, .cl-form, .cl-export { display: none; }
  body { background: #fff; }
}

