/* /tools/nis2-checker only: the fold-out question form and the result.
   Dark design system, site tokens only. Teal is rationed to the selected-answer badge, focus rings
   and the one primary CTA (Concentrated Signal Rule). Buttons, hero and data-trust come from site.css. */

.n2c-app [hidden] { display: none !important; }
.n2c-app:not(.n2c-ready) { display: none; } /* until the controller has rendered; [data-fallback] shows meanwhile */

/* Two-line H1: keyword line in --ink, question line in grey. Owner-approved exception to the same-ink hero sub-line rule (2026-11-19). */
.n2c-hero .hero-title strong { display: block; font-weight: inherit; color: var(--ink-2); }

/* Lighting field behind hero and checker: one dark-blue glow rising from the bottom right
   (the "lift" of Social/LinkedIn/forgotten-hosts/keep/forgotten-hosts-surface-q.html) plus 5% grain
   against banding. Positioned in px so it stays put as the results fold out. */
.n2c-field { position: relative; isolation: isolate; }
.n2c-field::before,
.n2c-field::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.n2c-field::before {
    background: radial-gradient(circle 1560px at 112% 1344px, #22366B 0%, #1A2A57 22%, #142045 42%, #0F1732 62%, var(--bg) 86%);
}
.n2c-field::after {
    opacity: .05;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
}
/* Desktop: the glow's centre sits behind the form. */
@media (min-width: 769px) {
    .n2c-field::before {
        background: radial-gradient(circle 1560px at 92% 720px, #22366B 0%, #1A2A57 22%, #142045 42%, #0F1732 62%, var(--bg) 86%);
    }
}
.n2c-fallback { color: var(--ink-2); margin: 0 0 var(--space-6); }
.n2c-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.n2c-section { padding-top: var(--space-6); }
.n2c-app, .n2c-q, .n2c-results { scroll-margin-top: 140px; } /* clears the floating header */

/* The form: one quiet panel, questions split by hairlines */
.n2c-panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--space-2) var(--space-6);
}
.n2c-q {
    border: 0;
    border-top: 1px solid var(--border-soft);
    margin: 0;
    padding: var(--space-5) 0;
    min-width: 0;
    animation: n2c-fold 0.24s ease-out;
}
.n2c-q:first-of-type { border-top: 0; }
.n2c-q-title {
    float: left; width: 100%; padding: 0; margin: 0 0 var(--space-4);
    font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.n2c-q-body { clear: both; }
/* Answered questions fold away entirely; the step row above the form is how a visitor goes back to them. */
.n2c-steps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: var(--space-2) 0; }
.n2c-steps li { display: flex; align-items: center; }
.n2c-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--border); margin: 0 var(--space-2); }
.n2c-step {
    display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 2px;
    background: none; border: 0; font: inherit; font-size: 0.85rem; color: var(--ink-3);
}
.n2c-step::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.n2c-steps .is-current .n2c-step { color: var(--ink); font-weight: 600; }
.n2c-steps .is-done .n2c-step { color: var(--ink); cursor: pointer; }
.n2c-steps .is-done .n2c-step:hover span { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
/* Done: a thin green check in place of the ring (decorative, not announced). */
.n2c-steps .is-done .n2c-step::before {
    width: 5px; height: 10px; border-radius: 0; margin: 0 2px 3px;
    border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.n2c-step:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--r-xs); }
.n2c-steps:not([hidden]) ~ .n2c-q:first-of-type { border-top: 1px solid var(--border-soft); }
/* With every question answered, the panel is just the step row: a slim bar, so the result starts high. */
.n2c-panel:not(:has(> .n2c-q:not([hidden]))) { padding: var(--space-1) var(--space-4); }
.n2c-panel:not(:has(> .n2c-q:not([hidden]))) .n2c-steps { padding: 0; }

.n2c-q-body { animation: n2c-fold 0.24s ease-out; }
.n2c-hint { color: var(--ink-2); font-size: 0.92rem; margin: calc(-1 * var(--space-2)) 0 var(--space-4); }

@keyframes n2c-fold { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .n2c-q, .n2c-q-body, .n2c-types, .n2c-results { animation: none; } }

/* Sector dropdown */
.n2c-row + .n2c-row { margin-top: var(--space-4); }
.n2c-row-head { display: flex; gap: var(--space-3); align-items: center; }
.n2c-select { flex: 1 1 auto; min-width: 0; max-width: 520px; min-height: 48px; cursor: pointer; }
.n2c-select:not(:focus) { border-color: var(--ink-3); } /* 5.34:1 against the panel; teal focus kept */
/* Desktop browsers with customizable selects: keep the native control, but open the picker on the side with more
   room and cap it to that space, so all 23 rows stay reachable at any display scaling (it scrolls inside).
   Other browsers and touch devices keep the system picker. */
