/* HTNG V24.15 — targeted responsive and WCAG corrections, no UI redesign. */
/* The header subtitle can exceed its flex allocation on 390px devices; allow it to wrap.
   Preserve all three controls and the brand, rather than hiding scrolling globally. */
@media (max-width: 700px) {
  body.htng-v12-site .header-inner {min-width:0;}
  body.htng-v12-site .header-inner > .brand {flex:1 1 auto;min-width:0;max-width:100%;}
  body.htng-v12-site .header-inner > .brand > span:last-child {min-width:0;max-width:100%;}
  body.htng-v12-site .header .brand-sub {max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.35;}
  body.htng-v12-site .header-inner > .header-right {flex:0 0 auto;max-width:calc(100% - 130px);}
  body.htng-v12-site .htng-review-viewport {max-width:100%;min-width:0;}
  body.htng-v12-site .htng-review-viewport .htng-review-track {min-width:0;}
}
@media (max-width: 350px) {
  body.htng-v12-site .header-inner {gap:6px;}
  body.htng-v12-site .header-inner > .header-right {gap:4px;}
}
/* Readable small uppercase tag in the coverage intro, on light and dark themes. */
html:not([data-theme="dark"]) body.htng-v12-site .coverage-layout .eyebrow,
html:not([data-theme="dark"]) body.htng-v12-site .page-head .eyebrow,
html:not([data-theme="dark"]) body.htng-v12-site .coverage-card .eyebrow {color:#154982!important;}
html[data-theme="dark"] body.htng-v12-site .coverage-layout .eyebrow,
html[data-theme="dark"] body.htng-v12-site .page-head .eyebrow,
html[data-theme="dark"] body.htng-v12-site .coverage-card .eyebrow {color:#c5e0ff!important;}
/* Diagnostics: restore opacity of numeric count labels and improve inactive tab contrast.
   V16 diagnostic theme overrides are preserved for dark mode. */
html:not([data-theme="dark"]) body.htng-diagnostics-public .tabs .tab:not(.active) {color:#294c71!important;}
html:not([data-theme="dark"]) body.htng-diagnostics-public .tabs .tab.active {color:#154c98!important;}
body.htng-diagnostics-public .tabs .tab .n {opacity:1!important;color:inherit!important;}
html:not([data-theme="dark"]) body.htng-diagnostics-public .tabs .tab .n {font-weight:800;}
html[data-theme="dark"] body.htng-diagnostics-public .tabs .tab {color:#e2edff!important;}
html[data-theme="dark"] body.htng-diagnostics-public .tabs .tab.active {color:#fff!important;}
/* Keep a visible keyboard focus indicator on the tab buttons. */
body.htng-diagnostics-public .tab:focus-visible {outline:3px solid #2778d8;outline-offset:2px;}
/* Diagnostic results: the old light-gray 11–12px labels were below WCAG AA
   on white cards. Rules are deliberately limited to light theme. */
html:not([data-theme="dark"]) body.htng-diagnostics-public :is(.record .r-meta,.detail-source,.progress-note,.list-top span,.detail .detail-overline,.footer,.sort,.quiet,.r-desc,.detail-note,.detail-desc,.related h3) {
  color:#425d7b;
}
html:not([data-theme="dark"]) body.htng-diagnostics-public .record .r-desc {color:#4c647e;}
html:not([data-theme="dark"]) body.htng-diagnostics-public :is(.detail-note.warn,.mini-badge) {color:#734b16;}
html:not([data-theme="dark"]) body.htng-diagnostics-public :is(.searchbox input::placeholder) {color:#4f6782;}
/* Very narrow screens: long legal documents and long blog headings must fit
   their grid track. This fixes actual 320px content overflow, not a hidden scroll. */
body.htng-v12-site .grid-2 > article.card {min-width:0;max-width:100%;overflow-wrap:anywhere;}
body.htng-v12-site .article-content {min-width:0;overflow-wrap:anywhere;}
body.htng-v12-site .article h1 {overflow-wrap:anywhere;word-break:normal;}
body.htng-v12-site .page-head h1 {overflow-wrap:anywhere;}
/* Actual /lefedettseg result-list column is the second .reveal in a surface grid. */
html:not([data-theme="dark"]) body.htng-v12-site #page > .section-compact.surface .grid-2 > .reveal > .eyebrow {color:#154982!important;}
html[data-theme="dark"] body.htng-v12-site #page > .section-compact.surface .grid-2 > .reveal > .eyebrow {color:#c5e0ff!important;}
