/* The report layout, shared by report.html and Product Check.
 *
 * A check report and a database verdict are the same kind of page: a title,
 * our verdict, the four checks with their sources, and a side column for
 * telling us what we missed. They were drawn twice, and the second drawing
 * drifted until Anya asked what had broken. Everything in here is scoped to
 * .rep, the wrapper both pages put around a result, so it can sit inside a
 * page that already styles h1 and h2 for its own hero. Colour tokens come from
 * the host page. */

.rep .crumbs { padding: 24px 0 4px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.rep .crumbs a { color: var(--accent); font-weight: 600; cursor: pointer; }

.rep .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; padding-bottom: 20px; }
.rep h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; text-wrap: pretty; margin: 0; }
.rep .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.rep .meta a { color: var(--accent); }
.rep .meta .warm { color: var(--careful); }
.rep .acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.rep .btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
            border-radius: 999px; font: inherit; font-weight: 700; padding: 15px 28px; font-size: 16px; text-decoration: none; }
.rep .btn-primary { background: var(--accent); color: #fff; }
.rep .btn-primary:hover { background: var(--accent-deep); color: #fff; }
.rep .btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
                  font-weight: 550; padding: 12px 20px; font-size: 14.5px; }
.rep .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.rep .verdict { margin-top: 26px; background: var(--surface); border: 1px solid var(--border);
                border-left: 4px solid var(--border-strong); border-radius: 18px; padding: 28px 30px;
                display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: center; }
.rep .verdict.good { border-left-color: var(--good); }
.rep .verdict.careful { border-left-color: var(--careful); }
.rep .verdict.skip { border-left-color: var(--skip); }
.rep .verdict .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rep .verdict .word { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; }
.rep .verdict p { font-size: 16.5px; line-height: 1.55; margin: 0; color: var(--text); }
.rep .counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rep .count { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
              display: inline-flex; align-items: center; background: var(--chip); color: var(--muted); }
.rep .count.good { background: var(--good-bg); color: var(--good); }
.rep .count.careful { background: var(--careful-bg); color: var(--careful); }
.rep .count.skip { background: var(--skip-bg); color: var(--skip); }

/* Context that belongs under the verdict: the brand's own standing when a
   product was asked about, a rollup note, a caution the four checks cannot
   hold. */
.rep .under { margin-top: 14px; }

.rep h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; margin: 34px 0 0; }
.rep .fronts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.rep .fronts > .lr { margin-top: 0; }
.rep .front { background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
              padding: 22px 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.rep .mark { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
             justify-content: center; flex: none; }
.rep .mark svg { width: 19px; height: 19px; }
.rep .mark.pass { background: var(--good-bg); color: var(--good); }
.rep .mark.caution { background: var(--careful-bg); color: var(--careful); }
.rep .mark.fail { background: var(--skip-bg); color: var(--skip); }
.rep .mark.none, .rep .mark.unassessed, .rep .mark.pending { background: var(--chip); color: var(--muted); }
.rep .front-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.rep .front-head h3 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.rep .state { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.rep .state.pass { color: var(--good); } .rep .state.caution { color: var(--careful); }
.rep .state.fail { color: var(--skip); } .rep .state.none, .rep .state.unassessed, .rep .state.pending { color: var(--muted); }
.rep .front p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.rep .front-scope { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--faint); font-style: italic; }
.rep .src { margin-top: 10px; font-size: 13px; color: var(--muted); }
.rep .src a { color: var(--accent); font-weight: 600; }

.rep .side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.rep .box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.rep .box.wash { background: var(--accent-wash); border-color: transparent; }
.rep .box h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.rep .box p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0; }
.rep .box .btn { width: 100%; margin-top: 14px; padding: 13px 18px; font-size: 15px; }
.rep .box input, .rep .box textarea { width: 100%; margin-top: 12px; padding: 12px 14px; font: inherit; font-size: 15px;
             border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
             outline: none; color: var(--text); box-sizing: border-box; }
.rep .box input { height: 46px; padding: 0 14px; }
.rep .box textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.rep .box input:focus, .rep .box textarea:focus { border-color: var(--accent); }
.rep .box .sources { margin-top: 12px; }
.rep .pass-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rep .pass-box .dim { font-size: 13.5px; color: var(--muted); }
.rep .pass-box b { font-size: 16.5px; font-weight: 700; }
.rep .pass-box a { color: var(--accent); font-weight: 650; font-size: 14.5px; }

/* The product list under a brand's four checks. Each row is a door to that
   product's own report, drawn in this same layout. */
.rep .product-list { margin-top: 18px; }
.rep .product-name a { color: inherit; }
.rep .product-name a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .rep .cols { grid-template-columns: 1fr; gap: 28px; }
  .rep .side { position: static; }
  .rep h1 { font-size: 32px; }
  .rep .verdict { grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; }
  .rep .verdict .word { font-size: 38px; }
  .rep .front { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .rep .mark { width: 32px; height: 32px; } .rep .mark svg { width: 16px; height: 16px; }
  .rep .front-head { flex-wrap: wrap; gap: 4px 12px; }
}

/* The answer, then what to do about it.
 *
 * A verdict used to be followed by the whole research paragraph, and the one
 * thing a shopper wanted next, what to buy instead, sat in the side column
 * under a heading. The action row is the card's only call to action and it
 * sits directly under the verdict. */
.rep .do {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 12px; padding: 16px 20px; border-radius: 16px;
  background: var(--accent-wash); color: var(--text); text-decoration: none;
  border: 1px solid transparent; transition: border-color 0.15s;
}
.rep a.do:hover { border-color: var(--accent); }
.rep .do b { font-size: 12px; font-weight: 700; letter-spacing: .07em;
             text-transform: uppercase; color: var(--muted); }
.rep .do span { font-size: 17px; font-weight: 650; color: var(--accent-deep); }
.rep a.do:hover span { color: var(--accent); }
.rep .do.flat { background: var(--chip); }
.rep .do.flat span { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.55; }
.rep .do.tradeoff { background: var(--careful-bg); border-color: var(--careful-border); }
.rep .do.tradeoff b { color: var(--careful); }
.rep .do.tradeoff span { color: #78350F; }
/* A phone gets the label on its own line rather than a 40 pixel value column. */
@media (max-width: 560px) { .rep .do { display: block; } .rep .do b { display: block; margin-bottom: 4px; } }

/* Everything the card holds back: the research paragraph behind the verdict,
 * and the rest of a check's note. Open is the exception, not the default. */
.rep details.finding, .rep details.more { margin-top: 12px; }
.rep details.more { margin-top: 10px; }
.rep details.finding > summary, .rep details.more > summary {
  cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 650;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.rep details > summary::-webkit-details-marker { display: none; }
.rep details > summary::after { content: "\203A"; transform: rotate(90deg); font-size: 16px; line-height: 1; }
.rep details[open] > summary::after { transform: rotate(-90deg); }
.rep details.finding > summary { font-size: 14.5px; }
.rep details.finding > p, .rep details.more > p {
  margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--body);
}
.rep details.more > p { font-size: 15px; }
