/* Daily Digest page. Builds on /styles.css tokens. */
/* Width comes from the shared .wrap / --site-max in /styles.css (no per-page override). */


.nav-digest[aria-current="page"] { color: var(--muse-blue) !important; }

.dg-main { padding: 1.5rem 0 3rem; }

.dg-num {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dg-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.dg-updated {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--muse-blue-soft);
  color: var(--muse-blue-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.dg-title {
  margin: 0;
  font-family: Caveat, cursive;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 700;
  color: var(--muse-blue);
  line-height: 1;
}
.dg-sub { margin: 0.5rem 0 1.5rem; color: var(--ink-soft); max-width: 46rem; font-size: 1.02rem; }

.dg-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.dg-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.15rem;
  min-width: 0;
}
.dg-stat .dg-num { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
.dg-stat--lead {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, var(--muse-blue) 0%, var(--muse-blue-deep) 100%);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.dg-stat--lead .dg-num { color: #fff; font-size: clamp(4.5rem, 14vw, 9.5rem); }
.dg-stat--lead .dg-label { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.dg-stat--word .dg-num { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; }
.dg-stat--money { grid-column: span 3; background: #fff8e8; border-color: #ecdcb4; }
.dg-stat--money .dg-num { color: #8a5a00; }

.dg-note { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--ink-faint); }

.dg-section { margin-top: 3rem; }
.dg-section-head { margin-bottom: 1rem; }
.dg-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muse-blue);
}
.dg-section h2 { margin: 0.15rem 0 0; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.dg-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }

.dg-latest {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.dg-latest-count {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.dg-latest-count .dg-num { color: #fff; }
.dg-latest-count .dg-label { color: rgba(255, 255, 255, 0.75); }
.dg-num--xxl { font-size: clamp(4.5rem, 12vw, 8rem); }
.dg-num--xl { font-size: clamp(3rem, 7vw, 4.6rem); color: var(--muse-blue-deep); }
.dg-num--md { font-size: 1.5rem; letter-spacing: -0.03em; color: #8a5a00; }

.dg-latest-list, .dg-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  min-width: 0;
}
.dg-list { list-style: none; margin: 0; padding: 0; }
.dg-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}
.dg-list li:last-child { border-bottom: 0; }
.dg-li-title { flex: 1 1 12rem; font-weight: 600; min-width: 0; }
.dg-list a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.dg-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--muse-blue-soft);
  color: var(--muse-blue-deep);
}
.dg-more summary { cursor: pointer; padding: 0.6rem 0 0.2rem; font-weight: 600; color: var(--muse-blue); font-size: 0.9rem; }
.dg-list--money li { align-items: center; }
.dg-list--money .dg-num { min-width: 5.5rem; }

.dg-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.dg-callout { border-left: 4px solid var(--muse-blue); padding: 0.2rem 0 0.2rem 1rem; }
.dg-callout p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.dg-chart { position: relative; height: 300px; }
.dg-chart--tall { height: 440px; }
.dg-chart--mid { height: 360px; }

.dg-money { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }

.dg-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.dg-quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}
.dg-quote blockquote { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.dg-quote figcaption { font-size: 0.82rem; color: var(--ink-faint); }
.dg-quote figcaption a { font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .dg-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-stat--lead { grid-row: span 1; }
  .dg-stat--word, .dg-stat--money { grid-column: span 2; }
  .dg-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-money { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dg-main { padding-top: 1rem; }
  .dg-stat { padding: 1rem 0.95rem; }
  .dg-stat .dg-num { font-size: 2.6rem; }
  .dg-stat--lead .dg-num { font-size: 5.5rem; }
  .dg-stat--word .dg-num { font-size: 1.9rem; }
  .dg-stat--money .dg-num { font-size: 3rem; }
  .dg-label { font-size: 0.7rem; }
  .dg-latest { grid-template-columns: 1fr; }
  .dg-quotes { grid-template-columns: 1fr; }
  .dg-chart { height: 260px; }
  .dg-chart--tall { height: 420px; }
  .dg-section { margin-top: 2.4rem; }

}
@media (max-width: 380px) {
  .brand-mark { font-size: 1.35rem; }
  .launch-link { padding: 0.3rem 0.6rem; }
}
