/* FactOrNot sample report: brand style, calmer than the homepage. 8px grid. */
:root {
  --paper: #fffdf5; --white: #fff; --ink: #111; --muted: #4a4a4a; --line: #e4dfcf;
  --yellow: #ffd426; --green: #007a43; --green-soft: #e8f9f0;
  --red: #c81e23; --red-soft: #fdecec; --cyan: #009fe3; --cyan-soft: #e3f4fc;
  --display: "Bangers", Impact, "Arial Black", sans-serif;
  --body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.55;
  background-image: radial-gradient(rgba(17,17,17,.10) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
a { color: inherit; }
.r-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }

/* Sample ribbon + sheet */
.r-ribbon {
  background: var(--yellow); border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 8px 16px;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between;
}
.r-sheet {
  background: var(--white); border: 3px solid var(--ink); border-radius: 0 0 12px 12px;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}

/* Header strip */
.r-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px; border-bottom: 3px solid var(--ink);
}
.r-head img { display: block; width: 168px; height: auto; }
.r-meta { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 16px; font-size: 13px; }
.r-meta dt { color: var(--muted); }
.r-meta dd { margin: 0; font-weight: 700; text-align: right; }
.r-brief {
  display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink);
}
.r-brief div { padding: 16px 24px; border-right: 1.5px solid var(--line); }
.r-brief div:last-child { border-right: 0; }
.r-brief span { display: block; font-size: 12px; color: var(--muted); }
.r-brief strong { display: block; font-size: 14px; }

/* Sections */
.r-sec { padding: 32px 24px; border-bottom: 1.5px solid var(--line); break-inside: avoid; }
.r-sec:last-of-type { border-bottom: 0; }
.r-h {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
  font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .03em; line-height: 1;
}
.r-h .n {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px;
  border: 2.5px solid var(--ink); border-radius: 6px; font-size: 20px; color: var(--white);
  background: var(--acc, var(--ink));
}
.r-lead { margin: 0 0 16px; max-width: 64ch; }
.r-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.acc-red { --acc: var(--red); } .acc-green { --acc: var(--green); }
.acc-cyan { --acc: var(--cyan); } .acc-ink { --acc: var(--ink); }

/* Verdict */
.r-verdict { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.r-stamp {
  justify-self: center; transform: rotate(-6deg);
  border: 5px solid var(--red); outline: 2px solid var(--red); outline-offset: 4px;
  border-radius: 10px; padding: 8px 16px 4px; color: var(--red); text-align: center;
  font-family: var(--display); line-height: .9; background: var(--red-soft);
}
.r-stamp b { display: block; font-size: 64px; font-weight: 400; letter-spacing: .02em; }
.r-stamp small { display: block; font-size: 17px; letter-spacing: .12em; padding-bottom: 6px; }
.r-why { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.r-ev { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.r-ev li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; font-size: 14px; }
.r-ev li span:first-child { font-weight: 700; }
.r-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.r-kpi { border: 2.5px solid var(--ink); border-radius: 10px; padding: 12px 16px; }
.r-kpi span { display: block; font-size: 12px; color: var(--muted); }
.r-kpi strong { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .02em; line-height: 1.1; }
.r-kpi em { font-style: normal; font-size: 13px; }
.r-kpi.good { background: var(--green-soft); }

/* Tables */
.r-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 2.5px solid var(--ink); }
.r-table th, .r-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.r-table thead th { background: var(--ink); color: var(--white); font-weight: 700; font-size: 13px; }
.r-table tbody th { font-weight: 700; width: 24%; }
.r-table tr:last-child > * { border-bottom: 0; }
.r-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-table tfoot td, .r-table tfoot th { border-top: 2.5px solid var(--ink); font-weight: 700; background: var(--yellow); }
.zh { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; white-space: nowrap; align-self: flex-start; padding: 1px 8px; border: 2px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.red { color: var(--red); } .tag.green { color: var(--green); }

/* Quote */
.r-quote {
  margin: 16px 0 0; padding: 16px; border: 2.5px solid var(--ink);
  border-radius: 8px; background: var(--green-soft);
}
.r-quote p { margin: 0; }
.r-quote .cn { font-size: 16px; font-weight: 700; }
.r-quote .en { margin-top: 4px; }
.r-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--muted); }

/* Alternative card */
.r-alt { border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.r-alt-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px; background: var(--green-soft); border-bottom: 2.5px solid var(--ink); }
.r-alt-top h3 { margin: 0; font-size: 17px; }
.r-alt-top p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.r-alt dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.r-alt dl div { padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
.r-alt dl div:nth-child(odd) { border-right: 1.5px solid var(--line); }
.r-alt dt { font-size: 12px; color: var(--muted); }
.r-alt dd { margin: 0; font-weight: 700; font-size: 14px; }
.r-alt-why { margin: 0; padding: 12px 16px; font-weight: 700; }

/* Steps + footer + CTA */
.r-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.r-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.r-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px;
  border: 2.5px solid var(--ink); border-radius: 50%; font-weight: 700; background: var(--yellow);
}
.r-foot { padding: 16px 24px; background: var(--ink); color: var(--white); font-size: 13px; display: grid; gap: 4px; }
.r-foot a { color: var(--yellow); }
.r-cta { margin-top: 32px; text-align: center; }
.r-cta p { margin: 0 0 16px; font-weight: 700; font-size: 17px; }
.r-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.r-btn {
  display: inline-block; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink); font-weight: 700; text-decoration: none; background: var(--white);
}
.r-btn.go { background: var(--green); color: var(--white); }
.r-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }

/* Phone */
@media (max-width: 680px) {
  body { font-size: 14px; }
  .r-head, .r-sec { padding-left: 16px; padding-right: 16px; }
  .r-head { padding-top: 16px; padding-bottom: 16px; }
  .r-meta dd { text-align: left; }
  .r-brief { grid-template-columns: 1fr 1fr; }
  .r-brief div { padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
  .r-brief div:nth-child(2n) { border-right: 0; }
  .r-h { font-size: 26px; }
  .r-verdict { grid-template-columns: 1fr; gap: 16px; }
  .r-stamp b { font-size: 52px; }
  .r-ev li { grid-template-columns: 1fr; gap: 0; }
  .r-kpis { grid-template-columns: 1fr; gap: 8px; }
  .r-alt dl { grid-template-columns: 1fr; }
  .r-alt dl div:nth-child(odd) { border-right: 0; }
  /* stacked tables */
  .r-table.stack thead { display: none; }
  .r-table.stack tr { display: block; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
  .r-table.stack tr:last-child { border-bottom: 0; }
  .r-table.stack th, .r-table.stack td { display: block; width: auto; border: 0; padding: 4px 12px; }
  .r-table.stack td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
  .r-ribbon { font-size: 12px; }
}

/* Print / PDF (A4) */
@page { size: A4; margin: 12mm; }
@media print {
  body { background: none; font-size: 10pt; }
  .r-wrap { max-width: none; padding: 0; }
  .r-sheet { box-shadow: none; }
  .r-cta { display: none; }
  .r-sec { padding: 16px 20px; }
  .r-sec.break { break-before: page; }
  .r-btn:hover { transform: none; }
}
