/* Report cards: the summary card of the directory list and the full report of a case timeline and of the admin screen
   (templates/community-report.php), with the atoms they share with the rest of the community pages: the nickname avatar,
   the kind, type, money and Tools verdict badges, the screenshots and their viewer (<dialog>, assets/lightbox.js). Each scam
   type and avatar takes one illustration colour of brand C; badges mix it with the surface they sit on (--mwt-rs-surface /
   --mwt-rs-ink, which the navy hero changes). */
[data-type=shopping]{--mwt-type:var(--mt-illus-ochre)}
[data-type=phishing]{--mwt-type:var(--mt-illus-indigo)}
[data-type=investment]{--mwt-type:var(--mt-illus-teal)}
[data-type=tech-support]{--mwt-type:var(--mt-illus-sky)}
[data-type=jobs]{--mwt-type:var(--mt-illus-clay)}
[data-type=impersonation]{--mwt-type:var(--mt-illus-plum)}
[data-type=other]{--mwt-type:var(--mt-text-muted)}
.mwt-community-avatar{--mwt-avatar:var(--mt-illus-teal);display:inline-flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--mwt-avatar);color:var(--mt-on-accent);font:700 18px/1 var(--mtc-display)}
.mwt-community-avatar[data-avatar="1"]{--mwt-avatar:var(--mt-illus-indigo)}
.mwt-community-avatar[data-avatar="2"]{--mwt-avatar:var(--mt-illus-ochre)}
.mwt-community-avatar[data-avatar="3"]{--mwt-avatar:var(--mt-illus-plum)}
.mwt-community-avatar[data-avatar="4"]{--mwt-avatar:var(--mt-illus-sky)}
.mwt-community-avatar[data-avatar="5"]{--mwt-avatar:var(--mt-illus-clay)}

.mwt-community-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.mwt-community-badge{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 9px;border:1px solid var(--mwt-rs-line,var(--mt-border-strong));border-radius:var(--mt-radius-pill);color:var(--mwt-rs-ink-soft,var(--mt-text-secondary));font-size:12px;font-weight:600;line-height:16px;white-space:nowrap}
.mwt-community-badge svg{width:14px;height:14px}
.mwt-community-type{border-color:color-mix(in srgb,var(--mwt-type) 32%,var(--mwt-rs-surface,var(--mt-surface)));background:color-mix(in srgb,var(--mwt-type) var(--mwt-rs-tint,12%),var(--mwt-rs-surface,var(--mt-surface)));color:color-mix(in srgb,var(--mwt-type) var(--mwt-rs-mix,62%),var(--mwt-rs-ink,var(--mt-text)))}
.mwt-community-type::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--mwt-type)}
.mwt-community-money{border-color:var(--mt-danger-border);background:var(--mt-danger-tint);color:var(--mt-danger-text);font-weight:700}
/* The MalwareTips Tools verdict (a card's "Tools: <verdict>" badge, the pill of a case page's Tools report): brand C's status
   colours, the two ends filled (Safe, Dangerous), the levels between them tinted; High Risk mixes danger and warning, as Tools does. */
[data-verdict=safe]{--mwt-verdict-bg:var(--mt-success-fill);--mwt-verdict-ink:var(--mt-success-on-fill);--mwt-verdict-line:var(--mt-success-fill)}
[data-verdict=low]{--mwt-verdict-bg:var(--mt-success-tint);--mwt-verdict-ink:var(--mt-success-text);--mwt-verdict-line:var(--mt-success-border)}
[data-verdict=moderate]{--mwt-verdict-bg:var(--mt-warning-tint);--mwt-verdict-ink:var(--mt-warning-text);--mwt-verdict-line:var(--mt-warning-border)}
[data-verdict=high]{--mwt-verdict-bg:color-mix(in srgb,var(--mt-danger-tint) 50%,var(--mt-warning-tint));--mwt-verdict-ink:color-mix(in srgb,var(--mt-danger-text) 50%,var(--mt-warning-text));--mwt-verdict-line:color-mix(in srgb,var(--mt-danger-border) 50%,var(--mt-warning-border))}
[data-verdict=dangerous]{--mwt-verdict-bg:var(--mt-danger-fill);--mwt-verdict-ink:var(--mt-danger-on-fill);--mwt-verdict-line:var(--mt-danger-fill)}
.mwt-community-verdict{border:1px solid var(--mwt-verdict-line,var(--mt-border-strong));background:var(--mwt-verdict-bg,var(--mt-surface));color:var(--mwt-verdict-ink,var(--mt-text))}
.mwt-community-tags--large .mwt-community-badge{min-height:30px;padding:4px 12px;font-size:13px;line-height:20px}

