/* Printer Triage H2 — opt-in shared reference-hub presentation.
   Intentionally never targets the 23 detail guides, 167 /errors/, or 16 untouched hubs. */
body[data-reference-hub="v1"] {
  --hub-border: #dfe6f2;
  --hub-blue: #254cb5;
  --hub-pale: #f3f7ff;
  --hub-ink: #20304a;
}
body[data-reference-hub="v1"] .hub-wrap {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
}
body[data-reference-hub="v1"] .hub-article {
  min-width: 0;
  padding: clamp(20px, 3.5vw, 36px);
  border-radius: 18px;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 36px rgba(25, 48, 90, .055);
}
body[data-reference-hub="v1"] .hub-identity {
  margin: -3px -3px 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--hub-border);
  border-radius: 16px;
  background: radial-gradient(circle at 96% 10%, rgba(73,109,200,.10), transparent 37%),
              linear-gradient(160deg, #f8faff, #ffffff 75%);
}
body[data-reference-hub="v1"] .hub-identity .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #eaf0ff;
  color: #294bb2;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .045em;
  line-height: 1.45;
  margin: 0 0 10px;
}
body[data-reference-hub="v1"] .hub-identity h1 {
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
  margin: 2px 0 12px;
  max-width: 900px;
}
body[data-reference-hub="v1"] .hub-identity .lede {
  color: #4a5b73;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.65;
  max-width: 86ch;
  margin: 0 0 10px;
}
body[data-reference-hub="v1"] .hub-identity .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 4px;
}
body[data-reference-hub="v1"] .hub-identity .pill {
  width: auto;
  max-width: 100%;
  background: #fff;
  border-color: #dbe4f8;
  border-radius: 10px;
  color: #344767;
  padding: 7px 10px;
  white-space: normal;
  font-size: 13px;
  line-height: 1.45;
}
body[data-reference-hub="v1"] .hub-identity .quick {
  margin: 20px 0 0;
  padding: 14px 17px;
  border-radius: 11px;
  border: 1px solid #d8e3fc;
  border-left: 4px solid #3157d5;
  background: #f1f5ff;
  color: #35445d;
  font-size: 15px;
  line-height: 1.6;
}
body[data-reference-hub="v1"] .hub-identity .quick b:first-child {
  color: #21429c;
  font-size: 13px;
  margin-bottom: 4px;
}
body[data-reference-hub="v1"] .hub-article > h2 {
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.3;
  margin: 32px 0 8px;
  padding-top: 10px;
  letter-spacing: -.025em;
  scroll-margin-top: 94px;
}
body[data-reference-hub="v1"] .hub-article > p:not(.lede) {
  line-height: 1.65;
  color: #45546d;
}
body[data-reference-hub="v1"] .hub-article a:focus-visible,
body[data-reference-hub="v1"] .hub-article summary:focus-visible,
body[data-reference-hub="v1"] .hub-table-viewport:focus-visible {
  outline: 3px solid #7d9bf1;
  outline-offset: 3px;
}
/* Entry reference: true authored message sections with authored ordered actions. */
body[data-reference-hub="v1"] .hub-article .code-ref {
  margin: 13px 0;
  padding: 20px 23px;
  border: 1px solid var(--hub-border);
  border-radius: 13px;
  background: #fff;
  scroll-margin-top: 96px;
}
body[data-reference-hub="v1"] .hub-article .code-ref:target,
body[data-reference-hub="v1"] .hub-article .code-table tr:target td {
  background: #f1f6ff;
  border-color: #a7bcf5;
}
body[data-reference-hub="v1"] .hub-article .code-ref h2 {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  margin: 0 0 9px;
  letter-spacing: -.025em;
  color: #22469f;
}
body[data-reference-hub="v1"] .hub-article .code-ref > p {
  color: #40516b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}
body[data-reference-hub="v1"] .hub-article .code-ref ol {
  display: grid;
  gap: 9px;
  background: #f7f9fd;
  border-radius: 9px;
  padding: 13px 16px 13px 39px;
  margin: 0;
  color: #34445e;
  font-size: 15px;
  line-height: 1.65;
}
body[data-reference-hub="v1"] .hub-article .code-ref li { padding-left: 3px; }
/* Optional jump index is closed by default to avoid a 39-link wall. */
body[data-reference-hub="v1"] .hub-jump {
  display: block;
  margin: 20px 0 24px;
  min-width: 0;
}
body[data-reference-hub="v1"] .hub-jump details {
  border: 1px solid #cbd9f4;
  border-radius: 12px;
  background: #f7f9ff;
  overflow: hidden;
}
body[data-reference-hub="v1"] .hub-jump summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 800;
  color: #2c4fa8;
  font-size: 15px;
}
body[data-reference-hub="v1"] .hub-jump summary::marker { color: #4c6ec9; }

body[data-reference-hub="v1"] .hub-jump-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
  padding: 12px 15px 16px;
  border-top: 1px solid #dce6ff;
  background: #fff;
}
body[data-reference-hub="v1"] .hub-jump-grid a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #314d89;
  background: #f8faff;
  border: 1px solid #edf0fa;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
