/* synthetos.com: "Datasheet" design.
   Cool drafting white, ink rules and pencil blue; pages read like a well-made
   data sheet. Colour tokens are defined here (light) and overridden by
   src/themes/dark.css under [data-theme="dark"]. Fonts (IBM Plex) are loaded
   by a non-blocking <link> in template.html. */
:root {
  --paper: #f6f8f9;
  --sheet: #ffffff;
  --ink: #15222c;
  --muted: #4f5f6a;
  --rule: #c7d2d9;
  --grid: #e3e9ed;
  --field: #8d9ca6;
  --blue: #1d5aa6;
  --blue-dk: #154680;
  --blue-wash: #e8f0f9;
  --on-blue: #ffffff;
  --ok: #1e7a45;
  --todo: #fff6d6;
  --foot-bg: #15222c;
  --foot-fg: #c9d4db;
  --foot-rule: #34434e;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px;
  --prose: 72ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 20;
  background: var(--ink); color: var(--sheet); padding: 8px 14px;
}

/* ---------------------------------------------------------------- Type */
h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; max-width: 26ch; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
main p, main ul, main ol { max-width: var(--prose); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: 0.3em 0; }
li::marker { color: var(--muted); }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--grid);
  padding: 1px 6px;
  border-radius: 2px;
}
.lede { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.4em; }
.byline { color: var(--muted); font: 400 0.92rem/1.5 var(--mono); }

/* Section headings inside pages are ruled like a data sheet. */
main > h2, main > section > h2, main > article > h2, .contact-grid > div > h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  max-width: none;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 1.3rem/1 var(--cond);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: currentColor; }
.brand-mark::before { left: -6px; right: -6px; top: 8px; height: 2px; }
.brand-mark::after { top: -6px; bottom: -6px; left: 8px; width: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-nav a.cta {
  margin-left: 8px;
  background: var(--blue);
  color: var(--on-blue);
  border: 2px solid var(--blue);
  border-radius: 2px;
  padding: 7px 16px;
  font-weight: 600;
}
.site-nav a.cta:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  padding: 0;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ---------------------------------------------------------------- Main */
main.wrap { padding-top: 32px; padding-bottom: 80px; }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  max-width: none;
  font: 400 0.88rem/1.4 var(--mono);
  color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }

