/*
 * typical.wtf content pages: verification log, ban guarantee, DMA catalog,
 * blog, blog article and account login. Tokens, header and footer come from typical-base.css.
 * Class names are the pages' own, so their scripts keep working.
 */

/* ===================== page frame ===================== */
.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--page-pad) var(--section-gap);
}

main h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

main h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

main h3 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

main code {
  font: 12.5px/1.6 var(--font-mono);
  overflow-wrap: anywhere;
}

/* kickers and small labels share the landing's mono group label */
.detail-kicker,
.login-kicker,
.blog-kicker,
.article-eyebrow,
.checks-status,
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.detail-kicker::before,
.login-kicker::before,
.checks-status::before,
.dev-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--text-faint);
}

/* hidden on these pages: every page sits one level under the shared header */
.breadcrumbs {
  display: none;
}

/* ---------- actions ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-h-lg);
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid #ededed;
  background: #ededed;
  color: var(--text-inverse);
  font: 600 13px/1 var(--font-ui);
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.pill:hover {
  border-color: #d8d8d8;
  background: #d8d8d8;
}

.pill:active {
  transform: scale(0.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.text-link:hover {
  color: var(--text);
}

.link-icon,
.text-link svg {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease);
}

.text-link:hover .link-icon,
.text-link:hover svg {
  transform: translateX(2px);
}

.guarantee-cta,
.login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- shared surfaces ---------- */
.cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-editor);
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* callouts = a quiet inset card */
.scope,
.dma-closed,
.checks-note,
.article-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  max-width: 760px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.scope strong,
.dma-closed strong {
  color: var(--text);
  font-weight: 600;
}

.section-lead {
  max-width: 640px;
  margin: -4px 0 24px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* sections on long pages: a hairline and a steady rhythm */
.guarantee-main > section,
.checks-main > section {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.guarantee-main > section > h2,
.checks-main > section > h2 {
  margin-bottom: 16px;
}

.guarantee-main > section > p,
.checks-main > section > p {
  max-width: 720px;
  color: var(--text-strong);
  font-size: 14.5px;
  line-height: 1.7;
}

.checks-main > section > p.checks-note {
  color: var(--text-muted);
  font-size: 13.5px;
}

.guarantee-main > section > p + p,
.checks-main > section > p + p {
  margin-top: 12px;
}

/* ===================== guarantee and DMA ===================== */
.guarantee-intro,
.checks-intro {
  max-width: 760px;
  padding-bottom: 40px;
}

.guarantee-intro h1,
.checks-intro h1 {
  margin-top: 16px;
}

.guarantee-intro > p:not(.scope):not(.dma-closed),
.checks-intro > p {
  max-width: 600px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.covers div {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
}

.covers dt {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.covers dd {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 16px 20px 16px 60px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  font: 400 10.5px/1 var(--font-mono);
}

.steps p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.rules {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-left: 20px;
  color: var(--text-strong);
  font-size: 14.5px;
  line-height: 1.7;
}

.rules li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--text-dim);
}

.rules.deny li::before {
  top: 8px;
  left: 2px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #ff6b6f;
  opacity: 0.7;
  transform: translateY(3px);
}

.servers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.servers span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-strong);
  font: 400 12px/16px var(--font-mono);
}

.fineprint {
  margin-top: 24px !important;
  color: var(--text-dim) !important;
  font-size: 12.5px !important;
}

/* DMA firmware cards */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fw-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
}

.fw-card h3 {
  font-size: 20px;
}

.fw-sub {
  margin-top: 4px;
  color: var(--text-dim);
  font: 400 12px var(--font-mono);
  text-transform: lowercase;
}

.fw-card img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 120px;
  margin: 16px auto;
  object-fit: contain;
}

.fw-price {
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.fw-specs {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.fw-specs li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.5;
}

.fw-specs li:last-child {
  border-bottom: 0;
}

.fw-specs .k {
  color: var(--text-dim);
  font: 400 12px/1.6 var(--font-mono);
  text-transform: lowercase;
}

.fw-specs .v {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

/* price lists = settings rows */
.sw-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-raised);
}

