:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #171513;
  --muted: #716860;
  --signal: #a65349;
  --signal-strong: #803a33;
  --line: rgba(23, 21, 19, .16);
  --soft: #e9e3d7;
  --panel: #eee9df;
  --shadow: 0 18px 55px rgba(48, 34, 27, .09);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --shell: min(1240px, calc(100vw - 40px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171513;
  --ink: #f4f1e9;
  --muted: #aaa097;
  --signal: #d5877e;
  --signal-strong: #ef9e94;
  --line: rgba(244, 241, 233, .18);
  --soft: #24211e;
  --panel: #1d1a18;
  --shadow: 0 18px 55px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.58; }
body, button, input { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ui-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon * { vector-effect: non-scaling-stroke; }
.social-icon { fill: none; stroke: currentColor; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 68px; }
.brand { font-family: var(--mono); font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: -.08em; }
.brand span { color: var(--signal); }
.tagline { margin: 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; gap: 8px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: transparent; color: var(--ink); cursor: pointer; line-height: 0; }
.icon-button .ui-icon { transform: none; }
.icon-button:hover { border-color: var(--signal); color: var(--signal); }
.icon-button[aria-expanded="true"] { border-color: var(--signal); background: var(--soft); color: var(--signal-strong); }
.nav-row { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.nav-cluster { display: flex; flex: 1; min-width: 0; align-items: center; overflow: visible; }
.primary-nav { display: flex; flex: 1; min-width: 0; gap: 2px; overflow: hidden; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a { position: relative; flex: 0 0 auto; padding: 13px 16px 12px; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { position: absolute; right: 14px; bottom: -1px; left: 14px; height: 2px; background: var(--signal); content: ""; }
.more-nav { position: relative; flex: 0 0 auto; }
.more-nav summary { position: relative; padding: 13px 16px 12px; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 500; list-style: none; }
.more-nav summary::-webkit-details-marker { display: none; }
.more-nav summary::after { display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg); }
.more-nav[open] summary, .more-nav[data-active="true"] summary, .more-nav summary[aria-current="page"] { color: var(--ink); }
.more-nav-list { position: absolute; z-index: 50; top: calc(100% + 7px); right: 0; display: grid; width: max-content; min-width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.more-nav-list a { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.more-nav-list a:last-child { border-bottom: 0; }
.more-nav-list a:hover, .more-nav-list a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.article-scroll-nav { --reading-progress: 0; position: relative; display: none; }
.article-scroll-nav::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--signal); content: ""; transform: scaleX(var(--reading-progress, 0)); transform-origin: left center; transition: transform .16s linear; }
.freshness { display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.freshness i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 15%, transparent); }
.search-panel { padding-block: 14px 18px; border-top: 1px solid var(--line); }
.search-panel-head { margin-bottom: 8px; }
.search-panel label { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 10px; }
.search-panel input, .search-submit { height: 46px; }
.search-panel input { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 0 14px; background: var(--soft); color: var(--ink); }
.search-panel input:focus-visible { outline: 0; border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.search-submit { border: 0; border-radius: 9px; padding: 0 18px; background: var(--ink); color: var(--paper); cursor: pointer; font-family: var(--mono); font-size: 12px; }

.home { padding: clamp(38px, 7vw, 90px) 0 80px; }
.home-intro { margin-bottom: 34px; }
.home-kicker-space { height: 31px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--signal); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 2px; background: currentColor; content: ""; }
.home-intro h1 { max-width: 880px; margin: 0; font-family: var(--mono); font-size: clamp(34px, 6vw, 74px); font-weight: 500; letter-spacing: -.07em; line-height: .98; }
.nowrap { white-space: nowrap; }
.home-intro .dek { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.ad-slot { display: grid; min-height: 92px; place-items: center; contain: layout paint; border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--signal) 5%, transparent); color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: center; }
.ad-slot small { display: block; margin-top: 3px; opacity: .75; }
.home > .ad-slot { margin-bottom: 20px; }
.top-ad { min-height: 96px; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.feed-toolbar > div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.feed-toolbar strong { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.feed-toolbar span { color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.view-switcher { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.view-switcher button { display: grid; width: 39px; height: 36px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.view-switcher button:hover { color: var(--signal); }
.view-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 2px 8px rgba(23, 21, 19, .14); }
.view-switcher .ui-icon { width: 18px; height: 18px; }

.story-image { position: relative; overflow: hidden; background: var(--soft); }
.story-image img { height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .story-image img { transform: scale(1.018); }
.ai-badge { position: absolute; right: 10px; bottom: 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; padding: 5px 8px; background: rgba(15,14,13,.78); color: #fff8ef; font-family: var(--mono); font-size: 10px; backdrop-filter: blur(8px); }
.ai-badge::after { position: absolute; right: 0; bottom: calc(100% + 7px); width: 210px; padding: 8px 10px; border-radius: 7px; background: var(--ink); color: var(--paper); content: "Изображение создано с помощью ИИ"; opacity: 0; pointer-events: none; transform: translateY(3px); transition: .18s ease; }
.ai-badge:hover::after, .ai-badge:focus-visible::after { opacity: 1; transform: none; }
.story-category { color: var(--signal); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.story-title { display: -webkit-box; overflow: hidden; margin: 8px 0 10px; font-family: var(--mono); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.story-excerpt { margin: 0; color: var(--muted); }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; }

.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .8fr); gap: 28px; }
.lead-story { display: block; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.lead-story .story-image { aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: var(--shadow); }
.lead-story .story-copy { padding-top: 22px; }
.lead-story .story-title { max-width: 930px; font-size: clamp(29px, 4.2vw, 56px); }
.lead-story .story-excerpt { max-width: 780px; font-size: 17px; }
.side-stack { display: grid; align-content: start; gap: 24px; }
.side-story { display: grid; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.side-story .story-image { aspect-ratio: 4 / 3; border-radius: 12px; }
.side-story .story-title { font-size: clamp(18px, 2vw, 23px); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; margin-top: 40px; }
.feed-ad { min-height: 132px; margin-block: 40px; }
.feed-ad + .feed-grid { margin-top: 0; }
.card { display: grid; align-content: start; }
.card .story-image { aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: 11px; }
.card .story-title { font-size: clamp(17px, 1.7vw, 21px); }

.compact-list { border-top: 0; }
.compact-story { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.compact-story .story-image { aspect-ratio: 16 / 10; border-radius: 9px; }
.compact-story .story-title { max-width: 780px; margin-block: 5px; font-size: clamp(17px, 2vw, 24px); }
.compact-story .story-excerpt { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-story .story-meta { justify-content: flex-end; margin: 0; text-align: right; }

.no-results { padding: 60px 0; border-block: 1px solid var(--line); text-align: center; }
.no-results h2 { font-family: var(--mono); }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.company-hub { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 30px); background: var(--panel); }
.company-hub-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.company-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 10px; background: var(--signal); color: #fff8ef; font-family: var(--mono); font-size: 20px; }
.company-hub h2 { margin: 0; font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.company-hub p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.company-stories { display: grid; border-top: 1px solid var(--line); }
.company-stories a { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.company-stories a:last-child { border-bottom: 0; }
.company-stories a span { color: var(--signal); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.company-stories a strong { display: -webkit-box; overflow: hidden; font-family: var(--mono); font-size: 14px; font-weight: 500; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.company-stories a:hover strong { color: var(--signal-strong); }

.article-shell { padding: clamp(34px, 6vw, 84px) 0 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 24px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.breadcrumbs a:hover { color: var(--signal); }
.breadcrumb-separator { display: inline-grid; place-items: center; }
.breadcrumb-separator .ui-icon { width: 12px; height: 12px; flex-basis: 12px; }
.article-header { max-width: 1050px; }
.article-header h1 { margin: 12px 0 18px; font-family: var(--mono); font-size: clamp(31px, 5.5vw, 66px); font-weight: 500; letter-spacing: -.075em; line-height: 1.01; }
.article-lead { max-width: 830px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 19px 0 26px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.share-bar { margin: -8px 0 28px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.share-actions a, .share-actions button { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 10px; }
.share-actions a:hover, .share-actions button:hover { border-color: var(--signal); color: var(--signal-strong); }
.share-actions .ui-icon { color: var(--muted); }
.share-actions a:hover .ui-icon, .share-actions button:hover .ui-icon { color: currentColor; }
.share-actions .mobile-share-trigger { display: none; }

body.share-sheet-open { overflow: hidden; }
.share-sheet { --share-backdrop-opacity: 0; --share-backdrop-blur: 0px; position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; overflow: hidden; border: 0; padding: 0; background: transparent; color: var(--ink); }
.share-sheet.is-open { --share-backdrop-opacity: 1; --share-backdrop-blur: 4px; }
.share-sheet.is-closing { --share-backdrop-opacity: 0; --share-backdrop-blur: 0px; }
.share-sheet::backdrop { background-color: rgb(0 0 0 / calc(.58 * var(--share-backdrop-opacity))); -webkit-backdrop-filter: blur(var(--share-backdrop-blur)); backdrop-filter: blur(var(--share-backdrop-blur)); transition: background-color .4s cubic-bezier(.4, 0, .2, 1), backdrop-filter .4s cubic-bezier(.4, 0, .2, 1); }
.share-sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; width: min(100%, 520px); margin-inline: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); background: var(--panel); box-shadow: 0 -20px 60px rgba(0, 0, 0, .22); transform: translate3d(0, 100%, 0); will-change: transform; backface-visibility: hidden; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.share-sheet.is-open .share-sheet-panel { transform: translate3d(0, 0, 0); }
.share-sheet.is-closing .share-sheet-panel { transform: translate3d(0, 100%, 0); }
.share-sheet.is-dragging .share-sheet-panel { transition: none; }
.share-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; cursor: grab; touch-action: none; user-select: none; }
.share-sheet-head:active { cursor: grabbing; }
.share-sheet-head button { cursor: pointer; }
.share-sheet-head h2 { margin: 0; font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.share-sheet-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: transparent; color: var(--ink); cursor: pointer; line-height: 0; }
.share-sheet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.share-sheet-options a { display: grid; min-width: 0; justify-items: center; gap: 8px; border-radius: 14px; padding: 10px 4px; color: var(--ink); font-family: var(--mono); font-size: 11px; text-align: center; }
.share-sheet-options a:hover { background: var(--soft); color: var(--signal-strong); }
.share-sheet-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); }
.share-sheet-options a:hover .share-sheet-icon { border-color: var(--signal); color: currentColor; }
.article-hero { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; margin: 28px 0 10px; border-radius: 17px; background: var(--soft); box-shadow: var(--shadow); }
.article-hero .story-image { height: 100%; }
.article-hero img { height: 100%; object-fit: cover; }
.article-caption { margin: 0 0 30px; color: var(--muted); font-size: 12px; }
.article-inline-media { margin: 2.4em 0; }
.article-inline-media .story-image { aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: var(--shadow); }
.article-inline-media img { height: 100%; object-fit: cover; }
.article-inline-media figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 290px); gap: clamp(36px, 8vw, 100px); align-items: start; }
.article-body { min-width: 0; font-size: clamp(16px, 1.45vw, 17px); line-height: 1.72; }
.article-body p { margin: 0 0 1.25em; }
.article-body h2 { scroll-margin-top: 135px; margin: 2.15em 0 .7em; font-family: var(--mono); font-size: clamp(23px, 2.7vw, 34px); font-weight: 500; letter-spacing: -.055em; line-height: 1.14; }
.article-body h3 { scroll-margin-top: 135px; margin: 1.7em 0 .6em; font-family: var(--mono); font-size: 19px; line-height: 1.2; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.article-body li { margin-bottom: .45em; padding-left: .25em; }
.article-body a { color: var(--signal-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body code { border-radius: 5px; padding: .1em .35em; background: var(--soft); font-family: var(--mono); font-size: .88em; }
.article-callout { position: relative; margin: 2em 0; border-left: 3px solid var(--signal); border-radius: 0 11px 11px 0; padding: 20px 22px; background: color-mix(in srgb, var(--signal) 9%, transparent); color: var(--ink); font-style: italic; }
.article-callout p { margin: 0; }
.article-callout strong { color: var(--signal-strong); font-family: var(--mono); font-size: .86em; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.inline-ad { min-height: 156px; }
.article-body .inline-ad { margin: 38px 0; }
.table-scroll { max-width: 100%; margin: 24px 0 32px; overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: var(--mono); font-weight: 600; }
.article-side { position: sticky; top: 145px; }
.toc { padding-block: 16px; border-block: 1px solid var(--line); }
.toc-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.toc-title .toc-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--signal); }
.toc nav { display: grid; gap: 5px; }
.toc a { padding: 7px 8px; border-radius: 7px; color: var(--muted); font-size: 13px; }
.toc a:hover { background: var(--soft); color: var(--ink); }
.article-side .ad-slot { min-height: 240px; margin-top: 24px; }
.related-section { margin-top: clamp(52px, 8vw, 92px); padding-top: 28px; border-top: 1px solid var(--line); }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.related-heading .eyebrow { margin-bottom: 8px; }
.related-heading h2 { margin: 0; font-family: var(--mono); font-size: clamp(25px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.055em; }
.related-heading > span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related-card { display: grid; min-width: 0; align-content: start; }
.related-card .story-image { aspect-ratio: 16 / 10; margin-bottom: 15px; border-radius: 12px; }
.related-card .story-copy { display: grid; justify-items: start; }
.related-card .story-category { margin-top: 0; }
.related-card .story-title { font-size: clamp(17px, 1.8vw, 22px); }
.back-row { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.back-row a { display: inline-flex; align-items: center; gap: 8px; color: var(--signal-strong); font-family: var(--mono); font-size: 13px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent); border-radius: 10px; padding: 12px 15px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-family: var(--mono); font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: none; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 30px; align-items: start; }
.site-footer p { max-width: 440px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer-labels { display: grid; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.footer-note { font-family: var(--mono); }

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, 1fr); }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .article-body { width: 100%; max-width: 100%; min-width: 0; }
  .table-scroll { width: 100%; max-width: 100%; }
  .article-side { position: static; order: -1; }
  .toc nav { display: flex; flex-wrap: wrap; }
  .toc a { background: var(--soft); }
  .article-side .ad-slot { display: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card:last-child:nth-child(odd) { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); grid-column: 1 / -1; gap: 20px; align-items: center; }
  .related-card:last-child:nth-child(odd) .story-image { margin-bottom: 0; }
  .company-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .header-main { grid-template-columns: 1fr auto; min-height: 61px; }
  .tagline, .freshness { display: none; }
  .nav-row { width: 100%; }
  .primary-nav { padding-inline: 8px; }
  .primary-nav a { padding-inline: 11px; }
  .more-nav summary { padding-inline: 10px 12px; }
  .more-nav-list { position: fixed; top: 111px; right: 14px; left: 14px; width: auto; }
  .site-header.has-article-nav { min-height: 108px; }
  .site-header.has-article-nav .header-main,
  .site-header.has-article-nav .nav-row { opacity: 1; transform: translateY(0); transition: opacity .24s ease, transform .24s ease, visibility 0s linear 0s; }
  .site-header.has-article-nav .article-scroll-nav { position: absolute; top: 0; right: 0; left: 0; display: grid; min-height: 108px; align-content: center; gap: 9px; padding-block: 10px; opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(7px); transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; }
  .site-header.is-article-nav .header-main,
  .site-header.is-article-nav .nav-row { opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-7px); transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; }
  .site-header.is-article-nav .article-scroll-nav { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .site-header.is-article-nav .search-panel { display: none !important; }
  .article-scroll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); }
  .article-scroll-head strong { font-size: 13px; font-weight: 600; }
  .article-scroll-head span { color: var(--muted); font-size: 10px; }
  .article-scroll-nav nav { display: flex; gap: 6px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
  .article-scroll-nav nav::-webkit-scrollbar { display: none; }
  .article-scroll-nav a { flex: 0 0 auto; border-radius: 8px; padding: 7px 9px; background: var(--soft); color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
  .article-scroll-nav a { transition: background-color .22s ease, color .22s ease, transform .22s ease; }
  .article-scroll-nav a[aria-current="location"] { background: var(--ink); color: var(--paper); transition: background-color .22s ease, color .22s ease, transform .22s ease; transform: translateY(-1px); }
  .search-controls { grid-template-columns: minmax(0, 1fr) 92px; }
  .search-panel input { padding-inline: 12px; font-size: 14px; }
  .home { padding-top: 34px; }
  .feed-toolbar { margin-bottom: 16px; }
  .feed-toolbar > div:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
  .lead-story .story-image { border-radius: 11px; }
  .side-stack, .feed-grid { grid-template-columns: 1fr; }
  .side-story { grid-template-columns: 115px 1fr; }
  .side-story .story-image { aspect-ratio: 1 / 1; }
  .side-story .story-copy { align-self: center; }
  .side-story .story-excerpt { display: none; }
  .compact-story { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
  .compact-story .story-meta { display: none; }
  .compact-story .story-excerpt { display: none; }
  .compact-story .story-title { display: block; overflow: visible; margin-block: 4px 0; font-size: 15px; line-height: 1.2; -webkit-line-clamp: unset; }
  .ai-badge::after { display: none; }
  .article-header h1 { font-size: clamp(30px, 9.2vw, 45px); }
  .article-hero { aspect-ratio: 4 / 3; margin-inline: -14px; border-radius: 0; }
  .article-inline-media { margin: 2em -14px; }
  .article-inline-media .story-image { aspect-ratio: 4 / 3; border-radius: 0; }
  .article-inline-media figcaption { padding-inline: 14px; }
  .article-layout { gap: 24px; }
  .article-side .toc { display: none; }
  .toc { margin-inline: -2px; }
  .toc nav { flex-wrap: nowrap; margin-right: 0; padding: 2px 0 4px 2px; overflow-x: auto; scrollbar-width: none; }
  .toc a { flex: 0 0 auto; }
  .article-body { font-size: 16px; line-height: 1.72; }
  .article-body h2 { font-size: 24px; }
  .article-callout { margin-block: 1.7em; padding: 17px 16px; }
  .related-heading { align-items: start; flex-direction: column; gap: 7px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card:last-child:nth-child(odd) { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-column: auto; gap: 14px; }
  .related-card:not(:first-child) { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
  .related-card:not(:first-child) .story-image { aspect-ratio: 1 / 1; margin-bottom: 0; }
  .related-card:not(:first-child) .story-title { margin-block: 6px; font-size: 16px; }
  .related-card:not(:first-child) .story-meta { display: none; }
  .share-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-actions a, .share-actions button { justify-content: center; }
  .share-actions .desktop-share-link { display: none; }
  .share-actions .mobile-share-trigger { display: inline-flex; }
  .toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
