/* pb-topics2.css: D-CBO-331 builder file (see the builder brief).
   The Topic homes, their Data tabs, the Group page and the Almanac on Decision Lab's Insights pattern (D-CBO-319): a hero with the Ask band and pills,
   then Sections in one shell, a sticky rail a quarter wide beside the content; beds alternate paper and tint, with one dark band for the news.
   AURA's own tokens and type; no grey panel. Even sizes only (D-CBO-330). On a phone the rail becomes a heading row above the content. */

#pb-tscreen.tp-screen { padding: 0; }
.tp { container: tp / inline-size; min-height: 100%; background: var(--ground); color: var(--ink); }
.tp-wrap { box-sizing: border-box; max-width: 1192px; margin: 0 auto; padding: 0 32px; }

/* ---------- beds ---------- */
.tp-bed { padding: 64px 0; }
.tp-paper { background: var(--ground); }
.tp-tint { background: var(--surface-2); }
.tp-tint .pb-card.tint { background: var(--surface); }
/* the one dark band: it carries the dark tokens itself, so its Cards and charts draw dark in either theme */
.tp-night {
  --ground: #012824; --surface: #07332E; --surface-2: #0E3F39; --surface-3: #174A44;
  --hairline: #23504A; --line-strong: #2F625B; --ink: #FFFCF8; --ink-2: #E2DBD0; --ink-3: #BDB5A8; --ink-4: #ADA598;
  --accent: #01C09F; --accent-soft: #07453C; --on-accent-soft: #85F4CF; --v-600: #01C09F; --v-700: #85F4CF;
  --chart-1: #17A98F; --chart-2: #5B7FF0; --chart-3: #C08A10; --chart-4: #A36BE0; --chart-other: #46645F;
  --warning: #F5C95A; --warning-soft: #2B2A12; --danger: #FF9B75; --danger-soft: #3A1F14; --status-warn: #C08A10;
  --shadow-rest: 0 0 0 1px rgb(255 255 255 / .06), 0 1px 2px rgb(0 20 18 / .40), 0 8px 24px -8px rgb(0 20 18 / .48);
  --paper: var(--ground); --paper-2: var(--surface-2); --paper-3: var(--surface-3); --canvas: var(--ground); --line: var(--hairline); --line-2: var(--hairline);
  --field: var(--surface-2); --field-edge: var(--hairline); --primary: #01C09F; --on-primary: #012824; --primary-hover: #0AE1B6; --focus-color: #0AE1B6;
  color-scheme: dark; background: var(--night); color: var(--ink);
}
:root[data-theme="dark"] .tp-night { background: var(--window); box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.tp-foot { padding: 0 0 48px; background: var(--ground); }
.tp-foot .pb-pagefoot { margin: 32px 0 0; }

/* ---------- the hero: name, lead, the Ask band and pills, then the tabs on the bed's edge ---------- */
.tp-hero { padding: 48px 0 0; background: var(--surface-2); }
.tp-hkick { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.tp-hkick a { color: var(--ink-2); text-decoration: none; }
.tp-hkick a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tp-htop { display: flex; align-items: flex-end; gap: 16px; }
.tp-htop h1 { flex: 1; min-width: 0; margin: 0; font: 400 56px/64px var(--font-serif); letter-spacing: -.02em; color: var(--ink); }
.tp-htop > .btn { flex: none; margin-bottom: 8px; }
.tp-lead { max-width: 760px; margin: 16px 0 0; font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink-2); }
.tp-ask { max-width: 816px; margin-top: 32px; }
.tp-ask .pb-haskin { width: 100%; height: 56px; border: 0; cursor: text; text-align: left; font: 400 var(--fs-md)/24px var(--font); }
.tp-ask .pb-haskin > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tp-ask .pb-haskin em { font-style: normal; color: var(--ink-4); }
.tp-ask .pb-haskgo { width: 40px; height: 40px; }
.tp-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tp-pills > span { flex: none; white-space: nowrap; margin-right: 4px; font: 500 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.tp-pills .pb-mchip { text-decoration: none; }
.tp-tabs { margin: 40px 0 0; border-bottom: 1px solid var(--hairline); }
.tp-tabs a { margin-right: 24px; }
.tp-hgap { height: 48px; }
.tp-dtools { display: flex; align-items: center; gap: 16px; max-width: 816px; margin-top: 32px; }
.tp-dtools .pb-search { flex: 1; width: auto; max-width: 520px; height: 48px; background: var(--surface); box-shadow: var(--shadow-rest); }
.tp-dtools .pb-hdcount { margin-left: auto; }
.tp-hrow { margin-top: 32px; }

/* ---------- the Section: a sticky rail a quarter wide, the content beside it ---------- */
.tp-sec { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 64px; align-items: start; }
.tp-rail { position: sticky; top: 32px; min-width: 0; }
.tp-rail h2 { margin: 0; font: 400 var(--fs-3xl)/40px var(--font-serif); letter-spacing: -.01em; color: var(--ink); }
.tp-rail > p { margin: 12px 0 0; font: 400 var(--fs-md)/24px var(--font); color: var(--ink-2); }
.tp-jump { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--hairline); }
.tp-jump a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--hairline); box-sizing: border-box; color: var(--ink); font: 500 var(--fs-sm)/20px var(--font); text-decoration: none; }
.tp-jump a .icon.msr { flex: none; color: var(--ink-3); transition: transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.tp-jump a:hover { color: var(--accent); }
.tp-jump a:hover .icon.msr { color: var(--accent); transform: translateX(2px); }
.tp-main { min-width: 0; }
.tp-grp + .tp-grp { margin-top: 48px; }
.tp-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tp-gh h3 { margin: 0; font: 600 var(--fs-md)/24px var(--font); color: var(--ink); }
.tp-gh h3 span { margin-left: 8px; font-weight: 400; color: var(--ink-3); }
.tp-gh a { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--accent); font: 500 var(--fs-sm)/20px var(--font); text-decoration: none; }
.tp-gh a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* one 12-track grid for every row, so the edges line up from Section to Section */
.tp-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.tp-row + .tp-row { margin-top: 24px; }
.tp-row > .s3 { grid-column: span 3; } .tp-row > .s4 { grid-column: span 4; } .tp-row > .s5 { grid-column: span 5; } .tp-row > .s6 { grid-column: span 6; }
.tp-row > .s7 { grid-column: span 7; } .tp-row > .s8 { grid-column: span 8; } .tp-row > .s12 { grid-column: span 12; }
.tp-cell { display: flex; min-width: 0; }
.tp-cell > * { flex: 1; min-width: 0; }
.tp-live { display: flex; min-width: 0; min-height: 336px; }
.tp-live > .ckc { flex: 1; }
.tp-wait { flex: 1; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-rest); }
.tp .ckc .ckc-foot { margin-top: 16px; }

