/* ============================================================================
   Career Leap molecules: small groups of atoms that do one job.
   Owner: molecules builder. Load order: tokens, base, atoms, MOLECULES, organisms, states, ...
   Built only from atoms (cl-label, cl-helper, cl-input, cl-button, cl-icon-button, cl-chip, cl-tag, cl-avatar,
   cl-check, cl-radio, cl-slider/cl-range, cl-spinner, cl-link) and tokens. No new colours, no raw values.
   Same STATE CONTRACT as atoms.css: rest, hover (pointer only), focus-visible, pressed (:active), selected, disabled, error.
   Docs-page state mirrors live in css/docs-specimens.css (round D1 ruling 12); product code never sets data-state.
   Units (round A1 ruling 1): text and min-heights in rem via tokens, spacing/radius/border/icon in px tokens.
   Components that change layout with their own width use @container (named breakpoints from tokens).
   Already owned by css/states.css (not redefined here): file upload, error summary, snackbar, banner, empty states,
   OTP, voice states, progress patterns.
   ============================================================================ */
@layer cl.molecules {

/* ---- Shared: two-tone focus ring for molecule containers -------------------------------
   Same recipe as atoms.css: 2px focus-ring outline, 2px offset, 6px halo of the page surface under it. */
.cl-field-ring,
.cl-inputgroup:has(.cl-inputgroup__input:focus-visible),
.cl-choice-card:has(.cl-radio__input:focus-visible),
.cl-choice-card:has(.cl-check__input:focus-visible),
.cl-segmented__item:has(.cl-segmented__input:focus-visible),
.cl-tab:focus-visible,
.cl-disclosure > summary:focus-visible,
.cl-list-item:has(.cl-list-item__main:focus-visible),
.cl-pagination__page:focus-visible,
.cl-breadcrumbs a:focus-visible,
.cl-tooltip-trigger:focus-visible,
.cl-combobox__option[data-active="true"] {
  outline: var(--cl-border-width-2) solid var(--cl-color-focus-ring);
  outline-offset: var(--cl-border-width-2);
  box-shadow: var(--_inset, 0 0 0 0 transparent), 0 0 0 calc(var(--cl-border-width-2) * 3) var(--cl-focus-halo, var(--cl-color-background));
}
.cl-combobox__option[data-active="true"] { outline-offset: calc(var(--cl-border-width-2) * -1); box-shadow: none; }   /* inside the list: never clipped by its scroll box */

/* ---- 1. Form field: label + marker + help + control + error + count ------------------------ */
.cl-field { display: grid; gap: var(--cl-space-8); min-width: 0; }
.cl-field__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--cl-space-12); }
.cl-field__marker { flex: none; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); }
.cl-field__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--cl-space-12); }
.cl-field__count { flex: none; margin-inline-start: auto; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); font-variant-numeric: tabular-nums; }
.cl-field__count[data-over="true"] { color: var(--cl-color-on-error-container); font-weight: var(--cl-font-weight-semibold); }

/* ---- Input group: one bordered box holding bare inputs, affixes and icon buttons ----------------
   Used by search, phone, composer and the typed rupee fields. Behaves like cl-input (border-strong, 56 min, 16px text). */
.cl-inputgroup {
  --_bd: var(--cl-color-border-strong);
  --_dis-bg: var(--cl-color-surface-disabled, var(--cl-color-divider));
  --_dis-fg: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong));
  display: flex; align-items: center; gap: var(--cl-space-4);
  min-height: var(--cl-text-field-min-height);
  border: var(--cl-text-field-border-width) solid var(--_bd);
  border-radius: var(--cl-text-field-radius);
  background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface);
}
.cl-inputgroup--dense { min-height: var(--cl-size-control-48); }
.cl-inputgroup--pill { border-radius: var(--cl-radius-999); padding-inline: var(--cl-space-4); }
.cl-inputgroup--round { border-radius: var(--cl-radius-28); padding: var(--cl-space-4); align-items: flex-end; }
.cl-inputgroup__input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  min-height: var(--cl-text-field-min-height); margin-block: calc(var(--cl-text-field-border-width) * -1);   /* the input is the full 56 (or 48 dense) target; it overlaps the 1px border instead of sitting inside it (round D1 ruling 6) */
  padding: var(--cl-space-12) var(--cl-space-12);
  border: 0; border-radius: inherit; outline: none; background: transparent; color: inherit;
  font-family: var(--cl-font-family-sans); font-size: var(--cl-text-field-font-size); line-height: var(--cl-type-body-line-height);
  appearance: none; -webkit-appearance: none;
}
.cl-inputgroup--dense .cl-inputgroup__input { min-height: var(--cl-size-control-48); padding-block: var(--cl-space-8); }
.cl-inputgroup__input::placeholder { color: var(--cl-color-on-surface-muted); }
.cl-inputgroup__input::-webkit-search-cancel-button { display: none; }
.cl-inputgroup__affix { flex: none; padding-inline: var(--cl-space-12); display: inline-flex; align-items: center; gap: var(--cl-space-8); color: var(--cl-color-on-surface-muted); font-size: var(--cl-text-field-font-size); line-height: var(--cl-type-body-line-height); font-variant-numeric: tabular-nums; }
.cl-inputgroup__affix--lead { padding-inline-end: var(--cl-space-12); color: var(--cl-color-on-surface); font-weight: var(--cl-font-weight-medium); border-inline-end: var(--cl-border-width-1) solid var(--cl-color-border); align-self: stretch; }
.cl-inputgroup .cl-icon-button { flex: none; }
.cl-inputgroup--round .cl-icon-button { margin-block-end: var(--cl-space-4); }
@media (hover: hover) and (pointer: fine) {
  .cl-inputgroup:hover:not(:has(:disabled)):not(:has(.cl-inputgroup__input:focus-visible)) { --_bd: var(--cl-color-on-surface); }
}

.cl-inputgroup:has(.cl-inputgroup__input:focus-visible) { --_bd: var(--cl-color-primary-text); }
.cl-inputgroup:has([aria-invalid="true"]), .cl-inputgroup[data-invalid="true"] { --_bd: var(--cl-color-error); --_inset: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-error); box-shadow: var(--_inset); }
.cl-inputgroup:has(.cl-inputgroup__input:disabled) { background: var(--_dis-bg); color: var(--_dis-fg); border-color: transparent; cursor: not-allowed; }
.cl-inputgroup:has(.cl-inputgroup__input:disabled) .cl-inputgroup__affix { color: var(--_dis-fg); }

/* ---- 2. Search: pill, leading icon, clear, voice, submit ------------------------------------------ */
.cl-search { padding-inline: var(--cl-space-4); }
.cl-search .cl-inputgroup__affix { padding-inline: var(--cl-space-12) var(--cl-space-0); }

/* ---- 3. Select: native element, styled shell -------------------------------------------------------- */
.cl-select { position: relative; display: block; }
.cl-select__control { padding-inline-end: var(--cl-size-target-min); cursor: pointer; text-overflow: ellipsis; }
.cl-select__chev { position: absolute; inset-block: 0; margin-block: auto; inset-inline-end: var(--cl-space-16); pointer-events: none; color: var(--cl-color-on-surface); }
.cl-select__control:disabled ~ .cl-select__chev { color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); }

/* ---- 4. Combobox / typeahead ------------------------------------------------------------------------ */
.cl-combobox { position: relative; display: block; }
.cl-combobox__list {
  position: absolute; z-index: var(--cl-z-pinned); inset-inline: 0; inset-block-start: calc(100% + var(--cl-space-4));
  margin: 0; padding: var(--cl-space-8); list-style: none;
  max-height: 16rem; overflow-y: auto; /* lint-allow: component measure in rem so it follows text size (menu, panel, column or frame width); no layout token holds this value */
  border: var(--cl-border-width-1) solid var(--cl-color-border);
  border-radius: var(--cl-radius-12);
  background: var(--cl-color-surface-overlay); box-shadow: var(--cl-elevation-2);
}
.cl-combobox--static .cl-combobox__list { position: static; margin-block-start: var(--cl-space-4); }
.cl-combobox__option {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--cl-space-12);
  min-height: var(--cl-size-target-min); padding: var(--cl-space-12) var(--cl-space-12);
  border-radius: var(--cl-radius-8); cursor: pointer;
  font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height);
}
.cl-combobox__option strong { font-weight: var(--cl-font-weight-semibold); }
.cl-combobox__option small { display: block; font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-combobox__option[aria-selected="true"] { background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); box-shadow: inset var(--cl-space-4) 0 0 var(--cl-color-selected-border); }
.cl-combobox__option[aria-selected="true"] small { color: inherit; }
.cl-combobox__option:not([aria-selected="true"]) .cl-combobox__check { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cl-combobox__option:hover:not([aria-selected="true"]) { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-hover) * 100%), transparent); }
}

