/* Chemical result: the live Chemical Check (check.html) and every /chemical/<slug> page share this look (2026-11-07).
   Phone first: name, verdict and the four answers people came for (duty, rules, export, safety) fit on the first screen. */
.r-green { --c: #15803D; --cbg: #DCFCE7; } .r-amber { --c: #B45309; --cbg: #FEF3C7; }
.r-red { --c: #BE123C; --cbg: #FFE4E6; } .r-grey { --c: #475569; --cbg: #F1F5F9; }

.r-id { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.r-name { font: 600 clamp(26px, 4vw, 38px)/1.12 var(--xiq-head); color: var(--xiq-navy); letter-spacing: -.02em; margin: 0; }
.r-name small { display: block; font: 500 15px/1.4 var(--xiq-body); color: var(--xiq-muted); letter-spacing: 0; margin-top: 6px; }
.r-meta { color: var(--xiq-muted); font-size: 14px; margin-top: 6px; overflow-wrap: anywhere; }
.r-meta b { color: var(--xiq-ink); font-weight: 600; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.r-mol { flex: 0 0 150px; height: 120px; background: #fff; border: 1px solid var(--xiq-line); display: grid; place-items: center; overflow: hidden; }
.r-mol svg { width: 100%; height: 100%; }

.r-verdict { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; padding: 13px 16px; background: var(--cbg); color: var(--c);
  border-left: 5px solid var(--c); font-weight: 600; font-size: 17px; line-height: 1.4; }
.r-verdict .r-ico { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 14px; }

.r-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--xiq-line); border: 1px solid var(--xiq-line); margin-top: 14px; }
.r-tile { position: relative; display: flex; flex-direction: column; gap: 4px; background: #fff; padding: 14px 16px 15px; text-decoration: none; color: inherit;
  border-top: 4px solid var(--c); transition: background .15s; }
.r-tile:hover { background: #FAFCFE; }
.r-tile-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 12px var(--xiq-body); letter-spacing: .07em;
  text-transform: uppercase; color: var(--xiq-muted); }
.r-tile b { font: 600 16.5px/1.3 var(--xiq-head); color: var(--xiq-ink); }
.r-tile .r-tile-d { font-size: 13px; color: var(--xiq-muted); }
.r-tag { font: 700 10.5px var(--xiq-body); letter-spacing: .06em; padding: 3px 7px; border-radius: 2px; background: var(--cbg); color: var(--c); white-space: nowrap; }

.r-summary { margin: 22px 0 0; font-size: 16.5px; color: #1E2A3D; max-width: 80ch; }
.r-asof { font-size: 13px; color: var(--xiq-muted); margin: 8px 0 0; }
.r-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.r-acts .xbtn, .r-acts .btn { border-radius: 4px; }

.r-h2 { font: 600 24px var(--xiq-head); color: var(--xiq-navy); margin: 44px 0 14px; letter-spacing: -.01em; }
.r-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.r-card { background: #fff; border: 1px solid var(--xiq-line); border-top: 4px solid var(--c); padding: 16px 20px 14px; display: flex; flex-direction: column;
  scroll-margin-top: 80px; }
.r-card h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 12.5px var(--xiq-body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--xiq-muted); }
.r-card .r-head { font: 600 18px/1.35 var(--xiq-head); color: var(--xiq-ink); margin: 8px 0 8px; }
.r-card ul { margin: 0 0 10px; padding-left: 18px; color: #2E3A50; font-size: 15px; }
.r-card li { margin: 4px 0; }
.r-card .r-cta { align-self: flex-start; margin: 2px 0 10px; padding: 8px 14px; background: var(--xiq-navy); color: #fff; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 14.5px; }
.r-card .r-cta:hover { background: var(--xiq-navy-2); }
.r-card .r-src { margin-top: auto; padding-top: 10px; border-top: 1px solid #EEF2F6; font-size: 12.5px; color: var(--xiq-muted); }
.r-card .r-src a { color: var(--xiq-teal-d); }
.r-more { display: none; align-self: flex-start; margin: 0 0 10px; padding: 0; border: 0; background: none; font: 600 14px var(--xiq-body);
  color: var(--xiq-teal-d); cursor: pointer; }

/* sticky section bar (chemical pages: the header scrolls away, this stays) */
.r-secbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--xiq-line); }
.r-secbar nav { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: 48px; }
.r-secbar nav::-webkit-scrollbar { display: none; }
.r-secbar a { display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--xiq-slate); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; }
.r-secbar a:hover { color: var(--xiq-navy); }
.r-secbar a.on { color: var(--xiq-navy); border-bottom-color: var(--xiq-teal); font-weight: 600; }

@media (max-width: 900px) { .r-glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .r-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .r-mol { flex-basis: 84px; height: 72px; }
  .r-verdict { font-size: 15.5px; padding: 11px 13px; margin-top: 14px; }
  .r-tile { padding: 11px 12px 12px; }
  .r-tile b { font-size: 14.5px; }
  .r-tile .r-tile-d { font-size: 12px; }
  .r-card { padding: 14px 16px 12px; }
  .r-card:not(.r-open) li:nth-child(n+4) { display: none; }
  .r-card:not(.r-open) .r-more { display: inline; }
  .r-h2 { font-size: 21px; margin-top: 34px; }
}
@media print {
  .r-secbar, .r-acts, .r-more { display: none !important; }
  .r-card li { display: list-item !important; }
  .r-card, .r-glance { break-inside: avoid; }
}
