/* The weekly email signup box (digestBox in src/digest-page.ts). On the
   site's tokens, so light and dark both work; a 14px card like the
   directory's cards, with an icon tile on the left. */
.dg-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, 420px); align-items: center; gap: 14px 20px;
  margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-panel);
}
.dg-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.dg-text { display: grid; gap: 4px; min-width: 0; }
.dg-text h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.dg-text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.dg-form { display: flex; gap: 8px; min-width: 0; }
.dg-form input[type='email'] { flex: 1; min-width: 0; }
.dg-form .btn { flex: none; white-space: nowrap; }
.dg-msg { grid-column: 2 / -1; margin: 0; font-size: 13.5px; font-weight: 600; }
.dg-msg:empty { display: none; }
.dg-msg.is-ok { color: var(--chip-ok-fg, var(--text)); }
.dg-msg.is-error { color: var(--danger-fg); }
.dg-sr, .dg-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .dg-box { grid-template-columns: auto minmax(0, 1fr); }
  .dg-form, .dg-msg { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .dg-box { padding: 18px; }
  .dg-form { flex-direction: column; }
}