.cl-combobox__option:active { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
.cl-combobox__empty { padding: var(--cl-space-12); color: var(--cl-color-on-surface-muted); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); }

/* ---- 5. Date and time: native inputs, styled shell ---------------------------------------------------- */
.cl-datetime { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--cl-space-12); } /* lint-allow: grid minimum in rem: the narrowest a column may be before it wraps; follows text size, not a layout token */
.cl-input[type="date"], .cl-input[type="time"] { min-width: 0; -webkit-appearance: none; appearance: none; text-align: start; }
.cl-input[type="date"]::-webkit-date-and-time-value, .cl-input[type="time"]::-webkit-date-and-time-value { text-align: start; min-height: 1.5em; }
.cl-input[type="date"]::-webkit-calendar-picker-indicator, .cl-input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; padding: var(--cl-space-8); border-radius: var(--cl-radius-8); }

/* ---- 6. Phone: +91 prefix, en-IN grouping 5 + 5 --------------------------------------------------------- */
.cl-phone .cl-inputgroup__input { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---- 7. Disclosure ("Why we ask"): styled <details> ---------------------------------------------------- */
.cl-disclosure { border: var(--cl-border-width-1) solid var(--cl-color-border); border-radius: var(--cl-radius-12); background: var(--cl-color-surface); color: var(--cl-color-on-surface); }
.cl-disclosure > summary {
  display: flex; align-items: center; gap: var(--cl-space-12);
  min-height: var(--cl-size-target-min); padding: var(--cl-space-8) var(--cl-space-16);
  border-radius: var(--cl-radius-12); cursor: pointer; list-style: none;
  font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold);
  -webkit-tap-highlight-color: transparent;
}
.cl-disclosure > summary::-webkit-details-marker { display: none; }
.cl-disclosure > summary::marker { content: ""; }
.cl-disclosure__title { flex: 1 1 auto; min-width: 0; }
.cl-disclosure__chev { flex: none; transition: transform var(--cl-duration-200) var(--cl-easing-standard); }
.cl-disclosure[open] > summary .cl-disclosure__chev { transform: rotate(180deg); }
.cl-disclosure__body { padding: var(--cl-space-0) var(--cl-space-16) var(--cl-space-16); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); display: grid; gap: var(--cl-space-8); }
.cl-disclosure__body p { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .cl-disclosure > summary:hover { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-hover) * 100%), transparent); }
}

.cl-disclosure > summary:active { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
@media (prefers-reduced-motion: reduce) { .cl-disclosure__chev { transition: none; } }

/* ---- 8-9. Radio card and checkbox card: the whole card is the control -------------------------------------
   Composes cl-radio / cl-check (native input, 20px box) with a title and supporting text. min-height 56, any number of lines. */
.cl-choice-group { display: grid; gap: var(--cl-quiz-option-gap); border: 0; margin: 0; padding: 0; min-width: 0; }
.cl-choice-group > legend { padding: 0; margin-block-end: var(--cl-space-12); }
.cl-choice-card {
  --_cbd: var(--cl-color-border-strong);
  position: relative;
  display: flex; align-items: center; gap: var(--cl-space-12);
  min-height: var(--cl-quiz-option-min-height);
  padding: var(--cl-quiz-option-padding-block) var(--cl-space-16);   /* 60 min, 14 block (round G): the control centres on the whole text block */
  border: var(--cl-border-width-1) solid var(--_cbd);
  border-radius: var(--cl-quiz-option-radius);
  background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface);
  --_inset: 0 0 0 0 transparent;
  box-shadow: var(--_inset);
}
.cl-choice-card .cl-radio__control, .cl-choice-card .cl-check__control { margin-inline-start: calc((var(--cl-size-icon-20) - var(--cl-size-control-40)) / 2); margin-block: calc((var(--cl-space-24) - var(--cl-size-control-40)) / 2); }
.cl-choice-card__body { display: grid; gap: var(--cl-space-2); min-width: 0; padding-block: var(--cl-space-0); }
.cl-choice-card__title { font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold); }
.cl-choice-card__text { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-choice-card:has(input:checked) { --_cbd: var(--cl-color-selected-border); --_inset: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-selected-border); background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); }   /* 2px border + the check mark in the box: never colour alone */
.cl-choice-card:has(input:checked) .cl-choice-card__text { color: inherit; }
.cl-choice-card .cl-radio__input:focus-visible ~ .cl-radio__control .cl-radio__box,
.cl-choice-card .cl-check__input:focus-visible ~ .cl-check__control .cl-check__box { outline: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .cl-choice-card:hover:not(:has(input:disabled)):not(:has(input:checked)) { --_cbd: var(--cl-color-on-surface); }
}

.cl-choice-card:active:not(:has(input:disabled)) { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-pressed) * 100%), var(--cl-color-surface-raised)); }
.cl-choice-card:has(input[aria-invalid="true"]) { --_cbd: var(--cl-color-error); }
.cl-choice-card:has(input:disabled) { background: var(--cl-color-surface-disabled, var(--cl-color-divider)); border-color: transparent; color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); cursor: not-allowed; }
.cl-choice-card:has(input:disabled) .cl-choice-card__text { color: inherit; }

/* ---- 10. This-or-that pair: two options, side by side from 360, stacked otherwise ------------------------------
   11rem x 2 + 8 gap = 360. Long labels: add --stack (author decision: more than about 20 characters). */
.cl-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--cl-quiz-option-gap); border: 0; margin: 0; padding: 0; min-width: 0; } /* lint-allow: grid minimum in rem: the narrowest a column may be before it wraps; follows text size, not a layout token */
.cl-pair--stack { grid-template-columns: minmax(0, 1fr); }
.cl-pair > legend { grid-column: 1 / -1; padding: 0; margin-block-end: var(--cl-space-4); }
.cl-pair .cl-choice-card { align-items: center; }

/* ---- 11. Segmented control: 2 to 4 options, words only ----------------------------------------------------------
   Visible 40, hit area 48 (input extends 4 above and below). Selected = tint + check glyph + aria-checked: never colour alone. */
.cl-segmented { display: flex; flex-wrap: wrap; border: 0; margin: 0 0 var(--cl-border-width-1); padding: 0; min-width: 0; }   /* wraps instead of clipping at 200% text / 360 (round D1) */
.cl-segmented__item {
  --_sl: var(--cl-color-state-layer-on-surface);
  position: relative; isolation: isolate; flex: 1 1 auto; min-width: min-content;
  display: flex; align-items: center; justify-content: center; gap: var(--cl-space-4);
  min-height: var(--cl-size-control-48); padding-inline: var(--cl-space-8); margin-block-end: calc(var(--cl-border-width-1) * -1);   /* 48 on every pointer; wrapped rows overlap their borders */
  overflow-wrap: normal; word-break: normal;
  border: var(--cl-border-width-1) solid var(--cl-color-border-strong);
  background: transparent; color: var(--cl-color-on-surface);
  font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold);   /* 16/24 600 at 48 (ruling 4 A1) */
  text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cl-segmented__item + .cl-segmented__item { margin-inline-start: calc(var(--cl-border-width-1) * -1); }
.cl-segmented__item:first-child { border-start-start-radius: var(--cl-radius-999); border-end-start-radius: var(--cl-radius-999); padding-inline-start: var(--cl-space-12); }
.cl-segmented__item:last-child { border-start-end-radius: var(--cl-radius-999); border-end-end-radius: var(--cl-radius-999); padding-inline-end: var(--cl-space-12); }
.cl-segmented__item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; z-index: -1; }
.cl-segmented__input { position: absolute; inset: calc(var(--cl-border-width-1) * -1) 0; width: 100%; height: calc(100% + var(--cl-border-width-1) * 2); margin: 0; opacity: 0; cursor: inherit; z-index: 1; }
.cl-segmented__check { display: none; }
.cl-segmented__item:has(.cl-segmented__input:checked) { background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); --_sl: var(--cl-color-state-layer-on-secondary); border-color: var(--cl-color-selected-border); box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-selected-border); z-index: 1; }
.cl-segmented__item:has(.cl-segmented__input:checked) .cl-segmented__check { display: block; }
@media (hover: hover) and (pointer: fine) {
  .cl-segmented__item:hover::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-hover) * 100%), transparent); }
}

