/* bidrtech.com interior pages: the homepage system (home.css) applied to contract pages, guides, company and sector pages.
   Load after home.css. Same tokens, same header and footer, same rules: one gold accent, ruled hairlines instead of cards, no eyebrows. */

/* ---------- Header: solid navy on interior pages (no photo behind it) ---------- */
.page .site-header { position: relative; background: var(--navy-950); }
.page .primary-nav a { text-shadow: none; }
/* Same logo size as the homepage; the bar grows around it so the swoosh and the TECHNOLOGIES line never touch an edge */
.page .site-header__bar { height: auto; min-height: clamp(4.75rem, 6vw, 6rem); padding-block: clamp(.6rem, .85vw, .85rem); }
.page .brand { align-self: center; margin-top: 0; }

/* ---------- Page head: breadcrumbs, title, lede, actions ---------- */
.page-head { background: var(--navy-950); color: var(--on-navy); border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 3px solid var(--gold-500); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); padding-block: clamp(1.5rem, 2.4vw, 2.25rem) clamp(2.5rem, 4.5vw, 4rem); }
.page-head--record .page-head__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.breadcrumbs { grid-column: 1 / -1; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--text-small); }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--on-navy-muted); }
.breadcrumbs li + li::before { content: ""; width: .4rem; height: .4rem; margin: 0 .7rem 0 .55rem; border-top: 1.5px solid var(--on-navy-muted); border-right: 1.5px solid var(--on-navy-muted); transform: rotate(45deg); }
.breadcrumbs a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .2em; }
.breadcrumbs a:hover { text-decoration-color: var(--gold-500); }
.breadcrumbs [aria-current] { color: var(--on-navy); font-weight: 600; }
.page-head h1 { max-width: 20em; color: #fff; font-size: var(--text-page); font-weight: 700; line-height: 1.04; letter-spacing: -.012em; }
.page-head__lede { max-width: var(--measure); margin-top: 1rem; color: var(--on-navy); font-size: clamp(1.0625rem, 1.2vw, 1.125rem); line-height: 1.6; }
.page-head__lede + .page-head__lede { margin-top: .75rem; }
.page-head__byline { margin-top: 1rem; color: var(--on-navy-muted); font-size: var(--text-small); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.4rem, 2vw, 2rem); }
.page-head__actions .btn { min-height: 2.75rem; padding-inline: 1.5rem; }
.page-head__supply { max-width: var(--measure); margin-top: 1.1rem; padding-left: .9rem; border-left: 3px solid var(--gold-500); color: var(--on-navy); font-size: var(--text-small); line-height: 1.55; }
.page-head__supply strong { color: #fff; }
.page-head__supply + .page-head__actions { margin-top: 1.1rem; }
.page-head :focus-visible, .cta-band :focus-visible { outline-color: var(--focus); }
.page-head .btn--gold:focus-visible, .cta-band .btn--gold:focus-visible { outline-color: #fff; }

/* The contract record beside the title on the two contract pages */
.record { padding: clamp(1.25rem, 2vw, 1.75rem) 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.record__badge { display: block; width: clamp(8.5rem, 11vw, 10.5rem); height: auto; border-radius: 4px; }
.record__label { margin-top: 1.1rem; color: var(--on-navy-muted); font-size: var(--text-small); font-weight: 700; }
.record__no { margin-top: .1rem; color: #fff; font-size: var(--text-record); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.record .term { margin-top: 1.1rem; }
.record__link { margin-top: .4rem; font-size: var(--text-ui); }
.page-head .text-link { color: var(--gold-500); }

/* ---------- Sections ---------- */
.section--mist + .section--mist, .section:not(.section--mist):not(.section--navy) + .section:not(.section--mist):not(.section--navy) { border-top: 1px solid var(--rule); }
.page .section__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.page main .btn { white-space: normal; text-align: center; }

/* Ruled grids replace the old cards */
.ruled-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.ruled-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem 0 2rem; border-top: 1px solid var(--rule); }
.ruled-item--key::before { content: ""; position: absolute; top: -2px; left: 0; width: 3.15rem; height: 3px; background: var(--gold-500); }
.ruled-item h3 { font-size: var(--text-title); font-weight: 700; line-height: 1.25; }
.ruled-item p { margin-top: .6rem; max-width: var(--measure); }
.ruled-item > :last-child.text-link, .ruled-item > :last-child.btn { margin-top: auto; }
.ruled-item .text-link { padding-top: 1rem; }
.ruled-item .btn { margin-top: 1rem; }

/* Gold-tick lists (same mark as the homepage contract scope) */
.ticks { margin: .9rem 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: .3rem 0 .3rem 1.4rem; color: var(--navy-900); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .55rem; height: 3px; background: var(--gold-500); }

/* Two-column text + aside */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split__text h2 { font-size: var(--text-headline); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.split__text h2::after { content: ""; display: block; width: 3.15rem; height: 3px; margin-top: .9rem; background: var(--gold-500); }
.split__text p { margin-top: .9rem; font-size: var(--text-lede); max-width: var(--measure); }
/* A vendor record in the narrow column of a split: one column of facts, every row ruled but the last */
.facts--one { grid-template-columns: minmax(0, 1fr); }
.facts--one div { grid-template-columns: 9.5rem minmax(0, 1fr); }
.record-card .facts--one > :nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }

/* Reading text */
.prose { max-width: var(--measure); font-size: var(--text-lede); line-height: 1.6; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--text-title-lg); font-weight: 700; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: var(--text-title); font-weight: 700; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: .6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--gold-numeral); font-weight: 700; }
.prose strong { color: var(--navy-900); }
.prose + .table-scroll, .table-scroll + .prose, .prose + .ruled-grid, .ruled-grid + .prose, .table-scroll + .ruled-grid, .prose + .qa { margin-top: 2rem; }

/* Data tables: ruled, tabular, scroll inside their own box on small screens */
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; border-top: 2px solid var(--navy-900); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); font-variant-numeric: tabular-nums lining-nums; }
.data-table caption { padding: 0 0 .6rem; color: var(--navy-700); font-weight: 700; text-align: left; }
.data-table th, .data-table td { padding: .75rem 1.25rem .75rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table thead th { color: var(--navy-700); font-size: var(--text-small); font-weight: 700; border-bottom-color: var(--rule-strong); }
.data-table tbody th { min-width: 8rem; color: var(--navy-900); font-weight: 700; }
.data-table td { color: var(--navy-950); }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }
.table-scroll:focus-visible { outline-offset: 4px; }