@supports (appearance: base-select) and selector(::picker(select)) {
    @media (hover: hover) and (pointer: fine) {
        .n2c-select, .n2c-select::picker(select) { appearance: base-select; }
        .n2c-select::picker(select) {
            max-block-size: calc(100% - 8px); position-try-order: most-block-size; overflow-y: auto; margin-block: 4px;
            background: var(--surface); color: var(--ink);
            border: 1px solid var(--border); border-radius: var(--r-sm); padding: var(--space-1);
        }
        .n2c-select optgroup { font-weight: 600; color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: var(--space-2) var(--space-3) var(--space-1); }
        .n2c-select option { font-size: 0.95rem; color: var(--ink); padding: var(--space-2) var(--space-3); border-radius: var(--r-xs); text-transform: none; letter-spacing: 0; font-weight: 400; }
        .n2c-select option:hover, .n2c-select option:focus-visible { background: var(--card-hi); outline: none; }
        .n2c-select option:checked { background: var(--card); }
        .n2c-select option:disabled { color: var(--ink-3); }
    }
}
.n2c-types { margin-top: var(--space-5); animation: n2c-fold 0.24s ease-out; }
.n2c-types-title { color: var(--ink); font-weight: 600; margin: 0 0 var(--space-3); }

/* Text actions: quiet, near-white, underline on hover */
.n2c-edit, .n2c-add {
    background: none; border: 0; padding: 0 var(--space-1); min-height: 44px;
    color: var(--ink-2); font: inherit; font-size: 0.88rem; cursor: pointer;
    text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px;
}
.n2c-add { margin-top: var(--space-2); padding: 0; }
.n2c-edit:hover, .n2c-add:hover { color: var(--ink); text-decoration-color: currentColor; }

.n2c-help { margin: var(--space-2) 0 0; color: var(--ink-2); font-size: 0.88rem; }
.n2c-help summary { cursor: pointer; min-height: 44px; display: list-item; padding-top: 12px; }
.n2c-help summary:hover { color: var(--ink); }
/* Bullets inside a disclosure ("How to count"): same indent as the result lists, so markers sit inside the panel. */
.n2c-help ul { margin: var(--space-1) 0 var(--space-2); padding-left: var(--space-5); }
.n2c-help li + li { margin-top: var(--space-1); }
.n2c-help-close { display: block; margin-top: var(--space-3); padding: 0; }
.n2c-group {
    display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3);
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink);
}
.n2c-group::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.n2c-all { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; }
.n2c-all > div { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: var(--space-3) var(--space-4); }
.n2c-all dt { color: var(--ink); font-weight: 600; }
.n2c-all dd { margin: 2px 0 0; color: var(--ink-3); font-size: 0.82rem; line-height: 1.45; }
/* Phones: a compact list with hairlines keeps the open guide short. */
@media (max-width: 640px) {
    .n2c-all { gap: 0; }
    .n2c-all > div { background: none; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; padding: var(--space-2) 0; }
    .n2c-all > div:last-child { border-bottom: 0; }
}

/* Answers: one column of equal rows, each with a check mark (circle: one answer, rounded square: several) */
.n2c-pills { display: grid; gap: var(--space-2); max-width: 520px; }
.n2c-pill {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4) var(--space-3) 44px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.n2c-pill::before {
    content: "";
    position: absolute;
    left: var(--space-4);
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border: 1.5px solid #8A94A6; /* 4.6:1 on --card, 4:1 on --card-hi */
    border-radius: 50%;
}
.n2c-check::before { border-radius: 4px; }
.n2c-pill:hover { background: var(--card-hi); }
.n2c-pill:disabled { opacity: 0.45; cursor: not-allowed; background: var(--card); }
.n2c-pill[aria-pressed="true"] { background: var(--card-hi); border-color: var(--ink-3); }
.n2c-pill:is([aria-pressed="true"], :has(input:checked))::before { background: var(--teal); border-color: var(--teal); }
.n2c-pill:is([aria-pressed="true"], :has(input:checked))::after {
    content: "";
    position: absolute;
    left: calc(var(--space-4) + 5.5px);
    top: 50%;
    width: 4.5px;
    height: 8px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
}
@media (forced-colors: active) {
    .n2c-pill:is([aria-pressed="true"], :has(input:checked))::before { background: Highlight; border-color: Highlight; }
    .n2c-pill:is([aria-pressed="true"], :has(input:checked))::after { border-color: HighlightText; }
}