.cl-segmented__item:active::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
.cl-segmented__item:has(.cl-segmented__input:focus-visible) { z-index: var(--cl-z-pinned); }
.cl-segmented__item:has(.cl-segmented__input:disabled) { color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); border-color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); cursor: not-allowed; }
.cl-segmented__item:has(.cl-segmented__input:disabled:checked) { background: var(--cl-color-surface-disabled, var(--cl-color-divider)); }

/* ---- 12. Tabs: roving tabindex; scrolls on phones, focus never clipped (padding 8 > ring 6) ------------------------------ */
.cl-tabs-wrap { min-width: 0; max-width: 100%; inline-size: 100%; contain: inline-size; border-block-end: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-tabs {
  display: flex; gap: var(--cl-space-8);
  padding: var(--cl-space-8) var(--cl-space-8) var(--cl-space-8);
  overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--cl-space-16);
  -webkit-overflow-scrolling: touch;
}
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tabs[data-overflow="end"], .cl-palette__scopes[data-overflow="end"] { -webkit-mask-image: linear-gradient(to right, var(--cl-color-on-surface) calc(100% - var(--cl-space-24)), transparent); mask-image: linear-gradient(to right, var(--cl-color-on-surface) calc(100% - var(--cl-space-24)), transparent); }   /* end-edge fade when more tabs are off-screen; data-overflow is set by the page helper */
.cl-tab {
  --_sl: var(--cl-color-state-layer-on-surface);
  position: relative; isolation: isolate; flex: none;
  display: inline-flex; align-items: center; gap: var(--cl-space-8);
  min-height: var(--cl-size-target-min); padding-inline: var(--cl-space-16);
  border: 0; border-radius: var(--cl-radius-8);
  background: transparent; color: var(--cl-color-on-surface-muted);
  font-family: var(--cl-font-family-sans); font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cl-tab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; z-index: -1; }
.cl-tab::after { content: ""; position: absolute; inset-inline: var(--cl-space-8); inset-block-end: calc(var(--cl-space-8) * -1); height: calc(var(--cl-border-width-2) * 1.5); border-radius: var(--cl-radius-999) var(--cl-radius-999) 0 0; background: transparent; }
.cl-tab[aria-selected="true"] { color: var(--cl-color-primary-text); }
.cl-tab[aria-selected="true"]::after { background: var(--cl-color-primary); }
@media (hover: hover) and (pointer: fine) {
  .cl-tab:hover::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-hover) * 100%), transparent); }
  .cl-tab:hover:not([aria-selected="true"]) { color: var(--cl-color-on-surface); }
}

.cl-tab:active::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
.cl-tab:disabled, .cl-tab[aria-disabled="true"] { color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); cursor: not-allowed; }
.cl-tabpanel { padding-block: var(--cl-space-16); border-radius: var(--cl-radius-8); }
.cl-tabpanel:focus-visible { outline: var(--cl-border-width-2) solid var(--cl-color-focus-ring); outline-offset: var(--cl-border-width-2); }

/* ---- 13. Breadcrumbs: laptop only (hidden below 840; a Back link replaces it on phones) ---------------------------------- */
.cl-breadcrumbs { display: none; }
@media (min-width: 840px) { .cl-breadcrumbs { display: block; } }
.cl-breadcrumbs--always { display: block; }
.cl-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.cl-breadcrumbs li { display: inline-flex; align-items: center; }
.cl-breadcrumbs li:not(:last-child)::after { content: ""; width: var(--cl-size-icon-16); height: var(--cl-size-icon-16); margin-inline: var(--cl-space-4); background: var(--cl-color-on-surface-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cl-breadcrumbs a, .cl-breadcrumbs [aria-current="page"] { display: inline-flex; align-items: center; min-block-size: var(--cl-size-target-min); padding-block: var(--cl-space-8); padding-inline: var(--cl-space-4); border-radius: var(--cl-radius-4); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); }
.cl-breadcrumbs a { color: var(--cl-color-primary-text); text-decoration: underline; text-decoration-thickness: var(--cl-border-width-1); text-underline-offset: var(--cl-space-4); }
.cl-breadcrumbs [aria-current="page"] { color: var(--cl-color-on-surface); font-weight: var(--cl-font-weight-semibold); }
@media (hover: hover) and (pointer: fine) { .cl-breadcrumbs a:hover { text-decoration-thickness: var(--cl-border-width-2); } }
.cl-breadcrumbs a:active { text-decoration-thickness: var(--cl-border-width-2); }

/* ---- 14. Pagination and load more ---------------------------------------------------------------------------------------- */
.cl-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--cl-space-8); }
.cl-pagination__pages { display: flex; align-items: center; gap: var(--cl-space-8); margin: 0; padding: 0; list-style: none; }
.cl-pagination__page {
  --_sl: var(--cl-color-state-layer-on-surface);
  position: relative; isolation: isolate; display: inline-grid; place-items: center;
  min-width: var(--cl-size-target-min); min-height: var(--cl-size-target-min); padding-inline: var(--cl-space-8);
  border: 0; border-radius: var(--cl-radius-999); background: transparent; color: var(--cl-color-on-surface);
  font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold); font-variant-numeric: tabular-nums;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cl-pagination__page::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; z-index: -1; }
.cl-pagination__page[aria-current="page"] { background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); box-shadow: inset 0 0 0 var(--cl-border-width-2) var(--cl-color-selected-border); --_sl: var(--cl-color-state-layer-on-secondary); }
@media (hover: hover) and (pointer: fine) { .cl-pagination__page:hover::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-hover) * 100%), transparent); } }

.cl-pagination__page:active::before { background: color-mix(in srgb, var(--_sl) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
.cl-pagination__status { padding-inline: var(--cl-space-8); color: var(--cl-color-on-surface-muted); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); font-variant-numeric: tabular-nums; }
.cl-loadmore { display: grid; justify-items: center; gap: var(--cl-space-12); text-align: center; }
.cl-pagination__pages--wide { display: none; }
@container (min-width: 600px) { .cl-pagination__pages--wide { display: flex; } .cl-pagination__status--short { display: none; } }
.cl-pagination-host { container-type: inline-size; }

/* ---- 15. Step item: done / current / upcoming, words and shapes, never numbers-as-scores ------------------------------------ */
.cl-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.cl-step { position: relative; display: grid; grid-template-columns: var(--cl-space-32) minmax(0, 1fr); align-items: center; column-gap: var(--cl-space-12); padding-block-end: var(--cl-space-16); }   /* the node centres on the whole text block (round G ask 3) */
.cl-step:last-child { padding-block-end: 0; }
.cl-step__node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: var(--cl-space-32); height: var(--cl-space-32); border-radius: var(--cl-radius-999);
  border: var(--cl-border-width-2) solid var(--cl-color-border-strong); background: var(--cl-color-surface-raised); color: var(--cl-color-on-primary);
}
.cl-step__node .cl-icon { display: none; }
.cl-step::before { content: ""; position: absolute; inset-inline-start: calc(var(--cl-space-16) - var(--cl-border-width-1)); inset-block: var(--cl-space-32) 0; width: var(--cl-border-width-2); background: var(--cl-color-border-strong); transform: translateX(calc(var(--cl-border-width-1) / -1)); }
.cl-step:last-child::before { display: none; }
.cl-step__body { display: grid; gap: var(--cl-space-2); min-width: 0; }
.cl-step__title { font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold); }
.cl-step__status { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-step[data-status="done"] .cl-step__node { background: var(--cl-color-primary); border-color: var(--cl-color-primary); }
.cl-step[data-status="done"] .cl-step__node .cl-icon { display: block; }
.cl-step[data-status="done"]::before { background: var(--cl-color-primary); }
.cl-step[data-status="current"] .cl-step__node { border-color: var(--cl-color-selected-border); background: var(--cl-color-selected-container); }
.cl-step[data-status="current"] .cl-step__node::after { content: ""; width: var(--cl-space-12); height: var(--cl-space-12); border-radius: var(--cl-radius-999); background: var(--cl-color-primary); }
.cl-step[data-status="current"] .cl-step__title { color: var(--cl-color-primary-text); }
.cl-step[data-status="upcoming"] .cl-step__node { border-style: dashed; }
.cl-step[data-status="upcoming"] .cl-step__title { color: var(--cl-color-on-surface-muted); }
.cl-step__link { color: inherit; text-decoration: none; border-radius: var(--cl-radius-4); }
.cl-steps--row { container-type: normal; }
@container (min-width: 840px) {
  .cl-steps--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cl-steps--row .cl-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: var(--cl-space-8); padding-block-end: 0; padding-inline-end: var(--cl-space-8); }
  .cl-steps--row .cl-step::before { inset-inline-start: var(--cl-space-32); inset-block: var(--cl-space-16) auto; inset-inline-end: 0; width: auto; height: var(--cl-border-width-2); transform: none; }
  .cl-steps--row .cl-step__body { padding-block-start: 0; }
}