.sw-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 20px;
}

.sw-list li + li {
  border-top: 1px solid var(--border-subtle);
}

.sw-name {
  color: var(--text-strong);
  font-size: 14px;
}

.sw-price {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sw-price small {
  margin-left: 4px;
  color: var(--text-dim);
  font: 400 12px var(--font-mono);
}

/* ===================== verification log ===================== */
.checks-intro > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
  text-decoration: none;
  text-transform: lowercase;
}

.checks-intro > a::before {
  content: '←';
}

.checks-intro > a:hover {
  color: var(--text);
}

.checks-main a:not(.pill):not(.text-link) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-active);
  text-underline-offset: 3px;
}

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

.check-card {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
}

.check-card h3 {
  margin-bottom: 8px;
}

.check-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.check-card p + p {
  margin-top: 8px;
}

.checks-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.checks-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
}

.checks-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checks-stats dt {
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.checks-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* filters = segmented control */
.checks-filters {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
}

.chip {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: 500 12.5px var(--font-ui);
  text-transform: lowercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.chip:hover {
  color: var(--text);
}

.chip.is-on {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.check-table {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.check-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.check-table th,
.check-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.check-table th {
  background: var(--bg-panel);
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.check-table tbody tr:last-child td {
  border-bottom: 0;
}

.check-table td a {
  display: inline-block;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 500;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--text-dim);
}

.badge-clean::before {
  background: var(--live);
}

.badge-finding::before {
  background: #e5c07b;
}

.row-sub {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12.5px;
}

.checks-empty {
  padding: 24px 16px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.record-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  max-width: 760px;
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-raised);
}

.record-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.record-facts dt {
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.record-facts dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.record-facts dd.unknown {
  color: var(--text-dim);
}

.checks-main > section > ul {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.checks-main > section > ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.65;
}

.checks-main > section > ul li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--text-dim);
}

/* ===================== blog ===================== */
.blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 40px;
}

.blog-intro h1 {
  margin-top: 16px;
}

.blog-intro p {
  max-width: 440px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.blog-cover {
  margin-bottom: 48px;
}

.blog-post {
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.post-art {
  display: block;
}

.post-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  margin-top: 24px;
}

.post-copy .blog-kicker span {
  color: var(--text-strong);
}

.post-copy h2 {
  margin-top: 12px;
}

.post-copy h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-copy h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--border-active);
  text-underline-offset: 4px;
}

.post-copy p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.post-copy .text-link {
  margin-top: 16px;
}

/* ===================== blog article ===================== */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
  text-decoration: none;
  text-transform: lowercase;
}

.article-back svg {
  width: 12px;
  height: 12px;
}

.article-back:hover {
  color: var(--text);
}

.ocean-article {
  max-width: 720px;
  margin: 48px auto 0;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-heading h1 {
  margin: 16px 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.article-lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.ocean-article p {
  margin: 16px 0;
}

.ocean-article section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.ocean-article section > h2 {
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ocean-article section h3 {
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.ocean-article ul,
.ocean-article ol {
  padding-left: 20px;
}

.ocean-article li {
  margin: 8px 0;
  padding-left: 4px;
}

.ocean-article li::marker {
  color: var(--text-dim);
}

.ocean-article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-active);
  text-underline-offset: 3px;
}

.ocean-article pre {
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-editor);
  white-space: pre-wrap;
}

.ocean-article :not(pre) > code {
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--bg-elevated);
  color: var(--text);
}

.sample-meta {
  display: grid;
  gap: 16px;
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-raised);
}

.sample-meta dt {
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.sample-meta dd {
  margin: 4px 0 0;
}

.article-note {
  display: block;
  margin: 32px 0;
}

.article-note p {
  margin: 0;
}

.article-note p + p {
  margin-top: 8px;
}

.article-toc {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-quiet);
  background: var(--bg-raised);
}

.article-toc h2 {
  margin-bottom: 12px;
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.article-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
}

