  :root{
    --paper:#F1EEE4;
    --ink:#1B1B18;
    --gold:#F2B705;
    --gold-deep:#C8901A;
    --red:#B3222A;
    --white:#FFFFFF;
    --line: rgba(27,27,24,0.14);
    --muted: #6b6a63;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --paper:#17160F;
      --ink:#F1EEE4;
      --line: rgba(241,238,228,0.16);
      --muted:#a8a598;
    }
  }
  :root[data-theme="dark"]{
    --paper:#17160F;
    --ink:#F1EEE4;
    --line: rgba(241,238,228,0.16);
    --muted:#a8a598;
  }

  *{ box-sizing: border-box; }
  html,body{ margin:0; padding:0; }
  body{
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }

  .checker{
    display:flex;
    width:100%;
    height:14px;
  }
  .checker span{ flex:1; }
  .checker.top span:nth-child(odd){ background: var(--gold); }
  .checker.top span:nth-child(even){ background: var(--ink); }
  .checker.bottom span:nth-child(odd){ background: var(--white); }
  .checker.bottom span:nth-child(even){ background: var(--red); }

  header.masthead{
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 32px;
  }
  .kicker{
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin: 0 0 14px;
  }
  h1{
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    font-size: clamp(34px, 5.4vw, 54px);
    line-height: 1.05;
    margin: 0 0 16px;
    max-width: 14ch;
  }
  header p.lede{
    font-size: 17px;
    line-height: 1.55;
    max-width: 62ch;
    color: var(--ink);
    opacity: 0.86;
    margin: 0;
  }

  main{
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 24px 80px;
  }

  .panel{
    border: 1px solid var(--line);
    padding: 28px;
    margin-top: 28px;
    background: color-mix(in srgb, var(--paper) 92%, var(--ink) 8%);
  }
  @supports not (background: color-mix(in srgb, red, blue)){
    .panel{ background: transparent; }
  }

  .field-row{
    display:flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
  }
  .field{
    flex: 1 1 320px;
    display:flex;
    flex-direction: column;
    gap: 8px;
  }
  label{
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--muted);
  }
  select{
    appearance: none;
    -webkit-appearance: none;
    background: var(--paper);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 13px 44px 13px 14px;
    font-size: 16px;
    font-family: "IBM Plex Sans", sans-serif;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1L7 7L13 1' stroke='%231B1B18' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    border-radius: 0;
    cursor: pointer;
  }
  select:focus-visible{
    outline: 2px solid var(--gold-deep);
    outline-offset: 2px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]) select{
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1L7 7L13 1' stroke='%23F1EEE4' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
      border-color: var(--ink);
    }
  }
  :root[data-theme="dark"] select{
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1L7 7L13 1' stroke='%23F1EEE4' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
    border-color: var(--ink);
  }

  button#submit{
    border: none;
    background: var(--ink);
    color: var(--paper);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13.5px;
    letter-spacing: 0.03em;
    padding: 14px 26px;
    cursor: pointer;
    transition: background 0.15s ease;
    flex: 0 0 auto;
  }
  button#submit:hover{ background: var(--gold-deep); color: var(--ink); }
  button#submit:focus-visible{ outline: 2px solid var(--red); outline-offset: 2px; }

  .disclaimer{
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 70ch;
  }

  #results{ margin-top: 44px; }
  .results-head{
    display:flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .results-head h2{
    font-family: "Source Serif 4", serif;
    font-weight: 600;
    font-size: 23px;
    margin: 0;
  }
  .results-head .count{
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    color: var(--muted);
  }

  table{
    width: 100%;
    border-collapse: collapse;
  }
  thead th{
    text-align: left;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: var(--muted);
    font-weight: 500;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  thead th.num{ text-align: right; }
  tbody td{
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    vertical-align: baseline;
  }
  tbody tr:hover{ background: color-mix(in srgb, var(--gold) 12%, transparent); }
  td.rank{
    font-family: "IBM Plex Mono", monospace;
    color: var(--gold-deep);
    font-weight: 600;
    width: 34px;
  }
  td.wage{
    text-align: right;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    white-space: nowrap;
  }
  td.title{ font-weight: 500; }

  .empty{
    padding: 40px 8px;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  footer{
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px 60px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  nav.site{ max-width:920px; margin:0 auto; padding:16px 24px 0; display:flex; gap:22px; flex-wrap:wrap; align-items:baseline; }
  nav.site .brand{ font-family:"Source Serif 4",serif; font-weight:700; font-size:17px; margin-right:auto; color:var(--ink); text-decoration:none; }
  nav.site a, footer a{ color:var(--ink); font-size:14px; text-underline-offset:3px; }
  .ad-slot{ margin:36px 0 0; border:1px dashed var(--line); min-height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted); font-size:12px; gap:4px; }
  .ad-slot small{ font-family:"IBM Plex Mono",monospace; font-size:11px; }
  section.content{ margin-top:56px; max-width:70ch; scroll-margin-top:16px; }
  section.content h2{ font-family:"Source Serif 4",serif; font-size:26px; margin:0 0 12px; }
  section.content h3{ font-size:16px; margin:22px 0 6px; }
  section.content p, section.content li{ font-size:16px; line-height:1.65; }
  section.content ul{ padding-left:20px; }
  section.content a{ color:var(--ink); text-underline-offset:3px; }
  .updated{ font-size:12.5px; color:var(--muted); }
  footer .links{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:10px; }
  #consent{ position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--ink); color:var(--paper); padding:14px 24px calc(14px + env(safe-area-inset-bottom,0px)); display:none; gap:16px; align-items:center; flex-wrap:wrap; font-size:13.5px; line-height:1.5; }
  #consent p{ margin:0; flex:1 1 320px; }
  #consent a{ color:var(--gold); }
  #consent button{ font-family:"IBM Plex Mono",monospace; font-size:12.5px; padding:9px 16px; border:1px solid var(--paper); background:transparent; color:var(--paper); cursor:pointer; }
  #consent button.accept{ background:var(--gold); color:#1B1B18; border-color:var(--gold); }

  ::selection{ background: var(--gold); color: var(--ink); }