/* =====================================================================
   The Debate page.

   Built around the articles and their photography rather than around the
   metrics. The first version was columns of counters, which is what the data
   looks like to a database and not what a newspaper looks like to a reader —
   the stories have to carry the page, with the numbers hung off them.
   ===================================================================== */

:root {
  --d-ink: #0e2348;
  --d-blue: #2456c9;
  --d-line: rgba(13, 38, 76, 0.12);
  --d-muted: #64748b;
  --d-serif: "Playfair Display", Georgia, serif;
  --d-sans: "Open Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; color: var(--d-ink); font-family: var(--d-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- masthead ---------- */
.d-top { border-bottom: 1px solid var(--d-line); position: sticky; top: 0; background: #fff; z-index: 40; }
.d-mast {
  max-width: 1280px; margin: 0 auto; padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.d-word { font-family: var(--d-serif); font-size: 25px; font-weight: 700; letter-spacing: -0.015em; }
.d-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--d-blue);
  border: 1px solid var(--d-line); border-radius: 999px; padding: 8px 15px;
}
.d-back:hover { background: var(--d-blue); color: #fff; border-color: var(--d-blue); }

.d-wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px 90px; }

/* ---------- title block ---------- */
.d-intro { padding: 40px 0 26px; border-bottom: 3px solid var(--d-ink); margin-bottom: 30px; }
.d-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--d-blue); margin-bottom: 12px;
}
.d-intro h1 {
  margin: 0 0 12px; font-family: var(--d-serif); font-weight: 700;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -0.025em; max-width: 17ch;
}
.d-intro p { margin: 0; font-size: 16px; line-height: 1.55; color: #46566e; max-width: 60ch; }
.d-runline {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid var(--d-line);
}
.d-run b { font-family: var(--d-serif); font-size: 26px; font-weight: 700; line-height: 1; }
.d-run span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted); }

/* ---------- lead story ---------- */
.d-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; margin-bottom: 46px; align-items: stretch; }
.d-lead-img { position: relative; border-radius: 4px; overflow: hidden; background: #eef1f5; min-height: 330px; }
.d-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.d-flag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--d-blue); color: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.d-lead-body { display: flex; flex-direction: column; justify-content: center; }
.d-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--d-blue); margin-bottom: 10px;
}
.d-lead-body h2 {
  margin: 0 0 14px; font-family: var(--d-serif); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em;
}
.d-quote {
  margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--d-blue);
  font-family: var(--d-serif); font-size: 18px; line-height: 1.42; font-style: italic; color: #21324c;
}
.d-quote cite { display: block; margin-top: 8px; font: 600 12px/1 var(--d-sans); font-style: normal; color: var(--d-muted); }

/* ---------- shared meta strip ---------- */
.d-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--d-muted); }
.d-meta b { color: var(--d-ink); font-weight: 700; }
.d-faces { display: flex; }
.d-face {
  width: 27px; height: 27px; border-radius: 50%; margin-left: -8px;
  border: 2px solid #fff; color: #fff; display: grid; place-items: center;
  font: 700 10px/1 var(--d-sans); flex: none;
}
.d-face:first-child { margin-left: 0; }
.d-face.more { background: #dfe5ee; color: #46566e; }

/* ---------- section headers ---------- */
.d-sec { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--d-ink); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.d-sec h2 { margin: 0; font-family: var(--d-serif); font-size: 25px; font-weight: 700; letter-spacing: -0.015em; }
.d-sec p { margin: 0; font-size: 12.5px; color: var(--d-muted); }
.d-block { margin-bottom: 52px; }

/* ---------- theme bands ---------- */
.d-band { margin-bottom: 34px; }
.d-band-h { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.d-band-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.d-band-n { font-family: var(--d-serif); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.d-band-c { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted); }

.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; }
.d-card { display: flex; flex-direction: column; }
.d-card-img { position: relative; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; background: #eef1f5; margin-bottom: 11px; }
.d-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.22,.68,.3,1); }
.d-card:hover .d-card-img img { transform: scale(1.04); }
.d-count {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(9, 20, 38, .82); color: #fff; border-radius: 999px;
  padding: 5px 11px; font-size: 11px; font-weight: 700;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.d-card h3 {
  margin: 0 0 8px; font-family: var(--d-serif); font-size: 17px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em;
}
.d-card:hover h3 { color: var(--d-blue); }
.d-said {
  margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #3d4d68;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.d-said b { color: var(--d-ink); }

/* The assistant's name as a wordmark: "Times" upright and bold, "Traveler"
   in italic. Playfair runs large beside Open Sans, so 1.05em matches the
   surrounding cap height. */
.tt-mark { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: 1.05em; letter-spacing: -0.01em; }
.tt-mark .tt-a { font-style: normal; font-weight: 700; }
.tt-mark .tt-b { font-style: italic; font-weight: 500; }

/* ---------- story leads ---------- */
.d-leads-band { background: #fdf8f2; border: 1px solid rgba(168,85,47,.2); border-radius: 8px; padding: 26px 28px 24px; }
.d-leads-band .d-sec { border-bottom-color: rgba(168,85,47,.3); }
.d-leads-note { margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: #7a4a2a; max-width: 66ch; }
.d-lead-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid rgba(168,85,47,.18);
}
.d-lead-item:first-of-type { border-top: 0; }
.d-lead-thumb { width: 96px; aspect-ratio: 3/2; border-radius: 3px; overflow: hidden; background: #eee; flex: none; }
.d-lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-lead-q { margin: 0 0 7px; font-family: var(--d-serif); font-size: 17px; line-height: 1.3; font-weight: 700; }
.d-none { padding: 16px 0; font-size: 13.5px; color: #7a4a2a; }

/* ---------- two-up bottom ---------- */
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.d-lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--d-line); }
.d-lb-row:first-of-type { border-top: 0; }
.d-rank { width: 22px; font-family: var(--d-serif); font-size: 17px; font-weight: 700; color: #b9c3d1; flex: none; }
.d-lb-row.is-top .d-rank { color: var(--d-blue); }
.d-ava { width: 36px; height: 36px; border-radius: 50%; flex: none; color: #fff; display: grid; place-items: center; font: 700 12.5px/1 var(--d-sans); }
.d-lb-main { flex: 1; min-width: 0; }
.d-lb-n { font-size: 13.5px; font-weight: 700; }
.d-lb-s { font-size: 11.5px; color: var(--d-muted); }
.d-pts { font-family: var(--d-serif); font-size: 19px; font-weight: 700; color: var(--d-blue); flex: none; }

.d-ans { padding: 14px 0; border-top: 1px solid var(--d-line); display: flex; gap: 13px; }
.d-ans:first-of-type { border-top: 0; }
.d-ans-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: #f0f5ff; color: var(--d-blue); display: grid; place-items: center;
}
.d-ans-t { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: #26364e; }
.d-ans-m { font-size: 11.5px; color: var(--d-muted); }

@media (max-width: 1000px) {
  .d-lead { grid-template-columns: 1fr; }
  .d-lead-img { min-height: 240px; }
  .d-two { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 620px) {
  .d-wrap, .d-mast { padding-left: 16px; padding-right: 16px; }
  .d-runline { gap: 18px; }
  .d-grid { grid-template-columns: 1fr; }
  .d-lead-thumb { width: 66px; }
}
