:root {
  --paper: #f3f0e8;
  --surface: #faf8f2;
  --ink: #1d1d1a;
  --muted: #65645f;
  --quiet: #8a8881;
  --line: #c9c5ba;
  --line-dark: #85827a;
  --red: #9f1d24;
  --serif: "Songti SC", SimSun, "STSong", Georgia, serif;
  --sans: Inter, "Segoe UI", "Microsoft YaHei UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(29, 29, 26, .028) calc(100% - 1px)) 0 0 / 24px 24px,
    var(--paper);
}

body,
button,
input,
select {
  font: 14px/1.45 var(--sans);
}

button,
input,
select,
a {
  border-radius: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
select {
  min-height: 44px;
}

button,
select {
  cursor: pointer;
}

button,
input,
select {
  color: var(--ink);
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

button:hover,
a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

small[lang="en"],
.bilingual small,
.status-value small,
.verification-compact small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .73em;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(245px, 1fr);
  align-items: stretch;
  min-height: 78px;
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 240, 232, .97);
}

.brand,
.primary-nav a,
.review-state {
  display: flex;
  min-height: 77px;
  justify-content: center;
  flex-direction: column;
}

.brand {
  padding: 12px clamp(18px, 3vw, 48px);
  text-decoration: none;
}

.brand span {
  font: 600 clamp(20px, 2vw, 27px)/1.05 var(--serif);
  letter-spacing: .06em;
}

.brand small {
  margin-top: 5px;
  font: 600 10px/1 var(--sans);
  letter-spacing: .16em;
}

.primary-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  border-inline: 1px solid var(--line-dark);
}

.primary-nav a {
  min-width: 116px;
  padding: 10px 22px;
  text-align: center;
  text-decoration: none;
}

.primary-nav a + a {
  border-left: 1px solid var(--line);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -4px 0 var(--red);
}

.primary-nav small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-state {
  margin: 0;
  padding: 12px clamp(18px, 3vw, 48px);
  align-items: flex-end;
  text-align: right;
}

.review-state strong {
  border-bottom: 2px solid var(--red);
  font-size: 12px;
  letter-spacing: .04em;
}

.review-state small {
  font-size: 9px;
  letter-spacing: .12em;
}

#app {
  width: min(100%, 1600px);
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 48px) clamp(18px, 4vw, 64px) 72px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}

.home-lead,
.page-heading,
.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.home-lead h1,
.page-heading h1,
.detail-header h1,
.explicit-state h1 {
  margin-bottom: 12px;
  font: 600 clamp(42px, 6vw, 82px)/.95 var(--serif);
  letter-spacing: -.035em;
}

.home-lead h1 small,
.page-heading h1 small,
.detail-header h1 small,
.explicit-state h1 small,
.landscape-heading h2 small,
.dossier-section h2 small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .14em;
}

.home-lead p,
.page-heading p,
.detail-header p {
  max-width: 640px;
  margin-bottom: 0;
  color: #4c4b46;
  font-size: 15px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--ink);
}

.home-metrics > div {
  min-width: 0;
  padding: 13px 12px 12px;
}

.home-metrics > div + div {
  border-left: 1px solid var(--line);
}

.home-metrics strong {
  display: block;
  margin-bottom: 3px;
  font: 500 28px/1 var(--serif);
}

.home-metrics .bilingual {
  font-size: 11px;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(190px, .62fr) minmax(280px, 2fr) 150px;
  margin-top: clamp(26px, 4vw, 50px);
  border-block: 1px solid var(--ink);
}

.home-search label {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 8px 18px;
  border-right: 1px solid var(--line);
  font-weight: 600;
}

.home-search input,
.home-search button {
  border: 0;
}

.home-search input {
  min-width: 0;
  padding: 0 18px;
  background: var(--surface);
  font-size: 16px;
}

.home-search button {
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.home-search button:hover {
  background: var(--red);
  color: white;
}

.landscape-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 35px 0 10px;
}

.landscape-heading h2 {
  margin: 0;
  font: 600 25px/1 var(--serif);
}

.landscape-heading > a,
.category-intro > a,
.pending-classification > a,
.detail-back,
.relationship-section > a,
.empty-state > a,
.explicit-state > a {
  font-size: 12px;
  font-weight: 600;
}

.category-band {
  display: grid;
  grid-template-columns: minmax(225px, .9fr) minmax(0, 3.1fr);
  min-height: 166px;
  border-top: 1px solid var(--ink);
}

.category-band:last-of-type {
  border-bottom: 1px solid var(--ink);
}

.category-intro {
  position: relative;
  padding: 18px 22px 16px 0;
}

.category-code {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--red);
  font: 700 11px/1 var(--mono);
}

.category-intro h2 {
  margin: 0 50px 12px 0;
  font: 600 24px/1.05 var(--serif);
}

.category-intro h2 small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 600 10px/1.2 var(--sans);
  letter-spacing: .08em;
}

.category-intro p {
  margin-bottom: 14px;
  font-size: 12px;
}

.band-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.band-product {
  display: grid;
  grid-template-rows: 125px auto;
  min-width: 0;
  padding: 10px 12px;
  text-decoration: none;
}

.band-product + .band-product {
  border-left: 1px solid var(--line);
}