.article-toc li {
  break-inside: avoid;
}

.article-toc a {
  color: var(--text-strong);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--text);
}

.article-table {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.article-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.article-table th {
  background: var(--bg-panel);
  color: var(--text-dim);
  font: 400 12px/16px var(--font-mono);
  text-transform: lowercase;
}

.article-table th,
.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

/* ===================== account login ===================== */
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.login-info,
.login-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--r-window);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.login-info {
  justify-content: space-between;
  gap: 32px;
  border-color: var(--border-quiet);
  background: var(--bg-raised);
}

.login-info h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.login-panel h2 {
  margin: 12px 0;
}

.login-info p,
.login-panel > p {
  max-width: 440px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
  color: var(--text-strong);
  font-size: 13.5px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  font: 400 11px/1 var(--font-mono);
}

/* the command = a line in the app's editor */
.nf-command {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 20px 0 4px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-editor);
  color: var(--text);
  font: 400 14px/1.5 var(--font-mono);
  overflow-wrap: anywhere;
}

.login-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* status line: neutral dot, the live dot while waiting for Discord, red on errors */
.login-status::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--text-faint);
}

.login-status[data-state='waiting']::before,
.login-status[data-state='done']::before {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}

.login-status[data-state='error']::before {
  background: #ff6b6f;
}

/* ===================== responsive ===================== */
@media (max-width: 900px) {
  .blog-intro,
  .post-copy,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .covers,
  .fw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  /* the log becomes stacked cards instead of a sideways-scrolling table */
  .check-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .check-table table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .check-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .check-table tr {
    display: block;
    padding: 4px 0;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-quiet);
    background: var(--bg-panel);
  }

  .check-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 16px;
    border: 0;
  }

  .check-table td::before {
    content: attr(data-label);
    color: var(--text-dim);
    font: 400 12px/18px var(--font-mono);
    text-transform: lowercase;
  }

  html[lang='ru'] .check-table td::before {
    content: attr(data-label-ru);
  }

  .check-table td > * {
    grid-column: 2;
  }

  .record-facts {
    grid-template-columns: 1fr;
  }

  .article-toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .covers,
  .fw-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .fw-specs li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

}

/* ===================== Minecraft verification log (/minecraft/checks) =====================
   Split hero: the copy on the left, the latest record on the right set like a
   scan receipt. Sections below are plain blocks on hairlines, no boxed cards.
   Signature: the file hash broken into 8-character groups. */
.vl {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 32px;
}

.vl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
  padding-bottom: 88px;
}

.vl-kicker {
  color: var(--text-muted);
  font: 400 13px/20px var(--font-mono);
}

.vl-intro h1 {
  max-width: 600px;
  margin-top: 16px;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.vl-lead {
  max-width: 520px;
  margin-top: 24px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.6;
}

.vl-meta {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- the record card ---------- */
.vl-record {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.vl-record-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-quiet);
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
}

.vl-record-body {
  padding: 20px;
}

.vl-record-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vl-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 14px;
}

/* status dots: green for an observed result, amber for a finding */
.vl-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--live);
}

.vl-dot.is-finding {
  background: #e5c07b; /* same as the table's "with a finding" badge */
}

.vl-dot.is-seen {
  background: var(--live);
}

/* not tested: an empty ring */
.vl-dot.is-none {
  border: 1px solid var(--text-muted);
  background: transparent;
}

/* in progress: half filled */
.vl-dot.is-wait {
  border: 1px solid var(--text-muted);
  background: linear-gradient(90deg, var(--text-muted) 50%, transparent 50%);
}

/* inconclusive: a ring with a dot, the question is still open */
.vl-dot.is-unclear {
  border: 1px solid var(--text-muted);
  background: radial-gradient(circle, var(--text-muted) 2px, transparent 2.5px);
}

/* outdated: a dim filled dot */
.vl-dot.is-old {
  background: var(--border-active);
}

