/* /checkout (partials/checkout-content.php), Igor's pick C refined in the app (15 Nov 2026): his month against Pro and
   Max on every row, grouped along his path; the plan chosen by its column (lit from head to last row), the period by the
   Pro sheet's switch in the order, the order as the page's one frame. Kit tokens only, type on the scale, the 12-column
   grid of design-base §15 (content up to 1200 at 1512: a column 78, gutter 24): the comparison takes 8 columns (his
   month 2, each plan 3), the order 4, the facts before paying all 12 (Igor 15 Nov: each in two lines). Light and dark
   from tokens.css. */
.co-body { --co-max: 1248px; margin: 0; min-height: 100vh; background: var(--ui-page); color: var(--ui-ink); font: 400 var(--ui-type-body) var(--ui-font); -webkit-font-smoothing: antialiased; }
.co-body *, .co-body *::before, .co-body *::after { box-sizing: border-box; }
/* A short page (Max already, the template, thank-you): the risk notice sits at the foot of the screen, not under the
   content in the middle of it (Igor 15 Nov walk: «имел ввиду что портянка Disclosure висит по центру экрана»). */
.co-body { display: flex; flex-direction: column; min-height: 100dvh; }
.co-body > :is(.co-top, .co-main, .co-support) { width: 100%; }
.co-body > .tsb-sitewide-risk-footer { margin-top: auto; }
:where(.co-body) :where(h1, p, dl, dd) { margin: 0; }
.co-body svg.lucide { width: 16px; height: 16px; flex: none; }
.co-body [hidden] { display: none !important; }
/* The app's icon sprite (includes/sidebar-icons.php) for the Coach glyph: carried, never seen. */
.co-body .tsb-sidebar-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.co-top { display: flex; align-items: center; justify-content: space-between; max-width: var(--co-max); margin: 0 auto; padding: 24px 24px 0; }
.co-brand img { display: block; height: 22px; }
html.light .co-brand img { filter: invert(1); }
.co-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ui-accent-text); font: 500 var(--ui-type-body) var(--ui-font); text-decoration: none; }
.co-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.co-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; max-width: var(--co-max); margin: 0 auto; padding: 40px 24px 64px; }
.co-head { grid-column: 1 / 9; grid-row: 1; padding-bottom: 32px; }
/* Nothing to compare (Max already, a payment confirming, the template alone): one calm column on the grid's middle 8. */
.co-main.is-plain :is(.co-head, .co-order, .co-trust) { grid-column: 3 / 11; }
.co-main.is-plain .co-order { grid-row: 2; position: static; }
.co-main.is-plain .co-trust { grid-row: 3; }
.co-compare { grid-column: 1 / 9; grid-row: 2; }
.co-order { grid-column: 9 / 13; grid-row: 1 / span 2; position: sticky; top: 24px; }
.co-trust { grid-column: 1 / -1; grid-row: 3; }

