:root {
  --ink: #151a24;
  --paper: #f3f0e7;
  --paper-bright: #fffdf7;
  --line: #151a24;
  --muted: #656b75;
  --cobalt: #1748dc;
  --acid: #d8ff3e;
  --orange: #ff6534;
  --red: #d92535;
  --green: #176b4a;
  --shadow: 7px 7px 0 var(--ink);
  --max: 1600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 26, 36, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 26, 36, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .46;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: 18px;
  align-items: stretch;
  min-height: 72px;
  border-bottom: 3px solid var(--line);
  background: rgba(243, 240, 231, .96);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  grid-template-columns: 48px auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 8px 22px;
  text-decoration: none;
}

.brand > span {
  grid-row: 1 / 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--cobalt);
  border: 2px solid var(--ink);
  font-weight: 900;
  letter-spacing: -.06em;
}

.brand strong {
  align-self: end;
  font-size: .9rem;
  letter-spacing: .16em;
}

.brand small {
  align-self: start;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.topbar nav {
  display: flex;
  align-items: stretch;
  border-left: 2px solid var(--line);
}

.topbar nav a {
  display: grid;
  min-width: 48px;
  min-height: 44px;
  padding: 0 13px;
  place-items: center;
  border-right: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
}

.topbar nav a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.language-switch {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 8px 18px 8px 0;
}

.language-switch button {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--cobalt);
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  overflow: clip;
  border-right: 2px solid var(--line);
  border-left: 2px solid var(--line);
  background: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 210px;
  min-height: 470px;
  border-bottom: 3px solid var(--line);
  background: var(--paper-bright);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  color: #fff;
  background: var(--cobalt);
  border-right: 3px solid var(--line);
}

.hero-stage strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.09em;
  writing-mode: vertical-rl;
}

.hero-stage span {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .26em;
}

.hero-copy {
  align-self: center;
  max-width: 970px;
  padding: 58px clamp(28px, 6vw, 92px);
}

.eyebrow,
.workflow header > p,
.panel-heading > p,
.results-section > header p,
.comparison-stage > header p,
.boundary-section > div > p {
  margin: 0 0 16px;
  color: var(--cobalt);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .2em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.1vw, 5.65rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: 14px;
  color: var(--cobalt);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 860px;
  margin: 30px 0 0;
  color: #3d424d;
  font-size: 1.02rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.hero-chips span {
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--acid);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.boundary-stamp {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 20px;
  color: #fff;
  background: var(--ink);
  border-left: 3px solid var(--line);
  text-align: center;
}

.boundary-stamp span,
.boundary-stamp small {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.boundary-stamp strong {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: .84;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 3px solid var(--line);
}

.metric-strip article {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
  background: var(--acid);
  border-right: 2px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
}

.metric-strip span {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.validation-bar {
  padding: 12px 18px;
  color: #fff;
  background: var(--green);
  border-bottom: 3px solid var(--line);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: center;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1.3fr;
  gap: 50px;
  padding: 64px clamp(22px, 5vw, 72px);
  border-bottom: 3px solid var(--line);
}

.workflow h2,
.panel-heading h2,
.results-section > header h2,
.comparison-stage > header h2,
.boundary-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 2px solid var(--line);
  list-style: none;
  box-shadow: var(--shadow);
}

.workflow li {
  display: grid;
  min-height: 150px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-content: start;
  padding: 22px;
  background: var(--paper-bright);
  border-right: 2px solid var(--line);
}

.workflow li:last-child {
  border-right: 0;
}

.workflow li > span {
  grid-row: 1 / 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--cobalt);
  border-radius: 50%;
  font-weight: 900;
}

.workflow li strong {
  font-size: .92rem;
}

.workflow li small {
  color: var(--muted);
  font-size: .74rem;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  border-bottom: 3px solid var(--line);
}

.control-panel {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 30px 24px;
  background: var(--ink);
  color: #fff;
  border-right: 3px solid var(--line);
}

.panel-heading h2 {
  color: #fff;
  font-size: 2.35rem;
}

.panel-heading > span {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--acid);
  font-size: .78rem;
  font-weight: 900;
}

.search-control,
.filter-control {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  font-size: .74rem;
  font-weight: 850;
}

.search-control input,
.filter-control select {
  width: 100%;
  min-height: 48px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 2px solid #fff;
  border-radius: 0;
}

