/*
 * Retro editorial theme
 * Warm paper, one-bit imagery, dense ruled grids and early-web restraint.
 * Loaded after experience.css so the existing interaction layer remains intact.
 */

.theme-pixel-editorial {
  --paper: #e6e2d6;
  --paper-lavender: #d8d4c7;
  --ink: #292922;
  --ink-soft: #55544b;
  --pink: #292922;
  --pink-bright: #292922;
  --pink-light: #777468;
  --cyan: #8d897c;
  --violet: #5d5c53;
  --violet-text: #292922;
  --yellow: #c9c5b8;
  --orange: #777468;
  --white: #eeeade;
  --line: rgba(41, 41, 34, 0.24);
  --line-strong: rgba(41, 41, 34, 0.78);
  --shadow-navy: none;
  --shadow-pink: none;
  --content: min(1540px, calc(100vw - 36px));
  --header-height: 54px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: none;
}

.theme-pixel-editorial::before {
  z-index: -2;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(41, 41, 34, 0.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  background-size: auto;
}

.theme-pixel-editorial::after {
  z-index: -1;
  opacity: 0.1;
  background-image: radial-gradient(circle, #292922 0 0.55px, transparent 0.7px);
  background-size: 4px 4px;
  mask-image: none;
}

.theme-pixel-editorial ::selection {
  color: var(--paper);
  background: var(--ink);
}

.theme-pixel-editorial button:focus-visible,
.theme-pixel-editorial a:focus-visible,
.theme-pixel-editorial input:focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: 3px;
}

.theme-pixel-editorial .skip-link {
  color: var(--paper);
  background: var(--ink);
}

/* Header: compact, ruled and deliberately browser-like. */
.theme-pixel-editorial .site-header {
  height: var(--header-height);
  padding: 0;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(216, 212, 199, 0.96);
  backdrop-filter: none;
  transition: none;
}

.theme-pixel-editorial .site-header.scrolled {
  height: var(--header-height);
  box-shadow: none;
}

.theme-pixel-editorial .header-logo {
  width: 92px;
  height: 100%;
  padding: 8px 12px;
  border-right: 1px solid var(--line-strong);
}

.theme-pixel-editorial .header-logo img {
  width: 66px;
  height: 33px;
  filter: grayscale(1) contrast(1.8);
  mix-blend-mode: multiply;
  object-position: center 51%;
}

.theme-pixel-editorial .site-nav {
  height: 100%;
  align-self: stretch;
  gap: 0;
}

.theme-pixel-editorial .site-nav a {
  min-height: 100%;
  padding: 0 20px;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 120ms linear, background-color 120ms linear;
}

.theme-pixel-editorial .site-nav a:first-child {
  border-left: 1px solid var(--line);
}

.theme-pixel-editorial .site-nav a::after {
  display: none;
}

.theme-pixel-editorial .site-nav a:hover,
.theme-pixel-editorial .site-nav a.active {
  color: var(--paper);
  background: var(--ink);
}

.theme-pixel-editorial .site-nav a:hover .nav-index,
.theme-pixel-editorial .site-nav a.active .nav-index {
  color: inherit;
}

.theme-pixel-editorial .nav-index {
  align-self: center;
  margin-top: 0;
  color: inherit;
  font-size: 9px;
}

.theme-pixel-editorial .header-actions {
  height: 100%;
  gap: 0;
}

.theme-pixel-editorial .header-share,
.theme-pixel-editorial .menu-toggle {
  height: 100%;
  min-height: 100%;
  border-width: 0 0 0 1px;
  border-color: var(--line-strong);
  border-radius: 0;
  color: var(--ink-soft);
  background: transparent;
}

.theme-pixel-editorial .header-share:hover,
.theme-pixel-editorial .menu-toggle:hover {
  color: var(--paper);
  background: var(--ink);
}

/* Homepage: three-column editorial spread. */
.theme-pixel-editorial .editorial-hero {
  display: grid;
  min-height: 100svh;
  padding-top: var(--header-height);
  grid-template-columns: minmax(250px, 1fr) minmax(420px, 1.03fr) minmax(250px, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.theme-pixel-editorial .editorial-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.theme-pixel-editorial .editorial-rail-left {
  border-right: 1px solid var(--line-strong);
}

.theme-pixel-editorial .editorial-rail-right {
  border-left: 1px solid var(--line-strong);
}

.theme-pixel-editorial .rail-block {
  padding: clamp(18px, 2.2vw, 34px);
  border-bottom: 1px solid var(--line);
}

.theme-pixel-editorial .rail-block:last-child {
  flex: 1;
  border-bottom: 0;
}

.theme-pixel-editorial .rail-label {
  margin: calc(clamp(18px, 2.2vw, 34px) * -1) calc(clamp(18px, 2.2vw, 34px) * -1) 20px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1;
}

.theme-pixel-editorial .rail-block > p:not(.rail-label) {
  margin-top: 14px;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
}

.theme-pixel-editorial .rail-block > .rail-lead {
  margin-top: 0;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.38;
}

.theme-pixel-editorial .rail-block.rail-links {
  flex: none;
  background: rgba(41, 41, 34, 0.06);
}

.theme-pixel-editorial .rail-links a,
.theme-pixel-editorial .rail-links button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.theme-pixel-editorial .rail-links a:hover,
.theme-pixel-editorial .rail-links button:hover {
  color: var(--paper);
  background: var(--ink);
}

.theme-pixel-editorial .rail-note {
  position: relative;
  overflow: hidden;
}

.theme-pixel-editorial .rail-note::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.35;
  background-image: radial-gradient(circle, var(--ink) 0 1.2px, transparent 1.35px);
  background-size: 5px 5px;
  content: "";
  clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 64%, 50% 100%, 37% 64%, 0 50%, 37% 34%);
}

.theme-pixel-editorial .rail-block-feed {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 0 12px 12px;
}

.theme-pixel-editorial .rail-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -12px 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
}

