/* MindBento — special.fish aesthetic */

:root {
  --times: 'Times New Roman', Times, serif;
  --courier: Courier, 'Courier New', monospace;
  --text-color: #000;
  --bg-color: #d0d0d0;
  --link-color: #004de5;
  --nav-bg: #e6e6e6;
  --cream: rgb(255, 252, 239);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--courier);
  font-size: 15px;
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
}

body { margin: 0; padding: 0; }

a {
  color: var(--link-color);
  word-break: break-word;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img { max-width: 100%; display: block; }

/* === Nav === */
nav.topbar {
  background-color: var(--nav-bg);
  padding: 4px 8px 6px 8px;
  display: flex;
  margin: 0;
  border-bottom: 1px solid #dadada;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin-right: 8px;
}

.nav-right {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.nav-search-link {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dotted #000;
  color: #000;
  text-decoration: none;
  line-height: 1.2;
}

.nav-search-link.active,
.nav-search-link:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.nav-language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-language-link {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dotted #000;
  color: #000;
  text-decoration: none;
  line-height: 1.2;
}

.nav-language-link.active,
.nav-language-link:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
}

.nav-left a {
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

.nav-left a:not(.nav-brand):not(.nav-mode):last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-brand {
  font-weight: normal;
}

.nav-sep {
  color: #666;
  margin: 0 4px;
  white-space: nowrap;
}

.nav-dot {
  color: #999;
  margin: 0 4px;
}

.nav-mode {
  color: #999;
  text-decoration: none;
}

.nav-mode.active {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 535px) {
  nav.topbar {
    flex-flow: column nowrap;
    gap: 10px;
    font-size: 18px;
    padding: 10px;
  }
  .nav-right {
    margin-left: initial;
  }
}

/* === Main === */
main {
  position: relative;
  padding: 0;
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background-color: var(--bg-color);
}

/* === Plot (cell) base === */
.plot {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  display: flex;
}

a.plot {
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

a.plot:hover {
  text-decoration: none;
  color: #000;
  background-color: #f0f0f0;
}

a.plot.bento:hover,
a.plot.attachment:hover {
  background-color: unset;
  opacity: 0.85;
}

a.plot.link-preview:hover {
  background-color: #f5f5f5;
}

.plot a:hover {
  text-decoration: none;
}

/* === Plot: Text === */
.plot.text {
  background-color: #fff;
}

.plot.text .text-content {
  padding: 10px;
  overflow: hidden;
}

.plot.text .text-title {
  font-family: var(--courier);
  font-weight: bold;
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 6px;
  color: #000;
}

pre.text-body {
  font-family: var(--courier);
  font-size: 13px;
  line-height: 18px;
  color: #000;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}


/* === Plot: PDF card === */
.plot.pdf-card {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.plot.pdf-card .pdf-icon {
  font-family: var(--courier);
  font-size: 32px;
  font-weight: bold;
  color: #d32f2f;
  background: #fce4ec;
  border: 2px solid #d32f2f;
  border-radius: 6px;
  padding: 8px 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.plot.pdf-card .pdf-info {
  padding: 0 10px;
  font-family: var(--courier);
  font-size: 13px;
  line-height: 18px;
}

.plot.pdf-card .pdf-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.plot.pdf-card .pdf-domain {
  color: #888;
  font-size: 12px;
}

.plot.pdf-card:hover {
  background-color: #f5f5f5;
}


/* === Plot cell wrapper — holds the main plot anchor + optional source-tag anchor as siblings === */
.plot-cell {
  position: relative;
  display: block;
}

/* === Source tag (same on ALL card types) — real <a> for CMD+click/status bar === */
.plot-source {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
}

.source-tag {
  font-family: var(--courier);
  font-size: 11px;
  color: #fff;
  padding: 3px 6px;
  opacity: 0.85;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-block;
}

a.source-tag:hover {
  opacity: 1;
  text-decoration: none;
  color: #fff;
}

/* === Plot: Image / attachment === */
.plot.attachment img,
.plot.attachment video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Plot: Link preview (og:image + title) === */
.plot.link-preview {
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.plot.link-preview .link-preview-img {
  overflow: hidden;
  padding: 15px 15px 0;
  aspect-ratio: 1200 / 630;
}

.plot.link-preview .link-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #e6e6e6;
}

.plot.link-preview .link-preview-info {
  padding: 4px 10px;
  font-family: var(--courier);
  font-size: 14px;
  line-height: 19px;
  text-align: center;
}

.plot.link-preview .link-preview-title {
  font-weight: bold;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 2px;
}

.plot.link-preview .link-preview-url {
  color: var(--link-color);
  text-decoration: underline;
  font-size: 11px;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* === Plot: Link === */
.plot.link {
  background-color: #fff;
}

.plot.link .link-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 10px;
  height: 100%;
}

.plot.link .link-thumbnail {
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e6e6e6;
}

.plot.link .link-url {
  font-family: var(--courier);
  font-size: 16px;
  color: blue !important;
  word-break: break-word;
  text-align: center;
  line-height: 1.3;
  text-decoration: underline;
}

/* === Plot: Bento (full color bg, name centered) === */
a.plot.bento {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plot.bento .bento-name {
  font-family: var(--courier);
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding: 0 10px;
}

.plot.bento .bento-meta {
  font-family: var(--courier);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* === Plot: Channel === */
.plot.channel {
  background-color: #f8f8f8;
}

a.plot.channel {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plot.channel .channel-emoji {
  font-size: 32px;
  line-height: 1;
}

.plot.channel .channel-title {
  font-family: var(--courier);
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-align: center;
  padding: 0 10px;
}

.plot.channel .channel-meta {
  font-family: var(--courier);
  font-size: 14px;
  color: #666;
}

.plot.channel .channel-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  opacity: 0.4;
}

/* === Caption pills (overlaid on images) === */
.plot-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  line-height: 19px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.plot-caption span {
  font-family: var(--courier);
  font-size: 11px;
  color: #000;
  background: #fff;
  padding: 3px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.plot-caption-top,
.plot-label-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  line-height: 19px;
  z-index: 1;
}

.plot-caption-top span,
.plot-label-top span {
  font-family: var(--courier);
  font-size: 11px;
  color: #000;
  background: rgba(255,255,255,0.85);
  padding: 3px 6px;
  border: 1px solid rgba(0,0,0,0.3);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.plot-badge-corner {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 1;
  font-family: var(--courier);
  font-size: 11px;
  font-weight: bold;
  color: #d32f2f;
  background: rgba(255,255,255,0.9);
  padding: 3px 6px;
  border: 1px solid #d32f2f;
}

/* === Options (fixed bottom-right) === */
.grid-options {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 0;
  background: #eaeaea;
  border: 1px solid #676767;
  font-family: var(--courier);
  font-size: 16px;
  z-index: 100;
}

.grid-option {
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.grid-option:first-child {
  border-right: 1px solid #676767;
}

.grid-option:hover {
  text-decoration: none;
  background: #ddd;
}

.grid-option.active {
  font-weight: bold;
}

/* === Reading view (item detail) === */
.reading {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.reading-wrap {
  background: #fff;
  min-height: 100dvh;
}


.reading h1 {
  font-family: var(--courier);
  font-size: 19px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 6px;
}

.reading-meta-table {
  font-family: var(--courier);
  font-size: 13px;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.reading-meta-table td {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.reading-meta-table .meta-key {
  color: #999;
  width: 120px;
  padding-right: 24px;
}

.reading-meta-table .meta-value {
  color: #333;
}

pre.reading-body {
  font-family: var(--courier);
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.reading-body th { background: #f9f9f9; font-weight: bold; }

.reading-body-html {
  font-family: var(--courier);
  font-size: 16px;
  line-height: 24px;
}

.reading-body-html h2 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.reading-body-html ul {
  padding-left: 20px;
  margin: 8px 0;
}

.reading-body-html li {
  margin-bottom: 8px;
}

.reading-body-html p {
  margin: 8px 0;
}

.reading-body-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.reading-body-html th,
.reading-body-html td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}

.reading-body-html th {
  background: #f5f5f5;
  font-weight: bold;
}

.reading-body-html a {
  color: #2563eb;
  text-decoration: underline;
}

.reading-body-html a:hover {
  color: #1d4ed8;
}


/* PDF in reading view — embedded viewer */
.reading-pdf {
  background: #fff;
  padding: 20px;
}

.reading-pdf embed {
  width: 100%;
  height: 80vh;
  max-height: 700px;
  border: 1px solid #dadada;
}

/* Image in reading view — full width, outside narrow container */
.reading-image {
  text-align: center;
  background: #fff;
  padding: 20px 0;
}

.reading-image img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: inline-block;
}

/* Bookmark in reading view */
.bookmark-preview {
  border: 1px solid #e6e6e6;
  overflow: hidden;
  margin-bottom: 20px;
}

.bookmark-preview img {
  width: 100%;
  aspect-ratio: 1.91;
  object-fit: cover;
}

.reading-title-link {
  color: var(--link-color);
  text-decoration: underline;
}

.bookmark-link {
  display: block;
  font-family: var(--courier);
  font-size: 13px;
  color: var(--link-color);
  text-decoration: underline;
  margin-bottom: 10px;
  word-break: break-all;
}

.bookmark-open {
  display: inline-block;
  margin-top: 16px;
  color: var(--link-color);
  font-size: 14px;
}

/* Divider */
hr {
  border: 0;
  border-bottom: 1px solid #dadada;
  margin: 20px 0;
}

.reading-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background-color: var(--bg-color);
  margin-top: 16px;
}

.back-link {
  display: block;
  padding: 16px 0;
  color: #666;
  font-family: var(--courier);
  font-size: 14px;
}

/* === Bento profile page === */
.private-profile {
  text-align: center;
  padding: 80px 20px;
  font-family: var(--courier);
  color: #999;
}

.private-profile .private-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.private-profile h1 {
  color: #333;
  font-size: 20px;
  margin-bottom: 8px;
}

.start-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.start-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid #dadada;
  text-decoration: none;
  color: #000;
  font-family: var(--courier);
}

.start-option:hover {
  border-color: #999;
  text-decoration: none;
}

.start-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.start-label {
  font-weight: bold;
  font-size: 14px;
}

.start-detail {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.bento-header {
  background: #fff;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #dadada;
}

.bento-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  font-family: var(--courier);
  flex-shrink: 0;
}

.bento-header-info h1 {
  font-family: var(--courier);
  font-size: 22px;
  font-weight: bold;
}

.bento-header-info p {
  font-family: var(--courier);
  font-size: 15px;
  color: #666;
  margin-top: 2px;
}

.bento-header-meta {
  font-family: var(--courier);
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.view-tabs {
  font-family: var(--courier);
  font-size: 14px;
  padding: 8px 8px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-bottom: 1px solid #dadada;
}

.view-tab {
  color: #999;
  text-decoration: none;
}

.view-tab.active {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.view-dot {
  color: #999;
  margin: 0 4px;
}

/* === Channel page header === */
.channel-header {
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #dadada;
}

.channel-header h1 {
  font-family: var(--courier);
  font-size: 22px;
  font-weight: bold;
}

.channel-header p {
  font-family: var(--courier);
  font-size: 15px;
  color: #666;
  margin-top: 4px;
}

.channel-header-meta {
  font-family: var(--courier);
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* === Keys page === */
.keys-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px;
  background: #fff;
  min-height: 100dvh;
}

.keys-page h1 {
  font-family: var(--courier);
  font-size: 24px;
  margin-bottom: 16px;
}

.keys-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.keys-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid gray;
  font-family: var(--courier);
  font-size: 16px;
  min-width: 0;
}

.keys-form button {
  padding: 4px 12px;
  font-family: var(--courier);
  font-size: 15px;
  background: #f7f7f7;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  cursor: pointer;
}

.keys-form button:hover {
  border-color: #9c9c9c;
}

.keys-bentos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.keys-bento-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e6e6e6;
  font-family: var(--courier);
}

.keys-bento-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.keys-bento-link:hover .keys-bento-name {
  text-decoration: underline;
}

.keys-bento-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.keys-bento-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.keys-bento-name {
  font-size: 16px;
  font-weight: bold;
}

.keys-bento-slug {
  font-size: 12px;
  color: #999;
}

.keys-item-remove {
  font-family: var(--courier);
  font-size: 13px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
}

.keys-note {
  font-family: var(--courier);
  font-size: 12px;
  color: #999;
  margin-top: 16px;
  line-height: 1.5;
}

/* Flag button */
.reading-actions {
  margin-top: 16px;
}

.flag-button {
  font-family: var(--courier);
  font-size: 12px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.flag-button:hover {
  color: #c00;
}

.flag-button:disabled {
  color: #999;
  cursor: default;
}

/* Footer */
.site-footer {
  border-top: 1px solid #ccc;
  padding: 16px 8px;
  font-family: var(--courier);
  font-size: 14px;
  color: #999;
}

.reading-wrap + .site-footer,
.reading + .site-footer,
.keys-page + .site-footer {
  background: #fff;
}

.site-footer a {
  color: #999;
  text-decoration: none;
}

.site-footer a:hover {
  color: #333;
}

.footer-sep {
  margin: 0 3px;
  color: #ccc;
}

/* Flash */
.flash {
  padding: 8px;
  max-width: 489px;
  margin: 20px auto;
  font-family: var(--courier);
}

.flash-info { background-color: #e8ffe8; }
.flash-error { background-color: yellow; }

/* Empty state */
.empty {
  background: #fff;
  padding: 48px 20px;
  text-align: center;
  color: #666;
  font-family: var(--courier);
  font-size: 17px;
}

/* Load more */
.load-more {
  display: block;
  max-width: 280px;
  margin: 32px auto;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 16px 24px;
  text-align: center;
  font-family: var(--courier);
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.load-more:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #c5c5c5;
  padding: 10px;
  color: #5a5a5a;
  font-family: var(--courier);
}

footer a {
  text-decoration: none;
  color: #5a5a5a;
}

footer a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .grid-options {
    display: none;
  }
}

/* === Live Badge === */
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #22c55e;
  padding: 6px 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* plot-wrap: transparent grid child so plots lay out normally */
.plot-wrap {
  display: contents;
}

/* new items fade + scale in */
.plot-enter > * {
  animation: plot-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes plot-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* edited items get a brief highlight flash */
.plot-update > * {
  animation: plot-update 0.8s ease both;
}

@keyframes plot-update {
  0% { box-shadow: 0 0 0 2px #22c55e; }
  100% { box-shadow: 0 0 0 2px transparent; }
}

/* === V2 Publication Layout === */

.v2-discovery,
.v2-bento,
.v2-item-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.v2-feed-header,
.v2-bento-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc;
}

.v2-site-title { font-size: 1.6rem; margin-bottom: 4px; }
.v2-site-title a { color: inherit; text-decoration: none; }
.v2-site-tagline { color: #555; font-size: 0.9rem; }

.v2-bento-name { font-size: 1.6rem; margin-bottom: 6px; }
.v2-bento-bio { color: #444; font-size: 0.95rem; line-height: 1.5; }

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

.v2-tag-filter {
  font-size: 0.8rem;
  padding: 3px 10px;
  border: 1px solid #bbb;
  border-radius: 2px;
  color: #333;
  text-decoration: none;
  background: #f5f5f5;
}

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

/* Item list */
.v2-item-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2-item-card {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.v2-item-card.pinned {
  background: #fafafa;
  padding: 16px 12px;
  margin: 0 -12px;
  border-left: 3px solid #000;
  border-bottom: 1px solid #e0e0e0;
}

.v2-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #777;
  margin-bottom: 4px;
}

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

.v2-meta-sep { color: #ccc; }

.v2-bento-link { color: #555; text-decoration: none; }
.v2-bento-link:hover { text-decoration: underline; }

.v2-item-date { color: #999; }

.v2-item-title {
  font-size: 1.05rem;
  font-weight: normal;
  margin: 4px 0;
  line-height: 1.4;
}

.v2-item-title a {
  color: #000;
  text-decoration: none;
}

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

.v2-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.v2-tag {
  font-size: 0.75rem;
  color: #555;
  text-decoration: none;
  background: #eee;
  padding: 2px 7px;
  border-radius: 2px;
}

.v2-tag:hover { background: #ddd; text-decoration: none; }

.v2-item-excerpt {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-top: 6px;
}

.v2-digest-section {
  margin-top: 24px;
}

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

.v2-digest-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v2-digest-card {
  border: 1px solid #e5e5e5;
  padding: 14px;
  background: #fff;
}

.v2-digest-thumb {
  display: block;
  margin-bottom: 12px;
  background: #f6f6f6;
}

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

.v2-digest-body .v2-item-meta {
  margin-top: 0;
  margin-bottom: 6px;
}

.v2-digest-body .v2-item-title {
  font-size: 1rem;
  margin: 0 0 6px;
}

.v2-digest-body .v2-item-excerpt {
  display: block;
}

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

.v2-report-angle {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.6;
  margin-top: 10px;
}

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

.v2-report-signal {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.78rem;
  color: #444;
}

.v2-empty { color: #999; font-size: 0.9rem; padding: 24px 0; }

.v2-pagination { margin-top: 32px; text-align: center; }

.v2-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* Item page */
.v2-item-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc;
}

.v2-item-page-title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: normal;
}

.v2-item-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Basic prose styles within v2 item body */
.v2-item-body h1, .v2-item-body h2, .v2-item-body h3 {
  margin: 1.5em 0 0.5em;
  font-weight: bold;
}

.v2-item-body p { margin: 0 0 1em; }
.v2-item-body ul, .v2-item-body ol { margin: 0 0 1em 1.5em; }
.v2-item-body li { margin-bottom: 0.3em; }
.v2-item-body a { color: #004de5; }
.v2-item-body blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1em;
  color: #555;
  margin: 1em 0;
}
.v2-item-body pre, .v2-item-body code {
  font-family: var(--courier);
  background: #f5f5f5;
  padding: 2px 5px;
  font-size: 0.9em;
}
.v2-item-body pre {
  padding: 12px;
  overflow-x: auto;
  margin: 1em 0;
}
.v2-item-body pre code { background: none; padding: 0; }

.v2-item-source {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
}

.v2-item-source a { color: #555; }

.v2-item-nav {
  margin-top: 32px;
  font-size: 0.85rem;
}

.v2-back { color: #555; text-decoration: none; }
.v2-back:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
  .v2-discovery, .v2-bento, .v2-item-page {
    padding: 16px 12px 48px;
  }
  .v2-digest-leads { grid-template-columns: 1fr; }
  .v2-item-page-title { font-size: 1.2rem; }
  .v2-bento-name { font-size: 1.3rem; }
}