/* ---------------------------------------------------------------- Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; max-width: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  background: transparent;
  color: var(--blue);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--blue-wash); color: var(--blue-dk); }
.btn-primary, button.btn { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover, button.btn:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: var(--on-blue); }
.btn-secondary { background: transparent; color: var(--blue); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------------- Home hero */
.home-hero {
  margin: -32px calc(50% - 50vw) 0;
  padding: 64px 0 56px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero-copy .lede { color: var(--ink); opacity: 0.86; }
.hero-copy > * { background: var(--sheet); }
.hero-copy .actions { background: none; margin: 28px 0 0; }

.plot { margin: 0; background: var(--sheet); border: 1px solid var(--rule); padding: 16px 16px 12px; }
.plot svg { width: 100%; height: auto; overflow: visible; display: block; }
.plot-grid path { stroke: var(--grid); stroke-width: 1; fill: none; }
.plot .axis { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.plot .axis-tip { fill: var(--ink); }
.plot .trap { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.plot .scurve {
  stroke: var(--blue); stroke-width: 4; fill: none; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 1.8s 0.3s cubic-bezier(0.45, 0, 0.2, 1) both;
}
@keyframes draw { from { stroke-dashoffset: 1; } }
.plot text { font: 400 15px var(--mono); fill: var(--muted); }
.plot .t-axis { fill: var(--ink); font-style: italic; }
.plot .callout path { stroke: var(--muted); fill: none; }
.plot .callout circle { fill: var(--muted); }
.plot .callout-s path { stroke: var(--blue); }
.plot .callout-s circle, .plot .callout-s text { fill: var(--blue); }
.plot figcaption { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 8px; }

/* ---------------------------------------------------------------- Cards: drawing sheets with a title block */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.card {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--rule); background: #fff; }
.card-body { padding: 22px 22px 0; display: flex; flex-direction: column; flex: 1; }
.card :is(h2, h3) { margin: 0 0 10px; font-size: 1.4rem; padding: 0; border: 0; }
.card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.card :is(h2, h3) a:hover { color: var(--blue); text-decoration: underline; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul { list-style: none; padding: 0; margin: 4px 0 18px; font-size: 0.95rem; }
.card ul li { border-top: 1px solid var(--grid); padding: 6px 0; margin: 0; }
.card .price {
  margin: auto -22px 0;
  padding: 14px 22px 0;
  border-top: 1.5px solid var(--ink);
  font: 500 1.35rem/1.2 var(--mono);
  color: var(--ink);
}
.card .actions { margin: 12px 0 22px; }
.card a.more { font-weight: 600; }

/* ---------------------------------------------------------------- Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
  margin: 28px 0;
}
.why-grid > div { padding: 4px 22px 8px; border-right: 1px solid var(--rule); }
.why-grid h3 { margin-top: 0; font-size: 1.2rem; }
.why-grid p { color: var(--muted); font-size: 1rem; }

/* ---------------------------------------------------------------- Product page */
.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 8px 0 32px;
}
.project-hero {
  margin: 0 0 24px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 8px;
}
.product-top .project-hero { margin: 0; }
.project-hero img { background: #fff; }

.buybox {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 0;
  margin: 0 0 24px;
}
.buybox > * { padding-left: 22px; padding-right: 22px; }
.buybox .price {
  font: 500 2rem/1.1 var(--mono);
  margin: 0;
  padding-top: 20px;
  padding-bottom: 6px;
}
.buybox .stock { color: var(--ok); font-weight: 600; margin: 0 0 16px; }
.buybox .actions { margin: 0; padding-bottom: 20px; }
.buybox .actions .btn { flex: 1; }
.buybox .note {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  padding-top: 14px;
  padding-bottom: 16px;
}

/* Spec and comparison tables */
.table-scroll { overflow-x: auto; margin: 0 0 28px; padding: 1px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  font-size: 1rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.spec-table thead th {
  background: var(--ink);
  color: var(--sheet);
  font: 600 0.98rem/1.3 var(--cond);
  border-bottom: 0;
}
.spec-table tbody th { font-weight: 600; min-width: 9em; width: 26%; }
.spec-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--grid) 35%, transparent); }

/* FAQ */
details.faq {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  padding: 0;
  margin: 0 0 10px;
  max-width: var(--prose);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 14px 44px 14px 18px;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 1.3rem/1 var(--mono);
  color: var(--blue);
}
details.faq[open] summary::after { content: "\2212"; }
details.faq[open] { border-left-color: var(--blue); }
details.faq > :not(summary) { margin: 0 18px 14px; }

/* Tags (g2core page) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tag {
  border: 1px solid var(--rule);
  background: var(--sheet);
  padding: 2px 10px;
  font: 400 0.85rem/1.6 var(--mono);
  color: var(--muted);
}

/* Video thumbnail links (no third-party iframe until the visitor clicks) */
.video {
  display: block;
  position: relative;
  max-width: 560px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  padding: 8px;
  margin: 0 0 10px;
  text-decoration: none;
}
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video::after {
  content: "Watch on YouTube";
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--ink);
  color: var(--sheet);
  padding: 8px 14px;
  font-weight: 600;
}
.video:hover::after { background: var(--blue); color: var(--on-blue); }

figure { margin: 0 0 28px; }
figure img { border: 1px solid var(--rule); background: var(--sheet); padding: 6px; }
figcaption { color: var(--muted); font: 400 0.85rem/1.45 var(--mono); margin-top: 8px; }

/* Call-to-action band */
.contact-block {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 24px 26px;
  margin: 40px 0 16px;
}
.contact-block h2 { margin-top: 0; padding: 0; border: 0; }
.contact-block p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}
.contact-grid > div > h2:first-child { margin-top: 0.4em; }
.form {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.form h2 { margin: 0; padding: 0; border: 0; font-size: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--field);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); outline-offset: 0; }
.turnstile-slot { min-height: 65px; }
.form .btn { align-self: flex-start; }
.form-status { border-left: 4px solid var(--blue); background: var(--blue-wash); padding: 12px 14px; margin: 0; }
.form-status[data-state="error"] { border-left-color: #b3261e; background: color-mix(in srgb, #b3261e 10%, var(--sheet)); }
.form-status[data-state="ok"] { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--sheet)); }
.fallback { border-left: 3px solid var(--blue); padding-left: 14px; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-fg);
  padding: 56px 0 24px;
  font-size: 0.97rem;
}
.site-footer a { color: #fff; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand { font: 700 1.3rem/1.2 var(--cond); color: #fff; margin: 0 0 8px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li { margin: 0; }
.site-footer .cols p { max-width: 42ch; }
.fineprint {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--foot-rule);
  font: 400 0.85rem/1.4 var(--mono);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
  .site-nav .theme-toggle { margin-left: auto; flex: none; }
  .site-header { position: static; }
  .header-shop { margin-left: auto; }
}
@media (min-width: 1081px) { .header-shop { display: none; } }
@media (max-width: 960px) {
  .hero-grid, .product-top, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid > div { border-bottom: 1px solid var(--rule); padding-top: 16px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-grid { padding: 0 16px; }
  .home-hero { padding: 36px 0 40px; margin-top: -24px; }
  main.wrap { padding-top: 24px; }
  .plot { padding: 10px; }
  .plot text { font-size: 19px; }
  .why-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { font-size: 0.95rem; }
  .table-scroll .spec-table:not(:has(thead)) tr { display: grid; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
  .table-scroll .spec-table:not(:has(thead)) :is(th, td) { padding: 0; border: 0; width: auto; }
  .form { padding: 20px; }
  .card-body { padding: 18px 18px 0; }
  .card .price { margin: auto -18px 0; padding: 14px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plot .scurve { animation: none; }
}

/* Stock line next to a card price */
.card .price .stock { font: 600 0.9rem/1 var(--sans); color: var(--ok); margin-left: 8px; }

/* ---------------------------------------------------------------- Forum archive */
.archive-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  margin: 0 0 28px;
}
.archive-note { padding: 16px 20px; border-left: 4px solid var(--blue); }
.archive-note p { margin: 0 0 6px; font-size: 0.97rem; max-width: 70ch; }
.archive-note p:last-child { margin: 0; }
.archive-buy {
  padding: 16px 20px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 220px;
}
.archive-buy p { margin: 0; }
.archive-buy-name { font-weight: 600; }
.archive-buy-price { font: 500 1.25rem/1.2 var(--mono); }
.archive-buy-price .stock { font: 600 0.85rem/1 var(--sans); color: var(--ok); margin-left: 6px; }
.archive-buy .btn { min-height: 40px; align-self: flex-start; }

.h1-page { font-weight: 500; color: var(--muted); font-size: 0.55em; white-space: nowrap; }
.topic-meta, .topic-foot { color: var(--muted); font-size: 0.97rem; }

.topic-table td { vertical-align: top; }
.topic-table .num { text-align: right; width: 6em; font-family: var(--mono); }
.topic-table .nowrap { white-space: nowrap; width: 9em; font-family: var(--mono); font-size: 0.92rem; }
.topic-table td:first-child a { font-weight: 600; }
.topic-table .m-label { display: none; }
.row-meta { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; font-family: var(--mono); font-size: 0.95rem; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 1.5px solid var(--rule); background: var(--sheet); text-decoration: none;
}
.pager a:hover { border-color: var(--blue); }
.pager [aria-current] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.pager .pager-gap { border-color: transparent; background: none; min-width: 20px; }

.posts { display: grid; gap: 16px; margin: 0 0 24px; }
.post { background: var(--sheet); border: 1px solid var(--rule); scroll-margin-top: 80px; }
.post-lead { border: 1.5px solid var(--ink); }
.post-staff { border-left: 4px solid var(--blue); }
.post:target { outline: 3px solid var(--blue); outline-offset: 2px; }
.post-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 10px 18px; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--grid) 45%, var(--sheet));
}
.post-author { font-weight: 600; }
.badge { font: 600 0.78rem/1.6 var(--sans); padding: 0 8px; border: 1px solid var(--blue); color: var(--blue); }
.post-head time { font: 400 0.88rem/1.4 var(--mono); color: var(--muted); }
.post-link { margin-left: auto; font: 400 0.85rem/1.4 var(--mono); color: var(--muted); text-decoration: none; }
.post-link:hover { color: var(--blue); }
.post-body { padding: 16px 18px 4px; overflow-wrap: anywhere; }
.post-body p, .post-body ul, .post-body ol { max-width: 76ch; }
.post-body blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--rule); color: var(--muted); }
.post-body pre {
  margin: 0 0 1em;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  overflow-x: auto;
  font: 400 0.88rem/1.5 var(--mono);
  white-space: pre;
  overflow-wrap: normal;
}
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body img { max-width: 100%; height: auto; border: 1px solid var(--rule); margin: 4px 0; }
.post-body h3, .post-body h4 { font-size: 1.1rem; margin: 1em 0 0.4em; }

