/* AB Global / tariff comparison. Source cell colors retain their legal-reference meaning. */
.ab-correlation-page { color: var(--ab-ink); background: var(--ab-surface); }
.correlation-main { padding-block: 152px 72px; }
.correlation-main :is(h1,h2,h3,h4,p) { margin: 0; }
.correlation-main [hidden] { display: none !important; }
.correlation-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.correlation-heading > div { min-width: 0; }
.correlation-eyebrow { color: var(--ab-muted); font-size: 10px; line-height: 1.6; letter-spacing: .14em; }
.correlation-heading h1 { max-width: 980px; margin-top: 8px; color: var(--ab-brand); font-size: clamp(28px,3vw,38px); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.correlation-heading .correlation-intro { margin-top: 12px; color: var(--ab-muted); font-size: 13px; line-height: 1.8; }
.correlation-contact { display: inline-flex; flex: none; align-items: center; gap: 20px; min-height: 44px; padding-block: 10px; color: var(--ab-brand); font-size: 12px; line-height: 1.8; text-decoration: none; text-underline-offset: 4px; }
.correlation-contact svg { flex: none; width: 14px; height: 14px; transition: transform var(--ab-motion) var(--ab-ease); }
.correlation-source { margin-bottom: 26px; border-block: 1px solid var(--ab-border); }
.correlation-source summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; padding-block: 12px; color: var(--ab-brand); font-size: 12px; line-height: 1.8; list-style: none; cursor: pointer; }
.correlation-source summary::-webkit-details-marker { display: none; }
body.ab-correlation-page .correlation-source summary:focus-visible { outline: none !important; box-shadow: inset 0 -2px 0 var(--ab-brand) !important; }
.correlation-source summary > span { font-size: 20px; font-weight: 300; transition: transform var(--ab-motion); }
.correlation-source[open] summary > span { transform: rotate(45deg); }
.correlation-source-content { padding-block: 8px 24px; color: var(--ab-muted); font-size: 12px; line-height: 1.9; }
.correlation-source-content :is(h3,h4,p) { text-align: left !important; }
.correlation-source-content h3 { color: var(--ab-ink); font-size: 14px; font-weight: 500; line-height: 1.7; }
.correlation-source-content h3 + h3 { margin-top: 4px; font-size: 12px; font-weight: 400; }
.correlation-source-content p { max-width: 1000px; margin-top: 12px; }
.correlation-source-content h4 { margin-top: 16px; color: var(--ab-brand); font-size: 13px; font-weight: 500; line-height: 1.8; }
.correlation-source-content strong { font-weight: 500; }
.correlation-source-content a { color: var(--ab-brand); text-underline-offset: 3px; }
.correlation-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 32px; margin-bottom: 24px; }
.correlation-search-field { min-width: 0; }
.correlation-search label { display: block; color: var(--ab-ink); font-size: 12px; font-weight: 500; line-height: 1.6; }
.correlation-search input { display: block; width: 100%; height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ab-border); border-radius: 0; color: var(--ab-ink); background: transparent; font-family: var(--ab-font); font-size: 14px; line-height: 1.5; }
.correlation-search input::placeholder { color: var(--ab-muted); opacity: 1; }
.correlation-search input:focus { border-bottom-color: var(--ab-brand); }
body.ab-correlation-page .correlation-search input:focus-visible { outline: none !important; box-shadow: 0 1px 0 var(--ab-brand) !important; }
.correlation-search-actions { display: flex; align-items: center; gap: 18px; }
.correlation-search .ab-ui-button { min-height: 44px; padding: 11px 23px; font-size: 13px; }
.correlation-reset { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--ab-muted); font-size: 12px; text-underline-offset: 4px; cursor: pointer; }
.correlation-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 14px; }
.correlation-toolbar p { color: var(--ab-muted); font-size: 11px; line-height: 1.8; }
.correlation-toolbar ul { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.correlation-toolbar li { display: inline-flex; align-items: center; gap: 7px; color: var(--ab-muted); font-size: 10px; line-height: 1.8; }
.correlation-swatch { display: inline-block; flex: none; width: 8px; height: 8px; border: 1px solid rgba(23,25,31,.14); }
.correlation-swatch--removed { background: #ee6868; }
.correlation-swatch--added { background: #9dc3e6; }
.correlation-swatch--changed { background: #a9d18e; }
.correlation-toolbar .correlation-scroll-hint { display: none; }
.correlation-content { min-width: 0; overflow-x: auto; color: var(--ab-ink); font-size: 13px; line-height: 1.85; }
.ab-correlation-page.is-ready .correlation-content { overflow: visible; }
.correlation-content :is(h3,h4,p) { text-align: left !important; }
.correlation-content h3 { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.6; }
.correlation-content h4 { margin-top: 18px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.correlation-content p { margin-top: 14px; }
.correlation-content a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ab-brand) !important; font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.correlation-content a strong { font-weight: 400; }
.correlation-table-region { max-width: 100%; max-height: min(68svh,680px); margin-bottom: 20px; overflow: auto; border: 1px solid var(--ab-border); border-radius: var(--ab-radius-control); scrollbar-width: thin; scrollbar-color: #bcb0ca transparent; scroll-margin-top: 112px; -webkit-overflow-scrolling: touch; }
.correlation-content table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; line-height: 1.7; }
.correlation-content colgroup:nth-of-type(1),.correlation-content colgroup:nth-of-type(5) { width: 138px; }
.correlation-content colgroup:nth-of-type(2),.correlation-content colgroup:nth-of-type(6) { width: auto; }
.correlation-content colgroup:nth-of-type(3),.correlation-content colgroup:nth-of-type(7) { width: 42px; }
.correlation-content colgroup:nth-of-type(4) { width: 10px; }
.correlation-content td { height: auto; padding: 12px 14px; border: 0 !important; border-bottom: 1px solid var(--ab-border) !important; vertical-align: top; overflow-wrap: anywhere; }
.correlation-content td :is(span,b,strong) { font-family: var(--ab-font) !important; font-size: inherit; }
.correlation-content td :is(b,strong) { font-weight: 500; }
.correlation-content td:nth-child(1),.correlation-content td:nth-child(7) { white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.correlation-content td:nth-child(3),.correlation-content td:nth-child(4),.correlation-content td:nth-child(9),.correlation-content td:nth-child(10) { padding-inline: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.correlation-content td:nth-child(5),.correlation-content td:nth-child(6) { padding: 0; border-bottom: 0 !important; }
.correlation-content tr.is-spacer td { height: 10px; padding-block: 0; border-bottom: 0 !important; }
.correlation-content thead { position: sticky; z-index: 2; top: 0; }
.correlation-content th { padding: 12px 14px; border-bottom: 1px solid var(--ab-border); color: var(--ab-brand); text-align: left; font-weight: 500; }
.correlation-years th { background: var(--ab-brand-soft); font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.correlation-year-label { position: sticky; left: 14px; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.correlation-year-label strong { font-weight: 500; }
.correlation-year-label > span { color: var(--ab-muted); font-size: 10px; font-weight: 400; }
.correlation-columns th { background: var(--ab-surface); font-size: 10px; line-height: 1.8; }
.correlation-columns th[colspan="2"]:not(.correlation-table-gap) { text-align: center; padding-inline: 4px; }
.correlation-content .correlation-table-gap { padding: 0; border: 0; background: var(--ab-surface); }
.correlation-empty { padding: 20px; color: var(--ab-muted); font-size: 13px; line-height: 1.8; }
.correlation-content--empty { padding-block: 24px; border-top: 1px solid var(--ab-border); }
@media (hover:hover) {
  .correlation-contact:hover,.correlation-reset:hover { color: var(--ab-brand); text-decoration: underline; }
  .correlation-contact:hover svg { transform: translateX(3px); }
}
@media (max-width:1240px) { .correlation-toolbar .correlation-scroll-hint { display: block; flex-basis: 100%; font-size: 10px; } }
@media (max-width:1080px) {
  .correlation-main { padding-block: 132px 56px; }
  .correlation-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width:600px) {
  .correlation-main { padding-block: 116px 44px; }
  .correlation-heading { margin-bottom: 22px; }
  .correlation-heading h1 { font-size: 30px; }
  .correlation-heading .correlation-intro { margin-top: 10px; font-size: 12px; }
  .correlation-source { margin-bottom: 22px; }
  .correlation-search { grid-template-columns: minmax(0,1fr); gap: 16px; margin-bottom: 22px; }
  .correlation-search input { height: 44px; font-size: 16px; }
  .correlation-search label { font-size: 11px; }
  .correlation-search-actions { justify-content: space-between; gap: 20px; }
  .correlation-search .ab-ui-button { flex: 1; justify-content: space-between; padding-inline: 18px; }
  .correlation-toolbar { align-items: flex-start; gap: 10px; }
  .correlation-toolbar ul { gap: 16px; }
  .correlation-table-region { max-height: 65svh; }
}
@media (prefers-reduced-motion:reduce) { .correlation-contact svg,.correlation-source summary > span { transition: none; } }
@media (forced-colors:active) { body.ab-correlation-page .correlation-search input:focus-visible,body.ab-correlation-page .correlation-source summary:focus-visible { border-bottom: 2px solid Highlight; } }
@media print {
  .correlation-main { padding: 0; }
  .correlation-search,.correlation-contact,.correlation-scroll-hint { display: none; }
  .correlation-table-region { max-height: none; overflow: visible; border: 0; }
  .correlation-content table { min-width: 0; font-size: 9px; }
  .correlation-content td { padding: 4px; }
  .correlation-content thead { position: static; }
  .correlation-content td { print-color-adjust: exact; }
}
