/* W16 — Issue-specific overrides
   Emoji constellation — AI agents at work.
   Read-more pattern — buzz items collapse full body under a toggle. */

/* Read-more toggle — reveals the full buzz story below the summary paragraph.
   Mirrors the .buzz-sources pattern but visually stronger (primary action). */
.buzz-readmore {
  margin-top: var(--space-3);
}
.buzz-readmore-toggle {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-accent);
  list-style: none;
  padding: var(--space-2) 0;
  border-bottom: 1px dotted var(--color-accent);
  display: inline;
}
.buzz-readmore-toggle::-webkit-details-marker { display: none; }
.buzz-readmore-toggle::marker { content: ''; }
.buzz-readmore-toggle:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.buzz-readmore[open] > .buzz-readmore-toggle {
  margin-bottom: var(--space-4);
}

/* Voices — blockquote + attribution + commentary, no avatar.
   Richard's structure: what they said, then what they mean. Override shared
   `.voice-attribution` (uppercase/tracking) since we display dates + numbers. */
#voices .voice-item {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}
#voices .voice-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.voice-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.voice-number {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.voice-quote {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text);
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-accent);
  font-style: normal;
}
#voices .voice-attribution {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-label);
  text-transform: none;
  margin: var(--space-2) 0 var(--space-4);
}
#voices .voice-attribution a {
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
#voices .voice-attribution a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.voice-commentary {
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 64ch;
  margin: 0;
}
.voice-commentary + .voice-commentary {
  margin-top: var(--space-4);
}
.voice-commentary strong {
  color: var(--color-text);
  font-weight: 600;
}
@media (max-width: 600px) {
  .voice-quote {
    font-size: var(--text-base);
    padding-left: var(--space-4);
  }
  .voice-commentary {
    font-size: 0.9rem;
  }
}


/* Lead constellation field */
.lead-glyph-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.lead-glyph {
  position: absolute;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  user-select: none;
  line-height: 1;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-sizing: border-box;
  color: #e8e2d8;
  /* JS drives transform + opacity per frame. Initial centering only. */
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.lead-glyph-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}
@media (max-width: 600px) {
  .lead-glyph-inner { opacity: 0.2; }
  .lead-lines { opacity: 0.35; }
}
.lead-glyph svg {
  width: 1em;
  height: 1em;
  display: block;
}

.lead-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lead-lines line {
  stroke: #8a8680;
  stroke-linecap: round;
}
.lead-pulse-line {
  pointer-events: none;
  stroke-opacity: 0;
  stroke-dashoffset: var(--len, 0);
}
.lead-pulse-line.pulse {
  filter: drop-shadow(0 0 2px currentColor) drop-shadow(0 0 6px currentColor);
  animation: lineDraw var(--pulse-dur, 2s) cubic-bezier(0.33, 0, 0.67, 1);
}
@keyframes lineDraw {
  0%   { stroke-dashoffset: var(--draw-from, 0); stroke-opacity: 0; }
  20%  { stroke-opacity: 0.28; }
  65%  { stroke-opacity: 0.28; stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; stroke-opacity: 0; }
}

/* Lead content above the glyph field */
.lead .lead-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
/* Soft drop shadow floats the text above the constellation without a card. */
.lead-title,
.lead .lead-dates,
.lead .lead-quote,
.lead-quote-attribution {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 0, 0, 0.35);
}

.lead .lead-dates {
  margin-bottom: var(--space-10);
}

.lead .lead-quote {
  margin-bottom: var(--space-10);
}

/* Language switcher — pill bar in the lead */
.lang-switcher {
  display: inline-flex;
  gap: 1px;
  margin-bottom: var(--space-10);
  padding: 3px;
  background: rgba(232, 226, 216, 0.06);
  border: 1px solid rgba(232, 226, 216, 0.12);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.lang-switcher a {
  padding: 6px 14px;
  border-radius: 999px;
  border-bottom: none;
  color: rgba(232, 226, 216, 0.5);
  transition: background 0.15s, color 0.15s;
}
.lang-switcher a:hover {
  color: rgba(232, 226, 216, 0.9);
  background: rgba(232, 226, 216, 0.06);
  border-bottom: none;
}
.lang-switcher a[aria-current="page"] {
  background: rgba(232, 226, 216, 0.12);
  color: rgba(232, 226, 216, 0.95);
}

@media (min-width: 720px) {
  .lead .lead-quote {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .lead .lead-content {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* Richard's Take avatar with enso ring */
.take-avatar-wrap {
  position: relative;
  float: left;
  width: 227px;
  height: 227px;
  margin: var(--space-1) var(--space-6) var(--space-2) 0;
}
.take-avatar-mask {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg);
  z-index: 0;
}
.take-avatar-mask .take-avatar {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  float: none;
  border-radius: 0;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.15);
  transform-origin: center 45%;
}
.take-avatar-enso {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.take-avatar-enso path {
  fill: none;
  stroke: #9a4a5a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  .take-avatar-wrap {
    float: none;
    display: block;
    margin: 0 auto var(--space-6);
    width: 178px;
    height: 178px;
  }
  .take-avatar-mask {
    inset: 14px;
  }
}

/* Pullquote — body size, more vertical space */
.buzz-pullquote {
  font-size: var(--text-base);
  margin: var(--space-8) 0;
}

/* Bullet lists inside buzz cards */
.buzz-item ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin: var(--space-2) 0 var(--space-4);
  color: var(--color-text-body);
}
.buzz-item ul li {
  padding: 2px 0;
  line-height: 1.5;
}

/* Market table */
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.market-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 2px solid var(--color-border);
}
.market-table td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-body);
  vertical-align: top;
}
.market-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.market-table td:last-child {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.market-table a {
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.market-table a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.market-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  .market-table { min-width: 480px; }
}

/* Voices — align avatars to top of text */
.voice-avatar {
  align-self: start;
}

/* Pavel's Picks — personal recommendations, visually lighter */
.pick {
  margin-bottom: var(--space-10);
}
.pick:last-child {
  margin-bottom: 0;
}
.pick-thumb {
  display: block;
  position: relative;
  margin-bottom: var(--space-3);
  border-radius: var(--radius);
  overflow: hidden;
  border-bottom: none;
}
.pick-thumb:hover {
  border-bottom: none;
}
.pick-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  padding-left: 3px;
  transition: background 0.2s;
  pointer-events: none;
}
.pick-thumb:hover .pick-play {
  background: rgba(0, 0, 0, 0.75);
}
.pick-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pick-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.pick-title a {
  color: var(--color-text);
  border-bottom: none;
}
.pick-title a:hover {
  color: var(--color-accent);
  border-bottom: none;
}
.pick-source {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.pick-note {
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.5;
}
@media (min-width: 720px) {
  .pick-thumb img {
    max-width: 560px;
  }
}

/* Releases section — similar to buzz but lighter treatment */
.release-item {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.release-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.release-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.release-body {
  color: var(--color-text-body);
  line-height: 1.5;
}
.release-body a {
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.release-body a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