/* ---- 16. List item: 1, 2, 3 lines (56 / 72 / 88), leading avatar or icon, trailing action ------------------------------------- */
.cl-list { margin: 0; padding: 0; list-style: none; }
.cl-list-item {
  position: relative; display: flex; align-items: center; gap: var(--cl-space-12);
  min-height: var(--cl-list-item-min-height-one-line);
  padding: var(--cl-space-8) var(--cl-list-item-padding-inline);
  background: transparent; color: var(--cl-color-on-surface);
}
.cl-list-item + .cl-list-item { border-block-start: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-list-item--2 { min-height: var(--cl-list-item-min-height-two-line); }
.cl-list-item--3 { min-height: var(--cl-list-item-min-height-three-line); align-items: center; padding-block: var(--cl-space-12); }
.cl-list-item__lead { flex: none; display: grid; place-items: center; width: var(--cl-size-control-40); height: var(--cl-size-control-40); color: var(--cl-color-on-surface-muted); }
.cl-list-item__body { flex: 1 1 auto; min-width: 0; display: grid; }
.cl-list-item__overline { font-size: var(--cl-type-eyebrow-size); line-height: var(--cl-type-eyebrow-line-height); font-weight: var(--cl-font-weight-semibold); letter-spacing: var(--cl-type-eyebrow-tracking); text-transform: var(--cl-type-eyebrow-transform); color: var(--cl-color-on-surface-muted); }
.cl-list-item__title { font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-medium); overflow-wrap: anywhere; }
.cl-list-item__support { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-list-item__trail { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: var(--cl-space-8); color: var(--cl-color-on-surface-muted); font-size: var(--cl-type-body-small-size); }
.cl-list-item__main { color: inherit; text-decoration: none; }
.cl-list-item__main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* stretched hit area; trailing actions sit above it */
.cl-list-item:has(.cl-list-item__main) { cursor: pointer; border-radius: var(--cl-radius-8); }
@media (hover: hover) and (pointer: fine) {
  .cl-list-item:has(.cl-list-item__main):hover { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-hover) * 100%), transparent); }
}

.cl-list-item:has(.cl-list-item__main):active { background: color-mix(in srgb, var(--cl-color-state-layer-on-surface) calc(var(--cl-opacity-state-pressed) * 100%), transparent); }
.cl-list-item[aria-current="true"] { background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); box-shadow: inset var(--cl-space-4) 0 0 var(--cl-color-selected-border); }
.cl-list-item[aria-current="true"] .cl-list-item__support, .cl-list-item[aria-current="true"] .cl-list-item__lead { color: inherit; }
.cl-list-item[aria-disabled="true"] { color: var(--cl-color-on-surface-disabled, var(--cl-color-border-strong)); cursor: not-allowed; }
.cl-list-item[aria-disabled="true"] .cl-list-item__support, .cl-list-item[aria-disabled="true"] .cl-list-item__lead { color: inherit; }

/* ---- 17. Evidence row: words, never a percentage ------------------------------------------------------------------------------ */
.cl-evidence { display: grid; gap: var(--cl-space-8); padding: var(--cl-space-12) var(--cl-list-item-padding-inline); min-height: var(--cl-list-item-min-height-two-line); }
.cl-evidence + .cl-evidence { border-block-start: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-evidence__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cl-space-8) var(--cl-space-12); }
.cl-evidence__name { font-size: var(--cl-type-heading-4-size); line-height: var(--cl-type-heading-4-line-height); font-weight: var(--cl-type-heading-4-weight); }
.cl-tag.cl-evidence__status::before { display: none; }
.cl-tag.cl-evidence__status { --_bg: var(--cl-color-surface-raised); --_fg: var(--cl-color-on-surface); --_bd: var(--cl-color-border-strong); gap: var(--cl-space-4); text-transform: none; letter-spacing: normal; font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); padding-inline: var(--cl-space-8); white-space: normal; }
.cl-evidence__detail { margin: 0; font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-evidence__act { justify-self: start; }

/* ---- 18. Mechanism footer: who does what ------------------------------------------------------------------------------------------ */
.cl-mechanism { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cl-space-4) var(--cl-space-8); margin: 0; padding-block-start: var(--cl-space-12); border-block-start: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-mechanism__item { display: inline-flex; align-items: center; gap: var(--cl-space-8); }
.cl-mechanism__sep { display: none; }   /* no glyph: the row gap separates tags, the visually-hidden ", then" keeps the order (round D1; a dangling · at a line end is gone) */

/* ---- 19. Provenance label ------------------------------------------------------------------------------------------------------------ */
.cl-provenance { display: flex; align-items: center; gap: var(--cl-space-8); margin: 0; font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-provenance .cl-icon { margin-block-start: 0; }

/* ---- 20. Price tag: tabular figures, en-IN grouping -------------------------------------------------------------------------------------- */
.cl-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: var(--cl-space-4) var(--cl-space-8); font-variant-numeric: tabular-nums lining-nums; }
.cl-price__amount, .cl-money { white-space: nowrap; }   /* an amount never splits from its currency sign (round E1 ruling 17) */
.cl-price__amount { font-size: var(--cl-type-heading-2-size); line-height: var(--cl-type-heading-2-line-height); font-weight: var(--cl-type-heading-2-weight); letter-spacing: var(--cl-type-heading-2-tracking); }
.cl-price--sm .cl-price__amount { font-size: var(--cl-type-title-size); line-height: var(--cl-type-title-line-height); font-weight: var(--cl-type-title-weight); }
.cl-price--lg .cl-price__amount { font-size: var(--cl-type-heading-1-size); line-height: var(--cl-type-heading-1-line-height); font-weight: var(--cl-type-heading-1-weight); letter-spacing: var(--cl-type-heading-1-tracking); }
.cl-price__unit { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-price__placeholder { text-decoration: underline dashed; text-decoration-thickness: var(--cl-border-width-1); text-underline-offset: var(--cl-space-4); }

/* ---- 21. Expert chip: a real person, or an honest "Not yet matched" ---------------------------------------------------------------------------- */
.cl-expert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--cl-space-12); align-items: start; padding: var(--cl-space-12) var(--cl-space-16); border: var(--cl-border-width-1) solid var(--cl-color-border); border-radius: var(--cl-radius-16); background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface); }
.cl-expert__body { display: grid; gap: var(--cl-space-4); min-width: 0; }
.cl-expert__name { font-size: var(--cl-type-heading-4-size); line-height: var(--cl-type-heading-4-line-height); font-weight: var(--cl-type-heading-4-weight); }
.cl-expert__role { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-expert__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cl-space-4) var(--cl-space-12); }
.cl-expert--empty { border-style: dashed; border-color: var(--cl-color-border-strong); background: var(--cl-color-surface); }
.cl-expert .cl-avatar--placeholder { box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-border-strong); }

