/* ================================================================
   BRUTALIST / TERMINAL — No decoration. No chrome. All data.
   ================================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
    background: #fff;
    min-height: 100vh;
}

a             { color: #0057b8; text-decoration: underline; }
a:visited     { color: #0057b8; }
a:hover       { color: #c00; }

/* ---- Layout ---- */

header {
    border-bottom: 2px solid #000;
    padding: 4px 12px;
}

main {
    padding: 8px 12px;
}

footer {
    border-top: 1px solid #000;
    padding: 4px 12px;
    font-size: 11px;
    color: #666;
    margin-top: 24px;
}

/* ---- Navigation ---- */

nav.main-nav {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
}

.site-title {
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 14px;
}

.site-title:hover { color: #c00; }

.nav-link {
    color: #00c;
    text-decoration: underline;
    margin-right: 1rem;
    font-size: 12px;
}

/* ---- Tables ---- */

table {
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 2px 8px 3px 0;
    font-weight: bold;
    border-bottom: 2px solid #000;
    white-space: nowrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 3px 8px 3px 0;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

tr:hover td {
    background: #fffff0;
}

/* ---- Inputs & Selects ---- */

input[type="text"],
input[type="password"],
input[type="number"],
select {
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #000;
    padding: 1px 4px;
    background: #fff;
    color: #000;
    height: 22px;
    vertical-align: middle;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: 2px solid #00c;
    outline-offset: -1px;
}

input[type="checkbox"] {
    vertical-align: middle;
    cursor: pointer;
}

/* ---- Buttons ---- */

button,
.btn {
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #000;
    padding: 1px 8px;
    background: #fff;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    height: 22px;
    line-height: 18px;
    vertical-align: middle;
    white-space: nowrap;
}

button:hover,
.btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

button:disabled,
.btn:disabled {
    background: #eee;
    color: #999;
    border-color: #999;
    cursor: not-allowed;
}

button:disabled:hover,
.btn:disabled:hover {
    background: #eee;
    color: #999;
}

.btn-danger {
    border-color: #c00;
    color: #c00;
}

.btn-danger:hover {
    background: #c00;
    color: #fff;
}

/* ---- Status ---- */

.status-ok,
.status-captured  { color: #060; }

.status-error,
.status-failed    { color: #c00; }

.status-pending   { color: #840; }

/* ---- Stats bar ---- */

.stats-bar {
    font-size: 12px;
    color: #444;
    margin: 4px 0 6px 0;
    line-height: 2;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
}

.stats-bar a {
    color: #444;
    text-decoration: none;
}

.stats-bar a:hover {
    color: #c00;
    text-decoration: underline;
}

/* ---- Filter / search row ---- */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 4px 0;
    font-size: 12px;
}

.filter-row label {
    color: #666;
    white-space: nowrap;
}

.filter-row input[type="text"],
.filter-row select {
    width: auto;
}

/* ---- Sort / filter type row ---- */

.controls-row {
    font-size: 12px;
    margin: 4px 0 8px 0;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    align-items: baseline;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
}

.controls-row .sep {
    color: #bbb;
    margin: 0 6px;
    user-select: none;
}

.controls-row a {
    color: #444;
    text-decoration: none;
    padding: 0 2px;
}

.controls-row a:hover {
    color: #c00;
    text-decoration: underline;
}

.controls-row a.active {
    font-weight: bold;
    color: #000;
    text-decoration: underline;
}

.controls-row .label {
    color: #888;
    margin-right: 2px;
}

/* ---- Domain table columns ---- */

.domain-col {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.registrant-col {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-col {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #444;
}

.code-col {
    white-space: nowrap;
    color: #444;
    font-size: 12px;
}

.date-col {
    white-space: nowrap;
    font-size: 12px;
    color: #333;
}

.tld-col {
    font-size: 12px;
    color: #444;
    white-space: nowrap;
}

.error-short {
    color: #c00;
    font-size: 11px;
    cursor: help;
}

/* ---- Crawl tag links ---- */

.tag-link {
    display: inline-block;
    font-size: 11px;
    font-family: monospace;
    padding: 1px 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    text-decoration: none;
    white-space: nowrap;
}

.tag-link:hover {
    color: #fff;
    border-color: #666;
}

/* ---- Numeric column ---- */

td.num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- Pivot count links ---- */

.pivot-count {
    font-size: 11px;
    margin-left: 0.6em;
    white-space: nowrap;
}

.pivot-count a {
    color: #0057b8;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.pivot-count a:hover {
    color: #c00;
    text-decoration-style: solid;
}

/* ---- Detail page ---- */

.detail-domain {
    font-size: 18px;
    font-weight: bold;
    margin: 6px 0 4px 0;
    word-break: break-all;
}

.detail-nav {
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-nav .nav-pos {
    color: #666;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    min-width: 5em;
    text-align: center;
    display: inline-block;
}

.detail-nav button {
    height: 20px;
    line-height: 16px;
    padding: 0 6px;
}

.hr {
    border: none;
    border-top: 1px solid #000;
    margin: 6px 0;
}

.hr-light {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 6px 0;
}

/* ---- Inline thumbnails (table rows) ---- */

.thumb-col {
    width: 64px;
    min-width: 64px;
    padding-right: 6px;
}

.thumb-col img {
    width: 64px;
    height: 40px;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

.thumb-col .thumb-empty {
    width: 64px;
    height: 40px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #aaa;
}

/* ---- Screenshot (detail page) ---- */

.screenshot-wrap {
    margin: 6px 0;
    max-width: 720px;
}

.screenshot-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
}

.screenshot-placeholder {
    border: 1px solid #ccc;
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
    font-size: 12px;
    background: #fafafa;
    max-width: 720px;
}

/* ---- Key-value table (detail page) ---- */

.kv-table {
    border-collapse: collapse;
    margin: 6px 0;
}

.kv-table td {
    padding: 2px 16px 2px 0;
    border: none;
    vertical-align: top;
    font-size: 13px;
    border-bottom: none;
}

.kv-table td.kv-key {
    color: #666;
    white-space: nowrap;
    min-width: 90px;
    font-size: 12px;
}

.kv-table td.kv-val {
    word-break: break-word;
}

.kv-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    font-weight: bold;
    margin: 10px 0 2px 0;
}

/* ================================================================
   AI descriptions: unified clickable "chip" language
   Blue outline = interactive (matches the app's link colour), inverts
   on hover, fills solid when the filter is active. Static labels use a
   grey/red outline and no pointer so they don't read as clickable.
   ================================================================ */

.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 11px;
    line-height: 1.5;
    padding: 1px 7px;
    border: 1px solid #0057b8;
    color: #0057b8;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.08s, color 0.08s;
}

.chip:hover,
.chip:focus-visible {
    background: #0057b8;
    color: #fff;
    text-decoration: none;
}

.chip.is-active {
    background: #0057b8;
    color: #fff;
    font-weight: bold;
}

.chip .chip-count {
    color: #7a97b8;
    font-variant-numeric: tabular-nums;
    font-size: 10px;
}

.chip:hover .chip-count,
.chip.is-active .chip-count { color: #cfe0f5; }

/* Tags: lighter outline so category chips read as the primary axis and
   the (numerous) tag chips sit visually one level down — still clearly
   clickable via the blue text + invert-on-hover. */
.chip-tag {
    border-color: #b9c7d6;
    color: #0057b8;
}

.chip-tag:hover,
.chip-tag:focus-visible,
.chip-tag.is-active {
    border-color: #0057b8;
    background: #0057b8;
    color: #fff;
}

.chip-sm { font-size: 10px; padding: 0 5px; }

/* Non-clickable status label (e.g. page_state) */
.chip-static {
    border-color: #999;
    color: #555;
    background: #f4f4f4;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chip-static.chip-state {
    border-color: #c00;
    color: #c00;
    background: #fff4f4;
}

/* ---- AI description (detail page) ---- */

.domain-description {
    margin: 2px 0 8px 0;
    max-width: 680px;
}

.domain-description .desc-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #111;
    margin-bottom: 8px;
}

.desc-facets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.desc-facet {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.desc-facet-label {
    flex: 0 0 60px;
    text-align: right;
    color: #888;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.desc-tags-wrap { margin-top: 4px; }

.desc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ---- AI description (gallery list rows) ---- */

.domain-summary {
    font-size: 11px;
    line-height: 1.45;
    color: #555;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

/* ---- "Refine by description" facet panel (gallery) ---- */

.facet-panel {
    border: 1px solid #ccc;
    margin: 6px 0 8px 0;
    background: #fff;
}

.facet-panel > summary {
    cursor: pointer;
    padding: 4px 8px;
    background: #f4f4f4;
    border-bottom: 1px solid #ccc;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    list-style: none;
    user-select: none;
}

.facet-panel:not([open]) > summary { border-bottom: none; }
.facet-panel > summary::-webkit-details-marker { display: none; }
.facet-panel > summary::before { content: '▸ '; color: #888; }
.facet-panel[open] > summary::before { content: '▾ '; }

.facet-hint {
    color: #888;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
}

.facet-grid {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.facet-dim {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.facet-dim-label {
    flex: 0 0 64px;
    text-align: right;
    color: #888;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.06em;
    padding-top: 2px;
}

.facet-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

/* ---- Active filter chips (gallery) ---- */

.active-filters {
    font-size: 12px;
    margin: 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.filter-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    border: 1px solid #0057b8;
    background: #eaf1fa;
    padding: 1px 4px 1px 7px;
    font-size: 11px;
}

.filter-chip a {
    text-decoration: none;
    color: #c00;
    font-weight: bold;
    padding: 0 3px;
}

.filter-chip a:hover { color: #fff; background: #c00; }

/* ---- Pagination ---- */

.pagination {
    font-size: 12px;
    margin: 8px 0;
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.page-info {
    color: #666;
}

/* ---- Empty state ---- */

.empty-state {
    padding: 2rem 0;
    color: #666;
    font-size: 13px;
}

/* ---- TLD tag ---- */

.tld-tag {
    font-size: 11px;
    color: #666;
    border: 1px solid #aaa;
    padding: 0 3px;
    margin-left: 4px;
    vertical-align: middle;
    text-decoration: none;
}

/* ---- Pivot page heading ---- */

.pivot-heading {
    font-size: 15px;
    font-weight: bold;
    margin: 4px 0 2px 0;
}

.pivot-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.pivot-meta a {
    color: #0057b8;
}

/* Table cell pivot links (registrant, postal, address columns) */
td a.cell-pivot {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

td a.cell-pivot:hover {
    color: #0057b8;
    border-bottom-color: #0057b8;
}

/* ---- Gov/Explorer gallery ---- */

.gallery-info-row {
    font-size: 12px;
    color: #666;
    margin: 2px 0 8px 0;
}

/* ---- Bulk selection bar ---- */

.bulk-bar {
    font-size: 12px;
    margin: 4px 0;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Directory pages ---- */

.dir-heading {
    font-size: 15px;
    font-weight: bold;
    margin: 4px 0 2px 0;
}

.dir-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.dir-meta a { color: #0057b8; }

.count-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #444;
    padding-right: 12px;
}

/* ---- Top addresses sub-table on detail page ---- */

.sub-section {
    margin: 4px 0 0 0;
}

.sub-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 2px;
}

.sub-table {
    border-collapse: collapse;
    margin: 0 0 0 0;
    font-size: 12px;
}

.sub-table td {
    padding: 1px 8px 1px 0;
    border: none;
    vertical-align: top;
}

.sub-table a {
    color: #0057b8;
}

.hidden {
    display: none !important;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    header { padding: 4px 8px; }
    main   { padding: 6px 8px; }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .controls-row {
        flex-direction: column;
        gap: 2px;
    }

    th, td { padding: 3px 6px 3px 0; }

    .detail-nav { flex-wrap: wrap; gap: 6px; }

    .registrant-col { max-width: 140px; }
    .domain-col     { max-width: 160px; }
}

/* ---- Site tagline & Nav CTA ---- */

.site-tagline {
    font-size: 11px;
    color: #666;
    margin-right: 1.5rem;
    letter-spacing: 0.02em;
}

.nav-link.nav-cta {
    margin-left: auto;
    color: #fff;
    background: #0057b8;
    padding: 2px 8px;
    text-decoration: none;
    border: 1px solid #0057b8;
}

.nav-link.nav-cta:hover {
    background: #003f8a;
    border-color: #003f8a;
    color: #fff;
}

/* ---- Disabled export buttons ---- */

.export-disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
    user-select: none;
}

.export-disabled:hover {
    color: #c00;
}

/* ---- Waitlist modal ---- */

/* ---- Global page loading (navigation + fetch) ---- */

.page-loading {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.page-loading[hidden] {
    display: none !important;
}

.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #000;
    transform-origin: left center;
    animation: page-loading-bar 1.2s ease-in-out infinite;
}

@keyframes page-loading-bar {
    0%   { transform: scaleX(0.08); opacity: 0.5; }
    50%  { transform: scaleX(0.55); opacity: 1; }
    100% { transform: scaleX(0.08); opacity: 0.5; }
}

.page-loading-panel {
    border: 2px solid #000;
    background: #fff;
    padding: 12px 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-loading-spinner {
    font-weight: bold;
    width: 1ch;
    text-align: center;
}

.page-loading-text {
    color: #333;
}

.waitlist-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.waitlist-modal.open {
    display: flex;
}

.waitlist-modal-inner {
    background: #fff;
    border: 2px solid #000;
    padding: 20px 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 4px 4px 0 #000;
}

.waitlist-modal-inner h2 {
    font-size: 15px;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.waitlist-modal-inner p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.waitlist-modal-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #000;
    padding: 2px 6px;
}

.waitlist-modal-close:hover { color: #c00; }

#waitlist-form {
    display: flex;
    gap: 6px;
}

#waitlist-form input[type="email"] {
    flex: 1;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #000;
}

#waitlist-form button {
    padding: 4px 12px;
    font-family: inherit;
    font-size: 13px;
    background: #0057b8;
    color: #fff;
    border: 1px solid #0057b8;
    cursor: pointer;
}

#waitlist-form button:hover { background: #003f8a; border-color: #003f8a; }
#waitlist-form button:disabled { background: #999; border-color: #999; cursor: wait; }

.waitlist-status {
    margin-top: 10px;
    font-size: 12px;
    min-height: 1em;
}

.waitlist-status.success { color: #060; }
.waitlist-status.error   { color: #c00; }

/* ---- Project cards ---- */

.project-cards-toolbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px 0;
}

.project-cards-toolbar h1 {
    font-size: 16px;
    margin: 0;
}

.project-cards-meta {
    color: #666;
    font-size: 12px;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.project-card {
    border: 1px solid #cfcfcf;
    background: #fff;
}

.project-card-image-link {
    display: block;
    border-bottom: 1px solid #d9d9d9;
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 8px;
}

.project-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.project-card-title {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

.project-card-title:hover {
    color: #c00;
    text-decoration: underline;
}

.project-card-tld {
    border: 1px solid #aaa;
    color: #444;
    padding: 0 4px;
    font-size: 11px;
    white-space: nowrap;
}

.project-card-links {
    font-size: 12px;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.project-card-kv {
    margin: 0;
    font-size: 12px;
}

.project-card-kv div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px;
    padding: 1px 0;
}

.project-card-kv dt {
    color: #666;
}

.project-card-kv dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ---- Download / bulk datasets ---- */

.download-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #000;
    margin-bottom: 12px;
}

.download-tab {
    padding: 4px 14px;
    font-size: 12px;
    text-decoration: none;
    color: #00c;
    border: 1px solid #000;
    border-bottom: none;
    margin-right: 4px;
    margin-bottom: -2px;
    background: #f4f4f4;
}

.download-tab:hover {
    background: #000;
    color: #fff;
}

.download-tab.active {
    background: #fff;
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

.download-header {
    margin: 4px 0 12px 0;
    max-width: 720px;
}

.download-intro {
    color: #444;
    margin-top: 4px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.download-card {
    border: 1px solid #000;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.download-card-addon {
    border-left: 4px solid #0057b8;
}

.download-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.download-tld {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #000;
    padding: 0 5px;
}

.download-addon {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0057b8;
}

.download-card-title {
    font-size: 14px;
    margin: 0 0 2px 0;
}

.download-rows {
    font-weight: bold;
    color: #060;
    margin-bottom: 8px;
}

.download-summary {
    color: #333;
    margin-bottom: 10px;
}

.download-fields-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.download-fields ul {
    list-style: none;
    margin: 4px 0 10px 0;
    padding: 0;
}

.download-fields li {
    padding: 1px 0;
}

.download-format {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.download-requires {
    font-size: 11px;
    color: #840;
    margin-bottom: 6px;
}

.download-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.download-price {
    font-size: 18px;
    font-weight: bold;
}

.download-index {
    border: 1px solid #000;
    border-left: 4px solid #060;
    padding: 12px;
    margin-top: 16px;
}

.download-index-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.download-index-title {
    font-size: 14px;
    margin: 4px 0 2px 0;
}

.download-index-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 180px;
}

.download-index-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.download-index-price-unit {
    font-size: 11px;
    color: #666;
}

.download-index-pricing .download-cta {
    margin-top: 6px;
}

.download-tld-table-wrap {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    margin: 4px 0 6px 0;
}

.download-tld-table {
    width: 100%;
    font-size: 12px;
}

.download-tld-table th {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 4px 10px 4px 6px;
}

.download-tld-table td {
    padding: 2px 10px 2px 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* ---- Crawl-delta TLD overview (sortable) ---- */

.delta-overview-wrap {
    max-height: 70vh;
}

.download-tld-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.download-tld-table th.sortable:hover {
    color: #c00;
}

.download-tld-table th.sort-active::after {
    content: " \25BE"; /* ▾ */
    font-size: 10px;
    color: #888;
}

.download-tld-table th.sort-active.sort-asc::after {
    content: " \25B4"; /* ▴ */
}

.delta-overview td.num-col,
.delta-overview th.num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.delta-new        { color: #060; }
.delta-reappeared  { color: #840; }
.delta-churned     { color: #c00; }

.delta-jump {
    margin-top: 6px;
}

.delta-back {
    font-weight: bold;
}

.download-howto {
    margin-top: 24px;
    max-width: 720px;
}

.download-howto h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.download-howto ul {
    margin: 0;
    padding-left: 18px;
    color: #444;
}

.download-howto li {
    padding: 1px 0;
}

