/* Working Robots — engineering-catalogue look: paper background, strong type, one colour per industry */
:root {
  --paper: #f4f3ee; --panel: #ffffff; --ink: #15191b; --ink-2: #2f3639; --label: #4f585c; --line: #dcdad2; --line-2: #c9c6bc;
  --link: #1d4f8f; --focus: #1d4f8f;
  --farming: #2f6f3a; --livestock: #94570f; --grounds: #17725f; --energy: #8a6400; --construction: #b5431a;
  --ok: #2c6b33; --ok-bg: #e2efdf; --info: #1f548c; --info-bg: #e0eaf5; --warn: #87580a; --warn-bg: #f6ead2;
  --bad: #9d2f25; --bad-bg: #f6e0dc; --muted-bg: #ebe9e2;
  --f-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121516; --panel: #1a1f21; --ink: #eceeea; --ink-2: #cfd5d2; --label: #a9b2b0; --line: #2c3335; --line-2: #3b4447;
    --link: #8fb8f0; --focus: #8fb8f0;
    --farming: #85c98c; --livestock: #e3a75a; --grounds: #6fd0b9; --energy: #e7c15a; --construction: #f08a5f;
    --ok: #8fd098; --ok-bg: #1f3322; --info: #92bdf0; --info-bg: #1c2b3d; --warn: #e8bd6a; --warn-bg: #3a2e16;
    --bad: #f09a8f; --bad-bg: #3d211d; --muted-bg: #262c2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121516; --panel: #1a1f21; --ink: #eceeea; --ink-2: #cfd5d2; --label: #a9b2b0; --line: #2c3335; --line-2: #3b4447;
  --link: #8fb8f0; --focus: #8fb8f0;
  --farming: #85c98c; --livestock: #e3a75a; --grounds: #6fd0b9; --energy: #e7c15a; --construction: #f08a5f;
  --ok: #8fd098; --ok-bg: #1f3322; --info: #92bdf0; --info-bg: #1c2b3d; --warn: #e8bd6a; --warn-bg: #3a2e16;
  --bad: #f09a8f; --bad-bg: #3d211d; --muted-bg: #262c2e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--f-body);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; margin-top: 0; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
main.wrap { padding-bottom: 64px; }
section { margin: 40px 0; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 70ch; }
.sub { color: var(--label); font-size: 15px; }
.muted { color: var(--label); }
.small { font-size: 13px; }
.eyebrow { font: 600 13px/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--label); margin-bottom: 8px; }
.eyebrow a { color: inherit; }
.mini { font: 600 12px/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--label); margin: 0 0 10px; }

/* industry colour */
.ind-farming { --ind: var(--farming); } .ind-livestock { --ind: var(--livestock); } .ind-grounds { --ind: var(--grounds); }
.ind-energy { --ind: var(--energy); } .ind-construction { --ind: var(--construction); }
.glyph { width: 22px; height: 22px; color: var(--ind, var(--ink)); flex: none; }
.glyph.lg { width: 34px; height: 34px; }
.glyph.xl { width: 52px; height: 52px; }

/* header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo-lockup { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current] { background: var(--muted-bg); color: var(--ink); }
.top-search { margin-left: auto; }
.top-search input { width: 200px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 6px; font-size: 18px; padding: 4px 10px; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn:hover { background: var(--muted-bg); }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 900px) {
  .theme-btn { order: 1; margin-left: auto; }
  .menu-btn { order: 2; margin-left: 0; }
  .nav, .top-search { order: 3; }
  .menu-btn { display: block; }
  .nav, .top-search { display: none; width: 100%; }
  .top.open .nav { display: flex; flex-direction: column; padding-bottom: 8px; }
  .top.open .top-search { display: block; padding-bottom: 12px; margin: 0; }
  .top-search input { width: 100%; }
}

input[type="search"], select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 9px 12px; min-height: 42px; max-width: 100%;
}

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--label); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--label); }

/* hero */
.hero { padding: 48px 0 8px; }
.hero h1 { max-width: 20ch; }
.hero-search { display: flex; gap: 8px; max-width: 640px; margin: 24px 0; }
.hero-search input { flex: 1; min-height: 50px; font-size: 16px; }
.hero-search button, .btn {
  font: 600 15px var(--f-body); background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; padding: 0 20px;
  min-height: 46px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn { width: 100%; margin-top: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); margin-top: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 8px; }