.n2c-pill:focus-visible, .n2c-edit:focus-visible, .n2c-add:focus-visible, .n2c-help summary:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px;
}

/* Criteria: native checkboxes; the rounded square mirrors the checked state */
.n2c-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.n2c-check:has(input:checked) { background: var(--card-hi); border-color: var(--ink-3); }
.n2c-check:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

.n2c-error { color: var(--red); font-size: 0.9rem; margin: var(--space-3) 0 0; }
.n2c-nav { display: flex; margin-top: var(--space-4); }
/* Continue stays neutral: teal is kept for the one conversion button */
.n2c-nav .btn-ghost { border-color: var(--border); }
.n2c-nav .btn-ghost:hover { border-color: var(--ink-3); background: var(--card-hi); box-shadow: none; }

/* Result: the answer (verdict, class, why), what it means for you, then one route into the app */
.n2c-results { margin-top: var(--space-6); animation: n2c-fold 0.24s ease-out; }
/* Result cards: changing backgrounds mark where you are (result, requirements, report). Contrast checked per card. */
.n2c-card { border-radius: var(--r-md); padding: var(--space-6); margin-top: var(--space-4); }
.n2c-card--result { background: var(--surface); border: 1px solid var(--border-soft); }
/* Requirement card: the Vornin box from the compare pages (compare-duel-kit.css .hs-stack-col--vornin .hs-stack-box),
   a faint teal wash and teal hairline on the dark ground. Teal otherwise marks only the step numbers. */
