/* COMPANIES — company marks, the prep-rating pill/meter, the company guide page
   (company.html), the directory (companies.html), and the problem list's company
   picker + trending strip. Loaded after practice.css; tokens only (css/tokens.css). */

/* =============================================================== company marks */
.clogo { position: relative; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; color: var(--text-muted); overflow: hidden; }
.clogo--xs { width: 18px; height: 18px; border-radius: 5px; }
.clogo--md { width: 32px; height: 32px; border-radius: 8px; }
.clogo--lg { width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border); }
.clogo--xl { width: 84px; height: 84px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.clogo > i { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; transition: background-color .15s; }
.clogo--lg > i { width: 58%; height: 58%; }
.clogo--xl > i { width: 56%; height: 56%; }
.clogo--mask.is-brand > i { background: var(--brand, var(--text)); }
.clogo--img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.clogo--lg.clogo--img img { width: 64%; height: 64%; }
.clogo--xl.clogo--img img { width: 62%; height: 62%; }
.clogo--lg.is-wide { width: 112px; padding: 8px 12px; }
.clogo--xl.is-wide { width: 196px; padding: 18px 20px; }
.clogo--lg.is-wide img, .clogo--xl.is-wide img { width: 100%; height: 100%; }
.clogo__mono { display: none; width: 100%; height: 100%; place-items: center; font-family: var(--font-sans); font-weight: 600; font-size: 0.62em; letter-spacing: -0.02em; line-height: 1; background: hsl(var(--h, 20) 30% 89%); color: hsl(var(--h, 20) 38% 28%); }
.clogo { font-size: 22px; }
.clogo--xs { font-size: 18px; } .clogo--md { font-size: 32px; } .clogo--lg { font-size: 48px; } .clogo--xl { font-size: 84px; }
.clogo--lg .clogo__mono, .clogo--xl .clogo__mono { font-size: 0.42em; }
.clogo--md .clogo__mono { font-size: 0.5em; }
.clogo.is-fallback .clogo__mono { display: grid; }
.clogo.is-fallback img { display: none; }
.clogo.is-fallback.clogo--lg, .clogo.is-fallback.clogo--xl { border-color: transparent; }

/* =============================================================== prep rating */
.prepm { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; color: var(--accent-2); }
.prepm i { display: block; width: 4px; border-radius: 1px; background: var(--track); }
.prepm i:nth-child(1) { height: 5px; } .prepm i:nth-child(2) { height: 7px; } .prepm i:nth-child(3) { height: 9px; } .prepm i:nth-child(4) { height: 11px; } .prepm i:nth-child(5) { height: 13px; }
.prepm { height: 13px; }
.prepm i.on { background: currentColor; }
.prepm--mid { color: color-mix(in srgb, var(--accent-2) 62%, var(--text-faint)); }
.prepm--low { color: var(--text-faint); }
.prep-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--border)); background: var(--bg-elev); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; line-height: 1; cursor: help; }
.prep-pill__l { font-size: 0.7rem; font-weight: 700; color: var(--text-faint); }
.prep-pill b { font-family: var(--font-mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.prep-pill--top { background: color-mix(in srgb, var(--accent-2-soft) 70%, var(--bg-elev)); }
.prepc { display: inline-flex; align-items: center; gap: 7px; cursor: help; }
.prepc__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 2ch; }
.cs-pill--prep { cursor: help; gap: 6px; }
.cs-pill--prep b { font-family: var(--font-mono); }
@media (max-width: 760px) { .prep-pill { height: 27px; padding: 0 10px; font-size: 0.78rem; gap: 5px; } }

/* problem list: Prep column (desktop), a meter beside the difficulty on phone cards */
.pl-table .c-pr { width: 96px; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.th-sort:hover { color: var(--text); }
.th-sort.is-on { color: var(--accent); }
.th-sort.is-on::after { content: "\2193"; font-family: var(--font-sans); letter-spacing: 0; }
.prow__prm { display: none; }
@media (max-width: 760px) {
  .pl-table td.c-pr { display: none !important; }
  .prow__prm { display: inline-flex; vertical-align: middle; margin-left: 8px; }
  .prow__prm .prepc__n { display: none; }
}

/* problem page: "Reported at" chips are links to the company guide */
a.cs-acc-pill--co { text-decoration: none; cursor: pointer; }
a.cs-acc-pill--co:hover { border-color: var(--accent-2); }

/* =============================================================== problem list: picker */
.pl-cowrap { position: relative; display: inline-flex; }
.pl-cobtn { position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: 230px; min-height: 34px; padding: 4px 30px 4px 14px; font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }
.pl-cobtn::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pl-cobtn[aria-expanded="true"]::after { transform: translateY(-25%) rotate(225deg); }
.pl-cobtn:hover { border-color: var(--text-faint); }
.pl-cobtn:focus-visible { outline: none; box-shadow: var(--focus); }
.pl-cobtn__t { overflow: hidden; text-overflow: ellipsis; }
.pl-cobtn__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.pl-cobtn.is-set { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; padding-left: 6px; }
.pl-cobtn.is-set::after { border-color: var(--accent); }
.pl-cobtn.is-set .clogo { color: var(--accent); }

.copick { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 440px; max-width: calc(100vw - 32px); max-height: min(580px, 74vh); display: flex; flex-direction: column; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 2px 4px rgba(60, 44, 20, 0.06), 0 18px 48px rgba(60, 44, 20, 0.18); text-align: left; }
.copick[hidden] { display: none; }
.copick__head { position: relative; padding: 10px; border-bottom: 1px solid var(--border); }
.copick__head svg { position: absolute; left: 22px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--text-faint); stroke-width: 1.8; pointer-events: none; }
.copick__q { width: 100%; height: 40px; padding: 0 12px 0 36px; font: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 9px; }
.copick__q:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.copick__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 10px; scrollbar-width: thin; }
.copick__sec { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 2px 7px; font-size: 0.7rem; font-weight: 700; color: var(--text-faint); }
.copick__sec span { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.copick__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.copick__top .cochip { width: 100%; min-width: 0; height: 34px; border-radius: 9px; padding: 0 8px 0 6px; }
.copick__list { list-style: none; margin: 0; padding: 0; }
.coopt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 5px 8px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 0.92rem; color: var(--text); text-align: left; cursor: pointer; }
.coopt:hover, .coopt:focus-visible { background: var(--bg-sunken); outline: none; }
.coopt__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coopt__name mark { background: color-mix(in srgb, var(--accent-soft) 85%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.coopt__n { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.coopt.is-on { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.coopt.is-on .coopt__n { color: var(--accent); }
.coopt.is-on::after { content: ""; width: 9px; height: 5px; margin: 0 2px 3px 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.coopt.is-zero { opacity: .55; }
.copick__empty { padding: 20px 8px; text-align: center; color: var(--text-faint); font-size: var(--fs-sm); }
.copick__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg); font-size: 0.88rem; }
.copick__foot a { font-weight: 600; }
.copick__guide { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.copick__guide span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chips: logo + name + count (picker "Top companies" and the trending strip) */
.cochip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 10px 0 5px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-elev); font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.cochip:hover { border-color: var(--border-strong); }
.cochip:hover .clogo--mask > i { background: var(--brand, var(--text)); }
.cochip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cochip__n { margin-left: auto; padding-left: 2px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--text-faint); }
.cochip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cochip.is-on .cochip__n { color: var(--accent); }
.cochip--more { padding: 0 12px; color: var(--accent); border-style: dashed; border-color: var(--border-strong); }

.pl-trend { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 var(--space-3); }
.pl-trend:empty { display: none; }
.pl-trend__label { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--text-faint); }
.pl-trend__row { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.pl-trend__row::-webkit-scrollbar { display: none; }
.pl-trend__row .clogo { color: var(--text-muted); }
.pl-trend__all { flex: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .pl-trend { margin: 0 calc(-1 * var(--space-4)) 6px; padding: 0 var(--space-4); }
  .pl-trend__label, .pl-trend__all { display: none; }
  .pl-trend__row { margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) 6px; }
  .pl-trend .cochip { height: 32px; font-size: 0.84rem; }
}

/* the selected company: a slim link to its guide above the list */
.co-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: var(--space-3); background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent-2); border-radius: var(--radius); }
.co-banner__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.co-banner__name { font-family: var(--font-sans); font-size: 1.12rem; font-weight: 500; color: var(--text); }
.co-banner__meta { font-size: 0.84rem; color: var(--text-muted); }
.co-banner__go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.co-banner__go svg, .copick__guide svg, .co-related__all svg, .cos-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* phones: the picker sits inline in the filter sheet */
@media (max-width: 760px) {
  .pl-sheet .pl-cowrap { display: block; }
  .pl-sheet .pl-cowrap::before { content: "Company"; display: block; font-size: 0.7rem; font-weight: 700; color: var(--text-faint); margin-bottom: 7px; }
  .pl-sheet .pl-cobtn { display: flex; width: 100%; max-width: none; min-height: 50px; padding: 0 44px 0 14px; font-size: 16px; border-radius: var(--radius-lg); background: var(--bg); }
  .pl-sheet .pl-cobtn.is-set { padding-left: 10px; background: var(--accent-soft); }
  .pl-sheet .pl-cobtn::after { right: 18px; }
  .pl-sheet .copick { position: static; width: auto; max-width: none; max-height: none; margin-top: 8px; box-shadow: none; border-radius: var(--radius-lg); }
  .pl-sheet .copick__body { max-height: 46vh; max-height: 46dvh; }
  .pl-sheet .copick__q { font-size: 16px; height: 44px; }
  .pl-sheet .copick__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-sheet .coopt { min-height: 44px; font-size: 1rem; }
  .co-banner__go { margin-left: 0; }
}

