/* Standing style rule (Law Information Center): no bordered or
   background boxes or cards. Separate sections with whitespace and, at
   most, thin rule lines and headings. Form controls may use a hairline
   for affordance. */

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Italic-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #202060;
  --navy-deep: #151541;
  --navy-mid: #32327C;
  --royal: #343898;
  --ivory: #f6f3ec;
  --paper: #fffdf8;
  --bronze: #a68442;
  --teal: #1b6b7a;
  --text: #1a1a18;
  --muted: #5c5954;
  --line: #ddd8cc;
  --white: #ffffff;
  --ok: #1b6b4a;
  --warn: #8a5a12;
  --bad: #8a1f1f;
  --max: 1160px;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "IBM Plex Serif", "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.15;
}
.brand-acronym {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
.brand-acronym .law { color: var(--navy); }
.brand-acronym .inc { color: var(--royal); }
.brand-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 4px;
  max-width: 28em;
  text-wrap: pretty;
}
.header-utils { display: flex; align-items: center; gap: 16px; }
.founded { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.search {
  display: flex;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.search input {
  border: 0; background: transparent;
  padding: 7px 10px;
  font: inherit; font-size: 13px;
  width: 160px; color: var(--text);
  outline: none;
}
.search button {
  border: 0; background: transparent;
  color: var(--navy);
  padding: 7px 8px;
  font: inherit; font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block; width: 16px; height: 1.5px;
  background: currentColor; position: relative;
}
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-btn span::before { top: -5px; }
.nav-toggle-btn span::after { top: 5px; }
.site-nav { border-top: 1px solid var(--line); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0;
}
.site-nav a {
  display: block;
  padding: 12px 18px 13px 0;
  margin-right: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--bronze);
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 72px 0 68px;
}
.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.18;
  margin: 0 0 22px;
  max-width: 16em;
  color: var(--white);
}
.hero .standfirst {
  font-size: 18px;
  line-height: 1.55;
  max-width: 42em;
  color: rgba(246, 243, 236, 0.86);
  margin: 0 0 28px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.7);
  border-top: 1px solid rgba(166, 132, 66, 0.45);
  padding-top: 18px;
  max-width: 42em;
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0;
  color: var(--navy);
}
.section-head .all {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  font-weight: 500;
}
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.door {
  background: none;
  padding: 18px 0 22px;
  border: 0;
  border-top: 1px solid var(--bronze);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 0;
  box-shadow: none;
}
.section.alt .door { background: none; }
.door h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--navy);
}
.door p { margin: 0; color: var(--muted); font-size: 15px; }
.door:hover { box-shadow: none; border-top-color: var(--navy); }

/* News list */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news time {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}
.news a { text-decoration: none; color: var(--navy); font-weight: 500; }
.news a:hover { color: var(--teal); }
.news .flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  border: 0;
  padding: 0;
}

/* International links */
.intl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
}
.intl a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.intl a span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }
.intl a:hover { color: var(--teal); }