/* Key-value fact tables (contract pages, purchasing files): readable measure on wide screens */
.data-table--kv { max-width: 52rem; }
.data-table--kv tbody th { min-width: 10.5rem; }
/* Reading across a long fact table: the row under the pointer takes a faint tint */
@media (hover: hover) {
  .data-table--kv tbody tr { transition: background-color .15s var(--ease-out); }
  .data-table--kv tbody tr:hover { background-color: rgba(10, 34, 72, .04); }
}
.table-scroll:has(.data-table--kv) { max-width: 52rem; }
.table-title { margin: clamp(2.5rem, 4vw, 3.5rem) 0 1rem; color: var(--navy-900); font-size: var(--text-title); font-weight: 700; }

/* Questions and answers */
.qa { max-width: 52rem; border-top: 1px solid var(--rule); }
.qa__item { padding-block: 1.25rem 1.4rem; border-bottom: 1px solid var(--rule); }
.qa__item h3 { max-width: var(--measure); font-size: var(--text-title-sm); font-weight: 700; line-height: 1.3; }
.qa__item p { margin-top: .5rem; max-width: var(--measure); }
.qa__item p + p { margin-top: .6rem; }
.qa__updated { margin-top: 1.1rem; color: var(--navy-700); font-size: var(--text-small); }

/* Guide index */
.guide-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.guide-index li { padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--rule); }
.guide-index h3, .guide-index h4 { font-size: var(--text-title-sm); font-weight: 700; line-height: 1.3; }
.section .guide-index :is(h3, h4) a { color: var(--navy-900); text-decoration: none; }
.section .guide-index :is(h3, h4) a:hover { color: var(--gold-text); text-decoration: underline; text-underline-offset: .2em; }
.guide-index p { margin-top: .45rem; font-size: var(--text-ui); }
.guide-group + .guide-group { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.guide-group__title { margin-bottom: 1.25rem; color: var(--navy-900); font-size: var(--text-title-lg); font-weight: 700; line-height: 1.2; }
.guide-group__title::after { content: ""; display: block; width: 3.15rem; height: 3px; margin-top: .75rem; background: var(--gold-500); }
.section__more { margin-top: 1.5rem; }

/* Sources */
.sources { max-width: var(--measure); margin: 0; padding-left: 1.6rem; font-size: var(--text-ui); }
.sources li { padding-block: .35rem; }
.sources li::marker { color: var(--navy-700); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Standards list */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 0; padding: 0; list-style: none; }
.tag-list li { color: var(--navy-900); font-weight: 700; letter-spacing: .02em; }
.tag-list li + li::before { content: ""; display: inline-block; width: 1px; height: .95em; margin: 0 .85rem; background: var(--rule-strong); vertical-align: -.12em; }
.ruled-item .tag-list { margin-top: 1rem; }

/* Plain link lists (videos and other outside references) */
.link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 52rem; }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list .text-link { padding-block: .9rem; }