/* The answer, in his numbers. */
.co-kicker { display: flex; align-items: center; gap: 6px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-kicker svg.lucide { width: 16px; height: 16px; }
.co-status { margin: 0 0 12px; }
.co-title { margin-top: 4px; font: 600 var(--ui-type-title-l) var(--ui-font); letter-spacing: -.04em; text-wrap: balance; }
.co-lead { max-width: 640px; margin-top: 8px; color: var(--ui-ink-2); font: 400 var(--ui-type-lead) var(--ui-font); text-wrap: pretty; }
.co-lead b { color: var(--ui-ink); font-weight: 600; }

/* The comparison on the grid's 8 columns (his month 2, each plan 3); the chosen plan's column lit from its head to the
   last row. */
/* Pro and Max stand side by side with no gutter between them, as wide as each other (Igor 15 Nov walk: «тут дырку
   оставляем? ты все колонки нормально сбалансировал?»); his month keeps the gutter on its right. */
.co-heads, .co-row { display: grid; grid-template-columns: calc((100% - 168px) / 8 * 2 + 48px) minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
.co-compare.is-two :is(.co-heads, .co-row) { grid-template-columns: calc((100% - 168px) / 8 * 2 + 48px) minmax(0, 1fr); }
/* The lit column is one band behind the table, so a group's heading can run across it (Igor 15 Nov: «растяни
   нормально»). --c1 is his month's width (2 of 8 columns), --cw a plan's (3 of 8). */
.co-table { position: relative; --c1: calc((100% - 168px) / 8 * 2 + 24px); --cw: calc((100% - var(--c1) - 24px) / 2); }
.co-compare.is-two .co-table { --cw: calc(100% - var(--c1) - 24px); }
.co-lit { position: absolute; top: 0; bottom: 0; left: calc(var(--c1) + 24px); width: var(--cw); background: var(--ui-accent-soft); pointer-events: none; }
/* Dark: the lit column stays a tint, never the heaviest block on the page. */
html.dark .co-body { --co-lit: color-mix(in srgb, var(--ui-accent) 9%, var(--ui-page)); }
html.dark .co-lit, html.dark .co-heads > .co-plan.is-col, html.dark .co-heads > .co-plan.is-col:hover { background: var(--co-lit); }
.co-main[data-plan=max] .co-compare:not(.is-two) .co-lit { left: calc(var(--c1) + 24px + var(--cw)); }
.co-heads, .co-row, .co-group-head { position: relative; }
.co-heads { position: sticky; top: 0; z-index: 2; background: var(--ui-page); }
.co-heads > *, .co-heads > .co-plan, .co-heads > .co-plan:hover { background: var(--ui-page); }
.co-heads > .co-plan.is-col, .co-heads > .co-plan.is-col:hover { background: linear-gradient(var(--ui-accent-soft), var(--ui-accent-soft)), var(--ui-page); }
.co-heads-now { align-self: end; padding: 0 24px 12px 0; color: var(--ui-ink-2); font: 500 var(--ui-type-caption) var(--ui-font); }

/* A plan's head is its choice: the whole head is the button. */
.co-plan { position: relative; display: grid; align-content: start; gap: 2px; padding: 16px 16px 16px 40px; border: 0; border-top: 2px solid var(--ui-line-strong); border-radius: 0; background: transparent; color: var(--ui-ink); font: inherit; text-align: left; cursor: pointer; }
.co-plan:hover:not(.is-col) { background: var(--ui-hover); }
.co-plan.is-col { border-top-color: var(--ui-accent); }
.co-plan:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.co-plan.is-own { padding-left: 40px; cursor: default; }
.co-plan.is-own:hover { background: transparent; }
.co-compare.is-two .co-plan { padding-left: 16px; cursor: default; }
.co-compare.is-two .co-radio { display: none; }
/* The choice mark: a rounded square, filled with the accent and a check when chosen (Igor 15 Nov walk: «может тут
   сделать квадратики сглаженные с галочкой? закрашенные?»). The same mark for the plan and the period. */
.co-radio { position: absolute; top: 20px; left: 14px; width: 18px; height: 18px; border: 1.5px solid var(--ui-line-strong); border-radius: 6px; background: var(--ui-page); }
.co-radio::after { content: ''; position: absolute; inset: 0; background: var(--app-action-primary-color, #fff); opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
:is(.co-plan.is-col, .co-period[aria-pressed=true]) .co-radio { border-color: var(--ui-accent); background: var(--ui-accent); }
:is(.co-plan.is-col, .co-period[aria-pressed=true]) .co-radio::after { opacity: 1; }
.co-plan-name { display: flex; align-items: center; gap: 8px; font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.01em; }
.co-plan.is-col .co-plan-name { color: var(--ui-accent-text); }
.co-plan-line { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.co-plan-price { margin-top: 8px; color: var(--ui-ink-2); font: 400 var(--ui-type-body) var(--ui-font); }
.co-plan-price b { color: var(--ui-ink); font: 600 var(--ui-type-lead) var(--ui-font); font-variant-numeric: tabular-nums; }
.co-plan-bill { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-inf { display: inline-flex; color: var(--ui-accent-text); }
.co-plan-name .co-inf svg.lucide, .co-order-plan .co-inf svg.lucide { width: 20px; height: 20px; }

/* Groups along the trader's path, each under the app's own icon, the heading across the whole table. */
.co-group-head { padding-top: 28px; border-bottom: 1px solid var(--ui-line-strong); }
.co-gh { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; font: 600 var(--ui-type-lead) var(--ui-font); }
.co-gh :is(svg.lucide, .co-glyph) { width: 20px; height: 20px; color: var(--ui-ink-2); }
/* A row's hairline runs unbroken across the table (Igor 15 Nov: «не разрывай линию»). */
.co-row { border-bottom: 1px solid var(--ui-line); }
.co-row > * { padding: 12px 16px; }
/* His month runs to the column line; a plan's value starts on its cell's inner line (16 + its mark), the same in both columns and their heads. */
.co-row > .co-first { padding-left: 0; padding-right: 24px; }
/* A group's last row draws no line: the next group's heading (or the table's end) parts them (Igor 15 Nov: «тут линию
   сверху может не надо?»). */
.co-group .co-row:last-child { border-bottom: 0; }
.co-name { font: 500 var(--ui-type-body) var(--ui-font); color: var(--ui-ink); text-wrap: pretty; }
.co-now { display: grid; margin-top: 2px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.co-now small { color: var(--ui-ink-3); font: inherit; }
.co-none { color: var(--ui-ink-3); }
.co-meter { display: block; width: 120px; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--ui-line); overflow: hidden; }
.co-meter i { display: block; height: 100%; border-radius: 2px; background: var(--ui-ink-3); }

/* A limit he hit, in the row's own type: the figure, one thin bar like a Pro counter but full in the loss colour, a grey
   line on when it opens (Igor 15 Nov: «жирное и не аккуратное» about a 32 px red figure and an 8 px two-part bar). */
.co-wall-figure { color: var(--ui-ink-2); font-variant-numeric: tabular-nums; }
.co-wall-figure b { color: var(--ui-ink); font-weight: 600; }
.co-wall-bar { display: block; width: 120px; height: 4px; margin: 6px 0 4px; border-radius: 2px; background: var(--ui-bar-loss); }
.co-wall-note { color: var(--ui-ink-3); }

/* What a plan gives: a mark, the value, its small print. */
.co-cell { display: flex; gap: 8px; align-items: flex-start; }
.co-cell > span:last-child { display: grid; min-width: 0; }
.co-cell b { color: var(--ui-ink); font: 500 var(--ui-type-body) var(--ui-font); }
.co-cell small { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.co-cell small.co-use { margin-top: 6px; color: var(--ui-ink-3); }
.co-cell.is-more b { font-weight: 600; }
.co-x { margin-left: 4px; color: var(--ui-accent-text); font: 500 var(--ui-type-caption) var(--ui-font); font-style: normal; }
.co-value { display: block; }
.co-mark { display: inline-flex; margin-top: 3px; color: var(--ui-ink-3); }
.co-mark.is-more { color: var(--ui-accent-text); }
.co-same { align-items: center; gap: 8px; color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-same svg.lucide { width: 16px; height: 16px; }

/* The order: the page's one frame, flat inside (Igor 15 Nov: «вложенность там излишняя»). The period is a short list
   with the plan heads' own choice mark: each choice carries its month price and what it bills. */
.co-order { padding: 24px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-card); background: var(--ui-page); }
.co-order.is-bare { padding: 0; border: 0; border-radius: 0; background: none; }
.co-order.is-bare .ty-open, .co-order.is-bare > .ty-go:first-child { margin-top: 0; }
.co-main:has(.co-order.is-bare) .co-head { padding-bottom: 24px; }
.co-main:has(.co-order.is-bare) ~ .co-support { display: none; }
.co-order-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.co-alt { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ui-line); font: 500 var(--ui-type-caption) var(--ui-font); }
/* Inline, so on a phone the arrow follows the last word instead of standing off at the box's edge. */
.co-alt a { color: var(--ui-accent-text); text-decoration: none; }
.co-alt a svg.lucide { margin-left: 4px; vertical-align: -3px; }
.co-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-order-plan { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
.co-order-inf { display: none; }
.co-main[data-plan=max] .co-order-inf { display: inline-flex; }
.co-order-line { margin-top: 2px; color: var(--ui-ink-2); font: 400 var(--ui-type-body) var(--ui-font); text-wrap: pretty; }
.co-periods { display: grid; gap: 4px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ui-line); }
.co-period { position: relative; display: grid; gap: 2px; padding: 8px 0 8px 30px; border: 0; background: transparent; color: var(--ui-ink-2); font: 500 var(--ui-type-body) var(--ui-font); text-align: left; cursor: pointer; }
.co-period .co-radio { top: 10px; left: 0; }
.co-period:hover .co-radio { border-color: var(--ui-ink-3); }
.co-period:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; border-radius: 4px; }
.co-period[aria-pressed=true] { color: var(--ui-accent-text); }
.co-period-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.co-period b { color: var(--ui-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-period[aria-pressed=true] b { color: var(--ui-accent-text); }
.co-period small { font: 400 var(--ui-type-caption) var(--ui-font); }
.co-period-sub { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-save { margin-left: 6px; color: var(--ui-gain); font: 600 var(--ui-type-body) var(--ui-font); }
.co-period-sub s { color: var(--ui-ink-3); text-decoration-thickness: 1px; }
.co-rows { display: grid; gap: 6px; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.co-rows dd { white-space: nowrap; }
.co-rows div { display: flex; justify-content: space-between; gap: 12px; }
.co-rows dt { color: var(--ui-ink-2); }
.co-rows dd { text-align: right; font-variant-numeric: tabular-nums; }
.co-rows .is-today dt { color: var(--ui-ink); font-weight: 500; }
.co-rows .is-today dd { font: 600 var(--ui-type-lead) var(--ui-font); }
.co-note { margin-top: 16px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-then { margin-top: 12px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.co-then:empty { display: none; }
.co-note:empty { display: none; }
.co-note b { color: var(--ui-gain); font-weight: 500; }
/* Buttons are the kit's 40 px (44 on a phone, below). */
.tsb-content-controls .co-pay { width: 100%; justify-content: space-between; min-height: 40px; margin-top: 20px; padding: 0 16px; }
.co-periods + .co-note:empty + .co-pay { margin-top: 16px; }
.co-secure { display: flex; gap: 8px; margin-top: 12px; text-wrap: pretty; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-secure svg.lucide { width: 16px; height: 16px; margin-top: 2px; color: var(--ui-ink-3); }
/* Crypto: a second, quieter way to pay under the card button (one-payment choices only). */
.co-crypto { margin-top: 8px; }
.tsb-content-controls .co-crypto-pay { width: 100%; min-height: 40px; gap: 8px; }
.co-crypto-pay small { color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-crypto-note { margin-top: 8px; color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-error { margin-top: 12px; color: var(--ui-loss); font: 500 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.co-fine-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Before you pay: the facts across the page, sharing it evenly (three take four columns each, two take six). */
.co-trust { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ui-line); }
.co-trust > p { display: flex; gap: 12px; text-wrap: pretty; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-trust svg.lucide { width: 20px; height: 20px; color: var(--ui-ink-3); }

.co-support { max-width: var(--co-max); margin: 0 auto; padding: 0 24px 32px; color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); }
.co-support a { color: inherit; }
/* On a plain page (the grid's middle 8) the support line keeps the column's left edge, not the page's (Igor 15 Nov walk,
   checkout.maxcrypto). Padding counts from the body's width: min(100%, --co-max) is this line's own width, and the
   grid's column 3 starts 2 columns and 2 gutters in from its 24 px side. */
@media (min-width: 1024px) {
    .co-main.is-plain ~ .co-support { padding-left: calc(72px + (min(100%, var(--co-max)) - 312px) / 6); padding-right: calc(72px + (min(100%, var(--co-max)) - 312px) / 6); }
}
.co-paybar { display: none; }

/* Tablet: one column, the order right after the answer; the comparison on the 8 columns (his month 2, each plan 3). */
@media (max-width: 1023px) {
    .co-head, .co-compare, .co-order, .co-trust, .co-main.is-plain :is(.co-head, .co-order, .co-trust) { grid-column: 1 / -1; }
    .co-order { grid-row: 2; position: static; margin-bottom: 32px; }
    .co-compare { grid-row: 3; }
    .co-trust { grid-row: 4; grid-auto-flow: row; gap: 12px; }
}
/* Phone: the order right after the answer, as on a tablet (Igor 15 Nov walk: «почему не вверху?»); Pro and Max side
   by side under each row's name and his month; the pay bar comes up only once the order's own button is off screen. */
@media (max-width: 767px) {
    .co-top { padding: 16px 16px 0; }
    .co-main { column-gap: 16px; padding: 24px 16px 32px; }
    .co-head { padding-bottom: 24px; }
    .co-title { font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
    .co-lead { font: 400 var(--ui-type-body) var(--ui-font); }
    .co-order { grid-row: 2; margin: 0 0 32px; padding: 16px; }
    .co-compare { grid-row: 3; }
    .co-trust { grid-row: 4; gap: 16px; }
    .co-heads, .co-row, .co-compare.is-two :is(.co-heads, .co-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
    .co-compare.is-two .co-heads { grid-template-columns: minmax(0, 1fr); }
    .co-heads-now { display: none; }
    .co-row > .co-first { grid-column: 1 / -1; }
    .co-row > .co-first { padding: 12px 0 4px; }
    .co-row > [data-checkout-col] { padding: 8px 12px 12px; }
    .co-compare.is-two .co-row > [data-checkout-col] { grid-column: 1 / -1; }
    /* On a phone the two plans sit side by side under each row's name: the chosen one is lit cell by cell. */
    .co-lit { display: none; }
    .co-row > [data-checkout-col].is-col { background: var(--ui-accent-soft); }
    .co-plan-bill { display: none; }
    .co-plan, .co-plan.is-own { padding: 12px 12px 12px 36px; }
    .co-radio { top: 15px; left: 11px; }
    .co-plan-name { font: 600 var(--ui-type-lead) var(--ui-font); }
    .co-plan-line { display: none; }
    /* Out of the flow while the order's button shows, so it leaves no hole above the support line («зачем выше такая
       дыра?»). It only toggles while the order at the top crosses the screen, far above the bar's own place. */
    .co-paybar.is-away { display: none; }
    .co-paybar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ui-line-strong); background: var(--ui-page); }
    .co-paybar div { flex: 1; min-width: 0; }
    .co-paybar b { display: block; font: 600 var(--ui-type-lead) var(--ui-font); font-variant-numeric: tabular-nums; }
    .co-paybar div span { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
    .tsb-content-controls .co-paybar .app-action-btn { min-height: 44px; padding: 0 20px; }
    .tsb-content-controls :is(.co-pay, .ty-go) { min-height: 44px; }
    .co-support { padding: 24px 16px; }
}
/* Checkout's plain answers (Max already, the template already his, partials/checkout-content.php), first drawn for /thank-you;
   /thank-you has its own look since 28 Nov 2026 (assets/thank-you.css). A calm column on the grid's middle 8. */
.ty-answer { grid-column: 3 / 11; }
.ty-open { display: grid; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ui-line); list-style: none; }
.ty-open li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ui-line); font: 500 var(--ui-type-body) var(--ui-font); }
.ty-open :is(svg.lucide, .co-glyph) { width: 20px; height: 20px; color: var(--ui-accent-text); }
.tsb-content-controls .ty-go { gap: 8px; min-height: 40px; margin-top: 24px; padding: 0 16px; }
.ty-next { margin-top: 12px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.ty-next b { color: var(--ui-ink); font-weight: 500; }
.ty-template { display: flex; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ui-line); color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
.ty-template svg.lucide { width: 20px; height: 20px; color: var(--ui-ink-3); }
/* Notion's own mark where the line is about Notion (a real logo over a generic icon; Igor 15 Nov walk, on notebook-pen:
   «не используй эту уебищную иконку»). Black mark, inverted in dark like Settings and onboarding do. */
.co-logo { flex: none; width: 20px; height: 20px; }
html.dark .co-body .co-logo { filter: invert(1); }
.ty-template a { margin-left: 4px; }
.ty-support { margin-top: 24px; color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); text-wrap: pretty; }
@media (max-width: 1023px) { .ty-answer { grid-column: 1 / -1; } }

/* The canonical risk notice (tsbRenderSitewideRiskFooter, light variant) follows the page's theme and sits on the page's
   column and font (its own 'Inter' is the system font here, drawn heavy); its words stay as they are. */
.co-body .tsb-risk-disclosure { width: auto !important; max-width: var(--co-max); padding: 32px 24px 40px !important; font-family: var(--ui-font) !important; }
@media (max-width: 767px) { .co-body .tsb-risk-disclosure { padding: 24px 16px 32px !important; } }
html.dark .co-body .tsb-sitewide-risk-footer { border-top-color: var(--ui-line) !important; background: var(--ui-page) !important; color: var(--ui-ink-3) !important; }
html.dark .co-body .tsb-sitewide-risk-footer span { color: var(--ui-ink-2) !important; }
html.dark .co-body .tsb-sitewide-risk-footer a { color: var(--ui-accent-text) !important; }
