/* THE JUDGES PAGES IN THE COURTHOUSE DESIGN (Silas, 2026-10-11: the Judges redesign mock,
   approved with one change, "get rid of the words to first interruption").
   judges.html and each judge's page (judges-<judge>.html): a graphite opening band that
   continues the header, with the homepage's courthouse drawing behind it; white cards
   with a graphite frame and 6px corners; Jost type; square buttons; on a judge's page,
   cards with the debrief's header (Newsreader 22px, a rule under it) and one closing
   graphite band. The tracked list and the subscribe sentence are written by
   tools/build_judge_insights.py; judge-tracked.css styles them. The decision map is its
   own page in a frame and keeps its own look.
   Colours are tokens, light here and dark under :root[data-theme="dark"]: the site is
   light unless the reader chose dark (the theme script in each page's head). */

:root {
  --jx-ground: #E4F0FA;      /* the page, baby blue as the homepage */
  --jx-surface: #FFFFFF;     /* a card */
  --jx-ink: #15181B;
  --jx-soft: #3A4250;
  --jx-muted: #56606D;
  --jx-line: #BBD6EE;        /* a light rule */
  --jx-frame: #1B1D20;       /* a card's frame, its header rule */
  --jx-band: #1B1D20;        /* graphite: header, opening band, closing band, footer */
  --jx-band-ink: #F3F6F9;
  --jx-band-soft: #D3DCE6;
  --jx-band-muted: #AFC4D8;
  --jx-inv: #E4EDF5;         /* a light button on graphite */
  --jx-inv-ink: #15181B;
  --jx-inv-hover: #FFFFFF;
  --jx-dot: #1B1D20;
  --jx-focus: #3A73A9;
  --jx-focus-band: #BFDDF6;
  --jx-shadow: 0 1px 2px rgba(21, 24, 27, .1), 0 24px 50px -30px rgba(21, 24, 27, .4);
  --jx-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jx-serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --jx-max: 1240px;
  --jx-pad: clamp(16px, 4vw, 48px);
}
:root[data-theme="dark"] {
  --jx-ground: #0F1317;
  --jx-surface: #182029;
  --jx-ink: #E6EDF4;
  --jx-soft: #B5C2CF;
  --jx-muted: #93A2B2;
  --jx-line: #2B3744;
  --jx-frame: #4A5664;
  --jx-dot: #BFDDF6;
  --jx-focus: #6FA5D6;
  --jx-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 24px 50px -30px rgba(0, 0, 0, .85);
}

/* The ground. site-header.css paints the html a pale fade and the body transparent. */
:root.jx-root, :root.jx-root[data-theme] { background: var(--jx-ground); }
body.jx { background: var(--jx-ground); color: var(--jx-ink); }
.jx main { font-family: var(--jx-sans); }
.jx a:focus-visible { outline: 2px solid var(--jx-focus); outline-offset: 3px; border-radius: 2px; }

.jx-wrap { max-width: var(--jx-max); margin: 0 auto; padding-inline: var(--jx-pad); }

/* ── the opening band ─────────────────────────────────────────────── */
.jx-hero { position: relative; overflow: hidden; background: var(--jx-band); color: var(--jx-band-ink);
  padding-block: clamp(48px, 6vw, 84px) clamp(56px, 6.4vw, 92px); }
.jx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .34;
  background: url("home/courthouse.svg") no-repeat right -90px top 38% / min(940px, 96%) auto;
  -webkit-mask-image: linear-gradient(to right, transparent 22%, #000 72%);
  mask-image: linear-gradient(to right, transparent 22%, #000 72%); }
.jx-hero .jx-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.jx-hero .jx-eyebrow { margin: 0; font: 500 12.5px/1.5 var(--jx-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--jx-band-muted); }
.jx .jx-hero h1 { margin: 0; max-width: 820px; font-family: var(--jx-sans); font-weight: 300; font-size: clamp(42px, 6vw, 80px) !important;
  line-height: 1 !important; letter-spacing: -.02em; color: inherit; text-wrap: balance; }
.jx-hero .jx-lede, .jx-hero .jx-court { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--jx-band-soft); text-wrap: pretty; }
/* The affiliation line (Silas, 2026-10-19, of the compliance page: "Add Disclaimer of affiliation."): small
   print at the foot of the opening band. --jx-band-soft, not -muted: 5.2:1 even where a line of the
   courthouse drawing crosses it (-muted fell to 4.0:1 there). */
.jx-hero .jx-disclaimer { margin: 0; max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--jx-band-soft); text-wrap: pretty; }
.jx-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--jx-band-muted); text-decoration: none; }
.jx-crumb:hover { color: var(--jx-band-ink); }
.jx-crumb svg { width: 14px; height: 14px; flex: none; }
.jx .jx-hero a:focus-visible { outline-color: var(--jx-focus-band); }