/* People */
.people { max-width: 66rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.person img { width: 100%; aspect-ratio: 726 / 790; object-fit: cover; background: var(--mist-100); border-radius: 2px; }
.person h3 { margin-top: 1rem; font-size: var(--text-title); font-weight: 700; }
.person p { margin-top: .2rem; color: var(--navy-700); font-weight: 600; }
.person .person__note { margin-top: .35rem; color: var(--ink-600); font-weight: 400; }

/* Closing call to action: a navy band one step lighter than the footer so the two never merge */
.cta-band { background: var(--navy-900); }
.cta-band .section__head { margin-bottom: 0; }
.cta-band .section__head p { color: var(--on-navy); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.cta-band__actions .btn { min-height: 2.75rem; padding-inline: 1.5rem; }

/* Buttons on light grounds */
.btn--line { border-color: var(--navy-900); color: var(--navy-900); }
.btn--line:hover { background: var(--navy-900); color: #fff; }

/* ---------- Utility pole quote form (behavior unchanged: pages.js posts it exactly as before) ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; accent-color: var(--navy-900); }
.form h3 { font-size: var(--text-title); font-weight: 700; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.form__group { display: grid; gap: 1.1rem; min-width: 0; margin: 0; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--rule); }
.form__group legend { float: left; width: 100%; padding: 0; color: var(--navy-900); font-size: var(--text-body); font-weight: 700; }
.quote-contact { padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--navy-900); }
.form label { display: grid; gap: .35rem; color: var(--navy-900); font-size: var(--text-small); font-weight: 700; }
.form input:not([type="hidden"]), .form select, .form textarea {
  width: 100%; min-height: 2.75rem; padding: .6rem .75rem;
  border: 1px solid var(--field-border); border-radius: 3px; background: #fff;
  color: var(--navy-950); font: 400 var(--text-body)/1.4 var(--font); caret-color: var(--navy-900);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--placeholder); }
.form :focus-visible { outline: 3px solid var(--navy-900); outline-offset: 1px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--navy-900); }
.form__attach { max-width: var(--measure); color: var(--navy-700); font-size: var(--text-small); }
.form .btn { justify-self: start; min-height: 2.9rem; padding-inline: 1.75rem; font-size: var(--text-body); }
.form__check { min-height: 71px; color: var(--ink-600); font-size: var(--text-small); }
.form__check:empty { display: none; }
.form__status { min-height: 1.5em; color: var(--navy-900); font-weight: 600; }
.form__status[data-state="error"] { color: var(--error); }
.form abbr { color: var(--error); text-decoration: none; }
.form [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
/* After a request is sent: what was sent, who replies and when, and a print button for the buyer's file */
.form-confirm { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; }
.form-confirm h3 { font-size: var(--text-title); font-weight: 700; }
.form-confirm p { color: var(--navy-900); }
.form-confirm__list { margin: 0; border-top: 1px solid var(--rule); }
.form-confirm__list div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--rule); }
.form-confirm__list dt { color: var(--navy-700); font-size: var(--text-small); font-weight: 700; }
.form-confirm__list dd { margin: 0; color: var(--navy-950); overflow-wrap: anywhere; }
.form-confirm__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.quote-side { display: grid; gap: 0; }
.quote-side .ruled-item:first-child { padding-top: 0; border-top: 0; }
.contact-list { margin: .75rem 0 0; padding: 0; list-style: none; }
.contact-list li { padding-block: .3rem; }
.contact-list a { font-weight: 700; }

/* Reference-page notice on lines of work that are not current offerings */
.status-note { background: var(--mist-100); border-bottom: 1px solid var(--rule); }
.status-note p { padding-block: 1rem; color: var(--navy-900); font-size: var(--text-body); line-height: 1.5; }
.status-note strong { font-weight: 800; }
.status-note a { color: var(--navy-900); text-decoration-color: rgba(10, 34, 72, .4); text-underline-offset: .18em; }
.status-note a:hover { text-decoration-color: var(--gold-500); }

/* A note under a table: when the facts were reviewed, where the printable record is */
.table-note { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; max-width: 52rem; margin-top: 1rem; color: var(--navy-700); font-size: var(--text-small); }

/* Purchasing file: one printable record per contract */
.file-sheet { max-width: 62rem; }
.file-table tbody th { width: 13rem; }
.file-steps { margin: 0; padding-left: 1.2rem; }
.file-steps li + li { margin-top: .25rem; }
html:not(.js) .js-print { display: none; }

/* Purchasing file: the record starts in the first screen, so the page head is compact */
.page--file .page-head__inner { gap: 1rem; padding-block: 1.1rem 1.6rem; }
.page--file .page-head h1 { font-size: var(--text-headline); }
.page--file .page-head__lede { margin-top: .6rem; }
.page--file .page-head__actions { margin-top: 1rem; }
.page--file .section.file { padding-top: 1.6rem; }
/* Interior credentials strip lines up with the left edge like everything else */
.page .credentials p { justify-content: flex-start; }
/* After a request is sent, the section's request prompt steps aside */
.has-confirm #quote .section__head p { display: none; }

/* ---------- Rail: guides and contract pages on wide screens ----------
   home.js wraps the reading sections in .rail-host and lays a right-hand rail over them: "On this page" links with the
   section being read marked by the gold rule, and the contract card (number, term, Request a Quote, purchasing file).
   The sections keep their full-bleed grounds; their content simply stops short of the rail. Hidden below 1280px and in print. */
.rail-host { position: relative; }
.rail-layer { display: none; }
@media (min-width: 1280px) {
  :root { --rail-w: 17.5rem; --rail-gap: 4rem; }
  .rail-layer { display: block; position: absolute; inset: 0; pointer-events: none; }
  .rail-layer > .wrap { position: relative; height: 100%; }
  .rail { position: absolute; top: clamp(3.5rem, 7vw, 5.5rem); bottom: clamp(3.5rem, 7vw, 5.5rem); right: max(var(--gutter), env(safe-area-inset-right)); width: var(--rail-w); pointer-events: auto; }
  .rail-host > .section > .wrap { padding-right: calc(max(var(--gutter), env(safe-area-inset-right)) + var(--rail-w) + var(--rail-gap)); }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .rail-host .ruled-grid, .rail-host .guide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rail__inner { position: sticky; top: 6rem; display: grid; gap: 1.75rem; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: thin; margin: -4px; padding: 4px; }
.rail__title { color: var(--navy-700); font-size: var(--text-small); font-weight: 700; }
.rail__toc ol { margin: .6rem 0 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.rail__toc a { display: block; margin-left: -2px; padding: .32rem 0 .32rem 1rem; border-left: 2px solid transparent; color: var(--ink-600); font-size: var(--text-ui); line-height: 1.35; text-decoration: none; transition: color .15s var(--ease-out), border-color .2s var(--ease-out); }
.rail__toc a:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: .2em; }
.rail__toc a[aria-current] { border-left-color: var(--gold-500); color: var(--navy-900); font-weight: 700; }
.rail__card { padding: 1.15rem 1.25rem 1.3rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--navy-900); border-radius: 4px; }
.rail__no { margin-top: .15rem; color: var(--navy-900); font-size: var(--text-title-lg); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rail__term { margin-top: .3rem; color: var(--ink-600); font-size: var(--text-small); font-variant-numeric: tabular-nums lining-nums; }
.rail__term strong { color: var(--gold-text); }
.rail__card .btn { width: 100%; min-height: 2.75rem; margin-top: 1rem; border-color: var(--gold-numeral); }
.rail__card .text-link { margin-top: .85rem; font-size: var(--text-ui); }
.rail__contracts { margin: .45rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rail__contracts li { padding-block: .6rem; border-bottom: 1px solid var(--rule); }
.rail__contracts a { color: var(--navy-900); font-weight: 700; text-decoration-color: rgba(10, 34, 72, .35); text-underline-offset: .18em; }
.rail__contracts a:hover { text-decoration-color: var(--gold-500); }
.rail__meta { margin-top: .15rem; color: var(--navy-900); font-size: var(--text-ui); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rail__contracts .rail__term { margin-top: 0; }

/* ---------- Not found ---------- */
.page-head--notfound .page-head__inner { padding-block: clamp(3rem, 7vw, 6rem); }

/* ---------- Responsive: same tiers as home.css ---------- */
@media (max-width: 1100px) {
  .ruled-grid, .guide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page .site-header__bar { min-height: 0; padding-block: .6rem; }
  .page-head--record .page-head__inner, .split, .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .page-head--record .page-head__inner { align-items: start; row-gap: 0; }
  /* Contract first on small screens: the record moves up between the lede and the buttons */
  .page-head--record .page-head__text { display: contents; }
  .page-head--record .breadcrumbs { margin-bottom: 1.5rem; }
  .page-head--record .record { order: 1; margin-top: 1.5rem; }
  .page-head--record .page-head__actions { order: 2; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ruled-grid, .ruled-grid--2, .guide-index, .form__row { grid-template-columns: minmax(0, 1fr); }
  /* Fact tables stack each label over its value on phones */
  .data-table--kv tr { display: block; padding-block: .65rem; border-bottom: 1px solid var(--rule); }
  .data-table--kv tbody th, .data-table--kv td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .data-table--kv tbody th { color: var(--navy-700); font-size: var(--text-small); }
  .data-table--kv td { margin-top: .15rem; }
  .form-confirm__list div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .ruled-item { padding-bottom: 1.5rem; }
  .page-head h1 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .page-head__actions .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .data-table { font-size: var(--text-ui); }
  .data-table tbody th { min-width: 6.5rem; }
  .prose { font-size: var(--text-body); }
}
@media (max-width: 420px) {
  .people { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .record__no { font-size: 1.9rem; }
}

/* ---------- Touch ---------- */
@media (pointer: coarse) {
  .breadcrumbs a, .sources a, .guide-index :is(h3, h4) a { display: inline-block; padding-block: .35rem; }
  .ruled-item .text-link, .link-list .text-link { position: relative; }
}

/* ---------- Print: interior pages file as cleanly as the homepage ---------- */
@media print {
  html.js .page main { padding-top: 0 !important; }
  .rail-layer { display: none !important; }
  .rail-host > .section > .wrap { padding-right: 0 !important; }
  .page-head { background: none !important; color: #000 !important; border: 0; border-bottom: 1.5pt solid #000; }
  .page-head__inner { padding-block: 0 8pt; }
  .page-head__inner, .page-head--record .page-head__inner { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .page-head--record .page-head__text { display: block; }
  .breadcrumbs { margin-bottom: 6pt; }
  .record { margin-top: 8pt; padding-top: 6pt; }
  .record__badge { display: none !important; }
  .page .text-link { display: inline; }
  .page-head h1, .page-head__lede, .page-head__supply, .page-head__supply strong, .record__no, .breadcrumbs li, .breadcrumbs a, .breadcrumbs [aria-current] { color: #000 !important; }
  .page-head__byline, .record__label { color: #333 !important; }
  .page-head__actions, .cta-band, .form, .quote-side .btn { display: none !important; }
  .breadcrumbs li + li::before { border-color: #000; }
  .record { border-color: #888; }
  .ruled-item, .qa__item, .data-table tr, .person { break-inside: avoid; }
  .table-scroll { overflow: visible; border-top-color: #000; }
  .data-table th, .data-table td { border-color: #888; color: #000; }
  .tag-list li { border-color: #888; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .person img { max-width: 40mm; }
  .breadcrumbs a::after { content: none !important; }
  a.print-no-url::after { content: none !important; }
  .has-confirm main > :not(#quote), .has-confirm #quote .section__head, .has-confirm .quote-side, .has-confirm .form-confirm__actions { display: none !important; }
  .form-confirm { border-color: #888; }
  .status-note { background: none; border: .75pt solid #888; }
  .status-note p { padding: 4pt 6pt; color: #000; }
  .page--file .page-head__lede { display: none; }
  .page--file .page-head h1 { font-size: 16pt; }
  .page--file .section { padding-block: 4pt; }
  .page--file .data-table th, .page--file .data-table td { padding: 3pt 8pt 3pt 0; font-size: 9.5pt; }
  .page--file .table-note { color: #000; font-size: 8.5pt; }
  .page--file .table-scroll { border-top: 0; }
  .page--file .table-scroll, .page--file .data-table--kv { max-width: none !important; }
  .page--file .site-footer { display: none !important; }
}
