/* Home brief (2026-11-10): the mark as the logo of the default masthead, signals,
   the home mosaic with different card sizes, plain service pages and the footer. */

/* Masthead: in the default navigation the logo is the mark, the wordmark stays in the other modes. */
.brand-logo { display: none; line-height: 0; }
html[data-nav=product] .brand .wordmark { display: none; }
html[data-nav=product] .brand-logo { display: block; }
html body .site-header .brand-logo svg { width: auto; height: 34px; aspect-ratio: auto; fill: currentColor; }
html body .site-header .brand-logo svg[data-mark-variant=bridge] { height: 22px; }
html body .site-chrome.is-scrolled .brand-logo svg { height: 28px; }
html body .site-chrome.is-scrolled .brand-logo svg[data-mark-variant=bridge] { height: 18px; }
.brand-logo svg { transition: height .3s; }
html[data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .brand-logo .globe { filter: none; }
.brand:hover .brand-logo .mark-e { animation: mark-ring-turn 1.6s cubic-bezier(.2, .7, .2, 1) both; }
/* The menu button is an icon in every mode; its name lives in aria-label. */
.nav-toggle { gap: 0; min-width: 28px; }
.site-header .nav-toggle > .menu-symbol { position: static; width: 20px; height: 14px; overflow: visible; clip: auto; }
@media (max-width: 760px) {
  html body .site-header .brand-logo svg, html body .site-chrome.is-scrolled .brand-logo svg { height: 26px; }
  html body .site-header .brand-logo svg[data-mark-variant=bridge], html body .site-chrome.is-scrolled .brand-logo svg[data-mark-variant=bridge] { height: 17px; }
  /* Phones: the sections stay visible as a second line of the masthead until the page is scrolled. */
  html[data-nav=product] .site-chrome:not(.is-scrolled) .site-header { height: auto; row-gap: 14px; }
  html[data-nav=product] .site-chrome:not(.is-scrolled) .header-sections {
    grid-column: 1 / -1; grid-row: 2; display: flex; gap: 22px; font-size: 14px; line-height: 20px; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none;
  }
  html[data-nav=product] .header-sections::-webkit-scrollbar { display: none; }
  html[data-nav=product] .header-sections-half { display: contents; }
  html[data-nav=product] .header-sections a { color: var(--secondary); padding-block: 4px; }
  html[data-nav=product] .header-sections a[aria-current=page] { color: var(--text); }
  html[data-nav=product][data-cover=photo] .is-home .site-chrome:not(.is-scrolled) .header-sections a { color: #ffffffc7; }
}

/* Cover: nothing above the story. */
.cover-inner { justify-content: flex-end; }

/* Signals: news as a list without pictures. */
.home-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(32px, 4vw, 72px); align-items: start; }
.home-signals { border-top: 1px solid var(--text); padding-top: 18px; }
.signals-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 6px; }
.signals-head h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }
.signals-head .text-link { font-size: 14px; line-height: 20px; white-space: nowrap; }
.signals-list { list-style: none; margin: 0; padding: 0; }
.signal { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 14px; align-items: baseline; padding-block: 15px; border-top: 1px solid var(--line); }
.signals-list li:first-child .signal { border-top: 0; }
:is(.signal, .signal-entry) time { font-size: 13px; line-height: 22px; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.signal-title { font-size: 17px; line-height: 1.32; transition: color .25s; }
.signal:hover { text-decoration: none; }
.signal:hover .signal-title, .signal:focus-visible .signal-title { color: var(--accent-text, var(--accent)); }

/* Mosaic: one card component, different sizes and cover proportions. */
.mosaic { display: grid; gap: 48px 32px; align-items: start; }
.mosaic .story-card { gap: 12px; }
.mosaic .image-link { height: auto; aspect-ratio: 3 / 2; margin-bottom: 4px; }
.mosaic .story-card h2 { font-size: 26px; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.mosaic .story-card h2 a { text-decoration: none; }
.mosaic-lead .image-link { aspect-ratio: 16 / 10; }
.mosaic-lead .story-card h2 { font-size: clamp(34px, 3.3vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.mosaic-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic-three.is-portrait .image-link { aspect-ratio: 4 / 5; }
/* A 3:2 cover on two thirds and a 3:4 cover on one third end on the same line. */
.mosaic-wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mosaic-wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mosaic-wide-left > :last-child .image-link, .mosaic-wide-right > :first-child .image-link { aspect-ratio: 3 / 4; }
.mosaic-wide-left > :first-child h2, .mosaic-wide-right > :last-child h2 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.mosaic-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic-four .image-link { aspect-ratio: 1 / 1; }
.mosaic-four .story-card h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.mosaic-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic-two .story-card h2 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.025em; }
.mosaic-plain { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 32px; border-top: 1px solid var(--text); }
.mosaic-plain .story-card { padding-block: 20px 8px; gap: 14px; }
.mosaic-plain .story-card h2 { font-size: 24px; line-height: 1.14; letter-spacing: -.02em; }
.home-more { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: flex-end; }
@media (max-width: 1100px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .mosaic { gap: 40px 24px; }
  .mosaic-four, .mosaic-plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-plain { gap: 0 24px; }
  .mosaic-plain .story-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mosaic .story-card h2 { font-size: 22px; }
}
@media (max-width: 760px) {
  .mosaic-three, .mosaic-two, .mosaic-wide-left, .mosaic-wide-right, .mosaic-plain { grid-template-columns: minmax(0, 1fr); }
  .mosaic-plain .story-card + .story-card { border-top: 1px solid var(--line); }
  .mosaic .image-link, .mosaic-three.is-portrait .image-link,
  .mosaic-wide-left > :last-child .image-link, .mosaic-wide-right > :first-child .image-link { aspect-ratio: 3 / 2; }
  .mosaic-three.is-portrait > :first-child .image-link { aspect-ratio: 4 / 5; }
  .mosaic-four { gap: 28px 16px; }
  .mosaic-four .image-link { aspect-ratio: 1 / 1; }
  .mosaic .story-card h2, .mosaic-wide-left > :first-child h2, .mosaic-wide-right > :last-child h2 { font-size: 24px; }
  .mosaic-four .story-card h2 { font-size: 17px; line-height: 1.22; }
  .mosaic-four .meta { font-size: 12px; line-height: 17px; }
  .mosaic-lead .story-card h2 { font-size: 30px; }
  .signal { grid-template-columns: 5em minmax(0, 1fr); }
}

/* Signals feed. */
.signals-feed { border-top: 1px solid var(--text); }
.signal-entry { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding-block: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.signal-entry h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; max-width: 860px; }
.signal-entry p { max-width: 720px; font-size: 17px; line-height: 1.45; color: var(--secondary); }
.signal-entry:target h2 { color: var(--accent-text, var(--accent)); }
@media (max-width: 760px) {
  .signal-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 22px; }
  .signal-entry h2 { font-size: 22px; }
  .signal-entry .meta { order: -1; }
}

/* Plain service pages: advertisers, contacts, documents. */
.plain-rows { border-top: 1px solid var(--text); max-width: 920px; }
.plain-rows a { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 24px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--line); font-size: 22px; line-height: 1.25; }
.plain-rows a span:first-child { font-size: 14px; line-height: 20px; color: var(--secondary); }
.plain-rows a:hover { text-decoration: none; color: var(--accent-text, var(--accent)); }

/* Footer. */
.footer-title span { display: block; max-width: 440px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: 48px; font-size: 14px; line-height: 20px; }
.footer-legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-products a { color: var(--secondary); }
.age-mark { display: inline-grid; place-items: center; min-width: 36px; height: 22px; padding-inline: 7px; border: 1px solid currentColor; font-size: 12px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
html[data-radius=soft] .age-mark { border-radius: 999px; }
.site-footer .footer-legal + .footer-bottom { margin-top: 20px; }
@media (max-width: 760px) { .footer-legal { margin-top: 32px; } }

/* A signal on its own page is set as an article with the «Классика» first screen (launch classes, `.signal-page` in
   scripts/build.mjs, 2026-11-16 layout «news»); only the byline time and the other signals below are its own. */
.signal-page .launch-byline time { color: var(--secondary); font-variant-numeric: tabular-nums; }
.signal-more { margin-top: 0; margin-bottom: clamp(64px, 9vw, 140px); border-top: 1px solid var(--text); padding-top: 18px; }
.signal-entry h2 a { transition: color .25s; }
.signal-entry h2 a:hover, .signal-entry h2 a:focus-visible { color: var(--accent-text, var(--accent)); text-decoration: none; }

/* Footer (2026-11-13, Max's layout). The mark «Мост» runs across the page as one hairline: the frame of Т on the left
   holds the wordmark and the line of the journal, the arch of Э on the right rises above it. Proportions are taken from
   the layout (1872 × 348 for the lines, the frame starting 45.5 below the top of the arch); the hairline keeps 1 px at any
   size. Main links on the left, quiet ones on the right, 16+ last. */
.te-footer { --fx: clamp(20px, 3.5vw, 70px); max-width: none; margin: 0; padding: clamp(40px, 6vw, 96px) var(--fx) calc(96px + env(safe-area-inset-bottom)); border: 0; }
.te-footer .foot-stage { position: relative; aspect-ratio: 1872 / 348; color: var(--text); }
.te-footer .foot-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.te-footer .foot-lines path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.te-footer .foot-arch { opacity: .85; }
.te-footer .foot-wordmark {
  position: absolute; left: 2.78%; top: 30.2%; color: var(--text);
  font-family: 'ONY Lavr', Arial, sans-serif; font-weight: 400; letter-spacing: 0; line-height: .8; font-size: clamp(22px, 1.8vw, 40px);
}
.te-footer .foot-wordmark:hover { text-decoration: none; color: var(--accent-text, var(--accent)); }
.te-footer .foot-line {
  position: absolute; left: 19.55%; top: 30.2%; max-width: 22ch; margin: 0; color: var(--text);
  font-family: 'ONY One', Arial, sans-serif; font-weight: 400; font-size: clamp(17px, 1.3vw, 28px); line-height: 1.12; letter-spacing: -.005em;
  translate: 0 -.12em;
}
.te-footer .foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 48px; margin-top: clamp(40px, 5.4vw, 108px); font-family: 'ONY One', Arial, sans-serif; font-size: 14px; line-height: 20px; }
.te-footer .foot-links nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(20px, 2.4vw, 70px); }
.te-footer .foot-main a { color: var(--text); }
.te-footer .foot-quiet a, .te-footer .foot-quiet .age-mark { color: color-mix(in srgb, var(--secondary) 70%, transparent); }
.te-footer .foot-links a { text-decoration: none; transition: color .2s; }
.te-footer .foot-links a:hover { color: var(--accent-text, var(--accent)); }
.te-footer .foot-links .link-arrow { display: none; }
.te-footer .age-mark { height: 20px; min-width: 32px; font-size: 11px; }
.te-footer .footer-bottom { margin-top: 20px; }
/* The lines draw themselves the first time the footer comes into view. */
.te-footer .foot-lines path { stroke-dasharray: none; }
.te-footer:is([data-footer=waiting], [data-footer=drawn]) .foot-lines path:not(.is-drawn) { stroke-dasharray: var(--len, 4000) var(--len, 4000); stroke-dashoffset: 0; }
.te-footer[data-footer=waiting] .foot-lines path { stroke-dashoffset: var(--len, 4000); }
.te-footer[data-footer=drawn] .foot-frame { animation: foot-draw 1.6s cubic-bezier(.65, 0, .35, 1) both; }
.te-footer[data-footer=drawn] .foot-arch { animation: foot-draw 1.8s cubic-bezier(.65, 0, .35, 1) .45s both; }
.te-footer[data-footer=waiting] :is(.foot-wordmark, .foot-line) { opacity: 0; }
.te-footer[data-footer=drawn] :is(.foot-wordmark, .foot-line) { animation: foot-copy .9s cubic-bezier(.16, 1, .3, 1) .5s both; }
.te-footer[data-footer=drawn] .foot-line { animation-delay: .62s; }
@keyframes foot-draw { from { stroke-dashoffset: var(--len, 4000); } to { stroke-dashoffset: 0; } }
@keyframes foot-copy { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .te-footer .foot-lines path, .te-footer :is(.foot-wordmark, .foot-line) { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }
/* Narrow screens: the lines keep their place above, the words stand under them. */
@media (max-width: 760px) {
  .te-footer .foot-stage { aspect-ratio: auto; display: grid; gap: 20px; }
  .te-footer .foot-lines { position: relative; inset: auto; height: auto; aspect-ratio: 1872 / 348; margin-bottom: 8px; }
  .te-footer :is(.foot-wordmark, .foot-line) { position: static; translate: none; }
  .te-footer .foot-wordmark { font-size: 28px; }
  .te-footer .foot-line { font-size: 19px; }
  .te-footer .foot-links { flex-direction: column; margin-top: 36px; }
  .te-footer .foot-links nav { gap: 10px 22px; }
}
@media print { .te-footer { display: none; } }

/* Narrow cards set their titles smaller (2026-11-13, Max: «на узких экранах чуть помельче в узких блоках»):
   in a catalogue column under 380 px the title follows the width of its card, from 32 px down to 19 px. */
:is(.catalog-grid, .story-grid) > .story-card, .related .story-card { container-type: inline-size; }
@container (max-width: 380px) {
  html body :is(.catalog-grid, .story-grid, .related) .story-card h2 { font-size: clamp(19px, 8.6cqi, 32px); line-height: 1.1; letter-spacing: -.02em; }
}

/* «Тема и шрифт» is not a floating button (2026-11-13, Max): it stands in the footer after the main links and in the menu. */
.te-footer .foot-setup, .nav-setup { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--secondary); font: inherit; background: none; border: 0; cursor: pointer; transition: color .2s; }
.te-footer .foot-setup svg, .nav-setup svg { width: 15px; height: 15px; flex: 0 0 auto; }
.te-footer .foot-setup:hover, .te-footer .foot-setup[aria-expanded=true], .nav-setup:hover, .nav-setup[aria-expanded=true] { color: var(--accent-text, var(--accent)); }
.te-footer .footer-bottom { display: none !important; }

