:root {
  --paper: #F6F5F3; --ink: #161514; --muted: #6C6A65; --faint: #9C998F;
  --line: rgba(22,21,20,.14); --line-2: rgba(22,21,20,.07); --accent: #1F5E8C;
  --good: #2f7d4f; --card: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 14px; line-height: 1.45; }
.app { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem) 3rem; }
h1, h2 { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin: 0; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.12; max-width: 22ch; }
h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .7rem; }
.top { padding: 2.2rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.lede { color: var(--muted); max-width: 70ch; margin: .8rem 0 0; font-size: .95rem; }
#stats { color: var(--ink); font-weight: 500; }

.guide { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: .8rem .9rem; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cat:hover, .cat.on { border-color: var(--ink); }
.cat.on { box-shadow: inset 3px 0 0 var(--accent); }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cat-name { font-weight: 600; }
.cat-n { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--accent); white-space: nowrap; }
.cat-n.zero { color: var(--faint); }
.cat p { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .78rem; margin: .9rem 0 0; max-width: 90ch; }

.filters { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: .9rem 0 .5rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.chip { font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 500; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip i { font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: .68rem; opacity: .7; margin-left: .3rem; }
.selects { display: flex; flex-wrap: wrap; gap: .4rem; }
select { font-family: "IBM Plex Mono", monospace; font-size: .72rem; padding: .45rem .6rem; border: 1px solid var(--line); background: var(--card); border-radius: 3px; color: var(--ink); max-width: 100%; }
.count { font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--muted); margin: .6rem 0 0; }

.jt { width: 100%; border-collapse: collapse; }
.jt th { text-align: left; font-family: "IBM Plex Mono", monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 500; padding: .8rem .6rem .5rem; border-bottom: 1px solid var(--line); }
.jt td { padding: .75rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.jt tbody tr:hover { background: rgba(22,21,20,.025); }
.c-pay { white-space: nowrap; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: .86rem; }
.c-pay small { display: block; font-weight: 400; font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.c-pay.listed { color: var(--good); }
.role-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.role-title:hover { border-bottom: 1.5px solid var(--accent); }
.role-why { color: var(--muted); font-size: .78rem; margin-top: .2rem; max-width: 62ch; }
.c-co, .c-town { min-width: 9ch; }
.c-town small, .c-co small { display: block; color: var(--faint); font-size: .7rem; }
.tag { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; padding: .08rem .35rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); margin: 0 .2rem .2rem 0; white-space: nowrap; }
.tag.house { color: var(--good); border-color: rgba(47,125,79,.4); }
.tag.rot { color: var(--accent); border-color: rgba(31,94,140,.4); }
.c-date { font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.foot { color: var(--faint); font-size: .74rem; padding-top: 1.5rem; }

@media (max-width: 760px) {
  .filters { position: static; }
  .jt thead { display: none; }
  .jt, .jt tbody, .jt tr, .jt td { display: block; width: 100%; }
  .jt tr { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .jt td { border: 0; padding: .12rem 0; }
  .c-pay small { display: inline; margin-left: .4rem; }
  .c-town small, .c-co small { display: inline; margin-left: .3rem; }
}
