/* =========================================================
   Security Help Guide – Guide / article pages
   Loaded after style.css and responsive.css
   ========================================================= */

/* ---------------- Hero ---------------- */
.art-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 80% at 88% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 40% 60% at 70% 110%, rgba(196,202,212,.45), rgba(196,202,212,0) 70%),
    linear-gradient(100deg, #ffffff 0%, #f6f7f9 40%, #e9ecf1 100%);
  border-bottom: 1px solid #eceef2;
}
.art-hero::after {
  /* soft desk surface under the laptop */
  content: "";
  position: absolute;
  right: -10%;
  bottom: 0;
  width: 70%;
  height: 40%;
  background: radial-gradient(ellipse 60% 70% at 62% 100%, rgba(208, 213, 222, .75), rgba(208, 213, 222, 0) 72%);
  pointer-events: none;
}

.crumbs { position: relative; z-index: 2; padding: 16px 0 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li { font-size: 13.5px; font-weight: 500; color: var(--navy); }
.crumbs a { color: var(--navy); transition: color .2s; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs__sep { width: 11px; height: 11px; color: #6b7385; }

.art-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: 20px;
  padding-bottom: 26px;
}
.art-title {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.3px;
  color: var(--navy);
}
.art-title sup { font-size: 0.45em; position: relative; top: -0.15em; }

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.art-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
}
.art-meta li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid #9aa2b1; }
.art-meta svg { width: 15px; height: 15px; }

.art-intro {
  max-width: 640px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* Laptop illustration */
.art {
  position: relative;
  height: 300px;
  perspective: 1400px;
}
.art-laptop {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 440px;
  transform: rotateY(-18deg) rotateZ(-2deg);
  transform-origin: right center;
}
.art-laptop__lid {
  height: 262px;
  margin-left: 30px;
  padding: 11px 11px 14px;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(160deg, #3a3d44, #121317 40%, #1c1d22);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .22), inset 0 0 0 2px #50535b;
}
.art-laptop__screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
}
.art-laptop__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 55%, rgba(255,255,255,.14) 55.5%, rgba(255,255,255,.04) 64%, transparent 64.5%);
  pointer-events: none;
}
.art-laptop__screen--red {
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255,90,90,.35), transparent 55%),
    linear-gradient(125deg, #d0161e 0%, #a90d14 55%, #7d070d 100%);
}
.art-laptop__screen--white {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f7 100%);
}
.art-svg { position: relative; width: 74%; height: auto; }
.art-laptop__base {
  height: 18px;
  border-radius: 3px 3px 14px 14px;
  background: linear-gradient(180deg, #eceef1 0%, #c6c8ce 55%, #9fa2a9 100%);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}
.art-coins {
  position: absolute;
  left: 4px;
  bottom: -6px;
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
}

/* ---------------- Body layout ---------------- */
.art-body { padding: 26px 0 40px; }
.art-body__grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

/* Table of contents */
.toc {
  position: sticky;
  top: 106px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #f5f7fb;
  box-shadow: 0 4px 14px rgba(20, 27, 51, .05);
  overflow: hidden;
}
.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  border-bottom: 1px solid #dde2ea;
  background: #eef2f8;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  text-align: left;
  cursor: default;
}
.toc__caret { display: none; width: 18px; height: 18px; transition: transform .25s; }
.toc__list { margin: 0; padding: 4px 0; list-style: none; }
.toc__list li + li { border-top: 1px solid #e3e7ee; }
.toc__list a {
  display: flex;
  gap: 10px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.toc__num { min-width: 18px; }
.toc__list a:hover { color: var(--red); background: #fff; }
.toc__list a.is-active { color: var(--red); background: #fff; border-left-color: var(--red); font-weight: 600; }

/* Content */
.art-section { scroll-margin-top: 110px; }
.art-section + .art-section { margin-top: 30px; }
.art-section h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
}
.art-section h2 sup { font-size: 0.5em; }
.art-section p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.art-section a:not(.faq__q) { color: var(--red); font-weight: 600; }
.art-section a:not(.faq__q):hover { text-decoration: underline; }
.art-section strong { color: var(--navy); }

.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 3px 0 3px 40px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.steps li + li { margin-top: 8px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(215, 20, 28, .25);
}

.checks { margin: 14px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--text); }
.checks li + li { margin-top: 9px; }
.checks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--red); }

.bullets { margin: 14px 0 0; padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--text); }
.bullets li + li { margin-top: 8px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1.5px solid #f2b8bb;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff6f6, #fdeced);
}
.tip svg { width: 26px; height: 26px; margin-top: 1px; color: var(--red); }
.tip p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.tip strong { color: var(--red); }

.art-section .faq__list { margin-top: 16px; }
.art-section .faq__a p { margin-top: 0; }

/* Disclaimer bar */
.art-disclaimer {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding: 18px 28px;
  border: 1.5px solid #f3c2c4;
  border-radius: 12px;
  background: linear-gradient(100deg, #fff 0%, #fff4f4 45%, #fde8e9 100%);
}
.art-disclaimer svg { width: 40px; height: 40px; color: var(--red); }
.art-disclaimer p { font-size: 16px; line-height: 1.45; color: var(--text); }
.art-disclaimer strong { color: var(--red); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .art-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .art-title { font-size: 40px; }
  .art { height: 250px; }
  .art-laptop { right: 16px; transform-origin: right top; transform: rotateY(-18deg) rotateZ(-2deg) scale(.8); }
  .art-body__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 960px) {
  /* hero: illustration moves under the text, smaller */
  .art-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .art-title .d-br { display: none; }
  .art { display: none; }
  .art-hero::after { display: none; }

  /* TOC becomes a collapsible card above the content */
  .art-body__grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc__head { cursor: pointer; }
  .toc__caret { display: block; }
  .toc.is-collapsed .toc__list { display: none; }
  .toc.is-collapsed .toc__head { border-bottom: 0; }
  .toc.is-collapsed .toc__caret { transform: rotate(-90deg); }
}

@media (max-width: 640px) {
  .crumbs { padding: 12px 0 10px; }
  .crumbs li { font-size: 12.5px; }
  .art-hero__grid { padding-bottom: 20px; }
  .art-title { font-size: clamp(25px, 7.6vw, 32px); line-height: 1.12; letter-spacing: -0.8px; }
  .art-meta { gap: 6px 14px; margin-top: 12px; }
  .art-meta li { font-size: 12.5px; }
  .art-meta li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .art-intro { margin-top: 12px; font-size: 15px; }

  .art-body { padding: 18px 0 28px; }
  .art-section { scroll-margin-top: 80px; }
  .toc__head { padding: 13px 16px; font-size: 16px; }
  .toc__list a { padding: 10px 16px; font-size: 14.5px; }
  .art-section + .art-section { margin-top: 26px; }
  .art-section h2 { font-size: clamp(19px, 5.6vw, 22px); }
  .art-section p,
  .steps li,
  .checks li,
  .bullets li { font-size: 15px; }
  .steps li { padding-left: 36px; }
  .steps li::before { width: 24px; height: 24px; font-size: 13px; }
  .tip { gap: 10px; padding: 12px 14px; }
  .tip svg { width: 22px; height: 22px; }
  .tip p { font-size: 14px; }
  .art-section .faq__list { gap: 6px; }

  .art-disclaimer { align-items: flex-start; gap: 12px; margin-top: 28px; padding: 14px 16px; }
  .art-disclaimer svg { width: 30px; height: 30px; }
  .art-disclaimer p { font-size: 14px; }
}
