/* Phishing awareness walkthrough — educational simulation styles.
   Uses the tools-site theme tokens so dark and light modes both work. */

.phishing-sim-banner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.phishing-overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.35rem;
  margin: 0 0 2rem;
}

.phishing-overview-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.phishing-overview-card > p,
.phishing-figures figcaption {
  color: var(--muted);
}

.phishing-figures figure {
  margin: 0;
}

.phishing-figures img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.phishing-figures figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  text-align: left;
}

.phishing-overview-actions {
  margin-top: 1.1rem;
}

/* The overview CTA is an <a class="btn btn-primary"> inside .news-article
   (needed for the image lightbox). Article link colour would otherwise
   paint the label in --link on the accent button, which is hard to read. */
.phishing-overview-actions a.btn-primary {
  color: var(--accent-ink);
  background-color: var(--accent);
  border-color: var(--accent);
}
.phishing-overview-actions a.btn-primary:hover,
.phishing-overview-actions a.btn-primary:focus,
.phishing-overview-actions a.btn-primary:focus-visible {
  color: var(--accent-ink);
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.phish-progress-block { margin-bottom: 1.5rem; }
.phish-progress-status {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.phish-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.phish-progress li {
  margin: 0;
  padding: 0.45rem 0.25rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  border-top: 3px solid var(--border);
}
.phish-progress li.is-done { border-top-color: var(--accent); color: var(--accent-strong); }
.phish-progress li[aria-current="step"] {
  border-top-color: var(--accent-strong);
  color: var(--text);
  font-weight: 700;
}

.phish-step h1,
.phish-step h2 {
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.phish-step h1 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
.phish-step h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); }
.phish-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phish-lead { font-size: 1.05rem; }
.phish-step p { margin: 0 0 0.85rem; }

.phish-promise {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  margin: 1rem 0 0.4rem;
}
.phish-promise p { margin: 0 0 0.45rem; }
.phish-promise ul,
.phish-protect ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}
.phish-promise li,
.phish-protect li { margin: 0 0 0.4rem; }
.phish-promise li:last-child,
.phish-protect li:last-child { margin-bottom: 0; }

.phish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.phish-hint,
.phish-fineprint,
.phish-flag-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.phish-hint { margin-top: 1rem; }

.phish-stage { margin: 1.15rem 0 0; }
.phish-stage-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
}

.phish-mail,
.phish-browser {
  background: #f7f8fb;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phish-mail-meta {
  padding: 1rem 1.05rem 0.75rem;
  border-bottom: 1px solid #d5dde8;
  background: #eef2f8;
}
.phish-mail-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  align-items: start;
}
.phish-mail-row:last-child { margin-bottom: 0; }
.phish-mail-key {
  color: #64748b;
  font-size: 0.86rem;
  padding-top: 0.1rem;
}
.phish-mail-name { display: block; font-weight: 600; }
.phish-mail-addr {
  display: block;
  color: #64748b;
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
}
.phish-mail-subject { font-weight: 700; }
.phish-mail-body { padding: 1.05rem; }
.phish-mail-cta { margin: 1.05rem 0; }
.phish-mail-footnote { color: #7a3d05; }

.phish-browser-chrome {
  background: #e8edf4;
  border-bottom: 1px solid #d5dde8;
  padding: 0.5rem 0.65rem 0.65rem;
}
.phish-browser-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.phish-traffic { display: flex; gap: 0.3rem; }
.phish-traffic i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #d1d5db;
  display: block;
}
.phish-traffic i:nth-child(1) { background: #e8b4b4; }
.phish-traffic i:nth-child(2) { background: #ead89a; }
.phish-traffic i:nth-child(3) { background: #b7d3b5; }
.phish-browser-tab {
  background: #f7f8fb;
  border-radius: 8px 8px 0 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: #334155;
  max-width: min(220px, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phish-address-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #d5dde8;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  min-height: 2.35rem;
  flex-wrap: wrap;
}
.phish-not-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #b42318;
  font-weight: 700;
  font-size: 0.78rem;
  flex: 0 0 auto;
}
.phish-address-url {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #1f2937;
  word-break: break-all;
  min-width: 0;
  flex: 1 1 12rem;
}
.phish-address-scheme { color: #b42318; font-weight: 700; }

.phish-browser-page {
  background: #ece7df;
  padding: 1.25rem 0.9rem 1.5rem;
}
.phish-service {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e0d6;
  border-radius: 12px;
  padding: 1.25rem 1.05rem 1.05rem;
  color: #0f172a;
}
.phish-service-logo { margin: 0 auto 0.45rem; width: 40px; }
.phish-service-name {
  margin: 0 0 0.2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3d4a7a;
}
.phish-service-title {
  margin: 0 0 0.8rem;
  text-align: center;
  font-size: 1.15rem;
  color: #1a1a1a;
}
.phish-urgency {
  margin: 0 0 0.95rem;
  background: #fff7ed;
  border: 1px solid #f3d3a8;
  color: #7a3d05;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.phish-demo-account {
  border: 1px dashed #cfc8bc;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  background: #fafafa;
}
.phish-demo-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.phish-static-field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-top: 1px solid #eee;
}
.phish-static-field:first-of-type { border-top: 0; padding-top: 0; }
.phish-static-label { color: #64748b; font-size: 0.86rem; }
.phish-static-value { font-weight: 600; word-break: break-word; }
.phish-static-dots {
  letter-spacing: 0.18em;
  font-weight: 700;
  user-select: none;
}
.phish-fineprint {
  margin: 0.6rem 0 0;
  text-align: center;
}

.phish-subhead {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.12rem;
}
.phish-flags {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  counter-reset: flag;
  display: grid;
  gap: 0.75rem;
}
.phish-flags li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--bad);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  counter-increment: flag;
}
.phish-flags h4 {
  margin: 0 0 0.45rem;
  color: var(--bad);
  font-size: 1.02rem;
}
.phish-flags h4::before { content: counter(flag) ". "; }
.phish-flags p { margin: 0 0 0.55rem; }
.phish-flags p:last-child { margin-bottom: 0; }

.phish-step code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  word-break: break-all;
}

.phish-stakes {
  margin: 1.15rem 0 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.phish-stakes-banner {
  background: #3b1f1f;
  color: #f8f1f1;
  padding: 1.05rem 1.15rem 0.95rem;
}
.phish-stakes-banner h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: #fff;
}
.phish-stakes-banner p {
  margin: 0;
  color: #f0dede;
  font-size: 0.98rem;
}
.phish-consequences {
  list-style: none;
  margin: 0;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--surface-2);
}
.phish-consequences li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #b42318;
  border-radius: 10px;
  padding: 0.85rem 0.85rem 1rem;
  margin: 0;
}
.phish-consequence-icon {
  color: #b42318;
  margin-bottom: 0.45rem;
}
.phish-consequences h4 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.3;
}
.phish-consequences p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.phish-stakes-note {
  margin: 0;
  padding: 0 1.05rem 1rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9rem;
}

.phish-protect {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ok);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 0.85rem;
}
.phish-protect h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.phish-takeaway {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-size: 1.02rem;
}

.phish-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .phish-progress li { font-size: 0.7rem; }
  .phish-mail-row { grid-template-columns: 3.6rem 1fr; }
  .phish-static-field { grid-template-columns: 4.8rem 1fr; }
  .phish-browser-page { padding: 1rem 0.6rem 1.2rem; }
  .phish-consequences { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
