/**
 * TeamPCP Dynamic Report — light theme styles.
 *
 * Uses the same light palette tokens as blog.css/blog-post.css (--sb-light-*).
 * Light theme only: styles are applied unconditionally so the report always
 * renders light, regardless of the site-wide data-theme toggle.
 *
 * @package secure-blog
 */

.teampcp-page {
  --sb-light-bg: #eef5ff;
  --sb-light-bg-soft: #f8fbff;
  --sb-light-surface: linear-gradient(130deg, rgba(199, 220, 255, 0.42) 24%, #c7dcff 100%);
  --sb-light-border: rgba(255, 255, 255, 0.72);
  --sb-light-border-soft: rgba(0, 97, 193, 0.12);
  --sb-light-heading: #08111f;
  --sb-light-text: rgba(8, 17, 31, 0.72);
  --sb-light-muted: #545b66;
  --sb-light-accent: #0061c1;
  --sb-light-accent-strong: #0056aa;
  --sb-amber: #b45309;
  --sb-magenta: #b0208c;
  --sb-magenta-strong: #8c1a70;

  /* IOC value colors */
  --ioc-domain: #a21caf;
  --ioc-ip: #b45309;
  --ioc-url: #0369a1;
  --ioc-hash: #7c3aed;
  --ioc-package: #15803d;
  --ioc-handle: #be123c;
  --ioc-other: #475569;

  /* Match the site's existing stack (blog-post.css): N27 if loaded, else SF Pro Text. */
  --sb-font: 'N27', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --sb-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  position: relative;
  font-family: var(--sb-font);
  color: var(--sb-light-text);
  background:
   #EAF1FF;
  background-repeat: no-repeat;
  background-size: cover;
}

.teampcp-content { position: relative; z-index: 1; padding-bottom: 96px; }
.teampcp-page .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.teampcp-page .is-hidden { display: none !important; }

/* ================================ HERO ================================ */
/* Full-viewport opener; 104px keeps it clear of the sticky nav (72px + 16px offset). */
.teampcp-hero {
  /* The sticky nav (72px + its 16px offset) sits in the flow above this section,
     so the hero is pulled up under it — the banner then runs behind the glass nav
     instead of starting with a hard edge below it. */
  --teampcp-navpull: 104px;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--teampcp-navpull));
  min-height: calc(100vh + var(--teampcp-navpull));
  min-height: calc(100svh + var(--teampcp-navpull));
  padding: calc(var(--teampcp-navpull) + 48px) 0 64px;
  overflow: hidden;
  /* Shared grid-banner backdrop (same asset + center/cover treatment as secure.com),
     with a fade at the foot so the hero melts into the page ground. */
  background-color: var(--sb-light-bg);
  background-image:
    linear-gradient(to bottom, rgba(234, 241, 255, 0) 58%, rgba(234, 241, 255, 0.6) 84%, #eaf1ff 100%),
    url('https://website-assets.secure.com/images/light-bg-gridbanner-2.webp');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}
.teampcp-hero > .container { position: relative; z-index: 1; width: 100%; }

.teampcp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.teampcp-hero-inner > * { margin: 0; }

.teampcp-title { font-size: clamp(38px, 6.4vw, 74px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--sb-light-heading); }
/* The title splits in two: lead line in ink, the rest in accent blue below it. */
.teampcp-title-lead,
.teampcp-title-accent { display: block; text-wrap: balance; }
.teampcp-title-accent { color: var(--sb-light-accent); }

.teampcp-intro { max-width: 62ch; }
.teampcp-intro p { font-size: 17.5px; line-height: 1.62; color: var(--sb-light-text); margin: 0 0 12px; }
.teampcp-intro p:last-child { margin-bottom: 0; }
.teampcp-subtitle { max-width: 58ch; font-size: 15px; line-height: 1.6; color: var(--sb-light-muted); }

.teampcp-hero-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.teampcp-hero-updated { font-family: var(--sb-mono); font-size: 12.5px; color: var(--sb-light-accent); }

/* ================================ TABS ================================ */
.teampcp-tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 34px 0 28px; border-bottom: 1px solid var(--sb-light-border-soft); }
.teampcp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.teampcp-tabactions { display: flex; align-items: center; gap: 10px; align-self: center; padding-bottom: 6px; }
.teampcp-tabaction { display: flex; align-items: center; gap: 10px; }
.teampcp-tab { appearance: none; border: none; background: transparent; text-decoration: none; font-family: var(--sb-font); font-size: 15px; font-weight: 600; color: var(--sb-light-muted); padding: 12px 18px; cursor: pointer; position: relative; border-radius: 10px 10px 0 0; transition: color 0.16s ease, background 0.16s ease; }
/* Tabs are anchors (so they work without JS), so the theme's global a:visited /
   a:focus styling has to be neutralised here. */
