/*
 | The domain page's search grid (resources/views/domain-search), laid out
 | after the reference the owner chose on 26-27 Oct 2026: underlined tabs with
 | their icons, the name large in its status colour with its actions beside it,
 | a line of counts with a filter per status, and a row per ending with a split
 | button. Only the site's own tokens (public/css/site.css), so both themes
 | follow by themselves.
 */

.dgrid-band .inner { max-width: 1240px; }
.dgrid-band .inner.pad { padding-block: 40px 56px; }
.dgrid-band.busy .dgrid { opacity: 0.6; transition: opacity 0.15s; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
/* What the script has not switched on stays hidden, whatever its display. */
.dgrid [hidden] { display: none !important; }

/* Tabs, underlined, each with its icon; saved names at the far end. */
.dtabbar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.dtabbar .dsaved { margin-left: auto; }
.dtabs { flex: 0 1 auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; padding: 13px 16px; color: var(--fg-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.dtab:hover { color: var(--fg); }
.dtab.on { color: var(--fg); font-weight: 600; border-bottom-color: var(--primary); }
.dtab svg { width: 19px; height: 19px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dtab .i-search { stroke: var(--primary-text); }
.dtab .i-ext { stroke: var(--success); }
.dtab .i-gen { stroke: var(--warning); }
.dtab .i-res { stroke: var(--jade); }
.dtab .i-chev { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.4; }
.dtab-more { position: relative; flex: none; }
.dtab-more summary { list-style: none; }
.dtab-more summary::-webkit-details-marker { display: none; }
.dtab-more[open] summary { color: var(--fg); }
.dtab-more .dmenu { left: 0; right: auto; }

/* The status dot: green free, red taken, amber not checked, grey not sold. */
.ddot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.is-available .ddot, .ddot.is-ok { background: var(--success); }
.is-taken .ddot { background: var(--danger); }
.is-unknown .ddot { background: var(--warning); }
.is-unavailable .ddot { background: var(--line-strong); }

/* The name, large, in its status colour. */
.dhero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; }
.dhero-who { min-width: 0; }
.dhero-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--primary-text); word-break: break-all; margin: 0; }
.dhero.is-taken .dhero-name { color: var(--danger); }
.dhero.is-unknown .dhero-name { color: var(--warning); }
.dhero.is-unavailable .dhero-name { color: var(--fg-3); }
.dhero-ascii { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); word-break: break-all; margin-top: 6px; }
.dhero-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.dhero-state { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; color: var(--fg-2); }
.dhero-state strong { color: var(--fg); }
.dhero-state .why { color: var(--fg-3); }
.dhero-state .cost { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.dhero-state .cost small { margin-left: 6px; color: var(--fg-3); font-size: 13px; }

/* Square icon buttons, and text buttons. */
.dsq { position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; list-style: none; }
.dsq::-webkit-details-marker { display: none; }
.dsq:hover { border-color: var(--line-strong); }
.dsq svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dsq.done { color: var(--success); }
.dsq[aria-pressed="true"] { color: var(--primary-text); border-color: var(--primary); }
.dsq[aria-pressed="true"] svg { fill: currentColor; }
.dsq.speaking { color: var(--primary-text); }
.dmore-lg { position: relative; }
.dmore-lg[open] > .dsq { border-color: var(--line-strong); background: var(--tint); }
.dmore-lg circle { fill: currentColor; stroke: none; }
.dbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.dbtn:hover { border-color: var(--line-strong); }
.dbtn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.dbtn.primary:hover { background: var(--primary-hover); }
/* --primary-fg is white on the light theme's dark red and dark on the dark theme's light red. */
.dbtn.danger { background: var(--danger); border-color: var(--danger); color: var(--primary-fg); }
.dbtn.danger:hover { filter: brightness(1.08); }

/* Saved names: the bookmark at the end of the tabs, with a count. */
.dsaved { position: relative; flex: none; margin-bottom: 6px; }
.dsaved > summary.dsq { width: 42px; height: 42px; }
.dsaved-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dsaved-menu { min-width: 280px; }
.dsaved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dsaved-list li { display: flex; align-items: center; gap: 4px; }
.dsaved-list li button:first-child { flex: 1; font-family: var(--font-mono); }
.dsaved-list li button + button { flex: none; width: auto; color: var(--fg-3); }
.dsaved-empty { padding: 4px 8px 8px; font-size: 13px; color: var(--fg-3); }

/* The line of counts, and the filters. */
.dbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dbar-title { font-size: 15px; font-weight: 700; color: var(--fg); margin: 0; }
.dmeter { width: 76px; height: 4px; }
.dmeter .m-rest { fill: var(--line); }
.dmeter .m-free { fill: var(--success); }
.dmeter .m-taken { fill: var(--danger); }
.dbar-note { font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.dbar-rule { flex: 1; min-width: 24px; height: 1px; background: var(--line); }
.dfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dfilters-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--fg); }
.dfilters-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dfilter { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; min-height: 34px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; }
.dfilter b { font-weight: 700; font-variant-numeric: tabular-nums; }
.dfilter:hover:not(:disabled) { border-color: var(--line-strong); }
.dfilter:disabled { opacity: 0.55; cursor: default; }
.dfilter[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.dfilter .ddot { width: 7px; height: 7px; }
.dfilter.is-available .ddot { background: var(--success); }
.dfilter.is-taken .ddot { background: var(--danger); }
.dfilter.is-unknown .ddot { background: var(--warning); }
.dfilter.is-unavailable .ddot { background: var(--line-strong); }

/* A row a name, four to a line where they fit. */
.dlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px 36px; }
.drow { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.dname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 15.5px; color: var(--fg); overflow-wrap: anywhere; }
.drow.is-taken .dname, .drow.is-unavailable .dname { color: var(--fg-3); }
.dmark { flex: none; width: 13px; height: 13px; fill: var(--primary-text); stroke: none; }