/* ---- 22. Tooltip: pointer and keyboard only. Touch gets a disclosure instead. -------------------------------------------------------------------------------- */
.cl-tooltip-wrap { position: relative; display: inline-flex; }
.cl-tooltip-trigger { border-radius: var(--cl-radius-8); }
.cl-tooltip {
  position: absolute; z-index: calc(var(--cl-z-pinned) + 1); inset-inline-start: 0; inset-block-end: calc(100% + var(--cl-space-8));
  width: max-content; max-width: min(20rem, 80vw); /* lint-allow: component measure in rem so it follows text size (menu, panel, column or frame width); no layout token holds this value */
  padding: var(--cl-space-8) var(--cl-space-12); border-radius: var(--cl-radius-4);
  background: var(--cl-color-on-surface); color: var(--cl-color-surface);
  font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); font-weight: var(--cl-font-weight-regular);
  visibility: hidden; pointer-events: none;
}
.cl-tooltip::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; height: var(--cl-space-8); }   /* bridge so the pointer can travel onto it (WCAG 1.4.13 hoverable) */
.cl-tooltip-wrap:has(:focus-visible) .cl-tooltip:not([data-dismissed]) { visibility: visible; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .cl-tooltip-wrap:hover .cl-tooltip:not([data-dismissed]) { visibility: visible; pointer-events: auto; }
}
.cl-tooltip--static { position: static; visibility: visible; transform: none; display: inline-block; }

/* ---- 23. Quote (round G ask 6). Replaces the left-bar quote. Variants: research fragment (default, anonymised), --testimonial (consented only), --pull.
   Markup: <figure class="cl-quote"><svg class="cl-quote__border" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true" focusable="false"><path pathLength="1" d="..."/><path class="cl-quote__stroke2" pathLength="1" d="..."/></svg>
           <blockquote class="cl-quote__text">...</blockquote><figcaption class="cl-quote__source"><span class="cl-quote__who">...</span> {provenance Tag} <span class="cl-quote__hand">optional Kalam flourish</span></figcaption></figure>
   Look: big navy quote marks (open top-left, close bottom-right) that scale in from .85 with a slight overshoot; a hand-drawn gold border that draws on once (stroke-dashoffset, about 600 ms)
   when js/quote.js sees the quote enter the viewport (it sets data-anim="wait", then "in"). Without JS, with reduced motion, or in forced colours the quote is simply finished. ---- */
.cl-quote { --_pad: var(--cl-space-24); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cl-space-12); min-inline-size: 0; margin: 0; padding: calc(var(--_pad) + var(--cl-space-16)) var(--_pad) var(--_pad); border-radius: var(--cl-radius-20); background: var(--cl-color-surface-glass); -webkit-backdrop-filter: var(--cl-glass-filter); backdrop-filter: var(--cl-glass-filter); box-shadow: var(--cl-glass-shadow); color: var(--cl-color-on-surface); }
.cl-quote__border { position: absolute; inset: calc(var(--cl-space-2) * -1); inline-size: calc(100% + var(--cl-space-4)); block-size: calc(100% + var(--cl-space-4)); overflow: visible; pointer-events: none; z-index: -1; }
.cl-quote__border path { fill: none; stroke: var(--cl-color-highlight-text); stroke-width: calc(var(--cl-border-width-1) * 1.5); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }   /* no JS: the static path, finished */
.cl-quote__border[data-px] path { vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 0; }   /* JS: a pixel-true outline, dashed over pathLength 1 */
.cl-quote::before, .cl-quote::after { position: absolute; font-family: var(--cl-font-family-sans); font-weight: var(--cl-font-weight-semibold); font-size: 4rem; line-height: 1; color: var(--cl-color-primary-text); pointer-events: none; }   /* navy in light, the light blue text role in dark, so the marks show on every card */
.cl-quote::before { content: "\201C"; inset-block-start: var(--cl-space-8); inset-inline-start: var(--cl-space-16); transform-origin: 20% 80%; }
.cl-quote::after { content: "\201D"; inset-block-end: calc(var(--cl-space-24) * -1 + var(--cl-space-4)); inset-inline-end: var(--cl-space-16); transform-origin: 80% 20%; }
.cl-quote__text { margin: 0; font-size: var(--cl-type-body-long-size); line-height: var(--cl-type-body-long-line-height); font-weight: var(--cl-font-weight-medium); color: var(--cl-color-on-surface); }
.cl-quote__source { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cl-space-4) var(--cl-space-8); margin: 0; padding-inline-end: var(--cl-space-32); }
.cl-quote__who { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); font-weight: var(--cl-font-weight-semibold); color: var(--cl-color-on-surface); }
.cl-quote__hand { font-family: var(--cl-type-hand-family); font-size: var(--cl-type-hand-size); line-height: var(--cl-type-hand-line-height); letter-spacing: var(--cl-type-hand-tracking); color: var(--cl-color-primary-text); }   /* Kalam only for the flourish, 20 px or more */
.cl-quote--pull { --_pad: var(--cl-space-32); }
.cl-quote--pull .cl-quote__text { font-size: var(--cl-type-heading-3-size); line-height: var(--cl-type-heading-3-line-height); font-weight: var(--cl-type-heading-3-weight); letter-spacing: var(--cl-type-heading-3-tracking); }
.cl-quote--testimonial .cl-quote__text { font-weight: var(--cl-font-weight-semibold); }
@media (prefers-reduced-motion: no-preference) {
  .cl-quote[data-anim] .cl-quote__border[data-px] path { transition: stroke-dashoffset var(--cl-duration-600) var(--cl-easing-standard); }
  .cl-quote[data-anim]::before, .cl-quote[data-anim]::after { transition: transform var(--cl-duration-400) cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--cl-duration-200) linear; }
  .cl-quote[data-anim]::after { transition-delay: var(--cl-duration-200); }
  .cl-quote[data-anim="wait"] .cl-quote__border[data-px] path { stroke-dashoffset: 1; }
  .cl-quote[data-anim="wait"]::before, .cl-quote[data-anim="wait"]::after { transform: scale(.85); opacity: 0; }
}
@media (forced-colors: active) { .cl-quote { border: var(--cl-border-width-1) solid CanvasText; } .cl-quote__border { display: none; } .cl-quote::before, .cl-quote::after { color: CanvasText; } }

/* ---- 23b. Sticky note (round G ask 3): the "hand" register. Butter paper, a rotation (modifier per angle), paper shadow, a fold corner, a Kalam eyebrow (20 px or more) and Inter body.
   <aside class="cl-sticky cl-sticky--r-1"><p class="cl-sticky__hand">First recommendation</p><p>...</p></aside>   Rotation modifiers: --r-2, --r-1, (none = 0), --r1, --r2 degrees. One per screen is the pen budget. ---- */
.cl-sticky { --_rot: 0deg; position: relative; display: grid; gap: var(--cl-space-8); min-inline-size: 0; padding: var(--cl-space-20); padding-block-end: var(--cl-space-24); background: var(--cl-il-sticky); color: var(--cl-il-on-sticky); border-radius: var(--cl-radius-4); box-shadow: var(--cl-elevation-2); transform: rotate(var(--_rot)); }
.cl-sticky::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: var(--cl-space-24); block-size: var(--cl-space-24); background: linear-gradient(135deg, var(--cl-il-sticky-fold-light) 0 50%, var(--cl-il-sticky-fold) 50% 100%); border-start-start-radius: var(--cl-radius-4); box-shadow: -2px -2px 4px var(--cl-il-sticky-fold); }   /* the folded corner: light underside, dark crease */
.cl-sticky > * { margin: 0; }
.cl-sticky .cl-link { color: var(--cl-il-on-sticky); }   /* navy on butter, 4.5:1 in dark too (round G9) */
.cl-sticky__hand { font-family: var(--cl-type-hand-family); font-size: var(--cl-type-hand-size); line-height: var(--cl-type-hand-line-height); font-weight: var(--cl-type-hand-weight); letter-spacing: var(--cl-type-hand-tracking); color: var(--cl-il-on-sticky); }
.cl-sticky--r-2 { --_rot: -2deg; } .cl-sticky--r-1 { --_rot: -1deg; } .cl-sticky--r1 { --_rot: 1deg; } .cl-sticky--r2 { --_rot: 2deg; }
@media (forced-colors: active) { .cl-sticky { border: var(--cl-border-width-1) solid CanvasText; transform: none; } .cl-sticky::after { display: none; } }

