/* Layout: one search desk on the home page; reference pages are a single readable column with a facts panel. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #14171c;
  --muted: #5a616d;
  --line: #dcdfe5;
  --accent: #2a45c9;
  --accent-soft: #e6eafb;
  --live: #1d7347;
  --live-soft: #e2f2e9;
  --beta: #8a5d00;
  --beta-soft: #f6edd8;
  --soon: #5a616d;
  --soon-soft: #eceef2;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a20; --ink: #e8eaee; --muted: #9ba2ae; --line: #2a2f38;
    --accent: #8fa2ff; --accent-soft: #1d2340; --live: #5fcf95; --live-soft: #15291f;
    --beta: #e3b55a; --beta-soft: #2c2412; --soon: #a3aab5; --soon-soft: #20242b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a20; --ink: #e8eaee; --muted: #9ba2ae; --line: #2a2f38;
  --accent: #8fa2ff; --accent-soft: #1d2340; --live: #5fcf95; --live-soft: #15291f;
  --beta: #e3b55a; --beta-soft: #2c2412; --soon: #a3aab5; --soon-soft: #20242b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
main.wrap { padding-block: 32px 72px; display: grid; gap: 44px; }
.narrow { max-width: 760px; }

/* Site header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 19px; display: flex; gap: 8px; align-items: baseline; color: var(--ink); text-decoration: none; }
.brand .tau { font-family: var(--mono); color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { padding-block: 28px 40px; display: grid; gap: 8px; max-width: 1040px; }
.site-foot p { max-width: 72ch; }

/* Shared bits */
.eyebrow { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.lede { color: var(--muted); max-width: 62ch; font-size: 17px; text-wrap: pretty; }
.btn { font: inherit; font-weight: 600; font-size: 15px; border: 0; border-radius: 8px; padding: 12px 16px; cursor: pointer; background: var(--ink); color: var(--bg); white-space: nowrap; text-decoration: none; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; text-align: left; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips .label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.pill { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.live { color: var(--live); background: var(--live-soft); }
.pill.beta { color: var(--beta); background: var(--beta-soft); }
.pill.coming, .pill.research, .pill.inactive { color: var(--soon); background: var(--soon-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h2 { font-size: 26px; font-weight: 700; }
.section-head .why { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 14px; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }

/* Search desk */
.desk { display: grid; gap: 18px; }
.desk h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 700; line-height: 1.02; max-width: 15ch; }
.field { display: flex; gap: 10px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 6px 6px 6px 16px; align-items: center; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 19px; color: var(--ink); padding-block: 12px; outline: none; }
.field input::placeholder { color: var(--muted); }
.smart { font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1.4em; }
.smart.on { color: var(--live); }
.answer { display: grid; gap: 28px; }
.answer:empty { display: none; }
.tier { display: grid; gap: 14px; }
.tier-title { display: flex; gap: 10px; align-items: baseline; }
.tier-title h3 { font-size: 19px; font-weight: 700; }
.tier-title .count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tier-note { color: var(--muted); font-size: 14.5px; max-width: 70ch; }

/* Guide match on the home page */
.guide-match { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.guide-match .kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.guide-match h2 { font-size: 26px; }
.guide-match .sum { max-width: 70ch; }
.guide-match .gap { color: var(--muted); font-size: 14.5px; max-width: 70ch; }

/* Subnet card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card.top { border-color: var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sn { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card h3, .card h4 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0; line-height: 1.15; overflow-wrap: anywhere; }
.card h3 a, .card h4 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h4 a:hover { text-decoration: underline; }
.card .one { font-size: 15.5px; text-wrap: pretty; }
.card ul { padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 3px; }
.card .step { font-size: 14.5px; display: grid; gap: 4px; }
.card .step b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.facts b { color: var(--ink); font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.open { font-weight: 600; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.open:hover { text-decoration: underline; }
.matched { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }

/* Lists of rows */
details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.more summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row .nm { font-weight: 600; }
.row .ds { color: var(--muted); font-size: 14.5px; }

/* Guides grid */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.guide-link { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--ink); text-decoration: none; display: grid; gap: 2px; }
.guide-link:hover { border-color: var(--ink); }
.guide-link span { font-size: 13px; color: var(--muted); }

/* Directory */
.dir-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dir-tools input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.dir { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.dir th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dir td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dir tr:last-child td { border-bottom: 0; }
table.dir td.num { font-family: var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.dir td .ds { color: var(--muted); }
table.dir a { font-weight: 600; text-decoration: none; }
table.dir a:hover { text-decoration: underline; }

/* Profile and guide pages */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.profile h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.profile .main { display: grid; gap: 22px; min-width: 0; }
.profile h2 { font-size: 21px; }
.profile .block { display: grid; gap: 10px; }
.profile .block ul { padding-left: 20px; display: grid; gap: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; position: sticky; top: 16px; }
.panel dl { margin: 0; display: grid; gap: 10px; }
.panel dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.panel dd { margin: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sources { font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; padding-left: 20px; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.faq { display: grid; gap: 16px; }
.faq h3 { font-size: 18px; }
.faq p { color: var(--muted); max-width: 70ch; margin-top: 4px; }
.prose { display: grid; gap: 14px; max-width: 70ch; }
.prose h2 { font-size: 22px; margin-top: 10px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 820px) {
  .profile { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
}
@media (max-width: 560px) {
  .field { flex-wrap: wrap; padding: 6px; }
  .field input { padding-inline: 10px; }
  .field .btn { width: 100%; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row .pill { grid-column: 2; justify-self: start; }
  table.dir .hide-sm { display: none; }
}
