/* The explainer pages on www since 5.0.1 (MC, 6 November): /signal/method, /trust and the Signal rows under the home
   page's hero. Copied from src/views/preview.css, where /basketsort still takes them inline on the preview site.
   Built from the site's own tokens; no new palette. */

/* Pages tried on the private preview site first (src/views/preview-style.js). Sent inside each preview page, never
   served as a file. Built on the site's tokens (/css/designer/styles.css) and the Signal card's own look. */

/* ------------------------------------------------------------------ the home page: Signal under the hero */
.home-signal { padding: clamp(40px, 6vw, 88px) 0 clamp(4px, 2vw, 24px); background: var(--paper); }
.home-signal-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head list" "links list"; grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 80px); align-items: start; }
.home-signal-head { grid-area: head; }
.home-signal-list { grid-area: list; }
.home-signal-links { grid-area: links; }
.home-signal-head h2 { margin: 12px 0 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16; letter-spacing: -.015em; font-weight: 500; text-wrap: balance; }
.home-signal-head > p { margin: 16px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.68; color: var(--muted); }
.home-signal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.home-signal-how { color: var(--ink); font-size: .94rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 23, 22, .3); text-underline-offset: 4px; }
.home-signal-how:hover { text-decoration-color: var(--ink); }
.home-signal-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #ecece8; }
.home-signal-list .sf-row { text-decoration: none; color: var(--ink); }
.home-signal-list .sf-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.home-signal-list .sf-hook { font-size: 17px; }
@media (max-width: 880px) {
  .home-signal-shell { grid-template-columns: 1fr; grid-template-areas: "head" "list" "links"; grid-template-rows: auto; row-gap: 22px; }
  .home-signal-links { margin-top: 0; }
}

/* ------------------------------------------------------------------ shared by the preview pages */
.pv-page .section-head > p.pv-head-note { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.pv-prose { max-width: 66ch; }
.pv-prose p:last-child { margin-bottom: 0; }
.pv-note { max-width: 68ch; margin: 26px 0 0; color: var(--muted); line-height: 1.6; }
.pv-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.info-card .pv-card-link { margin-top: 16px; }
.pv-card-link a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 23, 22, .3); text-underline-offset: 4px; }
.pv-card-link a:hover { text-decoration-color: var(--ink); }
.pv-page .page-actions { flex-wrap: wrap; }
.pv-page .section-block > .inline-cta:only-child { margin-top: 0; }
@media (max-width: 880px) { .pv-two { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ BasketSort: a reading, and the two lengths */
.bs-readout { width: min(340px, 100%); margin: 0; padding: 24px 24px 20px; border: 1px solid rgba(23, 23, 22, .1); border-radius: 22px; background: var(--white);
  box-shadow: 0 1px 2px rgba(22, 23, 26, .05), 0 22px 44px -26px rgba(11, 26, 51, .3); }
.bs-readout p { margin: 0; }
.bs-readout-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.bs-readout-head { margin-top: 6px !important; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.bs-readout-line { margin-top: 12px !important; font-size: 15.5px; line-height: 1.5; color: #3d403b; }
.bs-readout figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.bs-lengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bs-length h3 { margin-bottom: 4px; }
.info-card p.bs-length-n { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }
.bs-length-n b { display: inline-block; margin-right: 6px; font-size: clamp(2.6rem, 5.6vw, 3.8rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
@media (max-width: 700px) { .bs-lengths { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Signal: claims and actions, and the card part by part */
.pv-compare { display: grid; gap: 12px; margin: 0; }
.pv-compare > div { padding: 20px 22px; border: 1px solid rgba(23, 23, 22, .1); border-radius: 18px; background: var(--white); }
.pv-compare > div + div { border-color: var(--ink); background: var(--ink); color: #f4f2ec; }
.pv-compare dt { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pv-compare > div + div dt { color: rgba(244, 242, 236, .7); }
.pv-compare dd { margin: 0; font-size: 16px; line-height: 1.55; }

.pv-parts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pv-part { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.pv-part-copy h3 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.25; font-weight: 500; text-wrap: balance; }
.pv-part-copy p { margin: 0; max-width: 62ch; color: #51514d; line-height: 1.6; }
.pv-part-copy p + p { margin-top: 10px; }
.pv-specimen { --sgx-ground: #f2f2ef; --sgx-line: #ecece8; --sgx-r: 18px; --sgx-shadow: 0 1px 1px rgba(22, 23, 26, .04), 0 10px 24px -14px rgba(22, 23, 26, .16);
  display: flex; align-items: center; min-height: 104px; padding: 20px; border-radius: 18px; background: var(--sgx-ground); color: #16171a; }
.pv-specimen > * { width: 100%; }
.pv-bars-row { display: flex; align-items: flex-end; justify-content: space-between; max-width: 300px; }
.pv-bars-step { display: inline-grid; justify-items: center; gap: 6px; }
.pv-bars-step small { min-height: 1.2em; font-size: 12px; color: #6a6e67; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-specimen .pv-shift { margin: 0; }
.pv-lists { display: grid; gap: 8px; }
.pv-lists .sgx-h + * { margin-bottom: 6px; }
.pv-lists > :last-child { margin-bottom: 0; }
.pv-specimen .pv-watch { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pv-specimen .pv-source { padding: 0 16px; }
.pv-specimen .pv-source .pv-source-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; }
.pv-specimen .pv-call { gap: 8px; padding: 16px 18px; border-radius: 18px; }
.pv-call > span:last-child { font-size: 18px; line-height: 1.3; font-weight: 600; color: #f4f2ec; }
@media (max-width: 880px) { .pv-part { grid-template-columns: 1fr; gap: 16px; } .pv-specimen { min-height: 0; } }

/* ------------------------------------------------------------------ corrections */
.pv-steps { margin: 0; padding: 0; list-style: none; counter-reset: pv-step; border-top: 1px solid var(--line); }
.pv-steps li { position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); font-size: 1.06rem; line-height: 1.55; counter-increment: pv-step; }
.pv-steps li::before { content: counter(pv-step, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
.pv-correction { margin: 0; padding: 20px 22px; border-radius: 18px; background: #f5f5f1; border-left: 3px solid var(--yellow); }
.pv-correction p { margin: 0; line-height: 1.55; color: #33362f; }
.pv-correction .pv-correction-k { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pv-correction figcaption { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
