/* CyberCalm Scanner guide: [cybercalm_scanner_guide]. Plain HTML in the theme, so every rule is scoped to .ccs-guide.
   Body font is inherited from the theme; monospace accents use the system stack.
   Rules for h2/h3/ul/li/a start with "body .ccs-guide" to outrank the theme's post-content styles
   (Foxiz: .rbct a, .rbct ul/li, .medium-entry-size .rbct h2). */

/* ═══ LIGHT (default) ═══ */
.ccs-guide{
  --ccs-text:#1f1f1f;--ccs-dim:#4a4a4a;--ccs-muted:#6b6b6b;--ccs-heading:#111;
  --ccs-accent:#2f6fed;--ccs-accent-hover:#2559c7;
  --ccs-card:#fff;--ccs-border:#e6e6e3;--ccs-panel-card:#fff;
  /* Panels: same light blue-grey as the box around the widget's scan field (scanner.css --box-bg/--box-border). */
  --ccs-panel:#f8fafc;--ccs-panel-border:#e2e8f0;
  --ccs-accent-soft:#eaf1fe;
  /* Same colors and thresholds as the score ring of the widget (scanner.css, --s-good/--s-fair/--s-medium/--s-low). */
  --ccs-green:#16a34a;--ccs-yellow:#ca8a04;--ccs-orange:#ea580c;--ccs-red:#dc2626;
  /* Stripes of the risk-sign cards = icon colors of the widget's banners (scanner.css --sig-*-icon, light).
     build.sh refuses to build when they differ. */
  --ccs-sig-danger:#dc2626;--ccs-sig-warn:#d97706;--ccs-sig-info:#3b82f6;
  --ccs-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ═══ DARK: the theme sets data-theme="dark" on <body> ═══ */
body[data-theme="dark"] .ccs-guide{
  --ccs-text:#cbd5e1;--ccs-dim:#a3b1c2;--ccs-muted:#94a3b8;--ccs-heading:#f1f5f9;
  --ccs-accent:#60a5fa;--ccs-accent-hover:#93c5fd;
  --ccs-card:#1e293b;--ccs-border:#334155;--ccs-panel:#172131;--ccs-panel-card:#1e293b;--ccs-panel-border:#263347;
  --ccs-accent-soft:rgba(96,165,250,.14);
  /* scanner.css --sig-*-icon, dark */
  --ccs-sig-danger:#f2675c;--ccs-sig-warn:#f3b544;--ccs-sig-info:#8fbcee;
}

.ccs-guide{max-width:880px;margin:0 auto;color:var(--ccs-text);font-size:16px;line-height:1.6}
/* No single word left alone on the last line of any paragraph of the guide (1.0.30). */
body .ccs-guide p,body .ccs-guide li,body .ccs-guide dd,body .ccs-guide summary{text-wrap:pretty}
.ccs-guide *,.ccs-guide *::before,.ccs-guide *::after{box-sizing:border-box}
body .ccs-guide p,body .ccs-guide h2,body .ccs-guide h3,body .ccs-guide ul{margin:0;padding:0}
body .ccs-guide a:not(.ccs-guide__button):not(.ccs-guide__post){color:var(--ccs-accent);font-weight:600;font-style:normal;text-decoration:none}
body .ccs-guide a:not(.ccs-guide__button):not(.ccs-guide__post):hover{color:var(--ccs-accent-hover);text-decoration:underline}

.ccs-guide__section{padding-top:72px}
.ccs-guide__section:first-child{padding-top:48px}
.ccs-guide__num{font-family:var(--ccs-mono);font-size:12px;color:var(--ccs-accent);margin-bottom:12px}
body .ccs-guide h2.ccs-guide__title{font-size:clamp(26px,4vw,34px);line-height:1.2;letter-spacing:-.02em;font-weight:800;color:var(--ccs-heading);margin:0 0 14px}
body .ccs-guide h2.ccs-guide__title--small{font-size:clamp(22px,3vw,26px);margin:0}
.ccs-guide .ccs-guide__lead{font-size:17px;line-height:1.6;color:var(--ccs-dim);max-width:640px;margin-bottom:32px}
/* Sections without a lead paragraph get the same space under the title. */
body .ccs-guide .ccs-guide__title + .ccs-guide__faq{margin-top:28px}

/* Subsections inside 01 and 02 */
body .ccs-guide h3.ccs-guide__subtitle{font-size:19px;font-weight:800;color:var(--ccs-heading);margin:36px 0 14px}
body .ccs-guide .ccs-guide__lead + h3.ccs-guide__subtitle{margin-top:0}
/* Full width of the card grid below (1.0.30): a line under a group title, not a narrow paragraph. */
.ccs-guide .ccs-guide__sublead{font-size:15px;line-height:1.6;color:var(--ccs-dim);margin:-4px 0 16px}

/* 01 cards: each card has its own border, so empty cells in the last row show the page background.
   Risk-sign cards have a stripe on the left in the color of the widget's banner. */
/* Two columns (8 cards = 4 rows, 4 cards = 2 rows, no card alone in a row); one on phones (owner's decision, 1.0.18). */
.ccs-guide__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ccs-guide__card{position:relative;background:var(--ccs-card);border:1px solid var(--ccs-border);border-radius:14px;padding:22px;overflow:hidden}
.ccs-guide__card--danger,.ccs-guide__card--warn,.ccs-guide__card--info{padding-left:26px}
.ccs-guide__card--danger::before,.ccs-guide__card--warn::before,.ccs-guide__card--info::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--ccs-stripe)}
.ccs-guide__card--danger{--ccs-stripe:var(--ccs-sig-danger)}
.ccs-guide__card--warn{--ccs-stripe:var(--ccs-sig-warn)}
.ccs-guide__card--info{--ccs-stripe:var(--ccs-sig-info)}
.ccs-guide__card-name{font-size:16px;font-weight:700;line-height:1.35;color:var(--ccs-heading);margin-bottom:8px}
.ccs-guide__card-text{font-size:14px;line-height:1.55;color:var(--ccs-dim)}
.ccs-guide__group-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin:36px 0 14px}
body .ccs-guide .ccs-guide__group-head h3.ccs-guide__subtitle{margin:0}
body .ccs-guide .ccs-guide__lead + .ccs-guide__group-head{margin-top:0}
/* Color legend of the risk-sign cards: dots in the stripe colors */
body .ccs-guide ul.ccs-guide__dots{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px}
body .ccs-guide .ccs-guide__dot{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ccs-dim)}
.ccs-guide__dot::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ccs-stripe)}
.ccs-guide__dot::marker{content:none}
.ccs-guide__dot--danger{--ccs-stripe:var(--ccs-sig-danger)}
.ccs-guide__dot--warn{--ccs-stripe:var(--ccs-sig-warn)}
.ccs-guide__dot--info{--ccs-stripe:var(--ccs-sig-info)}
/* Technical names as tags */
body .ccs-guide ul.ccs-guide__tags{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
body .ccs-guide .ccs-guide__tags li{list-style:none;margin:0;font-family:var(--ccs-mono);font-size:12px;line-height:1.4;
  padding:3px 8px;border-radius:6px;background:var(--ccs-panel);border:1px solid var(--ccs-panel-border);color:var(--ccs-dim)}
.ccs-guide__tags li::before,.ccs-guide__tags li::marker{content:none}

/* 02 score bands */
.ccs-guide__bands{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.ccs-guide__band{position:relative;background:var(--ccs-card);border:1px solid var(--ccs-border);border-radius:14px;padding:26px 22px 22px;overflow:hidden}
.ccs-guide__band::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--ccs-band)}
.ccs-guide__band--good{--ccs-band:var(--ccs-green)}
.ccs-guide__band--fair{--ccs-band:var(--ccs-yellow)}
.ccs-guide__band--medium{--ccs-band:var(--ccs-orange)}
.ccs-guide__band--low{--ccs-band:var(--ccs-red)}
.ccs-guide__band-range{font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--ccs-heading);margin-bottom:10px;line-height:1.2}
.ccs-guide__band-text{font-size:14px;line-height:1.55;color:var(--ccs-dim)}
.ccs-guide .ccs-guide__disclaimer{margin-top:14px;font-size:14px;line-height:1.55;color:var(--ccs-muted)}