.stat b { display: block; font: 800 34px/1 var(--f-head); }
.stat span { color: var(--label); font-size: 14px; }

/* industry blocks on home */
.ind-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.ind-head { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.ind-head h2 { margin: 0; }
.ind-head p { margin: 0; color: var(--label); font-size: 14px; }
.ind-head:hover h2 { text-decoration: underline; }
.ind-text { color: var(--ink-2); max-width: 80ch; margin: 14px 0 20px; }
.two { display: grid; gap: 24px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--muted-bg);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.chip:hover { border-color: var(--line-2); }
.chip .n { font: 500 12px var(--f-body); color: var(--label); font-variant-numeric: tabular-nums; }

/* tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--line-2); box-shadow: 0 4px 18px rgb(0 0 0 / .08); }
.tile-img { margin: -18px -18px 16px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted-bg); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-img.none { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ind) 10%, var(--panel)); }
.tile-img.none .glyph { width: 44px; height: 44px; opacity: .6; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tile.big { padding: 22px; }
.tile.big .tile-img { margin: -22px -22px 18px; aspect-ratio: 16 / 9; }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-head h2 { margin: 0; font-size: 24px; }
.tile.big p { font-size: 15px; margin-top: 10px; }
.tile-jobs { font-size: 13px !important; color: var(--label) !important; flex: 0 !important; margin: 0 0 12px !important; }
.tile h2, .tile h3 { margin: 10px 0 6px; }
.tiles.small .tile h3 { margin-top: 0; }
.tile p { color: var(--ink-2); font-size: 14px; flex: 1; }
.tile-n { font: 600 13px var(--f-body); color: var(--label); }

/* page head */
.page-head, .robot-head { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
.page-head .chips { margin-top: 12px; }
@media (max-width: 600px) { .page-head > .glyph, .robot-head > .glyph { display: none; } }
.head-meta, .card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.explain { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 860px) { .explain { grid-template-columns: 1fr 1fr; } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.box h2 { font-size: 20px; }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin: 4px 0; }

/* badges */
.badge { display: inline-block; font: 600 12px/1 var(--f-body); padding: 5px 8px; border-radius: 5px; letter-spacing: .02em; }
.badge.ok { color: var(--ok); background: var(--ok-bg); } .badge.info { color: var(--info); background: var(--info-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); } .badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.muted { color: var(--label); background: var(--muted-bg); }
.meta { font: 500 13px var(--f-body); color: var(--label); }
.meta.price { color: var(--ok); }
.notice { border-radius: 8px; padding: 10px 14px; margin: 16px 0; }
.notice.info { background: var(--info-bg); color: var(--info); } .notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); } .notice.muted { background: var(--muted-bg); }