/* The split button: what to do, and a menu of the rest. */
.dsplit { position: relative; flex: none; display: inline-flex; align-items: stretch; height: 34px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.dsplit-main { display: inline-grid; place-items: center; min-width: 92px; padding: 0 14px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--fg-3); border-right: 1px solid var(--line); white-space: nowrap; }
.dsplit.is-available .dsplit-main { color: var(--success); }
.dsplit.is-unknown .dsplit-main { color: var(--warning); }
.dsplit.is-taken .dsplit-main { color: var(--danger); }
a.dsplit-main:hover { background: var(--tint); border-radius: 6px 0 0 6px; }
.dmore summary { list-style: none; cursor: pointer; }
.dmore summary::-webkit-details-marker { display: none; }
.dsplit .dmore summary { display: grid; place-items: center; width: 32px; height: 100%; color: var(--fg-2); border-radius: 0 6px 6px 0; }
.dsplit .dmore summary:hover, .dsplit .dmore[open] summary { background: var(--tint); color: var(--fg); }
.dsplit .dmore summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; display: grid; gap: 2px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.dmenu-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.dmenu-price { padding: 0 8px 8px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.dmenu-price small { font-weight: 400; color: var(--fg-3); font-size: 12px; }
.dmenu-why { padding: 0 8px 8px; font-size: 12.5px; color: var(--fg-3); }
.dmenu a, .dmenu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 500; padding: 8px; border-radius: 7px; color: var(--fg); text-decoration: none; background: none; border: 0; cursor: pointer; }
.dmenu a:hover, .dmenu button:hover { background: var(--tint); }

.dempty { color: var(--fg-3); font-size: 14px; }
/* Said the moment a search starts, until the first answer replaces it. */
.dwait { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg-2); }
.dwait::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--primary); animation: dspin 0.8s linear infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dwait::before { animation: none; } }
.dnotes { display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.dnotes p { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--fg-3); padding-top: 8px; }
.dnotes .ddot { transform: translateY(-1px); }

@media (max-width: 640px) {
    .dhero { grid-template-columns: 1fr; }
    .dhero-act { justify-content: flex-start; }
    .dhero-act .dmenu { left: 0; right: auto; }
    .dbar-rule { display: none; }
    .dlist { gap: 6px; }
    .drow { padding: 4px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
}

/* ---------- below the price list (domain-search/landing) ---------- */
.dl-band .head.center { text-align: center; margin-inline: auto; }
.dl-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--fg); text-decoration: none; }
.dl-more:hover { color: var(--primary-text); }
.dl-i { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--primary-text); }
.dl-i.i-ext { stroke: var(--success); }
.dl-i.i-gen { stroke: var(--warning); }
.dl-i.i-res { stroke: var(--jade); }
.dl-i.i-own { stroke: var(--danger); }

/* Six cards, two to a row. */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 8px; }
.dl-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.dl-card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; color: var(--fg); }
.dl-card p { color: var(--fg-2); line-height: 1.6; margin: 0; }
.dl-art { position: relative; align-self: end; margin-top: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.dl-art-tag { position: absolute; top: -9px; right: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg-3); }

