/* Shared interface layer. Analytical series colours and printed reports are unchanged. */
@media screen {
  :root {
    --ui-blue: #114be8;
    --ui-navy: #10213d;
    --ui-muted: #58677d;
    --ui-border: #dfe5ef;
    --ui-page: #f7f9fc;
    --ui-radius: 10px;
    --ui-shadow: 0 3px 16px rgb(16 33 61 / 4%);
  }
  html { scroll-behavior: smooth; }
  body, body.hub-publication, body.visual-edition {
    background: var(--ui-page);
    color: var(--ui-navy);
    font: 16px/1.65 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  body h1, body h2, body h3, body button, body input, body select {
    font-family: 'Segoe UI', Arial, sans-serif;
  }
  body h1, body h2, body h3 { letter-spacing: -.035em; }
  a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
  body :is(a, button, input, select, summary, [tabindex]):focus-visible {
    outline: 3px solid #4c83ff;
    outline-offset: 4px;
  }
  .ui-skip {
    position: fixed; top: 12px; left: 16px; z-index: 1000;
    transform: translateY(-180%); background: var(--ui-navy); color: white;
    border-radius: 8px; padding: 12px 20px; font-weight: 600;
  }
  .ui-skip:focus { transform: none; }
  .header, .hs-header { background: var(--ui-page); }
  .header nav a, .hs-header .hs-nav a { font-size: 14px; min-height: 48px; }
  .header nav a:hover, .hs-header .hs-nav a:hover { color: var(--ui-blue); }
  .report, .player, .combination-teaser, .ic-player, .ic-panel,
  body.visual-edition .visual-panel {
    border-radius: var(--ui-radius); border-color: var(--ui-border);
    box-shadow: var(--ui-shadow);
  }
  .report:hover, .player:hover, .button:hover { transform: none; }
  a.report:hover, a.player:hover, a.combination-teaser:hover {
    border-color: #a1b9f8; box-shadow: 0 8px 24px rgb(16 33 61 / 8%);
  }
  .report-type, .eyebrow, .pill, .edition, .task-meta { font-size: 12px; }
  .task-meta { white-space: normal; }
  .player-copy p { font-size: 14px; }
  .report-link { display: inline-block; line-height: 1.6; padding: 8px 0; }
  .report-link, .ic-video-meta a { color: var(--ui-blue); font-weight: 600; }
  .button, input, select, .ic-tabs a, .ic-chapters button,
  body.visual-edition .profile-tabs button, .report-tools a {
    min-height: 44px; border-radius: 8px; font-size: 14px;
  }
  .button { display: inline-flex; align-items: center; justify-content: center; }
  .ic-tabs a, .ic-chapters button, body.visual-edition .profile-tabs button {
    padding: 11px 16px; border: 1px solid var(--ui-border);
    background: white; color: var(--ui-navy); line-height: 1.5;
  }
  .ic-tabs a:hover, .ic-chapters button:hover,
  body.visual-edition .profile-tabs button:hover { border-color: #a1b9f8; background: #edf2ff; }
  body.visual-edition .profile-tabs button[aria-selected='true'] {
    background: var(--ui-blue); border-color: var(--ui-blue); color: white;
  }
  .ic-tabs, body.visual-edition .profile-tabs { gap: 8px; }
  body select, .ic-panel select, .ic-sort select {
    appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2358677d' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
  .ui-report-tools, body.visual-edition .report-tools {
    box-sizing: border-box; max-width: 1440px; margin: 0 auto;
    position: static; top: auto; align-self: auto;
    padding: 20px 5%; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
    font: 600 14px/1.5 'Segoe UI', Arial, sans-serif;
  }
  .ui-report-tools a, body.visual-edition .report-tools>a:first-child {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 10px 16px; border: 1px solid var(--ui-border);
    border-radius: 8px; background: white; color: var(--ui-blue);
    text-decoration: none;
  }
  .ui-report-tools span { font-weight: 400; color: var(--ui-muted); }
  .ui-report-tools + .hs-report-content { padding-top: 12px; }
  .hs-report-content :is(h1,h2,h3) { text-wrap: balance; }
  .hs-report-content h1 { margin-top: 0; margin-bottom: 20px; }
  .hs-report-content :is(.card,.panel,.kpi,.callout,.note) {
    border-radius: var(--ui-radius); border-color: var(--ui-border);
  }
  .hs-table-scroll, .ic-table-wrap, body.visual-edition .table-scroll {
    max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
    background: white; scrollbar-color: #b4c3db #f1f4fa;
  }
  .hs-table-scroll table, .ic-table, body.visual-edition table {
    font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.6;
  }
  .hs-table-scroll thead th, .ic-table thead th, body.visual-edition thead th {
    background: #edf2ff; color: var(--ui-navy);
  }
  .hs-table-scroll :is(td,th), .ic-table :is(td,th), body.visual-edition :is(td,th) {
    border-bottom-color: var(--ui-border);
  }
  body.visual-edition .report {
    box-sizing: border-box; width: 90%; max-width: 1296px;
    margin: 0 auto 40px; padding: 0; background: transparent;
    border: 0; box-shadow: none;
  }
  body.visual-edition .hero { border-radius: var(--ui-radius); overflow: hidden; }
  body.visual-edition .hero, body.visual-edition .hero-portrait { background: var(--ui-navy); }
  body.visual-edition .visual-panel { background: white; }
  body.visual-edition .overview-panel { box-shadow: none; background: transparent; }
  body.visual-edition .visual-panel h2 { font-size: clamp(24px,2.5vw,32px); line-height: 1.25; }
  body.visual-edition :is(.assessment-label,.profile-expand>summary,.kicker) { color: var(--ui-blue); }
  body.visual-edition .hero .kicker { color: #c6d6ff; }
  body.visual-edition .rate-track i, body.visual-edition .record-number { background: var(--ui-blue); }
  body.visual-edition .report-tools .download { background: var(--ui-blue); border-color: var(--ui-blue); color: white; }
  body.visual-edition :is(.caption,.sample-label,.report-note,.rate-chart figcaption) { font-size: 13px; color: var(--ui-muted); }
  body.visual-edition .profile-expand>summary { font-size: 14px; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
  body.visual-edition .compact-edition { font-size: 12px; border-radius: 6px; }
  body.visual-edition .hero .kicker { font-size: 12px; }
  body.visual-edition .site-footer { max-width: 1440px; margin: 0 auto; color: var(--ui-muted); }
  @media(max-width:700px) {
    .header nav, .hs-header .hs-nav { justify-content: space-between; gap: 12px; }
    .header nav a, .hs-header .hs-nav a { font-size: 13px; }
    .ui-report-tools, body.visual-edition .report-tools { padding-top: 16px; padding-bottom: 16px; }
    .ui-report-tools>span { display: none; }
    .task-meta { font-size: 11px; }
    .task-copy { max-width: 78%; }
    .ic-tabs a, .ic-chapters button, body.visual-edition .profile-tabs button { padding: 10px 12px; }
    body.visual-edition .report { width: 90%; margin: 0 auto 28px; }
    body.visual-edition .visual-panel { padding: 22px 18px; }
    body.visual-edition .hero h1 { font-size: clamp(26px,7vw,34px); overflow-wrap: anywhere; }
    body.visual-edition .hero-copy { padding: 22px 16px; }
    body.visual-edition .hero-role { font-size: 15px; }
    body.visual-edition .report-tools .download span { font-size: 12px; }
    body.visual-edition .career-ledger :is(th,td) { font-size: 14px; }
  }
  @media(prefers-reduced-motion:reduce) {
    html, body { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
}
@media print { .ui-skip, .ui-report-tools { display: none !important; } }
