/* Demo upsell «Что даёт полная версия», option A (Design design/demo-upsell/UPSELL.md §7; NAKA 7 Oct 2026).
   Scoped on .up. Server-rendered at the end of <main> (demo_render / site_home compose). No links or buttons inside.
   Current rules: radius 0, ink only (number + Library rule are ink; --up-acc is the one switch if red comes back),
   no icons / emoji / pills (the plan mark is text), no shadow, gradient, uppercase eyebrow; no blue, teal or gold.
   Fonts: the yt-* faces of design/tokens.css (same unicode-ranges and weights), served from /css/site/fonts/. */
@font-face { font-family: 'yt-display'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/css/site/fonts/s1/NotoSerifDisplay-normal-latin-ext.s1.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'yt-display'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/css/site/fonts/s1/NotoSerifDisplay-normal-latin.s1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'yt-text'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-italic-latin.s1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'yt-text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-normal-latin-ext.s1.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'yt-text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-normal-latin.s1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'yt-ui'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/css/site/fonts/s1/InterTight-normal-latin-ext.s1.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'yt-ui'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/css/site/fonts/s1/InterTight-normal-latin.s1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'yt-display'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/css/site/fonts/s1/NotoSerifDisplay-normal-cyrillic-ext.s1.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'yt-display'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/css/site/fonts/s1/NotoSerifDisplay-normal-cyrillic.s1.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'yt-text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-normal-cyrillic-ext.s1.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'yt-text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-normal-cyrillic.s1.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'yt-text'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('/css/site/fonts/s1/SourceSerif4-italic-cyrillic.s1.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'yt-ui'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/css/site/fonts/s1/InterTight-normal-cyrillic-ext.s1.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'yt-ui'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/css/site/fonts/s1/InterTight-normal-cyrillic.s1.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'yt-naskh'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/css/site/fonts/s1/NotoNaskhArabic-normal-arabic.s1.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
.up {
  --up-paper: #FBFAF7; --up-ink: #111111; --up-ink-2: #3D3B38; --up-ink-3: #5E5B56; --up-hair: #CFCBC3; --up-frame: #BDB7AC;
  --up-acc: var(--up-ink); --up-acc-t: var(--up-ink);
  --up-f-d: 'yt-display', Georgia, serif; --up-f-t: 'yt-text', Georgia, serif; --up-f-u: 'yt-ui', 'Helvetica Neue', Arial, sans-serif;
  color: var(--up-ink); font: 400 17px/1.5 var(--up-f-t); overflow-wrap: break-word; min-width: 0;
}
[data-theme="night"] .up, [data-theme="dark"] .up {
  --up-paper: #17140F; --up-ink: #EAE4D8; --up-ink-2: #CDC5B6; --up-ink-3: #A69D8D; --up-hair: #4A443B; --up-frame: #5A544B;
}
@media (prefers-color-scheme: dark) { html:not([data-theme]) body.site .up {
  --up-paper: #17140F; --up-ink: #EAE4D8; --up-ink-2: #CDC5B6; --up-ink-3: #A69D8D; --up-hair: #4A443B; --up-frame: #5A544B; } }
[data-theme="mono"] .up {
  --up-paper: #FFFFFF; --up-ink: #111111; --up-ink-2: #333333; --up-ink-3: #555555; --up-hair: #C4C4C4; --up-frame: #A6A6A6;
  --up-f-d: 'yt-ui', Arial, sans-serif; --up-f-t: 'yt-ui', Arial, sans-serif;
}
:lang(ar) .up, .up:lang(ar) { --up-f-d: 'yt-naskh', 'Noto Naskh Arabic', serif; --up-f-t: 'yt-naskh', 'Noto Naskh Arabic', serif; --up-f-u: 'yt-naskh', 'Noto Naskh Arabic', sans-serif; }
.up *, .up *::before, .up *::after { box-sizing: border-box; border-radius: 0; }
.up p, .up h2, .up h3, .up ol, .up ul, .up figure { margin: 0; }
.up ol, .up ul { padding: 0; list-style: none; }
.up [dir="auto"] { unicode-bidi: plaintext; }
.up p, .up h2, .up h3, .up li, .up b, .up i, .up span, .up time { min-width: 0; overflow-wrap: break-word; white-space: normal; }

/* band: 3 px + 1 px ink double rule */
.up { background: var(--up-paper); border-top: 3px solid var(--up-ink); margin-top: 56px; padding: 0 0 36px; }
.up > .wrap { border-top: 1px solid var(--up-ink); margin-top: 3px; padding-top: 28px; }
.up-head { max-width: 46em; margin-bottom: 22px; }
.up-h { font: 600 clamp(27px, 3.4vw, 38px)/1.12 var(--up-f-d); letter-spacing: -.005em; color: var(--up-ink); }
.up-dek { margin-top: 10px; font: italic 400 18px/1.45 var(--up-f-t); color: var(--up-ink-2); }

/* unit */
.up-unit { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.up-name { display: flex; gap: 10px; align-items: baseline; font: 600 22px/1.22 var(--up-f-d); color: var(--up-ink); }
.up-num { flex: none; color: var(--up-acc-t); font-variant-numeric: lining-nums; }
.up-what { font: 400 16.5px/1.45 var(--up-f-t); color: var(--up-ink-2); }
.up-plan { display: flex; gap: 9px; align-items: baseline; font: italic 400 15px/1.35 var(--up-f-t); color: var(--up-ink-3); }
.up-plan--lib { color: var(--up-ink); }
.up-plan::before { content: ""; flex: none; width: 16px; height: 1px; background: var(--up-ink-3); position: relative; top: -4px; }
.up-plan--lib::before { height: 2px; background: var(--up-acc); }

/* A: 3x2 >= 1000, 2x3 700-999.98, stacked below */
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--up-ink); border-bottom: 1px solid var(--up-ink); }
.up-grid .up-unit { padding: 20px 0 22px; border-bottom: 1px solid var(--up-hair); }
.up-grid .up-unit:last-child { border-bottom: 0; }
.up-grid .up-plan { margin-top: auto; padding-top: 6px; }
@media (min-width: 700px) and (max-width: 999.98px) {
  .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-grid .up-unit { padding: 22px 24px 24px; }
  .up-grid .up-unit:nth-child(odd) { padding-inline-start: 0; border-inline-end: 1px solid var(--up-hair); }
  .up-grid .up-unit:nth-child(even) { padding-inline-end: 0; }
  .up-grid .up-unit:nth-last-child(-n+2):nth-child(odd), .up-grid .up-unit:last-child { border-bottom: 0; }
}
@media (min-width: 1000px) {
  .up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .up-grid .up-unit { padding: 22px 26px 24px; }
  .up-grid .up-name { font-size: 20.5px; }
  .up-grid .up-unit:nth-child(3n+1) { padding-inline-start: 0; }
  .up-grid .up-unit:nth-child(3n) { padding-inline-end: 0; }
  .up-grid .up-unit:not(:nth-child(3n)) { border-inline-end: 1px solid var(--up-hair); }
  .up-grid .up-unit:nth-child(3n+1):nth-last-child(-n+3), .up-grid .up-unit:nth-child(3n+1):nth-last-child(-n+3) ~ .up-unit { border-bottom: 0; }
}

/* mini previews: channel data only */
.up-ex { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--up-hair); font-size: 15px; }
.up-ex time { font: 500 12.5px/1.25 var(--up-f-u); color: var(--up-ink-3); }
.ex-rng time { font: 600 19px/1.2 var(--up-f-d); color: var(--up-ink); } .ex-rng span { color: var(--up-ink-3); padding: 0 4px; }
/* Card 2 «Поиск по всем постам»: the demo sits in <figure class="sx"> (paper-2 tint, 1px card
   rule, radius 0, no shadow); a non-focusable field (the one allowed icon: the magnifier) + the attached ink button
   (aria-hidden, no pointer events); the results header (n = results shown); the results as before. */
.up { --up-paper-2: #F3F1EC; }
[data-theme="night"] .up, [data-theme="dark"] .up { --up-paper-2: #201D19; }   /* ≈4 % lighter than #17140F */
@media (prefers-color-scheme: dark) { html:not([data-theme]) body.site .up { --up-paper-2: #201D19; } }
[data-theme="mono"] .up { --up-paper-2: #F3F3F3; }
.up .sx { margin-top: 6px; padding: 12px 14px; border: 1px solid var(--up-hair); background: var(--up-paper-2); border-radius: 0; box-shadow: none; font-size: 15px; min-width: 0; }
.up .sx-cap { margin: 0 0 8px; font: 400 13px/1.3 var(--up-f-u); color: var(--up-ink-3); text-transform: none; letter-spacing: 0; }
.up .sx-bar { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--up-ink); background: var(--up-paper); border-radius: 0; min-width: 0; box-sizing: border-box; }
.up .sx-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: none; font: 400 16px/1.2 var(--up-f-u); color: var(--up-ink); }
.up .sx-ico { flex: none; width: 16px; height: 16px; color: var(--up-ink); }
.up .sx-qw { display: flex; align-items: center; min-width: 0; unicode-bidi: isolate; }   /* <bdi dir="auto">: query + caret in the query's own direction (Design t1008c) */
.up .sx-q { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--up-ink); }
.up .sx-caret { flex: none; width: 1px; height: 1.1em; margin-inline-start: 1px; background: var(--up-ink); animation: up-sx-caret 1s steps(1, end) infinite; }
@keyframes up-sx-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .up .sx-caret { animation: none; } }
.up .sx-btn { flex: none; display: inline-flex; align-items: center; height: auto; padding: 0 16px; border: 0; border-inline-start: 1px solid var(--up-ink); border-radius: 0; box-shadow: none; background: var(--up-ink); color: var(--up-paper); font: 600 15px/1 var(--up-f-u); pointer-events: none; text-decoration: none; }
.up .sx-head { margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--up-hair); font: 400 13px/1.35 var(--up-f-u); color: var(--up-ink-3); }
.up .sx-hq { color: var(--up-ink); }
@media (max-width: 400px) { .up .sx { padding: 10px 12px; } .up .sx-btn { padding: 0 12px; } }
.ex-hits li { padding: 8px 0; border-bottom: 1px solid var(--up-hair); display: grid; gap: 2px; }
.ex-hits li:last-child { border-bottom: 0; }
.ex-hits p { font: 400 15px/1.4 var(--up-f-t); color: var(--up-ink-2); }
.ex-hits mark { background: none; color: var(--up-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--up-acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ex-shelves { border-top: 1px solid var(--up-ink); }
.ex-shelves li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 7px 0; border-bottom: 1px solid var(--up-hair); }
.ex-shelves li:last-child { border-bottom: 0; }
.ex-shelves b { font: 600 16.5px/1.3 var(--up-f-d); }
.ex-shelves span { font: 600 14px/1.6 var(--up-f-u); color: var(--up-ink-3); font-variant-numeric: tabular-nums; }
.ex-shelves i { grid-column: 1 / -1; font: italic 400 14px/1.4 var(--up-f-t); color: var(--up-ink-2); }
.ex-serp { display: grid; gap: 3px; }
.ex-url { font: 400 13px/1.35 var(--up-f-u); color: var(--up-ink-2); direction: ltr; text-align: start; unicode-bidi: isolate; }
.ex-t { font: 600 17px/1.3 var(--up-f-t); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ex-tr li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--up-hair); align-items: baseline; }
.ex-tr li:first-child { border-top: 1px solid var(--up-ink); } .ex-tr li:last-child { border-bottom: 0; }
.ex-lang { font: 600 12.5px/1.3 var(--up-f-u); color: var(--up-ink-3); }
.ex-tr p { font: 400 15.5px/1.38 var(--up-f-t); }
.ex-top { border-top: 1px solid var(--up-ink); }
.ex-top li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--up-hair); align-items: center; }
.ex-top li:last-child { border-bottom: 0; }
.ex-top p { grid-column: 1 / -1; font: 400 14.5px/1.35 var(--up-f-t); }
.ex-bar { display: block; height: 4px; border-bottom: 1px solid var(--up-hair); }
.ex-bar i { display: block; height: 4px; background: var(--up-ink); }
.ex-top b { font: 600 13px/1 var(--up-f-u); font-variant-numeric: tabular-nums; color: var(--up-ink-2); }

/* BORDERS p1 (BORDERS.md §4, t1008g): block edges take --up-frame; inner rows (.ex-hits li, .ex-shelves li,
   .sx-head, .ex-tr li, .ex-top li) stay --up-hair */
@media (min-width: 700px) and (max-width: 999.98px) { .up-grid .up-unit:nth-child(odd) { border-inline-end-color: var(--up-frame); } }
@media (min-width: 1000px) { .up-grid .up-unit:not(:nth-child(3n)) { border-inline-end-color: var(--up-frame); } }
.up-grid .up-unit { border-bottom-color: var(--up-frame); }
.up .sx { border-color: var(--up-frame); }
