/* HSN/TSN surfaces only. Shared site typography, navigation and consent stay native. */
.hsn-page { --hsn-ink: #07172c; --hsn-action: #0a2342; --hsn-muted: #526071; --hsn-rule: #d7dfec; --hsn-paper: #f4f6fb; }
.hsn-page [hidden] { display: none !important; }
.hsn-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #4d86c7; outline-offset: 3px; }
.hsn-skip { position: fixed; top: -100px; left: 20px; z-index: 1400; padding: 14px 20px; color: #07172c; background: white; }
.hsn-skip:focus { top: 10px; }
.hsn-shell { width: min(100% - 40px, 1080px); margin-inline: auto; }
.hsn-main { padding-block: 32px 80px; }
.hsn-main :is(h1, h2, h3) { color: var(--hsn-ink); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.hsn-main h1 { max-width: 29ch; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; }
.hsn-main h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 18px; }
.hsn-main h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 12px; }
.hsn-main p { max-width: 74ch; margin: 0 0 16px; line-height: 1.7; overflow-wrap: anywhere; }
.hsn-main :is(a, button, input, select, summary, textarea) { scroll-margin-block: 100px 24px; }
.hsn-main a { color: #245a97; text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }
.hsn-main a:hover { color: var(--hsn-ink); }
.hsn-main button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: rgba(46, 110, 181, .12); }
.hsn-main button:disabled { opacity: .62; cursor: default; }
.hsn-breadcrumb { font-size: .875rem; color: var(--hsn-muted); margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.hsn-cover { margin: 0 0 24px; overflow: hidden; border-radius: 8px; background: #18202a; }
.hsn-cover img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; object-position: 50% 72%; }
.hsn-hero { padding-block: 12px 24px; }
.hsn-main .hsn-intro { color: var(--hsn-muted); font-size: 1.1rem; max-width: 70ch; }
.hsn-main :is(.hsn-kicker, .hsn-date) { color: var(--hsn-muted); font-size: .875rem; margin-bottom: 12px; }
.hsn-tool { margin-bottom: 36px; }
.hsn-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hsn-modes button { min-height: 48px; padding: 12px 18px; color: var(--hsn-action); background: white; border: 1px solid #a9b7cb; border-radius: 6px; text-align: left; }
.hsn-modes button[aria-pressed="true"] { color: white; background: var(--hsn-action); border-color: var(--hsn-action); }
.hsn-modes button:hover { border-color: #245a97; }
.hsn-search, .hsn-panel { padding: 28px; background: var(--hsn-paper); border-radius: 8px; }
.hsn-search .hsn-panel { padding: 0; }
.hsn-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: 18px; }
.hsn-field { min-width: 0; margin-bottom: 16px; }
.hsn-field label, .hsn-copy-label { display: block; font-weight: 650; color: var(--hsn-ink); line-height: 1.45; margin-bottom: 8px; }
.hsn-main :is(.hsn-field input, .hsn-field select, .hsn-copy-fallback) { font: inherit; font-size: 1rem; color: #0f1520; width: 100%; max-width: 100%; min-width: 0; min-height: 54px; border: 1px solid #8694a6; border-radius: 6px; padding: 12px 14px; background: white; }
.hsn-field select { text-overflow: ellipsis; padding-right: 28px !important; }
.hsn-field input::placeholder { color: var(--hsn-muted); opacity: 1; }
.hsn-field input[aria-invalid="true"] { border-color: #8a2424; }
.hsn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 8px 16px; }
.hsn-action, .hsn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 6px; line-height: 1.4; text-align: center; }
.hsn-action { color: white; background: var(--hsn-action); font-weight: 650 !important; }
.hsn-action:hover { background: #245a97; }
.hsn-secondary { color: var(--hsn-action); background: white; border-color: #a9b7cb; }
.hsn-secondary:hover { background: #e9eef6; border-color: #245a97; }
.hsn-main :is(.hsn-hint, .hsn-help) { color: var(--hsn-muted); font-size: .875rem; line-height: 1.6; margin-top: 10px; }
.hsn-main .hsn-field-error { color: #8a2424; font-size: .875rem; line-height: 1.6; margin: 8px 0 0; }
.hsn-main .hsn-status { color: var(--hsn-muted); font-size: .9rem; min-height: 1.7em; margin-block: 18px; }
[data-hsn-state="invalid"] .hsn-status, [data-hsn-state="error"] .hsn-status { color: #8a2424; }
.hsn-matches { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--hsn-rule); }
.hsn-match { width: 100%; display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 5px 20px; padding: 18px 12px; border: 0; border-bottom: 1px solid var(--hsn-rule); background: white; text-align: left; color: #0f1520; }
.hsn-match:hover { background: var(--hsn-paper); }
.hsn-match-code { color: var(--hsn-action); font-variant-numeric: tabular-nums; font-size: .9rem; }
.hsn-match-title { line-height: 1.45; overflow-wrap: anywhere; }
.hsn-match-maker { grid-column: 2; font-size: .8rem; color: var(--hsn-muted); overflow-wrap: anywhere; }
.hsn-match-count { grid-column: 2; font-size: .875rem; color: var(--hsn-muted); overflow-wrap: anywhere; }
.hsn-main :is([data-hsn-previous], [data-hsn-more], [data-hsn-retry]) { margin: 0 10px 18px 0; }
.hsn-result { border-top: 1px solid var(--hsn-rule); margin-top: 24px; padding-top: 28px; padding-bottom: 12px; max-width: 820px; }
.hsn-main .hsn-result-maker { color: var(--hsn-muted); font-size: .875rem; margin-bottom: 8px; }
.hsn-main .hsn-result-title { margin-bottom: 14px; }
.hsn-main .hsn-result-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 1.2rem; color: var(--hsn-action); }
.hsn-count { border-left: 3px solid #2e6eb5; background: var(--hsn-paper); padding: 20px 24px; margin: 24px 0; }
.hsn-main .hsn-count-label { font-size: .9rem; margin-bottom: 8px; }
.hsn-main .hsn-count-value { color: var(--hsn-ink); font-size: 1rem; margin-bottom: 10px; line-height: 1.35; }
.hsn-count-value strong { display: inline; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hsn-main .hsn-count-date { font-size: .875rem; color: var(--hsn-muted); margin-bottom: 0; }
.hsn-source-details { border-top: 1px solid var(--hsn-rule); margin-top: 24px; padding-top: 8px; }
.hsn-source-details summary { min-height: 48px; padding-block: 12px; color: var(--hsn-action); font-weight: 600; cursor: pointer; }
.hsn-source-list { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr); gap: 8px 16px; font-size: .875rem; margin-block: 12px 20px; }
.hsn-source-list dt { color: var(--hsn-muted); }
.hsn-source-list dd { margin: 0; overflow-wrap: anywhere; }
.hsn-source-links { padding-left: 22px; font-size: .875rem; }
.hsn-source-links li { margin-bottom: 10px; }
.hsn-copy-label { margin-top: 18px; }
.hsn-copy-fallback { resize: vertical; line-height: 1.5; }
.hsn-reading { max-width: 800px; }
.hsn-section { border-top: 1px solid var(--hsn-rule); padding-block: 36px 10px; margin-top: 28px; }
.hsn-section h3 { margin-top: 26px; }
.hsn-section ul:not(.hsn-directory-list):not(.hsn-example-list) { padding-left: 22px; }
.hsn-section li { margin-bottom: 10px; line-height: 1.7; }
.hsn-note { padding: 22px; background: var(--hsn-paper); border-radius: 4px; margin-block: 24px; }
.hsn-note p:last-child { margin-bottom: 0; }
.hsn-main .hsn-source { font-size: .875rem; color: var(--hsn-muted); line-height: 1.65; }
.hsn-directory-list, .hsn-example-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.hsn-directory-list li, .hsn-example-list li { margin: 0; border-bottom: 1px solid var(--hsn-rule); }
.hsn-directory-list a, .hsn-example { display: block; padding-block: 14px; min-height: 48px; }
.hsn-directory-list a > :is(strong, span) { display: block; }
.hsn-directory-list a > span { font-size: .875rem; color: var(--hsn-muted); margin-top: 4px; }
.hsn-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; margin-block: 24px; }
.hsn-document { border: 1px solid var(--hsn-rule); border-radius: 6px; background: var(--hsn-paper); padding: 20px; min-width: 0; }
.hsn-document > p { font-size: .875rem; color: var(--hsn-muted); }
.hsn-document { margin: 0; }
.hsn-document figcaption { font-size: .75rem; line-height: 1.6; color: var(--hsn-muted); margin-top: 14px; overflow-wrap: anywhere; }
.hsn-document-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.hsn-document-field { border: 1px solid #8aa6c6; border-top: 3px solid #2e6eb5; padding: 12px; background: white; min-width: 0; }
.hsn-document-label { display: block; color: #245a97; font-size: .875rem; font-weight: 650; margin-bottom: 8px; }
.hsn-document-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.1rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.hsn-table-wrap { width: 100%; margin-block: 20px; }
.hsn-table { border-collapse: collapse; width: 100%; font-size: .9rem; table-layout: fixed; }
.hsn-table th, .hsn-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--hsn-rule); padding: 12px 10px 12px 0; overflow-wrap: anywhere; }
.hsn-table th:first-child, .hsn-table td:first-child { width: 68px; }
.hsn-table th:last-child, .hsn-table td:last-child { width: 24%; }
.hsn-table td a { display: inline-block; padding-block: 8px; margin-block: -8px; min-height: 44px; }
.hsn-fleet { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hsn-rule); }
.hsn-fleet a { display: inline-block; min-height: 44px; padding-block: 10px; font-weight: 600; }
@media (min-width: 980px) { .hsn-main { padding-top: 40px; } }
@media (max-width: 699px) {
  .hsn-cover img { aspect-ratio: 1672 / 941; }
  .hsn-main { padding-top: 24px; }
  .hsn-breadcrumb { margin-bottom: 24px; }
  .hsn-main .hsn-intro { font-size: 1rem; }
  .hsn-modes { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hsn-search, .hsn-panel { padding: 20px; }
  .hsn-fields, .hsn-guide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hsn-actions { align-items: stretch; }
  .hsn-actions > button { flex: 1 1 180px; }
  .hsn-match { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 8px; }
  .hsn-match-maker, .hsn-match-count { grid-column: 1; }
  .hsn-source-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hsn-source-list dd { margin-bottom: 8px; }
  .hsn-directory-list, .hsn-example-list { grid-template-columns: minmax(0, 1fr); }
  .hsn-count { padding: 18px; }
  .hsn-table { font-size: .8rem; }
  .hsn-table th:first-child, .hsn-table td:first-child { width: 44px; }
  .hsn-table th:last-child, .hsn-table td:last-child { width: 28%; }
  .hsn-document { padding: 16px; }
}
@media (max-width: 369px) { .hsn-shell { width: calc(100% - 28px); } .hsn-search, .hsn-panel { padding: 16px; } .hsn-main h1 { font-size: 1.9rem; } .hsn-document-field { padding: 8px; } }
@media (prefers-reduced-motion: no-preference) { .hsn-main :is(.hsn-action, .hsn-secondary, .hsn-match) { transition: background-color 150ms ease, border-color 150ms ease; } }