.teampcp-tab:visited { color: var(--sb-light-muted); }
.teampcp-tab:focus { outline: none; }
.teampcp-tab:hover { color: var(--sb-light-accent); background: rgba(0, 97, 193, 0.06); text-decoration: none; }
.teampcp-tab.is-active,
.teampcp-tab.is-active:visited { color: var(--sb-light-accent-strong); }
.teampcp-tab.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sb-light-accent); }
.teampcp-tab:focus-visible { outline: 2px solid var(--sb-light-accent); outline-offset: 2px; }

/* ================================ PANELS ================================ */
/* Section heading per panel: screen-reader-only while the tabs work, promoted to
   a visible heading by the <noscript> fallback (see secure_blog_report_noscript_styles). */
.teampcp-panel-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--sb-light-heading); }
.teampcp-panel[hidden] { display: none; }
/* When the browser does jump to a panel (no-JS tab links, or a shared deep link),
   stop short of it: sticky nav (~88px) + the tab bar (~110px) + a gap, so the tabs
   stay on screen instead of scrolling out of view above the panel. */
.teampcp-panel { scroll-margin-top: 220px; }
.teampcp-panel { animation: teampcp-fade 0.24s ease; }
@keyframes teampcp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .teampcp-panel { animation: none; } }

/* ================================ TIMELINE (accordion) ================================ */
.teampcp-expand-all { appearance: none; cursor: pointer; font-family: var(--sb-font); font-size: 13px; font-weight: 600; color: var(--sb-light-accent); background: rgba(0, 97, 193, 0.06); border: 1px solid var(--sb-light-border-soft); border-radius: 8px; padding: 7px 13px; }
.teampcp-expand-all:hover { background: rgba(0, 97, 193, 0.12); }
.teampcp-expand-all:focus-visible { outline: 2px solid var(--sb-light-accent); outline-offset: 2px; }

.teampcp-timeline { display: flex; flex-direction: column; }
.teampcp-event { border-bottom: 1px solid var(--sb-light-border-soft); }
.teampcp-event:last-child { border-bottom: 1px solid var(--sb-light-border-soft); }

.teampcp-event-summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px 88px 1fr; gap: 4px 16px; align-items: start; padding: 20px 6px; }
details.teampcp-event > summary.teampcp-event-summary { cursor: pointer; }
.teampcp-event-summary::-webkit-details-marker { display: none; }
.teampcp-event--flat .teampcp-event-summary { cursor: default; }

.teampcp-event-toggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--sb-light-accent); margin-top: 3px; }
.teampcp-event-toggle::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s ease; }
details.teampcp-event[open] > summary .teampcp-event-toggle::before { transform: rotate(-135deg); margin-top: 3px; }
.teampcp-event--flat .teampcp-event-toggle { color: rgba(0, 97, 193, 0.4); }
.teampcp-event--flat .teampcp-event-toggle::before { content: ''; width: 5px; height: 5px; border: none; border-radius: 50%; background: currentColor; transform: none; margin: 0; }