/* ---- 24-25. Assistant message and user answer bubble ------------------------------------------------------------------------------------------------------------------- */
.cl-msg { display: grid; gap: var(--cl-space-4); max-width: 100%; }
.cl-msg--assistant { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--cl-space-8); align-items: start; }
.cl-msg--user { justify-items: end; }
.cl-msg__who { display: flex; align-items: center; gap: var(--cl-space-4); font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); font-weight: var(--cl-font-weight-semibold); color: var(--cl-color-on-surface-muted); }
.cl-msg__col { display: grid; gap: var(--cl-space-4); min-width: 0; justify-items: start; }
.cl-msg--user .cl-msg__col { justify-items: end; }
.cl-msg__bubble {
  max-width: min(100%, var(--cl-layout-reading-measure)); padding: var(--cl-space-12) var(--cl-space-16);
  border-radius: var(--cl-radius-20); overflow-wrap: anywhere;
  font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height);
}
.cl-msg--assistant .cl-msg__bubble { border-start-start-radius: var(--cl-radius-4); background: var(--cl-color-surface-glass-lite); -webkit-backdrop-filter: var(--cl-glass-filter); backdrop-filter: var(--cl-glass-filter); border: var(--cl-border-width-1) solid var(--cl-color-border); box-shadow: var(--cl-glass-highlight); color: var(--cl-color-on-surface); }   /* white glass with a hairline (round G ask 10) */
.cl-msg--user .cl-msg__bubble { border-end-end-radius: var(--cl-radius-4); background: var(--cl-color-selected-container); color: var(--cl-color-on-selected-container); border: var(--cl-border-width-1) solid var(--cl-color-selected-border); }   /* her answer: white with a dark-blue hairline, never a blue fill */
.cl-msg__bubble p { margin: 0; }
.cl-msg__bubble p + p { margin-block-start: var(--cl-space-8); }
.cl-msg__working { display: inline-flex; align-items: center; gap: var(--cl-space-8); }
.cl-msg__locked { display: inline-flex; align-items: center; gap: var(--cl-space-4); min-height: var(--cl-size-target-min); font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); }

/* ---- 26. Quick-reply chip set --------------------------------------------------------------------------------------------------------------------------------------------- */
.cl-quick { display: flex; flex-wrap: wrap; gap: var(--cl-space-16) var(--cl-space-8); margin: 0; padding: var(--cl-space-8) var(--cl-space-4); border: 0; min-width: 0; }
.cl-quick > legend, .cl-chipgroup > legend { padding: 0; }
.cl-quick .cl-chip { white-space: normal; text-align: start; padding-block: var(--cl-space-4); }
.cl-kbd { display: none; align-items: center; justify-content: center; min-width: var(--cl-size-icon-20); height: var(--cl-size-icon-20); padding-inline: var(--cl-space-4); border: var(--cl-border-width-1) solid var(--cl-color-border-strong); border-radius: var(--cl-radius-4); background: var(--cl-color-surface); color: var(--cl-color-on-surface); font-family: var(--cl-font-family-sans); font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); font-weight: var(--cl-font-weight-semibold); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) and (min-width: 840px) { .cl-kbd { display: inline-flex; } }
.cl-kbd--show { display: inline-flex; }
@media (hover: none), (pointer: coarse) { .cl-kbd, .cl-kbd--show { display: none; } }   /* keycaps mean nothing on a touch screen (round E1 ruling 15) */

/* ---- 27. Multi-select chip group with Done ------------------------------------------------------------------------------------------------------------------------------------ */
.cl-chipgroup { display: grid; gap: var(--cl-space-12); margin: 0; padding: 0; border: 0; min-width: 0; }
.cl-chipgroup__chips { display: flex; flex-wrap: wrap; gap: var(--cl-space-16) var(--cl-space-8); padding: var(--cl-space-8) var(--cl-space-4); }
.cl-chipgroup__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cl-space-8) var(--cl-space-16); }
.cl-chipgroup__count { font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }

/* ---- 28. Rupee range field: two thumbs, typed min and max, LPA ------------------------------------------------------------------------------------------------------------------ */
.cl-rangefield { display: grid; gap: var(--cl-space-16); min-width: 0; border: 0; margin: 0; padding: 0; }
.cl-rangefield__value { margin: 0; font-size: var(--cl-type-heading-3-size); line-height: var(--cl-type-heading-3-line-height); font-weight: var(--cl-type-heading-3-weight); font-variant-numeric: tabular-nums lining-nums; }
.cl-rangefield__bounds { display: flex; justify-content: space-between; margin-block-start: calc(var(--cl-space-8) * -1); font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); font-variant-numeric: tabular-nums; }
.cl-rangefield .cl-range-fields { gap: var(--cl-space-12); }

/* ---- 29. Review-list row: skill, provenance tag, level, remove ------------------------------------------------------------------------------------------------------------------ */
.cl-review-host { container-type: inline-size; }
.cl-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--cl-space-8) var(--cl-space-12); align-items: start; padding: var(--cl-space-12) var(--cl-list-item-padding-inline); min-height: var(--cl-list-item-min-height-three-line); }
.cl-review + .cl-review { border-block-start: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-review__name { display: grid; gap: var(--cl-space-4); justify-items: start; min-width: 0; }
.cl-review__skill { font-size: var(--cl-font-size-16); line-height: var(--cl-type-body-line-height); font-weight: var(--cl-font-weight-semibold); overflow-wrap: anywhere; }
.cl-review__level { grid-column: 1 / -1; min-width: 0; }
.cl-review__hint { margin: var(--cl-space-4) 0 0; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); }
.cl-review__removed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cl-space-8); grid-column: 1 / -1; min-height: var(--cl-size-target-min); }
/* Markup order is name, remove button, level (so Tab goes name > remove > level on a phone). Areas, not source order, place them:
   phone: name | remove, then level full width;  wide: name | level | remove. */
.cl-review > .cl-review__name { grid-column: 1; grid-row: 1; }
.cl-review > .cl-icon-button { grid-column: 2; grid-row: 1; }
.cl-review > .cl-review__level { grid-column: 1 / -1; grid-row: 2; }
@container (min-width: 600px) {
  .cl-review { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem) auto; align-items: center; } /* lint-allow: component measure in rem so it follows text size (menu, panel, column or frame width); no layout token holds this value */
  .cl-review > .cl-icon-button { grid-column: 3; grid-row: 1; }
  .cl-review > .cl-review__level { grid-column: 2; grid-row: 1; }
  .cl-review__hint { grid-column: auto; }
}

/* ---- 30. Stage progress: "Your direction · 2 of 4": honest, no percentage ------------------------------------------------------------------------------------------------------------------ */
.cl-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cl-space-8); min-inline-size: 0; }   /* one fluid track: the bars can never widen the page at 200% text (round E1 ruling 20) */
.cl-stage > * { min-inline-size: 0; }
.cl-stage__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cl-space-12); }
.cl-stage__name { margin: 0; }
.cl-stage__count { margin: 0; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); font-weight: var(--cl-font-weight-semibold); color: var(--cl-color-on-surface-muted); font-variant-numeric: tabular-nums; }
.cl-stage__bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--cl-space-4); margin: 0; padding: 0; list-style: none; }
.cl-stage__bar { height: var(--cl-space-4); border-radius: var(--cl-radius-999); background: var(--cl-color-divider); box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-border); }
.cl-stage__bar[data-status="done"] { background: var(--cl-color-primary); box-shadow: none; }
.cl-stage__bar[data-status="current"] { background: var(--cl-color-primary-container); box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-primary); }
.cl-stage--thick .cl-stage__bar { height: var(--cl-space-8); }

/* ---- 31. Composer: text + voice + send, with the AI disclosure line ------------------------------------------------------------------------------------------------------------------------------------ */
.cl-composer { display: grid; gap: var(--cl-space-8); min-width: 0; }
.cl-composer__text { align-self: center; resize: none; max-height: 8rem; overflow-y: auto; field-sizing: content; min-height: var(--cl-size-control-48); padding-block: var(--cl-space-12); } /* lint-allow: component measure in rem so it follows text size (menu, panel, column or frame width); no layout token holds this value */
.cl-composer__note { margin: 0; padding-inline: var(--cl-space-12); text-align: center; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); }
.cl-composer .cl-inputgroup--round .cl-inputgroup__input { min-height: var(--cl-size-control-48); padding-block: var(--cl-space-12); }

