/* ── Category archive page ───────────────────────────────────────────────── */
/* Prefix: .hic-cat-  (never conflicts with .hic-jl- shortcode or .hj- skin) */

/* Reset/normalise for the page body when our template is active */
.hic-cat-active .site-main { max-width: none; }

.hic-cat-page {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f6f7f9;
    min-height: 60vh;
}

/* ── Shell ───────────────────────────────────────────────────────────────── */
.hic-cat-shell {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hic-cat-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 60px;
    background: linear-gradient(135deg, #fff 0%, #fff6f6 52%, #f1f4f8 100%);
    border-bottom: 1px solid #e6e8ec;
}

.hic-cat-hero__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .32;
    pointer-events: none;
}
.hic-cat-hero__orb--1 { width: 320px; height: 320px; right: -100px; top: -130px; background: var(--hj-accent); }
.hic-cat-hero__orb--2 { width: 220px; height: 220px; left:  -110px; bottom: -120px; background: #ffb4b9; }

/* Breadcrumbs */
.hic-cat-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 22px;
    font-size: .88rem;
    color: #667085;
}
.hic-cat-breadcrumbs a { color: #475467; text-decoration: none; }
.hic-cat-breadcrumbs a:hover { color: #172033; text-decoration: underline; }
.hic-cat-breadcrumbs span[aria-hidden] { color: #9ca3af; }
.hic-cat-breadcrumbs [aria-current] { color: #172033; font-weight: 600; }

/* H1 */
.hic-cat-hero__title {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.032em;
    color: #111827;
    overflow-wrap: anywhere;
}
.hic-cat-hero__title-jobs {
    color: var(--hj-accent);
}

/* Sub-line */
.hic-cat-hero__sub {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    font-size: 1.08rem;
    color: #475467;
    line-height: 1.55;
}
.hic-cat-hero__sub strong { color: #172033; }

/* Stats row — pill facts like hero-facts in job template */
.hic-cat-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hic-cat-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e5ea;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(17, 24, 39, .05);
    font-size: .9rem;
    color: #3f4a5a;
}
.hic-cat-stat svg { color: var(--hj-accent); flex: 0 0 auto; }
.hic-cat-stat strong { color: #172033; font-weight: 700; }

/* ── Main content area ───────────────────────────────────────────────────── */
.hic-cat-main {
    padding-block: 52px;
    display: grid;
    gap: 36px;
}

/* ── Term description ────────────────────────────────────────────────────── */
.hic-cat-desc {
    padding: 28px 32px;
    border-left: 4px solid var(--hj-accent);
    border-radius: 0 16px 16px 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(17, 24, 39, .04);
    color: #3f4a5a;
    font-size: 1.02rem;
    line-height: 1.7;
}
.hic-cat-desc p:first-child { margin-top: 0; }
.hic-cat-desc p:last-child  { margin-bottom: 0; }

/* ── Auto-generated SEO content block ────────────────────────────────────── */
.hic-cat-seo {
    padding: 32px 34px;
    border: 1px solid #e3e6eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .045);
    color: #3f4a5a;
    font-size: 1rem;
    line-height: 1.75;
}
.hic-cat-seo p { margin: 0 0 16px; }
.hic-cat-seo p:last-child { margin-bottom: 0; }
.hic-cat-seo h2 {
    margin: 26px 0 10px;
    font-size: 1.15rem;
    letter-spacing: -.015em;
    color: #172033;
}
.hic-cat-seo h2:first-child { margin-top: 0; }
.hic-cat-seo strong { color: #172033; font-weight: 700; }

/* Collapsible "read more" wrapper around everything past the intro
   paragraph — plain <details>/<summary>, no JS: the body stays real markup
   in the DOM even while collapsed, so search engines see exactly what an
   expanded visitor sees, while the page itself reads shorter by default. */
.hic-cat-seo__details { margin-top: 4px; }
.hic-cat-seo__details summary {
    list-style: none;
    cursor: pointer;
}
.hic-cat-seo__details summary::-webkit-details-marker { display: none; }
.hic-cat-seo__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #e2e5ea;
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    font-weight: 700;
    color: var(--hj-accent-dark);
    transition: border-color .15s ease, background .15s ease;
    user-select: none;
}
.hic-cat-seo__toggle:hover {
    border-color: var(--hj-accent);
    background: color-mix(in srgb, var(--hj-accent) 6%, white);
}
.hic-cat-seo__details:focus-within .hic-cat-seo__toggle {
    outline: 2px solid var(--hj-accent);
    outline-offset: 2px;
}
.hic-cat-seo__toggle-icon {
    display: inline-flex;
    transition: transform .2s ease;
}
.hic-cat-seo__details[open] .hic-cat-seo__toggle-icon { transform: rotate(180deg); }
.hic-cat-seo__toggle-text-open { display: none; }
.hic-cat-seo__details[open] .hic-cat-seo__toggle-text-closed { display: none; }
.hic-cat-seo__details[open] .hic-cat-seo__toggle-text-open { display: inline; }
.hic-cat-seo__body {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef0f3;
    animation: hic-cat-seo-reveal .25s ease;
}
@keyframes hic-cat-seo-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ── FAQ block (schema.org FAQPage) ──────────────────────────────────────── */
.hic-cat-faq {
    padding: 32px 34px;
    border: 1px solid #e3e6eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .045);
}
.hic-cat-faq h2 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    letter-spacing: -.015em;
    color: #172033;
}
.hic-cat-faq__item {
    padding: 16px 0;
    border-top: 1px solid #eef0f3;
}
.hic-cat-faq__item:first-of-type { border-top: none; padding-top: 0; }
.hic-cat-faq__q {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #172033;
}
.hic-cat-faq__a {
    margin: 0;
    color: #3f4a5a;
    font-size: .98rem;
    line-height: 1.7;
}

/* ── Job listings section ────────────────────────────────────────────────── */
/* Deliberately NOT another white bordered card like .hic-cat-desc/.hic-cat-seo
   above — an open, unboxed section with a bold accent-underlined heading
   reads as a distinct "here are the actual jobs" zone rather than a third
   copy of the same card pattern, breaking up the page's rhythm. */
.hic-cat-jobs { padding-top: 4px; }
.hic-cat-jobs__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2.5px solid var(--hj-accent);
}
.hic-cat-jobs__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #111827;
}
.hic-cat-jobs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--hj-accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

/* ── Job card grid ───────────────────────────────────────────────────────── */
/* .hic-jl-grid and .hic-job-card styles come from the 'hic-list' style handle */
/* No overrides needed — the shortcode's inline CSS handles everything */

/* ── Empty state ─────────────────────────────────────────────────────────── */
.hic-cat-empty {
    padding: 40px 24px;
    border: 1.5px dashed #d1d5db;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.hic-cat-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.hic-cat-pager a,
.hic-cat-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #e2e5ea;
    border-radius: 10px;
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    color: #3f4a5a;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hic-cat-pager a:hover {
    border-color: var(--hj-accent);
    color: var(--hj-accent);
    background: color-mix(in srgb, var(--hj-accent) 5%, white);
}
.hic-cat-pager .current {
    border-color: var(--hj-accent);
    background: var(--hj-accent);
    color: #fff;
}
.hic-cat-pager .dots {
    border-color: transparent;
    background: transparent;
    color: #9ca3af;
}

/* ── Related categories ──────────────────────────────────────────────────── */
.hic-cat-related {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.hic-cat-related__title {
    margin: 0 0 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #172033;
    letter-spacing: -.015em;
}
.hic-cat-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hic-cat-related__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1.5px solid #e2e5ea;
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    color: #3f4a5a;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hic-cat-related__link:hover {
    border-color: var(--hj-accent);
    color: var(--hj-accent);
    background: color-mix(in srgb, var(--hj-accent) 5%, white);
}
.hic-cat-related__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    transition: background .15s ease, color .15s ease;
}
.hic-cat-related__link:hover .hic-cat-related__count {
    background: color-mix(in srgb, var(--hj-accent) 12%, white);
    color: var(--hj-accent-dark);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hic-cat-shell { width: calc(100% - 28px); }
    .hic-cat-hero  { padding: 36px 0 44px; }
    .hic-cat-hero__title { font-size: 1.85rem; }
    .hic-cat-desc  { padding: 20px 20px 20px 18px; border-radius: 0 12px 12px 0; }
    .hic-cat-seo   { padding: 22px; border-radius: 16px; }
    .hic-cat-faq   { padding: 22px; border-radius: 16px; }
    .hic-cat-main  { padding-block: 36px; gap: 28px; }
    .hic-cat-jobs__title { font-size: 1.25rem; }
    .hic-cat-pager a,
    .hic-cat-pager span { min-width: 36px; height: 36px; font-size: .85rem; }
}
