/* ============================================================
   Private registration plates — extra styles.
   Loaded after style.css on the public site and in the admin.
   ============================================================ */

/* ---- Number plate graphic ---------------------------------- */
/* A UK-style rear plate (yellow) drawn in CSS. Used where a plate
   has no photo, on the plate detail page and in the admin list. */
.plate {
    display: inline-block;
    font-family: var(--font-head); font-weight: 800;
    letter-spacing: .05em; line-height: 1.1; white-space: nowrap;
    text-transform: uppercase; color: #111;
    background: #f6c516;
    padding: .2em .6em;
    border-radius: .22em;
    /* thin black border inset from the edge, like a real plate */
    box-shadow: inset 0 0 0 .1em #f6c516, inset 0 0 0 .16em #111, 0 1px 2px rgba(0,0,0,.25);
}
.plate--lg { font-size: clamp(2rem, 7vw, 3.4rem); }

/* ---- Category filter on the home page ---------------------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 30px; }
.filter__link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--text); font-weight: 600; font-size: .92rem;
    transition: border-color .15s ease, background .15s ease;
}
.filter__link:hover { text-decoration: none; border-color: #c9c7bf; }
.filter__link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__count {
    font-size: .76rem; font-weight: 600; color: var(--muted);
    background: var(--paper); padding: 1px 8px; border-radius: 999px;
}
.filter__link[aria-current="page"] .filter__count { background: var(--ink-soft); color: var(--muted-ink); }

/* ---- Cars / plates groups ---------------------------------- */
.listing__group + .listing__group { margin-top: 56px; }
.listing__subheading {
    font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em;
    margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* ---- Plate cards ------------------------------------------- */
.card__plateart {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink);
}
.card__plateart .plate { font-size: clamp(1.6rem, 6vw, 2.1rem); }

/* ---- Plate detail page ------------------------------------- */
.gallery__main--plate {
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); padding: 24px;
}
.specpanel__title .plate { font-size: 1.6rem; }

/* ---- Admin ------------------------------------------------- */
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-section { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.admin-section h2 { font-size: 1.2rem; font-weight: 700; }
.admin-section .count { color: var(--muted); font-size: .9rem; }
.panel + .admin-section, .empty + .admin-section, .limit-note + .admin-section { margin-top: 36px; }
.table__thumb--plate { display: flex; align-items: center; justify-content: center; background: var(--ink); }
.table__thumb--plate .plate { font-size: .62rem; padding: .25em .4em; }
.table__car .plate { font-size: .95rem; }