.vl-record-rows {
  display: grid;
  margin: 20px 0 0;
  border-top: 1px solid var(--border-quiet);
}

.vl-record-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-quiet);
  font-size: 14px;
}

.vl-record-rows dt {
  color: var(--text-muted);
}

.vl-record-rows dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.vl-hash {
  margin-top: 20px;
}

.vl-hash p {
  color: var(--text-muted);
  font-size: 13px;
}

.vl-hash code {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-editor);
  color: var(--text-strong);
  font: 400 13px/20px var(--font-mono);
  letter-spacing: 0.02em;
}

.vl-record-link {
  display: flex;
  border-radius: 0 0 15px 15px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-quiet);
  color: var(--text-strong);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.vl-record-link:hover {
  background: var(--bg-panel);
  color: var(--text);
}

.vl-record-link i {
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- sections ---------- */
.vl-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.vl-section > h2 {
  margin-bottom: 24px;
}

.vl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.vl-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.vl-areas h3 {
  margin-bottom: 8px;
}

.vl-areas p,
.vl-prose p {
  max-width: 560px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.65;
}

.vl-prose p + p {
  margin-top: 12px;
}

.vl a:not(.vl-record-link):not(.chip):not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-active);
  text-underline-offset: 3px;
}

/* status legend: term on the left, meaning on the right */
/* table rows open their record */
.vl tr[data-record] {
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.vl tr[data-record]:hover {
  background: var(--bg-panel);
}

/* ---------- record dialog ---------- */
.vl-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow);
}

.vl-modal::backdrop {
  background: rgb(0 0 0 / 0.64);
}

.vl-modal[open] {
  animation: vl-modal-in 180ms var(--ease);
}

@keyframes vl-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

html:has(.vl-modal[open]) {
  overflow: hidden;
}

.vl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border-quiet);
}

.vl-modal-head h2 {
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.vl-modal-close {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--control-h);
  height: var(--control-h);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.vl-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.vl-modal-body {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.vl-modal-body .vl-record-rows,
.vl-modal-body .vl-hash {
  margin: 0;
}

.vl-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-quiet);
  font-size: 14px;
}

.vl-modal-done {
  height: var(--control-h);
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--accent, #ededed);
  color: #0a0a0a;
  font: 500 14px var(--font-ui);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.vl-modal-done:hover {
  background: #ffffff;
}

.vl-legend {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--border-quiet);
}

.vl-legend div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-quiet);
}

/* larger markers in the legend so the shapes read apart */
.vl-legend .vl-dot {
  width: 10px;
  height: 10px;
}

.vl-legend dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.vl-legend dd {
  max-width: 600px;
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.6;
}

.vl-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-quiet);
  list-style: none;
  counter-reset: field;
}

.vl-fields li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-quiet);
  color: var(--text-strong);
  font-size: 15px;
  counter-increment: field;
}

.vl-fields li::before {
  content: counter(field, decimal-leading-zero);
  color: var(--text-muted);
  font: 400 13px/24px var(--font-mono);
}

.vl-footnote {
  max-width: 640px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .vl-hero,
  .vl-areas {
    grid-template-columns: 1fr;
  }

  .vl-hero {
    gap: 40px;
    padding-bottom: 64px;
  }

  .vl-areas {
    gap: 32px;
  }

  .vl-legend div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .vl-fields {
    grid-template-columns: 1fr;
  }

  .vl-section {
    padding: 48px 0;
  }

  .vl-hash code {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

/* ===================== ban compensation (/ban-compensation) =====================
   Reuses the verification log frame (.vl); the claim card carries the figures. */
.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.bc-lines {
  display: grid;
  margin: 0;
}

.bc-lines div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-quiet);
}

.bc-lines div:first-child {
  padding-top: 0;
}