/* The magazine in the footer (2026-11-13, Max): a small open spread under the arch of Э that leads to /vypusk/. */
.te-footer .foot-issue { position: absolute; left: 75%; bottom: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--secondary); font-family: 'ONY One', Arial, sans-serif; font-size: 14px; line-height: 20px; text-decoration: none; }
@media (max-width: 760px) { .te-footer .foot-issue { position: static; translate: none; flex-direction: row; justify-self: start; gap: 12px; } }
.te-footer .foot-issue img { display: block; width: clamp(72px, 7vw, 120px); height: auto; aspect-ratio: 180 / 128; object-fit: cover; box-shadow: 0 1px 2px rgba(18, 20, 19, .18), 0 6px 16px -8px rgba(18, 20, 19, .35); transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s; }
.te-footer .foot-issue:hover { color: var(--accent-text, var(--accent)); }
.te-footer .foot-issue:hover img { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 2px 4px rgba(18, 20, 19, .2), 0 12px 24px -10px rgba(18, 20, 19, .45); }
@media (prefers-reduced-motion: reduce) { .te-footer .foot-issue img { transition: none; } .te-footer .foot-issue:hover img { transform: none; } }

/* Signals on the right (2026-11-13, Max): a small picture beside every item, and the block stays at the top of the window
   while the lead story and the first row of cards pass on the left; after them the rows take the full width again. */