.band-image {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.band-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.band-product strong {
  align-self: end;
  padding-top: 7px;
  font: 600 12px/1 var(--mono);
}

.pending-classification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 65px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}

.pending-classification strong {
  font-size: 12px;
}

.representative-note {
  max-width: 850px;
  margin: 14px 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.page-heading {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--ink);
}

.page-heading h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.result-count {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 3px;
}

.result-count > strong {
  font: 500 42px/1 var(--serif);
}

.registry-controls {
  margin: 20px 0 24px;
}

.registry-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.registry-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  max-width: 740px;
}

.registry-search label {
  font-weight: 600;
}

.registry-search input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
}

.registry-search button {
  align-self: end;
  background: var(--ink);
  color: var(--surface);
}

.view-switch {
  display: grid;
  grid-template-columns: repeat(2, 86px);
  min-height: 44px;
  border: 1px solid var(--line-dark);
}

.view-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
}

.view-switch a + a {
  border-left: 1px solid var(--line);
}

.view-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--surface);
}

.view-switch a[aria-current="page"] small {
  color: #d6d3ca;
}

.desktop-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.desktop-filters label,
.mobile-filters label {
  display: block;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
}

.desktop-filters select,
.mobile-filters select {
  width: 100%;
  margin-top: 5px;
  padding: 5px 8px;
  font-size: 12px;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(62px, 1fr));
  gap: 7px;
  align-self: end;
}

.filter-actions button:first-child {
  background: var(--ink);
  color: var(--surface);
}

.mobile-filters {
  display: none;
}

.filter-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.parameter-warning {
  margin: 12px 0 0;
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 395px;
  flex-direction: column;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, .46);
  text-decoration: none;
}

.product-card:hover {
  background: var(--surface);
  color: var(--ink);
}

