/**
 * EOI points calculator widget styles (companion to nss-eoi-calculator.js).
 * Colour tokens follow the Newstarsec landing-page system:
 * navy #1e3a5f · accent #e48216 · ink #1a202c · body #4a5568 · muted #64748b
 * gray #f5f7fa · border #e2e8f0.
 * No fixed widths anywhere — the widget must never overflow a 390px viewport.
 */
.nss-eoi-calc { margin: 2rem 0 0; }

.nss-eoi-calc .nec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.nss-eoi-calc .nec-head {
    background: #1e3a5f;
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid #e48216;
}
.nss-eoi-calc .nec-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.nss-eoi-calc .nec-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}
.nss-eoi-calc .nec-body { display: flex; flex-wrap: wrap; }
.nss-eoi-calc .nec-form {
    flex: 1 1 24rem;
    min-width: 0;
    padding: 1.5rem;
}
.nss-eoi-calc .nec-result {
    flex: 1 1 18rem;
    min-width: 0;
    padding: 1.5rem;
    background: #f5f7fa;
    border-top: 1px solid #e2e8f0;
}
@media (min-width: 880px) {
    .nss-eoi-calc .nec-form { border-right: 1px solid #e2e8f0; }
    .nss-eoi-calc .nec-result { border-top: none; max-width: 24rem; }
}

/* ── form ── */
.nss-eoi-calc .nec-field { margin: 0 0 1.25rem; }
.nss-eoi-calc .nec-field:last-child { margin-bottom: 0; }
.nss-eoi-calc .nec-label {
    display: block;
    color: #1a202c;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}
.nss-eoi-calc .nec-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1a202c;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.nss-eoi-calc .nec-hint {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0.35rem 0 0;
}
.nss-eoi-calc .nec-warn {
    color: #b45309;
    font-size: 0.8125rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0.35rem 0 0;
}
.nss-eoi-calc .nec-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nss-eoi-calc .nec-pill { display: inline-flex; cursor: pointer; margin: 0; }
.nss-eoi-calc .nec-pill input { position: absolute; opacity: 0; pointer-events: none; }
.nss-eoi-calc .nec-pill span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 2rem;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nss-eoi-calc .nec-pill input:checked + span {
    border-color: #e48216;
    color: #e48216;
    background: rgba(228, 130, 22, 0.08);
}
.nss-eoi-calc .nec-pill input:focus-visible + span { outline: 2px solid #1e3a5f; outline-offset: 2px; }
.nss-eoi-calc .nec-checks { display: block; }
.nss-eoi-calc .nec-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    margin: 0;
    cursor: pointer;
    border-top: 1px solid #e2e8f0;
}
.nss-eoi-calc .nec-check:first-child { border-top: none; }
.nss-eoi-calc .nec-check input { margin: 0.3rem 0 0; flex: none; accent-color: #e48216; }
.nss-eoi-calc .nec-check-label {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1 1 auto;
}
.nss-eoi-calc .nec-badge {
    flex: none;
    color: #e48216;
    font-weight: 700;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* ── result ── */
.nss-eoi-calc .nec-result-label {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}
.nss-eoi-calc .nec-score { margin: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.nss-eoi-calc .nec-score-n {
    color: #1e3a5f;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.nss-eoi-calc .nec-score-u { color: #4a5568; font-size: 1rem; font-weight: 600; }
.nss-eoi-calc .nec-progress {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0.5rem 0 0;
}
.nss-eoi-calc .nec-note {
    color: #b45309;
    font-size: 0.8125rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0.5rem 0 0;
}
.nss-eoi-calc .nec-breakdown-t {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 1.25rem 0 0.25rem;
}
.nss-eoi-calc .nec-breakdown { margin: 0; }
.nss-eoi-calc .nec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-top: 1px solid #e2e8f0;
}
.nss-eoi-calc .nec-row:first-child { border-top: none; }
.nss-eoi-calc .nec-row dt {
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}
.nss-eoi-calc .nec-row dd {
    color: #1a202c;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 0;
    flex: none;
}
.nss-eoi-calc .nec-row-off dt, .nss-eoi-calc .nec-row-off dd { color: #94a3b8; font-weight: 400; }
.nss-eoi-calc .nec-threshold {
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.7;
    margin: 1.25rem 0 0;
    padding: 0.75rem 1rem;
    background: rgba(30, 58, 95, 0.06);
    border-left: 3px solid #1e3a5f;
    border-radius: 0 0.5rem 0.5rem 0;
}
.nss-eoi-calc .nec-disclaimer {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.7;
    margin: 0.75rem 0 0;
}
.nss-eoi-calc .nec-cta-lead {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.25rem 0 0.75rem;
}
.nss-eoi-calc .nec-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: #e48216;
    color: #ffffff;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}
.nss-eoi-calc .nec-cta:hover { background-color: #b45309; color: #ffffff; }

/* ── not-eligible state (age 45+ / below Competent English) ── */
.nss-eoi-calc .nec-invalid .nec-score-n { color: #94a3b8; }
.nss-eoi-calc .nec-inelig {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    background: rgba(178, 59, 59, 0.07);
    border-left: 3px solid #b23b3b;
    border-radius: 0 0.5rem 0.5rem 0;
}
.nss-eoi-calc .nec-inelig-t {
    color: #b23b3b;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}
.nss-eoi-calc .nec-inelig-list {
    margin: 0.4rem 0 0;
    padding-left: 1.2em;
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.6;
}
.nss-eoi-calc .nec-inelig-list li { margin: 0.15rem 0; }
.nss-eoi-calc .nec-inelig-sub {
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.7;
    margin: 0.5rem 0 0;
}
