/* ReviewQuorum identity — loaded after site.css (shared base components).
   Navy primary, teal accent, amber for alerts/disagreement, light-grey page.
   Text/background pairs are chosen for WCAG AA contrast in both themes. */
:root{
  --rq-navy:#0b1f3a; --rq-navy-700:#16325c; --rq-navy-50:#e8eef7;
  --rq-teal:#0f766e; --rq-teal-strong:#115e59; --rq-teal-bright:#2dd4bf; --rq-teal-50:#e6f6f3;
  --rq-amber:#92400e; --rq-amber-50:#fef3c7; --rq-amber-border:#f59e0b;
  --rq-radius:10px;

  --brand-primary:var(--rq-teal); --brand-primary-hover:var(--rq-teal-strong); --brand-primary-tint:var(--rq-teal-50);
  --brand-solid:var(--rq-teal); --brand-solid-hover:var(--rq-teal-strong);
  --accent-link:#0b5f8a; --accent-link-hover:var(--rq-navy);
  --text-primary:#0f172a; --text-secondary:#334155; --text-muted:#566276; --text-on-brand:#ffffff;
  --surface-page:#f3f5f8; --surface-card:#ffffff; --surface-sunken:#e9edf2; --surface-inverse:var(--rq-navy);
  --border-default:#dde3ea; --border-input:#c3ccd8;
  --color-ink-900:var(--rq-navy); --color-ink-800:var(--rq-navy-700);
}
html[data-theme="dark"]{
  --rq-teal:#5eead4; --rq-teal-strong:#99f6e4; --rq-teal-50:#0d2f2c;
  --rq-amber:#fcd34d; --rq-amber-50:#33260a; --rq-amber-border:#b45309;
  --rq-navy-50:#16233b;
  --brand-primary:#2dd4bf; --brand-solid:#0f766e; --brand-solid-hover:#115e59; --brand-primary-tint:#0d2f2c;
  --accent-link:#7dd3fc; --accent-link-hover:#e0f2fe;
  --text-primary:#eef2f7; --text-secondary:#c5cdd9; --text-muted:#9aa6b8;
  --surface-page:#0b1220; --surface-card:#111a2e; --surface-sunken:#17223a; --surface-inverse:#060d1a;
  --border-default:#223049; --border-input:#324261;
}

