/* Cyber Alerts (/cyber-alerts and /cyber-alerts/:cve). The hero is always
   dark (an operations-center look); the sections below follow the site theme
   (light by default, dark under [data-bs-theme="dark"]). Mobile first: every
   block wraps and long identifiers break, so the page never scrolls sideways. */

.page-layout .sf-cyber, .sf-cyber {
  --cy-bg: #f6f7f9;
  --cy-card: #ffffff;
  --cy-line: #e5e7eb;
  --cy-text: #0f1115;
  --cy-muted: #5b6473;
  --cy-accent: #6366f1;
  --cy-critical: #dc2626;
  --cy-high: #ea580c;
  --cy-medium: #d97706;
  --cy-low: #16a34a;
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.25rem 1rem 3rem;
  box-sizing: border-box;
  color: var(--cy-text);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-wrap: anywhere;
}
.sf-cyber *, .sf-cyber *::before, .sf-cyber *::after { box-sizing: border-box; }
.sf-cyber a { color: inherit; }
.sf-cyber code { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }

/* Tones */
.sf-tone--critical { color: var(--cy-critical); }
.sf-tone--high { color: var(--cy-high); }
.sf-tone--medium { color: var(--cy-medium); }
.sf-tone--low { color: var(--cy-low); }
.sf-tone--muted { color: var(--cy-muted); }
.sf-tone-bg--critical { background: var(--cy-critical); }
.sf-tone-bg--high { background: var(--cy-high); }
.sf-tone-bg--medium { background: var(--cy-medium); }
.sf-tone-bg--low { background: var(--cy-low); }
.sf-tone-bg--accent { background: var(--cy-accent); }
.sf-tone-bg--muted { background: #6b7280; }
.sf-tone-fill--critical { fill: var(--cy-critical); }
.sf-tone-fill--accent { fill: var(--cy-accent); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.sf-cyber__hero {
  --glow: rgba(99, 102, 241, .35);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.6rem 1.25rem 1.25rem;
  color: #e7e9ee;
  background:
    radial-gradient(900px 380px at 85% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 300px at 0% 110%, rgba(14, 165, 233, .18), transparent 60%),
    linear-gradient(160deg, #0b0d12 0%, #0f1320 55%, #0b0d12 100%);
  border: 1px solid #1f2533;
  box-shadow: 0 30px 80px -40px rgba(15, 17, 21, .65);
}
.sf-cyber__hero--critical { --glow: rgba(239, 68, 68, .38); }
.sf-cyber__hero--high { --glow: rgba(249, 115, 22, .36); }
.sf-cyber__hero--medium { --glow: rgba(234, 179, 8, .3); }
.sf-cyber__hero--low { --glow: rgba(34, 197, 94, .3); }
.sf-cyber__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.sf-cyber__hero-in { position: relative; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.sf-cyber__intro { min-width: 0; }
.sf-cyber__kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc; }
.sf-cyber__pulse { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: sf-cy-pulse 2s infinite; }
@keyframes sf-cy-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .65); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .sf-cyber__pulse { animation: none; } }
.sf-cyber__title { margin: 0 0 .65rem; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.sf-cyber__title--cve { font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(1.7rem, 7vw, 3rem); letter-spacing: -.02em; }
.sf-cyber__lead { margin: 0 0 1.1rem; max-width: 640px; font-size: 1.02rem; line-height: 1.6; color: #b7bdca; }
.sf-cyber__lead--strong { color: #e7e9ee; font-size: 1.12rem; font-weight: 500; }
.sf-cyber__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.sf-cyber__btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff !important; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.sf-cyber__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
.sf-cyber__btn--primary { background: linear-gradient(135deg, #ef4444, #f97316); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(239, 68, 68, .8); }
.sf-cyber__btn--primary:hover { background: linear-gradient(135deg, #dc2626, #ea580c); }
.sf-cyber__btn--icon { width: 42px; padding: 0; font-size: 1.1rem; }
.sf-cyber__btn.is-done { border-color: #22c55e; color: #4ade80 !important; }
.sf-cyber__fresh { margin: 0; line-height: 1.6; font-size: .82rem; color: #8b93a3; }
.sf-cyber__fresh a { color: #c7cbd4; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.sf-cyber__fresh--stale { color: #fbbf24; }
.sf-cyber__back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .9rem; font-size: .85rem; color: #a5b4fc !important; text-decoration: none; }

/* Gauge */
.sf-cyber__gauge { margin: 0; justify-self: center; display: grid; justify-items: center; gap: .35rem; width: min(100%, 300px); padding: 1rem 1rem .9rem; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.sf-cyber__gauge svg { width: 100%; height: auto; overflow: visible; }
.sf-cyber__gauge-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 14; stroke-linecap: round; }
.sf-cyber__gauge-fill { fill: none; stroke: url(#sf-gauge-grad); stroke-width: 14; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(239, 68, 68, .45)); }
.sf-cyber__gauge-dot { fill: #fff; stroke: #0b0d12; stroke-width: 3; }
.sf-cyber__gauge-num { fill: #fff; font-size: 38px; font-weight: 700; font-family: 'Geist', system-ui, sans-serif; }
.sf-cyber__gauge-of { fill: #8b93a3; font-size: 11px; font-family: 'Geist', system-ui, sans-serif; }
.sf-cyber__gauge figcaption { display: grid; justify-items: center; gap: .1rem; text-align: center; }
.sf-cyber__gauge-k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8b93a3; }
.sf-cyber__level { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.sf-cyber__level.sf-tone--critical { color: #f87171; }
.sf-cyber__level.sf-tone--high { color: #fb923c; }
.sf-cyber__level.sf-tone--medium { color: #facc15; }
.sf-cyber__level.sf-tone--low { color: #4ade80; }
.sf-cyber__gauge-how { font-size: .78rem; color: #a5b4fc !important; }

/* KPI tiles */
.sf-cyber__kpis { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.4rem; }
.sf-kpi { position: relative; display: grid; gap: .2rem; align-content: start; min-width: 0; padding: .85rem .9rem; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); }
.sf-kpi::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--cy-accent); }
.sf-kpi--critical::before { background: #ef4444; }
.sf-kpi--high::before { background: #f97316; }
.sf-kpi--medium::before { background: #eab308; }
.sf-kpi__k { display: flex; align-items: center; gap: .35rem; font-size: .74rem; color: #9aa2b1; }
.sf-kpi__v { font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.sf-kpi__s { font-size: .74rem; color: #8b93a3; line-height: 1.35; }
.sf-kpi__bar { display: flex; gap: 2px; height: 6px; margin-top: .35rem; border-radius: 6px; overflow: hidden; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sf-cyber__section { margin-top: 2.2rem; min-width: 0; }
.sf-cyber__sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.sf-cyber__sechead > div { min-width: 0; flex: 1 1 320px; }
.sf-cyber__h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: clamp(1.25rem, 4.5vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.sf-cyber__h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 650; }
.sf-cyber__sub { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--cy-muted); }
.sf-cyber__empty, .sf-cyber__nomatch { padding: 1.1rem; border: 1px dashed var(--cy-line); border-radius: 14px; color: var(--cy-muted); text-align: center; }
.sf-cyber__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0; font-size: .8rem; color: var(--cy-muted); }
.sf-cyber__key { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.sf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }

.sf-cyber__search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; }
.sf-cyber__search i { position: absolute; left: .85rem; color: var(--cy-muted); }
.sf-cyber__search input { width: 100%; min-height: 44px; padding: .55rem .9rem .55rem 2.3rem; border: 1px solid var(--cy-line); border-radius: 999px; background: var(--cy-card); color: var(--cy-text); font: inherit; font-size: .9rem; }
.sf-cyber__search input:focus { outline: 2px solid var(--cy-accent); outline-offset: 1px; }

/* Trend chart */
.sf-cyber__trend { padding: 1.1rem 1rem .8rem; border: 1px solid var(--cy-line); border-radius: 20px; background: var(--cy-card); }
.sf-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; }
.sf-chart__y { display: flex; flex-direction: column; justify-content: space-between; height: 160px; font-size: .7rem; color: var(--cy-muted); text-align: right; font-variant-numeric: tabular-nums; }
.sf-chart__plot { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; background: linear-gradient(var(--cy-line) 1px, transparent 1px) 0 0 / 100% 80px; background-repeat: repeat-y; background-size: 100% 80px; background-position: 0 0; height: 182px; }
.sf-chart__day { display: grid; grid-template-rows: 160px auto; min-width: 0; }
.sf-chart__bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 160px; border-bottom: 1px solid var(--cy-line); }
.sf-chart__bar { display: block; width: min(14px, 42%); min-height: 2px; border-radius: 3px 3px 0 0; }
.sf-chart__x { padding-top: 4px; font-size: .66rem; color: var(--cy-muted); text-align: center; white-space: nowrap; overflow: visible; }
.sf-chart__x--alt { visibility: hidden; }
@media (max-width: 639px) { .sf-chart__x--minor { visibility: hidden; } }
.sf-cyber__more { margin-top: .8rem; }
.sf-cyber__more > summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--cy-line); border-radius: 999px; background: var(--cy-card); font-size: .88rem; font-weight: 600; cursor: pointer; list-style: none; }
.sf-cyber__more > summary::-webkit-details-marker { display: none; }
.sf-cyber__more[open] > summary i { transform: rotate(180deg); }
.sf-cyber__more > ol, .sf-cyber__more > ul { margin-top: .8rem; }

/* Exploited cards */
.sf-cyber__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.sf-vcard { min-width: 0; }
.sf-vcard__link { position: relative; display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: 1rem 1.05rem; border-radius: 18px; border: 1px solid var(--cy-line); background: var(--cy-card); text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sf-vcard__link::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #ef4444, #f97316); }
.sf-vcard__link:hover { transform: translateY(-2px); border-color: #fca5a5; box-shadow: 0 18px 40px -24px rgba(220, 38, 38, .55); }
.sf-vcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sf-vcard__top .sf-score { margin-left: auto; }
.sf-cyber .sf-vcard__cve { font-size: .82rem; color: var(--cy-muted); letter-spacing: .02em; }
.sf-vcard__title { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.sf-vcard__vp { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .82rem; font-weight: 600; color: var(--cy-text); }
.sf-vcard__sum { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--cy-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-vcard__foot { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: auto; padding-top: .4rem; font-size: .78rem; color: var(--cy-muted); }
.sf-vcard__foot span { display: inline-flex; align-items: center; gap: .3rem; }

.sf-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.sf-badge--kev { background: #fee2e2; color: #b91c1c; }
.sf-badge--ransom { background: #1f2937; color: #fde68a; }
.sf-badge--lg { padding: .32rem .75rem; font-size: .8rem; }
.sf-pill { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; border: 1px solid currentColor; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.sf-pill--lg { padding: .3rem .75rem; font-size: .8rem; background: rgba(255, 255, 255, .06); }
.sf-cyber__hero .sf-pill.sf-tone--critical { color: #f87171; }
.sf-cyber__hero .sf-pill.sf-tone--high { color: #fb923c; }
.sf-cyber__hero .sf-pill.sf-tone--medium { color: #facc15; }
.sf-cyber__hero .sf-pill.sf-tone--low { color: #4ade80; }
.sf-score { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .18rem .5rem; border-radius: 8px; color: #fff; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-score--lg { min-width: 3.2rem; padding: .55rem .4rem; border-radius: 12px; font-size: 1rem; }
.sf-due { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 999px; background: #f3f4f6; color: #374151; font-weight: 600; }
.sf-due--soon { background: #fef3c7; color: #92400e; }
.sf-due--late { background: #fee2e2; color: #b91c1c; }

/* Critical rows */
.sf-cyber__rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cy-line); border-radius: 18px; background: var(--cy-card); overflow: hidden; }
.sf-vrow + .sf-vrow { border-top: 1px solid var(--cy-line); }
.sf-vrow__link { display: flex; align-items: flex-start; gap: .85rem; padding: .95rem 1rem; text-decoration: none; transition: background .15s ease; }
.sf-vrow__link:hover { background: rgba(99, 102, 241, .05); }
.sf-vrow__main { display: grid; gap: .3rem; min-width: 0; flex: 1; }
.sf-vrow__line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sf-cyber .sf-vrow__cve { font-weight: 700; font-size: .9rem; }
.sf-vrow__sum { font-size: .86rem; line-height: 1.5; color: var(--cy-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-vrow__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .76rem; color: var(--cy-muted); }
.sf-vrow__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.sf-vrow__go { align-self: center; color: var(--cy-muted); }

/* Panels and horizontal bars */
.sf-cyber__duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
.sf-cyber__panel { padding: 1.1rem 1.05rem; border: 1px solid var(--cy-line); border-radius: 20px; background: var(--cy-card); }
.sf-hbars { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.sf-hbars li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .84rem; }
.sf-hbars__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sf-hbars__track { height: 10px; border-radius: 10px; background: rgba(99, 102, 241, .08); overflow: hidden; }
.sf-hbars__fill { display: block; height: 100%; border-radius: 10px; }
.sf-hbars__n { font-variant-numeric: tabular-nums; }

/* Advisories */
.sf-cyber__advs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.sf-adv a { display: grid; gap: .3rem; height: 100%; padding: .95rem 1rem; border: 1px solid var(--cy-line); border-radius: 16px; background: var(--cy-card); text-decoration: none; transition: border-color .15s ease; }
.sf-adv a:hover { border-color: var(--cy-accent); }
.sf-adv__date { font-size: .74rem; color: var(--cy-muted); text-transform: uppercase; letter-spacing: .06em; }
.sf-adv__title { font-weight: 650; line-height: 1.35; }
.sf-adv__sum { font-size: .84rem; color: var(--cy-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-adv__go { display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; font-size: .8rem; font-weight: 600; color: var(--cy-accent); }

/* Methodology and API */
.sf-cyber__method, .sf-cyber__api { padding: 1.2rem 1.1rem; border-radius: 20px; border: 1px solid var(--cy-line); background: var(--cy-card); }
.sf-cyber__method p { line-height: 1.6; }
.sf-bands { list-style: none; margin: .9rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sf-band { display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--cy-line); font-size: .85rem; }
.sf-band span:last-child { margin-left: auto; color: var(--cy-muted); font-variant-numeric: tabular-nums; }
.sf-band.is-current { border-color: var(--cy-text); box-shadow: inset 0 0 0 1px var(--cy-text); }
.sf-endpoints { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.sf-endpoints li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "m c b" "d d d"; align-items: center; gap: .3rem .6rem; padding: .7rem .8rem; border-radius: 14px; background: #0b0d12; color: #e7e9ee; }
.sf-endpoints .sf-method { grid-area: m; padding: .15rem .45rem; border-radius: 6px; background: #22c55e; color: #052e16; font-size: .7rem; font-weight: 800; }
.sf-endpoints code { grid-area: c; min-width: 0; font-size: .82rem; color: #a5b4fc; }
.sf-endpoints span:not(.sf-method) { grid-area: d; font-size: .8rem; color: #9aa2b1; }
.sf-copy-ep { grid-area: b; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: #e7e9ee; cursor: pointer; }
.sf-copy-ep.is-done { border-color: #22c55e; color: #4ade80; }

/* CTA */
.sf-cyber__cta { display: grid; gap: 1rem; margin-top: 2.2rem; padding: 1.4rem 1.2rem; border-radius: 22px; color: #e7e9ee; background: radial-gradient(600px 220px at 100% 0%, rgba(239, 68, 68, .3), transparent 60%), linear-gradient(140deg, #0b0d12, #151a28); border: 1px solid #1f2533; }
.sf-cyber__cta-h { margin: 0 0 .35rem; font-size: clamp(1.2rem, 4.5vw, 1.5rem); font-weight: 700; color: #fff; }
.sf-cyber__cta p { margin: 0; color: #b7bdca; line-height: 1.55; }
.sf-cyber__cta-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.sf-cyber__cta--side { margin-top: 1.4rem; }
.sf-cyber__foot { margin-top: 1.6rem; font-size: .8rem; line-height: 1.6; color: var(--cy-muted); }
.sf-cyber__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Detail ───────────────────────────────────────────────────────────── */
.sf-cyber__hero--compact { padding-bottom: 1.4rem; }
.sf-detail__badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .7rem; }
.sf-cyber__gauge--score { width: auto; padding: 1.1rem 1.4rem; }
.sf-ring { --p: 0; --c: var(--cy-accent); position: relative; display: grid; place-items: center; align-content: center; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.sf-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #0f1320; }
.sf-ring > span { position: relative; }
.sf-ring__v { font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; }
.sf-ring__of { font-size: .72rem; letter-spacing: .12em; color: #8b93a3; }
.sf-tone-ring--critical { --c: #ef4444; }
.sf-tone-ring--high { --c: #f97316; }
.sf-tone-ring--medium { --c: #eab308; }
.sf-tone-ring--low { --c: #22c55e; }
.sf-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; }
.sf-detail__main, .sf-detail__side { min-width: 0; }
.sf-detail__explain { padding: 1.1rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(239, 68, 68, .06)); border: 1px solid rgba(99, 102, 241, .25); }
.sf-detail__explain p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.sf-detail__desc { margin: 0; line-height: 1.7; }
.sf-lang { margin-left: .35rem; padding: .1rem .45rem; border-radius: 6px; background: rgba(99, 102, 241, .1); color: var(--cy-accent); font-size: .7rem; font-weight: 600; }
.sf-detail__kev { padding: 1.1rem; border-radius: 18px; border: 1px solid #fecaca; background: #fff5f5; }
.sf-detail__action { margin: 0 0 .9rem; padding: .8rem .9rem; border-left: 3px solid var(--cy-critical); background: var(--cy-card); border-radius: 0 10px 10px 0; line-height: 1.6; }
.sf-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin: 0 0 .8rem; }
.sf-facts div { display: grid; gap: .1rem; }
.sf-facts dt { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cy-muted); }
.sf-facts dd { margin: 0; font-weight: 600; }
.sf-vector { display: grid; gap: .45rem; margin: .8rem 0; }
.sf-vector div { display: flex; justify-content: space-between; gap: .8rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--cy-line); font-size: .87rem; }
.sf-vector dt { flex: 0 0 auto; color: var(--cy-muted); overflow-wrap: normal; }
.sf-vector dd { margin: 0; font-weight: 650; text-align: right; }
.sf-detail__vec { margin: 0; font-size: .75rem; color: var(--cy-muted); }
.sf-refs { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .9rem; }
.sf-refs a { color: var(--cy-accent); }
.sf-refs__tags { font-size: .74rem; color: var(--cy-muted); }

/* ── Wider screens ────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sf-cyber__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-cyber__advs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-bands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-facts--stack { grid-template-columns: minmax(0, 1fr); }
  .sf-endpoints li { grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr) auto; grid-template-areas: "m c d b"; }
}
@media (min-width: 900px) {
  .page-layout .sf-cyber, .sf-cyber { padding-top: 6.5rem; }
  .sf-cyber__hero { padding: 2.4rem 2.4rem 1.8rem; border-radius: 28px; }
  .sf-cyber__hero-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
  .sf-cyber__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
  .sf-cyber__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-cyber__duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-cyber__advs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-cyber__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.8rem 2rem; }
  .sf-detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .sf-cyber__hero--compact .sf-cyber__hero-in { grid-template-columns: minmax(0, 1fr) auto; }
  .sf-cyber__cta--side { grid-template-columns: minmax(0, 1fr); }
}

/* ── Dark theme ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .sf-cyber {
  --cy-bg: #0b0d12;
  --cy-card: #11141b;
  --cy-line: #232a37;
  --cy-text: #e7e9ee;
  --cy-muted: #9aa2b1;
  --cy-accent: #818cf8;
  --cy-critical: #f87171;
  --cy-high: #fb923c;
  --cy-medium: #fbbf24;
  --cy-low: #4ade80;
}
[data-bs-theme="dark"] .sf-badge--kev { background: rgba(239, 68, 68, .16); color: #fca5a5; }
[data-bs-theme="dark"] .sf-due { background: #1f2937; color: #d1d5db; }
[data-bs-theme="dark"] .sf-due--soon { background: rgba(234, 179, 8, .16); color: #fde68a; }
[data-bs-theme="dark"] .sf-due--late { background: rgba(239, 68, 68, .16); color: #fca5a5; }
[data-bs-theme="dark"] .sf-vcard__link:hover { border-color: #7f1d1d; }
[data-bs-theme="dark"] .sf-detail__kev { background: rgba(239, 68, 68, .07); border-color: rgba(239, 68, 68, .3); }
[data-bs-theme="dark"] .sf-score { color: #0b0d12; }