.dl-mini-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--fg); }
.dl-mini-input svg { width: 15px; height: 15px; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; }
.dl-mini-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dl-mini-rows li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.dl-mini-name { flex: 1; color: var(--fg); }
.dl-mini-rows .is-taken .dl-mini-name { color: var(--fg-3); text-decoration: line-through; }
.dl-mini-btn { min-width: 78px; text-align: center; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 700; }
.dl-mini-rows .is-taken .dl-mini-btn { color: var(--danger); }
.dl-mini-rows .is-available .dl-mini-btn { color: var(--success); }

.dl-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.dl-tiles li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.dl-tiles b { font-family: var(--font-mono); font-size: 14px; color: var(--fg); }
.dl-tiles small { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

.dl-gen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-gen li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.dl-gen-name { font-size: 14px; color: var(--fg-3); }
.dl-gen-name b { color: var(--fg); }
.dl-gen-tlds { display: flex; flex-wrap: wrap; gap: 5px; }
.dl-gen-tlds span { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--success); background: var(--ok-bg); border: 1px solid var(--ok-line); }

.dl-record { display: grid; gap: 10px; }
.dl-record-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--fg); }
.dl-record-head span { font-family: var(--font-mono); font-weight: 500; color: var(--fg-3); }
.dl-record-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); }
.dl-record-row i { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--line-strong), var(--line)); }
.dl-record-row:nth-child(3) i { width: 70%; }
.dl-record-row:nth-child(4) i { width: 55%; }

.dl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dl-chips li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); }

.dl-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.dl-flow span { padding: 7px 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-family: var(--font-mono); }
.dl-flow span.on { border-color: var(--primary); color: var(--primary-text); font-family: var(--font-sans); font-weight: 600; }
.dl-flow i { flex: 1; min-width: 18px; height: 1px; border-top: 1px dashed var(--line-strong); }

/* Every ending on sale with both of its prices (the page's price list, #prices),
   each a tile that puts it first in a search. */
.dl-ending-chips { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dl-ending-chips a { height: 100%; box-sizing: border-box; display: grid; align-content: start; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.dl-ending-chips a:hover { border-color: var(--primary); }
.dl-ending-chips b { font-family: var(--font-mono); font-size: 17px; }
.dl-ending-first { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-ending-renew { font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dl-ending-chips .on-sale a { border-color: var(--sale-line); }
.dl-ending-chips .on-sale b { color: var(--sale); }
.dl-ending-chips .sale-cell s { font-weight: 400; margin-right: 4px; }

/* How a name is checked: you, three sources, your answer. */
.dl-how { display: grid; grid-template-columns: minmax(150px, 1fr) 48px minmax(240px, 1.4fr) 48px minmax(150px, 1fr); align-items: center; margin: 12px 0 28px; }
.dl-how-end { display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dl-how-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }
.dl-how-wires { display: grid; gap: 34px; }
.dl-how-wires i { height: 1px; border-top: 1px dashed var(--line-strong); }
.dl-how-sources { display: grid; gap: 10px; }
.dl-source { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dl-source b { font-size: 14px; color: var(--fg); }
.dl-source span { font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.dl-answer { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-answer li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--fg); background: var(--surface-2); }
.dl-answer .is-taken { color: var(--danger); }
.dl-answer .is-available { color: var(--success); }
.dl-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.dl-point h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--fg); }
.dl-point p { color: var(--fg-2); margin: 0; line-height: 1.55; }

/* The free tools. */
.dl-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.dl-tool { display: grid; gap: 8px; padding: 22px; background: var(--surface); color: var(--fg); text-decoration: none; }
.dl-tool:hover b { color: var(--primary-text); }
.dl-tool-icon { width: 24px; height: 24px; color: var(--primary-text); stroke: var(--primary-text); }
.dl-tool b { font-size: 1.02rem; }
.dl-tool span { font-size: 14px; color: var(--fg-2); line-height: 1.5; }

/* How to choose a name. */
.dl-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.dl-tip { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--surface); }
.dl-tip h3 { margin: 0; font-size: 1.1rem; color: var(--fg); }
.dl-tip p { margin: 0; color: var(--fg-2); line-height: 1.55; }

/* The blog. */
.dl-posts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; }
.dl-posts li a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.dl-posts li a:hover { color: var(--primary-text); }

/* The questions. */
.dl-faq { display: grid; gap: 10px; }
.dl-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 600; color: var(--fg); }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--fg-3); }
.dl-faq details[open] summary::after { content: "\2212"; }
.dl-faq p { margin: 0; padding: 0 20px 18px; color: var(--fg-2); line-height: 1.65; }

@media (max-width: 860px) {
    .dl-how { grid-template-columns: 1fr; gap: 12px; }
    .dl-how-wires { display: none; }
}