/* makers table filter row */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 18px; }
.filters input[type="search"] { flex: 1 1 260px; }
.filters select { flex: 0 1 auto; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.count { margin: 0 0 0 auto; font: 500 14px var(--f-body); color: var(--label); }
@media (max-width: 600px) { .filters select { flex: 1 1 45%; } .count { margin-left: 0; width: 100%; } }

/* robot catalogue: facet sidebar + results */
.catalog { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 250px minmax(0, 1fr); } }
.facets { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.facets-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.facets-head h2 { font-size: 18px; margin: 0; }
.facets-head .x { background: none; border: 0; font-size: 20px; color: var(--ink); cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
.facets-head .x:hover { background: var(--muted-bg); }
.facets-body { padding: 0 16px 8px; }
.facet { border-top: 1px solid var(--line); padding: 10px 0; }
.facet:first-child { border-top: 0; }
.facet summary { font: 600 14px var(--f-body); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "−"; color: var(--label); font-weight: 400; font-size: 18px; line-height: 1; }
.facet:not([open]) summary::after { content: "+"; }
.facet ul { list-style: none; margin: 4px 0 0; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--ink); cursor: pointer; line-height: 1.3; }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; cursor: pointer; }
.opt-l { flex: 1; }
.opt .n { font: 500 12px var(--f-body); color: var(--label); font-variant-numeric: tabular-nums; }
.opt.zero { opacity: .45; }
.opt:hover .opt-l { text-decoration: underline; text-underline-offset: 2px; }
.opts-more { background: none; border: 0; padding: 4px 0; color: var(--link); font: 500 14px var(--f-body); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; }
.facets-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facets-foot .btn { margin: 0; width: auto; flex: 1; min-height: 44px; white-space: nowrap; padding: 0 12px; }
.facet[hidden], .facet li[hidden], .opts-more[hidden] { display: none; }
.facets-backdrop { display: none; }
@media (min-width: 1000px) {
  .facets { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
  .facets-body { overflow: auto; }
  .facets-head .x, .facets-foot .btn:not(.ghost), .filters-btn { display: none !important; }
}

.results-title { margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 280px; position: relative; display: flex; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--label); pointer-events: none; }
.search input { width: 100%; padding-left: 38px; min-height: 46px; font-size: 16px; }
.filters-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--ink); font: 600 15px var(--f-body); cursor: pointer; }
.badge-n { background: var(--ink); color: var(--paper); border-radius: 999px; font: 600 12px/1 var(--f-body); padding: 4px 7px; }
.badge-n[hidden] { display: none; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--label); }
.sort select { min-height: 46px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 16px; min-height: 34px; }
.status .count { margin: 0; font: 15px var(--f-body); color: var(--ink-2); }
.status .count b { color: var(--ink); font-weight: 700; }
.active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-x { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); font: 500 13px var(--f-body); cursor: pointer; }
.chip-x:hover { border-color: var(--ink); }
.chip-x span:last-child { font-size: 11px; color: var(--label); }
.clear-link { background: none; border: 0; color: var(--link); font: 500 13px var(--f-body); text-decoration: underline; cursor: pointer; padding: 4px; }
.more { display: block; margin: 24px auto 0; width: auto; padding: 0 28px; }
.more[hidden] { display: none; }
.empty .btn { width: auto; display: inline-flex; padding: 0 20px; margin-top: 4px; }
.empty[hidden] { display: none; }

@media (max-width: 999px) {
  .facets { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); border-radius: 0; border: 0;
    display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .2s ease; visibility: hidden; }
  .facets-body { flex: 1; overflow: auto; overscroll-behavior: contain; }
  .catalog.facets-open .facets { transform: none; visibility: visible; box-shadow: 0 0 40px rgb(0 0 0 / .3); }
  .catalog.facets-open .facets-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: rgb(0 0 0 / .45); }
}
@media (max-width: 600px) {
  .filters-btn, .sort { flex: 1 1 40%; }
  .sort span { display: none; }
  .sort select { width: 100%; }
}