.theme-pixel-editorial .rail-feed-header .rail-label {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.theme-pixel-editorial .rail-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-pixel-editorial .rail-shuffle-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.theme-pixel-editorial .rail-shuffle-btn:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.theme-pixel-editorial .rail-shuffle-btn:hover svg {
  transform: rotate(90deg);
}

.theme-pixel-editorial .rail-feed-list {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  transition: opacity 0.12s ease;
}

.theme-pixel-editorial .rail-feed-list.fade-out {
  opacity: 0.2;
}

/* 轨道绝对定位：卡片总高度不参与栅格行高计算，由可视区高度决定裁剪窗口 */
.theme-pixel-editorial .rail-feed-track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  animation: rail-feed-marquee var(--feed-duration, 40s) linear infinite;
}

.theme-pixel-editorial .rail-feed-track .rail-feed-card {
  margin-bottom: 8px;
}

.theme-pixel-editorial .rail-feed-list:hover .rail-feed-track,
.theme-pixel-editorial .rail-feed-track:focus-within {
  animation-play-state: paused;
}

@keyframes rail-feed-marquee {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-pixel-editorial .rail-feed-track {
    animation: none;
  }
}

.theme-pixel-editorial .rail-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-pixel-editorial .rail-feed-card:hover {
  background: rgba(41, 41, 34, 0.05);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.theme-pixel-editorial .feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-latin);
  font-size: 10.5px;
  line-height: 1.2;
}

