/* ── DCM Frontend Styles ──────────────────────────────────────────────── */

/* ── Archive Header ──────────────────────────────────────────────────── */
.dcm-archive-header {
    margin-bottom: 24px;
}

/* ── Category Title ──────────────────────────────────────────────────── */
.dcm-category-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.2;
}

/* ── Category Subtitle ───────────────────────────────────────────────── */
.dcm-category-subtitle {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 900px;
}

/* ── Child Category Chips ────────────────────────────────────────────── */
.dcm-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

/* Base chip */
.dcm-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 999px; /* pill – overridden to 4px for square via settings class */
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.dcm-chip:hover {
    background: #f0eeff;
    border-color: #7b68ee;
    color: #7b68ee;
    text-decoration: none;
}

.dcm-chip--active {
    background: #7b68ee;
    border-color: #7b68ee;
    color: #fff;
}

.dcm-chip--active:hover {
    background: #6a57dd;
    border-color: #6a57dd;
    color: #fff;
}

/* Square chip style (toggled via body class set by plugin setting) */
body.dcm-chip-square .dcm-chip {
    border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dcm-category-title {
        font-size: 20px;
    }

    .dcm-category-subtitle {
        font-size: 13px;
    }

    .dcm-chip {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.dcm-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 12px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.dcm-breadcrumb__link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.dcm-breadcrumb__link:hover {
    color: #7b68ee;
    text-decoration: underline;
}

.dcm-breadcrumb__sep {
    color: #bbb;
    font-size: 14px;
    line-height: 1;
    margin: 0 2px;
}

.dcm-breadcrumb__current {
    color: #888;
    font-weight: 400;
}

@media ( max-width: 768px ) {
    .dcm-breadcrumbs {
        font-size: 12px;
    }
}
