/* === V2 — TCI-inspired black/white editorial === */
/* Loads after app.css on v2 pages only. */

/* White background everywhere on v2 */
html { background: #fff; }
body { background: #fff; }
nav.topbar { background: #fff; border-bottom: 1px dotted #000; }
nav.topbar a { color: #000; }
main { background: #fff; }
.site-footer { background: #fff; border-top: 1px dotted #000; }

/* ---- Outer containers ---- */
.v2-discovery,
.v2-bento {
  max-width: 100%;
  margin: 0;
  padding: 20px 20px 64px;
}

.v2-item-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ---- Header ---- */
.v2-feed-header,
.v2-bento-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dotted #000;
}

.v2-site-title { font-size: 1.3rem; margin-bottom: 4px; }
.v2-site-title a { color: #000; text-decoration: none; }
.v2-site-tagline { color: #666; font-size: 0.82rem; }

.v2-bento-name { font-size: 1.3rem; margin-bottom: 5px; }
.v2-bento-bio { color: #555; font-size: 0.85rem; line-height: 1.5; }

/* ---- Tag filter nav ---- */
.v2-tag-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.v2-tag-filter {
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 1px solid #000;
  border-radius: 0;
  color: #000;
  text-decoration: none;
  background: #fff;
}

.v2-tag-filter:hover,
.v2-tag-filter.active {
  background: #000;
  color: #fff;
  border-color: #000;
  text-decoration: none;
}

.v2-discovery-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.v2-filter-panel {
  border: 1px dotted #000;
  background: #fff;
}

.v2-filter-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.82rem;
  user-select: none;
}

.v2-filter-summary::-webkit-details-marker {
  display: none;
}

.v2-filter-summary-icon {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.v2-filter-panel[open] .v2-filter-summary-icon {
  transform: rotate(180deg);
}

.v2-filter-summary-note {
  color: #666;
}

.v2-filter-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 0 12px 12px;
  border-top: 1px dotted #000;
}

.v2-filter-group {
  min-width: 0;
}

.v2-filter-group-title {
  margin: 10px 0 8px;
  font-size: 0.8rem;
  font-weight: normal;
  text-decoration: underline;
}

.v2-filter-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.v2-filter-link {
  color: #000;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.v2-filter-link:hover,
.v2-filter-link.active {
  border-bottom-color: #000;
  text-decoration: none;
}

.v2-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v2-search-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px dotted #000;
  background: #fff;
  color: #000;
  font: inherit;
  border-radius: 0;
}

.v2-search-input::placeholder { color: #888; }

.v2-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.v2-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.v2-topic-card {
  display: block;
  border: 1px dotted #000;
  padding: 14px;
  color: #000;
  text-decoration: none;
  background: #fff;
}

.v2-topic-card:hover {
  border-style: solid;
  background: #f2f2f2;
  text-decoration: none;
}

.v2-topic-name {
  font-size: 1rem;
  font-weight: normal;
  margin: 0 0 10px;
}

.v2-topic-description {
  color: #555;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.v2-topic-count {
  color: #999;
  font-size: 0.75rem;
  margin: 0;
}

.v2-discovery-section {
  margin-bottom: 24px;
}

.v2-surface-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 270px);
  gap: 10px;
}

.v2-surface-card {
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  border: 1px dotted #000;
}

.v2-surface-card:hover {
  background: #fafafa;
  border: 1px solid #000;
}

.v2-surface-thumb {
  display: block;
  width: calc(100% + 28px);
  height: 130px;
  margin: -14px -14px 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f7f7f7;
}

.v2-surface-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-surface-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.v2-surface-card .v2-item-meta {
  margin-top: 0;
}

.v2-surface-title {
  flex: initial;
  margin-top: 8px;
}

.v2-surface-title a {
  color: #000;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.v2-surface-title a:hover {
  text-decoration: underline;
}

.v2-surface-title a::after {
  display: none;
}

.v2-surface-description {
  display: block;
  color: #555;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* ---- Card grid: auto-fill 270px columns, partial last row stays at fixed width ---- */
.v2-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 270px);
  gap: 10px;
}

.v2-item-card {
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 270px;
  border: 1px dotted #000;
  position: relative;
  cursor: pointer;
}

.v2-item-card:hover {
  background: #fafafa;
  border: 1px solid #000;
}
.v2-item-card:hover .v2-item-title a { text-decoration: none; }

/* Thumbnail — fills top of card when a valid preview image is present. */
.v2-item-thumb {
  display: block;
  width: calc(100% + 28px);
  height: 130px;
  margin: -14px -14px 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f7f7f7;
}

.v2-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-item-card.pinned { background: #fafafa; }
.v2-item-card.pinned:hover { background: #f2f2f2; border: 1px solid #000; }

.v2-item-title {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.42;
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.v2-item-title a {
  color: #000;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.v2-item-card:has(.v2-item-thumb) .v2-item-title a { -webkit-line-clamp: 4; }

/* ::after covers the full card, making it entirely clickable */
.v2-item-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.v2-item-bento-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border: 1px dotted #000;
  background: #fff;
  color: #000;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
}

.v2-item-bento-badge:hover {
  background: #f2f2f2;
  color: #000;
  text-decoration: none;
}

/* No tags in grid — title + date only, like TCI */
.v2-item-tags { display: none; }

.v2-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 16px;
  margin-bottom: 0;
}

.v2-pin {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  font-weight: bold;
}

.v2-meta-sep { color: #ccc; }
.v2-bento-link { color: #aaa; text-decoration: none; }
.v2-item-bento-badge.v2-bento-link { color: #000; }
.v2-bento-link:hover { color: #000; }
.v2-item-date { color: #aaa; }
.v2-item-excerpt { display: none; }

.v2-related-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dotted #000;
}

.v2-related-section h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.v2-related-section .v2-item-list {
  justify-content: start;
}

.v2-bento-overview-card {
  border: 1px dotted #000;
  padding: 14px;
  background: #fff;
}

.v2-bento-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.v2-card-chip {
  display: inline-block;
  padding: 3px 8px;
  border: 1px dotted #000;
  color: #000;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.2;
  background: #fff;
}

.v2-card-chip:hover {
  background: #f2f2f2;
  color: #000;
  text-decoration: none;
}

.v2-bento-overview-card .v2-topic-name {
  margin: 0 0 10px;
}

.v2-bento-overview-card .v2-topic-name a {
  color: #000;
  text-decoration: none;
}

.v2-bento-overview-card .v2-topic-name a:hover {
  text-decoration: underline;
}

.v2-bento-overview-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dotted #000;
}

.v2-bento-overview-link {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.v2-bento-overview-link a {
  color: #000;
  text-decoration: none;
}

.v2-bento-overview-link a:hover {
  text-decoration: underline;
}

.v2-search-section {
  margin-bottom: 26px;
}

.v2-search-section-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  margin: 0 0 10px;
}

.v2-empty {
  grid-column: 1 / -1;
  background: #fff;
  color: #999;
  padding: 32px 20px;
  font-size: 0.88rem;
}

.v2-empty-state {
  max-width: 720px;
  margin: 64px auto 96px;
}

.v2-empty-state h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
}

.v2-empty-state p {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.7;
}

.v2-pagination { margin-top: 20px; }

.v2-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 0.82rem;
  background: #fff;
  border-radius: 0;
}

.v2-btn:hover { background: #000; color: #fff; text-decoration: none; }

/* ---- Private Figma-style redesign draft ---- */
.v2-figma-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #f7f7f7;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

.v2-figma-app a {
  color: inherit;
  text-decoration: none;
}

.v2-figma-app input,
.v2-figma-app button {
  font-family: inherit;
}

.v2-figma-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 14px 10px;
  border-right: 1px solid #e2e2e2;
  background: #fff;
}

.v2-figma-account {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 4px 6px 14px;
}

.v2-figma-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1f7aec;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.v2-figma-account strong,
.v2-figma-account span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-figma-account strong {
  font-size: 0.86rem;
}

.v2-figma-account span {
  color: #777;
  font-size: 0.72rem;
}

.v2-figma-search {
  margin: 0 4px 10px;
}

.v2-figma-search input {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f1f1f1;
  color: #222;
  font: inherit;
  font-size: 0.82rem;
}

.v2-figma-search input:focus {
  outline: 2px solid #8ec5ff;
  background: #fff;
}

.v2-figma-nav,
.v2-figma-sidebar-section nav {
  display: grid;
  gap: 2px;
}

.v2-figma-nav {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.v2-figma-nav a,
.v2-figma-sidebar-section a {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 7px;
  color: #333;
  font-size: 0.82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-figma-nav a:hover,
.v2-figma-sidebar-section a:hover,
.v2-figma-nav a.active {
  background: #e8f3ff;
}

.v2-figma-sidebar-section {
  padding-top: 14px;
}

.v2-figma-sidebar-section h2 {
  margin: 0 10px 7px;
  color: #777;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v2-figma-main {
  min-width: 0;
  padding: 0 28px 54px;
}

.v2-figma-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  margin: 0 -28px 18px;
  padding: 14px 28px;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(247, 247, 247, 0.94);
  backdrop-filter: blur(10px);
}

.v2-figma-topbar p {
  margin: 0 0 3px;
  color: #777;
  font-size: 0.75rem;
}

.v2-figma-topbar h1 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.v2-figma-actions,
.v2-figma-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.v2-figma-actions a,
.v2-figma-sort span,
.v2-figma-section-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #fff;
  color: #333;
  font-size: 0.76rem;
  font-weight: 500;
}

.v2-figma-actions a.active {
  border-color: #b9dbff;
  background: #e8f3ff;
  color: #0b5db8;
}

.v2-figma-recommended {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 12px;
  background: #f0f0f0;
}

.v2-figma-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.v2-figma-section-head h2 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.v2-figma-section-head > a {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: #1f7aec;
}

.v2-figma-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.v2-figma-strip .v2-surface-card,
.v2-figma-grid .v2-item-card {
  border: 1px solid #dfdfdf;
  border-radius: 9px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.v2-figma-strip .v2-surface-card:hover,
.v2-figma-grid .v2-item-card:hover {
  border-color: #c8c8c8;
  background: #fff;
}

.v2-figma-grid-section {
  min-width: 0;
}

.v2-figma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

.v2-figma-grid .v2-item-card {
  height: 252px;
  overflow: hidden;
}

.v2-figma-grid .v2-item-thumb {
  height: 126px;
}

/* ---- Digest pages ---- */
.v2-digest-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.v2-digest-page .v2-bento-header {
  margin-bottom: 28px;
}

.v2-digest-page .v2-digest-leads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-digest-page .v2-digest-card {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.v2-digest-page .v2-digest-card:first-child {
  padding-top: 0;
  border-top: none;
}

.v2-digest-page .v2-digest-thumb {
  display: block;
  background: #f6f6f6;
}

.v2-digest-page .v2-digest-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v2-digest-page .v2-digest-body {
  min-width: 0;
}

.v2-digest-page .v2-digest-card .v2-item-title {
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.45;
  margin: 8px 0 10px;
  flex: initial;
}

.v2-digest-page .v2-digest-card .v2-item-title a {
  display: block;
  color: #000;
  text-decoration: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.v2-digest-page .v2-digest-card .v2-item-title a:hover {
  text-decoration: underline;
}

.v2-digest-page .v2-digest-card .v2-item-title a::after {
  display: none;
}

.v2-digest-page .v2-item-excerpt {
  display: block;
  color: #555;
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.v2-digest-page .v2-item-tags {
  display: flex;
  flex-wrap: wrap;
}

.v2-digest-page .v2-item-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.v2-digest-page .v2-item-card {
  height: auto;
  min-height: 220px;
}

/* ---- Report pages ---- */
.v2-report-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.v2-report-page .v2-bento-header {
  margin-bottom: 28px;
}

.v2-report-meta {
  color: #999;
  font-size: 0.76rem;
  margin: 0 0 8px;
}

.v2-report-angle {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.v2-report-page .v2-report-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-report-page .v2-report-signal {
  border: 1px solid #000;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: #fff;
}

.v2-report-page .v2-report-leads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-report-page .v2-report-lead {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

.v2-report-page .v2-report-lead:first-child {
  padding-top: 0;
  border-top: none;
}

.v2-report-page .v2-report-lead-thumb {
  display: block;
  background: #f6f6f6;
  order: 2;
}

.v2-report-page .v2-report-lead-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v2-report-page .v2-report-lead-body {
  min-width: 0;
  order: 1;
}

.v2-report-page .v2-report-lead--no-image {
  grid-template-columns: 1fr;
}

.v2-report-page .v2-report-lead--section:first-child {
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.v2-report-page .v2-report-lead--section .v2-report-lead-title {
  font-size: 0.98rem;
  margin: 8px 0 8px;
}

.v2-report-page .v2-report-lead--section .v2-report-lead-excerpt {
  margin: 0 0 10px;
}

.v2-report-page .v2-report-lead-title {
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.45;
  margin: 8px 0 10px;
}

.v2-report-page .v2-report-lead-title a {
  color: #000;
  text-decoration: none;
}

.v2-report-page .v2-report-lead-title a:hover {
  text-decoration: underline;
}

.v2-report-page .v2-report-lead-excerpt {
  display: block;
  color: #555;
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.v2-report-page .v2-item-tags {
  display: flex;
  flex-wrap: wrap;
}

.v2-report-page .v2-item-meta {
  margin-top: 0;
}

/* ---- Item page ---- */
.v2-item-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.v2-item-page-title {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: normal;
}

.v2-item-page-title a {
  color: #003cff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

.v2-item-page-title a:hover {
  text-decoration-thickness: 2px;
}

.v2-item-og-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border: 1px dotted #000;
}

.v2-item-og-image-link {
  display: block;
  margin-bottom: 32px;
}

/* Meta row: date · tags · source — sits between title and body */
.v2-item-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #999;
  border-top: 2px solid #000;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  margin-bottom: 32px;
}

.v2-item-meta-row a { color: #003cff; }
.v2-item-meta-row .v2-tag { display: inline; color: #999; font-size: 0.78rem; }
.v2-item-meta-row .v2-tag::before { content: "#"; }

.v2-video-note {
  margin: -16px 0 28px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.v2-video-note a { color: #003cff; }
.v2-video-note-copy { color: #666; }

.v2-item-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #000;
}

.v2-item-body h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2em 0 0.5em;
  color: #000;
}

.v2-item-body h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 1.5em 0 0.4em;
  color: #000;
}

.v2-item-body p { margin: 0 0 0.9em; }
.v2-item-body ul, .v2-item-body ol { margin: 0 0 0.9em 1.4em; }
.v2-item-body li { margin-bottom: 0.35em; line-height: 1.6; }
.v2-item-body a { color: #003cff; }
.v2-item-body a:hover { text-decoration: none; }
.v2-item-body strong { font-weight: bold; }

.v2-item-body blockquote {
  border-left: 2px solid #000;
  padding-left: 1em;
  color: #555;
  margin: 1em 0;
  font-style: italic;
}

.v2-item-body pre, .v2-item-body code {
  font-family: var(--courier);
  background: #f0f0f0;
  padding: 2px 5px;
  font-size: 0.88em;
}

.v2-item-body pre { padding: 14px; overflow-x: auto; margin: 1em 0; }
.v2-item-body pre code { background: none; padding: 0; }

.v2-source-figures {
  margin-top: 36px;
}

.v2-source-figures h2 {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 14px;
}

.v2-source-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.v2-source-figure-card {
  display: block;
  color: #000;
  text-decoration: none;
}

.v2-source-figure-card:hover p {
  text-decoration: underline;
}

.v2-source-figure-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px dotted #000;
  margin-bottom: 8px;
}

.v2-source-figure-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #444;
}

/* Legacy source/back — replaced by bottom nav */
.v2-item-source { display: none; }
.v2-back { display: none; }

/* ---- Bottom navigation: Previous | Random | Next (TCI-style) ---- */
.v2-item-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #000;
  border: 1px solid #000;
  margin-top: 56px;
  font-size: 0.85rem;
}

.v2-nav-btn {
  background: #fff;
  padding: 18px 20px;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}

.v2-nav-btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.v2-nav-btn:hover .v2-nav-label { color: #aaa; }

.v2-nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
}

.v2-nav-title {
  font-size: 0.88rem;
  line-height: 1.35;
}

.v2-nav-center {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.v2-nav-right {
  text-align: right;
  align-items: flex-end;
}

.v2-nav-disabled {
  background: #f8f8f8;
  color: #ccc;
  cursor: default;
  padding: 18px 20px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-nav-disabled .v2-nav-label { color: #ddd; }

@media (max-width: 900px) {
  .v2-figma-app {
    display: block;
  }

  .v2-figma-sidebar {
    position: static;
    height: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #e2e2e2;
  }

  .v2-figma-nav,
  .v2-figma-sidebar-section nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }

  .v2-figma-sidebar-section {
    padding-top: 10px;
  }

  .v2-figma-sidebar-section h2 {
    margin-top: 0;
  }

  .v2-figma-main {
    padding: 0 14px 44px;
  }

  .v2-figma-topbar {
    position: static;
    margin: 0 -14px 14px;
    padding: 12px 14px;
  }
}

/* Mobile — single column cards */
@media (max-width: 640px) {
  .v2-discovery, .v2-bento { padding: 14px 12px 40px; }
  .v2-digest-page { padding: 18px 12px 40px; }
  .v2-digest-page .v2-digest-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v2-report-page { padding: 18px 12px 40px; }
  .v2-report-page .v2-report-lead {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v2-item-page { padding: 20px 14px 60px; }
  .v2-item-list { grid-template-columns: 1fr; }
  .v2-surface-list { grid-template-columns: 1fr; }
  .v2-topic-grid { grid-template-columns: 1fr; }
  .v2-item-card { height: auto; min-height: 200px; }
  .v2-surface-card { min-height: 200px; }
  .v2-item-page-title { font-size: 1.35rem; }
  .v2-item-nav { grid-template-columns: 1fr; }
  .v2-bento-name { font-size: 1.1rem; }
  .v2-search-form { align-items: stretch; }
  .v2-search-form .v2-btn { text-align: center; }
  .v2-filter-groups { grid-template-columns: 1fr; }
  .v2-figma-account {
    padding-bottom: 10px;
  }
  .v2-figma-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .v2-figma-actions,
  .v2-figma-sort {
    justify-content: flex-start;
  }
  .v2-figma-recommended {
    margin: 0 -2px 22px;
    padding: 12px;
    border-radius: 10px;
  }
  .v2-figma-strip {
    grid-auto-columns: 240px;
  }
  .v2-figma-grid {
    grid-template-columns: 1fr;
  }
  .v2-figma-grid .v2-item-card {
    height: auto;
    min-height: 210px;
  }
}
