/* Case page (templates/community-case.php): the hero layout (back link, label, identity, the actions panel with the
   "I experienced this too" component of mwt-comments, stat tiles, check links), the reports as a timeline, the discussion
   column and the similar reports beside it. The hero, buttons and tiles are in shell.css, the cards in report-card.css and
   case-card.css; the +1 component styles itself (mwt-comments feedback.css, dark variant). */
.mwt-community-case-hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"back back" "title actions" "stats stats" "checks checks";align-items:start;gap:0 48px;padding-top:24px}
.mwt-community-back{grid-area:back;justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 12px;color:var(--mt-on-dark-secondary);font-size:14px;font-weight:500;text-decoration:none}
.mwt-community-back svg{width:18px;height:18px}
.mwt-community-back:hover{color:var(--mt-on-dark);text-decoration:underline;text-underline-offset:3px}
.mwt-community-case-title{grid-area:title;min-width:0;padding-top:8px}
.mwt-community-label{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:5px 12px 5px 10px;border:1px solid var(--mt-chrome-line);border-radius:var(--mt-radius-pill);background:var(--mt-chrome-raised);color:var(--mt-on-dark-secondary);font-size:13px;font-weight:500;line-height:18px}
.mwt-community-label svg{width:16px;height:16px;color:var(--mt-accent-on-dark)}
.mwt-community-case-actions{grid-area:actions;display:flex;flex-direction:column;gap:12px}
.mwt-community-case-actions>.mwt-rs-button{width:100%}
.mwt-community-case-hero .mwt-rs-stats{grid-area:stats;margin-top:36px}
.mwt-community-checks{grid-area:checks;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 0;padding:0;list-style:none}
.mwt-community-checks li{display:flex;margin:0;padding:0;list-style:none}
.mwt-community-checks a{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px 18px;border:1px solid var(--mt-chrome-line);border-radius:var(--mt-radius-xl);background:color-mix(in srgb,var(--mt-accent-on-dark) 9%,var(--mt-chrome));color:var(--mt-on-dark);text-decoration:none}
.mwt-community-checks a:hover{border-color:var(--mt-accent-on-dark);background:color-mix(in srgb,var(--mt-accent-on-dark) 16%,var(--mt-chrome));color:var(--mt-on-dark)}
.mwt-community-checks a>span:nth-child(2){flex:1;min-width:0}
.mwt-community-checks strong{display:block;font-size:15px;font-weight:600;line-height:20px}
.mwt-community-checks strong+span{display:block;margin-top:2px;color:var(--mt-on-dark-secondary);font-size:13px;line-height:18px}
.mwt-community-checks-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--mt-radius-lg);background:var(--mt-chrome-raised);color:var(--mt-accent-on-dark-strong)}
.mwt-community-checks svg{width:20px;height:20px}
.mwt-community-checks a>svg:last-child{flex:none;color:var(--mt-accent-on-dark-strong)}

/* Below the hero: the reports and the discussion, the similar cases beside them. */
.mwt-community-case-body--aside{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:48px}
.mwt-community-case-main{min-width:0;max-width:752px}
.mwt-community-heading-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;margin-left:6px;padding:0 10px;border-radius:var(--mt-radius-pill);background:var(--mt-accent-soft);color:var(--mt-accent-strong);font:700 16px/1 var(--m2-sans);vertical-align:4px}
.mwt-community-similar{position:sticky;top:24px}
.mwt-community-similar .mwt-community-section-title{font-size:var(--mt-display-sm-size);line-height:var(--mt-display-sm-line)}

/* The timeline: a line down the left with a dot beside each report. */
.mwt-community-timeline{position:relative;margin:0;padding:0 0 0 28px;list-style:none}
.mwt-community-timeline::before{content:"";position:absolute;top:12px;bottom:12px;left:7px;width:2px;border-radius:2px;background:var(--mt-border)}
.mwt-community-timeline .mwt-community-timeline-item{position:relative;margin:0;padding:0;border:0;list-style:none}
.mwt-community-timeline .mwt-community-timeline-item+.mwt-community-timeline-item{margin-top:16px}
.mwt-community-timeline-item::before{content:"";position:absolute;top:30px;left:-27px;width:14px;height:14px;border:3px solid var(--mt-page);border-radius:50%;background:var(--mt-accent);box-shadow:0 0 0 1px var(--mt-accent-border)}

.mwt-community-discussion{margin-top:48px;scroll-margin-top:24px}

@media(max-width:1000px){.mwt-community-case-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"back" "title" "actions" "stats" "checks";gap:0}.mwt-community-case-actions{margin-top:24px}.mwt-community-case-body--aside{grid-template-columns:minmax(0,1fr);gap:40px}.mwt-community-case-main{max-width:none}.mwt-community-similar{position:static}}
@media(max-width:700px){.mwt-community-case-hero{padding-top:12px}.mwt-community-back{margin-bottom:4px}.mwt-community-label{font-size:12px}.mwt-community-case-hero .mwt-rs-stats{margin-top:24px}.mwt-community-checks{grid-template-columns:minmax(0,1fr);gap:8px}.mwt-community-checks a{min-height:64px;padding:12px 14px}.mwt-community-timeline{padding-left:20px}.mwt-community-timeline::before{left:4px}.mwt-community-timeline-item::before{top:24px;left:-22px;width:12px;height:12px}.mwt-community-discussion{margin-top:36px}}