body[data-reference-hub="v1"] .hub-jump-grid a:hover { background: #eaf1ff; }
/* Table index: use only the existing published headings, no invented categories. */
body[data-reference-hub="v1"] .hub-group-nav {
  display: block;
  padding: 16px 18px;
  margin: 20px 0 22px;
  background: #f7f9fe;
  border: 1px solid #dde6f7;
  border-radius: 13px;
}
body[data-reference-hub="v1"] .hub-group-nav strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: #43536f;
  margin-bottom: 9px;
}
body[data-reference-hub="v1"] .hub-group-nav > div { display:flex;gap:8px;flex-wrap:wrap; }
body[data-reference-hub="v1"] .hub-group-nav a {
  border: 1px solid #ccd9f2;
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  color: #3155a2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
body[data-reference-hub="v1"] .hub-group-nav a:hover { background: #edf3ff; }
/* Native tables: scroll inside named focusable regions, never the whole page. */
body[data-reference-hub="v1"] .hub-table-block { min-width: 0; max-width: 100%; margin: 6px 0 28px; }
body[data-reference-hub="v1"] .hub-table-hint {
  margin: 0 0 9px;
  padding: 8px 12px;
  background: #f0f5ff;
  color: #405c8c;
  border: 1px solid #d9e5fc;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
body[data-reference-hub="v1"] .hub-table-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #d7e0ed;
  border-radius: 12px;
  background: #fff;
  scrollbar-color: #99afd8 #eef3fb;
  scrollbar-width: auto;
}
body[data-reference-hub="v1"] .hub-table-viewport::-webkit-scrollbar { height: 12px; }
body[data-reference-hub="v1"] .hub-table-viewport::-webkit-scrollbar-thumb { background: #9baed2; border-radius: 7px; }
body[data-reference-hub="v1"] .hub-table-viewport::-webkit-scrollbar-track { background: #eff4fb; }
body[data-reference-hub="v1"] table.hub-table {
  display: table !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100% !important;
  min-width: 810px;
  margin: 0 !important;
  background: #fff;
}
body[data-reference-hub="v1"] .hub-table thead { display: table-header-group !important; }
body[data-reference-hub="v1"] .hub-table tbody { display: table-row-group !important; }
body[data-reference-hub="v1"] .hub-table tr { display: table-row !important; scroll-margin-top: 96px; }
body[data-reference-hub="v1"] .hub-table th,
body[data-reference-hub="v1"] .hub-table td {
  display: table-cell !important;
  min-width: 0;
  max-width: none;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  padding: 14px 15px !important;
  border-bottom: 1px solid #e4eaf3;
  border-right: 1px solid #edf1f7;
  vertical-align: top;
  text-align: left;
  font-size: 15px;
  line-height: 1.56;
}
body[data-reference-hub="v1"] .hub-table th:last-child,
body[data-reference-hub="v1"] .hub-table td:last-child { border-right: 0; }
body[data-reference-hub="v1"] .hub-table th {
  position: relative;
  background: #eef3fc;
  color: #344b74;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: none;
}
body[data-reference-hub="v1"] .hub-table th:first-child { width: 132px; }
body[data-reference-hub="v1"] .hub-table th:nth-child(2) { width: 33%; }
body[data-reference-hub="v1"] .hub-table td:first-child {
  color: #2449a6;
  font-weight: 850;
  white-space: normal;
  background: #fbfcff;
}
body[data-reference-hub="v1"] .hub-table tr:nth-child(even) td { background-color: #fcfdff; }
body[data-reference-hub="v1"] .hub-table tr:nth-child(even) td:first-child { background-color: #f4f7fe; }
body[data-reference-hub="v1"] .hub-table tr:target td { background-color: #eaf1ff !important; }
body[data-reference-hub="v1"] .hub-table td:before { content: none !important; }
body[data-reference-hub="v1"] .hub-table small { display: inline-block; color: #627189; font-size: 12px; line-height: 1.4; font-weight: 500; margin-top: 5px; }
body[data-reference-hub="v1"] .hub-vh { position:absolute!important;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap; }
/* Lookup method: preserve original Step N labels, give actions a readable rhythm. */
body[data-reference-hub="v1"] .hub-article .step-list { gap: 12px; }
body[data-reference-hub="v1"] .hub-article .step-item {
  padding: 17px 19px;
  background: #fff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  box-shadow: none;
}
body[data-reference-hub="v1"] .hub-article .step-num {
  display: inline-block;
  margin-bottom: 7px;
  color: #2853b7;
  background: #edf2ff;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .04em;
}
body[data-reference-hub="v1"] .hub-article .step-item h3 { font-size: 18px; line-height: 1.4; margin: 2px 0 8px; }
body[data-reference-hub="v1"] .hub-article .step-item p { font-size: 15px; line-height: 1.6; color: #40516b; }
/* Existing source and safety wording is not edited. Shared look only. */
body[data-reference-hub="v1"] .hub-article .sources,
body[data-reference-hub="v1"] .hub-article .source-links { min-width: 0; }
body[data-reference-hub="v1"] .hub-article .source-link,
body[data-reference-hub="v1"] .hub-article .source-links a {
  display: inline-block;
  border-radius: 9px;
  border: 1px solid #dbe3f2;
  background: #fbfcff;
  padding: 10px 13px;
  color: #2b4fa8;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body[data-reference-hub="v1"] .hub-article .disclaimer {
  padding: 15px 17px;
  border: 1px solid #dde3ee;
  border-left: 3px solid #8c9ab4;
  border-radius: 9px;
  background: #f8fafc;
  color: #58667c;
  font-size: 13px;
  line-height: 1.55;
}
body[data-reference-hub="v1"] .hub-article .protocol-note { color: #4b5e77; max-width: 85ch; line-height: 1.65; }
body[data-reference-hub="v1"] .hub-article .code-list { line-height: 1.65; }
@media (max-width: 780px) {
  body[data-reference-hub="v1"] .hub-wrap { width: calc(100% - 28px); }
  body[data-reference-hub="v1"] .hub-article { padding: 17px; }
  body[data-reference-hub="v1"] .hub-identity { padding: 18px; margin: 0 0 20px; }
  body[data-reference-hub="v1"] .hub-jump-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-reference-hub="v1"] .hub-article .code-ref { padding: 16px; }
}
@media (max-width: 460px) {
  body[data-reference-hub="v1"] .hub-wrap { width: calc(100% - 20px); }
  body[data-reference-hub="v1"] .hub-article { padding: 11px; border-radius: 12px; }
  body[data-reference-hub="v1"] .hub-identity { padding: 16px 14px; border-radius: 12px; }
  body[data-reference-hub="v1"] .hub-identity h1 { font-size: 28px; }
  body[data-reference-hub="v1"] .hub-identity .quick { padding: 12px 13px; }
  body[data-reference-hub="v1"] .hub-jump-grid { grid-template-columns: minmax(0,1fr); }
  body[data-reference-hub="v1"] .hub-article .code-ref { padding: 15px 14px; }
  body[data-reference-hub="v1"] .hub-group-nav { padding: 14px 12px; }
  body[data-reference-hub="v1"] .hub-table-hint { padding: 9px 10px; }
  body[data-reference-hub="v1"] .hub-article .step-item { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-reference-hub="v1"] *,
  body[data-reference-hub="v1"] *::before,
  body[data-reference-hub="v1"] *::after {
    scroll-behavior: auto!important;
    transition-duration: 0.01ms!important;
    animation-duration: 0.01ms!important;
  }
}

/* Guidance appears only when table width could exceed the available reading area. */
@media (min-width: 900px) {
  body[data-reference-hub="v1"] .hub-table-hint { display: none; }
}