/* robot cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.two-col { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.card:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgb(0 0 0 / .06); }
.card-top { display: flex; gap: 8px; align-items: center; }
.card-img { margin: -16px -16px 14px; aspect-ratio: 4 / 3; background: var(--muted-bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img.none { background: color-mix(in srgb, var(--ind) 8%, var(--panel)); }
.card-img.none .glyph { width: 56px; height: 56px; opacity: .55; }
.showcase { margin: 4px 0 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.showcase .card p { -webkit-line-clamp: 2; }
.robot-head { flex-wrap: wrap; }
.robot-head > div { flex: 1 1 380px; }
.robot-photo { flex: 1 1 360px; max-width: 560px; margin: 0; }
.robot-photo img { border-radius: var(--r); }
.robot-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.robot-photo figcaption { font-size: 12px; color: var(--label); padding: 8px 2px 0; background: var(--paper); }
.robot-photo figcaption a { color: var(--label); }
.card-maker { font-size: 13px; font-weight: 600; color: var(--label); }
.card h3 { font-size: 18px; margin: 8px 0 6px; }
.card p { font-size: 14px; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card[hidden] { display: none; }
.empty { padding: 24px; text-align: center; color: var(--label); }

/* robot / maker detail */
.robot-head .lead { margin-bottom: 14px; }
.robot-body { display: grid; gap: 32px; }
@media (min-width: 960px) { .robot-body { grid-template-columns: minmax(0, 1fr) 320px; } }
.robot-main section { margin: 32px 0; }
.robot-side { align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 32px; }
@media (min-width: 960px) { .robot-side { position: sticky; top: 80px; } }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--label); }
.facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.robot-side .mini { margin-top: 22px; }
.robot-side .small { margin: 14px 0 0; }
.specs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.specs li { padding: 10px 14px; border-bottom: 1px solid var(--line); font: 14px/1.5 var(--f-mono); }
.specs li:last-child { border-bottom: 0; }
.price-big { font: 700 22px/1.3 var(--f-head); }
.tasks { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.docs, .sources { padding-left: 20px; margin: 0 0 16px; }
.docs li, .sources li { margin: 6px 0; overflow-wrap: anywhere; }
.sources li { font-size: 14px; }
.doc-type { font: 600 11px var(--f-body); color: var(--label); text-transform: uppercase; letter-spacing: .04em; }

/* makers table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.makers { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.makers th, .makers td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.makers th { font: 600 12px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--label); background: var(--muted-bg); }
.makers .num { text-align: right; font-variant-numeric: tabular-nums; }
.makers tr[hidden] { display: none; }

.prose { max-width: 72ch; padding-top: 24px; }
.prose h2 { margin-top: 32px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 28px 0; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0 0 6px; }

/* comparison tables (lists, prices) */
table.compare td { vertical-align: middle; }
table.compare small { display: block; font-size: 12px; color: var(--label); margin-top: 2px; }
.rcell { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.rcell span { display: block; }
.rcell a { font-weight: 600; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.thumb.none { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ind) 8%, var(--panel)); }
.popular { margin-top: 8px; }
.popular h2 { font-size: 20px; }

/* prices */
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
td .ptags { margin: 4px 0 0; }
.ptag { font: 600 11px/1 var(--f-body); padding: 4px 7px; border-radius: 4px; background: var(--muted-bg); color: var(--ink-2); }
.ptag.warn { background: var(--warn-bg); color: var(--warn); }
.price-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 4px 0 12px; font-size: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.price-table th, .price-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font: 600 12px var(--f-body); color: var(--label); text-transform: uppercase; letter-spacing: .05em; background: var(--muted-bg); }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tr:last-child td { border-bottom: 0; }
.models { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.models b { color: var(--ink); }
/* white-background product shots melt into the page in the light theme (no white box) */
.robot-photo.cutout img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .robot-photo.cutout img { mix-blend-mode: normal; } }
:root[data-theme="dark"] .robot-photo.cutout img { mix-blend-mode: normal; }

/* no icons: robots without a photo show the maker's name on a plain panel */
.card-img.none { background: var(--muted-bg); }
.card-img.none span { font: 700 20px/1.2 var(--f-head); color: var(--label); text-align: center; padding: 0 16px; letter-spacing: -.01em; }
.card-top { gap: 0; }
.page-head, .robot-head { gap: 0; }
.thumb.none { display: inline-block; background: var(--muted-bg); }

