/* BitFire Malware Scanner guide — page-specific components.
   Shared documentation structure, typography, navigation, tables,
   callouts, FAQ, author, and CTA styles come from enterprise-docs.css. */

.malware-hero h1 { max-width: 900px; }
.malware-summary { border-color: rgba(255, 148, 112, 0.25); }
.malware-summary .recommendation-label { color: #ffb085; }

.malware-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr auto) 1fr;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(167, 210, 233, 0.18);
  border-radius: 20px;
  background: rgba(10, 28, 45, 0.8);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
}

.malware-path > div {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: center;
  padding: 21px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.malware-path > div:first-child { background: rgba(91, 173, 218, 0.08); }
.malware-path > div > span { position: absolute; top: 14px; right: 15px; color: #577284; font-weight: 700; font-family: ui-monospace, monospace; }
.malware-path .icon { width: 22px; margin-bottom: 15px; color: #5eb9e5; }
.malware-path strong,
.malware-path small { display: block; }
.malware-path strong { color: #e5f1f7; }
.malware-path small { margin-top: 3px; color: #738c9c; }
.malware-path > i { padding: 0 9px; color: #456276; font-style: normal; }

.malware-overview-preview { margin-top: 30px; }
.malware-overview-preview > a { display: block; }
.malware-overview-preview img { width: 100%; height: auto; }
.malware-overview-preview figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.malware-overview-preview figcaption a { flex: 0 0 auto; color: #87c9e9; font-weight: 800; }
.malware-overview-preview figcaption a:hover { color: #bce8fb; }

.malware-intro { scroll-margin-top: var(--nav-height); }
.malware-intro .intro-grid { align-items: center; margin-bottom: 0; }
.backup-note { display: grid; grid-template-columns: 31px 1fr; gap: 13px; margin-top: 27px; padding: 20px; border: 1px solid #ecd4ad; border-radius: 15px; background: #fff9ef; }
.backup-note > .icon { width: 22px; color: #c47e1d; }
.backup-note strong { color: #604721; }
.backup-note p { margin: 4px 0 0; color: #786547; }
.malware-checklist { margin: 0; }
.malware-body { border-top: 1px solid #e1e8ed; }

.subsection-title { margin: 38px 0 15px; color: #1e394c; letter-spacing: -0.02em; }
.body-copy { margin: 21px 0 0; color: #5c7180; line-height: 1.72; }
.body-copy a,
.guidance a,
.warning-box a,
.malware-faq a { color: #1477aa; font-weight: 800; }
.body-copy code,
.step-list code,
.glossary-grid code { padding: 2px 5px; border-radius: 5px; color: #176f9e; background: #eef6fa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.step-list { overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.step-list > article { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 27px 28px; border-bottom: 1px solid #e1e8ed; }
.step-list > article:last-child { border-bottom: 0; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #cfe0e9; border-radius: 12px; color: #197bad; background: #f1f8fb; font-weight: 800; font-family: ui-monospace, monospace; }
.step-list h3 { margin-bottom: 7px; color: #183246; }
.step-list p { margin: 0; color: #5d7180; }
.step-list strong { color: #29485b; }
.step-list a { color: #1477aa; font-weight: 800; }
.compact-steps > article { padding-block: 22px; }

.plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plan-cards article { padding: 26px; border: 1px solid #dbe4ea; border-radius: 16px; }
.plan-cards .plan-pro { color: #e5f1f7; border-color: #173c57; background: #0b2033; }
.plan-cards small { display: block; margin-bottom: 25px; color: #218bc9; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.plan-cards .plan-pro small { color: #65bce5; }
.plan-cards strong { display: block; margin-bottom: 8px; color: #233e50; }
.plan-cards .plan-pro strong { color: #e6f2f8; }
.plan-cards p { margin: 0; color: #647785; }
.plan-cards .plan-pro p { color: #91a8b6; }
.guidance ol { display: grid; gap: 7px; margin: 9px 0 0; padding-left: 20px; }
.guidance p { line-height: 1.7; }

.scan-explainer { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 17px; }
.scan-explainer article { min-height: 240px; padding: 24px; border-right: 1px solid #e1e8ed; }
.scan-explainer article:last-child { border-right: 0; background: #f3f9fc; }
.scan-explainer span { display: block; margin-bottom: 30px; color: #218bc9; font-weight: 850; font-family: ui-monospace, monospace; text-transform: uppercase; }
.scan-explainer .icon { width: 23px; margin-bottom: 19px; color: #218bc9; }
.scan-explainer strong { display: block; margin-bottom: 7px; color: #263e50; }
.scan-explainer p { margin: 0; color: #667a87; }

.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 15px; }
.signal-grid span { position: relative; min-height: 78px; display: flex; align-items: center; padding: 15px 13px 15px 36px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; color: #526b79; }
.signal-grid span:nth-child(4n) { border-right: 0; }
.signal-grid span:nth-last-child(-n + 4) { border-bottom: 0; }
.signal-grid span::before { position: absolute; left: 15px; content: "✓"; color: #218bc9; font-weight: 900; }

.risk-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid #dbe4ea; border-radius: 18px; list-style: none; }
.risk-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 26px; border-bottom: 1px solid #e1e8ed; }
.risk-list li:last-child { border-bottom: 0; }
.risk-list li > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #cbdfe8; border-radius: 50%; color: #197bad; background: #f2f8fb; font-family: ui-monospace, monospace; font-weight: 800; }
.risk-list small { display: block; margin-bottom: 3px; color: #218bc9; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.risk-list strong { display: block; color: #243e50; }
.risk-list p { margin: 5px 0 0; color: #617583; }
.risk-list .risk-critical { background: #fff9f5; }
.risk-list .risk-critical > span { color: #a4453f; border-color: #ebc4bf; background: #fdebe8; }
.risk-list .risk-critical small { color: #a4453f; }

.product-frame { position: relative; overflow: hidden; margin: 27px 0 0; padding: 7px; border: 1px solid #cbdce5; border-radius: 17px; background: #0b1722; box-shadow: 0 26px 65px rgba(7, 19, 34, 0.13); }
.product-frame-bar { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 11px; color: #8095a3; font-family: ui-monospace, monospace; }
.product-frame .frame-dots { display: flex; gap: 5px; }
.product-frame .frame-dots span { width: 6px; height: 6px; border-radius: 50%; background: #344957; }
.product-frame .frame-label { margin-left: auto; padding: 3px 8px; border-radius: 999px; color: #ffaaa5; background: rgba(255, 107, 103, 0.11); font-family: Inter, sans-serif; font-weight: 800; text-transform: uppercase; }
.product-frame .frame-label-active { color: #8bd8f6; background: rgba(91, 173, 218, 0.12); }
.product-frame .frame-label-success { color: #8ce7ad; background: rgba(99, 220, 145, 0.11); }
.product-frame > a { display: block; }
.product-frame img { width: 100%; height: auto; border-radius: 10px; }
.product-frame figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 11px 7px; }
.product-frame figcaption strong { color: #dbe9f1; }
.product-frame figcaption span { color: #708795; text-align: right; }

.privacy-panel { display: grid; grid-template-columns: 35px 1fr; gap: 15px; margin-top: 18px; padding: 24px; border-radius: 16px; color: #dcecf5; background: #0b2033; }
.privacy-panel > .icon { width: 25px; color: #62bde8; }
.privacy-panel strong { display: block; margin-bottom: 5px; }
.privacy-panel p { margin: 0; color: #91a8b6; }
.credit-table { margin-top: 18px; }

.action-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.action-cards article { min-height: 310px; padding: 25px; border: 1px solid #dbe4ea; border-radius: 17px; }
.action-cards article > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 45px; }
.action-cards .icon { width: 24px; }
.action-cards small { font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.action-cards h3 { margin-bottom: 9px; color: #213c4f; }
.action-cards p { margin: 0; color: #627684; }
.action-allow { color: #087047; background: #f2faf6; }
.action-repair { color: #176f9e; background: #f3f9fc; }
.action-delete { color: #a03f3a; background: #fff8f7; }

.transfer-options { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-top: 16px; border: 1px solid #dbe4ea; border-radius: 15px; }
.transfer-options article { min-height: 145px; padding: 22px; border-right: 1px solid #e1e8ed; }
.transfer-options article:last-child { border-right: 0; }
.transfer-options strong { display: block; margin-bottom: 7px; color: #263f51; }
.transfer-options p { margin: 0; color: #647784; }

.incident-panel { display: grid; grid-template-columns: 54px 1fr; gap: 21px; padding: 31px; border-radius: 19px; color: #fff2ef; background: linear-gradient(135deg, #35171c, #0b1b2c 65%); box-shadow: 0 26px 70px rgba(7, 19, 34, 0.16); }
.incident-panel > .icon { width: 37px; height: 37px; color: #ff8a81; }
.incident-panel small { display: block; margin-bottom: 5px; color: #ff9b92; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.incident-panel h3 { margin-bottom: 8px; }
.incident-panel p { max-width: 700px; margin-bottom: 20px; color: #c2aeb0; }
.incident-panel a:not(.button) { color: #ffd0ca; font-weight: 800; }
.incident-panel .button { width: fit-content; }
.recovery-explainer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.recovery-explainer article { min-height: 180px; padding: 24px; border: 1px solid #dbe4ea; border-radius: 15px; }
.recovery-explainer .icon { width: 24px; margin-bottom: 27px; color: #218bc9; }
.recovery-explainer strong { display: block; margin-bottom: 7px; color: #253f51; }
.recovery-explainer p { margin: 0; color: #647885; }
.incident-warning { border-color: #efbcb6; background: #fff6f4; }

.post-clean-grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 16px; }
.post-clean-grid span { position: relative; min-height: 70px; display: flex; align-items: center; padding: 14px 16px 14px 43px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; color: #536b79; }
.post-clean-grid span:nth-child(2n) { border-right: 0; }
.post-clean-grid span:nth-last-child(-n + 2) { border-bottom: 0; }
.post-clean-grid span::before { position: absolute; left: 17px; content: "✓"; color: #15915e; font-weight: 900; }
.account-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.account-options article { min-height: 245px; padding: 25px; border: 1px solid #dbe4ea; border-radius: 16px; }
.account-options .pro-option { color: #e6f2f8; border-color: #173c57; background: #0b2033; }
.account-options small { display: block; margin-bottom: 27px; color: #218bc9; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.account-options .pro-option small { color: #65bce5; }
.account-options .icon { width: 23px; margin-bottom: 17px; color: #218bc9; }
.account-options h3 { margin-bottom: 7px; color: #243e50; }
.account-options .pro-option h3 { color: #e6f2f8; }
.account-options p { margin: 0; color: #627684; }
.account-options .pro-option p { color: #91a8b6; }

.persistence-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 17px; }
.persistence-grid article { min-height: 200px; padding: 23px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.persistence-grid article:nth-child(3n) { border-right: 0; }
.persistence-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.persistence-grid .icon { width: 23px; margin-bottom: 30px; color: #218bc9; }
.persistence-grid strong { display: block; margin-bottom: 7px; color: #263f51; }
.persistence-grid p { margin: 0; color: #647885; }
.threat-hunter-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 42px; margin-top: 18px; padding: 30px; border-radius: 18px; color: #e8f3f9; background: #0a1e31; }
.threat-hunter-panel small { display: block; margin-bottom: 7px; color: #63bde7; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.threat-hunter-panel h3 { margin: 0; line-height: 1.2; }
.threat-hunter-panel p { color: #92a8b5; }
.threat-hunter-panel p:last-child { margin-bottom: 0; }

.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; margin: 0; border: 1px solid #dbe4ea; border-radius: 18px; }
.glossary-grid > div { min-height: 145px; padding: 23px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.glossary-grid > div:nth-child(2n) { border-right: 0; }
.glossary-grid > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.glossary-grid dt { margin-bottom: 7px; color: #213c4f; font-weight: 850; }
.glossary-grid dd { margin: 0; color: #627684; }
.malware-faq details > div { line-height: 1.7; }

@media (max-width: 1050px) {
  .malware-path > div { padding: 16px; }
  .scan-explainer article { min-height: 265px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid span:nth-child(4n) { border-right: 1px solid #e1e8ed; }
  .signal-grid span:nth-child(2n) { border-right: 0; }
  .signal-grid span:nth-last-child(-n + 4) { border-bottom: 1px solid #e1e8ed; }
  .signal-grid span:nth-last-child(-n + 2) { border-bottom: 0; }
  .action-cards article { min-height: 335px; }
}

@media (max-width: 820px) {
  .malware-path { grid-template-columns: 1fr; }
  .malware-path > div { min-height: 102px; grid-template-columns: 38px 1fr; align-items: center; column-gap: 12px; }
  .malware-path .icon { grid-row: 1 / 3; margin: 0; }
  .malware-path > div > span { top: 12px; }
  .malware-path > i { padding: 6px 0; text-align: center; transform: rotate(90deg); }
  .scan-explainer { grid-template-columns: 1fr; }
  .scan-explainer article { min-height: auto; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .scan-explainer article:last-child { border-bottom: 0; }
  .scan-explainer span { margin-bottom: 20px; }
  .action-cards { grid-template-columns: 1fr; }
  .action-cards article { min-height: 0; }
  .action-cards article > div { margin-bottom: 30px; }
  .transfer-options { grid-template-columns: 1fr; }
  .transfer-options article { min-height: 0; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .transfer-options article:last-child { border-bottom: 0; }
  .persistence-grid { grid-template-columns: repeat(2, 1fr); }
  .persistence-grid article:nth-child(3n) { border-right: 1px solid #e1e8ed; }
  .persistence-grid article:nth-child(2n) { border-right: 0; }
  .persistence-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid #e1e8ed; }
  .persistence-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .threat-hunter-panel { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .malware-path > div { min-height: 88px; }
  .malware-overview-preview { margin-top: 20px; }
  .malware-overview-preview figcaption { display: none; }
  .backup-note { grid-template-columns: 1fr; }
  .malware-checklist { padding: 25px; }
  .step-list > article { grid-template-columns: 1fr; padding: 22px 20px; }
  .plan-cards { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid span,
  .signal-grid span:nth-child(2n),
  .signal-grid span:nth-child(4n),
  .signal-grid span:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .signal-grid span:last-child { border-bottom: 0; }
  .risk-list li { grid-template-columns: 44px 1fr; gap: 13px; padding: 21px 16px; }
  .risk-list li > span { width: 40px; height: 40px; }
  .product-frame { margin-inline: -6px; padding: 5px; border-radius: 13px; }
  .product-frame .frame-label,
  .product-frame figcaption { display: none; }
  .privacy-panel { grid-template-columns: 1fr; }
  .incident-panel { grid-template-columns: 1fr; padding: 25px; }
  .incident-panel .button { width: 100%; }
  .recovery-explainer { grid-template-columns: 1fr; }
  .post-clean-grid,
  .account-options,
  .persistence-grid,
  .glossary-grid { grid-template-columns: 1fr; }
  .post-clean-grid span,
  .post-clean-grid span:nth-child(2n),
  .post-clean-grid span:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .post-clean-grid span:last-child { border-bottom: 0; }
  .account-options article { min-height: auto; }
  .persistence-grid article,
  .persistence-grid article:nth-child(2n),
  .persistence-grid article:nth-child(3n),
  .persistence-grid article:nth-last-child(-n + 2) { min-height: auto; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .persistence-grid article:last-child { border-bottom: 0; }
  .glossary-grid > div,
  .glossary-grid > div:nth-child(2n),
  .glossary-grid > div:last-child { grid-column: auto; min-height: auto; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .glossary-grid > div:last-child { border-bottom: 0; }
  .threat-hunter-panel { padding: 25px; }
}