html body .home-top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.home-top-main { display: grid; gap: clamp(40px, 4.4vw, 72px); min-width: 0; }
.home-top .home-signals { position: sticky; top: 24px; }
.signal { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 14px; }
.signal-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); transition: opacity .25s; }
.signal:hover .signal-thumb { opacity: .85; }
.signal-text { display: grid; gap: 4px; min-width: 0; }
.signal-text time { line-height: 16px; }
.signal-title { font-size: 16px; line-height: 1.3; }
@media (max-width: 1100px) {
  html body .home-top { grid-template-columns: minmax(0, 1fr); }
  .home-top .home-signals { position: static; }
}
@media (max-width: 760px) {
  html body .signal { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
}

/* The shelf at the end of the home page (2026-11-13, Max): every story as a printed issue on one long shelf that scrolls
   sideways (wheel, trackpad, keys or a drag), running out to the right edge of the window. */
.home-shelf { margin-top: 0; }
.home-shelf .shelf { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; border-top: 1px solid var(--text); }
.home-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.home-shelf-head h2 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.home-shelf-head .text-link { font-size: 14px; line-height: 20px; }
.home-shelf .shelf-row { margin-right: calc(-1 * var(--margin)); padding: clamp(28px, 3vw, 48px) var(--margin) 2px 4px; gap: clamp(14px, 1.6vw, 26px); scroll-snap-type: x proximity; cursor: grab; }
.home-shelf .shelf-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.home-shelf .shelf-row.is-dragging .mag { pointer-events: none; }
.home-shelf .shelf-row:focus-visible { outline: 1.5px solid var(--accent-text, var(--accent)); outline-offset: 4px; }
.home-shelf .mag { width: clamp(150px, 15vw, 232px); scroll-snap-align: start; }
.home-shelf .mag:nth-child(3n+2) { width: clamp(136px, 13.4vw, 208px); }
.home-shelf .mag:nth-child(4n+3) { width: clamp(162px, 16.4vw, 252px); }
.home-shelf .mag-title { font-size: clamp(12px, 1.12vw, 17px); }
@media (max-width: 760px) {
  .home-shelf .mag { width: 150px; } .home-shelf .mag:nth-child(3n+2) { width: 136px; } .home-shelf .mag:nth-child(4n+3) { width: 162px; }
}

/* Signals as a photo feed (2026-11-13, Max: «картинки крупнее как инста лента», then «да, и на десктопе»): every signal is
   a picture across its column in 4:5 with the time and the title under it. On wide screens the column stays at the top
   while the page passes and scrolls inside itself, like a feed on a phone; tablets set two in a row, phones one, edge to
   edge. In the other layouts of the tiles the signals stand in a row of cards (public/variants.css). */
html body .home-signals .signal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; border: 0; }
html body .home-signals .signal-thumb { aspect-ratio: 4 / 5; }
html body .home-signals .signal-text { gap: 6px; }
html body .home-signals .signal-title { font-size: 18px; line-height: 1.28; }
html body .home-signals .signals-list { display: grid; gap: 36px; padding-top: 14px; }
/* 2026-11-14 (Max: «слишком большие фотографии справа», «вся страница скроллится, а правая часть с другой скоростью»):
   on wide screens the column holds the right side of the window from top to bottom and does not scroll inside itself;
   public/signals.js moves the list by --signals-shift with the page, so the last signal arrives as the left column ends.
   Each signal is a row: a small 4:5 picture beside the time and the title, unlike the cards of the stories. */