/* robot page: hero (photo | name, price, actions), at a glance, two columns */
.robot-hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 8px; }
@media (min-width: 900px) { .robot-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
.robot-hero.no-photo { grid-template-columns: 1fr; }
.robot-hero .robot-photo { max-width: none; }
.robot-hero h1 { margin-bottom: 12px; }
.robot-hero .lead { margin-bottom: 12px; }
.robot-hero .head-meta { margin: 4px 0 18px; }
.hero-price { font: 800 30px/1.15 var(--f-head); margin: 0 0 4px; letter-spacing: -.01em; }
.hero-price.muted { font-size: 20px; font-weight: 600; color: var(--label); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { width: auto; margin: 0; padding: 0 22px; }
.glance-wrap { margin: 28px 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.stats.glance { gap: 18px 40px; margin: 0; }
.stats.glance .stat b { font-size: 22px; line-height: 1.2; }
.robot-cols { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .robot-cols { grid-template-columns: 1.3fr 1fr; } }
.robot-cols section { margin: 24px 0; }
.sub-h { margin-top: 28px; }
.specs li { font: 15px/1.5 var(--f-body); }
.maker-card .facts { max-width: 560px; }
.maker-card .hero-actions { margin-top: 14px; }
.guide h3 { font-size: 16px; margin-bottom: 6px; }
.guide .two { margin-bottom: 8px; }

/* ---- quick UX fixes (1 Nov 2026) ---- */
/* consistent page top: breadcrumb, then the heading with the same gap everywhere */
.crumbs { margin-bottom: 18px; }
.page-head, .robot-head { padding: 0 0 4px; border-bottom: 0; }
.page-head + section, .page-head + .explain, .page-head + .notice { margin-top: 28px; }
main > h1:first-of-type, .crumbs + h1 { margin-top: 0; }
/* "see all" style links never touch the grid or table above */
.grid + p, .tiles + p, .table-wrap + p { margin-top: 18px; }
/* cards: price on its own line, meta under it */
.card-price { font: 700 15px/1.3 var(--f-body); color: var(--ink); margin: 2px 0 8px; flex: 0 !important; }
.card-meta:empty { display: none; }
.card p { margin-bottom: 10px; }
/* calmer links: navigation-type links are plain until hovered; links in running text stay underlined */
.crumbs a, .eyebrow a, .facts a, table a, .card-maker a, .tile a { text-decoration: none; }
.crumbs a:hover, .eyebrow a:hover, .facts a:hover, table a:hover { text-decoration: underline; }
.makers td a { color: var(--ink); font-weight: 600; }
.makers td a:hover { color: var(--link); }
/* dark mode: white-background product shots are toned down instead of glaring */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cutout img { filter: brightness(.86); } }
:root[data-theme="dark"] .cutout img { filter: brightness(.86); }
/* phones: comfortable taps, numbers in a tidy grid */
@media (max-width: 600px) {
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
  .stat b { font-size: 28px; }
  .chip { min-height: 40px; padding: 8px 14px; }
  .opt { padding: 9px 0; }
  .nav a { padding: 12px 10px; }
  .btn, .filters-btn, .sort select, .search input { min-height: 46px; }
}
/* descriptions are trimmed at a word in build.py, so no browser clamping (it cut words mid-way) */
.card p, .showcase .card p { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* labelled specifications */
.spec-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 36%; font-weight: 600; color: var(--label); font-size: 14px; }
.spec-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .spec-table th { width: 40%; padding-right: 8px; } }

/* ---- structure (2 Nov 2026) ---- */
/* header: Robots menu + section links; search always visible; on phones the links fold into Menu */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-link { font: 500 15px var(--f-body); color: var(--ink-2); background: none; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover, .nav-link.on, .nav-drop.open .nav-link { background: var(--muted-bg); color: var(--ink); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.drop-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 460px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgb(0 0 0 / .12);
  grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.drop-panel a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.drop-panel a:hover { color: var(--link); }
.drop-panel .mini { margin-bottom: 4px; }
.nav-drop.open .drop-panel { display: grid; }
@media (hover: hover) and (min-width: 901px) { .nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { display: grid; }
  .nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } }
.top-search input { width: 240px; }
.menu-btn { font: 600 14px var(--f-body); padding: 9px 14px; border-radius: 8px; }
@media (max-width: 900px) {
  .top-in { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .top-search { display: block !important; order: 4; width: 100%; margin: 0; padding: 0 0 4px; }
  .top-search input { width: 100%; }
  .top.open .nav { display: flex; order: 5; flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .nav-drop .nav-link { display: none; }
  .drop-panel { display: grid !important; position: static; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px; background: none; grid-template-columns: 1fr 1fr; }
  .top.open .nav > a { padding: 10px 0; }
  .theme-btn { order: 1; margin-left: auto; }
  .menu-btn { order: 2; }
}

/* home: copy + photo collage, popular tiles, calmer industry blocks */
.home-hero { display: grid; gap: 32px; align-items: center; padding: 36px 0 8px; }
@media (min-width: 960px) { .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.home-hero h1 { max-width: 14ch; }
.collage { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.collage a { position: relative; border-radius: var(--r); overflow: hidden; display: block; background: var(--muted-bg); }
.collage a.col-0 { grid-row: 1 / 3; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.collage a:hover img { transform: scale(1.03); }
.collage span { position: absolute; left: 10px; bottom: 10px; background: rgb(0 0 0 / .6); color: #fff; font: 600 12px var(--f-body); padding: 5px 9px; border-radius: 6px; }
@media (max-width: 600px) { .collage { aspect-ratio: 4 / 3; } }
.tiles.pop { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tiles.pop .tile h3 { margin: 0 0 4px; font-size: 17px; }
.tiles.pop .tile-img { aspect-ratio: 16 / 10; margin-bottom: 14px; }
.ind-block .ind-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ind-block .ind-head h2 a { color: var(--ink); text-decoration: none; }
.ind-block .ind-head h2 a:hover { color: var(--link); }
.ind-block .ind-head .btn { width: auto; margin: 0; padding: 0 18px; min-height: 40px; flex: none; }
.ind-block .showcase { margin-bottom: 18px; }

/* maker page */
.maker .hero-text .chips { margin: 4px 0 4px; }
.info-cols section { margin: 16px 0; }
.info-cols p { color: var(--ink-2); }

/* sortable table headers */
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sort-mark { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .25; }
th[aria-sort="ascending"] .sort-mark { opacity: 1; transform: rotate(180deg); }
th[aria-sort="descending"] .sort-mark { opacity: 1; }
.makers td:nth-child(5) { color: var(--label); }

/* footer with columns */
.foot { padding: 40px 0 32px; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-name { font: 800 18px var(--f-head); color: var(--ink); margin-bottom: 8px !important; }
.foot-about p { max-width: 42ch; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 7px 0; }
.foot li a { color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--link); text-decoration: underline; }
.collage { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.collage a { min-width: 0; min-height: 0; }
.robot-hero > *, .home-hero > * { min-width: 0; }
@media (max-width: 600px) {
  .stats.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.glance .stat b { font-size: 20px; overflow-wrap: anywhere; }
  .stat { min-width: 0; }
}
@media (max-width: 600px) {
  .home-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .hero-search { display: none; }            /* the header search sits right above on phones */
}
/* brand comparison: both brands stay on screen on a phone */
table.compare.side { min-width: 0; width: 100%; table-layout: fixed; }
@media (max-width: 600px) { table.compare.side th, table.compare.side td { padding-left: 8px; padding-right: 8px; font-size: 14px; overflow-wrap: anywhere; } }
/* compare tool */
.card-compare { align-self: flex-start; margin-top: 12px; padding: 6px 12px; min-height: 34px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; font: 600 13px var(--f-body); cursor: pointer; }
.card-compare:hover { border-color: var(--ink); }
.card-compare.on, [data-compare-add].on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-meta + .card-compare { margin-top: 10px; }
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / .18); font: 600 14px var(--f-body); color: var(--ink); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn { width: auto; margin: 0; min-height: 40px; padding: 0 16px; white-space: nowrap; }
.compare-tool .filters input { width: 100%; }
.compare-found { display: flex; flex-direction: column; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.compare-found[hidden] { display: none; }
.compare-found button { padding: 11px 14px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font: 15px var(--f-body); cursor: pointer; }
.compare-found button:last-child { border-bottom: 0; }
.compare-found button:hover { background: var(--muted-bg); }
.compare-found b { color: var(--ink); }
.compare-found p { margin: 0; padding: 11px 14px; }
table.robots-side th, table.robots-side td { vertical-align: top; }
table.robots-side thead th { text-transform: none; letter-spacing: 0; font: 700 15px var(--f-body); }
table.robots-side tbody th { font-weight: 600; color: var(--label); }
table.robots-side:not(.side) { min-width: 760px; }
.compare-pic { display: block; width: 100%; max-width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.compare-x { display: block; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--link); font: 500 13px var(--f-body); text-decoration: underline; cursor: pointer; }