/* ---- 32. Panel: the one bordered surface (round E1 ruling 30). Replaces about 12 page-level copies of "border + radius + raised surface".
   Sizes set padding and radius together: sm 16 / r16, md 20 / r16 (default), lg 24 / r20. Surface: raised (default), --quiet (surface, no raise), --plain (no border).
   Emphasis: --strong (border-strong, for the one panel that matters), --danger (error border). --flush: no padding, children are rows (lists) and the panel clips them.
   Tokens: surface-raised / surface, border / border-strong / error, radius 16 / 20, space 16 / 20 / 24. Children are laid out as a grid with a 12 gap; override --_gap. ---- */
.cl-panel { --_pad: var(--cl-space-20); --_r: var(--cl-radius-16); --_gap: var(--cl-space-12); box-sizing: border-box; min-inline-size: 0; display: grid; gap: var(--_gap); align-content: start; padding: var(--_pad); border: var(--cl-border-width-1) solid var(--cl-color-border); border-radius: var(--_r); background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface); }
.cl-panel > * { min-inline-size: 0; }
.cl-panel--sm { --_pad: var(--cl-space-16); }
.cl-panel--lg { --_pad: var(--cl-space-24); --_r: var(--cl-radius-20); }
.cl-panel--quiet { background: var(--cl-color-surface); }
.cl-panel--plain { border-color: transparent; }
.cl-panel--strong { border-color: var(--cl-color-border-strong); }
.cl-panel--danger { border-color: var(--cl-color-error); }
.cl-panel--flush { --_pad: 0; display: block; overflow: hidden; }
.cl-panel > :is(h1, h2, h3, h4, p):first-child { margin-block-start: 0; }
.cl-panel__title, .cl-panel__head > :is(h2, h3, h4), .cl-panel > :is(h2, h3, h4):first-child { margin: 0; font-size: var(--cl-type-heading-4-size); line-height: var(--cl-type-heading-4-line-height); font-weight: var(--cl-type-heading-4-weight); letter-spacing: var(--cl-type-heading-4-tracking); }   /* card and panel titles are heading-4 (round G ask 6); a section head inside a card is heading-3 */
.cl-panel__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--cl-space-8) var(--cl-space-12); }   /* title + tag/action: the tag drops under the title at large text, the title keeps its words whole */
.cl-panel__head > :first-child { flex: 1 1 10rem; min-inline-size: 0; margin: 0; overflow-wrap: break-word; hyphens: manual; } /* lint-allow: component measure in rem so it follows text size (menu, panel, column or frame width); no layout token holds this value */

/* ---- Quiz composition helper. (.cl-quiz-tray was deleted in round E1 ruling 31: the product tray is .cl-action-bar--tray / .cl-quiz__tray in organisms-app.css.) ---- */
.cl-thread { display: grid; gap: var(--cl-space-16); align-content: start; }

/* ---- Glass (round G ask 5): cards over the canvas are glass: fill + white hairline + warm lift; blur from 600 up. Same recipe as .cl-glass in base.css. ---- */
.cl-panel, .cl-quote, .cl-msg--assistant .cl-msg__bubble { background: var(--cl-color-surface-glass-lite); border-color: var(--cl-glass-border); box-shadow: var(--cl-glass-shadow); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 600px) { .cl-panel, .cl-quote, .cl-msg--assistant .cl-msg__bubble { background: var(--cl-color-surface-glass); -webkit-backdrop-filter: var(--cl-glass-filter); backdrop-filter: var(--cl-glass-filter); } }   /* cards drop the blur on phones: at most 6 blurred layers per viewport */
}

/* ---- Forced colours and contrast ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .cl-panel, .cl-sticky, .cl-inputgroup, .cl-choice-card, .cl-segmented__item, .cl-disclosure, .cl-expert, .cl-combobox__list, .cl-msg__bubble, .cl-tooltip { border-color: CanvasText; }
  .cl-choice-card:has(input:checked), .cl-segmented__item:has(.cl-segmented__input:checked), .cl-pagination__page[aria-current="page"], .cl-combobox__option[aria-selected="true"], .cl-list-item[aria-current="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .cl-tab[aria-selected="true"]::after { background: Highlight; }
  .cl-tab[aria-selected="true"] { color: Highlight; }
  .cl-step__node, .cl-stage__bar { forced-color-adjust: none; border-color: CanvasText; }
  .cl-step[data-status="done"] .cl-step__node, .cl-stage__bar[data-status="done"] { background: Highlight; }
  .cl-tooltip { background: Canvas; color: CanvasText; border: var(--cl-border-width-1) solid CanvasText; }
  .cl-combobox__option[data-active="true"], .cl-tab:focus-visible, .cl-disclosure > summary:focus-visible { outline-color: Highlight; box-shadow: none; }
  .cl-inputgroup:has(.cl-inputgroup__input:focus-visible), .cl-choice-card:has(input:focus-visible), .cl-segmented__item:has(.cl-segmented__input:focus-visible), .cl-list-item:has(.cl-list-item__main:focus-visible) { outline-color: Highlight; box-shadow: none; }
}

/* ---- Fix-ups found in review ---- */
.cl-tab .cl-badge-anchor { position: static; }
.cl-tab .cl-badge-anchor > .cl-badge { position: static; box-shadow: none; }
.cl-review-host, .cl-pagination-host { width: 100%; }
.cl-rangefield .cl-inputgroup__affix { padding-inline: var(--cl-space-8); }
.cl-rangefield .cl-inputgroup--dense .cl-inputgroup__input { padding-inline: var(--cl-space-4); }
.cl-expert .cl-icon--inline { margin-inline-start: var(--cl-space-4); }


/* ---- Quiz v3 molecules (round D1, 21 Nov 2026): choice-card media, save card, sentence fill, two-state tiles, pick limit, range chips ---- */

/* Choice card media: a 40 line vector beside the title (A1 goals); --road makes the drawing the card's lead (A2 sureness) */
.cl-choice-card__media { flex: none; display: grid; place-items: center; inline-size: var(--cl-space-40); block-size: var(--cl-space-40); color: var(--cl-color-primary-text); }
.cl-choice-card__media svg { inline-size: 100%; block-size: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }   /* lint-allow: SVG stroke width in user units, not a CSS length */
.cl-choice-card__media--road { inline-size: var(--cl-space-80); block-size: var(--cl-space-48); color: var(--cl-color-on-surface-muted); }
.cl-choice-card:has(input:checked) .cl-choice-card__media { color: var(--cl-color-primary-text); }
.cl-choice-card__media .cl-choice-card__soft { stroke-dasharray: 2 5; }   /* lint-allow: SVG dash pattern in user units */
.cl-choice-card:has(input:checked) .cl-radio__box, .cl-choice-card:has(input:checked) .cl-check__box { animation: cl-pop var(--cl-motion-select); }
@keyframes cl-pop { 0% { transform: scale(0.8); } 100% { transform: scale(1); } }

/* Save card ("Keep this map"): inline, opens only on tap. Google button: white, outlined, the official mark in its own colours */
.cl-save-card { display: grid; gap: var(--cl-space-16); padding: var(--cl-space-20); border: var(--cl-border-width-1) solid var(--cl-color-border); border-radius: var(--cl-radius-20); background: var(--cl-color-surface-raised); box-shadow: var(--cl-elevation-1); }
.cl-save-card[hidden] { display: none; }
.cl-save-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--cl-space-12); align-items: center; }
.cl-save-card__head > * { margin: 0; }
.cl-save-card__thumb { inline-size: var(--cl-space-64); block-size: var(--cl-space-40); border-radius: var(--cl-radius-8); border: var(--cl-border-width-1) solid var(--cl-color-border); overflow: hidden; background: var(--cl-color-surface); }
.cl-save-card__google { display: flex; align-items: center; justify-content: center; gap: var(--cl-space-12); min-block-size: var(--cl-size-control-48); padding-inline: var(--cl-space-16); border: var(--cl-border-width-1) solid var(--cl-color-border-strong); border-radius: var(--cl-radius-12); background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface); font: inherit; font-weight: var(--cl-font-weight-medium); cursor: pointer; }
.cl-save-card__google img { inline-size: var(--cl-size-icon-20); block-size: var(--cl-size-icon-20); }
.cl-save-card__google:focus-visible { outline: var(--cl-border-width-2) solid var(--cl-color-focus-ring); outline-offset: var(--cl-space-2); }
.cl-save-card__or { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--cl-space-12); align-items: center; margin: 0; color: var(--cl-color-on-surface-muted); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); }
.cl-save-card__or::before, .cl-save-card__or::after { content: ""; border-block-start: var(--cl-border-width-1) solid var(--cl-color-divider); }
.cl-save-card__promise { margin: 0; display: flex; gap: var(--cl-space-8); align-items: flex-start; font-weight: var(--cl-font-weight-medium); }
.cl-save-card__promise .cl-icon { flex: none; color: var(--cl-color-success-indicator); margin-block-start: var(--cl-space-2); }
.cl-save-card__fine { margin: 0; color: var(--cl-color-on-surface-muted); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); }
.cl-save-card__done { display: flex; align-items: center; gap: var(--cl-space-8); margin: 0; font-weight: var(--cl-font-weight-semibold); }
.cl-save-card__done .cl-icon { color: var(--cl-color-success-indicator); }
.cl-save-card__done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cl-draw var(--cl-motion-draw) forwards; }   /* lint-allow: SVG dash length in user units */