/* Directory: one summary card per report, the identity link covering the card. */
.mwt-community-report-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.mwt-community-report-list>li{margin:0;padding:0;list-style:none}
.mwt-community-report-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding:20px 22px 18px 24px;border:1px solid var(--mt-border);border-radius:var(--mt-radius-xl);background:var(--mt-surface);box-shadow:var(--mt-shadow-1);overflow-wrap:anywhere}
.mwt-community-report-card::before{content:"";position:absolute;top:18px;bottom:18px;left:-1px;width:3px;border-radius:0 3px 3px 0;background:var(--mwt-type,var(--mt-accent))}
.mwt-community-report-card:hover{border-color:var(--mt-accent-border);box-shadow:var(--mt-shadow-2)}
.mwt-community-report-card--thumb{grid-template-columns:minmax(0,1fr) 136px;column-gap:22px}
.mwt-community-report-card--thumb>*{grid-column:1}
.mwt-community-report-card--thumb .mwt-community-report-card-foot{grid-column:1/-1}
.mwt-community-byline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:0;color:var(--mt-text-muted);font-size:13px;line-height:18px}
.mwt-community-report-card .mwt-community-avatar{width:32px;height:32px;margin-right:2px;font-size:15px}
.mwt-community-name{color:var(--mt-text);font-weight:600}
.mwt-community-report-card .mwt-community-report-card-title{margin:2px 0 0;color:var(--mt-text);font:700 19px/26px var(--mtc-display);letter-spacing:-.01em}
.mwt-community-report-card-link{color:inherit;text-decoration:none}
.mwt-community-report-card-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.mwt-community-report-card:hover .mwt-community-report-card-link{color:var(--mt-link-hover);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.mwt-community-report-card-link:focus-visible{outline:0}
.mwt-community-report-card-link:focus-visible::after{outline:2px solid var(--mt-focus);outline-offset:2px}
.mwt-community-excerpt{margin:0;color:var(--mt-text-secondary);font-size:15px;line-height:24px}
.mwt-community-thumb{grid-column:2;grid-row:1/span 4;align-self:start;display:block;width:136px;height:102px;border:1px solid var(--mt-border);border-radius:var(--mt-radius-lg);object-fit:cover;object-position:top;background:var(--mt-page)}
.mwt-community-report-card-foot{display:flex;flex-wrap:wrap;gap:6px 18px;margin:4px 0 0;padding-top:12px;border-top:1px solid var(--mt-border-faint);color:var(--mt-text-muted);font-size:13px;line-height:18px}
.mwt-community-report-card-foot>span{display:inline-flex;align-items:center;gap:6px}
.mwt-community-report-card-foot svg{width:16px;height:16px;color:var(--mt-text-muted)}
.mwt-community-report-card-foot [data-mwtc-experienced-for]{color:var(--mt-text);font-weight:700}

/* A full report (case timeline, admin preview). */
.mwt-community-experience{position:relative;padding:22px 24px 16px;border:1px solid var(--mt-border);border-radius:var(--mt-radius-xl);background:var(--mt-surface);box-shadow:var(--mt-shadow-1);scroll-margin-top:96px;overflow-wrap:anywhere}
.mwt-community-experience-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px}
.mwt-community-experience-head>div{min-width:0}
.mwt-community-experience-head .mwt-community-experience-name{margin:0;color:var(--mt-text);font-size:16px;font-weight:700;line-height:22px}
.mwt-community-experience-head .mwt-community-byline{margin-top:2px}
.mwt-community-experience-head .mwt-community-tags{margin-left:auto}
.mwt-community-experience-body{max-width:72ch;margin:16px 0 0;color:var(--mt-text);font-size:16px;line-height:28px}
.mwt-community-experience-foot{margin:8px 0 0;font-size:12px}
.mwt-community-experience-foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--mt-text-muted);text-decoration:underline;text-underline-offset:3px}
.mwt-community-experience-foot a:hover{color:var(--mt-link-hover)}

