/* ==========================================================================================================================
 * Our clients (#/customers), step 2 of the rebuild, 4 Dec 2026: the agreed design (Main.dc.html).
 * The wall of clients on the left (chips, then coloured tiles, three to a row), one client's panel on a white card on
 * the right. Below 1100px the panel goes under the wall. Colours come from tokens.css, so dark mode follows.
 * ========================================================================================================================== */

.page.cwall { display: block; max-width: 1180px; }
.page.cwall p { max-width: none; }

/* ---------- the top: what needs you, then find and add ---------- */
.cw-top, .cw-body { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 30px; }
.cw-top { align-items: end; margin-bottom: 30px; }
.cw-say h1 { margin: 0; font-size: 2.125rem; font-weight: 600; line-height: 1.15; }
.cw-sent { margin: 12px 0 0; color: var(--grey); font-size: var(--t-lg); line-height: 1.45; text-wrap: pretty; }
.cw-find { display: flex; align-items: flex-end; gap: 8px; }
.cw-find .fld { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.cw-find .lab { font-size: 0.9375rem; font-weight: 500; color: var(--grey); }
.cw-find input { width: 100%; min-height: 48px; }
.cw-find .btn { flex: none; min-height: 48px; }

/* ---------- the wall ---------- */
.cw-body { align-items: start; }
.cw-wall { display: grid; gap: 14px; align-content: start; min-width: 0; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-chips button { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 9px; border-width: 1px; border-style: solid; border-radius: 999px; font: inherit; font-size: 0.9375rem; cursor: pointer; }
.cw-chips .cn { font-variant-numeric: tabular-nums; }
.cw-chips button[aria-pressed="true"] .mk { filter: drop-shadow(0 0 0 transparent); }
.cw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cw-tiles > li { display: grid; min-width: 0; }
.cw-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 92px; padding: 14px 16px; border-width: 1px; border-style: solid; border-radius: 18px; color: var(--ink); font-size: var(--t-lg); font-weight: 600; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgb(15 20 25 / 0.04); transition: box-shadow var(--dur) var(--ease), transform 100ms var(--ease); }
.cw-tile .nc { margin-top: -6px; font-size: var(--t-sm); font-weight: 400; color: var(--grey); }
.cw-tile .w { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 500; }
.cw-tile.t-stop .w { color: var(--stop); } .cw-tile.t-watch .w { color: var(--watch); } .cw-tile.t-fine .w { color: var(--fine); } .cw-tile.t-none .w { color: var(--grey); }
.cw-tile.t-none { border-style: dashed; border-color: var(--tagon); }
.cw-tile[aria-current="true"] { outline: 2px solid var(--blue); outline-offset: -2px; box-shadow: 0 8px 22px rgb(31 95 224 / 0.14); }
.cw-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cw-tile:active { transform: translateY(1px); }
@media (hover: hover) { .cw-tile:hover { text-decoration: none; box-shadow: 0 8px 22px rgb(15 20 25 / 0.09); } }
.cw-note, .cw-others, .cw-soon { margin: 0; color: var(--grey); font-size: 0.9375rem; }
.cw-others .btn { min-height: 36px; vertical-align: baseline; }
.btn.inl { min-height: 0; padding: 0 2px; line-height: inherit; color: var(--blue); }
.cw-empty { display: grid; gap: 6px; padding: 18px 20px; border: 1px dashed var(--tagon); border-radius: 18px; }
.cw-empty p { margin: 0; }
.cw-first { display: grid; gap: 14px; max-width: 560px; padding: 24px 28px; }
.cw-first p { margin: 0; font-size: var(--t-lg); }

/* ---------- the panel: one client on a white card ---------- */
.cw-panel { min-width: 0; padding: 26px 28px 28px; background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--lift); animation: open var(--dur) var(--ease); }
.cp { display: grid; gap: 22px; min-width: 0; }
.cp-head h2 { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.cp-meta { margin: 4px 0 0; color: var(--grey); font-size: 0.9375rem; }
.cp-facts { display: grid; grid-template-columns: 134px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.cp-facts dt { color: var(--grey); }
.cp-facts dd { margin: 0; overflow-wrap: anywhere; }
.cp-facts .g { margin-top: 12px; }
.cp-none { color: var(--grey); }
.cp-ans { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border: 1px solid transparent; border-radius: 14px; }
.cp-ans > .mk { margin-top: 3px; }
.cp-ans .w { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.cp-ans .x { margin: 4px 0 0; font-size: var(--t-lg); line-height: 1.45; overflow-wrap: anywhere; }
.cp-ans .row-btns { margin-top: 12px; }
.cp-ans.t-stop .w { color: var(--stop); } .cp-ans.t-watch .w { color: var(--watch); } .cp-ans.t-fine .w { color: var(--fine); } .cp-ans.t-none .w { color: var(--ink); }
.cp-ans.t-none { border-style: dashed; border-color: var(--tagon); }
.cp h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.cp-sec { display: grid; gap: 12px; }
.cp-sec > h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cp-finds { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cp-find { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cp-find:first-child { padding-top: 2px; }
.cp-find:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-find p { margin: 0; line-height: 1.5; }
.cp-find .t { display: flex; align-items: flex-start; gap: 8px; font-size: var(--t-lg); font-weight: 600; line-height: 1.35; }
.cp-find .t .mk { margin-top: 3px; }
.cp-find .when { color: var(--grey); font-size: 0.9375rem; }
.cp-find .lab2 { color: var(--grey); }
.cp-find .q { margin: 0; }
.cp-checks { display: grid; margin: 0; padding: 0; list-style: none; }
.cp-checks li { display: grid; grid-template-columns: 18px minmax(0, 9.5rem) minmax(0, 1fr); align-items: start; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cp-checks li:first-child { padding-top: 0; }
.cp-checks li:last-child { border-bottom: 0; }
.cp-checks .mk { margin-top: 2px; }
.cp-checks .k { font-weight: 500; }
.cp-checks .v { color: var(--ink); overflow-wrap: anywhere; }
.cp-payline { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-lg); font-weight: 500; }
.cp-sec .small { margin: 0; }
.cp-warn { color: var(--watch); }
.cp .ask { display: grid; gap: 10px; }
.cp .ask h3 { font-size: var(--t-lg); }
.cp-foot { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.cp-foot .small { margin: 0; }
.cp-more { border-top: 1px solid var(--line); padding-top: 14px; }
.cp-more > summary { cursor: pointer; color: var(--grey); font-weight: 500; }
.cp-more .srcs, .cp-more .more-body { margin-top: 14px; }
.cp-more + .cp-more { margin-top: -8px; }
.cp-more h4 { margin: 0 0 6px; font-size: var(--t-md); }

/* ---------- smaller screens ---------- */
@media (max-width: 1359.98px) {
  .cw-top, .cw-body { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; }
}
@media (max-width: 1099.98px) {
  .cw-top, .cw-body { grid-template-columns: minmax(0, 1fr); }
  .cw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  .cw-say h1 { font-size: 1.75rem; }
  .cw-find { flex-wrap: wrap; }
  .cw-panel { padding: 20px 18px; }
  .cp-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cp-facts dd { margin-bottom: 8px; }
  .cp-checks li { grid-template-columns: 18px minmax(0, 1fr); }
  .cp-checks .v { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-tile, .cw-panel { transition: none; animation: none; }
  .cw-tile:active { transform: none; }
}

/* "Add a client" in the panel: the steps sit straight on the panel's white card, not in a second card. */
.cw-panel .addslot { display: grid; gap: 16px; }
.cw-panel .addslot > .card-q { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.cw-panel .addslot > .card-q h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.cw-many { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cw-many > summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.cw-many .pad { display: grid; gap: 10px; padding: 12px 0 0; }

/* A tile picked: the panel stays where it is, a little faded, until the new company is ready. */
.cw-panel.cw-wait { opacity: .55; transition: opacity .15s ease .1s; }
@media (prefers-reduced-motion: reduce) { .cw-panel.cw-wait { transition: none; } }
