/* Edition v7.1.2 — SVGN-Style Scrollable SAN & SIT vs. Author Comparison Feed Box + Click-Anywhere Story Reader.
   Zero external dependencies; supports both dark (rgb) and light (paper) themes cleanly. */
.v71-feed-shell {
  margin: 18px 0 28px;
  border: 1px solid var(--ci-glass-line, rgba(140, 175, 220, 0.30));
  border-radius: 22px;
  background: var(--ci-glass, rgba(10, 20, 38, 0.72));
  box-shadow: var(--ci-shadow, 0 24px 60px -24px rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  overflow: hidden;
}
.v71-feed-top {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--ci-glass-line, rgba(140, 175, 220, 0.24));
  background: rgba(6, 14, 28, 0.32);
}
html[data-cmp-theme="paper"] .v71-feed-top {
  background: rgba(255, 255, 255, 0.65);
}
.v71-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.v71-dir-head h2 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
}
.v71-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.v71-dir-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.v71-dir-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.v71-dir-stat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ci-ink3, #9eb4ce);
}

/* Scrollable News-Feed Viewport Box (like SVGN.io feed box — scroll smoothly through ALL 372 cards!) */
.v71-feed-viewport {
  height: 76vh;
  min-height: 540px;
  max-height: 920px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 214, 201, 0.55) rgba(255, 255, 255, 0.06);
}
.v71-feed-shell.v71-expanded .v71-feed-viewport {
  height: auto;
  max-height: none;
  overflow-y: visible;
}
.v71-feed-viewport::-webkit-scrollbar {
  width: 10px;
}
.v71-feed-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}
.v71-feed-viewport::-webkit-scrollbar-thumb {
  background: rgba(63, 214, 201, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.v71-feed-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(63, 214, 201, 0.78);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Feed Grid inside the Box */
.v71-feed-viewport > .editions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 15px;
  margin: 0 !important;
}
.v71-feed-viewport > .editions > article {
  position: relative;
  min-width: 0;
  padding: 18px 18px 15px 22px;
  border: 1px solid var(--ci-glass-line, rgba(140, 175, 220, 0.25));
  border-radius: 16px;
  overflow: hidden;
  background: var(--ci-glass, rgba(14, 26, 48, 0.72));
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}
.v71-feed-viewport > .editions > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ci-c, #4d8dff);
}
.v71-feed-viewport > .editions > article:nth-child(4n+2) { --ci-c: #2fe08a; }
.v71-feed-viewport > .editions > article:nth-child(4n+3) { --ci-c: #ff5c6c; }
.v71-feed-viewport > .editions > article:nth-child(4n+4) { --ci-c: #ffc857; }
.v71-feed-viewport > .editions > article:hover,
.v71-feed-viewport > .editions > article:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ci-c, #3fd6c9);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.76), 0 0 0 1px var(--ci-c, #3fd6c9);
  outline: none;
}
.v71-feed-viewport > .editions > article h2 {
  margin: 0 0 6px;
  font: 800 18.5px/1.22 var(--ci-serif, Georgia, serif);
  color: var(--ci-ink, #f3f7fc);
}
.v71-feed-viewport > .editions > article h2 a {
  color: inherit;
  text-decoration: none;
}
.v71-feed-viewport > .editions > article:hover h2 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.v71-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}
.v71-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  border: 1px solid var(--ci-glass-line, rgba(140, 175, 220, 0.32));
  color: var(--ci-ink, #eef3fb);
  background: rgba(77, 141, 255, 0.14);
}
.v71-chip.win { background: rgba(47, 224, 138, 0.16); border-color: rgba(47, 224, 138, 0.45); }
.v71-chip.bt { background: rgba(255, 200, 87, 0.18); border-color: rgba(255, 200, 87, 0.48); }
.v71-chip.dom { background: rgba(169, 173, 255, 0.16); border-color: rgba(169, 173, 255, 0.38); }
.v71-card-authors {
  font-size: 12px;
  color: var(--ci-ink3, #9db2cc);
  margin: 0 0 6px;
  line-height: 1.4;
}
.v71-card-sum {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ci-ink2, #d4e0ef);
  margin: 0 0 8px;
  flex: 1;
}
.v71-card-fams {
  font-size: 11.5px;
  color: var(--ci-ink3, #9db2cc);
  margin: 0 0 8px;
  line-height: 1.45;
}
.v71-card-actions {
  font-size: 12px;
  line-height: 1.5;
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--ci-glass-line, rgba(140, 175, 220, 0.2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.v71-card-open-hint {
  font-weight: 700;
  color: #3fd6c9;
}
html[data-cmp-theme="paper"] .v71-card-open-hint {
  color: #00695f;
}

/* SVGN-Style Full-Screen Story Reader Modal Overlay */
.v71-reader-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(4, 10, 22, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 28px);
  overflow-y: auto;
}
.v71-reader-backdrop.open {
  display: flex;
}
.v71-reader-sheet {
  width: min(1040px, 100%);
  margin: 0 auto 24px;
  border-radius: 22px;
  border: 1px solid rgba(150, 205, 255, 0.25);
  background: #0d1829;
  color: #edf3fc;
  box-shadow: 0 36px 80px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
html[data-cmp-theme="paper"] .v71-reader-sheet {
  background: #fbfaf5;
  color: #121c27;
  border-color: rgba(25, 60, 100, 0.2);
}
.v71-reader-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px;
  background: #091220;
  border-bottom: 1px solid rgba(150, 205, 255, 0.22);
}
html[data-cmp-theme="paper"] .v71-reader-bar {
  background: #f2efe6;
  border-bottom-color: rgba(25, 60, 100, 0.16);
}
.v71-reader-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.v71-reader-btn {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(150, 205, 255, 0.34);
  background: rgba(77, 141, 255, 0.14);
  color: inherit;
  font: 650 12.5px/1.2 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.v71-reader-btn:hover {
  border-color: #3fd6c9;
  background: rgba(63, 214, 201, 0.2);
}
.v71-reader-btn.primary {
  background: rgba(47, 224, 138, 0.2);
  border-color: rgba(47, 224, 138, 0.55);
}
.v71-reader-btn.close {
  background: rgba(255, 92, 108, 0.18);
  border-color: rgba(255, 92, 108, 0.5);
}
.v71-reader-body {
  padding: clamp(18px, 3vw, 34px);
}
.v71-reader-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3fd6c9;
  margin: 0 0 6px;
}
html[data-cmp-theme="paper"] .v71-reader-eyebrow {
  color: #00695f;
}
.v71-reader-title {
  margin: 0 0 10px;
  font: 800 clamp(22px, 3.2vw, 34px)/1.14 var(--ci-serif, Georgia, serif);
}
.v71-reader-lead {
  font-size: 15.5px;
  line-height: 1.62;
  padding: 14px 16px;
  border-left: 4px solid #2fe08a;
  background: rgba(47, 224, 138, 0.08);
  border-radius: 0 12px 12px 0;
  margin: 12px 0 16px;
}
.v71-reader-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.v71-reader-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(150, 205, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
html[data-cmp-theme="paper"] .v71-reader-card {
  background: #ffffff;
  border-color: rgba(25, 60, 100, 0.15);
}
.v71-reader-row {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(150, 205, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 12px;
}
html[data-cmp-theme="paper"] .v71-reader-row {
  background: #ffffff;
  border-color: rgba(25, 60, 100, 0.15);
}
.v71-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.v71-q-san {
  padding: 10px 12px;
  border-left: 3px solid #2fe08a;
  background: rgba(47, 224, 138, 0.07);
  border-radius: 0 8px 8px 0;
}
.v71-q-tgt {
  padding: 10px 12px;
  border-left: 3px solid #ffc857;
  background: rgba(255, 200, 87, 0.08);
  border-radius: 0 8px 8px 0;
}
.v71-reader-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 10px;
}
@media (max-width: 640px) {
  .v71-feed-viewport {
    height: 70vh;
    min-height: 420px;
    padding: 12px;
  }
  .v71-reader-backdrop {
    padding: 6px;
  }
}