body{ font-family:var(--font-body); }
.btn{ border-radius:8px; }
:focus-visible{ outline:3px solid var(--brand-primary); outline-offset:2px; }
.skip-link{ position:absolute; left:-9999px; top:8px; z-index:100; background:var(--rq-navy); color:#fff; padding:10px 14px; border-radius:6px; }
.skip-link:focus{ left:8px; color:#fff; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- Header / footer ---- */
.rq-header{ position:sticky; top:0; z-index:50; background:var(--surface-card); border-bottom:1px solid var(--border-default); }
.rq-header .header-inner{ min-height:64px; }
@media (min-width:1200px){ .rq-header .header-inner{ min-height:68px; } }
.rq-logo{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--text-primary); }
.rq-logo:hover{ color:var(--text-primary); }
.rq-logo__word{ font-weight:800; font-size:21px; letter-spacing:-.3px; }
.rq-logo__word b{ color:var(--rq-teal); font-weight:800; }
.rq-logo svg{ width:34px; height:34px; flex-shrink:0; }
.rq-header .nav-link{ text-transform:none; font-size:14px; font-weight:600; letter-spacing:0; }
.rq-icon-btn{ width:40px; height:40px; border:1px solid var(--border-input); background:var(--surface-card); color:var(--text-primary); cursor:pointer; border-radius:8px; font-size:15px; display:inline-flex; align-items:center; justify-content:center; }
.rq-footer{ background:var(--surface-inverse); color:#c9d3e1; margin-top:64px; }
.rq-footer a{ color:#e2e8f0; text-decoration:none; }
.rq-footer a:hover{ color:#fff; text-decoration:underline; }
.rq-footer__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:32px; padding-top:48px; padding-bottom:32px; }
.rq-footer__grid > *{ min-width:0; }
/* Phones: brand + newsletter across the top, link lists two by two. */
@media (max-width:640px){ .rq-footer__grid{ grid-template-columns:1fr 1fr; gap:28px 20px; padding-top:36px; } .rq-footer__brand{ grid-column:1 / -1; } }
.rq-footer__title{ color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin:0 0 12px; }
.rq-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; font-size:14px; }
.rq-footer__legal{ border-top:1px solid rgba(255,255,255,.12); padding-top:18px; padding-bottom:18px; font-size:12px; color:#aab6c8; display:flex; gap:16px; flex-wrap:wrap; justify-content:space-between; }

/* ---- Layout helpers ---- */
.rq-section{ padding-top:40px; padding-bottom:8px; }
.rq-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.rq-grid--2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; }
.rq-card{ background:var(--surface-card); border:1px solid var(--border-default); border-radius:var(--rq-radius); padding:20px; }
.rq-card--link{ display:block; color:inherit; text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.rq-card--link:hover{ border-color:var(--border-input); box-shadow:0 4px 18px rgba(11,31,58,.08); color:inherit; }
.rq-h1{ font-size:clamp(28px,4.5vw,40px); line-height:1.15; letter-spacing:-.5px; font-weight:800; margin:0; }
.rq-h2{ font-size:22px; line-height:1.25; font-weight:800; margin:0 0 14px; letter-spacing:-.2px; }
.rq-h3{ font-size:16px; line-height:1.3; font-weight:700; margin:0 0 8px; }
.rq-lead{ font-size:17px; line-height:1.6; color:var(--text-secondary); }
.rq-muted{ color:var(--text-muted); font-size:13px; }
.rq-prose{ font-size:16px; line-height:1.7; color:var(--text-secondary); max-width:74ch; }
.rq-prose h2{ color:var(--text-primary); font-size:21px; margin:32px 0 10px; }
.rq-prose h3{ color:var(--text-primary); font-size:17px; margin:24px 0 8px; }
.rq-prose li{ margin-bottom:6px; }
.rq-prose code{ background:var(--surface-sunken); padding:1px 5px; border-radius:4px; font-size:14px; }

/* ---- Hero ---- */
.rq-hero{ background:var(--rq-navy); color:#fff; padding:clamp(40px,8vw,80px) 0 clamp(36px,6vw,56px); }
.rq-hero__title{ font-size:clamp(32px,6vw,54px); line-height:1.05; font-weight:800; letter-spacing:-1px; margin:0 0 16px; }
.rq-hero__title span{ color:var(--rq-teal-bright); }
.rq-hero__text{ font-size:clamp(16px,2.2vw,19px); line-height:1.55; color:#cfd9e8; max-width:62ch; margin:0 0 28px; }
.rq-search{ display:flex; max-width:640px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.rq-search input{ flex:1; min-width:0; border:0; padding:16px 18px; font-size:16px; font-family:var(--font-body); color:#0f172a; background:#fff; }
.rq-search button{ border:0; background:var(--rq-teal); color:#fff; padding:0 22px; font-weight:700; font-size:15px; cursor:pointer; font-family:var(--font-body); }
html[data-theme="dark"] .rq-search button{ background:#0f766e; }
.rq-search button:hover{ background:#115e59; }
.rq-hero__examples{ margin-top:14px; font-size:13px; color:#b7c3d6; }
.rq-hero__examples a{ color:#e2e8f0; }

/* ---- Chips & badges ---- */
.rq-chip{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--surface-sunken); color:var(--text-secondary); text-decoration:none; border:1px solid var(--border-default); }
a.rq-chip:hover{ border-color:var(--border-input); color:var(--text-primary); }
.rq-demo{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; padding:3px 8px; border-radius:6px; background:var(--rq-amber-50); color:var(--rq-amber); border:1px solid var(--rq-amber-border); }
.rq-demo-banner{ background:var(--rq-amber-50); color:var(--rq-amber); border-bottom:1px solid var(--rq-amber-border); font-size:13px; padding:10px 0; }
.rq-stage{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; background:var(--rq-navy-50); color:var(--text-primary); }
.rq-stage--verdict{ background:var(--rq-teal-50); color:var(--rq-teal); }
.rq-conf{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; border:1px solid; }
.rq-conf--HIGH{ color:var(--rq-teal); border-color:var(--rq-teal); background:var(--rq-teal-50); }
.rq-conf--MEDIUM{ color:var(--text-primary); border-color:var(--border-input); background:var(--surface-sunken); }
.rq-conf--LOW{ color:var(--rq-amber); border-color:var(--rq-amber-border); background:var(--rq-amber-50); }

/* ---- Score ---- */
.rq-score{ display:inline-flex; align-items:baseline; gap:2px; font-weight:800; color:var(--text-primary); line-height:1; }
.rq-score__num{ font-size:30px; letter-spacing:-1px; }
.rq-score__max{ font-size:13px; color:var(--text-muted); font-weight:600; }
.rq-score--lg .rq-score__num{ font-size:56px; }
.rq-score--lg .rq-score__max{ font-size:18px; }
.rq-score-ring{ width:112px; height:112px; flex-shrink:0; }
.rq-score-ring circle{ fill:none; stroke-width:10; }
.rq-score-ring .bg{ stroke:var(--surface-sunken); }
.rq-score-ring .fg{ stroke:var(--rq-teal); stroke-linecap:round; transform:rotate(-90deg); transform-origin:50% 50%; }
.rq-score-ring text{ fill:var(--text-primary); font-weight:800; font-family:var(--font-body); }
.rq-noscore{ font-size:13px; font-weight:700; color:var(--text-muted); }

/* ---- Verdict summary panel ---- */
.rq-summary{ display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:center; }
@media (max-width:640px){ .rq-summary{ grid-template-columns:1fr; } }
.rq-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.rq-stat{ background:var(--surface-sunken); border-radius:8px; padding:10px 12px; }
.rq-stat__label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-muted); }
.rq-stat__value{ font-size:17px; font-weight:800; color:var(--text-primary); margin-top:2px; }

/* ---- Evidence layers: always visually distinct (prompt "Sempre diferencie") ---- */
.rq-layer{ border-left:4px solid; padding-left:16px; }
.rq-layer--consensus{ border-color:var(--rq-teal); }
.rq-layer--editorial{ border-color:var(--rq-navy); }
html[data-theme="dark"] .rq-layer--editorial{ border-color:#7dd3fc; }
.rq-layer--source{ border-color:#64748b; }
.rq-layer--maker{ border-color:#94a3b8; border-left-style:dashed; }
.rq-layer--split{ border-color:var(--rq-amber-border); }
.rq-layer--buyer{ border-color:#7c3aed; }
.rq-layer--creator{ border-color:#db2777; }
html[data-theme="dark"] .rq-layer--buyer{ border-color:#a78bfa; }
html[data-theme="dark"] .rq-layer--creator{ border-color:#f472b6; }
.rq-layer-tag{ display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:6px; }

/* ---- Lists ---- */
.rq-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.rq-list li{ display:grid; grid-template-columns:22px 1fr; gap:8px; font-size:15px; line-height:1.5; color:var(--text-secondary); }
.rq-list__icon{ font-weight:800; }
.rq-list--plus .rq-list__icon{ color:var(--rq-teal); }
.rq-list--minus .rq-list__icon{ color:#b91c1c; }
html[data-theme="dark"] .rq-list--minus .rq-list__icon{ color:#fca5a5; }
.rq-list--split .rq-list__icon{ color:var(--rq-amber); }
.rq-count{ font-size:12px; color:var(--text-muted); white-space:nowrap; }
.rq-evidence{ font-size:13px; color:var(--text-muted); margin-top:4px; }
.rq-evidence summary{ cursor:pointer; color:var(--accent-link); }
.rq-evidence ul{ margin:6px 0 0; padding-left:18px; }

/* ---- Attribute bars ---- */
.rq-attr{ display:grid; grid-template-columns:minmax(110px,180px) 1fr auto; gap:12px; align-items:center; font-size:14px; padding:8px 0; border-bottom:1px solid var(--border-default); }
.rq-attr:last-child{ border-bottom:0; }
.rq-bar{ height:10px; background:var(--surface-sunken); border-radius:999px; overflow:hidden; display:flex; }
.rq-bar span{ display:block; height:100%; }
.rq-bar .pos{ background:var(--rq-teal); }
.rq-bar .mix{ background:#94a3b8; }
.rq-bar .neg{ background:var(--rq-amber-border); }
.rq-bar .score{ background:var(--rq-navy-700); }
html[data-theme="dark"] .rq-bar .score{ background:#7dd3fc; }
@media (max-width:560px){ .rq-attr{ grid-template-columns:1fr auto; } .rq-attr .rq-bar{ grid-column:1 / -1; order:3; } }

/* ---- Tables ---- */
.rq-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border-default); border-radius:var(--rq-radius); background:var(--surface-card); }
.rq-table{ width:100%; border-collapse:collapse; font-size:14px; min-width:620px; }
/* Key/value tables (specifications): narrower, still scrolls sideways on phones. */
.rq-table--kv{ min-width:520px; }
.rq-table--kv th[scope=row]{ white-space:normal; min-width:120px; }
.rq-table--kv th[scope=row]{ width:32%; font-size:13px; text-transform:none; letter-spacing:0; font-weight:600; background:none; border-bottom:0; border-top:1px solid var(--border-default); vertical-align:top; }
.rq-table--kv td{ color:var(--text-primary); }
.rq-table--kv tr:first-child th{ border-top:0; }
.rq-table th{ text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-muted); padding:10px 12px; border-bottom:1px solid var(--border-default); background:var(--surface-sunken); }
.rq-table td{ padding:10px 12px; border-top:1px solid var(--border-default); vertical-align:top; color:var(--text-secondary); }
.rq-table tr:first-child td{ border-top:0; }
.rq-table .num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
/* Cells never squeeze: short columns stay on one line and the table scrolls
   sideways inside .rq-table-wrap. Long-text columns opt in with .wrap. */
.rq-table th, .rq-table td{ white-space:nowrap; }
.rq-table .wrap, .rq-table--kv td{ white-space:normal; min-width:240px; }
.rq-table .rq-count{ white-space:nowrap; }

/* ---- Notices ---- */
.rq-notice{ border-radius:var(--rq-radius); padding:16px 18px; border:1px solid var(--border-default); background:var(--surface-card); }
.rq-notice--amber{ background:var(--rq-amber-50); border-color:var(--rq-amber-border); color:var(--rq-amber); }
.rq-notice--amber a{ color:inherit; }
.rq-disclosure{ font-size:13px; color:var(--text-muted); background:var(--surface-sunken); border-radius:8px; padding:10px 12px; }

/* ---- Lifecycle tracker ---- */
.rq-steps{ display:flex; gap:0; list-style:none; margin:0; padding:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rq-steps li{ flex:1 0 110px; font-size:12px; line-height:1.3; color:var(--text-muted); padding:10px 6px 0; border-top:4px solid var(--surface-sunken); }
.rq-steps li.done{ border-top-color:var(--rq-teal); color:var(--text-secondary); }
.rq-steps li.current{ border-top-color:var(--rq-navy); color:var(--text-primary); font-weight:700; }
html[data-theme="dark"] .rq-steps li.current{ border-top-color:#7dd3fc; }

/* ---- Product card ---- */
.rq-pcard{ display:flex; flex-direction:column; gap:10px; height:100%; }
.rq-pcard__top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.rq-pcard__name{ font-size:16px; font-weight:700; color:var(--text-primary); line-height:1.3; }
.rq-pcard__meta{ font-size:12px; color:var(--text-muted); }
.rq-pcard__foot{ margin-top:auto; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.rq-pcard img{ width:100%; height:150px; object-fit:contain; background:var(--surface-sunken); border-radius:8px; }

/* ---- Offers ---- */
.rq-offer{ display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border-default); }
.rq-offer:last-child{ border-bottom:0; }
@media (max-width:560px){ .rq-offer{ grid-template-columns:1fr auto; } .rq-offer .btn{ grid-column:1 / -1; } }

/* ---- Compare ---- */
.rq-vs{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:640px){ .rq-vs{ grid-template-columns:1fr; } }
.rq-win{ color:var(--rq-teal); font-weight:800; }

/* ---- Forms (public) ---- */
.rq-input, .rq-textarea{ width:100%; padding:12px 14px; border:1px solid var(--border-input); border-radius:8px; background:var(--surface-card); color:var(--text-primary); font-size:15px; font-family:var(--font-body); }
.rq-textarea{ min-height:140px; resize:vertical; }
.rq-label{ display:block; font-size:13px; font-weight:700; margin:0 0 6px; color:var(--text-primary); }

/* Newsletter on the navy footer */
.rq-footer .newsletter__input{ background:#0f2848; border-color:#2c4670; border-radius:8px 0 0 8px; min-width:0; font-size:16px; }
.rq-footer .newsletter__submit{ background:var(--rq-teal-bright); color:#062a26; border-radius:0 8px 8px 0; flex-shrink:0; font-size:14px; padding:0 16px; }
.rq-footer .newsletter__consent{ align-items:flex-start; font-size:12px; line-height:1.5; margin-top:12px; }
.rq-footer .newsletter__consent input{ margin:2px 0 0; flex-shrink:0; width:16px; height:16px; }
.rq-footer .newsletter__submit:hover{ background:#5eead4; color:#062a26; }

/* The hamburger only exists below the desktop breakpoint (site.css uses 1200px). */
.nav-toggle.rq-icon-btn{ display:none; }
@media (max-width:1199px){ .nav-toggle.rq-icon-btn{ display:inline-flex; } }

/* Grid/flex children must be allowed to shrink, and long evidence text (URLs,
   channel notes) must wrap instead of widening the page. */
.rq-grid > *, .rq-grid--2 > *, .rq-vs > *, .rq-summary > *{ min-width:0; }
.rq-card, .rq-notice, .rq-prose{ overflow-wrap:break-word; }
.rq-count, .rq-evidence{ overflow-wrap:anywhere; }
.rq-table-wrap .rq-count, .rq-table-wrap .rq-evidence{ overflow-wrap:break-word; }
/* .rq-count is nowrap for short inline counts; as a block it holds notes. */
div.rq-count, p.rq-count{ white-space:normal; }
/* Phones: tighter card and evidence-layer insets leave more width for content. */
@media (max-width:480px){ .rq-card{ padding:16px; } .rq-layer{ padding-left:12px; } }
/* Small phones: logo, search, theme and menu must share one row. */
@media (max-width:420px){ .rq-header .header-inner{ gap:8px; } .rq-logo{ gap:8px; } .rq-logo svg{ width:28px; height:28px; } .rq-logo__word{ font-size:18px; } .rq-header .rq-icon-btn{ width:38px; height:38px; } .rq-header .header-inner > div{ gap:6px !important; } }
@media (max-width:339px){ .rq-logo svg{ display:none; } }
.rq-byline{ font-size:14px; color:var(--text-muted); margin:12px 0 0; }
.rq-byline strong{ color:var(--text-primary); font-weight:700; }
