/* JFK Category Hero — styles tagDiv Composer's category template header as
   a modern hero card matching the Release Dates page design. Scoped to
   body.jfk-hero-active .jfk-hero (injected by jfk-category-hero.js). */

:root {
    --jfk-accent:        color(srgb 0.866 0.200 0.200);   /* #dd3333 — brand red */
    --jfk-accent-strong: color(srgb 0.686 0.128 0.128);   /* ~#af2020 — hover */
    --jfk-accent-bg:     color(srgb 0.988 0.921 0.921);   /* ~#fceaea — soft tint */
}

body.jfk-hero-active .jfk-hero {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 20px auto 30px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

body.jfk-hero-active .jfk-hero .jfk-hero-badge {
    display: inline-block;
    background: var(--jfk-accent-bg);
    color: var(--jfk-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Neutralize tagDiv block wrappers inside the hero so layout is clean. */
body.jfk-hero-active .jfk-hero .td_block_wrap,
body.jfk-hero-active .jfk-hero .tdb_title,
body.jfk-hero-active .jfk-hero .tdb_category_description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
}

body.jfk-hero-active .jfk-hero .tdb_title {
    margin-bottom: 12px !important;
}

body.jfk-hero-active .jfk-hero .tdb-block-inner {
    margin: 0 !important;
    font-style: normal !important;
    color: inherit !important;
}

/* Title — override tagDiv's per-block !important styles. */
body.jfk-hero-active .jfk-hero .tdb-title-text {
    font-size: 36px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-transform: none !important;
    display: inline-block;
    margin: 0 !important;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body.jfk-hero-active .jfk-hero .tdb-title-line {
    display: none !important;
}

/* Description — strip italic/gray tagDiv styling; match release dates hero. */
body.jfk-hero-active .jfk-hero .tdb_category_description .tdb-block-inner {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #525252 !important;
    font-style: normal !important;
    font-family: inherit !important;
    max-width: 700px;
    margin: 0 auto !important;
}

body.jfk-hero-active .jfk-hero .tdb_category_description p {
    margin: 0 auto 16px;
}

body.jfk-hero-active .jfk-hero .tdb_category_description p:last-child {
    margin-bottom: 0;
}

body.jfk-hero-active .jfk-hero .jfk-hero-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #525252;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

body.jfk-hero-active .jfk-hero .jfk-hero-stats strong {
    color: #111;
    font-weight: 700;
}

body.jfk-hero-active .jfk-hero .jfk-hero-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

body.jfk-hero-active .jfk-hero .jfk-hero-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--jfk-accent);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--jfk-accent-bg);
    transition: background 0.15s ease, color 0.15s ease;
}

body.jfk-hero-active .jfk-hero .jfk-hero-nav a:hover {
    background: var(--jfk-accent);
    color: #fff;
}

@media (max-width: 768px) {
    body.jfk-hero-active .jfk-hero {
        padding: 28px 20px;
    }
    body.jfk-hero-active .jfk-hero .tdb-title-text {
        font-size: 26px !important;
    }
    body.jfk-hero-active .jfk-hero .jfk-hero-stats {
        gap: 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Enrichment sections: About, FAQ, Related Categories
   ========================================================================== */

body.jfk-hero-active .jfk-enrichment {
    display: block;
    max-width: 1170px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    clear: both;
    position: relative;
    z-index: 1;
}

body.jfk-hero-active .jfk-enrichment section,
body.jfk-hero-active .jfk-enrichment article,
body.jfk-hero-active .jfk-enrichment nav {
    margin-bottom: 48px;
    display: block;
}

body.jfk-hero-active .jfk-enrichment h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    line-height: 1.2;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.jfk-hero-active .jfk-enrichment .jfk-byline {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
    font-style: italic;
}

/* Quick Facts table */
body.jfk-hero-active .jfk-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.jfk-hero-active .jfk-quick-facts {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 28px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}

body.jfk-hero-active .jfk-quick-facts tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

body.jfk-hero-active .jfk-quick-facts tbody tr:last-child {
    border-bottom: none;
}

body.jfk-hero-active .jfk-quick-facts th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #374151;
    width: 38%;
    background: transparent;
    border: none;
    vertical-align: top;
    font-family: inherit;
}

body.jfk-hero-active .jfk-quick-facts td {
    padding: 12px 16px;
    color: #111;
    vertical-align: top;
    line-height: 1.5;
}

@media (max-width: 600px) {
    body.jfk-hero-active .jfk-quick-facts {
        font-size: 14px;
    }
    body.jfk-hero-active .jfk-quick-facts th,
    body.jfk-hero-active .jfk-quick-facts td {
        padding: 10px 12px;
    }
    body.jfk-hero-active .jfk-quick-facts th {
        width: 42%;
    }
}

/* About section */
body.jfk-hero-active .jfk-about-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

body.jfk-hero-active .jfk-about-content h3,
body.jfk-hero-active .jfk-about-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 24px 0 10px;
    line-height: 1.3;
    padding: 0;
    border: none;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.jfk-hero-active .jfk-about-content h3:first-child,
body.jfk-hero-active .jfk-about-heading:first-child {
    margin-top: 0;
}

body.jfk-hero-active .jfk-about-content a {
    color: var(--jfk-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

body.jfk-hero-active .jfk-about-content a:hover {
    color: var(--jfk-accent-strong);
}

body.jfk-hero-active .jfk-about-content p {
    margin: 0 0 16px;
}

body.jfk-hero-active .jfk-about-content strong {
    color: #111;
}

body.jfk-hero-active .jfk-about-content ul,
body.jfk-hero-active .jfk-about-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

body.jfk-hero-active .jfk-about-content li {
    margin: 0 0 8px;
    line-height: 1.6;
}

/* FAQ section */
body.jfk-hero-active .jfk-faq-list {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

body.jfk-hero-active .jfk-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

body.jfk-hero-active .jfk-faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 32px;
    line-height: 1.4;
    user-select: none;
}

body.jfk-hero-active .jfk-faq-question::-webkit-details-marker {
    display: none;
}

body.jfk-hero-active .jfk-faq-question::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--jfk-accent);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

body.jfk-hero-active .jfk-faq-item[open] .jfk-faq-question::after {
    content: '−';
}

body.jfk-hero-active .jfk-faq-answer {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

body.jfk-hero-active .jfk-faq-answer p {
    margin: 0 0 12px;
}

body.jfk-hero-active .jfk-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Related categories */
body.jfk-hero-active .jfk-related-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

body.jfk-hero-active .jfk-related-list li {
    margin: 0;
}

body.jfk-hero-active .jfk-related-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    transition: background 0.15s ease;
    font-size: 14px;
    line-height: 1.3;
}

body.jfk-hero-active .jfk-related-list a:hover {
    background: var(--jfk-accent-bg);
    color: var(--jfk-accent);
}

body.jfk-hero-active .jfk-related-name {
    font-weight: 600;
}

body.jfk-hero-active .jfk-related-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
    flex-shrink: 0;
}

body.jfk-hero-active .jfk-related-list a:hover .jfk-related-count {
    color: var(--jfk-accent);
}

@media (max-width: 768px) {
    body.jfk-hero-active .jfk-enrichment {
        margin: 28px auto;
    }
    body.jfk-hero-active .jfk-enrichment h2 {
        font-size: 22px;
    }
    body.jfk-hero-active .jfk-faq-question {
        font-size: 16px;
    }
    body.jfk-hero-active .jfk-related-list {
        grid-template-columns: 1fr 1fr;
    }
}
