/* Rails on every page except Home (design/_qa/sidebars.md "Update 2026-11-04", "Phone additions"; layout v2 in
   design/_qa/look-v3.md). Below 1100px the right rail is the chip bar (SectionChips.astro). The strip shows in the
   text at every width, and the left rail is an open band of links in the end area (LeftRail.astro). */
.sb {
  display: none;
}
/* Link band (design/_qa/look-v3.md stage 1; placed by SectionBody and PageRails): stacked on phones, 2 columns at 600-1099px, side by side from 1100px; each block has a hairline on top. */
.sbl-l {
  margin-top: 40px;
}
.sl-in {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 600px) {
  .sl-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .sl-in {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
}
/* Read next is already the strip's first card. */
.sl-f.sl-f--dup {
  display: none;
}
.sb-strip {
  display: block;
  margin: 40px calc(var(--pad) * -1) 0;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--wash-tea), var(--wash-grey));
}
.sbl-m {
  min-width: 0;
}
.sb-strip .mono,
.sbl .mono {
  font: 500 12px/1.4 var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sb-strip .mono {
  margin: 0 0 12px;
  padding: 0 var(--pad);
  color: var(--ink2);
}
.sb-strip ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.sb-strip ul::-webkit-scrollbar {
  display: none;
}
/* The swipe cue (swipe-hints.ts) lines up with the cards. */
.sb-strip > .sw-h {
  padding: 0 var(--pad);
}
.sb-strip li {
  flex: 0 0 min(210px, 62vw);
  scroll-snap-align: start;
}
.sb-strip a {
  display: block;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.sb-strip a:focus-visible,
.sbl-l a:focus-visible,
.sb a:focus-visible,
.sb summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.sb-strip a:focus-visible {
  outline-offset: -2px;
}
.sb-sp {
  display: block;
  height: 112px;
  background: color-mix(in srgb, var(--c, var(--ink)) 30%, var(--bg));
}
.sb-sp img,
.sl-fp img,
.sb-th img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-strip a > b {
  display: block;
  padding: 10px 12px 0;
  font: 700 16px/1.25 var(--f1);
}
.sb-strip small {
  display: -webkit-box;
  margin: 2px 12px 12px;
  overflow: hidden;
  color: var(--ink2);
  font: 400 13px/1.35 var(--f1);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- Rail blocks ---------- */
/* Open blocks (design/_qa/look-v3.md A): no fill, a hairline on top. */
.sb-b {
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}
.sb-h {
  margin: 0 0 12px;
  color: var(--ink2);
}
.sb-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--red);
  text-decoration: none;
}
.sb-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sb-otp {
  padding: 0 0 4px;
  border-top: 0;
}
.sb-otp summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  margin: 0 0 6px;
  color: var(--ink2);
  list-style: none;
  cursor: pointer;
}
.sb-otp summary::-webkit-details-marker {
  display: none;
}
.sb-otp summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}
.sb-otp:not([open]) summary::after {
  transform: rotate(-45deg);
}
.sb-otp ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sb-otp a {
  display: block;
  padding: 6px 12px;
  color: var(--ink2);
  font: 400 15px/1.35 var(--f1);
  text-decoration: none;
}
.sb-otp a:hover {
  background: var(--blk);
  color: var(--ink);
}
/* Hub colour as a rule, never a fill (look-v3 C). */
.sb-otp a[aria-current] {
  box-shadow: inset 2px 0 0 var(--c, var(--ink));
  color: var(--ink);
  font-weight: 700;
}
.sb-qf .sb-h {
  color: var(--ink);
}
.sb-qf .facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.sb-qf .facts dd {
  font: 400 15px/1.45 var(--f1);
}
.sb-ask ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The link covers the verdict too, so each row is one target of at least 44px. */
.sb-ask li a {
  display: grid;
  gap: 4px;
  min-height: var(--target);
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}
.sb-ask .vl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vc, var(--ink));
  font: 500 11px/1.4 var(--f2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sb-ask .vl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.sb-ask .q {
  display: -webkit-box;
  overflow: hidden;
  font: 700 15px/1.35 var(--f1);
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.sb-ask li a:hover .q {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.sb-pl ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sb-pl a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: var(--target);
  color: var(--ink);
  text-decoration: none;
}
.sb-th {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--wash-grey);
}
.sb-th b {
  font: 900 20px/1 var(--fj);
}
.sb-pl a > span:last-child b {
  display: block;
  font: 700 15px/1.3 var(--f1);
}
.sb-pl small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink2);
  font: 400 13px/1.4 var(--f1);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.sb-pl a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.sb-nx ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sb-nx a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  padding: 6px;
  background: var(--bg);
  color: var(--ink);
  font: 400 13px/1.25 var(--f1);
  text-decoration: none;
}
.sb-nx a b {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--wash-grey);
  font: 900 13px/1 var(--fj);
}
.sb-nx a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.sl-f {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.sl-fp {
  display: block;
  height: 128px;
}
.sl-ft {
  display: grid;
  gap: 4px;
  padding: 12px 0 0;
}
.sl-ft .mono {
  color: var(--ink2);
}
.sl-ft b {
  font: 700 18px/1.2 var(--f1);
  text-wrap: balance;
}
.sl-ft small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink2);
  font: 400 14px/1.35 var(--f1);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.sl-f:hover b {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

/* ---------- Desktop: text and one rail (layout v2, design/_qa/look-v3.md) ---------- */
@media (min-width: 1100px) {
  .sbl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    column-gap: 56px;
    align-items: start;
    padding-block: clamp(32px, 4vw, 56px);
  }
  .sbl-m {
    grid-column: 1;
    grid-row: 1;
  }
  .sb {
    position: sticky;
    top: calc(var(--hh) + 20px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* The notice only reaches the right rail. */
    max-height: calc(100svh - var(--hh) - 40px - var(--cookie-h));
  }
  .sbl > .sb {
    grid-column: 2;
    grid-row: 1;
  }
  .sb-in {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    margin: -2px -6px -2px -2px;
    padding: 2px 6px 2px 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink) 20%, transparent) transparent;
  }
  .sb-in > * {
    flex: none;
  }
  .sb-strip {
    margin-inline: 0;
  }
  .sb-strip .mono,
  .sb-strip ul,
  .sb-strip > .sw-h {
    padding-inline: 20px;
  }
  .sbl-m > .hub-body .facts {
    display: none;
  }
  .sbl-m .child-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbl-m .at-w,
  .sbl-m .at {
    max-width: 100%;
    overflow-x: auto;
  }
  /* Prose keeps its measure; tables and modules use the full column. */
  .hub-body .lead,
  .hub-body .pr > p,
  .hub-body .pr > ul:not([class]),
  .hub-body .pr > ol,
  .hub-body .pr > h3 {
    max-width: 680px;
  }
  /* Folding is a phone and tablet aid: every section stays open here, also before JS sets `open`. */
  .sx-fold::details-content {
    display: contents;
    content-visibility: visible;
  }
  .sx-fold > summary {
    list-style: none;
    pointer-events: none;
  }
}
/* The page navigation pill sits under the rail here. The notice only reaches the right rail. */
@media (min-width: 1100px) and (max-width: 1399px) {
  .sb {
    max-height: calc(100svh - var(--hh) - 104px - var(--cookie-h));
  }
}

/* ---------- Below 1100px: folding region sections ---------- */
@media (max-width: 1099px) {
  .sx-fold > summary {
    position: relative;
    min-height: var(--target);
    padding-right: 36px;
    list-style: none;
    cursor: pointer;
  }
  .sx-fold > summary::-webkit-details-marker {
    display: none;
  }
  .sx-fold > summary::after {
    content: "";
    position: absolute;
    top: calc(50% - 7px);
    right: 8px;
    width: 9px;
    height: 9px;
    border: solid var(--ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .sx-fold[open] > summary::after {
    transform: rotate(-135deg);
  }
  .sx-fold > summary:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }
}

/* The right rail's blocks (RightRail.astro) only exist beside the text. */
.sb-x[hidden] {
  display: none;
}
@media (max-width: 1099px) {
  .sb-x {
    display: none;
  }
}

/* ---------- Phone: compact hub cards ---------- */
@media (max-width: 599px) {
  .sbl .cd .ph {
    width: 88px;
  }
  .sbl .cd .no {
    display: none;
  }
  .sbl .cd .tb {
    padding: 10px 12px;
  }
  .sbl .cd .g {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}
@media print {
  .sb,
  .sbl-l,
  .sb-strip {
    display: none;
  }
}