.control-panel fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.control-panel legend {
  width: 100%;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.filter-actions button,
.no-results button,
.comparison-actions button {
  min-height: 46px;
  padding: 9px 13px;
  border: 2px solid currentColor;
  border-radius: 0;
  font-size: .74rem;
  font-weight: 900;
}

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

.filter-actions button:last-child {
  color: #fff;
  background: transparent;
}

.filter-note {
  margin: 24px 0 0;
  padding-top: 18px;
  color: #c9ced7;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-size: .7rem;
}

.results-section {
  min-width: 0;
  padding: 44px clamp(20px, 4vw, 56px) 66px;
}

.results-section > header {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.results-section > header h2 {
  font-size: clamp(2rem, 3.6vw, 3.9rem);
}

.results-section > header > p:last-child {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  color: #fff;
  background: var(--cobalt);
  font-size: .75rem;
  font-weight: 900;
}

.no-results {
  padding: 42px;
  background: var(--paper-bright);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.no-results > strong {
  color: var(--red);
  font-size: 3.6rem;
  line-height: 1;
}

.no-results h3 {
  margin: 18px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.no-results p {
  color: var(--muted);
}

.no-results button {
  margin-top: 12px;
  background: var(--acid);
}

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

.archive-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper-bright);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.record-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-bottom: 2px solid var(--line);
}

.record-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-order span {
  color: var(--cobalt);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.record-order small {
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.record-title p {
  margin: 0 0 3px;
  color: var(--cobalt);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.record-title h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 400;
  line-height: 1.08;
}

.record-title small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .67rem;
}

.compare-check {
  display: grid;
  min-width: 92px;
  min-height: 48px;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 2px solid var(--line);
  background: var(--acid);
  font-size: .68rem;
  font-weight: 900;
}

.compare-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--cobalt);
}

.image-lock {
  display: grid;
  min-height: 118px;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 22px;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .065) 0 2px, transparent 2px 12px),
    var(--ink);
  border-bottom: 2px solid var(--line);
}

.image-lock strong {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  font-weight: 400;
  letter-spacing: -.04em;
}

