/* Topic index (/domain-names-for) and topic pages: a quiet list instead of cards.
   Loaded only on those pages; recent-finds.css is not, so tokens live here. */
body.recent-finds-page .recent-finds-shell {
    --finds-ink: #111111;
    --finds-muted: #5f6670;
    --finds-line: #d2d6da;
    --finds-teal: #09757a;
    --finds-teal-dark: #064e52;
}

body.recent-finds-page .topic-list__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 2px solid var(--finds-ink);
}

body.recent-finds-page .topic-list__head h2 {
    color: var(--finds-ink);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

body.recent-finds-page .topic-list__hint {
    color: var(--finds-muted);
    font-size: .85rem;
}

body.recent-finds-page .topic-list,
body.recent-finds-page .find-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.recent-finds-page .topic-row,
body.recent-finds-page .find-row {
    border-bottom: 1px solid var(--finds-line);
}

body.recent-finds-page .topic-row__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem .75rem 1rem .25rem;
    color: var(--finds-ink);
    text-decoration: none;
    transition: background-color .15s ease;
}

body.recent-finds-page .topic-row__link::after {
    content: "";
    flex: none;
    width: .5rem;
    height: .5rem;
    border-top: 2px solid var(--finds-muted);
    border-right: 2px solid var(--finds-muted);
    transform: rotate(45deg);
    transition: border-color .15s ease, transform .15s ease;
}

body.recent-finds-page .topic-row__link:hover,
body.recent-finds-page .topic-row__link:focus-visible {
    background: #f4f9f9;
    color: var(--finds-ink);
    text-decoration: none;
}

body.recent-finds-page .topic-row__link:hover::after,
body.recent-finds-page .topic-row__link:focus-visible::after {
    border-color: var(--finds-teal);
    transform: translateX(2px) rotate(45deg);
}

body.recent-finds-page .topic-row__link:focus-visible {
    outline: 2px solid var(--finds-teal);
    outline-offset: -2px;
}

body.recent-finds-page .topic-row__main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: .15rem;
}

body.recent-finds-page .topic-row__name {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.recent-finds-page .topic-row__link:hover .topic-row__name {
    color: var(--finds-teal-dark);
}

body.recent-finds-page .topic-row__suffix {
    color: var(--finds-muted);
    font-weight: 500;
}

body.recent-finds-page .topic-row__meta {
    color: var(--finds-muted);
    font-size: .85rem;
}

body.recent-finds-page .topic-row__count {
    flex: none;
    color: var(--finds-muted);
    font-size: .85rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.recent-finds-page .topic-row__count strong {
    display: block;
    color: var(--finds-teal-dark);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

body.recent-finds-page .recent-finds-day__header + .find-list {
    margin-top: -1rem;
}

body.recent-finds-page .find-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem .25rem;
    transition: background-color .15s ease;
}

body.recent-finds-page .find-row:hover {
    background: #f8fbfb;
}

body.recent-finds-page .find-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

body.recent-finds-page .find-row__name {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

body.recent-finds-page .find-row__domain {
    /* Neutralise the tool-results hover chip from domains.css (.interactive-domain-item). */
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    content-visibility: visible;
    contain: none;
    color: var(--finds-ink);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

body.recent-finds-page .find-row__domain:hover,
body.recent-finds-page .find-row__domain:focus-visible {
    border-color: transparent;
    background: none;
    transform: none;
    color: var(--finds-teal-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.recent-finds-page .find-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .65rem;
    margin: .3rem 0 0;
    color: var(--finds-muted);
    font-size: .82rem;
}

body.recent-finds-page .find-row__source {
    text-transform: capitalize;
}

body.recent-finds-page .find-row__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.35rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #e7f4f4;
    color: var(--finds-teal-dark);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

body.recent-finds-page .find-row__summary {
    margin: .4rem 0 0;
    color: var(--finds-muted);
    font-size: .9rem;
    line-height: 1.5;
}

body.recent-finds-page .find-row__actions {
    display: flex;
    flex: none;
    gap: .4rem;
}

body.recent-finds-page .find-row__action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.5rem;
    padding: 0 .8rem;
    border: 1px solid var(--finds-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--finds-ink);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

body.recent-finds-page .find-row__action .ui-icon {
    width: 1rem;
    height: 1rem;
    color: var(--finds-teal);
}

body.recent-finds-page .find-row__action:hover,
body.recent-finds-page .find-row__action:focus-visible {
    border-color: var(--finds-teal);
    background: #f4f9f9;
    color: var(--finds-teal-dark);
    text-decoration: none;
}

body.recent-finds-page .find-list ~ .recent-finds-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

body.recent-finds-page .find-list ~ .recent-finds-pagination .recent-finds-pagination__number {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.4rem;
    border: 1px solid var(--finds-teal);
    border-radius: 999px;
    background: #ffffff;
    color: var(--finds-teal-dark);
    font-weight: 700;
    text-decoration: none;
}

body.recent-finds-page .find-list ~ .recent-finds-pagination .recent-finds-pagination__number:hover,
body.recent-finds-page .find-list ~ .recent-finds-pagination .recent-finds-pagination__number:focus-visible {
    background: var(--finds-teal);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    body.recent-finds-page .topic-list__head {
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
    }

    body.recent-finds-page .topic-row__link {
        gap: .75rem;
        padding: .85rem .1rem;
    }

    body.recent-finds-page .topic-row__name {
        font-size: 1rem;
    }

    body.recent-finds-page .find-row {
        align-items: flex-start;
        gap: .6rem;
        padding: .85rem .1rem;
    }

    body.recent-finds-page .find-row__name {
        font-size: 1.05rem;
    }

    /* Icon-only on phones (each link keeps its aria-label); 44px touch targets. */
    body.recent-finds-page .find-row__action {
        justify-content: center;
        width: 2.75rem;
        min-height: 2.75rem;
        padding: 0;
    }

    body.recent-finds-page .find-row__action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    body.recent-finds-page .find-row__action .ui-icon {
        width: 1.15rem;
        height: 1.15rem;
    }
}
