:root {
  color-scheme: light;
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --navy: #14213d;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --red: #d64545;
  --green: #16a34a;
  --amber: #f59e0b;
  --risk: #b91c1c;
  --unknown: #94a3b8;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); max-width: 960px; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.12rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-logo { width: clamp(210px, 24vw, 288px); height: auto; }

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.92rem;
}

.site-nav a,
.site-footer nav a {
  color: var(--ink);
  font-weight: 650;
}

.site-nav a:hover,
.site-footer nav a:hover { color: var(--accent); }

.site-nav .nav-cta {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
}

.site-nav .nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

main {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--navy);
}

.site-footer p { max-width: 680px; margin: 0; color: #cbd5e1; }
.site-footer strong { color: #fff; }
.site-footer nav a { color: #e2e8f0; }

.footer-copy,
.footer-navs {
  display: grid;
  gap: 12px;
}

.footer-disclaimer {
  color: #94a3b8;
  font-size: 0.88rem;
}

.privacy-settings {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.privacy-settings:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100% - 36px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  padding: 18px;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent h2 { font-size: 1.08rem; margin-bottom: 6px; }
.cookie-consent p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.cookie-actions { display: flex; align-items: center; gap: 10px; }

.hero,
.page-header,
.detail-hero {
  padding: clamp(42px, 6vw, 76px) 0 32px;
}

.hero,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.hero-copy,
.detail-copy { min-width: 0; }

.lede {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.25vw, 1.17rem);
}

.eyebrow {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-panel,
.buyer-panel,
.mini-panel,
.card,
.row-card,
.facts,
.form-panel,
.source-note,
.prose,
.filter-panel,
.metric-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel,
.buyer-panel,
.mini-panel,
.facts,
.form-panel,
.source-note,
.prose,
.filter-panel,
.metric-panel { padding: 22px; }

.hero-panel {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.hero-panel h2 { font-size: 1.42rem; }

.check-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #334155;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #dcfce7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.actions.stacked { display: grid; }

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.button:hover,
button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}

.button.secondary:hover {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent-dark);
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-strip div {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child { border-right: 0; }
.signal-strip strong { display: block; color: var(--navy); font-size: 1.04rem; margin-bottom: 8px; }
.signal-strip span { color: var(--muted); font-size: 0.93rem; }

.metric-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.metric {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.metric strong { display: block; color: var(--navy); font-size: 1.35rem; line-height: 1; }
.metric span { color: var(--muted); font-size: 0.84rem; }

.grid-section { margin-top: 48px; }
.grid-section.flush { margin-top: 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > a { font-weight: 750; white-space: nowrap; }
.compact-heading { align-items: center; margin-bottom: 12px; }
.compact-heading h2 { font-size: 1.08rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.featured-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.directory-grid { align-items: stretch; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card p,
.row-card p,
.buyer-panel p,
.mini-panel p { color: var(--muted); }

.card-body { padding: 18px; }

.media-tile {
  display: grid;
  place-items: center;
  height: 210px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.08), rgba(37, 99, 235, 0.08)),
    var(--paper-soft);
  overflow: hidden;
}

.media-tile:hover { text-decoration: none; }
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.placeholder-robot,
.logo-tile span,
.logo-media span {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 850;
  text-transform: uppercase;
}

.placeholder-robot {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  font-size: 1.25rem;
}

.placeholder-robot.large {
  width: 118px;
  height: 118px;
  font-size: 2rem;
}

.card-kicker,
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-kicker {
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge.blue { border-color: #bfdbfe; background: var(--accent-soft); color: var(--accent-dark); }
.badge.green { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.badge.amber { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.badge.red { border-color: #fecaca; background: #fef2f2; color: var(--risk); }
.badge.navy { border-color: #cbd5e1; background: #f8fafc; color: var(--navy); }

.supplier-card { padding: 18px; }

.supplier-topline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.logo-tile {
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  overflow: hidden;
}

.logo-tile:hover { text-decoration: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.logo-tile span { font-size: 0.95rem; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.meta-grid.compact {
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd { margin: 0; min-width: 0; color: var(--ink); }

.text-link {
  display: inline-flex;
  margin-top: 15px;
  font-weight: 750;
}

.split-section,
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.buyer-panel {
  position: sticky;
  top: 92px;
  border-left: 3px solid var(--red);
}

.list-stack { display: grid; gap: 12px; }

.row-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.row-card time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-row h3 { font-size: 1.18rem; }

.side-stack { display: grid; gap: 16px; }
.mini-list { display: grid; gap: 11px; }
.mini-list a { color: var(--ink); font-weight: 720; }

.empty {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
}

.filters,
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-panel {
  align-items: end;
  box-shadow: var(--shadow);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select[multiple] { min-height: 132px; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.filters input,
.filter-panel input { flex: 1 1 280px; }
.filters select,
.filter-panel select { flex: 0 1 230px; }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.two-column article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.two-column article h2 { margin-top: 30px; }
.two-column article h2:first-child { margin-top: 0; }

.facts { position: sticky; top: 92px; }
.facts dl { display: grid; gap: 13px; margin-bottom: 0; }
.facts p { color: var(--muted); margin-top: 18px; }

.detail-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); }

.detail-media {
  display: grid;
  place-items: center;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.08), rgba(37, 99, 235, 0.08)),
    var(--paper-soft);
  overflow: hidden;
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.logo-media { height: 300px; background: var(--paper); }
.logo-media img { object-fit: contain; padding: 42px; }

.logo-media span {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-soft);
  font-size: 2rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  aspect-ratio: 16 / 9;
  margin-bottom: 26px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

tr:last-child > th,
tr:last-child > td { border-bottom: 0; }

th {
  background: var(--paper-soft);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 750;
}

td { color: var(--ink); font-size: 0.94rem; }
tbody tr:nth-child(even) td { background: #fbfdff; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.compare-table {
  min-width: 920px;
  table-layout: auto;
}

.compare-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  width: 180px;
}

.compare-table td,
.compare-table th:not(:first-child) {
  min-width: 260px;
}

.compare-table td:first-child { position: sticky; left: 0; }

.compare-picker select { flex: 1 1 360px; }

.selected-robots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.selected-robot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 4px 4px 12px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.selected-robot button {
  min-height: 30px;
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.selected-robot button:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--risk);
}

.article-detail,
.form-panel {
  max-width: 860px;
  margin: 0 auto;
}

.article-detail .page-header { padding-bottom: 20px; }

.article-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}

.prose {
  color: #334155;
  font-size: 1.03rem;
}

.legal-page,
.legal-content {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.legal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
}

.legal-content h2 {
  margin-top: 26px;
  font-size: 1.18rem;
}

.legal-content h2:first-child { margin-top: 0; }

.prose p:last-child { margin-bottom: 0; }
.byline { color: var(--muted); font-weight: 650; }
.source-note { margin-top: 14px; color: var(--muted); }

.messages {
  width: min(1240px, calc(100% - 36px));
  margin: 16px auto 0;
}

.messages p {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  padding: 12px 14px;
}

.form-panel p { display: grid; gap: 6px; }
.form-panel label { color: var(--navy); font-weight: 700; }
.helptext { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .detail-hero,
  .split-section,
  .news-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .metric-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .buyer-panel,
  .facts { position: static; }

  .cookie-consent {
    grid-template-columns: 1fr;
  }

  .compare-table thead th { top: 0; }
}

@media (max-width: 640px) {
  main { width: min(100% - 28px, 1240px); }
  h1 { font-size: 2.28rem; }

  .site-nav { gap: 8px 12px; }
  .site-nav .nav-cta { padding: 0; border: 0; background: transparent; color: var(--accent); }
  .cookie-actions { align-items: stretch; flex-direction: column; }

  .hero,
  .page-header,
  .detail-hero { padding-top: 34px; }

  .signal-strip,
  .metric-panel,
  .two-up { grid-template-columns: 1fr; }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child { border-bottom: 0; }

  .section-heading,
  .row-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .meta-grid { grid-template-columns: 1fr; }
  .media-tile { height: 190px; }
  .detail-media { height: 260px; }
  .two-column article { padding: 18px; }
}
