/* ===========================================================================
   Dailies · Feed v2 — the scrollable single-column experience
   ---------------------------------------------------------------------------
   An alternative to the side-by-side feed. Everything below the shell —
   the cards, the review overlay, the toast, the end-of-session modal — is
   reused verbatim from feed-styles.css. This sheet only restyles the shell:
     · one sticky, index-style header (the shrunk mark)
     · one minimalist data deck (the old side-panel data, distilled)
     · one centered scroll column
   Load AFTER feed-styles.css so these overrides win.
   =========================================================================== */

/* Shrink-wrap fix and the shared --app-max now live in dailies-theme.css:
   #root spans the stage, and each surface caps + centers its own root. */

/* ---- Frame: vertical stack. Header pinned, scroll fills the rest.
   Overrides the two-column desktop grid from feed-styles.css at every width. */
.frame.frame-v2 {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  flex: 1 1 100%;                       /* fill the stage; don't hug content */
  width: 100%;
  max-width: var(--app-max);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bsp-navy);          /* slate-deep ground — full-bleed */
}
@media (min-width: 600px) and (max-width: 1099px) {
  .frame.frame-v2 {
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }
}
@media (min-width: 1100px) {
  /* neutralize the desktop two-column scroll rules */
  .frame.frame-v2 > .scroll {
    grid-column: auto;
    grid-row: auto;
    border-left: 0;
    height: auto;
  }
}

/* Feed column — capped to the shared surface width, centered in the frame. */
.frame.frame-v2 .col {
  width: 100%;
  max-width: var(--app-max);
  margin: 0 auto;
}

/* =========================== STICKY HEADER =========================== */
.v2-head {
  position: relative;
  z-index: 30;
  flex: none;
  border-bottom: 1px solid var(--bsp-border);
  background: linear-gradient(to bottom, rgba(var(--bsp-navy-rgb),0.98), rgba(var(--bsp-navy-rgb),0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.v2-head-inner {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.v2-head-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.v2-head-icon { display: block; height: 26px; width: auto; }
.v2-head-word { display: block; height: 17px; width: auto; }

.v2-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* The waiting count fades in only once the deck has scrolled past. */
.v2-head-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--bsp-dur-base) var(--bsp-ease-out),
              transform var(--bsp-dur-base) var(--bsp-ease-out);
  pointer-events: none;
}
.v2-head-count.shown { opacity: 1; transform: none; }
.v2-head-count .n {
  font-family: var(--bsp-font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bsp-yellow);
}
.v2-head-meta {
  font-family: var(--bsp-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--bsp-fg-dim);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .v2-head-meta { display: none; }    /* keep the slim bar uncrowded on phones */
}
/* Surface nav in the pinned header — sibling pages + the archive, all up top. */
.v2-head-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.v2-head-nav::-webkit-scrollbar { display: none; }
.v2-head-navlink {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--bsp-dur-fast) var(--bsp-ease-out);
}
.v2-head-navlink:hover,
.v2-head-navlink:focus-visible { color: var(--bsp-yellow); }
.v2-head-navlink:focus-visible { outline: 1px solid var(--bsp-border-gold); outline-offset: 3px; }
/* The archive sits a little apart from the sibling-page links. */
.v2-head-navlink.is-archive { color: var(--bsp-fg-muted); padding-left: 16px; border-left: 1px solid var(--bsp-border); }

/* =========================== DATA DECK ===========================
   Full-bleed section (border spans the viewport); content centered in a
   transparent inner wrapper at the shared surface width. */
.deck {
  border-bottom: 1px solid var(--bsp-border);
}
.deck-inner {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: 34px 24px 26px;
}
.deck-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.deck-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--bsp-yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,210,0,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.deck-eyebrow .lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
}

/* One stat row: waiting (gold) leads, the IP breakdown follows at the same
   scale; iteration loops sit at the right. */
.deck-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}

/* IP breakdown — quiet mono cells, label over number. */
.deck-breakdown {
  display: flex;
  gap: 28px;
  margin: 0;
}
.deck-breakdown .cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deck-breakdown dt {
  font-family: var(--bsp-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.deck-breakdown dd {
  margin: 0;
  font-family: var(--bsp-font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--bsp-fg);
}
/* Waiting is the lead stat: same row, same scale, distinguished by gold and a
   hair more size, not by towering over everything else. */
.deck-breakdown .cell-primary { margin-right: 16px; }
.deck-breakdown .cell-primary dd { color: var(--bsp-yellow); font-size: 30px; }


.deck-end {
  font-family: var(--bsp-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
  background: transparent;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  transition: color var(--bsp-dur-fast) var(--bsp-ease-out);
}
.deck-end:hover,
.deck-end:focus-visible { color: var(--bsp-yellow); }
.deck-end:focus-visible { outline: 1px solid var(--bsp-border-gold); outline-offset: 3px; }
.deck-eyebrow .deck-end { margin-left: auto; }

/* =========================== FEED, ALIGNED TO THE COLUMN =========================== */
.frame-v2 .feed-eyebrow { padding: 22px 24px 14px; }
.frame-v2 .group-grid { padding: 12px 24px 20px; }
.frame-v2 .group-head { padding: 18px 24px; }
.frame-v2 .empty { padding-left: 24px; padding-right: 24px; }
.frame-v2 .endline { padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  .deck-eyebrow .dot { animation: none; }
  .v2-head-count { transition: none; }
}
