/* candidates-list.css: the page "The Candidates" (CANDLIST40, 20 Nov 2026), written by scripts/build-candidates-list.py.
   All rules begin .cdl- */
/* the kit's small capitals, at 13px or more on this page */
.cdl-main .stx-kicker, .cdl-main .stx-hero .stx-brow { font-size: 0.82rem; }
.cdl-tools { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: flex-end; margin: 1.6rem 0 0; }
.cdl-tools[hidden] { display: none; }
.cdl-find { display: flex; flex-direction: column; gap: 0.2rem; flex: 0 1 22rem; min-width: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5514; }
.cdl-find input { box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 0.5rem 0.7rem; border: 1px solid #8f7a4c; border-radius: 8px; background: #fff; color: #1f1a14; }
.cdl-say { flex: 1 1 16rem; min-height: 1.5em; margin: 0 0 0.45rem; font-size: 0.98rem; font-weight: 700; color: #1c2a3f; }
.cdl-find input:focus-visible, .cdl-main a.cdl-nm:focus-visible, .cdl-links a:focus-visible { outline: 2px solid #7a5514; outline-offset: 2px; }

/* the leading candidate */
.cdl-lead { max-width: 46rem; padding: 1rem 1.2rem 1.1rem; border: 1px solid rgba(190, 150, 70, 0.6); border-left: 5px solid #c9a24a; border-radius: 8px; background: #fffdf7; }
.cdl-lead[hidden] { display: none; }
.cdl-lead p { margin: 0.55rem 0 0; line-height: 1.6; }
.cdl-lead .cdl-lead-nm { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.cdl-lead .cdl-lead-born { margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; align-items: baseline; }
.cdl-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; font-size: 0.97rem; font-weight: 700; }

/* the lists */
.cdl-text { max-width: 46rem; margin: 0 0 0.9rem; line-height: 1.6; }
.cdl-cols, .cdl-list li { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem 9rem; gap: 0 1.2rem; align-items: baseline; max-width: 52rem; box-sizing: border-box; }
.cdl-four .cdl-cols, .cdl-four .cdl-list li { grid-template-columns: minmax(0, 1fr) 11.5rem 7rem minmax(0, 18rem); max-width: 64rem; }
.cdl-cols { margin: 0; padding: 0.3rem 0.6rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5514; border-bottom: 1px solid rgba(190, 150, 70, 0.6); }
.cdl-group[hidden] { display: none; }
.cdl-list { list-style: none; margin: 0 0 0.4rem; padding: 0; }
.cdl-list li { padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(190, 150, 70, 0.3); }
.cdl-list li[hidden] { display: none; }
.cdl-main a.cdl-nm { font-weight: 700; color: #1c2a3f; text-decoration: underline; text-decoration-color: #9c7526; text-decoration-thickness: 1px; text-underline-offset: 0.18em; border-bottom: 0; overflow-wrap: anywhere; }
.cdl-main a.cdl-nm:hover { color: #7a5514; }
.cdl-born, .cdl-st, .cdl-fate { color: #4a3d25; font-variant-numeric: tabular-nums; }
.cdl-born i { display: none; font-style: normal; }
.cdl-lead .cdl-st, .cdl-list .cdl-st, .cdl-list .cdl-fate { font-size: 0.93rem; }
.cdl-main span.cdl-nm { color: #2c2620; overflow-wrap: anywhere; }
.cdl-sub { margin: 1.6rem 0 0.4rem; font-size: 1.15rem; line-height: 1.3; font-weight: 700; color: #1c2a3f; }
.cdl-terms { max-width: 46rem; margin: 0.9rem 0 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.cdl-terms dt { font-weight: 700; color: #1c2a3f; }
.cdl-terms dd { margin: 0; color: #4a3d25; line-height: 1.55; }
.cdl-main #about p { max-width: 46rem; line-height: 1.6; }

/* dark theme */
html.theme-dark .cdl-find, html.theme-dark .cdl-cols { color: #d8b366; }
html.theme-dark .cdl-find input { background: #141f30; border-color: #8c7c58; color: #f3ead6; }
html.theme-dark .cdl-say, html.theme-dark .cdl-sub, html.theme-dark .cdl-terms dt { color: #f3ead6; }
html.theme-dark .cdl-lead { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); border-left-color: #d8b366; }
html.theme-dark .cdl-main a.cdl-nm { color: #f3ead6; text-decoration-color: #d8b366; }
html.theme-dark .cdl-main a.cdl-nm:hover { color: #e8cd8a; }
html.theme-dark .cdl-born, html.theme-dark .cdl-st, html.theme-dark .cdl-fate, html.theme-dark .cdl-terms dd { color: #cdbf9f; }
html.theme-dark .cdl-main span.cdl-nm { color: #e9dfc8; }
html.theme-dark .cdl-find input:focus-visible, html.theme-dark .cdl-main a.cdl-nm:focus-visible, html.theme-dark .cdl-links a:focus-visible { outline-color: #d8b366; }

@media (max-width: 640px) {
  .cdl-cols { display: none; }
  .cdl-list li { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; padding: 0.6rem 0.2rem; }
  .cdl-list .cdl-nm, .cdl-list .cdl-fate { flex: 1 1 100%; }
  .cdl-list .cdl-fate:empty { display: none; }
  .cdl-born i { display: inline; }
  .cdl-lead { padding: 0.9rem 0.9rem 1rem; }
  .cdl-lead .cdl-lead-nm { font-size: 1.3rem; }
}
@media print {
  .cdl-tools { display: none !important; }
  .cdl-list li[hidden] { display: grid !important; }
  .cdl-lead[hidden], .cdl-group[hidden], .cdl-main .stx-sec[hidden] { display: block !important; }
  .cdl-list li { break-inside: avoid; }
}