.n2c-card--guide {
    --n2c-g-ink: var(--ink);
    --n2c-g-ink-2: var(--ink-soft);
    --n2c-g-ink-3: var(--ink-3);
    --n2c-g-rule: var(--border-soft);
    background: var(--teal-05); border: 1px solid var(--teal-25); color: var(--n2c-g-ink-2);
}
/* CTA card: the inline CTA from the compare pages (compare-duel-kit.css .hs-inline-cta): copy left, action right. */
.n2c-card--cta {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-7);
    background: radial-gradient(90% 160% at 100% 0%, var(--ice-dim) 0%, transparent 60%), var(--surface);
    border: 1px solid var(--ice-border); box-shadow: var(--shadow-card);
}
.n2c-card--cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("/img/blacktrianglegrid20.svg") repeat; background-size: 900px 900px;
    filter: invert(1); opacity: 0.07;
    mask-image: radial-gradient(70% 120% at 100% 50%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 120% at 100% 50%, #000 0%, transparent 75%);
}
.n2c-card > .n2c-label:first-child { margin-top: 0; }
/* Result head: the classification as a green tag, the kind of answer spaced out and faint on the right. */
.n2c-result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-3); }
.n2c-badge {
    display: inline-block; padding: 2px 7px; border-radius: var(--r-xs);
    background: rgba(76, 173, 126, 0.10); border: 1px solid rgba(76, 173, 126, 0.35); color: var(--green);
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.n2c-badge[data-badge="unclear"] { background: var(--card); border-color: var(--border); color: var(--ink-2); }
.n2c-result-kind { color: var(--ink-3); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; }
.n2c-facts-wrap { margin-top: var(--space-5); }
.n2c-facts-title { font-size: 1.1rem; color: var(--ink); margin: 0; }
.n2c-facts { margin: var(--space-3) 0 0; border-top: 1px solid var(--border-soft); }
.n2c-facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.n2c-facts dt { color: var(--ink-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.n2c-facts dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.n2c-fact-note { display: block; margin-top: var(--space-2); }
.n2c-fact-lead { margin-top: 0; }
.n2c-deadlines { margin: var(--space-1) 0 0; padding-left: var(--space-5); }
.n2c-deadlines li { margin-top: var(--space-1); }
.n2c-deadlines strong { color: var(--ink); font-weight: 600; margin-right: var(--space-1); }
.n2c-fact-more { margin-top: var(--space-1); }
.n2c-fact-more p { margin: 0 0 var(--space-2); }
.n2c-verdict-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 var(--space-3); color: var(--ink); }
/* The class reads as the second half of the answer, one step down from the verdict. */
.n2c-class-head { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; color: var(--ink); margin: 0 0 var(--space-3); }
.n2c-verdict-title:focus { outline: none; }
.n2c-verdict-title:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.n2c-verdict p { color: var(--ink-2); margin: 0 0 var(--space-3); }
.n2c-reasons { margin: 0; padding-left: var(--space-5); color: var(--ink-2); }
.n2c-reasons li + li { margin-top: var(--space-2); }
.n2c-reasons.is-single { list-style: none; padding-left: 0; } /* one reason reads as a sentence */
.n2c-change { margin-top: var(--space-2); }
.n2c-change p { margin: 0 0 var(--space-2); }
.n2c-open { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-soft); }
.n2c-open-title { color: var(--ink); font-weight: 600; margin: 0 0 var(--space-2); }
.n2c-open ul { margin: 0; padding-left: var(--space-5); color: var(--ink-2); }

.n2c-label { color: var(--ink-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: var(--space-4) 0 var(--space-2); }

.n2c-card--guide:not(:has(> :not([hidden]))) { display: none; }
.n2c-guide-title { font-size: 1.2rem; color: var(--n2c-g-ink); margin: 0 0 var(--space-4); }
.n2c-card--guide p { color: var(--n2c-g-ink-2); margin: 0 0 var(--space-3); }
.n2c-reqs { list-style: none; counter-reset: n2c-req; margin: 0 0 var(--space-4); padding: 0; }
.n2c-reqs li {
    counter-increment: n2c-req; position: relative;
    padding: var(--space-3) 0 var(--space-3) 2.1rem; border-top: 1px solid var(--n2c-g-rule);
}
.n2c-reqs li:first-child { border-top: 0; padding-top: 0; }
.n2c-reqs li::before {
    content: counter(n2c-req); position: absolute; left: 0; top: calc(var(--space-3) + 0.2rem);
    width: 1.2rem; height: 1.2rem; border-radius: 50%; box-sizing: border-box;
    border: 1px solid var(--teal-40); color: var(--teal);
    font-size: 0.68rem; font-weight: 600; line-height: calc(1.2rem - 2px); text-align: center;
}
.n2c-reqs li:first-child::before { top: 0.2rem; }
.n2c-req-title { display: block; color: var(--n2c-g-ink); font-size: 1rem; font-weight: 600; line-height: 1.6rem; }
.n2c-req-text { display: block; margin-top: 2px; color: var(--n2c-g-ink-2); font-size: 0.95rem; line-height: 1.5; }
.n2c-ref { color: var(--ink-3); font-size: 0.85rem; white-space: normal; }
.n2c-card--guide .n2c-ref { color: var(--n2c-g-ink-3); font-size: 0.8rem; margin-left: var(--space-1); white-space: nowrap; }
/* Secondary notes (implementing regulation) step down so the list stays the focus. */
.n2c-card--guide .n2c-guide-note {
    font-size: 0.82rem; line-height: 1.5; color: var(--n2c-g-ink-3);
    margin: 0 0 var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--n2c-g-rule);
}
.n2c-card--guide .n2c-guide-note:not([hidden]) ~ .n2c-guide-note { border-top: 0; padding-top: 0; }

.n2c-cta-title { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; color: var(--ink); margin: 0 0 2px; }
.n2c-cta-sub { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.55; margin: 0; }
.n2c-cta-copy { grid-column: 1; grid-row: 1; }
.n2c-card--cta .btn { grid-column: 2; grid-row: 1; justify-content: center; min-width: 240px; white-space: nowrap; }
.n2c-cta-meta { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.n2c-card--cta .data-trust { margin: 0; text-align: center; }
.n2c-cta-copy .n2c-cta-secondary { margin-top: var(--space-2); }
@media (max-width: 820px) {
    .n2c-card--cta { grid-template-columns: 1fr; row-gap: var(--space-4); }
    .n2c-cta-copy, .n2c-card--cta .btn, .n2c-cta-meta { grid-column: 1; grid-row: auto; }
    .n2c-cta-meta { row-gap: var(--space-2); margin-top: calc(-1 * var(--space-2)); }
}
/* Contact is optional help, so it is a quiet text link, not a second button. */
.n2c-cta-secondary {
    display: inline-flex;
    align-items: center;
    min-inline-size: 24px;
    min-block-size: 24px;
    margin-top: var(--space-2);
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.n2c-cta-secondary:hover { color: var(--ink); } /* neutral: teal stays with the primary CTA */
.n2c-cta-secondary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.n2c-fineprint { color: var(--ink-3); font-size: 0.8rem; margin: var(--space-4) 0 0; }
.n2c-fineprint + .n2c-fineprint { margin-top: var(--space-1); }

.n2c-noscript { color: var(--ink-2); margin: 0 0 var(--space-6); }

@media (max-width: 768px) {
    .n2c-panel { padding: var(--space-1) var(--space-4); }
    .n2c-card { padding: var(--space-4); }
    .n2c-facts > div { grid-template-columns: 1fr; gap: var(--space-1); }

    .n2c-select { max-width: none; }
    .n2c-pills { max-width: none; }
}