.theme-pixel-editorial .feed-card-id {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.theme-pixel-editorial .feed-card-meta {
  color: var(--ink-soft);
  font-size: 11px;
}

.theme-pixel-editorial .feed-card-title {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(13px, 0.98vw, 15px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.theme-pixel-editorial .feed-card-footer {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.theme-pixel-editorial .rail-feed-card:hover .feed-card-footer {
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
}

.theme-pixel-editorial .editorial-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #2d2d28;
}

.theme-pixel-editorial .editorial-art {
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.65) brightness(0.86);
  object-fit: contain;
}

.theme-pixel-editorial .halftone-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(circle, #e6e2d6 0 1.2px, transparent 1.35px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.theme-pixel-editorial .visual-meta {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  padding: 8px 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(230, 226, 214, 0.72);
  color: var(--paper);
  background: rgba(41, 41, 34, 0.7);
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Shared section system. */
.theme-pixel-editorial .section-heading {
  width: var(--content);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-strong);
}

.theme-pixel-editorial .section-heading > div,
.theme-pixel-editorial .section-heading > p {
  padding: 24px;
}

.theme-pixel-editorial .section-heading > p {
  border: 0;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(41, 41, 34, 0.05);
  font-size: 15px;
}

.theme-pixel-editorial .section-heading .eyebrow {
  color: var(--ink-soft);
  font-size: 10px;
}

.theme-pixel-editorial .section-heading h2 {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.theme-pixel-editorial .section-heading h2 span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 0.32em;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* Video index: gapless contact sheet with one-bit covers. */
.theme-pixel-editorial .highlights,
.theme-pixel-editorial.page-videos .highlights {
  min-height: calc(100svh - var(--header-height));
  padding: calc(var(--header-height) + 34px) 0 72px;
  background: var(--paper);
}

.theme-pixel-editorial .highlight-grid {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.theme-pixel-editorial .highlight-card {
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none !important;
  transition: background-color 120ms linear, color 120ms linear;
}

.theme-pixel-editorial .highlight-card::before {
  display: none;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  aspect-ratio: 4 / 3;
  opacity: 0.28;
  background-image: radial-gradient(circle, var(--paper) 0 1px, transparent 1.2px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
  content: "";
  pointer-events: none;
}

.theme-pixel-editorial .highlight-card:hover,
.theme-pixel-editorial .highlight-card.reveal.is-visible:hover {
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
  transform: none;
}

.theme-pixel-editorial .highlight-cover,
.theme-pixel-editorial .highlight-card:hover .highlight-cover {
  z-index: 0;
  margin: 0;
  border-bottom: 1px solid var(--line-strong);
  filter: none;
  transform: none;
}

.theme-pixel-editorial .highlight-card > *:not(.highlight-cover) {
  margin-right: 18px;
  margin-left: 18px;
}

.theme-pixel-editorial .highlight-topline {
  margin-top: 14px;
  margin-bottom: 10px;
}

.theme-pixel-editorial .highlight-type,
.theme-pixel-editorial .highlight-id {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.theme-pixel-editorial .highlight-card h3 {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.42;
}

.theme-pixel-editorial .highlight-meta {
  margin-top: 18px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
}

.theme-pixel-editorial .highlight-meta strong {
  padding: 0;
  color: inherit;
  background: transparent;
  border-bottom: 1px solid currentColor;
}

/* Ledger: ruled archive, dense controls, no card effects. */
.theme-pixel-editorial .ledger-section {
  padding: 72px 0 88px;
  border-top: 0;
  background: var(--paper);
}

.theme-pixel-editorial .ledger-section::before {
  display: none;
}

.theme-pixel-editorial .control-panel {
  width: var(--content);
  margin-top: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-pixel-editorial .control-panel::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(41, 41, 34, 0.06);
  content: "FILTER DESK / SEARCH THE ARCHIVE";
  font-size: 10px;
  line-height: 1;
  text-align: left;
  transform: none;
}

.theme-pixel-editorial .control-topline {
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

.theme-pixel-editorial .search-field {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
}

.theme-pixel-editorial .search-field input {
  background: transparent;
}

.theme-pixel-editorial .search-field:focus-within {
  outline: 0;
  box-shadow: none;
}

.theme-pixel-editorial .search-field input:focus-visible {
  outline: 0;
  outline-offset: 0;
}

.theme-pixel-editorial .control-actions {
  gap: 0;
}

.theme-pixel-editorial .control-actions button,
.theme-pixel-editorial .reset-button,
.theme-pixel-editorial .export-button {
  min-height: 48px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.theme-pixel-editorial .control-actions button:hover,
.theme-pixel-editorial .reset-button:hover,
.theme-pixel-editorial .export-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: none;
}

.theme-pixel-editorial .filter-groups {
  gap: 0;
}

.theme-pixel-editorial .filter-group {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.theme-pixel-editorial .filter-group + .filter-group {
  border-top: 0;
}

.theme-pixel-editorial .filter-options,
.theme-pixel-editorial .sort-options {
  gap: 0;
}

.theme-pixel-editorial .filter-options button,
.theme-pixel-editorial .sort-options button,
.theme-pixel-editorial .active-filter-chip,
.theme-pixel-editorial .clear-active-filters {
  margin: -1px 0 0 -1px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.theme-pixel-editorial .filter-options button:hover,
.theme-pixel-editorial .sort-options button:hover,
.theme-pixel-editorial .filter-options button.active,
.theme-pixel-editorial .sort-options button.active,
.theme-pixel-editorial .active-filter-chip:hover,
.theme-pixel-editorial .clear-active-filters:hover {
  color: var(--paper);
  background: var(--ink);
  transform: none;
}

.theme-pixel-editorial .sort-strip,
.theme-pixel-editorial .filter-summary {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.theme-pixel-editorial .result-line {
  width: var(--content);
  margin-top: 20px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(41, 41, 34, 0.06);
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.theme-pixel-editorial .table-shell {
  width: var(--content);
  margin-top: -1px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-pixel-editorial table {
  border-collapse: collapse;
}

.theme-pixel-editorial thead {
  color: var(--ink);
  background: rgba(41, 41, 34, 0.08);
}

.theme-pixel-editorial th,
.theme-pixel-editorial td {
  border-color: var(--line);
}

.theme-pixel-editorial th {
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.theme-pixel-editorial .record-row:hover,
.theme-pixel-editorial .record-row.expanded {
  background: rgba(41, 41, 34, 0.075);
}

.theme-pixel-editorial .record-id,
.theme-pixel-editorial .kind-badge,
.theme-pixel-editorial .tag-pill,
.theme-pixel-editorial .source-link,
.theme-pixel-editorial .source-pending,
.theme-pixel-editorial .comment-count {
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.theme-pixel-editorial .kind-badge,
.theme-pixel-editorial .tag-pill,
.theme-pixel-editorial .source-link,
.theme-pixel-editorial .source-pending {
  border: 1px solid var(--line-strong);
}

.theme-pixel-editorial .tag-pill b {
  border-right: 1px solid var(--line-strong);
  color: inherit;
  background: rgba(41, 41, 34, 0.08);
}

.theme-pixel-editorial .expand-button,
.theme-pixel-editorial .record-share,
.theme-pixel-editorial .empty-state button {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.theme-pixel-editorial .expand-button {
  transition: color 80ms linear, background-color 80ms linear;
}

.theme-pixel-editorial .expand-button:hover,
.theme-pixel-editorial .record-share:hover,
.theme-pixel-editorial .empty-state button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: none;
}

.theme-pixel-editorial .detail-row > td {
  padding: 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(41, 41, 34, 0.045);
}

.theme-pixel-editorial .record-detail,
.theme-pixel-editorial .record-detail.analysis-detail {
  gap: 0;
  border: 0;
  background: transparent;
}

.theme-pixel-editorial .detail-column {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.theme-pixel-editorial .detail-column:last-child {
  border-right: 0;
}

.theme-pixel-editorial .detail-label {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.theme-pixel-editorial .source-column .detail-label {
  display: block;
  width: max-content;
}

.theme-pixel-editorial .detail-actions {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
}

.theme-pixel-editorial .toast {
  border: 1px solid var(--paper);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

/* Footer becomes the final ruled register row. */
.theme-pixel-editorial footer {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--paper-lavender);
  gap: 0;
}

.theme-pixel-editorial footer > * {
  min-height: 78px;
  padding: 18px 24px;
}

.theme-pixel-editorial footer > p,
.theme-pixel-editorial footer > a {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line-strong);
}

.theme-pixel-editorial footer > a:hover {
  color: var(--paper);
  background: var(--ink);
}

.theme-pixel-editorial .brand-swatch {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  clip-path: none;
}

.theme-pixel-editorial .brand-swatch i {
  height: 1px;
  background: var(--ink) !important;
}

@media (max-width: 1100px) {
  .theme-pixel-editorial .editorial-hero {
    grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  }

  .theme-pixel-editorial .editorial-rail-right {
    display: none;
  }

  .theme-pixel-editorial .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .theme-pixel-editorial {
    --header-height: 58px;
    --content: calc(100vw - 24px);
  }

  .theme-pixel-editorial .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .theme-pixel-editorial .site-nav {
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-left: 0;
    background: var(--paper-lavender);
    box-shadow: none;
  }

  .theme-pixel-editorial .site-nav a,
  .theme-pixel-editorial .site-nav a:first-child {
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  /* 展开菜单不再需要蓝色遮罩，保留透明点击层用于点外关闭 */
  .theme-pixel-editorial .nav-backdrop {
    background: transparent;
  }

  /* 汉堡线高 1px、间距 4+4px，X 变形按 9px 间距对齐，避免歪斜 */
  body.theme-pixel-editorial.nav-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.theme-pixel-editorial.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .theme-pixel-editorial .menu-toggle {
    display: block;
  }

  .theme-pixel-editorial .menu-toggle span {
    height: 1px;
    background: currentColor;
  }

  .theme-pixel-editorial .editorial-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .theme-pixel-editorial .editorial-rail-left,
  .theme-pixel-editorial .editorial-rail-right {
    border: 0;
  }

  .theme-pixel-editorial .editorial-visual {
    min-height: 72svh;
    grid-row: 1;
    border-bottom: 1px solid var(--line-strong);
  }

  .theme-pixel-editorial .editorial-rail-left {
    grid-row: 2;
  }

  .theme-pixel-editorial .editorial-rail-right {
    display: flex;
    grid-row: 3;
    border-top: 1px solid var(--line-strong);
  }

  .theme-pixel-editorial .rail-block:last-child {
    flex: none;
  }

  .theme-pixel-editorial .rail-feed-list {
    overflow: visible;
  }

  .theme-pixel-editorial .rail-feed-track {
    position: static;
    animation: none;
  }

  .theme-pixel-editorial .rail-feed-track .rail-feed-card[aria-hidden="true"] {
    display: none;
  }

  .theme-pixel-editorial .section-heading {
    grid-template-columns: 1fr;
  }

  .theme-pixel-editorial .section-heading > p {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  /* 筛选面板：移动端使用留有呼吸感的居中小浮窗 */
  .theme-pixel-editorial .control-panel {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(360px, calc(100vw - 48px));
    max-height: 76dvh;
    padding: 14px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(41, 41, 34, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 18px));
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.theme-pixel-editorial.filters-open .control-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }

  /* 抽屉已有自己的标题栏，隐藏桌面版的刊头条 */
  .theme-pixel-editorial .control-panel::before {
    display: none;
  }

  /* 筛选按钮换行排列，不再横向滚动 */
  .theme-pixel-editorial .filter-options,
  .theme-pixel-editorial .sort-options {
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
  }

  .theme-pixel-editorial .filter-options button,
  .theme-pixel-editorial .sort-options button {
    min-height: 44px;
    margin: 0;
    padding: 7px 10px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.32);
  }

  .theme-pixel-editorial .filter-options button.active,
  .theme-pixel-editorial .sort-options button.active {
    border-color: var(--ink);
    background: var(--ink);
  }

  /* 应用按钮随浮窗走，不再固定屏底 */
  .theme-pixel-editorial .drawer-apply {
    position: static;
    margin-top: 12px;
    padding: 12px 0 0;
  }

  .theme-pixel-editorial .filter-backdrop {
    background: rgba(41, 41, 34, 0.34);
  }

  .theme-pixel-editorial .drawer-heading {
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .theme-pixel-editorial .drawer-heading strong,
  .theme-pixel-editorial .drawer-heading span {
    color: var(--ink);
  }

  .theme-pixel-editorial .drawer-heading span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .theme-pixel-editorial .drawer-heading strong {
    margin-top: 1px;
    font-size: 17px;
  }

  .theme-pixel-editorial #close-filters {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(41, 41, 34, 0.04);
  }

  .theme-pixel-editorial .drawer-apply {
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .theme-pixel-editorial .drawer-apply button,
  .theme-pixel-editorial .mobile-ledger-tools button {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--paper);
    background: var(--ink);
    box-shadow: none;
  }

  .theme-pixel-editorial .control-topline {
    gap: 8px;
    margin-bottom: 2px;
    border-bottom: 0;
  }

  .theme-pixel-editorial .search-field {
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: none;
  }

  .theme-pixel-editorial .search-icon {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    flex-basis: 20px;
  }

  .theme-pixel-editorial .search-field input {
    height: 42px;
    padding-right: 48px;
    font-size: 15px;
  }

  .theme-pixel-editorial .clear-search {
    right: 1px;
    width: 44px;
    height: 44px;
    background: transparent;
  }

  .theme-pixel-editorial .control-actions {
    display: flex;
    justify-content: center;
  }

  .theme-pixel-editorial .control-actions .reset-button {
    width: auto;
    min-height: 44px;
    padding: 5px 8px;
    border: 0;
    color: var(--ink-soft);
    background: transparent;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .theme-pixel-editorial .control-actions .reset-button:hover,
  .theme-pixel-editorial .control-actions .reset-button:focus-visible {
    color: var(--ink);
    background: transparent;
    text-decoration-thickness: 2px;
  }

  .theme-pixel-editorial .filter-group,
  .theme-pixel-editorial .sort-strip,
  .theme-pixel-editorial .filter-summary {
    padding-right: 0;
    padding-left: 0;
  }

  .theme-pixel-editorial .filter-groups {
    margin-top: 0;
  }

  .theme-pixel-editorial .filter-group {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .theme-pixel-editorial .filter-label {
    margin-bottom: 7px;
    text-align: center;
  }

  .theme-pixel-editorial .sort-strip {
    padding-top: 12px;
    padding-bottom: 0;
    border-top: 0;
  }

  .theme-pixel-editorial .filter-summary {
    gap: 8px;
  }

  .theme-pixel-editorial .active-filter-chip,
  .theme-pixel-editorial .clear-active-filters {
    min-height: 44px;
    margin: 0;
    border-color: var(--line);
  }

  .theme-pixel-editorial .record-row {
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* 手机端记录行只保留编号、结论、来源与展开钮，其余字段进详情再看 */
  .theme-pixel-editorial .record-row td[data-label="记录时间"],
  .theme-pixel-editorial .record-row td[data-label="标签"],
  .theme-pixel-editorial .record-row td[data-label="评论"] {
    display: none;
  }

  .theme-pixel-editorial .detail-row > td {
    border: 1px solid var(--line-strong);
  }

  .theme-pixel-editorial .detail-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .theme-pixel-editorial .header-logo {
    width: 76px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .theme-pixel-editorial .header-share {
    padding-right: 12px;
    padding-left: 12px;
  }

  .theme-pixel-editorial .header-share span {
    display: none;
  }

  .theme-pixel-editorial .editorial-visual {
    min-height: 64svh;
  }

  .theme-pixel-editorial .rail-block {
    padding: 22px 18px;
  }

  .theme-pixel-editorial .rail-label {
    margin: -22px -18px 18px;
  }

  .theme-pixel-editorial .section-heading > div,
  .theme-pixel-editorial .section-heading > p {
    padding: 18px;
  }

  .theme-pixel-editorial .section-heading h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .theme-pixel-editorial .highlight-grid {
    grid-template-columns: 1fr;
  }

  .theme-pixel-editorial .highlights,
  .theme-pixel-editorial.page-videos .highlights,
  .theme-pixel-editorial .ledger-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 60px;
  }

  .theme-pixel-editorial .control-actions button,
  .theme-pixel-editorial .reset-button,
  .theme-pixel-editorial .export-button {
    border: 0;
  }

  .theme-pixel-editorial footer > * {
    min-height: auto;
  }

  .theme-pixel-editorial footer > p,
  .theme-pixel-editorial footer > a {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-pixel-editorial *,
  .theme-pixel-editorial *::before,
  .theme-pixel-editorial *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