.card-media {
  display: flex;
  height: 195px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.card-media-pending {
  padding: 18px;
  border-block: 1px dashed var(--line-dark);
  color: var(--muted);
  text-align: left;
}

.card-heading {
  min-height: 80px;
  padding: 13px 2px 10px;
}

.card-heading > strong {
  display: block;
  margin-bottom: 8px;
  font: 700 17px/1.1 var(--mono);
}

.card-category {
  font-size: 11px;
}

.card-states {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.card-states > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.card-states > div > span:first-child {
  color: var(--muted);
}

.status-value,
.verification-compact {
  min-width: 0;
  font-weight: 600;
}

.registry-index {
  border-top: 1px solid var(--ink);
}

.index-header,
.index-row {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 1.25fr 1.25fr 1.7fr .85fr .55fr;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
}

.index-header {
  min-height: 45px;
  border-bottom-color: var(--ink);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}

.index-row {
  text-decoration: none;
}

.index-row:hover {
  background: var(--surface);
}

.index-row > strong {
  font-family: var(--mono);
}

.index-open {
  justify-self: end;
  text-decoration: underline;
}

.state-legend {
  margin-top: 35px;
  border-block: 1px solid var(--ink);
}

.state-legend summary {
  min-height: 50px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
}

.state-legend > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.state-legend p {
  margin: 0;
  padding: 16px;
  font-size: 12px;
}

.state-legend p + p {
  border-left: 1px solid var(--line);
}

.state-legend strong {
  display: block;
  margin-bottom: 8px;
}

.detail-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 24px;
}

.detail-header {
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, .4fr);
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.detail-header h1 {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(42px, 7vw, 92px);
  letter-spacing: -.06em;
}

.detail-verification {
  padding-top: 8px;
  border-top: 3px solid var(--ink);
}

.detail-verification > span,
.detail-verification > strong {
  display: block;
}

.detail-verification > strong {
  margin-top: 12px;
  font: 600 18px/1.2 var(--serif);
}

.current-statement {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(250px, 1.35fr) minmax(380px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}

.current-statement > div:first-child {
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.current-statement > div > strong {
  display: block;
  font: 600 17px/1.2 var(--serif);
}

.current-statement > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.current-statement dl,
.evidence-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.current-statement dl > div,
.evidence-counts > div {
  padding: 0 12px;
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 10px;
}

dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.detail-media {
  margin-top: 30px;
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  margin: 0;
  border-block: 1px solid var(--ink);
}

.gallery-stage {
  display: flex;
  min-width: 0;
  height: min(61vw, 680px);
  min-height: 460px;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  overflow: hidden;
  background: var(--surface);
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.product-gallery figcaption {
  border-left: 1px solid var(--line);
}

.gallery-meta {
  display: flex;
  height: 100%;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
}

.gallery-meta > span {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.gallery-meta > span:first-child {
  font: 700 17px/1 var(--mono);
}

.annotation-note {
  margin-top: auto;
  color: var(--muted);
}

.gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  border-top: 1px solid var(--line);
}

.gallery-thumbs button {
  height: 92px;
  min-height: 92px;
  padding: 6px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.gallery-thumbs button[aria-current="true"] {
  box-shadow: inset 0 -4px 0 var(--red);
  background: var(--surface);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.missing-image-record {
  display: grid;
  grid-template-columns: 230px minmax(220px, .8fr) minmax(0, 2fr);
  min-height: 230px;
  border-block: 1px solid var(--ink);
}

.missing-image-record > header,
.missing-image-record > p,
.missing-image-record > dl {
  padding: 24px;
}

.missing-image-record > header {
  border-right: 1px dashed var(--line-dark);
}

.missing-image-record > header span,
.missing-image-record > header strong {
  display: block;
}

.missing-image-record > header span {
  font: 700 16px/1 var(--mono);
}

.missing-image-record > header strong {
  margin-top: 55px;
  color: var(--red);
  font: 600 22px/1.1 var(--serif);
}

.missing-image-record > p {
  margin: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.missing-image-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.missing-image-record dl > div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.runtime-image-fallback {
  display: flex;
  width: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px dashed var(--red);
  background: var(--paper);
  color: var(--red);
  text-align: center;
}

.detail-dossier {
  margin-top: 34px;
  border-top: 1px solid var(--ink);
}

.dossier-section {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(0, 3.25fr);
  column-gap: clamp(30px, 5vw, 82px);
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--ink);
}

.dossier-section > h2 {
  margin: 0;
  font: 600 25px/1.1 var(--serif);
}

.dossier-section > :not(h2) {
  grid-column: 2;
}

.section-intro,
.boundary-copy {
  max-width: 840px;
  color: var(--muted);
}

.fact-grid,
.component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact-grid > div,
.component-grid > div {
  min-height: 90px;
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid span,
.component-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.fact-grid strong,
.component-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 13px;
}

.technical-list,
.cert-list,
.case-list {
  border-top: 1px solid var(--line);
}

.technical-list article {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(250px, 1.3fr) minmax(260px, 1.1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.technical-list header strong,
.technical-list header small,
.recorded-value,
.missing-value,
.unit-state,
.technical-list footer > span,
.technical-list footer em {
  display: block;
}

.technical-list header strong,
.recorded-value {
  font-family: var(--mono);
}

.recorded-value {
  max-width: 540px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.unit-state,
.technical-list footer,
.technical-list footer small {
  color: var(--muted);
  font-size: 10px;
}

.technical-list footer em {
  margin-top: 8px;
  padding-left: 9px;
  border-left: 2px solid var(--red);
  color: var(--red);
  font-style: normal;
}

.relationship-section .relationship-lead {
  margin-bottom: 16px;
  padding: 17px;
  border-left: 4px solid var(--red);
  background: var(--surface);
  font: 600 18px/1.3 var(--serif);
}

.relationship-section ul,
.gap-list,
.signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.relationship-section li,
.signal-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.open-note {
  padding: 12px;
  border-left: 3px solid var(--red);
}

.cert-list article,
.case-list article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cert-list h3,
.case-list article > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}

.cert-list dl,
.case-list dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.cert-list dl > div,
.case-list dl > div {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.verification-overview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 15px;
  border-block: 1px solid var(--line-dark);
}

.verification-overview strong {
  font: 600 18px/1.2 var(--serif);
}

.specific-empty {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.gap-list li {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 2.3fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.gap-list code {
  font: 11px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.coverage-summary {
  padding: 16px;
  border-block: 1px solid var(--line-dark);
}

.coverage-summary > strong {
  font: 600 18px/1.2 var(--serif);
}

.coverage-summary p {
  margin: 10px 0 0;
  color: var(--muted);
}

.component-grid {
  margin-top: 18px;
}

.history-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.history-list h3,
.history-list p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.history-list p {
  font-family: var(--mono);
  font-size: 11px;
}

.evidence-counts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.empty-state,
.explicit-state {
  min-height: 360px;
  padding: 70px 0;
  border-block: 1px solid var(--ink);
}

.empty-state h2 {
  font: 600 34px/1 var(--serif);
}

@media (max-width: 1199px) {
  .registry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .desktop-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .index-header,
  .index-row {
    grid-template-columns: .9fr 1fr 1.1fr 1.1fr 1.5fr .7fr .45fr;
    gap: 9px;
  }
}

@media (max-width: 839px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
  }

  .brand {
    min-height: 64px;
    padding: 10px 18px;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-inline: 0;
  }

  .primary-nav a {
    min-height: 50px;
  }

  .review-state {
    min-height: 64px;
    padding: 8px 18px;
  }

  #app {
    min-height: calc(100vh - 175px);
    padding-top: 30px;
  }

  .home-lead,
  .page-heading,
  .detail-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-lead h1,
  .page-heading h1 {
    font-size: clamp(38px, 12vw, 60px);
  }

  .home-search {
    grid-template-columns: 1fr 120px;
  }

  .home-search label {
    grid-column: 1 / -1;
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-band {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

  .band-product {
    grid-template-rows: 92px auto;
  }

  .registry-primary {
    grid-template-columns: 1fr;
  }

  .view-switch {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    background: var(--paper);
  }

  .desktop-filters {
    display: none;
  }

  .mobile-filters {
    display: block;
    margin-top: 14px;
    border-block: 1px solid var(--line-dark);
  }

  .mobile-filters summary {
    min-height: 48px;
    padding: 13px 0;
    cursor: pointer;
  }

  .mobile-filters form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
  }

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

  .product-card {
    min-height: 375px;
  }

  .card-media {
    height: 180px;
  }

  .registry-index {
    overflow-x: auto;
  }

  .index-header,
  .index-row {
    min-width: 760px;
  }

  .state-legend > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-legend p:nth-child(3) {
    border-left: 0;
  }

  .state-legend p:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .current-statement {
    grid-template-columns: 1fr;
  }

  .current-statement dl {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    height: 72vw;
    min-height: 330px;
  }

  .product-gallery figcaption {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-meta {
    min-height: auto;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    overflow-x: auto;
  }

  .missing-image-record {
    grid-template-columns: 1fr 1.35fr;
  }

  .missing-image-record > header {
    border-right: 1px dashed var(--line-dark);
  }

  .missing-image-record > p {
    border-right: 0;
  }

  .missing-image-record > dl {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .dossier-section {
    grid-template-columns: 1fr;
  }

  .dossier-section > :not(h2) {
    grid-column: 1;
  }

  .dossier-section > h2 {
    margin-bottom: 22px;
  }

  .technical-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  body,
  button,
  input,
  select {
    font-size: 12px;
  }

  small[lang="en"],
  .bilingual small,
  .status-value small,
  .verification-compact small {
    font-size: 10px;
  }

  .brand span {
    font-size: 17px;
  }

  .brand small {
    font-size: 8px;
  }

  .review-state strong {
    font-size: 10px;
  }

  .review-state small {
    font-size: 7px;
  }

  .primary-nav a {
    min-width: 0;
    padding: 7px;
  }

  #app {
    padding: 25px 14px 55px;
  }

  .site-footer {
    display: block;
    padding: 16px 14px;
  }

  .site-footer small {
    display: block;
    margin-top: 3px;
  }

  .home-lead h1,
  .page-heading h1 {
    font-size: 42px;
  }

  .home-lead p,
  .page-heading p,
  .detail-header p {
    font-size: 12px;
  }

  .home-metrics strong {
    font-size: 24px;
  }

  .home-metrics > div {
    padding-inline: 7px;
  }

  .home-search {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .home-search input {
    padding-inline: 9px;
    font-size: 12px;
  }

  .landscape-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-band {
    grid-template-columns: 1fr;
  }

  .category-intro {
    min-height: 125px;
    padding-right: 0;
  }

  .band-products {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .band-product:nth-child(odd) {
    border-left: 0;
  }

  .pending-classification {
    align-items: start;
    flex-direction: column;
  }

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

  .result-count {
    justify-content: flex-start;
  }

  .registry-search {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  .mobile-filters form {
    grid-template-columns: 1fr;
  }

  .filter-summary {
    display: block;
  }

  .filter-summary small {
    margin-top: 4px;
  }

  .product-card {
    min-height: 332px;
    padding: 7px;
  }

  .card-media {
    height: 145px;
  }

  .card-heading {
    min-height: 70px;
  }

  .card-heading > strong {
    font-size: 14px;
  }

  .card-states > div {
    display: block;
    padding: 6px 0;
  }

  .card-states > div > span:first-child {
    display: none;
  }

  .detail-header h1 {
    font-size: clamp(38px, 15vw, 58px);
  }

  .current-statement dl {
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }

  .current-statement dl > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .gallery-stage {
    height: 88vw;
    min-height: 300px;
    padding: 16px;
  }

  .gallery-meta {
    padding: 14px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 88px);
  }

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

  .missing-image-record > header,
  .missing-image-record > p,
  .missing-image-record > dl {
    padding: 18px 0;
  }

  .missing-image-record > header,
  .missing-image-record > p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .missing-image-record > header strong {
    margin-top: 22px;
  }

  .missing-image-record > dl {
    display: block;
  }

  .missing-image-record dl > div {
    padding: 10px 0;
  }

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

  .cert-list dl,
  .case-list dl,
  .evidence-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-overview,
  .cert-list h3,
  .case-list article > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gap-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .state-legend > div {
    grid-template-columns: 1fr;
  }

  .state-legend p + p,
  .state-legend p:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* Team-review Detail contains five stable product-facing sections only. */
.detail-body > .detail-section:nth-child(5) {
  grid-column: 1 / -1;
  border-right: 0;
  padding-right: 0;
}

.operational-certifications,
.operational-verification {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.operational-certifications > h3 {
  margin: 0 0 10px;
  font: 600 18px/1.25 var(--serif);
}

.certification-list h4 {
  margin: 0 0 10px;
  font: 600 17px/1.25 var(--serif);
}

.operational-verification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.association-unresolved .pending-layout {
  grid-template-columns: minmax(200px, .65fr) 1.35fr;
  align-items: stretch;
}

.card-image.asset-unresolved {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-dark);
}

@media (max-width: 839px) {
  .detail-body > .detail-section:nth-child(5) {
    grid-column: 1;
  }

  .operational-verification,
  .association-unresolved .pending-layout {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .registry-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 370px;
  }

  .card-media {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* R2.1 image presentation layer. Deliberately isolated from the legacy
   gallery selectors above so old grid-column and fixed-height rules cannot
   affect the recovered-image gallery. */
:root {
  --r21-paper: #f3f0e8;
  --r21-surface: #faf8f2;
  --r21-ink: #1d1d1a;
  --r21-rule: #c9c4b9;
  --r21-red: #9f1d24;
}

.card-image,
.category-specimen figure {
  position: relative;
  overflow: hidden;
  background: var(--r21-paper);
}

.card-image {
  aspect-ratio: 4 / 3;
}

.card-image img,
.category-specimen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  mix-blend-mode: normal !important;
}

.card-image.asset-document_preview,
.r21-gallery-stage.asset-document_preview {
  background: var(--r21-surface);
  outline: 1px solid var(--r21-rule);
  outline-offset: -1px;
}

.state-review_required::before {
  border-top-style: dotted;
}

.r21-media-section {
  margin: 0 0 48px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--r21-ink);
  border-bottom: 1px solid var(--r21-rule);
}

.r21-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: start;
  gap: 28px;
  margin-bottom: 20px;
}

.r21-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 18vw, 260px);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: start;
  min-width: 0;
}

.r21-gallery-main {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.r21-gallery-stage {
  position: relative;
  height: clamp(360px, 33vw, 460px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--r21-paper);
}

.r21-gallery-stage > [data-gallery-main] {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.r21-gallery-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: 50% 50%;
  mix-blend-mode: normal !important;
}

.r21-gallery-main figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid var(--r21-rule);
}

.r21-gallery-main figcaption > span {
  min-width: 0;
}

.r21-gallery-main figcaption > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--r21-ink);
  text-decoration-color: var(--r21-red);
  text-underline-offset: 4px;
}

.r21-gallery-rail {
  grid-column: auto !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
  max-height: clamp(360px, 33vw, 460px);
  padding: 0 8px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0 !important;
  scrollbar-width: thin;
}

.r21-gallery-thumb {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 78px;
  height: auto;
  padding: 7px;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom-color: var(--r21-rule);
  border-radius: 0;
  background: transparent;
  color: var(--r21-ink);
  text-align: left;
  cursor: pointer;
}

.r21-gallery-thumb[aria-pressed="true"] {
  border-color: var(--r21-red);
  background: var(--r21-surface);
}

.r21-gallery-thumb img {
  position: static;
  display: block;
  width: 92px;
  height: 64px;
  min-width: 0;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: 50% 50%;
  background: var(--r21-paper);
  mix-blend-mode: normal !important;
}

.r21-gallery-thumb > span,
.r21-gallery-thumb .bilingual {
  min-width: 0;
  overflow: hidden;
}

.r21-variant-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.r21-variant-controls button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--r21-rule);
  border-radius: 0;
  background: transparent;
  color: var(--r21-ink);
  text-align: left;
}

.r21-variant-controls button[aria-selected="true"] {
  border-color: var(--r21-red);
  box-shadow: inset 0 -2px 0 var(--r21-red);
}

.r21-variant-controls .variant-note {
  display: block;
  margin-top: 4px;
  color: var(--muted, #625f57);
}

@media (max-width: 839px) {
  .r21-gallery-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .r21-variant-controls {
    justify-content: flex-start;
  }

  .r21-gallery-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .r21-gallery-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .r21-gallery-main figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .r21-gallery-main figcaption > a {
    width: fit-content;
  }

  .r21-gallery-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 38vw);
    grid-template-columns: none;
    max-height: none;
    padding: 0 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .r21-gallery-thumb {
    grid-template-columns: 1fr;
    grid-template-rows: 76px auto;
    min-height: 118px;
    padding: 6px;
    scroll-snap-align: start;
  }

  .r21-gallery-thumb img {
    width: 100%;
    height: 76px;
    max-height: 76px;
  }
}

@media print {
  .primary-nav,
  .review-state,
  .site-footer,
  .registry-controls,
  .gallery-thumbs {
    display: none !important;
  }

  #app {
    width: 100%;
    padding: 20px;
  }
}

/* R2 product-first convergence layer */
.home-page,
.products-page,
.detail-page,
.verification-page {
  max-width: 1480px;
  margin: 0 auto;
}

.section-label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.title-pair,
.heading-pair,
.bilingual {
  display: block;
}

.title-pair > span,
.heading-pair > span {
  display: block;
  font-family: var(--serif);
}

.title-pair > small,
.heading-pair > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.home-intro h1,
.page-heading h1 {
  margin: 0;
  font: 600 clamp(42px, 5vw, 68px)/.96 var(--serif);
  letter-spacing: -.045em;
}

.home-intro h1 small,
.page-heading h1 small {
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: .04em;
}

.purpose {
  max-width: 640px;
  margin: 12px 0 0;
  font-size: 16px;
}

.purpose small {
  margin-top: 4px;
  font-size: 11px;
}

.home-count {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 5px;
}

.home-count > strong {
  font: 500 64px/.78 var(--serif);
}

.home-count > span {
  min-width: 130px;
  font-size: 12px;
}

.home-search {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: end;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}

.home-search > label {
  font-weight: 650;
}

.search-line {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-line input {
  width: 100%;
  padding: 10px 14px;
  border-right: 0;
  background: rgba(250, 248, 242, .82);
}

.search-line button,
.filter-form button {
  padding: 9px 20px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
}

.search-line button:hover,
.filter-form button:hover {
  background: var(--red);
  color: #fff;
}

.category-list {
  border-bottom: 1px solid var(--ink);
}

.category-band {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 2.25fr);
  min-height: 142px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.category-heading {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 24px 14px 0;
  text-decoration: none;
}

.category-code {
  position: static;
  top: auto;
  right: auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  font: 700 13px/1 var(--mono);
}

.category-name strong,
.category-name small {
  display: block;
}

.category-name strong {
  font: 600 clamp(20px, 2vw, 28px)/1.05 var(--serif);
}

.category-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.category-count {
  text-align: right;
}

.category-count > strong {
  display: block;
  font: 500 30px/1 var(--serif);
}

.category-count > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.category-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
}

.category-specimen {
  min-width: 0;
  padding: 8px 10px 7px;
  text-decoration: none;
}

.category-specimen + .category-specimen {
  border-left: 1px solid var(--line);
}

.category-specimen figure {
  display: grid;
  grid-template-rows: 96px auto;
  margin: 0;
}

.category-specimen img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  background: var(--surface);
}

.category-specimen figcaption {
  padding-top: 6px;
  font: 700 11px/1 var(--mono);
}

.home-index-link {
  display: flex;
  justify-content: flex-end;
  padding-top: 22px;
}

.text-action {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border-bottom: 2px solid var(--red);
  text-decoration: none;
  font-weight: 650;
}

.text-action.secondary {
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--ink);
}

.page-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.results-summary,
.verification-total {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 6px;
}

.results-summary strong,
.verification-total strong {
  font: 500 48px/.8 var(--serif);
}

.results-summary small {
  display: block;
  max-width: 220px;
  color: var(--muted);
}

.desktop-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-controls {
  display: none;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(520px, 3fr) auto;
  gap: 14px;
  align-items: end;
}

.filter-search,
.filter-field {
  display: grid;
  gap: 5px;
}

.filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(122px, 1fr));
  gap: 10px;
}

.filter-form label {
  font-size: 10px;
  font-weight: 650;
}

.filter-form input,
.filter-form select {
  width: 100%;
  padding: 8px 10px;
}

.view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  border: 1px solid var(--ink);
}

.view-switch a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 14px;
  text-decoration: none;
}

