* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f4f5f7;
    color: #161616;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a { color: inherit; }

.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px max(20px, calc((100% - 1040px) / 2));
    background: #fff;
    border-bottom: 1px solid #e6e6ea;
    position: sticky;
    top: 0;
    z-index: 2;
}

.brand {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.cadence {
    margin: 0;
    color: #6b6b73;
    font-size: 13px;
}

main,
.site-footer {
    width: min(1040px, calc(100% - 40px));
    margin-inline: auto;
}

main { padding: 28px 0 56px; }

h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.search {
    display: flex;
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #d9d9de;
    border-radius: 10px;
    overflow: hidden;
}

.search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    color: #161616;
    font: inherit;
    padding: 0 14px;
}

.search input:focus { outline: none; }

.search:focus-within {
    border-color: #161616;
    box-shadow: 0 0 0 3px rgba(22, 22, 22, 0.12);
}

.search button {
    height: 40px;
    border: 0;
    background: #161616;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0 16px;
    cursor: pointer;
}

.search button:hover { background: #000; }

.meta {
    margin: 0;
    color: #6b6b73;
    font-size: 13px;
    white-space: nowrap;
}

.advanced {
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    padding: 12px 14px 14px;
}

.advanced summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #6b6b73;
    font-size: 12px;
    font-weight: 600;
}

.filters input,
.filters select {
    height: 36px;
    border: 1px solid #d9d9de;
    border-radius: 8px;
    background: #fafafa;
    color: #161616;
    font: inherit;
    font-weight: 400;
    padding: 0 10px;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    background: #fff;
    border-color: #161616;
    box-shadow: 0 0 0 3px rgba(22, 22, 22, 0.12);
}

.reset { margin: 12px 0 0; font-size: 13px; }
.reset a { color: #161616; }

.table-wrap {
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

th, td {
    padding: 11px 16px;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #fafafa;
    border-bottom: 1px solid #e6e6ea;
    color: #6b6b73;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

td { border-bottom: 1px solid #f0f0f2; }

tbody tr:last-child td { border-bottom: 0; }

th.num, td.num {
    text-align: right;
}

th a { text-decoration: none; color: inherit; }
th a:hover { color: #161616; }
th a[aria-current="true"] { color: #161616; }

td.domain a { font-weight: 500; text-decoration: none; }
td.domain a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    color: #8a8a93;
    vertical-align: -4px;
}

.cart:hover { color: #161616; }

td.domain .cart svg {
    width: 20px;
    height: 20px;
}

td.domain a.cart:hover,
.buy .cart:hover { text-decoration: none; }

.dr {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #161616;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.dr.zero {
    background: #e4e4e7;
    color: #3f3f46;
}

.dash { color: #b0b0b6; }

.buy { margin: 16px 0 0; }

.buy .cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 9px;
    background: #161616;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    vertical-align: baseline;
}

.buy .cart svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.buy .cart span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.buy .cart:hover { background: #000; color: #fff; }

tbody tr:hover td { background: #fafafa; }

.pager {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    font-size: 14px;
}

.pager a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d9d9de;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.pager a:hover { border-color: #161616; }

.pager span { color: #6b6b73; margin-inline: 4px; }

.back { margin: 0 0 16px; }
.back a { color: #6b6b73; text-decoration: none; font-size: 14px; }
.back a:hover { color: #161616; }

.domain-sheet {
    max-width: 560px;
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    padding: 18px 20px 20px;
}

.domain-head {
    display: block;
}

.domain-head h1 {
    font-size: 22px;
    overflow-wrap: anywhere;
}

.summary {
    margin: 4px 0 0;
    color: #6b6b73;
    font-size: 14px;
}

.domain-sheet .buy { margin: 18px 0 0; }

.domain-sheet .buy .cart {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
}

.domain-sheet .buy .cart svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.domain-sheet .buy .cart span {
    flex: 0 1 auto;
    text-align: left;
}

.domain-sheet .buy .cart:hover { background: #000; }

.domain-sheet .buy .cart:focus-visible {
    outline: 2px solid #161616;
    outline-offset: 3px;
}

.facts {
    width: 100%;
    margin: 14px 0 0;
}

.facts a { text-decoration: underline; text-underline-offset: 3px; }

.facts div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 11px 0;
    border-top: 1px solid #f0f0f2;
}

.facts dt {
    color: #6b6b73;
    font-size: 14px;
    font-weight: 500;
}

.facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.panel,
.empty,
.intro p {
    color: #3f3f46;
}

.empty,
.panel,
.intro {
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    padding: 16px 18px;
}

.empty { margin: 0; }

.panel { margin-top: 12px; }

.panel h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.intro h1,
.panel + .intro h1 { margin-bottom: 8px; }

.intro p { margin: 8px 0 0; }
.intro .back { margin: 14px 0 0; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: #f4f5f7;
    border-radius: 6px;
    padding: 1px 5px;
}

.site-footer {
    padding: 0 0 32px;
    font-size: 13px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 640px) {
    .site-header,
    .toolbar { flex-direction: column; align-items: stretch; }
    .search { width: 100%; }
    h1 { font-size: 22px; }

    .table-wrap { overflow: hidden; }
    table { table-layout: fixed; }
    th:nth-child(2),
    td:nth-child(2) { display: none; }
    th:nth-child(3),
    td:nth-child(3) { width: 4.6rem; }
    th:nth-child(4),
    td:nth-child(4) { width: 3.2rem; }
    th:nth-child(5),
    td:nth-child(5) { width: 6.6rem; font-size: 13px; }
    td.domain { overflow: hidden; text-overflow: ellipsis; }
}