.teampcp-event-daterange { font-family: var(--sb-font); font-size: 13px; font-weight: 600; color: var(--sb-light-muted); padding-top: 2px; text-align: right; }
.teampcp-event-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.teampcp-event-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.teampcp-event-title { font-size: 19px; font-weight: 600; color: var(--sb-light-heading); }
.teampcp-event-count { font-family: var(--sb-font); font-size: 12px; color: var(--sb-light-muted); }
.teampcp-badge { font-family: var(--sb-font); font-size: 11px; font-weight: 600; color: #92400e; background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 999px; padding: 2px 9px; }
.teampcp-event-text { font-size: 15.5px; line-height: 1.6; color: var(--sb-light-text); }

.teampcp-chips { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.teampcp-chip-link { font-family: var(--sb-font); font-size: 12.5px; font-weight: 600; color: var(--sb-light-accent); text-decoration: none; }
a.teampcp-chip-link:hover { text-decoration: underline; color: var(--sb-light-accent-strong); }
.teampcp-chip-link--emph { color: var(--sb-magenta); }
/* Our own coverage: the one chip that is still a link, so it is marked as such. */
.teampcp-chip-link--ours { display: inline-flex; align-items: center; gap: 5px; color: var(--sb-light-accent-strong); background: rgba(0, 97, 193, 0.08); border: 1px solid var(--sb-light-border-soft); border-radius: 999px; padding: 3px 11px; }
.teampcp-chip-link--ours::before { content: '\2197'; font-size: 11px; line-height: 1; }
a.teampcp-chip-link--ours:hover { background: rgba(0, 97, 193, 0.14); text-decoration: none; }
a.teampcp-chip-link--emph:hover { color: var(--sb-magenta-strong); }

/* Sub-events */
.teampcp-subevents { border-left: 2px solid var(--sb-light-border-soft); margin: 0 0 18px 96px; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.teampcp-subevent, .teampcp-subevent--flat { border-bottom: 1px dashed rgba(0, 97, 193, 0.1); }
.teampcp-subevent:last-child, .teampcp-subevent--flat:last-child { border-bottom: none; }
.teampcp-subevent-summary, .teampcp-subevent--flat { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 2px; }
.teampcp-subevent-summary { cursor: pointer; }
.teampcp-subevent-summary::-webkit-details-marker { display: none; }
.teampcp-sub-time { font-family: var(--sb-mono); font-size: 12px; font-weight: 600; color: var(--sb-light-accent-strong); min-width: 108px; }
.teampcp-sub-title { font-size: 14.5px; font-weight: 500; color: var(--sb-light-heading); }
.teampcp-sub-plus { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 0; color: var(--sb-light-muted); }
.teampcp-sub-plus::before { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -2px; transition: transform 0.2s ease; }
details.teampcp-subevent[open] .teampcp-sub-plus::before { transform: rotate(-135deg); margin-top: 2px; }
.teampcp-sub-detail { font-size: 14px; line-height: 1.6; color: var(--sb-light-text); padding: 0 2px 12px 120px; }

/* ================================ CHIPS (generic) ================================ */
.teampcp-chip { display: inline-block; font-family: var(--sb-font); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--sb-light-accent-strong); background: rgba(0, 97, 193, 0.10); border: 1px solid var(--sb-light-border-soft); border-radius: 999px; padding: 2px 10px; line-height: 1.5; white-space: nowrap; }
.teampcp-chip--tag { text-transform: uppercase; }

/* ================================ IOCs ================================ */
.teampcp-copy-btn { appearance: none; cursor: pointer; font-family: var(--sb-font); font-size: 14px; font-weight: 600; color: #fff; background: var(--sb-light-accent); border: 1px solid var(--sb-light-accent-strong); border-radius: 10px; padding: 10px 18px; transition: background 0.16s ease, transform 0.12s ease; }
.teampcp-copy-btn:hover { background: var(--sb-light-accent-strong); }
.teampcp-copy-btn:active { transform: translateY(1px); }
.teampcp-copy-btn.is-copied { background: #0b8a4b; border-color: #0b8a4b; }
.teampcp-copy-btn:focus-visible, .teampcp-link-btn:focus-visible { outline: 2px solid var(--sb-light-accent); outline-offset: 2px; }
.teampcp-link-btn { appearance: none; cursor: pointer; font-family: var(--sb-font); font-size: 14px; font-weight: 600; color: var(--sb-light-accent); background: transparent; border: none; padding: 8px 4px; text-decoration: none; }
.teampcp-link-btn:hover { text-decoration: underline; }

.teampcp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.teampcp-filter { appearance: none; cursor: pointer; font-family: var(--sb-font); font-size: 12.5px; font-weight: 600; color: var(--sb-light-muted); background: var(--sb-light-bg-soft); border: 1px solid var(--sb-light-border-soft); border-radius: 999px; padding: 6px 14px; transition: all 0.14s ease; }
.teampcp-filter:hover { color: var(--sb-light-accent); border-color: rgba(0, 97, 193, 0.3); }
.teampcp-filter.is-active { color: #fff; background: var(--sb-light-accent); border-color: var(--sb-light-accent-strong); }
.teampcp-filter:focus-visible { outline: 2px solid var(--sb-light-accent); outline-offset: 2px; }

.teampcp-ioc-groups { display: flex; flex-direction: column; gap: 24px; }
.teampcp-ioc-group { border: 1px solid var(--sb-light-border); border-radius: 14px; background: var(--sb-light-bg-soft); overflow: hidden; box-shadow: 0 12px 30px -24px rgba(8, 17, 31, 0.5); }
.teampcp-ioc-group-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(199, 220, 255, 0.36); border-bottom: 1px solid var(--sb-light-border-soft); }
.teampcp-ioc-group-title { font-size: 15px; font-weight: 700; color: var(--sb-light-heading); margin: 0; }
.teampcp-ioc-count { font-family: var(--sb-font); font-size: 12px; font-weight: 600; color: var(--sb-light-muted); background: #fff; border: 1px solid var(--sb-light-border-soft); border-radius: 8px; padding: 2px 10px; }
.teampcp-ioc-subgroup { padding: 6px 18px 14px; }
.teampcp-ioc-subgroup-title { font-family: var(--sb-font); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sb-light-muted); margin: 14px 0 8px; }
.teampcp-ioc-list { list-style: none; margin: 0; padding: 0; }
.teampcp-ioc-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(0, 97, 193, 0.07); }
.teampcp-ioc-row:last-child { border-bottom: none; }
.teampcp-ioc-value { font-family: var(--sb-mono); font-size: 13.5px; font-weight: 600; word-break: break-all; }
.teampcp-ioc-value--domain { color: var(--ioc-domain); }
.teampcp-ioc-value--ip { color: var(--ioc-ip); }
.teampcp-ioc-value--url { color: var(--ioc-url); }
.teampcp-ioc-value--hash { color: var(--ioc-hash); }
.teampcp-ioc-value--package { color: var(--ioc-package); }
.teampcp-ioc-value--handle { color: var(--ioc-handle); }
.teampcp-ioc-value--other { color: var(--ioc-other); }
.teampcp-ioc-note { font-size: 13px; color: var(--sb-light-muted); }
.teampcp-ioc-copy { margin-left: auto; appearance: none; cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--sb-light-muted); font-size: 15px; line-height: 1; padding: 4px 8px; opacity: 0; transition: opacity 0.14s ease, color 0.14s ease, background 0.14s ease, border-color 0.14s ease; }
.teampcp-ioc-row:hover .teampcp-ioc-copy,
.teampcp-ioc-row:focus-within .teampcp-ioc-copy { opacity: 1; }
.teampcp-ioc-copy:hover { color: var(--sb-light-accent); border-color: var(--sb-light-border-soft); background: rgba(0, 97, 193, 0.06); }
.teampcp-ioc-copy.is-copied { color: #0b8a4b; opacity: 1; }
.teampcp-ioc-copy:focus-visible { outline: 2px solid var(--sb-light-accent); outline-offset: 1px; opacity: 1; }

/* ================================ TEAMPCP (actor profile) ================================ */
.teampcp-actor { background: var(--sb-light-surface); border: 1px solid var(--sb-light-border); border-radius: 14px; padding: 26px 28px; }
.teampcp-actor-name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--sb-light-heading); margin: 0 0 10px; }
.teampcp-actor-aka { font-size: 15px; color: var(--sb-light-text); margin: 0 0 16px; }
.teampcp-aka-label { font-family: var(--sb-font); font-size: 12px; color: var(--sb-light-muted); margin-right: 4px; }
.teampcp-actor-desc p { font-size: 16px; line-height: 1.68; color: var(--sb-light-text); margin: 0 0 12px; }
.teampcp-actor-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 6px 0 0; }
.teampcp-handle { font-family: var(--sb-font); font-size: 13px; font-weight: 600; color: var(--sb-light-accent); }
.teampcp-actor-center { font-family: var(--sb-font); font-size: 13px; font-weight: 600; color: var(--sb-magenta); text-decoration: none; }
.teampcp-actor-center:hover { text-decoration: underline; }

