/* ==========================================
   NIS2Have – Wiki Topic Pages
   Extends news-article.css (.article-container, .article-header, etc.)
   with wiki-specific components.
   ========================================== */

/* Distinct tag color for reference/wiki content vs. news */
.tag-wiki {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* FAQ accordion list (reuses .faq-item/.faq-question/.faq-answer from faq.css) */
.wiki-faq-list {
    margin: 16px 0 24px;
}

/* Quick-facts box */
.wiki-quick-facts {
    background: var(--brand-teal-bg);
    border: 1px solid var(--brand-teal-light);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.wiki-quick-facts h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-teal-dark);
    margin: 0 0 14px;
}
.wiki-quick-facts dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    margin: 0;
}
.wiki-quick-facts dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.wiki-quick-facts dd {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0;
    line-height: 1.4;
}

/* "Relation to NIS2" callout, used inside .article-body-content */
.wiki-nis2-callout {
    background: var(--white);
    border: 1.5px solid var(--brand-teal);
    border-left: 5px solid var(--brand-teal-dark);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
}
.wiki-nis2-callout p:last-child { margin-bottom: 0; }
.wiki-nis2-callout-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-teal-dark);
    margin-bottom: 8px;
}

/* Kit deep-link chips, used on the NIS2 pillar page's obligation mapping */
.wiki-kit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: var(--brand-teal-bg);
    color: var(--brand-teal-dark);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--brand-teal-light);
    white-space: nowrap;
}
.wiki-kit-link:hover { background: var(--brand-teal-light); }

/* Disclaimer footnote */
.wiki-disclaimer {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 14px 20px;
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
    border-top: 1px solid var(--gray-100);
}

/* Generic tables inside article body (obligation lists, timelines).
   display:block turns the table itself into the scroll container, so it can
   grow past the article width on narrow screens instead of being clipped
   (html/body have overflow-x:hidden site-wide, so an un-contained table
   would just disappear off the edge instead of scrolling). */
.article-body-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}
.article-body-content th,
.article-body-content td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
    white-space: nowrap;
}
.article-body-content td {
    white-space: normal;
    min-width: 160px;
}
.article-body-content th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--brand-navy);
}

@media (max-width: 600px) {
    .wiki-quick-facts dl { grid-template-columns: 1fr; }
    .article-body-content table { font-size: 0.82rem; }
}