.view-switch a + a {
  border-left: 1px solid var(--ink);
}

.view-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 16px;
  padding-top: 24px;
}

.product-card {
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-image {
  display: grid;
  height: 190px;
  margin: 0;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-copy {
  min-height: 190px;
  padding: 13px 0 22px;
}

.card-model {
  margin: 0;
  font: 700 clamp(22px, 2vw, 30px)/1 var(--serif);
}

.card-category {
  min-height: 42px;
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.card-states {
  display: grid;
  gap: 7px;
}

.state-rule {
  display: block;
  padding: 6px 0 4px 10px;
  border-left: 3px solid var(--line-dark);
  font-size: 10px;
}

.state-pending,
.state-insufficient,
.severity-high {
  border-left-color: var(--red);
}

.state-alternate,
.state-partial,
.severity-medium {
  border-left-style: dotted;
}

.state-reference_only {
  border-left-style: dashed;
}

.product-index {
  margin-top: 24px;
  border-top: 1px solid var(--ink);
}

.index-head,
.index-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(170px, 1.4fr) repeat(3, minmax(130px, 1fr)) 70px;
  gap: 18px;
  align-items: center;
}

.index-head {
  min-height: 48px;
  color: var(--muted);
  font-size: 10px;
}

.index-row {
  min-height: 62px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index-row > strong {
  font: 700 20px/1 var(--serif);
}

.index-row .row-action {
  text-align: right;
}

.state-legend {
  margin-top: 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.state-legend summary {
  min-height: 52px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 650;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 0 20px;
}

.legend-grid p {
  margin: 0;
}

.legend-grid strong {
  display: block;
  margin-bottom: 8px;
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 330px);
  gap: 48px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.detail-header h1 {
  margin: 12px 0 0;
  font: 600 clamp(50px, 6.1vw, 80px)/.82 var(--serif);
  letter-spacing: -.05em;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
}

.detail-category {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-summary {
  display: grid;
  gap: 8px;
}

.media-section,
.pending-record {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--ink);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) 1.45fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 18px;
}

.gallery-heading h2,
.detail-section h2,
.pending-record h2 {
  margin: 0;
  font: 600 clamp(23px, 2.2vw, 32px)/1 var(--serif);
}

.single-variant-boundary {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(180px, 1.3fr);
  gap: 18px;
  align-items: end;
  padding-left: 14px;
  border-left: 2px solid var(--red);
}

.single-variant-boundary strong {
  font-weight: 650;
}

.heading-pair small {
  font-size: 10px;
  letter-spacing: .08em;
}

.variant-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.variant-controls button {
  min-width: 142px;
  padding: 7px 12px;
  border-color: var(--line-dark);
  text-align: left;
}

.variant-controls button[aria-selected="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--red);
}

.variant-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(180px, 2fr);
  gap: 20px;
}

.gallery-main {
  margin: 0;
}

.main-image-field {
  display: grid;
  height: min(53vw, 530px);
  min-height: 390px;
  place-items: center;
  background: var(--surface);
}

.main-image-field img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.gallery-main figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.gallery-main figcaption a {
  flex: 0 0 auto;
}

.gallery-thumbs {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  min-width: 0;
  min-height: 118px;
  padding: 6px;
  border-color: var(--line);
  background: var(--surface);
}

.gallery-thumb[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--red);
}

.gallery-thumb img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.gallery-thumb > span {
  margin-top: 5px;
  text-align: left;
  font-size: 9px;
}

.pending-layout {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1.5fr;
  gap: 28px;
  margin-top: 18px;
}

.pending-mark {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed var(--line-dark);
  background: rgba(250, 248, 242, .72);
  text-align: center;
}

.pending-layout dl,
.identity-grid,
.operational dl,
.evidence-summary dl,
.certification-list dl,
.gap-list dl,
.open-list dl,
.verification-case dl {
  margin: 0;
}

.pending-layout dl > div,
.identity-grid > div,
.operational dl > div,
.evidence-summary dl > div,
.certification-list dl > div,
.gap-list dl > div,
.open-list dl > div,
.verification-case dl > div {
  display: grid;
  grid-template-columns: minmax(140px, .65fr) 1.35fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 10px;
}

dd {
  margin: 0;
}

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

.detail-section {
  grid-column: span 6;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line-dark);
}