.bc-lines dt {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

/* the one figure: the share of the balance */
.bc-lines div:first-child dt {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.bc-lines dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.5;
}

.bc-servers {
  margin-top: 20px;
}

.bc-servers p {
  color: var(--text-muted);
  font-size: 13px;
}

.bc-servers ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.bc-servers li {
  padding: 4px 10px;
  border-radius: var(--r-md);
  background: var(--bg-editor);
  color: var(--text-strong);
  font: 400 13px/20px var(--font-mono);
}

/* what the video must show: numbered, one per line */
.bc-steps {
  display: grid;
  max-width: 760px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-quiet);
  list-style: none;
  counter-reset: step;
}

.bc-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-quiet);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: step;
}

.bc-steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: 400 13px/1 var(--font-mono);
}

.bc-rules li {
  line-height: 1.5;
}

.bc-notes {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.bc-notes p {
  display: flex;
  gap: 12px;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.6;
}

.bc-notes i {
  width: 16px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.bc-notes b {
  color: var(--text);
  font-weight: 600;
}

/* three steps when the check starts */
.bc-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.bc-flow li {
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  counter-increment: flow;
}

.bc-flow li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--text-muted);
  font: 400 13px/20px var(--font-mono);
}

.bc-flow h3 {
  margin-top: 12px;
}

.bc-flow p {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.6;
}

.bc-close {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.bc-close h2 {
  margin-top: 12px;
}

.bc-close p:not(.vl-kicker) {
  max-width: 600px;
  margin-top: 16px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .bc-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .bc-lines div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ===================== lab (/lab) =====================
   Split hero with one glyph scene (what LRT draws), then experiments, each
   with a status and one diagram drawn in HTML. Signature: the dashed circle
   of an uncertain position. */
.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-bottom: 88px;
}

.lab-intro h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lab-index {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid var(--border-quiet);
}

.lab-index a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-quiet);
  color: var(--text);
  font-size: 15px;
  text-decoration: none !important;
  transition: color var(--dur) var(--ease);
}

.lab-index a span:first-child,
.lab-index-state {
  color: var(--text-muted);
  font: 400 13px/24px var(--font-mono);
}

.lab-index-state {
  margin-left: auto;
}

.lab-index a:hover {
  color: var(--text-strong);
}

.lab-scene {
  margin: 0;
}

.lab-scene .art {
  aspect-ratio: 16 / 9;
}

.lab-scene figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border-quiet);
  color: var(--text-muted);
  font-size: 13px;
}

.lab-exp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.lab-exp-head h2 {
  margin-top: 8px;
}

.lab-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 13px;
}

.lab-text {
  max-width: 680px;
  margin-top: 20px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.65;
}

.lab-figure {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.lab-figure figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-quiet);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- DMA: the rig, drawn as where things physically sit ---------- */
.rig {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 88px minmax(0, 3fr);
  align-items: center;
}

.rig-box {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.rig-box strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.rig-box > span:last-child:not(.rig-tag) {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.rig-tag {
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
}

/* inside the game PC the labels share one baseline under the drawn card */
.rig-inside .rig-box {
  align-content: end;
}

/* the card itself, drawn as the board it is */
.rig-card .pcb {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 8px;
}

.rig-box.is-key {
  border-color: var(--border-active);
  background: var(--bg-elevated);
}

/* the game PC is a frame the other parts sit inside */
.rig-pc {
  position: relative;
  padding: 32px 16px 16px;
  border-radius: 16px;
  border: 1px dashed var(--border-active);
}

.rig-pc-label {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 0 8px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font: 400 12px/20px var(--font-mono);
}

.rig-inside {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 56px minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
}

.rig-note {
  margin-top: 12px;
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
  text-align: right;
}

/* cable and bus: a hairline with an arrowhead and its name above */
.rig-cable,
.rig-bus {
  position: relative;
  min-height: 40px;
}

.rig-cable::before,
.rig-bus::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  border-top: 1px solid var(--border-active);
}

.rig-cable::after,
.rig-bus::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  right: 8px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

.rig-cable span,
.rig-bus span {
  position: absolute;
  top: calc(50% - 22px);
  left: 0;
  right: 0;
  color: var(--text-muted);
  font: 400 11px/14px var(--font-mono);
  text-align: center;
}

/* ---------- LRT: input, four checks, decision ---------- */
.lrt-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
}

