:root {
  --paper: #f4f1e9;
  --paper-light: #fbfaf6;
  --ink: #161616;
  --ink-soft: #55534e;
  --line: #242424;
  --line-soft: #b9b4aa;
  --red: #8d1f24;
  --red-dark: #651419;
  --blue: #dce7ed;
  --blue-strong: #315869;
  --green: #dfe8df;
  --green-strong: #3f6547;
  --sand: #ebe1cb;
  --sand-strong: #785d27;
  --gray: #e4e2dc;
  --pending: #ab6b0c;
  --max-width: 1320px;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 58px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(22, 22, 22, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 6px;
  background: var(--red);
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #006e9d;
  outline-offset: 3px;
}

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

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

.site-header {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.header-rule {
  height: 13px;
  background: var(--ink);
  border-bottom: 4px solid var(--red);
}

.header-inner,
.status-strip,
.nav-inner,
.section-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 76px;
  align-items: stretch;
  min-height: 128px;
  border-inline: 1px solid var(--line);
}

.document-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.document-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px;
}

.document-kicker {
  margin: 0 0 6px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.document-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  margin: 0;
  border-left: 1px solid var(--line);
}

.document-meta div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.document-meta dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.document-meta dd {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.print-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 76px;
  min-height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.print-button:hover {
  color: #fff;
  background: var(--ink);
}

.print-button span:first-child {
  font-size: 23px;
  line-height: 1;
}

.print-button span:last-child {
  font-size: 12px;
  font-weight: 700;
}

.status-strip {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
}

.status-dot.official {
  background: var(--red);
}

.status-dot.inference {
  background: var(--sand-strong);
}

.status-dot.pending {
  background: transparent;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  color: #fff;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow-x: auto;
}

.section-nav a {
  display: grid;
  min-width: 116px;
  min-height: 46px;
  place-items: center;
  padding: 8px 12px;
  border-left: 1px solid #555;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:last-child {
  border-right: 1px solid #555;
}

.section-nav a:hover,
.section-nav a.is-active {
  background: var(--red);
}

.report-section {
  scroll-margin-top: 54px;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  padding-block: 72px 82px;
}

.overview-section .section-inner {
  padding-top: 34px;
}

.section-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
}

.compact-heading {
  margin-bottom: 18px;
}

.section-number {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
}

.section-count {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.level-column {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.level-column:last-child {
  border-right: 0;
}

.level-column > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.level-column > header > span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.level-column > header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.level-column h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
}

.level-column header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.level-central > header {
  background: var(--gray);
}

.level-shanghai > header {
  background: var(--blue);
}

.level-pudong > header {
  background: var(--sand);
}

.level-department > header {
  background: var(--green);
}

.level-column ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-column li + li {
  border-top: 1px solid var(--line-soft);
}

.level-column li a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 58px;
  text-decoration: none;
}

.level-column li a:hover {
  background: #fff;
}

.overview-index {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-soft);
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.level-column li a > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 9px 13px;
}

.level-column li strong,
.level-column li small {
  overflow-wrap: anywhere;
}

.level-column li strong {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
}

.level-column li small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

.logic-section {
  background: var(--paper-light);
}