/* Page (inner) */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 32px;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--navy);
  max-width: 22ch;
}
.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--navy-mid);
  max-width: 40em;
  margin: 0;
}
.article {
  padding: 48px 0 72px;
}
.article-body {
  max-width: 40em;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin: 2em 0 0.6em;
}
.article-body p { margin: 0 0 1.1em; }
.article-body .placeholder {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.people li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.people strong { color: var(--navy); font-weight: 600; }
.people .role { display: block; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 243, 236, 0.82);
  padding: 48px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.15);
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  margin: 0 0 8px;
  font-weight: 600;
}
.site-footer h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 12px;
  font-weight: 500;
}
.site-footer a { color: rgba(246, 243, 236, 0.9); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.legal {
  padding-top: 18px;
  font-size: 12px;
  color: rgba(246, 243, 236, 0.55);
}
.legal p { margin: 0 0 8px; }

/* Responsive */
@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .founded, .search { display: none; }
  .nav-toggle-btn { display: grid; place-items: center; margin-left: auto; }
  .header-utils { display: none; }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .site-header:has(#nav-toggle:checked) .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 0 16px; }
  .site-nav a { padding: 12px 0; margin: 0; }
  .hero { padding: 44px 0 40px; }
  .doors, .intl, .footer-grid { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 44px 0; }
}


/* Official logo wordmark (transparent PNG derived from source/lawinc-logo.jpg). */
.letter-box {
  background: var(--white);
  border-left: 3px solid var(--royal);
  padding: 16px 18px;
  margin: 20px 0;
}
.letter-box h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.letter-box p { margin: 0 0 8px; }
.letter-box p:last-child { margin-bottom: 0; }
.data-as-on {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
}
.address-block { margin: 12px 0 18px; }
.address-block dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.address-block dd { margin: 2px 0 12px; color: var(--navy); font-weight: 500; }
@media (max-width: 800px) {
  .brand-logo { height: 34px; }
  .brand-name { font-size: 16px; }
  .brand { gap: 10px; align-items: flex-start; }
  .header-top { padding: 12px 0 10px; align-items: flex-start; }
  .nav-toggle-btn { margin-top: 2px; }
  .brand-tagline {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
    max-width: 22em;
  }
  .hero h1 { max-width: 14em; }
}

/* Data tables and status badges */
.page-hero.wide h1 { max-width: 28ch; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 18px 0 0;
}
.toolbar a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border: 0;
  padding: 4px 0;
  background: none;
}
.toolbar a:hover { color: var(--royal); }
.source-line {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 58em;
}
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: transparent;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  background: none;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--navy);
}
table.data tr:hover td { background: transparent; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0;
  border: 0;
  background: none;
  line-height: 1.4;
  white-space: normal;
}
.badge.ok { color: var(--ok); }
.badge.tls, .badge.blocked, .badge.warn { color: var(--warn); }
.badge.fail, .badge.bad { color: var(--bad); }
.badge.none { color: var(--muted); }
.note-small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.hc-card, .judge-card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
  margin: 0 0 8px;
}
.hc-card h2, .judge-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
  margin: 12px 0 8px;
  font-size: 14px;
}
.meta-grid dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.meta-grid dd { margin: 2px 0 0; color: var(--navy); }
ol.seniority { margin: 0; padding: 0; list-style: none; counter-reset: jk; }
ol.seniority li {
  counter-increment: jk;
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
ol.seniority li::before {
  content: counter(jk);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
ol.seniority .name { color: var(--navy); font-weight: 600; }
ol.seniority .role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-left: 8px; }
ol.seniority .dates { font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-box {
  margin: 0 0 18px;
}
.filter-box input {
  font: inherit;
  font-size: 15px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: min(100%, 28em);
  background: transparent;
  border-radius: 0;
}
.az-letter { scroll-margin-top: 16px; }
@media (max-width: 800px) {
  .meta-grid { grid-template-columns: 1fr; }
  ol.seniority li { grid-template-columns: 1.6rem 1fr; }
  ol.seniority .dates { grid-column: 2; white-space: normal; }
}


.site-nav .has-sub { position: relative; }
.site-nav .sub-nav {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  min-width: 240px;
  background: var(--white);
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 20;
}
.site-nav .has-sub:hover > .sub-nav,
.site-nav .has-sub:focus-within > .sub-nav { display: block; }
.site-nav .sub-nav a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0;
  border-bottom: 0;
}
@media (max-width: 800px) {
  .site-nav .has-sub { position: static; }
  .site-nav .sub-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
    min-width: 0;
  }
}

/* Download PDF button (end of data pages) */
.pdf-download {
  margin: 28px 0 8px;
}
.pdf-btn {
  display: inline;
  align-items: baseline;
  gap: 0;
  background: none;
  color: var(--navy, #202060);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0;
  border-radius: 0;
  border: 0;
}
.pdf-btn:hover, .pdf-btn:focus {
  background: none;
  color: var(--royal, #343898);
}
.pdf-btn .pdf-size {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.85;
}

/* A4 print: exact page size, 15 mm margins, no browser “fit to page” needed. */
@page {
  size: A4;
  margin: 15mm;
}
@media print {
  html, body {
    background: #fff !important;
    color: #111;
    font-size: 10pt;
    width: auto !important;
    max-width: none !important;
  }
  .site-nav,
  .header-utils,
  .search,
  .nav-toggle,
  .nav-toggle-btn,
  .founded,
  .sub-nav-page,
  .sub-nav,
  .pdf-download,
  .filters,
  .ais-tools,
  .table-search,
  .sort-hint,
  /* kpis print as open text */
  .site-footer,
  .hero-meta,
  #nav-toggle {
    display: none !important;
  }
  .site-header {
    position: static;
    box-shadow: none;
    border-bottom: 0.6pt solid #202060;
    background: #fff;
    padding: 0 0 6mm;
    margin: 0 0 6mm;
  }
  .header-top, .wrap, main, .page, .table-wrap, section, .section {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .brand-logo { height: 10mm; width: auto; }
  .brand-tagline { display: block !important; }
  a { color: #111; text-decoration: none; }
  h1 { font-size: 16pt; margin: 0 0 4mm; color: #202060; }
  h2 { font-size: 12pt; margin: 5mm 0 2mm; color: #202060; page-break-after: avoid; }
  .data-source, .page-intro, .note-proj, .caveat, .lede {
    font-size: 9pt;
    color: #333;
  }
  table, table.judges, table.vacancies, table.countries {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 8pt;
    line-height: 1.25;
    table-layout: auto;
  }
  thead { display: table-header-group; }
  tfoot { display: table-footer-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  th, td {
    border: 0.3pt solid #bbb;
    padding: 1.5pt 3pt;
    vertical-align: top;
    overflow: visible;
    word-wrap: break-word;
  }
  th {
    background: transparent !important;
    color: #202060 !important;
    border-bottom: 0.6pt solid #202060;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .vac-bar { display: none; }
  .hc-card, .hc-grid > * {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Do not shrink to fit; keep type at or above 8 pt. */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
