/* NorthSea Tools - Protection picker */

.nst-protection {
    --nstp-accent: #6d4eec;
    --nstp-ink: #14161c;
    --nstp-muted: #616a7d;
    --nstp-line: #e2e5ec;
    --nstp-bg: #ffffff;
    --nstp-soft: #f6f7fa;
    --nstp-accent-soft: #f2effe;
    --nstp-radius: 10px;

    max-width: 960px;
    margin: 0 auto;
    color: var(--nstp-ink);
    font-size: 16px;
    line-height: 1.55;
    box-sizing: border-box;
}

.nst-protection *,
.nst-protection *::before,
.nst-protection *::after {
    box-sizing: inherit;
}

.nst-protection.nst-p-theme-dark {
    --nstp-ink: #f3f5f9;
    --nstp-muted: #a6aec0;
    --nstp-line: #333b4a;
    --nstp-bg: #171a21;
    --nstp-soft: #1f232c;
    --nstp-accent-soft: #241f3d;
}

.nst-protection .nst-p-title,
.nst-protection .nst-p-result-title,
.nst-protection .nst-p-sub,
.nst-protection .nst-p-stack-item strong,
.nst-protection .nst-p-card-name {
    color: var(--nstp-ink);
}

.nst-protection .nst-p-intro,
.nst-protection .nst-p-stack-intro,
.nst-protection .nst-p-stack-item span,
.nst-protection .nst-p-disclaimer,
.nst-protection .nst-p-tips li,
.nst-protection .nst-p-card-role {
    color: var(--nstp-muted);
}

.nst-p-head {
    margin-bottom: 22px;
}

.nst-p-title {
    margin: 0 0 6px;
    font-size: 1.6em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.nst-p-intro {
    margin: 0;
}

/* Questions */

.nst-p-q {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
}

.nst-p-legend {
    padding: 0;
    margin: 0 0 10px;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--nstp-ink);
}

.nst-p-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nst-p-option {
    position: relative;
    display: inline-flex;
}

.nst-p-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nst-p-option span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--nstp-line);
    border-radius: 999px;
    background: var(--nstp-bg);
    color: var(--nstp-ink);
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.nst-p-option span:hover {
    border-color: var(--nstp-accent);
}

.nst-p-option input:checked + span {
    background: var(--nstp-accent);
    border-color: var(--nstp-accent);
    color: #fff;
    font-weight: 600;
}

.nst-p-option input:focus-visible + span {
    outline: 2px solid var(--nstp-accent);
    outline-offset: 2px;
}

/* Result */

.nst-p-result {
    margin-top: 8px;
    padding: 22px;
    border: 1px solid var(--nstp-line);
    border-radius: var(--nstp-radius);
    background: var(--nstp-bg);
}

.nst-p-result-title {
    margin: 0 0 6px;
    font-size: 1.2em;
}

.nst-p-stack-intro {
    margin: 0 0 16px;
    font-size: 0.9em;
}

.nst-p-sub {
    margin: 22px 0 10px;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.nst-p-stack {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: nstp;
}

.nst-p-stack-item {
    position: relative;
    counter-increment: nstp;
    padding: 12px 12px 12px 46px;
    border-radius: 8px;
    background: var(--nstp-soft);
}

.nst-p-stack-item + .nst-p-stack-item {
    margin-top: 8px;
}

.nst-p-stack-item::before {
    content: counter(nstp);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--nstp-accent);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.nst-p-stack-item strong {
    display: block;
    font-size: 0.98em;
}

.nst-p-stack-item span {
    display: block;
    font-size: 0.86em;
}

.nst-p-tips ul {
    margin: 0;
    padding-left: 20px;
}

.nst-p-tips li {
    font-size: 0.9em;
    margin-bottom: 7px;
}

/* Product cards */

.nst-p-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.nst-p-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nstp-line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--nstp-bg);
    transition: border-color 0.12s ease, transform 0.12s ease;
}

.nst-p-card:hover {
    border-color: var(--nstp-accent);
    transform: translateY(-2px);
}

.nst-p-card-img {
    display: block;
    background: var(--nstp-soft);
    aspect-ratio: 1 / 1;
}

.nst-p-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nst-p-card-body {
    display: block;
    padding: 12px;
}

.nst-p-card-role {
    display: block;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 3px;
}

.nst-p-card-name {
    display: block;
    font-size: 0.88em;
    line-height: 1.35;
    margin-bottom: 5px;
}

.nst-p-card-price {
    display: block;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--nstp-accent);
}

.nst-p-card-old {
    margin-left: 5px;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--nstp-muted);
    text-decoration: line-through;
}

.nst-p-actions {
    margin-top: 20px;
}

.nst-p-btn {
    display: inline-block;
    border: 1px solid var(--nstp-accent);
    background: var(--nstp-accent);
    color: #fff;
    border-radius: 6px;
    padding: 9px 18px;
    font: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.nst-p-btn-ghost {
    background: transparent;
    border-color: var(--nstp-line);
    color: var(--nstp-ink);
}

.nst-p-btn-ghost:hover {
    border-color: var(--nstp-muted);
}

.nst-p-disclaimer {
    margin: 18px 0 0;
    font-size: 0.78em;
}

@media (max-width: 600px) {
    .nst-p-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
