/* The free key: the grey pill on locked sections and the Verified filter's
   blurred preview (lib/free-key.js). The unlock page has its own file,
   unlock.css. */

.key-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    background: var(--color-key-pill);
    color: var(--color-key-pill-ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.key-pill[hidden] {
    display: none;
}
.key-pill:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ---------- Directory (scripts/directory/free-key-views.js) ---------- */

#freeKeyExtras:empty {
    display: none;
}

.locked-preview {
    position: relative;
    margin-top: 8px;
}
/* Placeholder cards (no real data): only their bars are blurred, so the
   dividers between them stay sharp like the listings above. */
.locked-preview-cards {
    pointer-events: none;
    user-select: none;
}
.locked-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-top: 2px solid var(--divider);
}
.locked-bar {
    display: block;
    filter: blur(4px);
    height: 12px;
    width: 80%;
    border-radius: 6px;
    background: var(--rule-strong);
}
.locked-bar--short {
    width: 30%;
    background: var(--label-listing);
}
.locked-bar--mid {
    width: 50%;
}
.locked-preview-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    background: var(--color-yellow);
    color: var(--ink);
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.25);
}
.locked-preview-button:hover {
    background: var(--color-yellow-dark);
}

a.key-pill {
    text-decoration: none;
}
.locked-preview-button {
    white-space: nowrap;
}
/* "Recently Verified": its own section at the top of the front page. */
.recent-section[hidden] {
    display: none;
}
.recent-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 22px 16px 14px;
}
.recent-title {
    margin: 0;
    text-align: center;
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-orange);
}
.recent-toggle {
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper);
    padding: 6px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    cursor: pointer;
}
/* Its cards, while the section is shown (owner, 2026-10-06): light gray,
   top bar and opened details alike, so they stand apart from the rest of
   the directory. */
.recent-list {
    --recent-card: #f3f4f6;
}
.recent-list .result-row,
.recent-list .row-toggle {
    background: var(--recent-card);
}
.recent-section.is-collapsed {
    display: flex;
    justify-content: center;
    margin: 18px 16px 6px;
}
.recent-all-title {
    margin: 28px 16px 8px;
    text-align: center;
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-orange);
}