.lrt-col {
  position: relative;
}

/* flow between the columns: a hairline with an arrowhead */
.lrt-col + .lrt-col::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -40px;
  width: 32px;
  border-top: 1px solid var(--text-muted);
}

.lrt-col + .lrt-col::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  left: -16px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--text);
  border-right: 1px solid var(--text);
  transform: rotate(45deg);
}

/* inputs are what is known, so they stay quiet: rows on hairlines */
.lrt-col:first-child .lrt-steps {
  gap: 0;
}

.lrt-col:first-child .lrt-steps li {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border-quiet);
  border-radius: 0;
  background: transparent;
}

.lrt-decide .lrt-formula code {
  font-size: 13px;
  white-space: normal;
}

/* the decision is what the system produces: a raised panel */
.lrt-decide {
  align-self: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.lrt-label {
  margin-bottom: 12px;
  color: var(--text-muted);
  font: 400 12px/16px var(--font-mono);
}

.lrt-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lrt-steps li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
}

.lrt-steps b {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 24px;
  padding: 0 4px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font: 600 12px/1 var(--font-mono);
}

.lrt-steps span {
  display: grid;
  gap: 2px;
}

.lrt-steps strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.lrt-steps em {
  color: var(--text-muted);
  font-size: 12.5px;
  font-style: normal;
}

.lrt-formula {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-editor);
}

.lrt-formula code {
  display: block;
  color: var(--text);
  font: 400 14px/22px var(--font-mono);
  white-space: nowrap;
}

.lrt-formula sub {
  color: var(--text-muted);
  font-size: 10px;
}

.lrt-formula p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.lrt-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.lrt-out {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-quiet);
  background: var(--bg-panel);
  color: var(--text-muted);
}

.lrt-out svg {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.lrt-out strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.lrt-cond {
  font: 400 12px/16px var(--font-mono);
}

/* the branch that draws the real position */
.lrt-out.is-yes {
  border-color: rgb(158 237 158 / 0.3);
  color: var(--live);
}

@media (max-width: 1000px) {
  .lab-hero,
  .lrt-grid {
    grid-template-columns: 1fr;
  }

  .lab-hero {
    gap: 40px;
  }

  .lrt-grid {
    gap: 40px;
  }

  .lrt-col + .lrt-col::before {
    top: -32px;
    left: 24px;
    width: 0;
    height: 24px;
    border-top: 0;
    border-left: 1px solid var(--text-muted);
  }

  .lrt-col + .lrt-col::after {
    top: -14px;
    left: 21px;
    transform: rotate(135deg);
  }

  .rig {
    grid-template-columns: 1fr;
  }

  .rig-cable {
    min-height: 48px;
  }

  .rig-cable::before {
    top: 8px;
    bottom: 8px;
    left: 24px;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--border-active);
  }

  .rig-cable::after {
    top: auto;
    bottom: 8px;
    left: 21px;
    right: auto;
    transform: rotate(135deg);
  }

  .rig-cable span {
    top: calc(50% - 7px);
    left: 40px;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .rig-inside {
    grid-template-columns: 1fr;
  }

  .rig-bus {
    min-height: 32px;
  }

  .rig-bus::before {
    top: 4px;
    bottom: 4px;
    left: 24px;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--border-active);
  }

  .rig-bus::after {
    top: auto;
    bottom: 4px;
    left: 21px;
    right: auto;
    transform: rotate(135deg);
  }

  .rig-bus span {
    top: calc(50% - 7px);
    left: 40px;
    text-align: left;
  }

  .rig-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .lab-figure {
    padding: 16px;
  }

  .lrt-formula code {
    font-size: 12px;
    white-space: normal;
  }
}

/* ---------- lab diagrams: textbook style ----------
   Like a page from a computer-science textbook: plain white, big bold group
   titles above the boxes, square boxes outlined in one colour per kind of
   part, solid plum tiles for the steps, black arrows with bold labels. The
   colour tokens are redefined inside the figure, so the markup stays light. */
