/* category.php page styles: the protocol-card extras only. The page
   shell, hero, back link, panel header, listing card (.surface-listing
   .lib-card with its .lib-card-head band), icon tile, status pills and
   empty state are the shared components in /includes/styles.css and
   /includes/card-header.css; the card body (.lib-card-icon, -desc,
   -foot, -meta, -open) is /learn/includes/learn-tabs.css. */

/* Protocol number set inside the card's .icon-tile--lg in place of a
   glyph, so numbered and unnumbered cards share one anatomy. */
.protocol-number-tile {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* "What changed" line under an Updated pill (edition marks). On the
   landing page the same class sits in the list of changed protocols. */
.protocol-change-note {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    line-height: 1.45;
}

/* Landing page: the list of protocols changed by the latest edition. */
.protocol-changes {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md, 12px);
    background: var(--card-bg);
}
.protocol-changes > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}
.protocol-changes > summary:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.protocol-changes-list { list-style: none; margin: 0; padding: 0 1rem 0.6rem; }
.protocol-changes-list li { padding: 0.55rem 0; border-top: 1px solid var(--border-soft); }
.protocol-changes-list a { font-weight: 700; }
.protocol-changes-list .protocol-change-note { margin: 0.2rem 0 0; }
.protocol-changes-num { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 700; margin-right: 0.35rem; }

/* Subtitle line between the tile and the description. */
.protocol-subtitle {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    line-height: 1.45;
}

/* Cert-level mini-bar in the card foot, above "Open". */
.cert-bar-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* 0.7rem floor: these name provider levels, they are not decoration. */
.cert-pill-mini {
    padding: 0.15rem 0.45rem;
    border-radius: var(--r-xs);
    font-size: var(--fs-2xs);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Active levels: palette fill + its paired label colour, set inline as
   --cert-bg / --cert-fg from PROTOCOL_CERT_LEVELS (render-blocks.php),
   4.8:1 or better on every hue. */
.cert-pill-mini.active {
    background-color: var(--cert-bg, #6b7280);
    color: var(--cert-fg, #fff);
}

/* Inactive levels recede: muted text on the raised surface (5.36:1
   light, 5.16:1 dark), with a hairline so the pill keeps its shape on
   the card glass. Screen readers skip them (aria-hidden in the markup),
   so the fill is never the only thing that says which levels apply. */
.cert-pill-mini.inactive {
    background: var(--surface-2);
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px var(--border-soft);
}
