:root {
  --ink: #17191d;
  --muted: #626b76;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --line: #d9dee5;
  --blue: #1f5f9e;
  --red: #b23b32;
  --green: #2f7a5b;
  --gold: #a16b1f;
  --shadow: 0 14px 44px rgba(20, 24, 31, 0.1);
  --site-header-height: 60px;
  --category-rail-height: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.top-nav a[aria-current="page"],
.top-nav a:hover {
  color: var(--blue);
}

.feed-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(20px, 5vw, 56px);
  align-items: end;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 5vw, 64px) clamp(22px, 4vw, 40px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.feed-intro > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  width: min(820px, 100%);
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  width: min(760px, 100%);
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 620;
}

.feed-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.feed-stats div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.feed-stats div:last-child {
  border-right: 0;
}

.feed-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feed-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.retrieval-panel {
  padding: 16px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.retrieval-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.retrieval-panel__grid label:first-child {
  grid-column: span 2;
}

.retrieval-panel label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.retrieval-panel input,
.retrieval-panel select,
.retrieval-panel button {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.retrieval-panel input,
.retrieval-panel select {
  padding: 8px 10px;
}

.retrieval-panel button {
  padding: 8px 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  cursor: pointer;
}

.category-shell {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 38px) clamp(14px, 4vw, 44px) clamp(34px, 6vw, 76px);
}

.category-rail {
  position: sticky;
  top: calc(var(--site-header-height) + 16px);
  z-index: 35;
  align-self: start;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding-right: 3px;
}

.category-nav-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  text-decoration: none;
}

.category-nav-item:hover,
.category-nav-item.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(31, 95, 158, 0.12);
}

.category-nav-item span {
  font-weight: 800;
}

.category-nav-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.category-board {
  min-width: 0;
}

.category-section {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}

.has-js .category-section[hidden] {
  display: none;
}

.category-section > *,
.category-section__header > * {
  min-width: 0;
  max-width: 100%;
}

.category-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.category-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
  gap: clamp(16px, 3vw, 28px);
  align-items: end;
}

.category-section__header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 620;
}

.category-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.category-metrics div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.category-metrics div:last-child {
  border-right: 0;
}

.category-metrics dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-metrics dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.category-control-panel {
  position: sticky;
  top: calc(var(--site-header-height) + 12px);
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 246, 248, 0.96);
  backdrop-filter: blur(14px);
}

.category-control-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.category-control-panel__summary strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-filter {
  display: grid;
  gap: 2px;
  min-width: min(220px, 100%);
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.source-filter:hover,
.source-filter.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(31, 95, 158, 0.12);
}

.source-filter strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.source-filter small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.category-feed {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.feed-item {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feed-item.is-hidden {
  display: none;
}

.feed-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.source-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.category-label {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.source-meta,
.feed-item time {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.feed-item time {
  flex: 0 0 auto;
  max-width: 210px;
  text-align: right;
}

.trust-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #cbd7e4;
  border-radius: 8px;
  background: #f7faff;
}

.trust-panel__chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trust-chip,
.tag-chip,
.cluster-label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.trust-chip {
  padding: 4px 7px;
  color: #173456;
  background: #e3edf8;
}

.trust-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.cluster-label {
  justify-self: start;
  margin: -2px 0 0;
  padding: 5px 8px;
  color: #593a08;
  background: #fff1d6;
  border: 1px solid #f0d4a5;
}

.popularity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: -4px;
}

.popularity-strip span,
.popularity-strip strong,
.english-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.popularity-strip strong {
  color: #173456;
  background: #e3edf8;
  border-color: #cbd7e4;
}

.english-status {
  justify-self: start;
  margin: -4px 0 0;
}

.english-status strong {
  color: var(--ink);
}

.english-status--needs_translation {
  color: #6b4708;
  background: #fff7e6;
  border-color: #edcf95;
}

.english-status--translated,
.english-status--original_english {
  color: #27533f;
  background: #e2f2eb;
  border-color: #bedfcd;
}

.post-text {
  margin: 0;
  color: #22262d;
  font-size: 1rem;
  white-space: normal;
}

.post-text--empty {
  color: var(--muted);
  font-style: italic;
}

.translation-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d8cfbd;
  border-radius: 8px;
  background: #fffaf0;
}

.translation-note p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  margin: 0;
  color: #5d4311;
  font-size: 0.82rem;
  font-weight: 800;
}

.translation-note span {
  color: var(--muted);
  font-weight: 700;
}

.translation-note blockquote {
  margin: 0;
  color: #2f3339;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.tag-list {
  margin-top: 12px;
}