.detail-section:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.detail-section:nth-child(even) {
  padding-left: 0;
}

.detail-section > h2 {
  margin-bottom: 20px;
}

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

.spec-grid > div {
  min-height: 106px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.spec-grid dd strong,
.spec-grid dd small {
  display: block;
}

/* Targeted RC readability only; the accepted Detail layout and global tokens remain unchanged. */
.rc-readable-section .rc-evidence-boundary {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.rc-readable-section .spec-grid > div {
  min-height: 88px;
}

.rc-readable-section .spec-grid dd strong {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-page[data-product-detail="mq8"] .spec-grid > div:nth-child(4),
.detail-page[data-product-detail="mq8"] .spec-grid > div:nth-child(5),
.detail-page[data-product-detail="mq8"] .spec-grid > div:nth-child(6),
.detail-page[data-product-detail="mq8"] .spec-grid > div:nth-child(7),
.detail-page[data-product-detail="me12"] .spec-grid > div:nth-child(2),
.detail-page[data-product-detail="me12"] .spec-grid > div:nth-child(6),
.detail-page[data-product-detail="me12"] .spec-grid > div:nth-child(8) {
  grid-column: 1 / -1;
}

.spec-grid dd strong {
  margin: 5px 0 7px;
  font-size: 15px;
  line-height: 1.5;
}

.spec-grid dd small {
  color: var(--muted);
  font-size: 9px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.feature-list strong,
.feature-list small {
  display: block;
}

.feature-list small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.identity-grid {
  display: grid;
  gap: 0;
}

.relationship-record,
.certification-list article,
.gap-list article,
.open-list article,
.verification-case {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.relationship-target {
  font-weight: 700;
}

.relationship-record ul {
  columns: 2;
  padding-left: 18px;
}

.certification-list h3,
.gap-list h3,
.open-list h3,
.verification-case h3 {
  margin: 0 0 10px;
  font: 600 18px/1.25 var(--serif);
}

.operational dl,
.evidence-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.operational dl > div,
.evidence-summary dl > div {
  display: block;
  border-top: 1px solid var(--line);
}

.operational dd,
.evidence-summary dd {
  margin-top: 8px;
}

.missing-information,
.open-items,
.evidence-summary {
  grid-column: 1 / -1;
  border-right: 0 !important;
  padding-right: 0 !important;
}

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

.gap-list dd > span {
  display: inline-block;
  margin: 0 8px 5px 0;
  padding-bottom: 2px;
  border-bottom: 1px dotted var(--line-dark);
}

.open-count {
  display: inline-block;
  margin: 0 0 8px;
  padding: 7px 0 5px 12px;
  border-left: 4px solid var(--red);
  font-weight: 700;
}

.information-required p {
  max-width: 520px;
  padding: 18px 0;
  border-top: 1px dashed var(--line-dark);
  border-bottom: 1px dashed var(--line-dark);
}

.verification-page .page-heading p {
  max-width: 640px;
}

.verification-boundary {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--ink);
  background: rgba(250, 248, 242, .75);
}

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

.verification-case header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.verification-case code {
  font: 700 10px/1.4 var(--mono);
}

.case-disposition {
  padding: 12px;
  border-left: 3px solid var(--line-dark);
  background: rgba(250, 248, 242, .82);
}

.route-warning {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--red);
}

.empty-state,
.explicit-state {
  min-height: 52vh;
  padding: 80px 0;
}

.empty-state h2,
.explicit-state h1 {
  margin: 0 0 18px;
  font: 600 clamp(34px, 5vw, 70px)/1 var(--serif);
}

.image-pending,
.runtime-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--line-dark);
  background: rgba(250, 248, 242, .7);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: 1fr; }
  .filter-form button { width: 180px; }
  .category-band { grid-template-columns: minmax(240px, .9fr) minmax(460px, 2fr); }
}

