/* Tokens. Green means one thing here, as on every registrar's search page: available. The rows carry the green bars of
   continuous printout paper, because a zone file is the longest printout in the world. */
:root {
  --paper: #f6faf6;
  --sheet: #ffffff;
  --bar: #eaf3ec;
  --ink: #10261c;
  --ink-2: #4a6156;
  --ink-3: #6d8378;
  --rule: #cfdfd4;
  --free: #0a7a45;
  --free-bg: #dcf3e4;
  --drop: #9a5b00;
  --drop-bg: #fcefd5;
  --likely: #24639c;
  --likely-bg: #e2eefa;
  --bad: #b3261e;
  --bad-bg: #fbe6e3;
  --taken: #5d6c65;
  --taken-bg: #e8edea;
  --p1: #0a7a45;
  --p2: #3f9f73;
  --p3: #7cc09f;
  --p4: #a9d6c0;
  --p5: #cde8db;
  --r: 4px;
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1712; --sheet: #111f18; --bar: #15261d; --ink: #e4f0e9; --ink-2: #a5bbaf; --ink-3: #82998c; --rule: #27392f;
    --free: #4fd18f; --free-bg: #123524; --drop: #eeb04f; --drop-bg: #33260e; --likely: #79b6ec; --likely-bg: #14293d;
    --bad: #f28b82; --bad-bg: #3a1714; --taken: #9aaba2; --taken-bg: #1d2b24;
    --p1: #4fd18f; --p2: #38a873; --p3: #2b8259; --p4: #236646; --p5: #1c4f37;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1712; --sheet: #111f18; --bar: #15261d; --ink: #e4f0e9; --ink-2: #a5bbaf; --ink-3: #82998c; --rule: #27392f;
  --free: #4fd18f; --free-bg: #123524; --drop: #eeb04f; --drop-bg: #33260e; --likely: #79b6ec; --likely-bg: #14293d;
  --bad: #f28b82; --bad-bg: #3a1714; --taken: #9aaba2; --taken-bg: #1d2b24;
  --p1: #4fd18f; --p2: #38a873; --p3: #2b8259; --p4: #236646; --p5: #1c4f37;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--font); font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
small { font-size: .82em; font-weight: 400; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--free); outline-offset: 2px; border-radius: 2px; }
#view:focus { outline: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--sheet); padding: 6px 10px; z-index: 20; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 54px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; }
.brand b { font-weight: 800; letter-spacing: -.01em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; text-decoration: none; color: var(--ink-2); border-radius: var(--r); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--bar); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--free); border-radius: 0; }
.find { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.find input { width: 100%; height: 34px; padding: 0 10px; font: inherit; color: inherit; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
#search-results { position: absolute; top: 38px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 8px 24px rgb(16 38 28 / .16); max-height: 60vh; overflow: auto; }
#search-results a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; text-decoration: none; border-radius: 3px; }
#search-results a:hover { background: var(--bar); }
#search-results .empty { padding: 8px; color: var(--ink-3); }

/* shared */
.page { max-width: 1400px; margin: 0 auto; padding: 24px; }
.page-h { font-size: 28px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.lede { color: var(--ink-2); max-width: 72ch; margin-top: 6px; }
section + section, .page > section { margin-top: 28px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 14px; font-weight: 700; margin-top: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.sec-head a { color: var(--ink-2); font-size: 14px; }
.quiet { color: var(--ink-2); }
.none { color: var(--ink-3); }
.stale { color: var(--drop); }
.bad-t { color: var(--bad); }
.num { font-family: var(--mono); font-size: .94em; }
.spacer { flex: 1; }
.wait { padding: 48px 0; text-align: center; color: var(--ink-2); }
.state { padding: 48px 16px; text-align: center; }
.state h2 { margin-bottom: 6px; }
.state p { color: var(--ink-2); margin-top: 6px; }
.state .btn { margin-top: 12px; }
.state.small { padding: 28px 16px; background: var(--sheet); border: 1px dashed var(--rule); border-radius: var(--r); }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r); z-index: 30; }
.toast.bad { background: var(--bad); color: #fff; }

.btn, .ghost { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; font: inherit; font-weight: 500; color: inherit; text-decoration: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; white-space: nowrap; }
.btn:hover, .ghost:hover { border-color: var(--ink-3); }
.btn.small { height: 28px; padding: 0 9px; font-size: 14px; }
.btn.primary { background: var(--free); border-color: var(--free); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .btn.primary { color: #06140d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #06140d; } }
.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.ghost:hover { color: var(--ink); border-color: var(--rule); }
button:disabled { opacity: .55; cursor: default; }
select, input[type=number], input[type=text], input[type=search] { font: inherit; color: inherit; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 4px 8px; min-height: 32px; }
.inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }

/* the domain name: the subject of everything */
.dn { font-weight: 400; white-space: nowrap; }
.dn b { font-weight: 700; }
.dn i { font-style: normal; color: var(--ink-3); }
.dn.big { font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.dn.big b { font-weight: 800; }
.dn.big i { font-weight: 400; }
.dl { text-decoration: none; }
.dl:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* status */
.stage { display: inline-block; padding: 1px 7px; font-size: 13px; font-weight: 600; border-radius: 3px; white-space: nowrap; }
.stage.free { background: var(--free-bg); color: var(--free); }
.stage.drop { background: var(--drop-bg); color: var(--drop); }
.stage.likely { background: var(--likely-bg); color: var(--likely); }
.stage.taken, .stage.none { background: var(--taken-bg); color: var(--taken); }
.stage.bad { background: var(--bad-bg); color: var(--bad); }
.flag { margin-left: 7px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; }
.flag.bad { color: var(--bad); border-color: var(--bad); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ink-3); }
.dot.free { background: var(--free); }
.dot.taken { background: var(--taken); }
.dot.drop { background: var(--drop); }
.dot.bad { background: var(--bad); }
.dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* score */
.score { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.score b { font-weight: 700; min-width: 2ch; text-align: right; }
.meter { display: inline-flex; width: 56px; height: 7px; background: var(--bar); border-radius: 1px; overflow: hidden; }
.meter i { display: block; height: 100%; }
.p-authority { background: var(--p1); }
.p-history { background: var(--p2); }
.p-name { background: var(--p3); }
.p-tld { background: var(--p4); }
.p-urgency { background: var(--p5); }

/* the list: green-bar paper, three rows white, three rows tinted */
.tw { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
table { border-collapse: collapse; }
.list { width: 100%; }
.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--sheet); }
.list th a { text-decoration: none; }
.list th a:hover { color: var(--ink); text-decoration: underline; }
.list td { padding: 7px 12px; vertical-align: middle; white-space: nowrap; }
.list tbody tr:nth-child(6n+4) td, .list tbody tr:nth-child(6n+5) td, .list tbody tr:nth-child(6n+6) td { background: var(--bar); }
.list tbody tr:hover td { box-shadow: inset 0 1px 0 var(--free), inset 0 -1px 0 var(--free); }
.r { text-align: right !important; }
.was { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: var(--ink-2); }
.plus { width: 26px; height: 26px; font: inherit; font-weight: 700; line-height: 1; color: var(--free); background: transparent; border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; }
.plus:hover { background: var(--free-bg); border-color: var(--free); }

/* Today: the ladder */
.ladder h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; }
.ladder ol { list-style: none; margin: 22px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ladder li a { display: grid; grid-template-columns: minmax(240px, 1.1fr) 1.5fr 110px; align-items: center; gap: 20px; padding: 11px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.ladder li a:hover { background-color: var(--bar); }
.lad-label b { display: block; font-weight: 700; }
.lad-label small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.lad-bar { display: block; height: 22px; }
.lad-bar i { display: block; height: 100%; background: var(--p3); border-radius: 1px; }
.ladder li:nth-child(n+4) .lad-bar i { background: var(--free); }
.lad-n { text-align: right; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ladder li:last-child .lad-n { color: var(--free); }
.two { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); gap: 32px; margin-top: 32px; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two > * { min-width: 0; margin-top: 0; }
aside section + section { margin-top: 24px; }
.kv { width: 100%; }
.kv th { text-align: left; font-weight: 400; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.kv td { text-align: right; padding: 5px 0; border-bottom: 1px solid var(--rule); font-weight: 700; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); }

/* Domains page */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 8px 14px; text-decoration: none; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-radius: var(--r) var(--r) 0 0; }
.tabs a b { margin-left: 7px; font-weight: 500; color: var(--ink-3); }
.tabs a:hover { background: var(--bar); color: var(--ink); }
.tabs a[aria-current] { background: var(--ink); color: var(--paper); }
.tabs a[aria-current] b { color: inherit; opacity: .8; }
.split { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow-y: auto; padding-right: 6px; }
fieldset { border: 0; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--rule); min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.field input, .field select { width: 100%; color: var(--ink); }
.check { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--free); width: 15px; height: 15px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font: inherit; font-size: 13px; font-weight: 500; padding: 1px 7px; color: var(--ink-2); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--free); border-color: var(--free); color: #fff; }
.note { font-size: 13px; color: var(--drop); margin-top: 8px; line-height: 1.35; }
.clear { font-size: 14px; color: var(--ink-2); }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; min-height: 34px; }
.res-head p { color: var(--ink-2); }
.res-head b { color: var(--ink); }
#results[aria-busy] { opacity: .6; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-2); }
.evtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.evtabs a { padding: 3px 10px; text-decoration: none; font-size: 14px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.evtabs a b { font-weight: 600; color: var(--ink); }
.evtabs a[aria-current] { border-color: var(--free); box-shadow: inset 0 0 0 1px var(--free); color: var(--ink); }

/* Domain page */
.dom-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 26px 28px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule); border-left: 8px solid var(--ink-3); }
.verdict.free { border-left-color: var(--free); background: linear-gradient(90deg, var(--free-bg), var(--sheet) 62%); }
.verdict.drop { border-left-color: var(--drop); background: linear-gradient(90deg, var(--drop-bg), var(--sheet) 62%); }
.verdict.likely { border-left-color: var(--likely); background: linear-gradient(90deg, var(--likely-bg), var(--sheet) 62%); }
.verdict.taken { border-left-color: var(--taken); }
.verdict h1 { overflow-wrap: anywhere; }
.verdict .dn.big { white-space: normal; }
.v-say { margin-top: 10px; max-width: 62ch; font-size: 16px; }
.v-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.big-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.big-score b { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.big-score span { color: var(--ink-2); }
.parts { width: 100%; font-size: 14px; }
.parts th { text-align: left; font-weight: 400; padding: 2px 8px 2px 0; color: var(--ink-2); }
.parts td { padding: 2px 0; }
.parts td:nth-child(2) { width: 100%; padding-right: 8px; }
.parts td.r { white-space: nowrap; }
.pbar { display: block; min-width: 40px; height: 7px; background: var(--bar); border-radius: 1px; overflow: hidden; }
.pbar i { display: block; height: 100%; }
.dom-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; margin-top: 26px; }
.dom-body > section { margin: 0; min-width: 0; }
.dom-body h2 { padding-bottom: 6px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.ev { width: 100%; }
.ev th, .ev td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ev thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ev tbody th { font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.ev td:last-child, .ev th:last-child { padding-right: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.src-line { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.risks { list-style: none; margin: 0; padding: 0; }
.risks li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.risks .bad { color: var(--bad); font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; }
.tl { margin-top: 12px; }
.tl ol { list-style: none; margin: 8px 0 0; padding: 0; }
.tl li { display: flex; gap: 12px; padding: 3px 0; font-size: 14px; }
.tl time { color: var(--ink-2); min-width: 92px; }
.rawbox { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--rule); }
.rawbox details { margin-top: 8px; }
.rawbox summary { font-weight: 500; }
.rawbox pre { overflow: auto; max-height: 340px; padding: 10px; font: 12.5px/1.45 var(--mono); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
.more { margin-top: 24px; }
.more > summary { padding: 6px 0; }
.more .tw, .more > .ev { margin-top: 8px; }
.short h2 small { margin-left: 4px; }
.short .tw { margin-top: 8px; }

.plus.on { color: #fff; background: var(--free); border-color: var(--free); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ext { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }

/* sign-in: the Today ladder, reduced to its last three steps, above one quiet form */
.signin { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.signin main { width: 100%; max-width: 360px; }
.signin h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.signin-say { color: var(--ink-2); margin-top: 6px; }
.signin-ladder { margin-bottom: 22px; }
.signin-ladder i { display: block; height: 12px; margin-bottom: 5px; border-radius: 1px; }
.signin-ladder i:nth-child(1) { width: 100%; background: var(--p3); }
.signin-ladder i:nth-child(2) { width: 58%; background: var(--p2); }
.signin-ladder i:nth-child(3) { width: 22%; background: var(--free); }
.signin form { margin-top: 26px; }
.signin .field { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--ink); gap: 5px; }
.signin .field input { min-height: 44px; padding: 8px 12px; background: var(--sheet); }
.signin .btn { width: 100%; height: 44px; justify-content: center; margin-top: 20px; font-size: 16px; }
.signin-msg { margin-top: 14px; padding: 9px 12px; color: var(--bad); background: var(--bad-bg); border-radius: var(--r); font-size: 14px; }

/* narrow screens */
@media (max-width: 1100px) {
  .h2 { display: none; }
  .verdict { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; padding: 0; }
  .two, .two.even, .dom-body { grid-template-columns: minmax(0, 1fr); }
  .ladder li a { grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 12px; }
  .lad-bar { grid-column: 1 / -1; grid-row: 2; height: 12px; }
  .lad-n { font-size: 22px; }
  .h1 { display: none; }
}
@media (max-width: 680px) {
  .top { flex-wrap: wrap; height: auto; padding: 8px 16px; gap: 8px; position: static; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .find { order: 2; flex: 1 1 100%; max-width: none; margin: 0; }
  #theme { margin-left: auto; }
  .page { padding: 16px; }
  .verdict { padding: 18px 16px; }
  .meter { display: none; }
  .list td, .list th { padding: 6px 8px; }
  .res-head { flex-wrap: wrap; }
  .ev tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