.image-lock span {
  padding: 8px 10px;
  border: 2px solid var(--orange);
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.image-lock small {
  grid-column: 1 / 3;
  color: #c8ccd4;
  font-size: .65rem;
}

.record-metadata,
.credit-rights dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.record-metadata > div,
.credit-rights dl > div {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-metadata > div:nth-child(even),
.credit-rights dl > div:nth-child(even) {
  border-right: 0;
}

.record-metadata dt,
.credit-rights dt {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.record-metadata dd,
.credit-rights dd {
  margin: 4px 0 0;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.facet-block {
  padding: 14px 16px 6px;
  border-bottom: 2px solid var(--line);
}

.facet-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
}

.facet-line strong {
  min-width: 72px;
  font-size: .62rem;
  letter-spacing: .06em;
}

.facet-line > span {
  padding: 4px 7px;
  background: #e8e9ed;
  border: 1px solid var(--line);
  font-size: .59rem;
  font-weight: 800;
}

.concept-line > span {
  background: #e2eaff;
}

.concept-line small {
  width: 100%;
  margin: 2px 0 0 77px;
  color: var(--muted);
  font-size: .58rem;
}

.explanation-block {
  padding: 18px;
  background: #f5f1e8;
  border-bottom: 2px solid var(--line);
}

.mini-label {
  margin: 0 0 12px !important;
  color: var(--cobalt) !important;
  font-size: .6rem !important;
  font-weight: 950;
  letter-spacing: .13em;
}

.explanation-block > p {
  margin: 0 0 10px;
  color: #454a54;
  font-size: .73rem;
}

.explanation-block blockquote {
  margin: 14px 0 0;
  padding: 12px;
  border-left: 5px solid var(--orange);
  background: var(--paper-bright);
  font-size: .7rem;
}

.explanation-block blockquote strong,
.explanation-block blockquote span {
  display: block;
}

.explanation-block blockquote strong {
  margin-bottom: 4px;
  font-size: .6rem;
  letter-spacing: .06em;
}

.review-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: #fff1ec;
  border-bottom: 2px solid var(--line);
}

.review-flags span,
.review-flags b {
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-size: .57rem;
  overflow-wrap: anywhere;
}

.review-flags b {
  color: #fff;
  background: var(--red);
}

.credit-rights {
  margin-top: auto;
  background: #eef1f5;
  border-top: 0;
}

.credit-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
}

.credit-line strong {
  letter-spacing: .1em;
}

.rights-ribbon {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #fff;
  background: var(--cobalt);
}

.rights-ribbon strong {
  color: var(--acid);
  font-size: .72rem;
}

.rights-ribbon span,
.rights-ribbon code {
  font-size: .61rem;
  overflow-wrap: anywhere;
}

.rights-ribbon code {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
}

.comparison-stage {
  padding: 64px clamp(22px, 5vw, 72px);
  background: #dfe6ff;
  border-bottom: 3px solid var(--line);
}

.comparison-stage > header {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1.3fr;
  gap: 44px;
  align-items: end;
}

.comparison-stage > header h2:focus {
  outline: 4px solid var(--orange);
  outline-offset: 5px;
}

.comparison-stage > header span {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

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

.comparison-actions button {
  color: var(--ink);
  background: var(--paper-bright);
}

.comparison-actions button:first-child,
.comparison-actions button:last-child {
  background: var(--acid);
}

.comparison-actions button[aria-pressed="true"] {
  color: #fff;
  background: var(--cobalt);
}

.comparison-empty {
  display: grid;
  min-height: 180px;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 32px;
  padding: 28px;
  border: 3px dashed var(--line);
  background: rgba(255, 255, 255, .42);
}

.comparison-empty strong {
  color: var(--cobalt);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 400;
}

.comparison-empty p {
  max-width: 560px;
  font-size: 1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.comparison-grid:not(:empty) + * {
  display: none;
}

.comparison-grid:not(:empty) ~ .comparison-empty,
.comparison-stage:has(.comparison-grid:not(:empty)) .comparison-empty {
  display: none;
}

.comparison-card {
  box-shadow: none;
}

.comparison-order {
  margin: 0;
  padding: 8px 14px;
  color: #fff;
  background: var(--orange);
  border-bottom: 2px solid var(--line);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .11em;
}

.boundary-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  padding: 68px clamp(22px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.boundary-section h2 {
  color: #fff;
}

.boundary-section > div > p:last-of-type {
  max-width: 690px;
  color: #cbd0da;
}

.boundary-section ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid #fff;
  list-style: none;
}

.boundary-section li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.boundary-section li span,
.boundary-section li small {
  color: var(--acid);
  font-size: .62rem;
  font-weight: 900;
}

.boundary-section li strong {
  font-size: .78rem;
}

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

.handoff-actions a {
  display: inline-grid;
  min-height: 46px;
  align-items: center;
  justify-self: start;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid #fff;
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
}

.handoff-actions a:last-child {
  color: #fff;
  background: transparent;
}

footer {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 22px clamp(22px, 5vw, 72px);
  background: var(--paper-bright);
}

footer > div {
  display: grid;
  gap: 5px;
}

footer > div:last-child {
  text-align: right;
}

footer strong,
footer b {
  font-size: .78rem;
  letter-spacing: .08em;
}

footer span {
  color: var(--muted);
  font-size: .66rem;
}

body[data-projector="true"] {
  overflow: auto;
  background: #0c0f16;
}

body[data-projector="true"] .skip-link,
body[data-projector="true"] .topbar,
body[data-projector="true"] .hero,
body[data-projector="true"] .metric-strip,
body[data-projector="true"] .validation-bar,
body[data-projector="true"] .workflow,
body[data-projector="true"] .explorer-shell,
body[data-projector="true"] .boundary-section,
body[data-projector="true"] footer {
  display: none;
}

body[data-projector="true"] main {
  width: 100%;
  max-width: none;
  border: 0;
}

body[data-projector="true"] .comparison-stage {
  min-height: 100vh;
  padding: 28px;
  background: #0c0f16;
}

body[data-projector="true"] .comparison-stage > header {
  color: #fff;
}

body[data-projector="true"] .comparison-stage > header h2,
body[data-projector="true"] .comparison-stage > header span {
  color: #fff;
}

body[data-projector="true"] .comparison-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

body[data-projector="true"] .comparison-card {
  font-size: 1.08rem;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    grid-column: 1 / 3;
    grid-row: 2;
    overflow-x: auto;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

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

  .boundary-stamp {
    grid-column: 1 / 3;
    min-height: 115px;
    flex-direction: row;
    align-items: center;
    border-top: 3px solid var(--line);
    border-left: 0;
  }

  .boundary-stamp strong {
    font-size: 2.7rem;
  }

  .explorer-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .topbar {
    position: relative;
  }

  .topbar nav a {
    flex: 1 0 48px;
  }

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

  .hero-stage {
    min-height: 82px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .hero-stage strong {
    font-size: 4rem;
    writing-mode: initial;
  }

  .boundary-stamp {
    grid-column: auto;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip article:nth-child(even) {
    border-right: 0;
  }

  .metric-strip article:last-child {
    grid-column: 1 / 3;
  }

  .workflow,
  .comparison-stage > header,
  .boundary-section {
    grid-template-columns: 1fr;
  }

  .workflow ol {
    grid-template-columns: 1fr;
  }

  .workflow li {
    min-height: 100px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

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

  .explorer-shell {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: relative;
    top: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .control-panel fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .control-panel legend {
    grid-column: 1 / 3;
  }

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

@media (max-width: 560px) {
  .brand {
    padding-left: 12px;
  }

  .language-switch {
    padding-right: 8px;
  }

  main {
    border-right: 0;
    border-left: 0;
  }

  .hero-copy,
  .workflow,
  .results-section,
  .comparison-stage,
  .boundary-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .boundary-stamp {
    padding: 18px;
  }

  .boundary-stamp span,
  .boundary-stamp small {
    font-size: .56rem;
  }

  .control-panel fieldset,
  .comparison-actions {
    grid-template-columns: 1fr;
  }

  .record-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .compare-check {
    grid-column: 1 / 3;
  }

  .record-metadata,
  .credit-rights dl {
    grid-template-columns: 1fr;
  }

  .record-metadata > div,
  .credit-rights dl > div,
  .record-metadata > div:nth-child(even),
  .credit-rights dl > div:nth-child(even) {
    border-right: 0;
  }

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

  .image-lock small {
    grid-column: auto;
  }

  .results-section > header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > div:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .hero-stage,
  .boundary-stamp,
  .validation-bar,
  .control-panel,
  .image-lock,
  .rights-ribbon,
  .boundary-section,
  .review-flags b {
    border: 2px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .compare-check,
  .hero-chips span,
  .panel-heading > span {
    color: CanvasText;
    background: Canvas;
  }
}

@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  :root {
    --ink: #000;
    --paper: #fff;
    --paper-bright: #fff;
    --muted: #333;
    --cobalt: #000;
    --acid: #fff;
    --orange: #000;
    --red: #000;
    --green: #000;
    --shadow: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .skip-link,
  .topbar,
  .hero,
  .metric-strip,
  .validation-bar,
  .workflow,
  .explorer-shell,
  .boundary-section,
  footer,
  .comparison-stage > header .comparison-actions,
  .comparison-empty {
    display: none !important;
  }

  main {
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
    overflow: visible;
  }

  .comparison-stage {
    padding: 0;
    background: #fff;
    border: 0;
  }

  .comparison-stage > header {
    display: block;
    margin: 0 0 8mm;
  }

  .comparison-stage > header p,
  .comparison-stage > header span {
    color: #000;
  }

  .comparison-stage > header h2 {
    font-size: 20pt;
  }

  .comparison-grid {
    display: block;
    margin: 0;
  }

  .comparison-card {
    display: flex !important;
    min-height: 260mm;
    margin: 0;
    border: 1.5pt solid #000;
    box-shadow: none;
    break-after: page;
    break-inside: avoid;
    page-break-after: always;
  }

  .comparison-card:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .comparison-order,
  .image-lock,
  .rights-ribbon,
  .review-flags b {
    color: #000;
    background: #fff;
    border-color: #000;
  }

  .image-lock strong,
  .rights-ribbon strong {
    color: #000;
  }

  .record-header,
  .image-lock,
  .record-metadata > div,
  .facet-block,
  .explanation-block,
  .review-flags,
  .credit-line,
  .credit-rights dl > div,
  .rights-ribbon {
    break-inside: avoid;
  }

  .rights-ribbon code,
  .credit-rights dd {
    color: #000;
    overflow-wrap: anywhere;
  }
}