.tag-chip {
  padding: 4px 7px;
  color: #27533f;
  background: #e2f2eb;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.media-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.media-item img,
.media-item video,
.media-item audio {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #11161d;
}

.media-item audio {
  padding: 12px;
  background: #f9fafb;
}

.media-item figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.attachment-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.attachment-item--muted {
  color: var(--muted);
}

.telegram-hosted-preview,
.youtube-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.media-gallery .telegram-hosted-preview {
  grid-column: 1 / -1;
}

.telegram-hosted-preview {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 10px;
}

.telegram-hosted-preview__placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.telegram-hosted-preview__placeholder[hidden] {
  display: none;
}

.telegram-hosted-preview__placeholder strong,
.telegram-hosted-preview__placeholder span,
.telegram-hosted-preview__note {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.telegram-hosted-preview__placeholder strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.telegram-hosted-preview__placeholder button,
.telegram-hosted-preview__placeholder a {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.telegram-hosted-preview__note {
  margin: 0;
}

.telegram-hosted-preview blockquote {
  margin: 0;
}

.youtube-preview-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.youtube-preview {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.youtube-preview__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #11161d;
}

.youtube-preview__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-preview__thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(17, 22, 29, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
}

.youtube-preview div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.youtube-preview strong,
.youtube-preview small,
.youtube-preview a {
  overflow-wrap: anywhere;
}

.youtube-preview strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.youtube-preview small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.youtube-preview a {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.link-list a {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fafb;
  font-size: 0.84rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.feed-item__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

.feed-item__footer a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.section-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.empty-state[hidden],
.category-end[hidden] {
  display: none;
}

.category-end {
  margin: 2px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.source-directory {
  border-top: 1px solid var(--line);
  background: #fff;
}

.source-directory__inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(14px, 4vw, 44px);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.source-directory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.source-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.source-row {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.source-row span {
  font-weight: 800;
}

.source-row small {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.archive-page,
.item-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) clamp(14px, 4vw, 44px) clamp(42px, 6vw, 76px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 10px;
  color: var(--line);
}

.archive-hero,
.item-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.archive-hero h1,
.item-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

.archive-stats {
  width: min(720px, 100%);
  margin-top: 4px;
}

.archive-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.archive-sidebar,
.archive-list,
.policy-body {
  min-width: 0;
}

.archive-sidebar {
  position: sticky;
  top: calc(var(--site-header-height) + 16px);
  display: grid;
  gap: 10px;
}

.archive-list {
  display: grid;
  gap: 12px;
}

.archive-list h2,
.archive-sidebar h2,
.policy-body h2 {
  font-size: 1.1rem;
}

.archive-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.archive-item h3 {
  min-width: 0;
}

.archive-item h3 a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.archive-item p {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.archive-item footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.policy-body {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-body p,
.policy-body ul {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.policy-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef3f8;
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}

.site-footer p {
  max-width: 820px;
  margin: 0;
}

@media (max-width: 900px) {
  .site-header,
  .feed-item__header,
  .category-section__header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-intro {
    grid-template-columns: 1fr;
  }

  .retrieval-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-stats {
    grid-template-columns: 1fr;
  }

  .feed-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feed-stats div:last-child {
    border-bottom: 0;
  }

  .category-shell {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
  }

  .category-rail {
    top: var(--site-header-height);
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 240px);
    grid-template-columns: none;
    max-height: none;
    margin: 0 -14px;
    padding: 8px 14px;
    overflow-x: auto;
    background: rgba(245, 246, 248, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .category-control-panel {
    top: calc(var(--site-header-height) + var(--category-rail-height) + 8px);
  }

  .category-section__header {
    grid-template-columns: 1fr;
  }

  .feed-item time {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px 16px;
  }

  .category-rail {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .category-section__header h2,
  .category-section__header p {
    max-width: calc(100vw - 24px);
  }

  h1 {
    width: 100%;
    max-width: 340px;
    font-size: 1.6rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .feed-intro,
  .retrieval-panel,
  .category-shell,
  .source-directory__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .archive-page,
  .item-page {
    width: calc(100% - 40px);
    padding-left: 0;
    padding-right: 0;
  }

  .archive-hero,
  .item-hero,
  .archive-grid,
  .archive-sidebar,
  .archive-list,
  .archive-item {
    max-width: 100%;
  }

  .feed-intro > div,
  .feed-stats,
  .retrieval-panel__grid,
  .category-rail,
  .category-board,
  .source-directory__grid {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .lede {
    width: 300px;
    max-width: calc(100vw - 48px);
  }

  .category-rail {
    grid-template-columns: none;
  }

  .category-nav-item,
  .source-filter,
  .retrieval-panel__grid {
    min-width: 0;
  }

  .retrieval-panel__grid {
    grid-template-columns: 1fr;
  }

  .retrieval-panel__grid label:first-child {
    grid-column: auto;
  }

  .source-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .source-filter {
    flex: 0 0 min(250px, 78vw);
  }

  .category-metrics {
    grid-template-columns: 1fr;
  }

  .category-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-metrics div:last-child {
    border-bottom: 0;
  }

  .media-gallery {
    grid-template-columns: 1fr;
  }

  .youtube-preview {
    grid-template-columns: 1fr;
  }
}
