/* The public inventory: the front page, /names and the name pages. The admin app keeps app.css. */
:root {
  --ink: #10203f;          /* navy: masthead, headings, the nameplate */
  --ink-2: #2b3a57;        /* body text on white */
  --muted: #66728a;
  --paper: #f3f5f8;        /* page background */
  --white: #ffffff;        /* board surfaces */
  --rule: #d5dce6;
  --rule-strong: #b9c3d2;
  --price: #0a6b47;        /* a listed price */
  --price-bg: #e6f3ec;
  --link: #1a4fbf;
  --focus: #ffb703;
  --serif: Charter, "Iowan Old Style", "Bitstream Charter", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.names { margin: 0; background: var(--paper); color: var(--ink-2); font: 16px/1.5 var(--sans); }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2.25rem; line-height: 1.1; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* masthead: brand, section links and the search, on every page */
.mast { background: var(--ink); color: #fff; }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.mast a { color: #fff; text-decoration: none; }
.mast .brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.mast .brand small { display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 400; color: #b7c3da; letter-spacing: 0; }
.mast nav { display: flex; gap: 20px; font-size: 0.9375rem; }
.mast nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.mast nav a[aria-current="page"] { border-bottom-color: #fff; }
.mast nav a:hover { border-bottom-color: #8fa3c8; }
.mast .spacer { flex: 1; }
.mast .contact { font-size: 0.9375rem; color: #d3dcee; }
.mast-search { display: flex; width: 100%; max-width: 420px; }
.mast-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #3b4d73; border-right: 0; border-radius: 4px 0 0 4px; background: #1b2d52; color: #fff; font: inherit; }
.mast-search input::placeholder { color: #93a3c2; }
.mast-search button { padding: 9px 16px; border: 1px solid #fff; border-radius: 0 4px 4px 0; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 900px) { .mast-search { width: auto; margin-left: auto; } .mast .spacer { display: none; } }
@media (max-width: 899px) { .mast .contact { display: none; } }

main.names-main { padding: 36px 0 64px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.lead { font-size: 1.125rem; color: var(--ink-2); margin: 12px 0 0; }
.count { font-size: 0.9375rem; color: var(--muted); margin: 8px 0 20px; font-variant-numeric: tabular-nums; }

/* hero (front page): the claim and a search, then the board */
.hero { padding: 8px 0 28px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18ch; }
.hero .lead { max-width: 60ch; margin-top: 16px; }
.hero-search { display: flex; max-width: 560px; margin-top: 24px; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid var(--rule-strong); border-right: 0; border-radius: 4px 0 0 4px; font: inherit; font-size: 1.0625rem; background: #fff; }
.hero-search button { padding: 13px 20px; border: 1px solid var(--ink); border-radius: 0 4px 4px 0; background: var(--ink); color: #fff; font: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer; }
.hero-search button:hover { background: #1b2d52; }
.hero-aside { margin-top: 14px; font-size: 0.9375rem; }

/* the board: a ledger of names */
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 32px 0 10px; }
.board-head h2 { font-size: 1.375rem; }
.board-head .more { margin-left: auto; font-size: 0.9375rem; }
.board { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--ink); font-size: 0.9375rem; }
.board th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8125rem; padding: 8px 14px; border-bottom: 1px solid var(--rule); background: #f8fafc; }
.board td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr:hover { background: #f7f9fc; }
.board .name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; }
.board .name a { color: var(--ink); text-decoration: none; }
.board .name a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); }
.board .name .tld { color: var(--muted); font-weight: 500; }
.board .line { display: block; color: var(--muted); font-size: 0.875rem; font-weight: 400; margin-top: 2px; max-width: 62ch; }
.board .niche, .board .len { color: var(--ink-2); white-space: nowrap; }
.board .len { font-variant-numeric: tabular-nums; }
.board .num, .board th.num { text-align: right; white-space: nowrap; }
.price { display: inline-block; color: var(--price); font-weight: 600; font-variant-numeric: tabular-nums; }
.price.offer { color: var(--ink-2); font-weight: 500; }
@media (max-width: 760px) { .board .niche, .board .len, .board th.niche, .board th.len { display: none; } .board td { padding: 10px 12px; } }

/* niche directory: a column index with counts */
.directory { margin-top: 44px; }
.directory ul { list-style: none; margin: 12px 0 0; padding: 0; columns: 3 240px; column-gap: 32px; }
.directory li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: 0.9375rem; }
.directory li a { color: var(--ink); text-decoration: none; } .directory li a:hover { text-decoration: underline; }
.directory li b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.directory .all { margin-top: 14px; font-size: 0.9375rem; }

/* how buying works: the only real sequence on the site, so the steps are numbered */
.steps { margin-top: 48px; }
.steps ol { list-style: none; counter-reset: step; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--white); }
.steps li { counter-increment: step; padding: 20px 20px 22px 20px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 1.75rem; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.steps li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (min-width: 760px) { .steps li { border-bottom: 0; border-right: 1px solid var(--rule); } .steps li:last-child { border-right: 0; } }

.enquiries { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.enquiries p { margin-top: 10px; }

/* the name page: the nameplate carries the name and the price */
.plate { background: var(--ink); color: #fff; padding: 36px 28px; border-radius: 4px; }
.plate h1 { color: #fff; font-size: clamp(1.75rem, 5vw, 3.25rem); word-break: break-word; line-height: 1.05; }
.plate h1 .tld { color: #9fb0d2; }
.plate .status { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 1rem; color: #c9d4e8; }
.plate .status .price { color: #8fe3bb; font-size: 1.5rem; font-weight: 600; }
.plate .status .price.offer { color: #fff; font-size: 1.25rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail h2 { font-size: 1.25rem; margin: 26px 0 8px; } .detail h2:first-child { margin-top: 0; }
.detail .desc { font-size: 1.0625rem; }
.uses { padding-left: 20px; margin: 0; } .uses li { margin: 4px 0; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--muted); }
.facts a { color: var(--ink); }
.buy { background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 20px; }
.buy h2 { font-size: 1.125rem; margin: 0 0 6px; }
.buy p { font-size: 0.9375rem; margin: 6px 0 0; }
.registrars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.registrars a { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.registrars a:hover { background: var(--ink); color: #fff; }
.buy .offer-link { display: inline-block; margin-top: 8px; font-weight: 600; }
.buy hr { border: 0; border-top: 1px solid var(--rule); margin: 18px 0 14px; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.25rem; margin-bottom: 10px; }

/* search results and hub pages */
.results { margin-top: 28px; } .results h2 { font-size: 1.25rem; margin-bottom: 10px; }
.empty { background: var(--white); border: 1px solid var(--rule); padding: 18px 20px; }
.paging { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 0; font-size: 0.9375rem; }
.names-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.names-pages a, .names-pages .current { min-width: 36px; padding: 6px 8px; text-align: center; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--link); background: var(--white); font-variant-numeric: tabular-nums; }
.names-pages .current { color: #fff; background: var(--ink); border-color: var(--ink); font-weight: 600; }
.faq { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.faq h2 { margin-bottom: 8px; } .faq h3 { margin: 18px 0 4px; }

footer.names-footer { border-top: 1px solid var(--rule-strong); margin-top: 24px; padding: 28px 0 48px; font-size: 0.9375rem; color: var(--muted); }
footer.names-footer .cols { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 40px; }
@media (max-width: 760px) { footer.names-footer .cols { grid-template-columns: 1fr; } }
footer.names-footer a { color: var(--ink-2); text-decoration: none; } footer.names-footer a:hover { text-decoration: underline; }
footer.names-footer ul { list-style: none; margin: 8px 0 0; padding: 0; }
footer.names-footer li { padding: 3px 0; }
footer.names-footer .hubs { columns: 2 200px; column-gap: 28px; }
footer.names-footer .fine { margin-top: 24px; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Phase 8: a lander on the name's own host (names/lander_site.html) and the broker site's pointers to it */
.mast .brand .tld { color: #9fb0d2; font-weight: 500; }
.mast .broker { font-size: 0.9375rem; color: #d3dcee; }
.mast .broker a { text-decoration: underline; text-underline-offset: 3px; }
.own-page { margin: 14px 0 0; font-size: 0.9375rem; color: var(--muted); }
section.offer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }   /* the lander's offer section only: .price.offer is a span in every board */
section.offer h2 { margin-bottom: 6px; }
section.offer .err { color: #9b1c1c; font-weight: 600; }
section.offer .thanks { font-size: 1.0625rem; color: var(--ink); }
.offer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; max-width: 720px; margin-top: 14px; }
.offer-form label { display: block; font-size: 0.875rem; color: var(--ink-2); }
.offer-form input, .offer-form textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; font: inherit; color: var(--ink-2); }
.offer-form .wide { grid-column: 1 / -1; }
.offer-form textarea { min-height: 120px; resize: vertical; }
.offer-form button { grid-column: 1 / -1; justify-self: start; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.offer-form button:hover { background: #1b2d52; }
@media (max-width: 600px) { .offer-form { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.similar { margin-top: 44px; }
.similar h2 { font-size: 1.25rem; margin-bottom: 10px; }
.more-names { margin-top: 12px; font-size: 0.9375rem; }
