/* CyberIL – accessible (IS 5568 / WCAG 2.x AA), RTL-first, no external fonts (privacy + performance) */
:root{
  --bg:#f6f8fb; --surface:#ffffff; --text:#0f1b2a; --muted:#4a5a6e; --border:#d6dee8;
  --brand:#0b5cad; --brand-strong:#083f78; --accent:#0e7c66; --danger:#b42318; --danger-bg:#fde8e7;
  --tag-bg:#e8eef6; --tag-text:#1c3d63; --focus:#c2410c; --header:#0b1a2b; --header-text:#f3f6fa;
  --radius:12px; --shadow:0 1px 2px rgba(15,27,42,.06),0 4px 14px rgba(15,27,42,.05);
  --font:system-ui,-apple-system,"Segoe UI",Arial,"Noto Sans Hebrew","Arial Hebrew",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0b1220; --surface:#121b2c; --text:#e8eef6; --muted:#a9b6c7; --border:#26344a;
    --brand:#7ab8ff; --brand-strong:#a8d0ff; --accent:#5fd3b5; --danger:#ff9d94; --danger-bg:#3a1714;
    --tag-bg:#1c2a40; --tag-text:#c7dcf5; --focus:#ffb26b; --header:#060c16; --header-text:#f3f6fa;
    --shadow:none; color-scheme:dark;
  }
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:1.0625rem;line-height:1.65}
img,svg{max-width:100%}
a{color:var(--brand);text-underline-offset:.18em}
a:hover{color:var(--brand-strong)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
.wrap{max-width:1180px;margin-inline:auto;padding-inline:16px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;inset-inline-start:8px;top:-60px;z-index:100;background:var(--surface);color:var(--text);padding:10px 16px;border-radius:8px;font-weight:700;border:2px solid var(--focus)}
.skip-link:focus{top:8px}

/* header */
.site-header{background:var(--header);color:var(--header-text)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.brand{display:flex;align-items:center;padding:6px 0;border-radius:6px}
.brand img{display:block;height:40px;width:auto}
@media (max-width:420px){.brand img{height:32px}}
.menu{display:flex;gap:4px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.menu a{display:block;color:var(--header-text);text-decoration:none;padding:10px 12px;border-radius:8px;min-height:44px}
.menu a:hover{background:rgba(255,255,255,.1);color:#fff}
.menu a[aria-current=page]{background:rgba(111,195,255,.18);box-shadow:inset 0 -3px 0 #6fc3ff}
.site-header :focus-visible{outline-color:#ffb26b}
.menu-btn{display:none;background:transparent;color:var(--header-text);border:1px solid rgba(255,255,255,.4);border-radius:8px;padding:8px 14px;font:inherit;min-height:44px;cursor:pointer}
@media (max-width:760px){
  .js .menu-btn{display:block}
  .js .menu{display:none;position:absolute;inset-inline:0;top:64px;background:var(--header);flex-direction:column;padding:8px 16px 16px;z-index:50}
  .js .menu.open{display:flex}
  .site-header{position:relative}
}

/* main */
main{padding-block:28px 48px;outline:none}
h1{font-size:clamp(1.6rem,3.2vw,2.2rem);line-height:1.25;margin:.2em 0 .4em}
h2{font-size:1.3rem;line-height:1.35;margin:1.4em 0 .5em}
h3{font-size:1.1rem}
.lead{font-size:1.15rem;color:var(--muted);max-width:68ch;margin-top:0}
.small{font-size:.95rem;color:var(--muted)}
.updated{font-size:.95rem;color:var(--muted)}
.hero{padding:8px 0 12px;border-bottom:1px solid var(--border);margin-bottom:20px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.section-head h2{margin-top:0}

.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}
@media (max-width:980px){.grid-main{grid-template-columns:1fr}}

.cards{display:grid;gap:14px}
.cards-wide{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
@media (max-width:420px){.cards-wide{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow)}
.card-title{font-size:1.08rem;line-height:1.4;margin:0 0 6px;text-align:start}
.card-title a{color:var(--text);text-decoration:none}
.card-title a:hover{color:var(--brand);text-decoration:underline}
.summary{color:var(--muted);font-size:.97rem;margin:0 0 8px}
.meta{font-size:.9rem;color:var(--muted);margin:0}
.src{font-weight:600;color:var(--text)}
.tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:10px 0 0}
.tag{background:var(--tag-bg);color:var(--tag-text);font-size:.82rem;padding:2px 10px;border-radius:999px}
.tag-ransomware,.tag-vuln{background:var(--danger-bg);color:var(--danger)}

.sidebar{display:grid;gap:18px}
.box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px}
.box h2{margin-top:0;font-size:1.15rem}
.kev-mini,.guide-list{list-style:none;padding:0;margin:0}
.kev-mini li{padding:8px 0;border-bottom:1px solid var(--border);font-size:.95rem}
.kev-mini li:last-child{border:0}
.kev-mini a{font-weight:600;font-family:ui-monospace,Consolas,monospace}
.guide-list li{padding:8px 0;border-bottom:1px solid var(--border)}
.guide-list li:last-child{border:0}
.guide-list p{margin:2px 0 0;font-size:.92rem;color:var(--muted)}
.more{display:inline-block;margin-top:8px;font-weight:600}
.pill-danger{display:inline-block;background:var(--danger-bg);color:var(--danger);font-size:.8rem;font-weight:700;padding:1px 8px;border-radius:999px}
.empty{color:var(--muted)}

/* filters */
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;margin:18px 0 8px}
.field{display:flex;flex-direction:column;gap:4px;flex:1 1 180px}
label{font-weight:600;font-size:.95rem}
input,select,button{font:inherit;color:var(--text);background:var(--surface);border:1px solid #7b8798;border-radius:8px;padding:8px 10px;min-height:44px}
.btn-secondary{cursor:pointer;padding-inline:18px}
.btn-secondary:hover{background:var(--tag-bg)}
.count{color:var(--muted);margin:8px 0 14px}
[hidden]{display:none!important}

/* table */
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:16px 0}
table{border-collapse:collapse;width:100%;font-size:.96rem}
caption{text-align:start;padding:12px 14px;font-weight:700}
th,td{padding:10px 14px;border-top:1px solid var(--border);text-align:start;vertical-align:top}
thead th{background:var(--tag-bg);color:var(--tag-text);border-top:0}
tbody th{font-family:ui-monospace,Consolas,monospace;white-space:nowrap}
@media (max-width:640px){.hide-sm{display:none}}

/* prose */
.prose{max-width:76ch}
.prose h2{margin-top:1.8em}
.prose li{margin:.3em 0}
.prose table{margin:12px 0}
.prose blockquote,.note{border-inline-start:4px solid var(--accent);background:var(--surface);margin:16px 0;padding:10px 16px;border-radius:0 8px 8px 0}
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 8px;font-size:.92rem;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-inline-end:6px}
[dir=rtl] .crumbs li+li::before{content:"‹"}

/* ads – clearly labelled, never interleaved without label */
.ad{margin:18px auto;max-width:1180px;padding-inline:16px;text-align:center}
.ad-label{display:block;font-size:.75rem;color:var(--muted);margin-bottom:4px}
.sidebar .ad{padding:0}
.ad ins.adsbygoogle{display:block}

/* footer */
.site-footer{border-top:1px solid var(--border);background:var(--surface);padding:22px 0;font-size:.95rem;color:var(--muted)}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.footer-inner p{margin:0}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:0;padding:0}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.tag,.pill-danger{border:1px solid CanvasText}}
@media print{.site-header nav,.ad,.filters,.site-footer{display:none}}

/* ---------- accessibility toolbar ---------- */
.a11y{position:fixed;left:16px;bottom:16px;z-index:200}
.a11y-toggle{width:52px;height:52px;border-radius:50%;background:#0b5cad;color:#fff;border:2px solid #fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.3);padding:0}
.a11y-toggle:hover{background:#083f78}
.a11y-panel{position:absolute;left:0;bottom:64px;width:min(300px,calc(100vw - 32px));background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.25);padding:14px}
.a11y-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.a11y-head h2{font-size:1.1rem;margin:0}
.a11y-close{min-height:40px;min-width:40px;font-size:1.4rem;line-height:1;cursor:pointer;padding:0}
.a11y-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-list button{width:100%;min-height:48px;cursor:pointer;font-size:.95rem;text-align:center}
.a11y-list button[aria-pressed=true]{background:var(--brand);color:#fff;border-color:var(--brand)}
@media (prefers-color-scheme:dark){.a11y-list button[aria-pressed=true]{color:#0b1220}}
.a11y-list li:last-child{grid-column:1/-1}
.a11y-foot{margin:10px 0 0;font-size:.92rem}
@media print{.a11y{display:none}}

/* user preferences set from the toolbar */
html.a11y-links a{text-decoration:underline!important;text-decoration-thickness:2px!important;outline:1px dashed currentColor;outline-offset:2px}
html.a11y-font body,html.a11y-font input,html.a11y-font select,html.a11y-font button{font-family:Arial,"Arial Hebrew",Verdana,sans-serif!important}
html.a11y-spacing body{letter-spacing:.06em;word-spacing:.16em;line-height:1.9}
html.a11y-spacing p{margin-bottom:1.6em}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-contrast{--bg:#000;--surface:#000;--text:#fff;--muted:#fff;--border:#fff;--brand:#ffeb3b;--brand-strong:#fff59d;--accent:#ffeb3b;
  --danger:#ff8a80;--danger-bg:#000;--tag-bg:#000;--tag-text:#fff;--focus:#00e5ff;--header:#000;--header-text:#fff;--shadow:none;color-scheme:dark}
html.a11y-contrast .tag,html.a11y-contrast .pill-danger,html.a11y-contrast input,html.a11y-contrast select,html.a11y-contrast button{border:1px solid #fff}
html.a11y-contrast .card-title a{color:#ffeb3b}
html.a11y-contrast .a11y-list button[aria-pressed=true]{background:#ffeb3b;color:#000}
