/* Conformance directory — /conformance/{clients,tests,client,test,result}/
 *
 * Loaded after conformance.css and reuses its variables and its chips. This
 * file only adds what the directory views need that the single-page suite did
 * not: breadcrumbs, cards, verdict pills, a definition list and the badge.
 *
 * No inline styles or handlers anywhere; the site CSP forbids both.
 */

/* ----------------------------------------------------------- breadcrumbs */

.cf-crumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem 0;
}

.cf-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    list-style: none;
    font-size: 0.82rem;
    color: var(--cf-muted);
}

.cf-crumbs li + li::before {
    content: "/";
    margin-right: 0.55rem;
    color: var(--cf-border);
}

.cf-crumbs a {
    color: var(--cf-ink-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.cf-crumbs a:hover,
.cf-crumbs a:focus-visible {
    color: var(--cf-accent);
    border-bottom-color: var(--cf-accent);
}

.cf-crumbs [aria-current="page"] {
    color: var(--cf-muted);
}

/* ----------------------------------------------------------- client cards */

.cf-cards {
    display: grid;
    /* minmax(0, …) rather than minmax(280px, …): a hard floor wider than a
     * narrow viewport is what makes a grid overflow its own page. */
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.cf-card {
    background: var(--cf-surface);
    border: 1px solid var(--cf-border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    min-width: 0;
}

.cf-card-title {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.cf-card-title a {
    color: var(--cf-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--cf-accent-soft);
}

.cf-card-title a:hover,
.cf-card-title a:focus-visible {
    color: var(--cf-accent);
    border-bottom-color: var(--cf-accent);
}

.cf-card-meta {
    font-size: 0.8rem;
    color: var(--cf-muted);
    margin-bottom: 0.7rem;
    word-break: break-word;
}

.cf-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.cf-card-rate {
    font-size: 0.85rem;
    color: var(--cf-ink-2);
}

.cf-card-rate strong {
    color: var(--cf-accent);
    font-size: 1.05rem;
}

/* --------------------------------------------------------- verdict pills */

.cf-v {
    display: inline-block;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

a.cf-v:hover,
a.cf-v:focus-visible {
    border-color: currentColor;
}

.cf-v-pass {
    background: rgba(92, 193, 145, 0.14);
    color: var(--cf-ext);
}

.cf-v-fail {
    background: rgba(240, 134, 141, 0.14);
    color: var(--cf-corr);
}

.cf-v-inconclusive {
    background: rgba(134, 151, 164, 0.14);
    color: var(--cf-incon);
}

.cf-v-notrun {
    background: rgba(134, 151, 164, 0.08);
    color: var(--cf-muted);
}

.cf-verdict-banner {
    display: inline-block;
    font-size: 1.05rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.9rem;
}

/* ------------------------------------------------------------ test layer */

.cf-layer {
    font-family: var(--cf-mono);
    font-size: 0.74rem;
    color: var(--cf-ink-2);
    background: var(--cf-surface-2);
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
}

.cf-list-tests > li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* -------------------------------------------------------- definition list */

.cf-dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem 1rem;
}

@media (min-width: 640px) {
    .cf-dl {
        grid-template-columns: max-content minmax(0, 1fr);
    }
}

.cf-dl dt {
    font-weight: 600;
    color: var(--cf-muted);
    font-size: 0.82rem;
    padding-top: 0.45rem;
}

.cf-dl dd {
    color: var(--cf-ink-2);
    padding-top: 0.45rem;
    min-width: 0;
    word-break: break-word;
}

/* --------------------------------------------------------------- details */

.cf-detail {
    color: var(--cf-ink-2);
    font-size: 0.86rem;
}

.cf-badge-inline {
    vertical-align: middle;
    margin-left: 0.45rem;
}

.cf-section-nav {
    border-top: 1px solid var(--cf-border);
    padding-top: 1rem;
}

/* ------------------------------------------------------------------ stats */

.cf-stat-n {
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--cf-accent);
    line-height: 1.1;
}

.cf-stat-l {
    display: block;
    font-size: 0.76rem;
    color: var(--cf-muted);
}

/* The grid must be allowed to shrink below its content on a phone, or the
 * whole page gains a horizontal scrollbar for the sake of one wide table. */
.cf-main,
.cf-section,
.cf-tablewrap {
    min-width: 0;
}

.cf-tablewrap {
    overflow-x: auto;
}