/* ---------- Kit Cards on the page ---------- */
.tp .pb-card .pb-cb { overflow: visible; }
.tp .pb-tcard.pb-card { min-height: 0; }
.tp-nk:not(:first-child) { margin-top: 12px; }
.tp .pb-num { font-size: 48px; line-height: 56px; }
.tp-numc .pb-cb { justify-content: flex-start; gap: 4px; }
.tp .pb-tverd .pb-tvq { font-size: var(--fs-xl); line-height: 28px; }
.tp-nk { margin: 0 0 8px; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink); }
.tp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.tp-known li { align-items: center; padding: 12px 0; }
.tp-known li a, .tp-known li p { display: block; margin: 0; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink); }
.tp-known small { margin-top: 2px; }

/* the picture Card: a picture, then kicker, title and a line; the whole Card is the link */
.tp-pc { position: relative; }
.tp-pic { position: relative; display: block; overflow: hidden; background: var(--surface-3); }
.tp-pic.r45 { aspect-ratio: 4 / 5; } .tp-pic.r169 { aspect-ratio: 16 / 9; } .tp-pic.r11 { aspect-ratio: 1 / 1; }
.tp-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.tp-pc:hover .tp-pic > img { transform: scale(1.02); }
.tp-pic.contain { background: var(--white); border-bottom: 1px solid var(--hairline); }
.tp-pic.contain > img { inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.tp-lab { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--night-veil); color: var(--white); }
.tp-over > .tp-lab { top: 8px; bottom: auto; }
.tp-logo { display: grid; place-items: center; height: 120px; background: var(--white); border-bottom: 1px solid var(--hairline); }
.tp-logo img { max-width: 56%; max-height: 56px; object-fit: contain; }
.tp-pcb { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 20px 20px; }
.tp-kick { font: 500 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.tp-pct { font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.tp-pct::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.tp-pc:hover .tp-pct { color: var(--accent); }
.tp-pct:focus-visible { outline: 0; }
.tp-pct:focus-visible::after { outline: var(--focus-outline); outline-offset: 2px; }
.tp-pcl { font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-2); }
.tp-pcm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.tp-pc > .pb-cmenu-float, .pb-card.tp-over > .pb-cmenu-float { position: absolute; z-index: 3; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-rest); }
.pb-card.tp-pc:not(:has(.tp-pic, .tp-logo)) > .pb-cmenu-float { background: transparent; box-shadow: none; }

