/* Daily news slideshow. Paper-card language, but a wide landscape panel rather
   than the square canvas the 1080x1080 card uses. */

.show {
  border: 3px dashed var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  padding: 22px 24px 16px;
  position: relative;
}

.track {
  /* Height is driven by the tallest slide's content but floored, so advancing
     the deck does not make the whole page jump. */
  min-height: 178px;
  display: flex;
  align-items: stretch;
}

.slide {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.slide[hidden] { display: none; }

.slide-art {
  flex: none;
  width: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .12);
}

.slide-art img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.slide-body { min-width: 0; flex: 1; }

.slide-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tone {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: 2px solid;
  border-radius: 999px;
  padding: 0 10px;
}

.tone-positive { color: var(--green); border-color: var(--green); }
.tone-negative { color: var(--red); border-color: var(--red); }
.tone-neutral { color: var(--muted); border-color: #C9CFDA; }

.slide-meta .tickers {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
}

.slide-meta .src { font-size: 16px; color: var(--muted); }

.slide-head {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.08;
  margin: 0 0 6px;
}

.slide-sum {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #3A4457;
}

.slide-link {
  font-family: 'Permanent Marker', cursive;
  font-size: 18px;
  color: var(--green);
  text-decoration: none;
  border-bottom: 3px solid var(--greenHi);
}

.slide-link:hover { border-bottom-color: var(--green); }

/* --- controls -------------------------------------------------------------- */

.show-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--edge);
}

.nav {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border: 3px solid var(--ink);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  flex: none;
}

.nav:hover { background: var(--greenHi); }

.nav:focus-visible,
.dot:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.nav.pause {
  margin-left: auto;
  font-size: 16px;
  border-style: dashed;
}

.dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot.is-active { background: var(--green); border-color: var(--green); }

.show-counter {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 17px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .slide { flex-direction: column; gap: 12px; }
  .slide-art { width: 100%; }
  .slide-art img { height: 150px; }
  .slide-head { font-size: 30px; }
  .track { min-height: 0; }
  .show-counter { position: static; text-align: right; margin-bottom: 4px; }
}