/* Sentence fill: "Next, I'd like to be a ___ at a ___". Inline inputs that read as one sentence and wrap at 200% text */
.cl-sentence-fill { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--cl-space-8); font-size: var(--cl-type-title-size); line-height: var(--cl-type-title-line-height); }
.cl-sentence-fill__blank { flex: 1 1 10rem; min-inline-size: 0; min-block-size: var(--cl-size-control-48); padding: 0 var(--cl-space-4); border: 0; border-block-end: var(--cl-border-width-2) solid var(--cl-color-border-strong); background: transparent; color: var(--cl-color-on-surface); font: inherit; font-weight: var(--cl-font-weight-semibold); }   /* lint-allow: blank measure in rem so it follows text size */
.cl-sentence-fill__blank::placeholder { color: var(--cl-color-placeholder); font-weight: var(--cl-font-weight-regular); }
.cl-sentence-fill__blank:focus-visible { outline: none; border-block-end-color: var(--cl-color-focus-ring); }

/* Two-state tiles: tap once = curious (outline + half mark), twice = top pick (check), third tap clears. State is data-level on a button */
.cl-tile-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: var(--cl-space-8); margin: 0; padding: 0; border: 0; }   /* lint-allow: tile measure in rem so it follows text size */
.cl-tile-rank > legend { grid-column: 1 / -1; padding: 0; margin-block-end: var(--cl-space-4); }
.cl-tile-rank__tile { display: grid; grid-template-columns: var(--cl-size-icon-20) minmax(0, 1fr); gap: var(--cl-space-8); align-items: center; min-block-size: var(--cl-size-control-56); padding: var(--cl-space-12); border: var(--cl-border-width-1) solid var(--cl-color-border-strong); border-radius: var(--cl-radius-16); background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface); font: inherit; text-align: start; cursor: pointer; transition: transform var(--cl-motion-select); }
.cl-tile-rank__tile:active { transform: scale(var(--cl-motion-press-scale)); }
.cl-tile-rank__tile:focus-visible { outline: var(--cl-border-width-2) solid var(--cl-color-focus-ring); outline-offset: var(--cl-space-2); }
.cl-tile-rank__mark { inline-size: var(--cl-size-icon-20); block-size: var(--cl-size-icon-20); border-radius: var(--cl-radius-999); border: var(--cl-border-width-2) solid var(--cl-color-border-strong); display: grid; place-items: center; }
.cl-tile-rank__mark .cl-icon { opacity: 0; }
.cl-tile-rank__tile[data-level="curious"] { border-color: var(--cl-color-selected-border); }
.cl-tile-rank__tile[data-level="curious"] .cl-tile-rank__mark { border-color: var(--cl-color-selected-border); background: linear-gradient(90deg, var(--cl-color-primary-indicator) 50%, transparent 50%); }
.cl-tile-rank__tile[data-level="top"] { border-color: var(--cl-color-selected-border); box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-selected-border); background: var(--cl-color-selected-container); }
.cl-tile-rank__tile[data-level="top"] .cl-tile-rank__mark { background: var(--cl-color-primary-indicator); border-color: var(--cl-color-primary-indicator); color: var(--cl-color-on-primary); animation: cl-pop var(--cl-motion-select); }
.cl-tile-rank__tile[data-level="top"] .cl-tile-rank__mark .cl-icon { opacity: 1; }
.cl-tile-rank__level { grid-column: 2; font-size: var(--cl-type-caption-size); line-height: var(--cl-type-caption-line-height); color: var(--cl-color-on-surface-muted); }
.cl-tile-rank__level:empty { display: none; }

/* Pick limit: "Pick 2" stays visible; a tap past the limit shows a gentle line and never releases an earlier pick */
.cl-picklimit { margin: 0; display: flex; align-items: center; gap: var(--cl-space-8); font-size: var(--cl-type-body-small-size); line-height: var(--cl-type-body-small-line-height); color: var(--cl-color-on-surface-muted); }
.cl-picklimit[data-state="over"] { color: var(--cl-color-on-surface); font-weight: var(--cl-font-weight-semibold); animation: cl-nudge var(--cl-motion-land-settle); }
@keyframes cl-nudge { 0% { transform: translateX(calc(var(--cl-space-4) * -1)); } 100% { transform: none; } }

/* Range chips: pay chips built from the person's own number; tap one, or two side by side for a range. Never below their salary */
.cl-range-chips { display: grid; gap: var(--cl-space-12); margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.cl-range-chips > legend { padding: 0; }
.cl-range-chips__row { display: flex; flex-wrap: wrap; gap: var(--cl-space-8); }
.cl-range-chips__value { margin: 0; min-block-size: var(--cl-type-title-line-height); font-size: var(--cl-type-title-size); line-height: var(--cl-type-title-line-height); font-weight: var(--cl-font-weight-semibold); }
.cl-range-chips__row .cl-chip[aria-pressed="true"] + .cl-chip[aria-pressed="true"] { margin-inline-start: calc(var(--cl-space-4) * -1); }

@media (prefers-reduced-motion: reduce) {
  .cl-choice-card:has(input:checked) .cl-radio__box, .cl-choice-card:has(input:checked) .cl-check__box, .cl-tile-rank__tile[data-level="top"] .cl-tile-rank__mark, .cl-picklimit[data-state="over"] { animation: none; }
  .cl-save-card__done path { animation: none; stroke-dashoffset: 0; }
}


/* Rank list: put things in order. Drag the grip, or use the arrow buttons (keyboard and screen readers). No two items share a place */
.cl-rank { display: grid; gap: var(--cl-space-8); margin: 0; padding: 0; list-style: none; }
.cl-rank__item { display: grid; grid-template-columns: var(--cl-size-control-48) var(--cl-size-icon-20) minmax(0, 1fr) auto; gap: var(--cl-space-8); align-items: center; min-block-size: var(--cl-size-control-56); padding-inline-end: var(--cl-space-4); border: var(--cl-border-width-1) solid var(--cl-color-border-strong); border-radius: var(--cl-radius-16); background: var(--cl-color-surface-raised); color: var(--cl-color-on-surface); transition: transform var(--cl-motion-select), box-shadow var(--cl-motion-select); }
.cl-rank__item[data-top] { border-color: var(--cl-color-selected-border); box-shadow: inset 0 0 0 var(--cl-border-width-1) var(--cl-color-selected-border); }
.cl-rank__item[data-dragging] { box-shadow: var(--cl-elevation-2); border-color: var(--cl-color-selected-border); }
.cl-rank__grip { display: grid; place-items: center; align-self: stretch; min-block-size: var(--cl-size-control-48); color: var(--cl-color-on-surface-muted); cursor: grab; touch-action: none; }
.cl-rank__item[data-dragging] .cl-rank__grip { cursor: grabbing; }
.cl-rank__n { font-weight: var(--cl-font-weight-semibold); font-variant-numeric: tabular-nums; text-align: center; }
.cl-rank__item[data-top] .cl-rank__n { color: var(--cl-color-primary-indicator); }
.cl-rank__label { min-inline-size: 0; }
.cl-rank__input { min-inline-size: 0; inline-size: 100%; }
.cl-rank__moves { display: flex; gap: var(--cl-space-8); }
.cl-rank__item:first-child [data-move="up"], .cl-rank__item:last-child [data-move="down"] { display: none; }
@media (prefers-reduced-motion: reduce) { .cl-rank__item { transition: none; } }

} /* @layer cl.molecules */