/* the lead story: the headline over its picture */
.tp-over { min-height: 360px; }
.tp-over.tall { min-height: 440px; }
.pb-card.tp-over > .tp-lab { position: absolute; }
.tp-over .pb-cb { gap: 8px; padding: 24px 28px 28px; }
.tp-okick { font: 500 var(--fs-xs)/16px var(--font); color: var(--on-glass-2); }
.tp-ot { max-width: 80%; font: 400 var(--fs-3xl)/40px var(--font-serif); letter-spacing: -.01em; color: var(--white); text-decoration: none; }
.tp-ot::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tp-over:hover .tp-ot { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tp-over .pb-ms { max-width: 80%; color: var(--on-glass-2); }

/* text stories: the page's text weight, ruled and calm */
.tp-stories li { padding: 16px 0; }
.tp-stories a { display: block; margin-top: 4px; font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); text-decoration: none; }
.tp-stories a:hover { color: var(--accent); }
.tp-stories .tp-sm { display: block; margin-top: 4px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.tp-stories.tight li { padding: 12px 0; }
.tp-stories.tight a { font-size: var(--fs-md); line-height: 24px; }
.tp-brief h3 { margin: 0 0 12px; font: 600 var(--fs-md)/24px var(--font); color: var(--ink); }
.tp-brief .pb-klist { border-top-color: var(--line-strong); }

/* voices in the Almanac */
.tp-voice { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.tp-voice:first-child { border-top: 0; padding-top: 0; }
.tp-voice > img { flex: none; width: 40px; height: 40px; border-radius: var(--r-round); object-fit: cover; }
.tp-voice p { margin: 0; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink); }
.tp-voice small { display: block; margin-top: 4px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.tp-voice .pb-kplay { margin-top: 4px; }
.tp-lang { height: 24px; padding: 0 8px; font-size: var(--fs-xs); line-height: 16px; }
.tp-lang + .tp-lang { margin-left: -4px; }

/* ---------- narrower: the rail sits above its content as a heading row ---------- */
@container tp (max-width: 960px) {
  .tp-sec { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tp-rail { position: static; }
  .tp-rail > p { max-width: 640px; }
  .tp-jump { flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 16px -32px 0; padding: 0 32px 4px; overflow-x: auto; border-top: 0; scrollbar-width: none; }
  .tp-jump a { flex: none; min-height: 32px; padding: 6px 12px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--surface); white-space: nowrap; }
  .tp-jump a .icon.msr { display: none; }
}
@container tp (max-width: 640px) {
  .tp-wrap { padding: 0 16px; }
  .tp-bed { padding: 40px 0; }
  .tp-hero { padding-top: 32px; }
  .tp-foot { padding: 0 0 32px; }
  .tp-htop { flex-wrap: wrap; }
  .tp-htop h1 { flex-basis: 100%; font-size: 40px; line-height: 48px; }
  .tp-lead { font-size: var(--fs-md); line-height: 24px; }
  .tp-ask { margin-top: 24px; }
  .tp-ask .pb-haskin em { display: none; }
  .tp-pills { flex-wrap: nowrap; margin: 16px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .tp-pills .pb-mchip { flex: none; }
  .tp-tabs { margin-top: 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .tp-tabs a { margin-right: 16px; }
  .tp-dtools { flex-wrap: wrap; }
  .tp-dtools .pb-search { flex-basis: 100%; max-width: none; }
  .tp-dtools .pb-hdcount { margin-left: 0; }
  .tp-rail h2 { font-size: var(--fs-2xl); line-height: 32px; }
  .tp-rail > p { margin-top: 8px; font-size: var(--fs-sm); line-height: 20px; }
  .tp-jump { margin: 16px -16px 0; padding: 0 16px 4px; }
  .tp-grp + .tp-grp { margin-top: 32px; }
  .tp-row { gap: 16px; }
  .tp-row + .tp-row { margin-top: 16px; }
  .tp .tp-row > * { grid-column: span 12; }
  .tp .tp-row > .tp-pc.s3 { grid-column: span 6; }
  .tp-pc.s3 .tp-pcb { padding: 12px 12px 16px; }
  .tp-pc.s3 .tp-pct { font-size: var(--fs-md); line-height: 24px; }
  .tp-pc.s3 .tp-pcl { font-size: var(--fs-xs); line-height: 16px; }
  .tp-over, .tp-over.tall { min-height: 320px; }
  .tp-over .pb-cb { padding: 16px 20px 20px; }
  .tp-ot { max-width: none; font-size: var(--fs-2xl); line-height: 32px; }
  .tp-live { min-height: 320px; }
  .tp .pb-num { font-size: 40px; line-height: 48px; }
  .tp .pb-hdrow { grid-template-columns: 56px minmax(0, 1fr) 72px; }
}
