/* ==========================================================================
   EU AI Act Content Hub — Stylesheet
   Companion to checker.css — can be enqueued separately for content pages
   ========================================================================== */

.euaiac-content-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #0f172a;
    max-width: 880px;
    margin: 40px auto 0;
    -webkit-font-smoothing: antialiased;
}

.euaiac-content-hub * {
    box-sizing: border-box;
}

/* NAV */
.hub-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
}

.hub-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.hub-nav-inner::-webkit-scrollbar { display: none; }

.hub-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 4px 12px 4px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.hub-nav-link {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.15s;
}

.hub-nav-link:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

/* SECTIONS */
.hub-section {
    padding: 64px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hub-section.alt {
    background: #f8fafc;
    padding-left: 32px;
    padding-right: 32px;
    margin-left: -32px;
    margin-right: -32px;
}

.hub-section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hub-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 14px;
}

.hub-h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hub-h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 36px 0 12px;
}

.hub-lead {
    font-size: 16px;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 20px;
}

.hub-section p {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 16px;
}

.hub-list {
    padding-left: 0;
    list-style: none;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-list li {
    font-size: 14px;
    color: #475569;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.hub-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1d4ed8;
    font-size: 12px;
    top: 1px;
}

/* CALLOUTS */
.hub-callout {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.hub-callout.info {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.hub-callout.warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
}

.hub-callout strong {
    color: #0d1b2a;
}

/* TABLE */
.hub-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hub-table th {
    background: #0d1b2a;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hub-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

.hub-table tr:last-child td {
    border-bottom: none;
}

.hub-table tr:nth-child(even) td {
    background: #f8fafc;
}

.hub-table td.yes   { color: #065f46; font-weight: 600; }
.hub-table td.no    { color: #6b7280; }
.hub-table td.partial { color: #92400e; font-weight: 600; }

/* TIMELINE */
.hub-timeline {
    position: relative;
    padding-left: 28px;
    margin: 24px 0;
}

.hub-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d4ed8;
    border: 3px solid #eff6ff;
    box-shadow: 0 0 0 2px #1d4ed8;
}

.timeline-date {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.timeline-content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px !important;
    margin: 0 !important;
}

/* OBLIGATION GRID */
.obligation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.ob-card {
    padding: 18px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
}

.ob-num {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Menlo', 'Monaco', monospace;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.ob-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 8px;
}

.ob-card p {
    font-size: 12px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* RISK PYRAMID */
.risk-pyramid {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pyramid-tier {
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pyramid-tier.tier-1 { background: #fef2f2; border: 1.5px solid #fca5a5; }
.pyramid-tier.tier-2 { background: #fff7ed; border: 1.5px solid #fed7aa; }
.pyramid-tier.tier-3 { background: #fffbeb; border: 1.5px solid #fde68a; }
.pyramid-tier.tier-4 { background: #f0fdf4; border: 1.5px solid #86efac; }

.tier-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tier-1 .tier-label { color: #991b1b; }
.tier-2 .tier-label { color: #c2410c; }
.tier-3 .tier-label { color: #92400e; }
.tier-4 .tier-label { color: #065f46; }

.tier-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* ANNEX GRID */
.annex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.annex-item {
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
}

.annex-num {
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
    color: #1d4ed8;
    display: block;
    margin-bottom: 4px;
}

.annex-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 4px;
}

.annex-item p {
    font-size: 12px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* PROHIBITED LIST */
.prohibited-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}

.prohibited-item {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    align-items: flex-start;
}

.prohibited-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.prohibited-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 6px;
}

.prohibited-content p {
    font-size: 13px !important;
    color: #475569 !important;
    margin: 0 0 8px !important;
    line-height: 1.6 !important;
}

.penalty-tag {
    font-size: 11px;
    font-weight: 700;
    color: #991b1b;
    background: rgba(239,68,68,0.1);
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid rgba(239,68,68,0.3);
}

/* STEPS GRID */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.step-card {
    padding: 18px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    position: relative;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #0d1b2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.step-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 6px;
}

.step-card p {
    font-size: 13px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #0d1b2a;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 16px;
    transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #1d4ed8;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover { background: #f8fafc; }
.faq-item[open] { border-color: #bfdbfe; background: #eff6ff; }
.faq-item[open] summary { background: #eff6ff; color: #1d4ed8; border-bottom: 1px solid #bfdbfe; }

.faq-answer {
    padding: 16px 20px;
    background: #fff;
}

.faq-answer p {
    font-size: 14px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.75 !important;
}

/* BOTTOM CTA */
.hub-bottom-cta {
    text-align: center;
    padding: 56px 32px;
    background: #0d1b2a;
    border-radius: 16px;
    margin: 48px 0 0;
}

.hub-bottom-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.hub-bottom-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hub-cta-btn {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.hub-cta-btn:hover {
    background: #1d4489;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* DISCLAIMER */
.hub-disclaimer {
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    margin: 24px 0 40px;
}

.hub-disclaimer p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .hub-section.alt {
        padding-left: 16px;
        padding-right: 16px;
        margin-left: -16px;
        margin-right: -16px;
    }
    .hub-section { padding: 40px 0; }
    .obligation-grid { grid-template-columns: 1fr; }
    .annex-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .prohibited-item { flex-direction: column; gap: 8px; }
}