.ccs-guide__panel{margin-top:28px;background:var(--ccs-panel);border:1px solid var(--ccs-panel-border);border-radius:14px;padding:28px}
body .ccs-guide h3.ccs-guide__panel-title{font-size:19px;font-weight:800;color:var(--ccs-heading);margin:0 0 10px}
.ccs-guide .ccs-guide__panel-text{font-size:15px;line-height:1.6;color:var(--ccs-dim);margin-bottom:20px}
.ccs-guide__reasons{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.ccs-guide__reason{background:var(--ccs-panel-card);border:1px solid var(--ccs-panel-border);border-radius:10px;padding:18px}
.ccs-guide__reason-title{font-weight:700;font-size:15px;color:var(--ccs-heading);margin-bottom:6px}
.ccs-guide__reason-text{font-size:14px;line-height:1.55;color:var(--ccs-dim)}

.ccs-guide__panel--compact{margin-top:12px}
.ccs-guide__panel--compact .ccs-guide__panel-text{margin-bottom:0}
.ccs-guide__recheck{margin-top:12px;display:flex;gap:20px;align-items:center;border:1px solid var(--ccs-border);border-radius:14px;padding:20px 28px;background:var(--ccs-card)}
.ccs-guide__recheck-badge{flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:50%;background:var(--ccs-accent-soft);color:var(--ccs-accent)}
.ccs-guide__recheck-icon{display:block}
.ccs-guide__recheck-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px;font-size:16px;line-height:1.4}
.ccs-guide__recheck-label{font-family:var(--ccs-mono);font-size:13px;font-weight:600;color:var(--ccs-accent);background:var(--ccs-accent-soft);border-radius:6px;padding:2px 8px;white-space:nowrap}
.ccs-guide__recheck p{font-size:15px;line-height:1.6;color:var(--ccs-dim)}
.ccs-guide__recheck strong{color:var(--ccs-heading);font-weight:700}