.logic-flow {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.logic-node {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.logic-node:last-child {
  border-right: 0;
}

.logic-node:hover {
  color: #fff;
  background: var(--red);
}

.logic-node span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.logic-node strong {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}

.logic-node i {
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-style: normal;
  line-height: 1;
  transform: translateY(-50%);
}

.placement-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border: 1px solid var(--line);
}

.placement-compare > div {
  display: grid;
  grid-template-columns: 68px 140px minmax(0, 1fr);
  align-items: center;
  min-height: 66px;
}

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

.compare-code {
  display: grid;
  align-self: stretch;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.placement-compare strong,
.placement-compare p {
  margin: 0;
  padding: 12px 16px;
}

.placement-compare strong {
  font-family: var(--serif);
  font-size: 17px;
}

.placement-compare p {
  border-left: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.concept-list {
  display: grid;
  gap: 48px;
}

.concept-group {
  border-top: 6px solid var(--line);
}

.concept-group-title {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 62px;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.concept-group-title span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.concept-group-title h3 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 18px;
  font-family: var(--serif);
  font-size: 20px;
}

.concept-record {
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
  scroll-margin-top: 70px;
}

.concept-summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(210px, 28%);
  min-height: 92px;
}

.concept-order {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.concept-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 15px 20px;
}

.concept-name h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
}

.concept-name p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.concept-classification {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 4px 12px;
  padding: 14px 18px;
  border-left: 1px solid var(--line);
  font-size: 12px;
}

.concept-classification .status-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.concept-classification time {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.concept-record blockquote {
  margin: 0;
  padding: 22px 28px 22px 88px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

.concept-record details,
.phrase-record details {
  border-bottom: 1px solid var(--line-soft);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

summary:hover {
  background: var(--gray);
}

.concept-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-soft);
}

.breakdown-list {
  margin: 0;
}

.breakdown-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.breakdown-list > div:last-child {
  border-bottom: 0;
}

.breakdown-list dt,
.breakdown-list dd {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
}

.breakdown-list dt {
  background: var(--gray);
  border-right: 1px solid var(--line-soft);
  font-weight: 800;
}

.concept-notes {
  padding: 6px 20px;
  border-left: 1px solid var(--line-soft);
}

.concept-notes p,
.phrase-detail p {
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.concept-notes b,
.phrase-detail b {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  color: var(--ink);
}

.concept-record footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 42px;
  align-items: center;
  padding: 8px 18px;
}

.source-ref {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 7px;
  color: var(--red-dark);
  border: 1px solid var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.source-ref:hover {
  color: #fff;
  background: var(--red);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge.official {
  color: var(--red-dark);
  background: #f5e3e1;
}

.status-badge.inference {
  color: #6c4b10;
  background: #f5e8c8;
}

.status-badge.pending {
  color: #4d4b47;
  background: transparent;
  border-style: dashed;
}

.phrases-section {
  background: var(--paper-light);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr) 80px;
  align-items: end;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.filter-bar label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-width: 0;
  min-height: 52px;
  align-items: stretch;
  border-right: 1px solid var(--line);
}

.filter-bar label > span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 0;
}

.reset-button {
  min-height: 52px;
  padding: 8px;
  color: var(--ink);
  background: var(--gray);
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.reset-button:hover {
  color: #fff;
  background: var(--red);
}

.phrase-list {
  border-top: 4px solid var(--line);
}

.phrase-record {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 52px;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.phrase-code {
  display: flex;
  justify-content: center;
  padding-top: 21px;
  border-right: 1px solid var(--line);
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

.phrase-main {
  min-width: 0;
}

.phrase-text {
  margin: 0;
  padding: 17px 20px 9px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.phrase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 13px;
  color: var(--ink-soft);
  font-size: 11px;
}

.phrase-meta > span:not(.status-badge) {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding-inline: 7px;
  background: var(--gray);
}

.phrase-main details {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

.phrase-detail {
  padding: 4px 20px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-light);
}

.phrase-detail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.copy-button {
  width: 52px;
  min-height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 20px;
}

.copy-button:hover {
  color: #fff;
  background: var(--red);
}

.empty-state {
  margin: 0;
  padding: 48px 20px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
}

.industry-section {
  background: var(--sand);
}

.inference-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #fff6df;
  border: 1px solid var(--sand-strong);
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.mapping-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
}

.mapping-table th,
.mapping-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.mapping-table th:last-child,
.mapping-table td:last-child {
  width: 140px;
  border-right: 0;
}

.mapping-table th {
  color: #fff;
  background: var(--ink);
  font-size: 12px;
}

.mapping-table td {
  font-size: 13px;
}

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

.redline-list {
  margin: 0;
  padding: 0;
  border-top: 5px solid var(--line);
  list-style: none;
}

.redline-record {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 90px;
  min-height: 94px;
  align-items: stretch;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.redline-record.pending {
  background: #fffaf0;
}

.redline-code {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.redline-record > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}

.redline-record h3,
.redline-record p {
  margin: 0;
}

.redline-record h3 {
  font-family: var(--serif);
  font-size: 17px;
}

.redline-record p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.redline-record > .status-badge {
  align-self: center;
  justify-self: center;
}

.sources-section {
  color: #f5f3ec;
  background: #202220;
}

.sources-section .section-heading {
  border-bottom-color: #f5f3ec;
}

.sources-section .section-number {
  color: #dc746e;
}

.source-tabs {
  display: flex;
  margin-bottom: 18px;
  border: 1px solid #757772;
}

.source-tabs button {
  min-width: 82px;
  min-height: 42px;
  padding: 7px 14px;
  color: #f5f3ec;
  background: transparent;
  border: 0;
  border-right: 1px solid #757772;
  font-size: 12px;
  font-weight: 800;
}

.source-tabs button:hover,
.source-tabs button.is-active {
  background: var(--red);
}

.source-list {
  border-top: 4px solid #f5f3ec;
}

.source-record {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 70px;
  min-height: 122px;
  border-inline: 1px solid #757772;
  border-bottom: 1px solid #757772;
  scroll-margin-top: 64px;
}

.source-code {
  display: grid;
  place-items: center;
  border-right: 1px solid #757772;
  color: #dc746e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.source-body {
  min-width: 0;
  padding: 16px 20px;
}

.source-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

.source-body h3 a {
  text-decoration-color: #888;
}

.source-body h3 a:hover {
  color: #f08c85;
}

.source-body dl {
  display: grid;
  grid-template-columns: 1fr 160px 1.4fr;
  gap: 9px 20px;
  margin: 12px 0 0;
}

.source-body dl div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
}

.source-body dt,
.source-body dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.source-body dt {
  color: #a9aaa5;
  font-weight: 800;
}

.verified-mark {
  display: grid;
  place-items: center;
  border-left: 1px solid #757772;
  color: #b8d0bb;
  font-size: 10px;
  font-weight: 800;
  writing-mode: vertical-rl;
}

.site-footer {
  color: #fff;
  background: var(--red-dark);
}

.site-footer .section-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 1px solid #fff;
  border-radius: 0;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  padding: 9px 14px;
  color: #fff;
  background: var(--ink);
  border: 1px solid #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-core {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--red);
}

.noscript-core table {
  width: 100%;
  border-collapse: collapse;
}

.noscript-core th,
.noscript-core td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 74px minmax(0, 1fr) 76px;
  }

  .document-meta {
    display: none;
  }

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

  .level-column:nth-child(2) {
    border-right: 0;
  }

  .level-column:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .logic-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logic-node:nth-child(4) {
    border-right: 0;
  }

  .logic-node:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .logic-node:nth-child(4) i {
    display: none;
  }

  .placement-compare > div {
    grid-template-columns: 58px 112px minmax(0, 1fr);
  }

  .source-body dl {
    grid-template-columns: 1fr 1fr;
  }

  .source-body dl div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body::before {
    width: 4px;
  }

  .header-inner,
  .status-strip,
  .nav-inner,
  .section-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner {
    grid-template-columns: 52px minmax(0, 1fr) 54px;
    min-height: 104px;
  }

  .document-mark {
    font-size: 21px;
  }

  .document-title {
    padding: 14px 12px;
  }

  .document-kicker {
    font-size: 9px;
  }

  .document-title h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .print-button {
    width: 54px;
  }

  .status-strip {
    min-height: 44px;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-inner {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
  }

  .section-nav a {
    min-width: 0;
    min-height: 40px;
    padding: 6px 4px;
    font-size: 11px;
  }

  .section-nav a:nth-child(4n) {
    border-right: 1px solid #555;
  }

  .section-inner {
    padding-block: 52px 58px;
  }

  .overview-section .section-inner {
    padding-top: 24px;
  }

  .section-heading {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    margin-bottom: 24px;
  }

  .section-number {
    font-size: 24px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

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

  .level-column,
  .level-column:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .level-column:last-child {
    border-bottom: 0;
  }

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

  .logic-node,
  .logic-node:nth-child(4) {
    min-height: 96px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .logic-node:nth-child(even) {
    border-right: 0;
  }

  .logic-node:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .logic-node i {
    display: none;
  }

  .placement-compare {
    grid-template-columns: 1fr;
  }

  .placement-compare > div {
    grid-template-columns: 56px 112px minmax(0, 1fr);
  }

  .placement-compare > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .placement-compare strong,
  .placement-compare p {
    padding: 10px;
  }

  .concept-summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .concept-order {
    grid-row: 1 / span 2;
  }

  .concept-classification {
    grid-column: 2;
    grid-template-columns: auto auto 1fr;
    justify-content: start;
    padding: 8px 12px 12px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .concept-classification .status-badge {
    grid-column: auto;
  }

  .concept-name {
    padding: 13px 12px;
  }

  .concept-name h4 {
    font-size: 20px;
  }

  .concept-record blockquote {
    padding: 18px 16px;
    font-size: 15px;
  }

  .concept-detail {
    grid-template-columns: 1fr;
  }

  .concept-notes {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .breakdown-list > div {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-bar label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .phrase-text {
    padding-inline: 13px;
    font-size: 15px;
  }

  .phrase-meta,
  .phrase-detail {
    padding-inline: 13px;
  }

  .copy-button {
    width: 42px;
  }

  .inference-notice {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .redline-record > .status-badge {
    grid-column: 2;
    align-self: start;
    justify-self: start;
    margin: 0 14px 14px;
  }

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

  .verified-mark {
    display: none;
  }

  .source-body {
    padding: 14px;
  }

  .source-body dl {
    grid-template-columns: 1fr;
  }

  .source-body dl div:last-child {
    grid-column: auto;
  }

  .source-tabs {
    overflow-x: auto;
  }

  .site-footer .section-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 12mm 15mm;
  }

  :root {
    --paper: #fff;
    --paper-light: #fff;
  }

  html,
  body {
    background: #fff !important;
    color: #000;
    font-size: 9.5pt;
  }

  body::before,
  .section-nav,
  .print-button,
  .filter-bar,
  .source-tabs,
  .back-to-top,
  .copy-button,
  .copy-toast,
  .status-strip {
    display: none !important;
  }

  .header-rule {
    height: 5px;
    border-bottom-width: 2px;
  }

  .header-inner,
  .section-inner {
    width: 100%;
  }

  .header-inner {
    grid-template-columns: 54px 1fr;
    min-height: 70px;
  }

  .document-mark {
    color: #fff !important;
    background: #000 !important;
  }

  .document-title {
    padding: 10px 14px;
  }

  .document-title h1 {
    font-size: 22pt;
  }

  .document-meta {
    display: none;
  }

  .section-inner,
  .overview-section .section-inner {
    padding-block: 9mm;
  }

  .section-heading {
    margin-bottom: 5mm;
  }

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

  .level-column:nth-child(2) {
    border-right: 0;
  }

  .level-column:nth-child(-n + 2) {
    border-bottom: 1px solid #000;
  }

  .logic-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .logic-node {
    min-height: 26mm;
  }

  .logic-node i {
    display: none;
  }

  .logic-node:nth-child(4) {
    border-right: 0;
  }

  .logic-node:nth-child(-n + 4) {
    border-bottom: 1px solid #000;
  }

  .concept-list,
  .concept-group {
    gap: 5mm;
  }

  .concept-record,
  .phrase-record,
  .redline-record,
  .source-record,
  .inference-notice,
  table,
  tr {
    break-inside: avoid;
  }

  .concept-group-title,
  .section-heading {
    break-after: avoid;
  }

  details {
    display: block;
  }

  details > summary {
    display: none;
  }

  details > :not(summary) {
    display: block !important;
  }

  .phrase-list {
    border-top-width: 2px;
  }

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

  .industry-section {
    background: #fff !important;
  }

  .table-scroll {
    overflow: visible;
  }

  .mapping-table {
    min-width: 0;
  }

  .sources-section {
    color: #000;
    background: #fff !important;
  }

  .sources-section .section-heading {
    border-bottom-color: #000;
  }

  .source-list {
    border-top-color: #000;
  }

  .source-record,
  .source-code,
  .verified-mark {
    border-color: #000;
  }

  .source-code,
  .sources-section .section-number {
    color: #000;
  }

  .source-body h3 a {
    text-decoration: none;
  }

  .source-body h3 a::after {
    content: "  " attr(href);
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 7pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .site-footer {
    color: #000;
    background: #fff;
    border-top: 1px solid #000;
  }
}
