/* Widget and layout styles layered on the shared content-pages.css tokens. */
.tt-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tt-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.tt-nav { display: flex; gap: 1.1rem; font-size: 0.92rem; }
.tt-nav a { color: var(--body-text); text-decoration: none; font-weight: 500; }
.tt-nav a:hover { color: var(--ink); text-decoration: underline; }

.tt-lede { font-size: 1.12rem; color: var(--body-text); }

.tt-generator { text-align: center; padding: 1.75rem 1.5rem 1.5rem; }
.tt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1.25rem; }
.tt-chip {
  font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--body-text);
  background: var(--cream); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.8rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tt-chip:hover { border-color: var(--muted); color: var(--ink); }
.tt-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tt-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); margin: 0 0 0.6rem; font-weight: 600; }
.tt-question {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.25;
  color: var(--ink); margin: 0 auto 0.75rem; max-width: 34ch; min-height: 2.5em; text-wrap: balance;
}
.tt-question.is-changing { opacity: 0.35; transition: opacity 0.12s; }
.tt-meta { margin: 0 0 1.25rem; font-size: 0.9rem; }
.tt-meta a { color: var(--muted); text-decoration: none; }
.tt-meta a:hover { text-decoration: underline; }
.tt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tt-btn { font: inherit; cursor: pointer; }
.tt-btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--body-text);
  border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 0.92rem; font-weight: 500;
}
.tt-btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.tt-status { min-height: 1.4em; margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--green); }

.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; margin: 1.25rem 0; }
.tt-card {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.15s, transform 0.15s;
}
.tt-card:hover { border-color: var(--muted); transform: translateY(-1px); }
.tt-card strong { font-family: var(--font-display); color: var(--ink); }
.tt-card span { font-size: 0.88rem; color: var(--body-text); }
.tt-card em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.tt-today-teaser { margin-top: 1.5rem; }

.tt-list { padding-left: 1.4rem; margin: 1rem 0; }
.tt-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; justify-content: space-between; }
.tt-list li:last-child { border-bottom: 0; }
.tt-list-text { flex: 1 1 24ch; color: var(--ink); }
.tt-list-actions { display: inline-flex; gap: 0.8rem; font-size: 0.82rem; white-space: nowrap; }
.tt-list-actions a { color: var(--muted); text-decoration: none; }
.tt-list-actions a:hover { color: var(--ink); text-decoration: underline; }
.tt-list-time::before { content: '⏱ '; }

.tt-related { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.tt-related li a { color: var(--ink); }
.tt-related li span { color: var(--faint); font-size: 0.82rem; margin-left: 0.25rem; }

@media print {
  .static-header, .static-footer, .static-breadcrumb, .tt-actions, .tt-chips, .tt-status, .tt-list-actions, .tt-today-teaser, .tt-related { display: none !important; }
  .static-card { box-shadow: none; border: 0; page-break-inside: avoid; }
  .tt-list li { border-bottom: 1px solid #ddd; }
  body { background: #fff; }
}