/* Square buttons: light on graphite; outlined on a card. */
.jx-btn-inv { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px;
  border: 1px solid var(--jx-inv); border-radius: 6px; background: var(--jx-inv); color: var(--jx-inv-ink);
  font: 500 15.5px/1 var(--jx-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.jx-btn-inv:hover { background: var(--jx-inv-hover); border-color: var(--jx-inv-hover); color: var(--jx-inv-ink); }

/* ── the Judges list: six cards, three across ─────────────────────── */
.jx-list { padding-block: clamp(48px, 5.6vw, 80px); }
.jx .judges-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.jx .jx-card { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; margin: 0;
  background: var(--jx-surface); border: 1px solid var(--jx-frame); border-radius: 6px; box-shadow: var(--jx-shadow);
  padding: clamp(22px, 2.4vw, 30px); font-family: var(--jx-sans); color: var(--jx-ink); }
.jx .jx-card .judge-card-head { display: block; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--jx-frame); }
/* the court line above the name, as the mock; the name stays first for a screen reader */
.jx .jx-card .judge-card-head > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.jx .jx-card .judge-card-court { margin: 0; font-family: var(--jx-sans); font-size: 13.5px; font-weight: 400; line-height: 1.4; color: var(--jx-muted); }
.jx .jx-card .judge-card-name { margin: 0; font-family: var(--jx-sans); font-weight: 400; font-size: clamp(25px, 2.2vw, 29px) !important;
  line-height: 1.12 !important; letter-spacing: -.01em; color: var(--jx-ink); text-wrap: balance; }
.jx .jx-card .judge-patterns { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.jx .jx-card .judge-patterns li { position: relative; padding: 0 0 0 22px; border: 0; font-size: 15.5px; line-height: 1.5; color: var(--jx-soft); text-wrap: pretty; }
.jx .jx-card .judge-patterns li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; margin: 0;
  border-radius: 50%; background: var(--jx-dot); }
.jx .jx-card .judge-card-cta { margin-top: auto; padding-top: 4px; display: flex; }
.jx .jx-card .judge-card-cta .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--jx-frame); border-radius: 6px; background: transparent; color: var(--jx-ink);
  font: 500 14.5px/1 var(--jx-sans); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.jx .jx-card .judge-card-cta .btn-secondary:hover { background: var(--jx-ground); border-color: var(--jx-frame); color: var(--jx-ink); }
.jx .jx-card .judge-card-cta svg { width: 14px; height: 14px; flex: none; }
/* "Request a judge": the sixth card. Not a .judge-card, so the signed-in Judges page
   (app-judges.html), which copies the judges' cards from this page, leaves it out. */
.jx .jx-req { background: transparent; border-style: dashed; box-shadow: none; }
.jx .jx-req > p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--jx-soft); text-wrap: pretty; }
.jx .jx-card .judge-card-cta .btn-demo { min-height: 46px; padding: 0 24px; font: 500 15.5px/1 var(--jx-sans); letter-spacing: 0; }

/* The Request-a-demo row under the cards: its rule in the page's blue, its button in the
   page's type (styles.css .btn-demo gives the graphite square, light on the dark theme). */
.jx .jx-list + .cta-band { border-top-color: var(--jx-line); }
.jx .cta-band .btn.btn-demo { min-height: 46px; padding: 0 24px; font: 500 15.5px/1 var(--jx-sans); letter-spacing: 0; }

/* ── a judge's page: cards with the debrief's header ──────────────── */
.jx-stack { padding-top: clamp(40px, 4.8vw, 64px); }
.jx-dcard { min-width: 0; background: var(--jx-surface); border: 1px solid var(--jx-frame); border-radius: 6px; box-shadow: var(--jx-shadow); }
.jx .jx-dhead { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--jx-frame);
  font-family: var(--jx-serif); font-weight: 400; font-size: 22px !important; line-height: 1.3; letter-spacing: 0; color: var(--jx-ink); text-wrap: balance; }
.jx-dbody { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.jx .jx-dbody > p { margin: 0; max-width: 72ch; font-size: 16.5px; line-height: 1.6; color: var(--jx-soft); text-wrap: pretty; }

/* The closing band's button: the page's Request-a-demo row, set inside the graphite band
   that judge-tracked.css makes of the subscribe sentence above it. */
.jx .cta-band.jx-close { background: var(--jx-band); color: var(--jx-band-ink); border-top: 0; padding: 30px 16px clamp(64px, 7vw, 96px); }
.jx .cta-band.jx-close .btn.btn-demo { min-height: 46px; padding: 0 24px; border: 1px solid var(--jx-inv); border-radius: 6px;
  background: var(--jx-inv); color: var(--jx-inv-ink); font: 500 15.5px/1 var(--jx-sans); letter-spacing: 0; }
.jx .cta-band.jx-close .btn.btn-demo:hover { background: var(--jx-inv-hover); border-color: var(--jx-inv-hover); color: var(--jx-inv-ink); }
.jx .cta-band.jx-close .btn.btn-demo:focus-visible { outline: 2px solid var(--jx-focus-band); outline-offset: 3px; }

@media (max-width: 1080px) {
  .jx .judges-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .jx .judges-grid.three { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .jx-hero::before { opacity: .18; background-position: center 30%; background-size: 620px auto; -webkit-mask-image: none; mask-image: none; }
  .jx-hero .jx-btn-inv { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .jx .jx-dhead { padding: 12px 16px; font-size: 20px !important; }
  .jx-dbody { padding: 16px 16px 20px; }
}