.lab-figure {
  --ink: #111111;
  --blue: #1a6cc0;
  --red: #dd2a1f;
  --orange: #ee7d2f;
  --plum: #932d5d;
  --green: #1b7a3a;
  --text: #111111;
  --text-strong: #222222;
  --text-muted: #5e5e5e;
  --border-quiet: #dedede;
  border-color: #dedede;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
}

.lab-figure figcaption {
  border-top-color: #e6e6e6;
  color: var(--text-muted);
}

.dia-title {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 22px/1.2 var(--font-ui);
  letter-spacing: -0.01em;
}

/* shared box: square, coloured outline, bold name */
.lab-figure .rig-box,
.lab-figure .lrt-steps li,
.lab-figure .lrt-out {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

.lab-figure .rig-box strong,
.lab-figure .lrt-steps strong,
.lab-figure .lrt-out strong {
  color: var(--ink);
  font-weight: 700;
}

.lab-figure .rig-tag {
  color: var(--text-muted);
  font: 600 12px/16px var(--font-ui);
}

/* ---------- DMA ---------- */
.lab-figure .rig {
  grid-template-areas:
    "t1 . t2"
    "ctl cable pc";
  row-gap: 0;
}

.lab-figure .rig-t1 { grid-area: t1; }
.lab-figure .rig-t2 { grid-area: t2; }
.lab-figure .rig-control { grid-area: ctl; border-color: var(--blue); }
.lab-figure .rig-cable { grid-area: cable; }
.lab-figure .rig-pc { grid-area: pc; }

.lab-figure .rig-pc {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.lab-figure .rig-card { border-color: var(--red); }

.lab-figure .rig-inside > .rig-box:nth-child(3) { border-color: var(--orange); }

/* the result: a solid tile, like a register in the textbook diagram */
.lab-figure .rig-box.is-key {
  border-color: var(--plum);
  background: var(--plum);
}

.lab-figure .rig-box.is-key strong { color: #ffffff; }
.lab-figure .rig-box.is-key .rig-tag { color: rgb(255 255 255 / 0.75); }

/* note inside the frame: a dashed box, like a sub-area of storage */
.lab-figure .rig-note {
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px dashed var(--blue);
  border-radius: 2px;
  color: var(--ink);
  font: 700 15px/1.3 var(--font-ui);
  text-align: center;
}

/* arrows: 2px black with a solid head and a bold label above */
.lab-figure .rig-cable::before,
.lab-figure .rig-bus::before,
.lab-figure .lrt-col + .lrt-col::before {
  border-color: var(--ink);
  border-width: 2px;
}

.lab-figure .rig-cable::after,
.lab-figure .rig-bus::after,
.lab-figure .lrt-col + .lrt-col::after {
  width: 0;
  height: 0;
  border: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--ink);
  transform: none;
}

.lab-figure .rig-cable::after,
.lab-figure .rig-bus::after {
  top: calc(50% - 5px);
  right: 4px;
}

.lab-figure .lrt-col + .lrt-col::after {
  top: calc(50% - 5px);
  left: -14px;
}

.lab-figure .rig-cable span,
.lab-figure .rig-bus span {
  color: var(--ink);
  font: 700 13px/16px var(--font-ui);
}

.lab-figure .rig-card .pcb rect:first-child {
  stroke: #0e2318;
  stroke-width: 1.5;
}

/* ---------- LRT ---------- */
.lab-figure .lrt-label {
  margin-bottom: 12px;
}

/* inputs: blue outlined boxes */
.lab-figure .lrt-col:first-child .lrt-steps {
  gap: 8px;
}

.lab-figure .lrt-col:first-child .lrt-steps li {
  padding: 10px 12px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  background: #ffffff;
}

.lab-figure .lrt-col:first-child .lrt-steps b {
  background: transparent;
  color: var(--blue);
  padding: 0;
}

/* checks: solid plum tiles with white text */
.lab-figure .lrt-col:nth-child(2) .lrt-steps li {
  border-color: var(--plum);
  background: var(--plum);
}

.lab-figure .lrt-col:nth-child(2) .lrt-steps b {
  background: #ffffff;
  color: var(--plum);
}

.lab-figure .lrt-col:nth-child(2) .lrt-steps strong { color: #ffffff; }
.lab-figure .lrt-col:nth-child(2) .lrt-steps em { color: rgb(255 255 255 / 0.8); }

.lab-figure .lrt-steps em {
  color: var(--text-muted);
}

/* decision: red outlined block, like the control unit */
.lab-figure .lrt-decide {
  padding: 16px;
  border: 2px solid var(--red);
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

.lab-figure .lrt-decide .lrt-label {
  font-size: 22px;
}

.lab-figure .lrt-formula {
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #ffffff;
}

.lab-figure .lrt-formula code {
  color: var(--ink);
  font-weight: 700;
}

.lab-figure .lrt-decide .lrt-formula code {
  font-size: 12px;
  white-space: nowrap;
}

.lab-figure .lrt-formula p,
.lab-figure .lrt-formula sub {
  color: var(--text-muted);
}

.lab-figure .lrt-out {
  color: var(--ink);
}

.lab-figure .lrt-out.is-yes {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.lab-figure .lrt-out.is-yes strong { color: #ffffff; }

/* approximate area: dashed, the uncertain one */
.lab-figure .lrt-out:not(.is-yes) {
  border-style: dashed;
  border-color: var(--blue);
}

@media (max-width: 1000px) {
  .lab-figure .rig {
    grid-template-areas: "t1" "ctl" "cable" "t2" "pc";
  }

  .lab-figure .rig-cable::after {
    top: auto;
    bottom: 4px;
    left: 19px;
    right: auto;
    transform: rotate(90deg);
  }

  .lab-figure .lrt-col + .lrt-col::after {
    top: -14px;
    left: 20px;
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  .lab-figure .rig-bus::after {
    top: auto;
    bottom: 0;
    left: 19px;
    right: auto;
    transform: rotate(90deg);
  }
}

/* ===================== blog covers drawn in code =====================
   The glyph drawing is an SVG made by tools/blog_art.py; the report card
   is live HTML sized in container units so it scales with the cover. */
.art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  background: var(--bg-editor);
}

.art > img {
  display: block;
  width: 100%;
  height: 100%;
}

.art-card {
  position: absolute;
  top: 7cqw;
  right: 7cqw;
  width: 34cqw;
  padding: 1.5cqw 1.75cqw;
  border-radius: clamp(6px, 1cqw, 12px);
  border: 1px solid var(--border);
  background: rgb(18 18 18 / 0.94);
  box-shadow: 0 2cqw 5cqw rgb(0 0 0 / 0.5);
  font-family: var(--font-mono);
}

.art-card-head {
  display: flex;
  align-items: center;
  gap: 0.75cqw;
  padding-bottom: 1.1cqw;
  margin-bottom: 0.9cqw;
  border-bottom: 1px solid var(--border-quiet);
  color: var(--text);
  font-size: 1.35cqw;
}

/* live status: the scan is running */
.art-dot {
  width: 0.7cqw;
  height: 0.7cqw;
  border-radius: var(--r-pill);
  background: var(--live);
}

.art-pin {
  margin-left: auto;
  color: var(--text-muted);
}

.art-card dl {
  display: grid;
  gap: 0.25cqw;
  margin: 0;
}

.art-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  padding: 0.45cqw 0.6cqw;
  border-radius: clamp(3px, 0.5cqw, 6px);
  font-size: 1.25cqw;
  font-variant-numeric: tabular-nums;
}

.art-card dt {
  color: var(--text-strong);
}

.art-card dd {
  margin: 0;
  color: var(--text-muted);
}

/* the one finding the cover points at */
.art-card dl .hit {
  background: var(--live-soft);
}

.art-card dl .hit dt,
.art-card dl .hit dd {
  color: var(--live);
}
