/* News reading column and a quieter, separate current-news feed. */
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.news-detail-layout > * { min-width: 0; }
.news-article .article-title { padding: 8px 0 30px; }
.news-article .article-title h1 {
  font-size: clamp(34px, 3.35vw, 52px);
  line-height: 1.14;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}
.news-article .article-title .intro {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.55;
}
.news-article .article-title .meta {
  margin-top: 24px;
  gap: 10px 20px;
  line-height: 1.6;
}
.news-article .article-body {
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.news-article .article-body .lead,
.news-article .article-body .article-lead { font-size: 21px; }
.news-article .article-body h2 { font-size: 30px; }
.news-feature-image { margin: 0 0 30px; }
.news-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}
.news-sidebar {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.news-sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0 24px;
  border-bottom: 1px solid var(--line);
}
.news-sidebar-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.55px;
  line-height: 1.25;
}
.news-sidebar-heading > a {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}
.news-sidebar-heading > a:hover { color: var(--red); }
.news-sidebar-item {
  display: block;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.news-sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.news-sidebar-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.35px;
  overflow-wrap: break-word;
}
.news-sidebar-empty {
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
/* Every linked person is visible as a portrait; long sets scroll as one row. */
.article-people {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-body .article-people h2,
.news-article .article-body .article-people h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-people h2 > span {
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.related-people.person-avatar-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  padding: 7px 7px 14px;
  margin: 0 -7px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.person-avatar-item { flex: 0 0 auto; }
.article-body a.person-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  color: var(--muted);
  background: var(--soft);
  transition: border-color .18s ease, transform .18s ease;
}
.article-body a.person-avatar:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.article-body .person-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1);
}
.person-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}
@media (max-width: 1000px) {
  .news-detail-layout { gap: 30px; }
  .news-sidebar { padding-left: 24px; }
  .news-sidebar-heading h2 { font-size: 21px; }
  .news-sidebar-item h3 { font-size: 18px; }
}
@media (max-width: 760px) {
  .news-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .news-article .article-title { padding-top: 0; }
  .news-article .article-title h1 { font-size: clamp(31px, 7.8vw, 43px); }
  .news-article .article-title .intro { font-size: 19px; }
  .news-article .article-body { font-size: 17px; }
  .news-sidebar { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .news-sidebar-heading { padding-top: 0; }
  .news-sidebar-item { padding: 20px 0; }
  .news-sidebar-item h3 { font-size: 20px; }
  .article-body a.person-avatar { width: 56px; height: 56px; }
  .related-people.person-avatar-row { gap: 10px; }
  .article-end { flex-wrap: wrap; gap: 12px; }
}

/* Compact tools stay with the text, below the masthead. */
/* The source registry becomes readable cards on a narrow screen. */
.article-body .nox-registry { width: 100%; table-layout: fixed; border-top: 1px solid var(--line); }
.article-body .nox-registry caption { margin-bottom: 20px; line-height: 1.7; }
.article-body .nox-registry th,
.article-body .nox-registry td { min-width: 0; padding: 22px 18px; vertical-align: top; overflow-wrap: anywhere; }
.article-body .nox-registry th { padding-top: 14px; padding-bottom: 14px; }
.article-body .nox-registry th:nth-child(1) { width: 30% !important; }
.article-body .nox-registry th:nth-child(2) { width: 20% !important; }
.article-body .nox-registry th:nth-child(3) { width: 50% !important; }
.article-body .nox-registry th p { width: auto !important; margin: 0; font-size: inherit; }
.article-body .nox-registry td:first-child { line-height: 1.65; }
.article-body .nox-registry td:first-child strong { display: inline-block; margin-bottom: 4px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.article-body .nox-registry td:first-child img { display: block; width: 64px !important; height: 64px !important; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; object-position: center; filter: none; background: var(--soft); }
.article-body .nox-registry td:first-child img + br { display: none; }
.article-body .nox-registry td:nth-child(2) { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.article-body .nox-registry td:nth-child(2) a { display: inline-block; margin-top: 6px; color: var(--ink); }
.article-body .nox-registry td:nth-child(3) { font-size: 14px; line-height: 1.75; }
.article-body .nox-registry td em { color: var(--muted); font-size: 12px; font-style: normal; }
.article-body .nox-registry a { border-bottom-color: color-mix(in srgb,var(--red) 50%,transparent); }
.article-body .nox-registry a:hover { border-bottom-color: var(--red); color: var(--red); }
.article-body .nox-registry td:nth-child(2) > p.source-note { display: inline-block; padding: 3px 7px; margin: 6px 0 0; color: var(--muted); background: var(--soft); border: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .article-body .nox-registry { display: block; width: 100% !important; border: 0; }
  .article-body .nox-registry caption { display: block; margin: 0 0 18px; }
  .article-body .nox-registry thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .article-body .nox-registry tbody { display: grid; gap: 16px; }
  .article-body .nox-registry tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px; border: 1px solid var(--line); }
  .article-body .nox-registry td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .article-body .nox-registry td:first-child { position: relative; min-height: 64px; padding-left: 80px; font-size: 13px; }
  .article-body .nox-registry td:first-child img { position: absolute; top: 0; left: 0; margin: 0; }
  .article-body .nox-registry td:first-child strong { font-size: 16px; }
  .article-body .nox-registry td:nth-child(2) { padding-top: 16px; border-top: 1px solid var(--line); }
  .article-body .nox-registry td:nth-child(2)::before,
  .article-body .nox-registry td:nth-child(3)::before { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
  .article-body .nox-registry td:nth-child(2)::before { content: 'Публикация'; }
  .article-body .nox-registry td:nth-child(3)::before { content: 'Что зафиксировано'; }
  .article-body .nox-registry td:nth-child(3) { font-size: 14px; }
}
.article-reading, .article-body, .article-prose { min-width: 0; }
.case-page .article-layout:not(:has(> .toc)) { grid-template-columns: minmax(0, 900px); justify-content: center; }
.reading-tools {
  position: sticky;
  top: calc(var(--header-height, 68px) + 3px);
  z-index: 25;
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0 0 28px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.reading-size, .reading-actions { display: flex; align-items: center; }
.reading-size { flex-shrink: 0; }
.reading-actions { margin-left: auto; }
.reading-tools .icon-button { width: 40px; height: 44px; padding: 9px; }
.reading-tools .icon-button:disabled { opacity: .3; cursor: default; background: none; color: var(--muted); }
.reading-size .icon-button { font-size: 17px; letter-spacing: -.06em; }
#reader-size { width: 39px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.reading-outline-button { display: none; }
.reading-feedback {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  max-width: 100%;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.5;
}
.reading-feedback:empty { display: none; }
.reader-dialog { width: min(540px, calc(100% - 32px)); max-height: min(80dvh, 760px); margin: auto; padding: 0 24px 24px; }
.reader-dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.reader-dialog-heading h2 { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: -.5px; }
.reader-dialog-heading .icon-button { flex-shrink: 0; margin-right: -9px; }
.reader-dialog > p { margin: 22px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#reader-link-input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; background: var(--soft); color: var(--ink); padding: 13px; font-size: 14px; }
.reader-outline-links a { display: flex; align-items: baseline; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.reader-outline-links a > span { flex: 0 0 22px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.reader-outline-links a.current, .reader-outline-links a.current > span { color: var(--red); }
.reader-outline-links a.current { font-weight: 600; }
.toc { top: calc(var(--header-height, 68px) + 23px); max-height: calc(100dvh - var(--header-height, 68px) - 46px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.toc a { overflow-wrap: anywhere; }
.article-body { overflow-wrap: anywhere; }
.article-body figure, .article-body pre { max-width: 100%; min-width: 0; }
.article-body img { height: auto; }
.article-body .table-scroll { max-width: 100%; min-width: 0; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--muted) var(--soft); }
.article-body .table-scroll > table { margin: 0; }
.table-scroll.is-scrollable { padding-bottom: 8px; }
.table-scroll:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.article-prose { --reader-scale: 1; --reader-base: 18px; font-size: calc(var(--reader-base) * var(--reader-scale)); line-height: 1.8; }
.news-article .article-prose { --reader-base: 17px; }
.article-prose > :first-child { margin-top: 0; }
.article-body .article-prose h2 { font-size: calc(34px * var(--reader-scale)); scroll-margin-top: calc(var(--header-height, 68px) + var(--reading-tools-height, 52px) + 24px); }
.article-body .article-prose h3 { font-size: calc(24px * var(--reader-scale)); }
.article-body .article-prose .lead, .article-body .article-prose .article-lead { font-size: calc(24px * var(--reader-scale)); }
.news-article .article-prose h2 { font-size: calc(30px * var(--reader-scale)); }
.news-article .article-prose .lead, .news-article .article-prose .article-lead { font-size: calc(21px * var(--reader-scale)); }
.article-prose table { font-size: calc(15px * var(--reader-scale)); }
.article-prose .document-callout p, .article-prose .timeline p { font-size: calc(16px * var(--reader-scale)); }
.article-prose .source-note, .article-prose figcaption { font-size: calc(13px * var(--reader-scale)); }
.article-prose li + li { margin-top: .4em; }
.article-prose .key-facts > li + li { margin-top: 0; }
@media (max-width: 760px) {
  .reading-enhanced .toc { display: none; }
  .reading-outline-button { display: inline-flex; }
  .reading-tools { margin-bottom: 24px; }
  .reading-tools .icon-button { width: 38px; padding: 8px; }
  .article-prose { --reader-base: 17px; }
  .article-body .article-prose h2 { font-size: calc(29px * var(--reader-scale)); }
  .article-body .article-prose .lead, .article-body .article-prose .article-lead { font-size: calc(21px * var(--reader-scale)); }
  #reader-outline { inset: auto 0 0; width: 100%; max-width: none; margin: 0; border-width: 1px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .toc { max-height: none; }
  .toc a { overflow-wrap: normal; }
}
/* News reading navigation and aligned recommendations. */
main.news-page{max-width:1390px;padding-inline:48px}
.news-detail-layout{grid-template-columns:minmax(0,1fr) 290px;gap:72px;align-items:stretch}
.news-reader-rail{min-width:0;border-left:1px solid var(--line);padding-left:28px}
.news-rail-sticky{position:sticky;top:calc(var(--header-height,68px) + 30px);padding-top:6px;max-height:calc(100dvh - var(--header-height,68px) - 60px);overflow:auto;scrollbar-width:thin}
.news-rail-label{display:flex;justify-content:space-between;gap:16px;font-size:10px;letter-spacing:.1em;color:var(--muted);margin:0 0 22px}
.news-rail-label>[data-reading-percent]{font-variant-numeric:tabular-nums;letter-spacing:0}
nav.news-outline{display:flex;flex-direction:column;height:auto;gap:0;align-items:stretch}
.news-outline a{display:flex;align-items:baseline;gap:12px;padding:13px 0;line-height:1.45;height:auto;font-size:14px;color:var(--muted);border:0;overflow-wrap:anywhere}
.news-outline a>span{font-size:10px;font-variant-numeric:tabular-nums;opacity:.65}
.news-outline a b{font-weight:450;flex:1}
.news-outline a i{width:5px;height:5px;border-radius:50%;background:transparent;align-self:center;flex:none}
.news-outline a.current,.news-outline a:hover{color:var(--red)}
.news-outline a.current b{font-weight:550}
.news-outline a.current i{background:var(--red)}
.news-outline a::after{display:none!important}
.news-rail-people{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}
.news-rail-people:first-child{border:0;margin:0;padding:0}
.news-rail-caption{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted);margin:0 0 17px}
.news-rail-person{display:flex;align-items:center;gap:13px;margin-bottom:16px}
.news-rail-person img,.news-rail-placeholder{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 30%;filter:grayscale(1);flex:none}
.news-rail-placeholder{display:grid;place-items:center;background:var(--soft);font-size:13px}
.news-rail-person strong{font-size:14px;font-weight:500;display:block;margin-bottom:5px;overflow-wrap:anywhere}
.news-rail-person>span{min-width:0}
.news-rail-person small{display:block;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.news-rail-case{display:block;border-top:1px solid var(--line);margin-top:25px;padding-top:24px}
.news-rail-case:first-child{border:0;margin:0;padding:0}
.news-rail-case strong{display:block;font-size:19px;line-height:1.45;letter-spacing:-.3px;font-weight:500;margin-bottom:11px;overflow-wrap:anywhere}
.news-rail-case>span:last-child{font-size:12px;color:var(--muted)}
.news-rail-story{display:block;padding:18px 0;border-bottom:1px solid var(--line)}
.news-rail-story h3{font-size:16px;line-height:1.5;margin:0 0 12px}
.news-rail-story time{font-size:11px;color:var(--muted)}
.news-related{margin:70px 0 12px;padding-top:28px;border-top:1px solid var(--line)}
.news-related-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:20px}
.news-related-heading h2{font-size:27px;margin:0}
.news-related-heading>a{font-size:12px;color:var(--muted);white-space:nowrap}
.news-related-list{display:grid;grid-auto-rows:1fr;border-top:1px solid var(--line)}
.news-related-row{display:grid;grid-template-columns:160px minmax(0,1fr) 175px;align-items:center;gap:30px;padding:25px 0;min-height:115px;border-bottom:1px solid var(--line)}
.news-related-category{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.news-related-row h3{margin:0;font-size:23px;line-height:1.4;font-weight:500;letter-spacing:-.4px;overflow-wrap:anywhere}
.news-related-date{display:flex;justify-content:space-between;gap:16px;align-items:center;color:var(--muted);font-size:11px}
.news-related-date>span{font-size:20px;flex:none}
.news-related-date time{font-variant-numeric:tabular-nums}
@media(max-width:1050px){main.news-page{padding-inline:30px}.news-detail-layout{gap:36px;grid-template-columns:minmax(0,1fr) 255px}.news-reader-rail{padding-left:22px}.news-related-row{grid-template-columns:120px minmax(0,1fr) 150px;gap:22px}}
@media(max-width:800px){main.news-page{padding-inline:22px}.news-detail-layout{display:block}.news-reader-rail{display:none}.news-article .reading-outline-button{display:inline-flex}.news-related{margin-top:40px}.news-related-row{grid-template-columns:1fr;gap:12px;min-height:0;padding:22px 0}.news-related-list{grid-auto-rows:auto}.news-related-row h3{font-size:20px}.news-related-date{margin-top:4px}.news-related-heading h2{font-size:25px}.news-article .reading-tools{top:var(--header-height,68px)}}
