.wkcat-head {
    background: var(--card); border-radius: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    padding: 1rem 1.15rem;
    display: flex; align-items: center; gap: 1rem;
}
.wkcat-head .ico {
    width: 52px; height: 52px; border-radius: 0;
    background: var(--bg); border: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.wkcat-head .ti { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.wkcat-head .de { font-size: 0.82rem; color: var(--ink-dim); }

.wkcat-list {
    background: var(--card); border-radius: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    overflow: hidden;
}
.wkcat-row {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 0.85rem; align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer; transition: background 0.12s;
    color: var(--ink);
}
.wkcat-row:last-child { border-bottom: 0; }
.wkcat-row:hover { background: var(--hover); }
.wkcat-row .ico {
    width: 32px; height: 32px; border-radius: 0;
    background: var(--card); border: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 0.82rem;
    flex-shrink: 0;
}
.wkcat-row .ti { font-size: 0.86rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 0.45rem; }
.wkcat-row .ti .pin { color: var(--accent); font-size: 0.7rem; }
.wkcat-row .su { font-size: 0.74rem; color: var(--ink-dim); margin-top: 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wkcat-row .meta { text-align: right; font-size: 0.7rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; min-width: 90px; }
.wkcat-row .meta .views { display: block; opacity: 0.6; font-size: 0.66rem; margin-top: 2px; }

/* Formerly inline styles in wiki/category.php. */
.wkcat-head-copy { flex: 1; min-width: 0; }
.wkcat-count { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.wkcat-empty { padding: 2rem; text-align: center; color: var(--ink-faint); font-size: 0.85rem; }
.wkcat-row-copy { min-width: 0; }

/* Below desktop: no label under 11px. */
@media (max-width: 1199.98px) {
    .wkcat-row .meta .views { font-size: max(11px, 0.66rem); }
    .wkcat-row .meta { font-size: max(11px, 0.7rem); }
}
/* Phones: the date column used to squeeze titles to ~115px. It drops under the title
   (column 2), and the article count moves under the description. */
@media (max-width: 575.98px) {
    .wkcat-head { flex-wrap: wrap; row-gap: 0.4rem; padding: 0.9rem 1rem; }
    .wkcat-count { flex: 1 0 100%; padding-left: calc(52px + 1rem); }
    .wkcat-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.3rem; }
    .wkcat-row .meta { grid-column: 2; text-align: left; min-width: 0; }
    .wkcat-row .meta .views { display: inline; margin: 0 0 0 0.5rem; }
}