.teampcp-external { margin-top: 28px; }
.teampcp-external-title { font-size: 18px; font-weight: 600; color: var(--sb-light-heading); margin: 0 0 14px; }
.teampcp-external-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.teampcp-external-row { font-size: 15px; line-height: 1.5; }
.teampcp-external-source { font-family: var(--sb-font); font-weight: 600; color: var(--sb-light-accent); text-decoration: none; }
a.teampcp-external-source:hover { text-decoration: underline; color: var(--sb-light-accent-strong); }
.teampcp-external-note { color: var(--sb-light-muted); }

/* ================================ EMPTY ================================ */
.teampcp-empty { padding: 40px 24px; text-align: center; color: var(--sb-light-muted); background: var(--sb-light-bg-soft); border: 1px dashed var(--sb-light-border-soft); border-radius: 14px; font-size: 15px; }

/* ================================ RESPONSIVE ================================ */
@media (max-width: 782px) {
  .teampcp-panel { scroll-margin-top: 190px; }
  .teampcp-hero { --teampcp-navpull: 88px; padding: calc(var(--teampcp-navpull) + 32px) 0 48px; min-height: auto;}
  .teampcp-hero-inner { gap: 20px; }
  .teampcp-intro p { font-size: 16px; }
  .teampcp-subtitle { font-size: 14.5px; }
  .teampcp-tab { padding: 10px 14px; font-size: 14px; }
  .teampcp-event-summary { grid-template-columns: 20px 1fr; }
  .teampcp-event-daterange { grid-column: 2; text-align: left; }
  .teampcp-event-main { grid-column: 2; }
  .teampcp-subevents { margin-left: 20px; }
  .teampcp-sub-detail { padding-left: 2px; }
  .teampcp-actor-name { font-size: 24px; }
}
