/* Texts page: every text on one line, past on the left, future on the right. */

.texts { display: flex; flex-direction: column; min-height: calc(100svh - 4.5rem); }
.texts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 0.5rem var(--gutter) 1.5rem;
}
.texts-title { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.filter-search input {
  font: inherit;
  width: min(22rem, 80vw);
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}
.filter-phases { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; border: 0; }
.filter-phases label { padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; cursor: pointer; }
.filter-phases label:has(input:checked) { background: var(--ink); color: var(--bg); }
.filter-phases label:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
.filter-phases input { position: absolute; opacity: 0; pointer-events: none; }
.filters-count { margin: 0; color: var(--muted); }

.strip {
  flex: 1;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tc { flex: 0 0 clamp(15rem, 21vw, 19rem); display: flex; }
.tc-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 26rem;
  padding: 2rem 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.tc-link:hover .tc-title { text-decoration: underline; }
.tc-link:focus-visible { outline-offset: -4px; }
/* Phases are told apart by light rather than labels: stone for the past,
   sunlight for what is open, sky for what is coming. */
.tc-closed .tc-link { background: var(--bg-2); }
.tc-vote .tc-link { background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 40%, var(--bg)) 0%, var(--dawn) 60%, var(--bg) 100%); }
.tc-arguments .tc-link { background: linear-gradient(180deg, var(--dawn) 0%, var(--bg) 100%); }
.tc-pending .tc-link { background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); }
.tc + .tc .tc-link { box-shadow: inset 1px 0 0 var(--line); }
.tc-figure { width: 70%; margin-bottom: 1.5rem; }
[data-ring="circle"] .tc-figure { width: 55%; }
.tc-head { display: flex; align-items: center; gap: 0.75rem; }
.tc-date { font-size: 1.6rem; font-weight: 600; line-height: 1; }
/* Phase band: the clearest signal of the card. */
.tc-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2rem -1.5rem 1.5rem;
  padding: 0.55rem 1.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
}
.tc-closed .tc-band { background: var(--stone-soft); color: var(--ink); }
.tc-closed .tc-band-label::before { content: "✓ "; }
.tc-vote .tc-band { background: var(--sun); color: var(--on-sun); }
.tc-arguments .tc-band { background: var(--lilac); color: var(--on-sun); }
.tc-pending .tc-band { color: var(--muted); box-shadow: inset 0 -2px 0 var(--line); }
.tc-live { display: inline-flex; gap: 0.25rem; }
.tc-live i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; animation: live 1.4s ease-in-out infinite; }
.tc-live i:nth-child(2) { animation-delay: 0.2s; }
.tc-live i:nth-child(3) { animation-delay: 0.4s; }
@keyframes live {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-live i { animation: none; opacity: 0.7; }
}
.strip-controls { display: flex; gap: 0.5rem; margin-left: auto; }
.tc-title { margin-top: 0.5rem; font-size: 1.15rem; font-weight: 500; line-height: 1.25; }
.tc-fact { margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: 0.9375rem; }

/* --- List by moment (v18; square style of the v8 cards, v19) ------------------ */

.groups { display: grid; gap: 2rem; padding: 0 var(--gutter) 4rem; }
.groups[hidden], .strip[hidden], .strip-controls[hidden] { display: none; }
/* The head of a group is the phase band of the v8 cards: same colours. */
.group-title {
  display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.6rem 1.2rem;
  font-family: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: 0;
}
.group-vote .group-title { background: var(--sun); color: var(--on-sun); }
.group-arguments .group-title { background: var(--lilac); color: var(--on-sun); }
.group-pending .group-title { color: var(--muted); box-shadow: inset 0 -2px 0 var(--line); }
.group-closed .group-title { background: var(--stone-soft); color: var(--ink); }
.group-closed .group-title::before { content: "✓"; }
.group-count { margin-left: auto; font-weight: 700; opacity: 0.75; }
.group-vote .tc-live { order: 1; }
.rows { display: grid; margin: 0; padding: 0; list-style: none; }
.tr + .tr .tr-link { box-shadow: inset 0 1px 0 var(--line); }
.tr-link {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.5rem 1.2rem; align-items: center;
  padding: 1.1rem 1.2rem; color: var(--ink); text-decoration: none;
}
@media (min-width: 60rem) { .tr-link { grid-template-columns: 5.5rem auto minmax(0, 1fr) minmax(13rem, 17rem) 7rem; } }
.tr-link:hover .tr-title { text-decoration: underline; }
/* Light per phase, as on the v8 cards: sunlight for what is open, sky for
   what is coming, stone for the past. */
.tr-vote .tr-link { background: linear-gradient(90deg, color-mix(in srgb, var(--sun) 30%, var(--bg)) 0%, var(--dawn) 55%, var(--bg) 100%); }
.tr-arguments .tr-link { background: linear-gradient(90deg, var(--dawn) 0%, var(--bg) 100%); }
.tr-pending .tr-link { background: linear-gradient(90deg, var(--sky) 0%, var(--bg) 100%); }
.tr-closed .tr-link { background: var(--bg-2); }
.tr-date { font-size: 1.5rem; font-weight: 600; line-height: 1; }
.tr-main { display: grid; gap: 0.15rem; }
.tr-title { font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.tr-official { color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.tr-meta { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.tr-when { grid-column: 1 / -1; display: grid; gap: 0.1rem; font-size: 0.9375rem; }
.tr-figure { display: none; }
@media (min-width: 60rem) {
  .tr-when { grid-column: auto; }
  .tr-figure { display: block; }
}
.tr-when-label { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.tr-when-sub { color: var(--muted); }
.tr-when .verdict-rows { margin-top: 0.2rem; }