/* =============================================================== company page */
.co { --stick: 64px; padding-top: var(--space-5); padding-bottom: var(--space-7); max-width: 1200px; }
.co-crumb { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-faint); margin-bottom: var(--space-4); }
.co-crumb a { color: var(--text-muted); }

.co-dbar { display: flex; gap: 2px; height: 8px; margin: 12px 0 10px; border-radius: 4px; overflow: hidden; background: var(--track); }
.co-dbar--sm { height: 5px; margin: 2px 0; gap: 1px; width: 100%; }
.co-dbar__s--easy { background: var(--easy); } .co-dbar__s--medium { background: var(--medium); } .co-dbar__s--hard { background: var(--hard); }
.co-dlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.84rem; letter-spacing: 0; text-transform: none; font-weight: 600; }

.co-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 44px; align-items: start; }
.co-main { min-width: 0; }
.co-rail { position: sticky; top: calc(var(--stick) + 20px); max-height: calc(100vh - var(--stick) - 40px); overflow-y: auto; scrollbar-width: thin; }
.co-rail__h { margin: 0 0 8px 8px; font-size: 0.72rem; font-weight: 700; color: var(--text-faint); }
.co-rail__list, .co-rail__more { list-style: none; margin: 0; padding: 0; }
.co-rail__list li { position: relative; }
.co-rail__list li:not(:last-child)::after { content: ""; position: absolute; left: 18.25px; top: 30px; bottom: -8px; width: 1.5px; background: var(--track-strong); }
.co-rail__a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 8px 8px; border-radius: var(--radius); color: var(--text-muted); font-size: 0.93rem; line-height: 1.25; text-decoration: none; transition: background .15s, color .15s; }
.co-rail__a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.co-rail__n { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--disc-empty-border); background: var(--bg); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.co-rail__c { padding-top: 2px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); }
.co-rail__t { padding-top: 1px; }
.co-rail__a.is-on { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.co-rail__a.is-on .co-rail__n { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.co-rail__more { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.co-rail__a--sub { grid-template-columns: minmax(0, 1fr); padding-left: 40px; font-size: 0.88rem; }

.co-sec { scroll-margin-top: calc(var(--stick) + 20px); margin-bottom: var(--space-7); }
.co-h2 { font-size: 1.7rem; margin: 0 0 4px; }
.co-sub { font-family: var(--font-sans); font-style: italic; color: var(--text-muted); margin: 0 0 var(--space-4); }
.co-loop { margin-bottom: var(--space-6); padding: 14px 18px; background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.co-loop__k { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.co-loop p { margin: 0; font-family: var(--font-sans); font-size: 1.06rem; line-height: 1.6; }

.co-stage__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 16px; margin-bottom: 10px; border-top: 1px solid var(--border-strong); }
.co-stage__k { flex-basis: 100%; font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.co-stage__title { font-size: 1.75rem; margin: 0; }
.co-fmt { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-elev); font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.co-stage__prog { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.co-stage__bar { width: 64px; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.co-stage__bar span { display: block; height: 100%; background: var(--ok); border-radius: 2px; }
/* Stage evidence: how many first-hand reports back a stage */
.co-ev-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; max-width: 72ch; margin: 0 0 10px; font-size: 0.86rem; line-height: 1.45; color: var(--text-muted); }
.co-ev { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 1px 9px 1px 8px; border: 1px solid currentColor; border-radius: var(--radius-pill); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; line-height: 1.55; cursor: help; }
.co-ev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.co-ev--strong { color: var(--ok); background: var(--ok-soft); }
.co-ev--official { color: var(--accent); background: var(--accent-soft); }
.co-ev--medium { color: var(--warn); background: var(--warn-soft); }
.co-ev--thin { color: var(--text-faint); background: var(--bg-sunken); border-style: dashed; }
.co-ev-row__chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.co-ev-row__b { min-width: 0; }
.co-loop__ev { margin: 8px 0 0 !important; font-family: var(--font-sans, inherit) !important; font-size: 0.84rem !important; line-height: 1.5 !important; color: var(--text-muted); }
.co-loop__ev .co-ev { cursor: default; margin: 0 2px; }
.co-stage__blurb { max-width: 72ch; margin: 0 0 var(--space-4); font-family: var(--font-sans); font-size: 1.08rem; line-height: 1.62; }
.co-stage__boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: var(--space-4); }
.co-box { padding: 12px 16px 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.co-box__h { margin: 0 0 6px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; color: var(--text-faint); }
.co-box__list { margin: 0; padding-left: 1.1em; font-size: 0.96rem; line-height: 1.5; }
.co-box__list li { margin: 4px 0; }
.co-box__list li::marker { color: var(--text-faint); }
.co-box--tips { background: color-mix(in srgb, var(--accent-2-soft) 60%, var(--bg-elev)); border-color: color-mix(in srgb, var(--accent-2) 18%, transparent); }
.co-box--tips .co-box__h { color: var(--accent-2); }
.co-empty { color: var(--text-faint); font-style: italic; }

.co-plist { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.co-plist__head, .co-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 92px 84px 54px; align-items: center; gap: 12px; padding: 0 14px; }
.co-plist__head { height: 36px; border-bottom: 1px solid var(--border-strong); font-size: 0.72rem; font-weight: 700; color: var(--text-faint); }
.co-row { min-height: 56px; padding-top: 8px; padding-bottom: 8px; color: var(--text); text-decoration: none; transition: background .12s; }
.co-row + .co-row { border-top: 1px solid var(--border); }
.co-row:hover { background: var(--accent-soft); text-decoration: none; }
.co-row:hover .co-row__title { color: var(--accent); }
.co-row.is-extra { display: none; }
.co-plist.is-open .co-row.is-extra { display: grid; }
.co-row__st .st { display: block; }
.co-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-row__title { font-family: var(--font-sans); font-size: 1.03rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row__id { display: inline-block; min-width: 2.8em; margin-right: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.co-row__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 0.8rem; color: var(--text-faint); padding-left: calc(2.184rem + 6px); }
.co-row__seen { font-family: var(--font-mono); font-size: 0.74rem; }
.co-must { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 700; }
.co-star { width: 13px; height: 13px; fill: currentColor; }
.co-row.is-must { background: var(--bg); }
.co-row.is-must:hover { background: var(--accent-soft); }
.co-row.is-locked .co-row__title { color: var(--text-muted); }
.co-row__acc { text-align: right; }
.co-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 36px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--bg-elev); font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); cursor: pointer; }
.co-more:hover { border-color: var(--accent); }

.co-rec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.co-rec__it { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.co-rec__badge { display: flex; flex-direction: column; align-items: flex-start; }
.co-rec__badge b { font-family: var(--font-sans); font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.co-rec__badge span { margin-top: 4px; font-size: 0.68rem; font-weight: 700; color: var(--text-faint); }
.co-rec__badge i { display: block; height: 3px; min-width: 6px; margin-top: 8px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 70%, var(--track)); }
.co-rec__it.is-extra { display: none; }
.co-rec.is-open .co-rec__it.is-extra { display: grid; }
.co-rec__t { font-family: var(--font-sans); font-size: 1.18rem; line-height: 1.3; margin-bottom: 6px; }
.co-rec__stage { display: inline-block; margin-bottom: 8px; padding: 1px 8px; border-radius: 4px; background: var(--bg-sunken); font-size: 0.74rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.co-rec__stage:hover { color: var(--accent); text-decoration: none; }
.co-rec__links { display: flex; flex-direction: column; gap: 4px; }
.co-rec__p { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; font-size: 0.94rem; color: var(--text); text-decoration: none; }
.co-rec__p:hover { color: var(--accent); text-decoration: none; }
.co-rec__p .co-row__id { min-width: 0; }
.co-rec__p .dtext { font-size: 0.78rem; }
.co-rec__ok svg { width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 2.2; vertical-align: -2px; }

.co-mix { display: flex; gap: 2px; height: 14px; margin-bottom: var(--space-4); border-radius: 7px; overflow: hidden; }
.co-mix__s { flex: 1 1 0; min-width: 4px; }
.co-mix__s--0 { background: var(--accent); }
.co-mix__s--1 { background: var(--accent-2); }
.co-mix__s--2 { background: #b5852f; }
.co-mix__s--3 { background: #5a6a8e; }
.co-mix__s--4 { background: #7b8a4a; }
.co-mix__s--5 { background: #a0654f; }
.co-mix__s--6 { background: var(--track-strong); }
.co-mix__legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.co-mix__legend li { display: flex; align-items: center; gap: 9px; font-size: 0.94rem; padding-bottom: 6px; border-bottom: 1px dotted var(--border-strong); }
.co-mix__legend i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.co-mix__legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 0.86rem; color: var(--text-muted); }

.co-chk { display: grid; gap: 6px; list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.co-chk__it { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s; }
.co-chk__it:hover { border-color: var(--border-strong); }
.co-chk__it input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-chk__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--disc-empty-border); border-radius: 5px; background: var(--bg); transition: background .15s, border-color .15s; }
.co-chk__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; opacity: 0; }
.co-chk__it input:checked + .co-chk__box { background: var(--ok); border-color: var(--ok); }
.co-chk__it input:checked + .co-chk__box svg { opacity: 1; }
.co-chk__it input:checked ~ .co-chk__t { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.co-chk__it input:focus-visible + .co-chk__box { box-shadow: var(--focus); }
.co-chk__t { font-size: 0.98rem; line-height: 1.45; }

.co-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: var(--space-3); }
.co-related__all { margin: var(--space-3) 0 0; }
.co-related__all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.co-foot { padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--text-faint); }
.co-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 8px; }
.co-src__h { font-size: 0.7rem; font-weight: 700; }
.co-src a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.co-src a svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.co-note { margin: 0; max-width: 80ch; }
.co-404 h1 { font-size: var(--fs-2xl); }

@media (max-width: 960px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .co-rail { position: sticky; top: var(--stick); z-index: 20; display: flex; align-items: center; gap: 6px; max-height: none; overflow-x: auto; overflow-y: hidden; margin: 0 calc(-1 * var(--space-4)) var(--space-5); padding: 8px var(--space-4); background: var(--bg); border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .co-rail::-webkit-scrollbar { display: none; }
  .co-rail__h { display: none; }
  .co-rail__list, .co-rail__more { display: flex; gap: 6px; flex: none; margin: 0; padding: 0; border: 0; }
  .co-rail__list li::after { display: none; }
  .co-rail__a { align-items: center; }
  .co-rail__t, .co-rail__c { padding-top: 0; }
  .co-rail__a, .co-rail__a--sub { display: inline-flex; gap: 7px; white-space: nowrap; min-height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-elev); font-size: 0.88rem; }
  .co-rail__a--sub { padding: 0 12px; }
  .co-rail__a.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
  .co-rail__n { width: 22px; height: 22px; font-size: 0.7rem; }
  .co-sec { scroll-margin-top: calc(var(--stick) + 66px); margin-bottom: var(--space-6); }
}
@media (max-width: 640px) {
  .co { padding-top: var(--space-3); }
  .co-crumb { margin-bottom: var(--space-3); }
  .co-stage__title { font-size: 1.45rem; }
  .co-stage__prog { margin-left: 0; flex-basis: 100%; }
  .co-plist { border-radius: var(--radius-lg); }
  .co-plist__head { display: none; }
  .co-row { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "st main diff" "st main pr" "st main acc"; gap: 2px 10px; padding: 10px 12px; align-items: start; }
  .co-row__st { grid-area: st; padding-top: 2px; }
  .co-row__st .st { width: 18px; height: 18px; }
  .co-row__main { grid-area: main; }
  .co-row__diff { grid-area: diff; justify-self: end; }
  .co-row__diff .pill { height: 22px; font-size: 0.72rem; padding: 0 8px; }
  .co-row__pr { grid-area: pr; justify-self: end; }
  .co-row__pr .prepc__n { font-size: 0.74rem; }
  .co-row__acc { grid-area: acc; justify-self: end; }
  .co-row__acc:empty { display: none; }
  .co-row__title { white-space: normal; font-size: 1rem; }
  .co-row__id { min-width: 0; }
  .co-row__sub { padding-left: 0; }
  .co-rec__it { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .co-rec__badge b { font-size: 1.4rem; }
  .co-h2 { font-size: 1.45rem; }
}

/* =============================================================== directory */
.cos { padding-top: var(--space-5); padding-bottom: var(--space-7); max-width: 1240px; }
.cos-head__title { font-size: 2.6rem; line-height: 1; margin: 0 0 8px; }
.cos-head__sub { max-width: 68ch; margin: 0; font-family: var(--font-sans); font-style: italic; font-size: 1.06rem; color: var(--text-muted); }
.cos-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: var(--space-5) 0 var(--space-3); }
.cos-search { flex: 1 1 320px; max-width: 520px; }
.cos-search .search__input { height: 44px; padding-right: 38px; }
.cos-sort > button { min-height: 34px; padding: 0 14px; }
.cos-topics { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: var(--space-5); scrollbar-width: none; }
.cos-topics::-webkit-scrollbar { display: none; }
.cos-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--space-3); }
.cos-h2 { font-size: 1.45rem; margin: 0; }
.cos-n { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.cos-feat { margin-bottom: var(--space-6); }
.cos-feat[hidden] { display: none; }
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
.cocard { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cocard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.cocard:active { transform: scale(.985); }
.cocard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cocard__name { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 500; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cocard__n { font-size: 0.86rem; color: var(--text-muted); }
.cocard__n b { color: var(--text); font-variant-numeric: tabular-nums; }
.cocard__meta { display: flex; flex-direction: column; gap: 1px; font-size: 0.78rem; color: var(--text-faint); line-height: 1.35; }
.cocard__last { font-family: var(--font-mono); font-size: 0.72rem; }
.cocard--sm { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.cocard--sm:hover { transform: none; box-shadow: none; }
.cocard__b { display: flex; flex-direction: column; min-width: 0; }
.cocard--sm .cocard__name { font-size: 1.05rem; }
.cocard--sm .clogo--mask > i { background: var(--brand, var(--text)); }
.cos-az { display: flex; flex-wrap: wrap; gap: 2px; }
.cos-az a { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.cos-az a:hover { background: var(--bg-sunken); color: var(--accent); text-decoration: none; }
.cos-letter { scroll-margin-top: calc(var(--header-h) + 16px); }
.cos-letter__h { margin: var(--space-4) 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 1.3rem; color: var(--accent); }
.cos-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 20px; list-style: none; margin: 0; padding: 0; }
.cosl { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 4px 8px; border-radius: var(--radius); color: var(--text); font-size: 0.96rem; text-decoration: none; }
.cosl:hover { background: var(--bg-sunken); text-decoration: none; }
.cosl:hover .clogo--mask > i { background: var(--brand, var(--text)); }
.cosl__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cosl__g { font-size: 0.62rem; font-weight: 700; color: var(--accent); }
.cosl__n { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cos-empty { padding: var(--space-6) var(--space-4); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-muted); }
@media (max-width: 640px) {
  .cos { padding-top: var(--space-3); }
  .cos-head__title { font-size: 2.1rem; }
  .cos-head__sub { font-size: 0.98rem; }
  .cos-bar { margin-top: var(--space-4); }
  .cos-search { flex-basis: 100%; max-width: none; }
  .cos-search .search__input { font-size: 16px; }
  .cos-search .pl-search__kbd { display: none; }
  .cos-sort { width: 100%; }
  .cos-sort > button { flex: 1; justify-content: center; min-height: 40px; padding: 0 8px; font-size: 0.88rem; white-space: nowrap; }
  .cos-topics { margin: 0 calc(-1 * var(--space-4)) var(--space-4); padding: 2px var(--space-4) 8px; }
  .cos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cocard { padding: 12px; }
  .cocard__name { font-size: 1.06rem; }
  .cos-cols { grid-template-columns: 1fr; }
  .cosl { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .cocard, .co-row, .co-chk__box { transition: none; } .cocard:hover, .cocard:active { transform: none; } }

/* ---------- Company status: acquired / merged / renamed ---------- */
.co-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: calc(var(--space-4) * -1) 0 var(--space-5); padding: 12px 16px; background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--text-faint); border-radius: var(--radius); }
.co-status--acquired, .co-status--merged, .co-status--restructuring { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, var(--bg-elev)); }
.co-status--stake, .co-status--deal { border-left-color: var(--accent); }
.co-status__k { display: inline-flex; align-items: baseline; gap: 8px; flex: none; font-size: 0.72rem; font-weight: 700; color: var(--text); }
.co-status--acquired .co-status__k, .co-status--merged .co-status__k, .co-status--restructuring .co-status__k { color: var(--warn); }
.co-status--stake .co-status__k, .co-status--deal .co-status__k { color: var(--accent); }
.co-status__d { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.co-status__t { flex: 1 1 32ch; margin: 0; font-size: 0.94rem; line-height: 1.5; color: var(--text-muted); }
.co-status__t b { color: var(--text); font-weight: 600; }
.co-status__a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.co-status__a svg { width: 13px; height: 13px; }
.cocard__st, .cosl__st { display: inline-block; max-width: 100%; padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 650; line-height: 1.5; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.cocard__st { align-self: flex-start; margin: -2px 0 2px; }
.cosl__st { margin-left: 8px; }
.cocard__st--acquired, .cocard__st--merged, .cocard__st--restructuring, .cosl__st--acquired, .cosl__st--merged, .cosl__st--restructuring { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.cocard__st--stake, .cocard__st--deal, .cosl__st--stake, .cosl__st--deal { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }

/* ---------- Company hero: identity + lead on the left, the progress panel (with the
   practice actions) on the right, the key facts as a ledger underneath. ---------- */
.co-hero { display: grid; grid-template-columns: minmax(0, 1fr) 396px; column-gap: 64px; align-items: start; margin-bottom: var(--space-7); }
.co-hero__main { min-width: 0; padding-top: 6px; }
.co-hero__id { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.co-hero__mark { flex: none; display: flex; }
.co-hero__mark .clogo--xl { width: 68px; height: 68px; font-size: 68px; border-radius: var(--radius-lg); border-color: var(--border); }
.co-hero__mark .clogo--xl.is-wide { width: 148px; padding: 14px 16px; }
.co-hero__name { min-width: 0; }
.co-hero__name .pl-eyebrow { margin-bottom: 4px; }
.co-hero__rev { color: var(--text-faint); letter-spacing: 0.1em; }
.co-hero__title { margin: 0; font-size: clamp(2.3rem, 3.7vw, 3.2rem); line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; }
.co-hero__tag { max-width: 48ch; margin: 0 0 18px; font-family: var(--font-sans); font-size: 1.36rem; line-height: 1.4; color: var(--text); text-wrap: pretty; }
.co-hero__about { max-width: 74ch; }
.co-hero__blurb { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.co-hero__blurb.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.co-hero__more { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.co-hero__more::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.co-hero__more[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.co-hero__more:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.co-hero__more:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
.co-hero__more[hidden] { display: none; }
.co-hero__roles { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.co-role { padding: 3px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-elev); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

/* status (acquired / merged / renamed): a dated note inside the hero */
.co-hero .co-status { display: block; max-width: 74ch; margin: 0 0 18px; padding: 10px 14px 11px; background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--text-faint); border-radius: var(--radius); }
.co-hero .co-status--acquired, .co-hero .co-status--merged { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 60%, var(--bg-elev)); border-color: color-mix(in srgb, var(--warn) 22%, var(--border)); border-left-color: var(--warn); }
.co-hero .co-status--stake, .co-hero .co-status--deal { border-left-color: var(--accent); }
.co-hero .co-status__k { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; font-size: 0.74rem; }
.co-hero .co-status__t { font-size: 0.93rem; line-height: 1.55; color: var(--text-muted); }
.co-hero .co-status__a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }

/* progress panel */
.co-prog { position: relative; padding: 22px 24px 18px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.co-prog__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-prog__h { margin: 0; font-family: var(--font-sans); font-size: 1.32rem; line-height: 1.25; color: var(--text-muted); }
.co-prog__h b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.co-prog__pct { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.co-prog__sub { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.co-pbar { display: flex; gap: 3px; height: 10px; margin-top: 16px; }
.co-pbar__seg { position: relative; flex: 1 1 0; min-width: 7px; background: var(--track); border-radius: 2px; }
.co-pbar__seg:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.co-pbar__seg:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.co-pbar__seg > i { display: block; height: 100%; min-width: 4px; background: var(--ok); border-radius: inherit; transform-origin: left center; }
.co-pbar__seg.is-here { background: color-mix(in srgb, var(--accent) 14%, var(--track)); }
.co-pbar__mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-elev); }
.co-prog__cap { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--text-muted); }
.co-prog__frac { flex: none; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.co-next { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.co-next__k { font-size: 0.82rem; font-weight: 600; color: var(--text-faint); }
.co-next__t { font-family: var(--font-sans); font-size: 1.08rem; line-height: 1.35; color: var(--text); }
.co-next__t .co-row__id { min-width: 0; margin-right: 6px; }
.co-next__meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; }
.co-prog__acts { display: flex; flex-direction: column; margin-top: 16px; }
.co-prog .co-cta { justify-content: center; width: 100%; }
.co-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.co-cta:hover svg { transform: translateX(3px); }
.co-prog__all { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.co-prog__all:hover { color: var(--accent); text-decoration-color: currentColor; }

/* key facts ledger */
.co-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: var(--space-6); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
.co-fact { min-width: 0; padding: 14px 20px 15px 0; }
.co-fact + .co-fact { padding-left: 20px; border-left: 1px solid var(--border); }
.co-fact--diff { grid-column: span 2; }
.co-fact__n { font-family: var(--font-sans); font-size: 1.62rem; font-weight: 500; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.co-fact--text .co-fact__n { font-size: 1.32rem; line-height: 1.4; }
.co-fact__l { margin-top: 3px; font-size: 0.86rem; line-height: 1.35; color: var(--text-muted); }
.co-fact__sub { display: block; color: var(--text-faint); }
.co-fact--diff .co-fact__n { font-family: var(--font-sans); font-size: 1rem; }
.co-fact--diff .co-dbar { margin: 9px 0 9px; }

/* one load moment: the solved share fills in */
@media (prefers-reduced-motion: no-preference) {
  .co-hero.is-intro .co-pbar__seg > i { animation: co-fill .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .co-hero.is-intro .co-pbar__mark { animation: co-mark .4s ease-out .7s both; }
}
@keyframes co-fill { from { transform: scaleX(0); } }
@keyframes co-mark { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .co-hero__more::after, .co-cta svg { transition: none; } }

@media (max-width: 1100px) {
  .co-hero { grid-template-columns: minmax(0, 1fr) 330px; column-gap: 40px; }
  .co-hero__tag { font-size: 1.24rem; }
}
@media (max-width: 860px) {
  .co-hero { display: flex; flex-direction: column; align-items: stretch; margin-bottom: var(--space-6); }
  .co-hero__main { display: contents; }
  .co-hero__id { order: 1; }
  .co-hero__tag { order: 2; }
  .co-hero .co-status { order: 3; }
  .co-prog { order: 4; margin-bottom: 22px; }
  .co-hero__about { order: 5; }
  .co-hero__roles { order: 6; }
  .co-facts { order: 7; }
}
@media (max-width: 640px) {
  .co-hero { margin-bottom: var(--space-5); }
  .co-hero__id { gap: 14px; margin-bottom: 12px; }
  .co-hero__mark .clogo--xl { width: 52px; height: 52px; font-size: 52px; border-radius: var(--radius-lg); }
  .co-hero__mark .clogo--xl.is-wide { width: 112px; padding: 10px 12px; }
  .co-hero__rev { display: none; }
  .co-hero__title { font-size: 2.05rem; }
  .co-hero__tag { font-size: 1.12rem; margin-bottom: 16px; }
  .co-prog { padding: 18px 16px 10px; border-radius: var(--radius-lg); }
  .co-next { margin-top: 14px; padding-top: 12px; }
  .co-next__t { font-size: 1.02rem; }
  .co-prog__acts { margin-top: 14px; }
  .co-prog__h { font-size: 1.2rem; }
  .co-hero__more { min-height: 44px; }
  .co-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-5); }
  .co-facts { column-gap: 16px; }
  .co-fact, .co-fact + .co-fact { padding: 12px 0; border-left: 0; }
  .co-fact--diff { grid-column: 1 / -1; order: 9; border-top: 1px solid var(--border); }
  .co-fact__n { font-size: 1.4rem; }
  .co-fact--text .co-fact__n { font-size: 1.12rem; }
}

/* Per-stage ML-role angle (trading-firm guides adapt a quant loop to ML roles) */
.co-ml { display: flex; gap: 12px; align-items: baseline; margin: 10px 0 4px; padding: 10px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg-elev)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.co-ml__k { flex: none; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.co-ml__t { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
@media (max-width: 560px) { .co-ml { flex-direction: column; gap: 4px; } }

/* ---------- Display numbers (n): fixed right-aligned number column, title column beside it ---------- */
.co-row__title { display: flex; align-items: baseline; }
.co-row__title > .co-row__id { flex: none; width: 2.5rem; min-width: 0; margin-right: 8px; text-align: right; white-space: nowrap; }
.co-row__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row__sub { padding-left: calc(2.5rem + 8px); }
@media (max-width: 640px) {
  .co-row__title > .co-row__id { width: 2.4rem; }
  .co-row__t { white-space: normal; overflow: visible; }
  .co-row__sub { padding-left: calc(2.4rem + 8px); }
}

/* Compact directory and guide pages. Keep problem-bank shared components scoped out. */
.cos h1, .co h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.cos h2, .co h2, .co h3 { font-family: var(--font-display); font-weight: 500; }
.cos .pl-eyebrow, .co .pl-eyebrow, .co-stage__k, .co-loop__k { display: none; }
.cos-head__title { display: flex; align-items: baseline; gap: 12px; }
.cos-head__count { color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.cos-head__sub { font-size: .875rem; font-style: normal; max-width: 90ch; }
.cos-bar { flex-wrap: nowrap; margin-top: 20px; gap: 8px; }
.cos-search { flex: 1; min-width: 0; max-width: none; }
.cos-sort { flex: none; }
.cos-sort > button { padding: 0 10px; font-size: .8rem; }
.cos-topics { min-width: 0; margin-bottom: 20px; }
.cos-topics > * { flex: none; white-space: nowrap; }
.cos-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cocard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-lg); }
/* Each card leads with the company's real mark at a readable size; wordmarks keep their full width. */
.cocard__top { display: flex; align-items: center; min-width: 0; height: 44px; margin: 0 0 8px; }
.cocard__top .clogo { width: auto; height: 44px; max-width: 100%; border: 0; border-radius: 8px; background: none; overflow: visible; }
.cocard__top .clogo--mask { width: 40px; height: 40px; }
.cocard__top .clogo > i { width: 100%; height: 100%; }
.cocard__top .clogo--img, .cocard__top .clogo.is-wide { display: flex; padding: 0; width: 100%; max-width: 170px; }
.cocard__top .clogo--img img, .cocard__top .clogo.is-wide img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left center; }
.cocard__top .clogo.is-fallback { width: 44px; border-radius: var(--radius-lg); overflow: hidden; }
.cocard__top .clogo.is-fallback .clogo__mono { font-size: 15px; }
:root[data-theme="dark"] .cocard__top .clogo--img:not(.is-fallback) { padding: 0; background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cocard__top .clogo--img:not(.is-fallback) { padding: 0; background: none; } }
.cocard__name { font-size: 1rem; }
.cocard__meta { display: block; font-size: .75rem; line-height: 1.4; margin-top: auto; padding-top: 4px; }
.cocard__last { display: block; font: inherit; color: var(--text-faint); }
.cocard:hover { transform: none; box-shadow: none; }
.cos-h2, .co-h2 { font-size: 1.1rem; }
.cosl__g { font-size: .65rem; text-transform: none; letter-spacing: 0; }
.co-hero { gap: 24px; margin-bottom: 24px; }
.co-hero__id { gap: 12px; margin-bottom: 12px; }
.co-hero__mark .clogo--xl { width: 52px; height: 52px; font-size: 52px; border: 0; border-radius: var(--radius-lg); background: none; box-shadow: none; overflow: visible; }
.co-hero__mark .clogo--xl > i { width: 100%; height: 100%; }
.co-hero__mark .clogo--xl.clogo--img, .co-hero__mark .clogo--xl.is-wide { display: flex; width: auto; max-width: 180px; padding: 0; }
.co-hero__mark .clogo--xl.clogo--img img, .co-hero__mark .clogo--xl.is-wide img { width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; object-position: left center; }
:root[data-theme="dark"] .co-hero__mark .clogo--img:not(.is-fallback) { padding: 6px 10px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-hero__mark .clogo--img:not(.is-fallback) { padding: 6px 10px; background: #fff; } }
.co-hero__mark .clogo.is-fallback { width: 52px; overflow: hidden; }
.co-hero__tag { font-size: 1rem; margin-bottom: 10px; }
.co-hero__blurb, .co-stage__blurb { font-size: .9rem; line-height: 1.55; }
.co-sub { font-style: normal; font-size: .875rem; }
.co-sec { margin-bottom: 28px; }
.co-stage__head { padding-top: 12px; margin-bottom: 8px; }
.co-stage__title { font-size: 1.15rem; }
.co-stage__boxes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.co-box { padding: 12px 14px; border-radius: var(--radius-lg); }
.co-stage__act { margin: 10px 0 12px; }
.co-box__h { font-size: .8rem; text-transform: none; letter-spacing: 0; }
.co-row { min-height: 46px; }
.co-loop { border-left-width: 1px; padding: 12px; }
.co-loop p { font-size: .9rem; }
@media (max-width: 600px) {
  .cos-sort > button { padding: 0 7px; font-size: .7rem; }
  .cos-search .search__input { padding-right: 8px; font-size: 16px; }
  .cos-search kbd { display: none; }
  .cos-bar { flex-wrap: wrap; }
  .cos-search { flex: 1 1 100%; }
  .cos-sort { width: 100%; }
  .cos-sort > button { flex: 1; justify-content: center; }
  .cos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cocard { padding: 12px; }
  .cocard__top, .cocard__top .clogo { height: 32px; }
  .cocard__top .clogo--mask { width: 32px; }
  .cocard__top .clogo--img img, .cocard__top .clogo.is-wide img { max-width: 100%; }
  .co-hero { grid-template-columns: minmax(0, 1fr); }
  .co-stage__prog { margin-left: 0; }
}
.co-stage__k { display: inline; flex-basis: auto; font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.co-hero__name .pl-eyebrow { display: block; font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.co-hero__rev { display: inline; letter-spacing: 0; }
.co-prog { padding: 14px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.co-prog__h { font-size: 1rem; }
.co-next { margin-top: 12px; padding-top: 10px; }
.co-next__t { font-size: .95rem; }
.co-prog__acts { margin-top: 10px; }
.co-facts { margin-top: 20px; }
.co-fact { padding-block: 10px; }
.co-fact__n { font-size: 1.2rem; }

/* Topic chips scroll inside their own row and never widen the page. */
.cos-topics { display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cos-topics::-webkit-scrollbar { display: none; }
.cos-topics .topic { flex: none; }
@media (max-width: 420px) { .cos-cols { grid-template-columns: minmax(0, 1fr); } }
.cosl .clogo { width: 28px; height: 28px; font-size: 28px; }
.co-fact--long .co-fact__n { font-size: .9rem; line-height: 1.4; }
:root[data-theme="dark"] .clogo--mask.is-brand[data-dim] > i { background: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .clogo--mask.is-brand[data-dim] > i { background: var(--text); } }
:root[data-theme="dark"] .cosl .clogo--img:not(.is-fallback), :root[data-theme="dark"] .cochip .clogo--img:not(.is-fallback) { padding: 2px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cosl .clogo--img:not(.is-fallback), :root:not([data-theme="light"]) .cochip .clogo--img:not(.is-fallback) { padding: 2px; background: #fff; } }

/* Directory entries and guide notes follow the page's ruled rhythm. */
.cos-grid { gap: var(--space-4); }
.cocard { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--space-4) 0; }
.cocard:hover, .cocard:focus-visible { background: var(--bg-sunken); box-shadow: none; transform: none; }
.cocard__meta { margin-top: var(--space-2); }
.co-prog { box-shadow: none; }
.co-loop, .co-box, .co-ml, .co-hero .co-status { background: none; border: 0; border-radius: 0; padding: var(--space-3) 0; }
.co-loop { border-top: 1px solid var(--border); }
.co-ml__k, .co-box__h { color: var(--text-muted); }
.co-fmt, .co-role, .co-ev, .cocard__st, .cosl__st { background: none; border: 0; border-radius: 0; padding: 0; color: var(--text-muted); }
.co-ev::before { display: none; }
.co-ev-row__chips { gap: var(--space-3); }
.clogo__mono { background: var(--bg-sunken); color: var(--text-muted); }
.cos a:focus-visible, .co a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-plist { background: none; border-width: 1px 0; border-radius: 0; }
.co-box--tips .co-box__h { color: var(--text-muted); }
.co-hero__tag { margin-top: var(--space-3); }
.clogo > i[data-mask] { visibility: hidden; }
/* Reserve a readable footprint before a deferred image has intrinsic dimensions. */
.cocard__top .clogo--img img { min-width: 22px; }

/* Keep the hero excerpt in normal flow and the directory within one featured row. */
.cos-topic-menu { display: none; }
.cos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cocard__meta { font-size: .875rem; line-height: 1.5; color: var(--text-muted); min-height: 4.5em; }
.co-hero { row-gap: 8px; }
.co-facts { margin-top: 0; }
.co-prog { background: none; border: 0; border-radius: 0; padding: 0; }
.co-prog__cap { flex-wrap: wrap; gap: 4px 12px; }
.co-fmt { font-family: var(--font-sans); font-size: .9rem; line-height: 1.5; }
.co-stage__prep { font-size: .85rem; color: var(--text-muted); }
:root[data-theme="dark"] .co-hero__mark .clogo--mask.is-brand { background: none; padding: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .co-hero__mark .clogo--mask.is-brand { background: none; padding: 0; }
}
@media (max-width: 860px) {
  .co-hero { gap: 12px; }
  .co-prog { margin-bottom: 0; }
  .co-hero__about { flex: none; }
  .co-hero__roles { margin-top: 0; }
}
@media (max-width: 600px) {
  .cos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cos-topics { display: none; }
  .cos-topic-menu { display: block; margin: 12px 0 20px; }
  .cos-topic-menu select { display: block; width: 100%; margin-top: 4px; }
}
.cos-sort, .cos-sort > button, .cos-topics .topic { border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-muted); }
.cos-sort > button.is-on, .cos-topics .topic.is-on { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.co-rail__a, .co-rail__a.is-on { border: 0; border-radius: 0; background: none; color: var(--text-muted); }

.co-stage-picker { display: none; }
.co-overview { margin: 8px 0 0; }
.co-overview > summary, .co-stage-picker > summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.co-prog .btn--primary { box-shadow: none; transform: none; }
.cosl { display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px 90px; gap: 10px; }
.cosl__name { white-space: normal; overflow: visible; }
.cosl__st { display: block; margin: 4px 0 0; white-space: normal; font-size: .8rem; font-weight: 400; }
.cosl__g { display: flex; align-items: center; min-height: 44px; font-size: .8rem; }
.cosl__n { text-align: right; }
.cosl__unit { font-family: var(--font-sans); font-size: .75rem; }
.cos-sort > button { min-height: 44px; }
@media (max-width: 700px) {
  .co-rail { display: block; overflow: visible; }
  .co-rail > .co-rail__list, .co-rail > .co-rail__more { display: none; }
  .co-stage-picker { display: block; width: 100%; }
  .co-stage-picker a { display: block; padding: 12px 4px; color: var(--text); }
  .co-fact--diff { grid-column: auto; order: initial; }
  .co-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cosl { grid-template-columns: 28px minmax(0, 1fr) 44px 68px; gap: 8px; }
  .cosl__unit { display: block; font-size: .68rem; }
}
.cos-sort-menu { display: none; }
@media (max-width: 700px) {
  .cos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
  .cos > * { grid-column: 1 / -1; }
  .cos-bar { display: contents; }
  .cos-search { grid-column: 1 / -1; }
  .cos-sort { display: none; }
  .cos-sort-menu { display: block; grid-column: 1; margin: 12px 0 20px; }
  .cos-topic-menu { grid-column: 2; margin: 12px 0 20px; }
  .cos-sort-menu select, .cos-topic-menu select { width: 100%; min-height: 44px; margin-top: 4px; }
}
@media (max-width: 700px) {
  .co-overview { order: 5; }
}
@media (min-width: 701px) {
  .cos-cols { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}

/* Keep the introduction and stage navigation in a compact reading flow. */
.co-hero { display: block; }
.co-hero__main { display: block; }
.co-hero__tag { margin: 16px 0 8px; }
.co-prog { margin-top: 16px; }
.co-prog__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.co-prog__acts .btn { margin: 0; }
.co-prog__all { flex-basis: 100%; }
.co-breakdown { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0; font-size: .875rem; color: var(--text-muted); }
.co-breakdown h2 { flex-basis: 100%; margin: 0; font: inherit; color: var(--text); }
.co-pbar__seg { background: var(--track); }
.co-pbar__seg > i { background: var(--text-muted); }
.co-row__sub { font-size: .8rem; }
.co-row__pr { font-size: .85rem; font-variant-numeric: tabular-nums; }
.cosl { grid-template-columns: 28px minmax(0, 1fr) 100px 52px; }
.cosl__destination { display: block; font-size: .75rem; color: var(--text-muted); }
.cosl__g { color: var(--text-muted); }
.cos-sort-label { align-self: center; padding-right: 8px; }
.cos-sort > button { min-height: 40px; padding: 8px 12px; }
.cos-sort > button.is-on { font-weight: 700; border-bottom: 2px solid var(--text); text-decoration: none; }
.cocard__top .clogo { width: 36px; height: 36px; }
.cocard__meta { min-height: 0; margin-top: 2px; padding-top: 0; }
.co-hero__mark .clogo--mask.is-brand { background: none; padding: 0; }
@media (max-width: 700px) {
  .co-hero { margin-bottom: 12px; }
  .co-rail { margin-bottom: 12px; padding-top: 0; padding-bottom: 0; }
  .co-overview > summary { padding: 4px 0; min-height: 36px; }
  .co-stage-picker > summary { min-height: 40px; padding: 8px 0; }
  .co-breakdown { display: grid; gap: 4px; }
  .cocard { padding: 10px 0; gap: 3px; }
  .cocard__top { margin-bottom: 2px; }
  .cosl { grid-template-columns: 28px minmax(0, 1fr) 80px 36px; gap: 6px; }
}

.co-prog__acts { flex-direction: row; }
.co-prog .co-cta { width: auto; }
.co-pbar__seg > i { min-width: 0; }
@media (max-width: 700px) { .co-prog__acts { flex-direction: column; align-items: stretch; } }

@media (max-width: 700px) {
  .co-next { margin-top: 10px; padding-top: 8px; }
  .co-breakdown { margin: 8px 0; }
  .co-prog__acts { margin-top: 10px; }
  .co-prog__all { min-height: 36px; }
}
@media (min-width: 861px) {
  .co-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
  .co-prog { margin-top: 0; }
  .co-prog__all { flex-basis: auto; }
}

.co-breakdown-more { margin: 8px 0; font-size: .875rem; }
.co-breakdown-more > summary { cursor: pointer; min-height: 36px; padding: 6px 0; }

:root[data-theme="dark"] .cocard__top .clogo--md.clogo--img img[src*="citadel"] { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cocard__top .clogo--md.clogo--img img[src*="citadel"] { filter: brightness(0) invert(1); }
}

.co-stage-jump { display: inline-block; text-decoration: underline; }
.co-stage__blurb { max-width: none; }
.co-rating-help { font-size: .8rem; color: var(--text-muted); }
.cos-count-headings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; flex-basis: 100%; font-size: .8rem; color: var(--text-muted); text-align: right; padding-right: 8px; }
.cocard__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .co-hero__mark .clogo--mask.is-brand[style*="635BFF"] { --brand: #a39eff !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-hero__mark .clogo--mask.is-brand[style*="635BFF"] { --brand: #a39eff !important; } }
@media (max-width: 700px) {
  .cos-count-headings { grid-template-columns: 1fr; }
  .cos-count-headings span + span { display: none; }
  .co-prog__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .co-prog .co-cta { grid-column: 1 / -1; width: 100%; }
  .co-prog__all { margin: 0; }
  .co-stage__boxes { gap: 8px; }
  .co-stage__boxes .co-box { padding: 0; margin: 0; }
}

.co-evidence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; font-size: .86rem; }
.co-evidence .co-ev-row { margin-bottom: 0; }
.co-evidence > a { text-decoration: underline; }
@media (min-width: 788px) and (max-width: 1167px) {
  .cos-count-headings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cos-count-headings span:last-child { display: none; }
}
@media (min-width: 701px) and (max-width: 787px) {
  .cos-count-headings { grid-template-columns: 1fr; }
  .cos-count-headings span + span { display: none; }
}

.co-prog__cap { justify-content: flex-start; align-items: baseline; }
.co-prog__frac, .co-row__seen { font-family: var(--font-sans); font-size: inherit; }
.co-row__sub > span + span::before { content: '·'; margin-right: 6px; }
.co-rating-help { margin: 8px 0; }
.co-rating-help summary { cursor: pointer; }
.co-plist__head > span { white-space: nowrap; }
.cosl { grid-template-columns: 28px minmax(0, 1fr) 64px; }
.cos-topic-menu { display: block; margin: 12px 0; max-width: 260px; }
.cos-topic-menu select { margin-left: 12px; }
.cos-topics { display: none; }
.cocard__meta { white-space: normal; overflow: visible; }
@media (max-width: 700px) {
  .cos-topic-menu select { margin-left: 0; }
  .cos-all > .cos-sechead { margin-bottom: 0; gap: 4px; }
  .cos-count-headings { flex-basis: auto; padding-right: 8px; }
  .cos-az:empty { display: none; }
  .co-stage__prep { order: -1; }
  .co-stage__k { order: -2; }
  .co-stage__head:has(.co-stage__prep) .co-stage__title { flex-basis: 100%; }
}
.cosl__name { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 44px; }

.co-stage-guidance { margin: 12px 0 20px; }
.co-stage-guidance > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.co-priority-note { margin: 10px 0; font-size: .85rem; color: var(--text-muted); }
.co-row__title > .co-row__id { width: auto; margin-right: 8px; color: var(--text-muted); }
.co-plist { background: var(--bg); }
.co-plist__head, .co-row { grid-template-columns: 26px minmax(0, 1fr) 116px 84px 54px; }
.cos-topic-menu { margin: 0; max-width: none; display: flex; align-items: center; gap: 8px; }
.cos-topic-menu select { margin-left: 0; }
.cos-count-headings > span { display: flex; justify-content: space-between; }
.cos-count-headings b { font-weight: 400; }
.cosl__n { color: var(--text-muted); font-size: .9rem; align-self: center; }
.cos-all > .cos-sechead { row-gap: 8px; margin-bottom: 0; }
.co-prog__all { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 700px) {
  .cos-feat { display: none; }
}
@media (max-width: 640px) {
  .co-row { grid-template-columns: 20px minmax(0, 1fr) 64px; }
}

@media (max-width: 700px) {
  .cos-count-headings { flex-basis: 100%; padding: 0; }
  .cos-count-headings > span { width: 100%; gap: 12px; }
}

.co-row__label { display: none; }
.co-stage-guidance--only { margin: 0; }
.co-stage-guidance--only > summary { justify-content: flex-start; }
.co-stage-guidance--only > summary::before { content: '▸'; }
.co-stage-guidance--only[open] > summary::before { content: '▾'; }
.co-stage:has(.co-stage-guidance--only) { padding-block: 10px; margin-bottom: 12px; }
.cosl .clogo { flex: none; width: 28px; height: 28px; }
.cosl .clogo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .cos-sort-menu, .cos-topic-menu { display: block; margin: 12px 0; align-self: start; }
  .cosl { padding-block: 0; min-height: 44px; }
}
@media (max-width: 640px) {
  .co-row { grid-template-columns: 20px auto minmax(0, 1fr); grid-template-areas: "st main main" "st diff pr" "st acc acc"; gap: 3px 10px; }
  .co-row__sub { padding-left: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; }
  .co-row__sub > span + span::before { content: none; }
  .co-row__pr, .co-row__diff, .co-row__acc { justify-self: start; }
  .co-row__label { display: inline; color: var(--text-muted); font-size: .8rem; }
}

.cosl .clogo__mono { background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 500; border-radius: 0; }

.cos-count-headings { padding-right: 0; }
.cos-count-headings > span { padding: 0 8px; min-width: 0; }

.cos-sort { display: none; }
.cos-sort-menu { display: flex; align-items: center; gap: 8px; margin: 0; }
.cos-sort-menu select { min-height: 44px; }
.cosl .clogo__mono { font-size: 14px; font-weight: 600; }
.co-plist:not(:has(.co-row__acc)) :is(.co-plist__head, .co-row) { grid-template-columns: 26px minmax(0, 1fr) 132px 84px; }
:root[data-theme="dark"] .co :is(.co-row__sub, .co-prog__frac, .co-rail__c, .co-stage__prog) { color: var(--text-muted); }
@media (max-width: 700px) {
  .cosl { height: auto; padding-block: 0; min-height: 44px; }
  .cosl__name { padding-block: 0; }
  .co-hero { padding-block: 12px; margin-bottom: 8px; gap: 8px; }
  .co-hero__tag { margin-block: 8px; }
  .co-prog__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .co-prog__top .co-stage-picker { margin: 0; padding: 0; border: 0; font-size: .8rem; }
  .co-prog__top .co-stage-picker summary { min-height: 44px; padding-block: 10px; }
  .co-prog__top:has(.co-stage-picker[open]) { flex-wrap: wrap; }
  .co-prog__acts { margin-top: 4px; }
  .co-stage__head { margin-bottom: 8px; }
  .cos-sort-menu { display: block; margin: 12px 0; }
}
@media (max-width: 640px) {
  .co-row, .co-plist:not(:has(.co-row__acc)) .co-row { grid-template-columns: 20px auto auto minmax(0, 1fr); grid-template-areas: "st main main main" "st diff pr acc"; gap: 4px 8px; }
  .co-row__label { display: none; }
  .co-row__pr::before { content: 'Priority '; }
  .co-row__diff::after, .co-row__pr:has(+ .co-row__diff + .co-row__acc)::after { content: ' ·'; color: var(--text-muted); }
  .co-row__acc { align-self: center; }
}

@media (max-width: 700px) {
  .co-prog { margin-top: 4px; }
  .co-prog__h { white-space: nowrap; }
  .co-prog__top .co-stage-picker summary { font-size: .75rem; }
  .co-stage:has(.co-stage-guidance--only) { padding-block: 0; margin-bottom: 8px; }
  .co-stage-guidance--only > .co-stage__head { display: flex; flex-wrap: nowrap; min-height: 44px; padding: 6px 0; margin: 0; gap: 8px; }
  .co-stage__head:has(.co-stage__prep) .co-stage__title { flex-basis: auto; font-size: 1rem; }
  .co-stage-guidance--only .co-stage__prep { margin-left: auto; order: 0; font-size: .7rem; }
  .co-stage-guidance--only .co-stage__k { white-space: nowrap; }
  .co-stage__head:has(.co-stage__prog) { flex-wrap: wrap; padding-top: 8px; }
  .co-stage__prog { margin-left: auto; }
}

.co-row.is-locked .co-row__title { color: var(--text); }
.co-stage__prep { white-space: nowrap; flex: none; }
.co-stage-guidance--only > summary::before { order: -3; flex: none; }
.co-stage__subtitle { display: block; font: .875rem var(--font-sans); color: var(--text-muted); margin-top: 3px; }
.co-stage__prog { white-space: nowrap; }
.co-prog .co-cta { box-shadow: none; background-image: none; border: 1px solid var(--accent); }
@media (max-width: 700px) {
  .co-stage__head:has(.co-stage__prog) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
  .co-stage__prog { margin-left: 0; }
  .co-stage__bar { display: none; }
  .co-stage__head:has(.co-stage__prep) .co-stage__title { min-width: 0; }
}

.co-plist__head .co-rating-help { margin: 0; font: inherit; position: relative; }
.co-plist__head .co-rating-help summary { cursor: pointer; }
.co-plist__head .co-rating-help p { position: absolute; z-index: 2; width: 240px; right: 0; padding: 12px; background: var(--bg); border: 1px solid var(--border); font: .875rem var(--font-sans); }
@media (max-width: 640px) {
  .co-plist__head { display: block; }
  .co-plist__head > span { display: none; }
  .co-plist__head .co-rating-help p { position: static; width: auto; padding: 8px 0; border: 0; }
}

.co-plist:has(.co-rating-help[open]) { overflow: visible; }
@media (max-width: 640px) { .co-plist__head { height: auto; min-height: 36px; padding-block: 8px; } }

.co-row__title { color: var(--text); text-decoration: none; }
.co-row__details { font-size: .8rem; color: var(--text-muted); }
.co-row__details summary { cursor: pointer; min-height: 28px; display: flex; align-items: center; gap: 6px; }
.co-row__details summary::before { content: '▸'; }
.co-row__details[open] summary::before { content: '▾'; }
.co-row__details p { margin: 0 0 8px; }
.co-rail__list .co-rail__a { grid-template-columns: 22px minmax(0, 1fr); row-gap: 2px; }
.co-rail__list .co-rail__c { grid-column: 2; }

.co-row__details summary { min-height: 44px; width: 100%; }
.co-stage:has(.co-plist) { padding-bottom: 0; margin-bottom: 12px; }
.co-stage-guidance { margin-bottom: 8px; }
.co-rail__more { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.co-rail__list .co-rail__a { padding-block: 6px; }
.cosl .clogo__mono { font-size: 17px; color: var(--text); }
.co-prog .co-cta { white-space: normal; padding-inline: 20px; gap: 12px; }
:root[data-theme="dark"] .co-hero__mark .clogo--mask.is-brand { filter: saturate(.65) brightness(.85); }
:root[data-theme="dark"] .co-row__st .st--todo { stroke: var(--text-muted); }
:root[data-theme="dark"] :is(.co-pbar__seg, .co-stage__bar) { background: var(--text-faint); }
@media (max-width: 640px) {
  .co-hero { position: relative; }
  .co-hero__id { margin-bottom: 4px; }
  .co-hero__mark .clogo--xl { width: 38px; height: 38px; font-size: 38px; }
  .co-hero__title { font-size: 1.7rem; }
  .co-hero__name .co-prog__h { position: static; margin: 4px 0 0; font-size: .75rem; }
  .co-prog { margin-bottom: 0; }
  .co-prog__top { justify-content: flex-end; }
  .co-hero__tag { font-size: .95rem; line-height: 1.45; }
  .co-prog__all { font-size: .8rem; line-height: 1.3; }
  .co-row__pr::before { content: none; }
  .co-stage-guidance--only > .co-stage__head { flex-wrap: wrap; }
  .co-stage-guidance--only .co-stage__prep { font-size: .8rem; }
  .cos-sort-menu, .cos-topic-menu { display: flex; align-items: center; margin: 0; font-size: .8rem; gap: 4px; }
  .cos-sort-menu select, .cos-topic-menu select { min-width: 0; width: 100%; font-size: .8rem; }
}
@media (max-width: 640px) {
  .co-hero { padding-top: 4px; }
  .co-hero__main > .co-overview { display: inline-block; width: 60%; vertical-align: top; }
  .co-hero__main > .co-stage-picker { display: inline-block; width: 39%; margin: 8px 0 0; padding: 0; border: 0; vertical-align: top; font-size: .75rem; }
  .co-hero__main > .co-stage-picker > summary { min-height: 36px; padding-block: 4px; }
  .co-hero__main:has(.co-overview[open], .co-stage-picker[open]) > :is(.co-overview, .co-stage-picker) { width: 100%; }
}
.co-order { margin: 8px 0; color: var(--text-muted); font-size: .8rem; }
.co-plist__head .co-rating-help summary { font-size: .75rem; line-height: 1.3; }
@media (max-width: 640px) {
  .co-order { margin-block: 2px; }
  .co-plist__head { min-height: 28px; padding-block: 4px; }
}
@media (max-width: 640px) { .co-crumb { margin-bottom: 4px; } }

/* ---------- Compact question list ---------- */
.co-row { min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
.co-row__title { font-size: .95rem; }
.co-row__sub { padding-left: 0; gap: 0 10px; font-size: .75rem; color: var(--text-muted); }
.co-row__sub > span + span::before { content: "·"; margin-right: 10px; color: var(--text-faint); }
.co-row__st { align-self: center; }
.co-plist__head .co-rating-help summary { list-style: none; text-decoration: underline dotted; text-underline-offset: 3px; }
.co-plist__head .co-rating-help summary::-webkit-details-marker { display: none; }
.co-rail__c { font-family: var(--font-sans); }
.co-overview > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: .9rem; }
.co-overview > summary::-webkit-details-marker { display: none; }
.co-overview > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.co-overview[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.co-hero__id { gap: 16px; }
.co-hero__mark .clogo--xl { width: 48px; height: 48px; font-size: 48px; }
.co-hero__mark .clogo--xl.is-wide { width: auto; max-width: 120px; height: 40px; padding: 0; border: 0; background: none; box-shadow: none; }
.co-hero__title { font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* Free visitors: later stages blurred under one Pro card (page-company.js stagesHtml) */
.co-gated { position: relative; }
.co-gated__inner { filter: blur(4px); pointer-events: none; user-select: none; max-height: 1100px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.co-gate { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 0; pointer-events: none; }
.co-gate__card { pointer-events: auto; max-width: 420px; text-align: center; padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg-elev) 92%, transparent); box-shadow: 0 24px 60px -30px rgba(28, 25, 21, .45); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.co-gate__card .ico-lock { width: 28px; height: 28px; stroke: var(--accent); fill: none; }
.co-gate__card h3 { margin: 0; font-size: var(--fs-xl); }
.co-gate__card p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.co-gate__alt { font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 600px) { .co-gate { padding-top: 48px; } .co-gated__inner { max-height: 900px; } }