@media (min-width: 1024px) {
  /* 2026-11-16: with large pictures the signals are the taller column, so the roles change: the signals run with the page
     like a feed, and the stories on the left are held in the window, drifting up by what does not fit, so both columns
     end together (--main-shift, public/signals.js). Four signals stand here; the rest are behind «Вся лента». When the
     signals are the shorter column (data-hold=signals, set by signals.js) the earlier scheme applies: they are held. */
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top:not([data-hold=signals]) .home-signals { position: static; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top:not([data-hold=signals]) .home-top-main {
    position: sticky; top: 24px; align-self: start; max-height: calc(100svh - 24px); overflow-x: visible; overflow-y: clip; overflow-clip-margin: 24px;
  }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top:not([data-hold=signals]) .home-top-main > * { transform: translate3d(0, var(--main-shift, 0px), 0); }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signals-list > li:nth-child(n+5) { display: none; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top[data-hold=signals] .home-signals {
    position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; height: calc(100svh - 24px); overflow: hidden;
    mask-image: linear-gradient(180deg, #000 calc(100% - 72px), transparent);
  }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signals-list { gap: 0; padding: 4px 0 0; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top[data-hold=signals] .signals-list {
    flex: none; padding-bottom: 88px; transform: translate3d(0, var(--signals-shift, 0px), 0);
    /* 2026-11-18 (Max: «налезают сигналы»): the list rides up under the heading; it fades out at the heading's lower edge.
       The mask moves with the list, so its start is pushed down by as much as the list has gone up. */
    --signals-cut: calc(var(--signals-shift, 0px) * -1);
    -webkit-mask-image: linear-gradient(180deg, transparent var(--signals-cut), #000 calc(var(--signals-cut) + 16px));
    mask-image: linear-gradient(180deg, transparent var(--signals-cut), #000 calc(var(--signals-cut) + 16px));
  }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signals-list > li + li { border-top: 1px solid var(--line); }
  /* 2026-11-16 (Max, by a reference): a signal reads from the top: the date and the time on one line, the headline under
     them, then the picture, upright 3:4 and set in from the left by a quarter of the column, so the type keeps its own
     edge; a hairline parts the signals. */
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signal { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 22px 28px; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signals-list > li:first-child .signal { padding-top: 14px; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signal-text { order: 1; gap: 12px; padding-top: 0; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signal-text time { display: flex; gap: 1.9em; font-size: 14px; line-height: 20px; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signal-title { max-width: 24em; font-size: 18px; line-height: 1.3; }
  html:is([data-grid=mosaic], [data-grid=combo]) body .home-top .signal-thumb { order: 2; justify-self: end; width: 76%; aspect-ratio: 3 / 4; }
}
@media (max-width: 1023px) {
  html body .home-signals .signals-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  html body .home-signals .signal-title { font-size: 19px; }
}
@media (max-width: 760px) {
  html body .home-signals .signals-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  html body .home-signals .signal-thumb { width: calc(100% + 2 * var(--margin)); max-width: none; margin-inline: calc(var(--margin) * -1); }
}

/* The rows of the home page sit in .home-grid since 2026-11-13 (layouts of public/variants.css); in the mosaic it keeps
   the pause between rows that .home-flow used to give them. */
.home-grid { display: flex; flex-direction: column; gap: 64px; }
@media (min-width: 1024px) { html[data-layout=read] .is-home .home-grid { gap: 80px; } }
@media (max-width: 760px) { .home-grid { gap: 48px; } }
/* the date and the time of a signal on the home page are two words on one line (public/signals.js) */
.home-signals .signal-text time { display: flex; gap: 1.4em; }

/* «Тема и шрифт» in the footer (2026-11-17): a link-like button among the main links. */
.site-footer .foot-setup { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.site-footer .foot-setup:hover { text-decoration: underline; text-underline-offset: .18em; }

/* The footer keeps the width of the page grid and the masthead at every window size (2026-11-17, Max: «подвал по ширине
   всегда должен быть таким же, как сетка текста и верхний хедер»): the same --page and --margin as .wrap. */
html body .te-footer { padding-left: max(var(--margin, 5px), calc((100% - var(--page, 1440px)) / 2 + var(--margin, 5px))); padding-right: max(var(--margin, 5px), calc((100% - var(--page, 1440px)) / 2 + var(--margin, 5px))); }
