/* Kompatibilitet: sidor som ännu bär sin gamla markup (textsidor, blogg) i Nordljus-skalet. */
.legacy .wrap { max-width: none; padding: 0; margin: 0; }
.legacy .wrap-wide { max-width: none; padding: 0; }
.legacy .crumbs { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 1.2rem 0 0; }
.legacy .crumbs a { color: var(--ink-3); text-decoration: none; }
.legacy .crumbs span, .legacy .crumbs-sep { margin: 0 0.4rem; opacity: 0.6; }
.legacy .hero, .legacy .article-hero { display: block; padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.legacy .hero h1, .legacy .article-hero h1, .legacy .hero-title { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; line-height: 1.04; max-width: 20ch; }
.legacy .hero h1 em { font-style: normal; color: var(--brand); }
.legacy .eyebrow, .legacy .section-eyebrow, .legacy .story-eyebrow, .legacy .insight-eyebrow, .legacy .post-tag, .legacy .tag, .legacy .num, .legacy .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 0.6rem; display: block; }
.legacy .lede, .legacy .hero-sub, .legacy .section-sub, .legacy .hero .sub { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; margin: 1rem 0 0; }
.legacy .hero .cta-row, .legacy .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.legacy .helper { margin-top: 0.8rem; font-size: 13.5px; color: var(--ink-3); }
.legacy .section, .legacy section { padding: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.legacy .section h2, .legacy section h2, .legacy .article-body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; margin: 0 0 0.8rem; }
.legacy .section h3, .legacy .article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 0.4rem; }
.legacy p, .legacy li { color: var(--ink-2); }
.legacy .section p, .legacy .article-body p { margin: 0 0 0.9rem; max-width: 68ch; }
.legacy .section ul, .legacy .section ol, .legacy .article-body ul, .legacy .article-body ol { padding-left: 1.2rem; margin: 0.4rem 0 1rem; max-width: 68ch; }
.legacy li { margin: 0.3rem 0; }
.legacy strong { color: var(--ink); }
.legacy a:not(.btn) { color: var(--brand); }
.legacy .article-body { padding: 0.5rem 0 2rem; }
.legacy .article-body blockquote { margin: 1.2rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink); }
.legacy .article-body img, .legacy .article-body figure img { max-width: 100%; height: auto; border-radius: 12px; }
.legacy .article-body table, .legacy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1rem 0; }
.legacy th, .legacy td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legacy th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.legacy code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
.legacy pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; }
.legacy .article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 13.5px; color: var(--ink-3); margin: 0.8rem 0 1rem; }
.legacy .article-meta .dot { opacity: 0.5; }
.legacy .article-hero > .wrap > p:not(.eyebrow) { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
/* Kortlistor */
.legacy .post-list, .legacy .related-grid, .legacy .punkt-grid, .legacy .stats, .legacy .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1rem 0; }
@media (max-width: 860px) { .legacy .post-list, .legacy .related-grid, .legacy .punkt-grid, .legacy .stats, .legacy .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .legacy .post-list, .legacy .related-grid, .legacy .punkt-grid, .legacy .stats, .legacy .grid { grid-template-columns: 1fr; } }
.legacy .post-card, .legacy .related-card, .legacy .punkt, .legacy .stat-box, .legacy .stat, .legacy .policy-item, .legacy .insight, .legacy .story, .legacy .meta-card, .legacy .cta-card, .legacy .step, .legacy .closing { display: flex; flex-direction: column; gap: 6px; padding: 1.1rem 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); text-decoration: none; margin: 0 0 12px; }
.legacy .post-card h3, .legacy .related-card h3, .legacy .punkt h3, .legacy .policy-item h3, .legacy .cta-card h3, .legacy .step-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.legacy .post-card p, .legacy .related-card p, .legacy .punkt p, .legacy .policy-item p, .legacy .cta-card p, .legacy .insight p, .legacy .story p, .legacy .step p { margin: 0; font-size: 14px; }
.legacy .read-more { margin-top: auto; padding-top: 0.5rem; font-size: 13px; font-weight: 600; color: var(--brand); }
.legacy .insight-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 0.3rem; }
.legacy .stat-value, .legacy .stat-box b, .legacy .stat-box strong:first-child { font: 800 1.9rem var(--font-display); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.legacy .stat-label, .legacy .stat-meta { font-size: 13px; color: var(--ink-3); }
.legacy .steps { display: grid; gap: 12px; margin: 1rem 0; }
.legacy .step { flex-direction: row; gap: 14px; align-items: flex-start; }
.legacy .step-num, .legacy .punkt-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font: 700 14px var(--font-display); }
.legacy .step-body { display: grid; gap: 6px; }
.legacy .step-tip { font-size: 13px; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 0.7rem; }
.legacy .punkt-head { display: flex; align-items: center; gap: 10px; }
.legacy .punkt-col-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0.6rem 0 0.2rem; }
.legacy .cta-card { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, transparent), var(--surface)); padding: 1.5rem 1.6rem; }
.legacy .cta-card h3 { font-size: 1.35rem; }
.legacy .closing { color: var(--ink); }
/* FAQ */
.legacy .faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0.85rem 1.1rem; margin: 0 0 8px; }
.legacy .faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.legacy .faq-item summary::after { content: "+"; color: var(--brand); font-family: var(--font-mono); }
.legacy .faq-item[open] summary::after { content: "–"; }
.legacy .faq-item p { margin: 0.6rem 0 0; font-size: 14.5px; max-width: 65ch; }
/* Formulär i gammal markup */
.legacy .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .legacy .contact-row { grid-template-columns: 1fr; } }
.legacy .contact-field, .legacy .field { display: block; }
.legacy .contact-field > span, .legacy .field > span { display: block; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 0.45rem; font-weight: 600; }
.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="tel"], .legacy textarea, .legacy select { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.legacy input:focus, .legacy textarea:focus, .legacy select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.legacy .success-msg { color: var(--ok); }
.legacy .updated { color: var(--ink-3); font-size: 13px; margin-top: 2rem; }
.legacy .btn { margin: 0.2rem 0.4rem 0.2rem 0; }
/* Driftstatus */
.legacy .status-intro { padding: 1.6rem 0 0; }
.legacy #status-root { padding: 0.8rem 0 2rem; display: grid; gap: 12px; }
.legacy #status-root.loading { color: var(--ink-3); padding: 2rem 0; }
.legacy #status-root .hero { padding: 1.4rem 1.5rem; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; gap: 1rem; }
.legacy #status-root .hero.degraded { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.legacy #status-root .hero.down { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.legacy .hero-row { display: flex; align-items: center; gap: 1.2rem; }
.legacy .hero-pulse { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--ok) 22%, transparent) 0%, transparent 70%); }
.legacy .hero-pulse .core { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); animation: statusPulse 2.2s ease-out infinite; }
.legacy .hero-pulse.degraded { background: radial-gradient(circle, color-mix(in srgb, var(--warn) 22%, transparent) 0%, transparent 70%); }
.legacy .hero-pulse.degraded .core { background: var(--warn); box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 45%, transparent); }
.legacy .hero-pulse.down { background: radial-gradient(circle, color-mix(in srgb, var(--bad) 22%, transparent) 0%, transparent 70%); }
.legacy .hero-pulse.down .core { background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 45%, transparent); }
@keyframes statusPulse { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .legacy .hero-pulse .core { animation: none; } }
.legacy #status-root .hero-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; margin: 0.2rem 0; max-width: none; }
.legacy #status-root .hero-sub { margin: 0; color: var(--ink-2); max-width: 62ch; }
.legacy .hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.legacy .hero-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.legacy .hero-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legacy .components { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; }
@media (max-width: 640px) { .legacy .components { grid-template-columns: 1fr; } }
.legacy .component-card { padding: 1rem 1.15rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 6px; }
.legacy .component-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.legacy .component-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legacy .component-icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
.legacy .component-icon svg { width: 100%; height: 100%; }
.legacy .component-label { font-size: 1rem; font-weight: 700; margin: 0; }
.legacy .component-desc { margin: 0; font-size: 13.5px; }
.legacy .component-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.legacy .pill-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.legacy .pill-degraded { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.legacy .pill-down { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.legacy .pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.legacy .pill-dot.ok { background: var(--ok); } .legacy .pill-dot.degraded { background: var(--warn); } .legacy .pill-dot.down { background: var(--bad); }
.legacy .trust { display: flex; gap: 12px; align-items: flex-start; padding: 1rem 1.15rem; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, transparent), var(--surface)); }
.legacy .trust-icon { color: var(--brand); flex: none; }
.legacy .trust-text { margin: 0; font-size: 13.5px; }
.legacy #status-root .error { padding: 1rem 1.15rem; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); border-radius: var(--radius); background: var(--surface); }
/* Formulär på gratispaketen (kit) och kontaktformulär i gammal markup */
.legacy .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legacy #kit-form, .legacy .contact-form { max-width: 46rem; display: grid; gap: 1rem; margin: 0.6rem 0 1rem; }
.legacy .field label, .legacy .contact-field > span { display: block; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 0.45rem; font-weight: 600; }
.legacy .field-help, .legacy .contact-fineprint { font-size: 13px; color: var(--ink-3); margin: 0; }
.legacy button.primary, .legacy .contact-submit { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.2rem; border-radius: 999px; font: 600 14px/1 var(--font-body); border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); cursor: pointer; justify-self: start; }
.legacy .contact-submit-row { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.legacy .contact-status { margin: 0; font-size: 0.98rem; text-align: center; }
.legacy .contact-status:empty { display: none; }
.legacy .contact-status.is-success { color: var(--ok); }
.legacy .contact-status.is-error { color: var(--bad); }
/* Punktchips på NIS2-sidan */
.legacy .punkt-num { width: auto; height: auto; padding: 0.25rem 0.7rem; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.legacy .punkt-col { display: grid; gap: 4px; }
.legacy .punkt-col p { margin: 0; font-size: 14px; }
/* Ikoner utan bredd i markupen (onboarding m.fl.) */
.legacy svg:not([width]):not([class]) { width: 22px; height: 22px; color: var(--accent); flex: none; }
.legacy .hero-eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.legacy button.btn-primary:not(.btn) { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.2rem; border-radius: 999px; font: 600 14px/1 var(--font-body); border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); cursor: pointer; margin-top: 0.6rem; }
/* Behörighetssidan */
.legacy .lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; margin: 1rem 0 0; }
.legacy .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6rem 0 2rem; }
@media (max-width: 760px) { .legacy .principles { grid-template-columns: 1fr; } }
.legacy .principle { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legacy .principle h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.legacy .principle p { margin: 0; font-size: 14px; }
.legacy .perm-group { margin: 1.6rem 0; }
.legacy .perm-group-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.legacy .perm { padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 8px; }
.legacy .perm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.legacy .perm-name { font-family: var(--font-mono); font-size: 13px; color: var(--ink); margin: 0; }
.legacy .perm-type { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid; flex: none; }
.legacy .type-read { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.legacy .type-write { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.legacy .perm-why { margin: 0.4rem 0 0; font-size: 14px; }
.legacy .footnote { font-size: 13px; color: var(--ink-3); margin-top: 1.6rem; }
/* Knappar i gamla knapprader: bryt text och ta full bredd på smala skärmar */
.legacy .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 640px) { .legacy .cta-row { flex-direction: column; align-items: stretch; } .legacy .cta-row .btn { width: 100%; margin: 0; } }
.btn { max-width: 100%; }
