/* The Robotaxi Report: the "Recommended newsletter: The Driverless Digest" blocks.
   Written for tools/build-digest.mjs: the full block on the home page (headlines plus Substack's
   sign-up embed) and the compact block on /news. Uses the tokens in report.css. */
.digest{display:grid;gap:32px;padding:clamp(40px,6vw,80px) var(--frame);border-top:1px solid var(--rule)}
@media (min-width:900px){.digest:not(.digest-compact){grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:56px;align-items:start}}
.digest-kicker{display:block;margin-bottom:10px;font-family:var(--sans);font-size:.8125rem;font-weight:700;letter-spacing:.08em;line-height:1.3;text-transform:uppercase;color:var(--accent)}
.digest h2{font-size:var(--fs-h2)}
.digest h2 a{text-decoration:none}
.digest h2 a:hover{text-decoration:underline;text-decoration-thickness:2px}

/* their description, in their words */
.digest-quote{margin-top:16px}
.digest-quote blockquote p{font-family:var(--serif);font-style:italic;font-size:var(--fs-lead);line-height:1.4;color:var(--ink);max-width:46ch}
.digest-quote figcaption{margin-top:8px;font-family:var(--sans);font-size:var(--fs-small);line-height:1.5;color:var(--muted)}
.digest-quote figcaption a{color:var(--ink)}

/* their headlines, styled like the home page rails */
.digest-sub{margin-top:clamp(24px,3vw,32px);padding-top:10px;border-top:3px solid var(--ink);font-family:var(--sans);font-size:1.125rem;font-weight:700;letter-spacing:0;line-height:1.25}
.digest-list{list-style:none;margin-top:6px}
.digest-list li{padding:12px 0;border-bottom:1px solid var(--rule);font-size:1.0625rem;line-height:1.3;color:var(--ink)}
.digest-list li > a{font-weight:500;text-decoration:none}
.digest-list li > a:hover{text-decoration:underline;text-decoration-thickness:2px}
.digest-list .meta{margin-top:4px;font-size:.8125rem}
.digest-empty{margin-top:12px;font-family:var(--sans);font-size:var(--fs-small);color:var(--muted)}
.digest-empty a{color:var(--ink)}
.digest-note{margin-top:16px;font-family:var(--sans);font-size:.8125rem;line-height:1.5;color:var(--muted);max-width:62ch}

/* Substack's sign-up form: a fixed-height frame, so the page never moves when it loads.
   The form draws its own light background, so the frame stays light in dark mode too. */
.digest-frame{max-width:480px;height:320px;overflow:hidden;background:#fff;border:1px solid var(--rule);border-radius:12px}
.digest-frame iframe{display:block;width:100%;height:100%;border:0}
.digest-fallback{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin-top:8px;font-family:var(--sans);font-size:var(--fs-small);color:var(--muted)}
.digest-fallback a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--ink)}

/* /news: the compact block at the foot of the list */
.digest-compact{display:block;margin-top:clamp(40px,5vw,56px);padding:24px clamp(20px,3vw,32px) 28px;background:var(--surface);border-top:3px solid var(--ink)}
.digest-compact h2{font-size:clamp(1.375rem,1.2rem + .8vw,1.75rem)}
.digest-compact .digest-quote blockquote p{font-size:1.125rem}
.digest-compact .digest-list{margin-top:12px;max-width:720px}
.digest-compact .digest-list li:last-child{border-bottom:0}
.digest-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.digest-actions .btn.light{background:var(--paper)}
.digest-actions .btn.light:hover{background:var(--surface-2)}

@media (max-width:480px){
  .digest-actions .btn{flex:1 1 100%}
  .digest-fallback{flex-direction:column;align-items:flex-start}
  .digest-fallback [aria-hidden]{display:none}
}