/* Screenshots: every one is shown; each opens the full image. */
.mwt-community-evidence{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0;padding:0;list-style:none}
.mwt-community-evidence li{margin:0;padding:0;list-style:none}
.mwt-community-evidence a{display:block;width:168px;border:1px solid var(--mt-border);border-radius:var(--mt-radius-lg);background:var(--mt-page);color:var(--mt-text-secondary);text-decoration:none;overflow:hidden}
.mwt-community-evidence a:hover{border-color:var(--mt-accent-border);color:var(--mt-link-hover)}
.mwt-community-evidence img{display:block;width:100%;height:126px;object-fit:cover;object-position:top;background:var(--mt-surface)}
.mwt-community-evidence a>span{display:block;padding:7px 10px;border-top:1px solid var(--mt-border);font-size:12px;font-weight:600;line-height:16px}

/* The screenshot viewer: a navy dialog over the whole window, the image as large as it allows. */
.mwt-community-lightbox{box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:var(--mt-chrome);color:var(--mt-on-dark)}
.mwt-community-lightbox[open]{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;grid-template-rows:64px minmax(0,1fr) 24px}
.mwt-community-lightbox-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 12px 0 24px}
.mwt-community-lightbox-bar p{margin:0;color:var(--mt-on-dark-secondary);font-size:14px;font-weight:600}
.mwt-community-lightbox-image{grid-column:2;grid-row:2;place-self:center;max-width:100%;max-height:100%;border-radius:var(--mt-radius-lg);background:var(--mt-surface);object-fit:contain}
.mwt-community-lightbox .mwt-community-lightbox-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid var(--mt-chrome-line);border-radius:50%;background:var(--mt-chrome-raised);color:var(--mt-on-dark);cursor:pointer}
.mwt-community-lightbox .mwt-community-lightbox-button:hover{border-color:var(--mt-chrome-field-border);background:var(--mt-chrome-hover);color:var(--mt-on-dark)}
.mwt-community-lightbox .mwt-community-lightbox-button:focus-visible{outline:2px solid var(--mt-focus-on-dark);outline-offset:2px}
.mwt-community-lightbox .mwt-community-lightbox-button[hidden]{display:none}
.mwt-community-lightbox-button svg{width:22px;height:22px}
.mwt-community-lightbox-step{grid-row:2;align-self:center;justify-self:center}
.mwt-community-lightbox-step[data-lightbox-step="1"]{grid-column:3}

@media(max-width:700px){
 .mwt-community-report-card{padding:16px 16px 14px 18px}
 .mwt-community-report-card--thumb{grid-template-columns:minmax(0,1fr) 88px;column-gap:14px}
 .mwt-community-report-card--thumb .mwt-community-excerpt{grid-column:1/-1}
 .mwt-community-thumb{grid-row:1/4;width:88px;height:66px}
 .mwt-community-report-card .mwt-community-report-card-title{font-size:17px;line-height:24px}
 .mwt-community-excerpt{font-size:14px;line-height:22px}
 .mwt-community-experience{padding:16px 16px 10px}
 .mwt-community-experience-head .mwt-community-tags{flex-basis:100%;margin-left:0}
 .mwt-community-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mwt-community-evidence a{width:auto}
 .mwt-community-lightbox[open]{grid-template-columns:8px minmax(0,1fr) 8px;grid-template-rows:56px minmax(0,1fr) 72px}
 .mwt-community-lightbox-bar{padding:0 8px 0 16px}
 .mwt-community-lightbox-step{grid-row:3;grid-column:2;justify-self:start;margin-left:calc(50% - 56px)}
 .mwt-community-lightbox-step[data-lightbox-step="1"]{grid-column:2;justify-self:end;margin:0 calc(50% - 56px) 0 0}
}