/* 03 not checked: pairs "name — explanation" */
body .ccs-guide dl.ccs-guide__pairs{margin:0;border-top:1px solid var(--ccs-border)}
.ccs-guide__pair{display:grid;grid-template-columns:220px 1fr;gap:4px 24px;padding:16px 0;border-bottom:1px solid var(--ccs-border)}
body .ccs-guide .ccs-guide__pair dt{margin:0;font-weight:700;font-size:15px;line-height:1.5;color:var(--ccs-heading)}
body .ccs-guide .ccs-guide__pair dd{margin:0;font-size:15px;line-height:1.55;color:var(--ccs-dim)}
.ccs-guide .ccs-guide__article{margin-top:20px;font-size:16px;color:var(--ccs-dim)}

/* 04 FAQ */
.ccs-guide__faq{display:flex;flex-direction:column;gap:8px}
.ccs-guide__qa{background:var(--ccs-card);border:1px solid var(--ccs-border);border-radius:12px}
.ccs-guide__qa summary{list-style:none;cursor:pointer;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-weight:700;font-size:16px;color:var(--ccs-heading)}
.ccs-guide__qa summary::-webkit-details-marker{display:none}
.ccs-guide__qa summary::marker{content:""}
.ccs-guide__qa summary:focus-visible{outline:2px solid var(--ccs-accent);outline-offset:2px;border-radius:12px}
.ccs-guide__plus{position:relative;flex:0 0 14px;width:14px;height:14px}
.ccs-guide__plus::before,.ccs-guide__plus::after{content:"";position:absolute;background:var(--ccs-accent);border-radius:1px}
.ccs-guide__plus::before{left:0;right:0;top:6px;height:2px}
.ccs-guide__plus::after{top:0;bottom:0;left:6px;width:2px;transition:transform .2s}
.ccs-guide__qa[open] .ccs-guide__plus::after{transform:scaleY(0)}
.ccs-guide .ccs-guide__qa p{padding:0 24px 20px;font-size:15px;line-height:1.6;color:var(--ccs-dim)}

/* Telegram block (texts from the widget's call-to-action settings) */
.ccs-guide__telegram{margin-top:72px;background:var(--ccs-panel);border:1px solid var(--ccs-panel-border);border-radius:14px;padding:32px 28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px}
.ccs-guide .ccs-guide__telegram-title{font-size:19px;font-weight:800;line-height:1.35;color:var(--ccs-heading);max-width:480px}
/* A short two-line title: even lines (pretty leaves "онлайн-загрози?" alone on the second line). */
body .ccs-guide p.ccs-guide__telegram-title{text-wrap:balance}
body .ccs-guide a.ccs-guide__button{text-decoration:none;display:inline-block;background:var(--ccs-accent);color:#fff;font-weight:600;font-size:15px;padding:12px 22px;border-radius:10px;white-space:nowrap}
body .ccs-guide a.ccs-guide__button:hover{background:var(--ccs-accent-hover);color:#fff;text-decoration:none}
body[data-theme="dark"] .ccs-guide a.ccs-guide__button,body[data-theme="dark"] .ccs-guide a.ccs-guide__button:hover{color:#0f172a}

/* Latest articles */
.ccs-guide__posts{padding-top:56px}
.ccs-guide__posts-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:20px}
body .ccs-guide a.ccs-guide__more{font-size:14px}
.ccs-guide__posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
body .ccs-guide a.ccs-guide__post{text-decoration:none;display:flex;flex-direction:column;gap:8px;background:var(--ccs-card);border:1px solid var(--ccs-border);border-radius:14px;overflow:hidden;color:var(--ccs-heading);padding-bottom:18px}
body .ccs-guide a.ccs-guide__post:hover{text-decoration:none;border-color:var(--ccs-accent)}
.ccs-guide__post-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--ccs-panel)}
.ccs-guide .ccs-guide__post-img{display:block;width:100%;height:100%;object-fit:cover;margin:0}
.ccs-guide__post-date{font-family:var(--ccs-mono);font-size:12px;color:var(--ccs-muted);padding:0 18px}
.ccs-guide__post-thumb + .ccs-guide__post-date{padding-top:6px}
.ccs-guide__post:not(:has(.ccs-guide__post-thumb)) .ccs-guide__post-date{padding-top:18px}
.ccs-guide__post-title{font-size:16px;font-weight:700;line-height:1.4;padding:0 18px}

@media (max-width:600px){
  .ccs-guide__section{padding-top:56px}
  .ccs-guide__panel{padding:22px 18px}
  .ccs-guide__pair{grid-template-columns:1fr}
  .ccs-guide__cards{grid-template-columns:1fr}
  .ccs-guide__recheck{gap:14px;padding:18px;align-items:flex-start}
  .ccs-guide__recheck-badge{width:44px;height:44px}
  .ccs-guide__qa summary{padding:18px}
  .ccs-guide .ccs-guide__qa p{padding:0 18px 18px}
  .ccs-guide__telegram{margin-top:56px;padding:24px 20px}
}
