/* Category hub — Omni-style grouped calculator lists */
.cx-cat-page {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 64px;
}

.cx-cat-page__hero {
    --cat-accent: #2563eb;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat-accent) 8%, #fff) 0%, #f8fafc 72%);
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 16px 48px;
}
@media (min-width: 768px) {
    .cx-cat-page__hero { padding: 56px 24px 64px; }
}

.cx-cat-page__hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.cx-cat-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #64748b;
}
.cx-cat-page__breadcrumb a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}
.cx-cat-page__breadcrumb a:hover { color: var(--cat-accent); }
.cx-cat-page__breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: #cbd5e1;
    font-weight: 400;
}

.cx-cat-page__hero-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 640px) {
    .cx-cat-page__hero-head {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
}

.cx-cat-page__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cat-accent);
    background: color-mix(in srgb, var(--cat-accent) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--cat-accent) 22%, #fff);
}
.cx-cat-page__icon i { font-size: 1.375rem; line-height: 1; }

.cx-cat-page__hero-copy { flex: 1; min-width: 0; }

.cx-cat-page__kicker {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cat-accent);
}

.cx-cat-page__hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.cx-cat-page__count {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cat-accent);
    background: color-mix(in srgb, var(--cat-accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--cat-accent) 20%, #fff);
}

.cx-cat-page__lead {
    margin: 0;
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
}

.cx-cat-page__subnav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 0;
}
@media (min-width: 768px) { .cx-cat-page__subnav { padding: 24px 24px 0; } }

.cx-cat-page__subnav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cx-cat-page__subnav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.cx-cat-page__subnav a:hover {
    border-color: color-mix(in srgb, var(--cat-accent, #2563eb) 40%, #e2e8f0);
    color: var(--cat-accent, #2563eb);
}

.cx-cat-page__body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 0;
}
@media (min-width: 768px) { .cx-cat-page__body { padding: 40px 24px 0; } }

.cx-cat-page__section + .cx-cat-page__section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.cx-cat-page__section-head {
    margin-bottom: 20px;
}

.cx-cat-page__section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .cx-cat-page__section-head h2 { font-size: 1.25rem; }
}

.cx-cat-page__section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--section-accent, var(--cat-accent, #2563eb));
    background: color-mix(in srgb, var(--section-accent, var(--cat-accent, #2563eb)) 12%, #fff);
}

.cx-cat-page__section-intro {
    margin: 10px 0 0;
    max-width: 720px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
}

.cx-cat-page__calc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
@media (min-width: 768px) {
    .cx-cat-page__calc-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
    }
}
@media (min-width: 1100px) {
    .cx-cat-page__calc-list { grid-template-columns: 1fr 1fr 1fr; }
}

.cx-cat-page__calc-item {
    margin: 0;
}

.cx-cat-page__calc-item a {
    display: block;
    height: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cx-cat-page__calc-item a:hover {
    border-color: color-mix(in srgb, var(--cat-accent, #2563eb) 45%, #e2e8f0);
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.06);
}

.cx-cat-page__calc-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.cx-cat-page__calc-item a:hover strong {
    color: var(--cat-accent, #2563eb);
}

.cx-cat-page__calc-item span {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
}

.cx-cat-page__empty {
    max-width: 640px;
    margin: 48px auto 0;
    padding: 32px 24px;
    text-align: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}