@media (max-width: 839px) {
  #app { padding: 22px 16px 54px; }
  .site-header { grid-template-columns: 1fr auto; }
  .review-state { display: none; }
  .desktop-controls { display: none; }
  .mobile-controls { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
  .mobile-controls details summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 650; }
  .mobile-controls .filter-form { padding: 12px 0; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro,
  .page-heading,
  .detail-header { grid-template-columns: 1fr; gap: 20px; }
  .home-count { justify-self: start; }
  .home-search { grid-template-columns: 1fr; gap: 10px; }
  .category-band { grid-template-columns: 1fr; }
  .category-images { border: 1px solid var(--line); border-bottom: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .card-image { height: 180px; }
  .card-copy { min-height: 180px; }
  .product-index { overflow-x: auto; }
  .index-head,
  .index-row { min-width: 820px; }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-heading { grid-template-columns: 1fr; }
  .single-variant-boundary { grid-template-columns: 1fr; gap: 8px; }
  .variant-controls { justify-content: flex-start; }
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-section,
  .missing-information,
  .open-items,
  .evidence-summary { grid-column: 1; border-right: 0 !important; padding: 25px 0 !important; }
  .gap-list,
  .open-list,
  .verification-records { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body,
  button,
  input,
  select { font-size: 13px; }
  .site-header { display: grid; min-height: 66px; }
  .brand { min-height: 65px; padding: 10px 14px; }
  .brand span { font-size: 18px; }
  .primary-nav { grid-template-columns: repeat(2, 78px); }
  .primary-nav a { min-width: 0; min-height: 65px; padding: 8px 5px; font-size: 11px; }
  #app { padding: 18px 12px 46px; }
  .home-intro h1,
  .page-heading h1 { font-size: 39px; }
  .home-intro { gap: 14px; padding-bottom: 18px; }
  .home-count > strong { font-size: 48px; }
  .search-line { grid-template-columns: 1fr; gap: 8px; }
  .search-line input { border-right: 1px solid var(--line-dark); }
  .category-heading { grid-template-columns: 40px 1fr auto; padding: 14px 0; }
  .category-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-specimen:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .category-specimen:nth-child(4) { border-top: 1px solid var(--line); }
  .category-specimen figure { grid-template-rows: 104px auto; }
  .category-specimen img { height: 104px; }
  .filter-fields { grid-template-columns: 1fr; }
  .filter-form button { width: 100%; }
  .product-grid { gap: 0 10px; }
  .card-image { height: 142px; }
  .card-copy { min-height: 192px; padding-bottom: 18px; }
  .card-model { font-size: 22px; }
  .card-category { min-height: 52px; font-size: 10px; }
  .state-rule { padding-left: 7px; font-size: 10px; }
  .detail-header h1 { font-size: clamp(44px, 15vw, 58px); }
  .detail-summary { grid-template-columns: 1fr; }
  .main-image-field { height: 320px; min-height: 0; }
  .gallery-main figcaption { display: grid; }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-thumb { min-height: 106px; }
  .gallery-thumb img { height: 70px; }
  .pending-layout { grid-template-columns: 1fr; }
  .pending-mark { min-height: 110px; }
  .spec-grid,
  .feature-list { grid-template-columns: 1fr; }
  .operational dl,
  .evidence-summary dl { grid-template-columns: 1fr; }
  .relationship-record ul { columns: 1; }
  .legend-grid { grid-template-columns: 1fr; }
  .verification-total { justify-self: start; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .card-image { height: 220px; }
  .card-copy { min-height: 0; }
}

/* Final R2.1 card constraint must follow the inherited R2 breakpoints. */
.card-image {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--r21-paper);
}

/* R2.1 refined: one catalogue image field for Home and Product Index. */
:root {
  --catalog-image-bg: #f3f0e8;
}

.brand span {
  color: var(--ink);
  font: 700 clamp(14px, 1.5vw, 19px)/1.1 var(--sans);
  letter-spacing: .14em;
  white-space: nowrap;
}

.category-specimen figure,
.category-specimen img,
.card-image,
.card-image img {
  background: var(--catalog-image-bg) !important;
}

.category-specimen figure {
  grid-template-rows: auto auto;
}

.category-specimen img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 11 / 5;
  object-fit: contain;
  object-position: 50% 50%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.excluded-product-state .excluded-message {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-weight: 700;
}

@media (max-width: 560px) {
  .brand span {
    font-size: 14px;
    letter-spacing: .1em;
  }
}

/* Meeting-safe Detail presentation: intact source pixels in a neutral local field. */
.meeting-safe-gallery .r21-gallery-main {
  justify-items: center;
}

.meeting-safe-gallery .meeting-safe-source-stage {
  width: min(100%, var(--meeting-frame-width, 608px));
  height: var(--meeting-frame-height, 468px);
  min-height: 0;
  padding: var(--meeting-frame-padding, 24px);
  box-sizing: border-box;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.meeting-safe-gallery .meeting-safe-source-stage > [data-gallery-main] {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.meeting-safe-gallery .meeting-safe-source-stage img[data-image-context="detail"][data-source-first="true"] {
  position: static;
  inset: auto;
  width: var(--meeting-image-width, auto);
  height: var(--meeting-image-height, auto);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  background: transparent;
}

.meeting-safe-gallery .r21-gallery-main figcaption {
  width: min(100%, var(--meeting-frame-width, 608px));
  box-sizing: border-box;
}

.meeting-safe-gallery .r21-gallery-thumb img[data-source-first="true"] {
  background: #fff;
  object-fit: contain;
  object-position: 50% 50%;
}

@media (max-width: 839px) {
  .meeting-safe-gallery .meeting-safe-source-stage {
    width: min(100%, var(--meeting-frame-width, 608px));
    height: var(--meeting-frame-height, auto);
    min-height: 0;
    padding: var(--meeting-frame-padding, 12px);
    aspect-ratio: auto;
  }
}