@media (max-width: 760px) {
  .archive-banner { grid-template-columns: minmax(0, 1fr); }
  .archive-buy { border-left: 0; border-top: 1px solid var(--rule); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .topic-table thead { display: none; }
  .topic-table, .topic-table tbody, .topic-table tr, .topic-table td { display: block; width: auto; }
  .topic-table tr { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
  .topic-table td { padding: 0; border: 0; text-align: left; }
  .topic-table td.num, .topic-table td.nowrap { display: inline; font-size: 0.88rem; color: var(--muted); }
  .topic-table .m-label { display: inline; font-family: var(--sans); }
  .post-head, .post-body { padding-left: 14px; padding-right: 14px; }
}

/* Dark theme: the same data sheet, drawn on a night-blue sheet.
   Scoped to [data-theme="dark"]; build.js concatenates it into styles.css. */
[data-theme="dark"] {
  --paper: #0d161d;
  --sheet: #131f28;
  --ink: #e4ebf0;
  --muted: #a1b0bb;
  --rule: #2c3d4a;
  --grid: #1b2a35;
  --field: #4f6474;
  --blue: #7db0f5;
  --blue-dk: #a6c9f8;
  --blue-wash: #1a2d42;
  --on-blue: #0d161d;
  --ok: #5fcf8e;
  --foot-bg: #080e13;
  --foot-fg: #a1b0bb;
  --foot-rule: #22313c;
  color-scheme: dark;
}
/* Product photos have white backgrounds; keep their frames light-edged. */
[data-theme="dark"] .card > img,
[data-theme="dark"] .project-hero img { border-color: var(--rule); }

/* Light theme: the default "Datasheet" palette lives in :root in styles.css.
   build.js concatenates this file into styles.css. */
[data-theme="light"] { color-scheme: light; }
