/* ==========================================================================
   Article layout.
   Not a sixth section pattern. An article is prose on the page background,
   inside Inset (DESIGN.md §10.1 and §10.2), with a Ruled split for the
   header and the bottom CTA, and a panel where it carries data.
   ========================================================================== */

/* See the shared subpage-hero rule in design.css. */
.art-head { position: relative; }

.art-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--pd-muted);
}

.art-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  max-width: 19ch;
}

.art-dek {
  margin-top: 26px;
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--pd-muted);
  max-width: 44ch;
}

/* The dateline sits on a rule, which is the only chrome it gets. */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
  padding: 18px 0;
  color: var(--pd-muted);
}
.art-meta a { color: var(--pd-muted); text-decoration: underline; text-underline-offset: 3px; }

/* --- Body ---------------------------------------------------------------- */

.art-body {
  padding: 56px 0 0;
  /* Prose measure. The Inset track is wide, and 100ch of body copy is not
     readable; the column stops before the track does. */
  max-width: 68ch;
}

.art-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  margin: 62px 0 20px;
  max-width: 24ch;
}
.art-body h3 {
  font-family: var(--pd-body);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.45;
  margin: 38px 0 10px;
}
.art-body p {
  font-size: 1.05rem;
  line-height: 1.68;
  margin: 0 0 1.15em;
}
.art-body strong { font-weight: 600; }

.art-body a {
  color: var(--pd-ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 25, 25, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--pd-quick);
}

.art-body ul {
  margin: 0 0 1.15em;
  padding-left: 1.1em;
}
.art-body li {
  font-size: 1.05rem;
  line-height: 1.68;
  margin-bottom: 0.5em;
}
.art-body li::marker { color: var(--pd-muted); }

/* A pulled line. Serif, on a rule, no quotation marks and no box: the page
   already has enough boxes. */
.art-pull {
  margin: 46px 0;
  padding: 26px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.22);
  border-bottom: 1px solid rgba(25, 25, 25, 0.22);
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.36;
  max-width: 30ch;
}

/* Where the article states what is not known. Square, nested, no radius. */
.art-note {
  margin: 40px 0;
  padding: 22px 24px;
  background: rgba(25, 25, 25, 0.045);
  border-left: 2px solid rgba(25, 25, 25, 0.28);
}
/* Slightly darker than --pd-muted: on the note's tinted ground the muted
   token measures about 4.44:1, which is just under AA. */
.art-note p { margin: 0; font-size: 0.98rem; color: #5d5d57; }
.art-note p + p { margin-top: 0.8em; }

/* --- The vote table -------------------------------------------------------
   Wider than the prose measure on purpose: it is the evidence, so it gets
   the full Inset track. Dark panel, because that is what a panel is here. */

.art-wide { max-width: none; margin: 52px 0; }

.vote-panel { padding: 4px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.vote-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.vote-table caption {
  text-align: left;
  padding: 18px 20px 14px;
  color: rgba(242, 241, 236, 0.5);
}
.vote-table th {
  text-align: left;
  font-family: var(--pd-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.5);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(242, 241, 236, 0.14);
  white-space: nowrap;
}
.vote-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(242, 241, 236, 0.08);
  font-size: 0.95rem;
  color: var(--pd-card-ink);
}
.vote-table td:first-child { font-family: var(--pd-display); font-size: 1.05rem; }
.vote-table .tally {
  font-family: var(--pd-mono);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vote-table .day { font-family: var(--pd-mono); font-size: 0.78rem; color: rgba(242, 241, 236, 0.5); white-space: nowrap; }
.vote-table tr.against td { color: rgba(242, 241, 236, 0.42); }
.vote-table tr.against td:first-child { color: rgba(242, 241, 236, 0.55); }

.vote-foot {
  padding: 16px 20px 20px;
  color: rgba(242, 241, 236, 0.5);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --- Sources -------------------------------------------------------------- */

.art-sources { margin-top: 66px; }
.art-sources h2 { font-size: 1.15rem; font-family: var(--pd-body); font-weight: 600; margin: 0 0 16px; }
.art-sources ol { margin: 0; padding-left: 1.3em; }
.art-sources li { font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.6em; color: var(--pd-muted); }
.art-sources a { color: var(--pd-muted); }

@media (max-width: 900px) {
  .art-head { padding-top: 108px; }
  .art-body { padding-top: 40px; }
  .art-body h2 { margin-top: 46px; }
}

/* ==========================================================================
   Hover states, gated.
   A device with no pointer fires hover on tap and leaves it stuck there, so
   a card holds its lift and a button holds its ring after the finger is
   gone. Every hover rule in this file lives in here. They sit at the end,
   after the resting states they override.
   ========================================================================== */
@media (hover: hover) {
  .art-meta a:hover { color: var(--pd-ink); }
  .art-body a:hover { text-decoration-color: var(--pd-ink); }
  .art-sources a:hover { color: var(--pd-ink); }
}
