/* Shared responsive layout, loaded after the legacy app/forceapply cascade.
 * 768px: tablet grids; 1200px: sidebar and full navigation (reportToc.ts).
 * Keep chart SVG dimensions intact: scroll the chart, never shrink its labels.
 */
:root {
  --pireport-page-gutter: 1rem;
  --pireport-panel-padding: 1rem;
  --pireport-section-gap: 2rem;
  --pireport-header-height: 3.75rem;
}
body { padding-top: var(--pireport-header-height); }
.sf_header { min-height: var(--pireport-header-height); padding: .3rem var(--pireport-page-gutter); }
.sf_header .navbar-toggler { min-width: 44px; min-height: 44px; }
.sf_header .navbar-collapse { min-width: 0; }
.sf_header .navbar-brand { min-width: 0; }
.sf_header .header-search { min-width: 0; }
.sf_header .header-search-query { min-width: 0; }
.sf_header .header-search-country { flex-basis: 4.5rem; }
.sf_header .header-search .form-control,
.sf_header .header-search .btn { height: 44px; font-size: 1rem; }
.sf_header .header-search .btn { white-space: nowrap; }
.sf_header .nav-link { min-height: 44px; display: flex; align-items: center; }

.report-article, .index-redesign { width: calc(100% - 2 * var(--pireport-page-gutter)); }
.report-article { font-size: .9375rem; line-height: 1.85; }
.report-main-column { padding: var(--pireport-panel-padding); padding-bottom: 3rem; }
.report-article p { line-height: 1.85; margin-bottom: 1rem; }
.report-main-column .report-abstract > p { max-width: none; }
.report-main-column .a-section > p { max-width: 44em; }
.report-article h1.line-heading { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.5; padding-bottom: 0; margin-bottom: 1.5rem; }
.report-main-column .a-section { padding-top: var(--pireport-section-gap) !important; }
.report-main-column h2.line-heading { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; }
.report-main-column h3.line-heading { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; }
.report-main-column h4, .report-main-column h5 { font-size: 1rem; line-height: 1.6; }
.report-main-column .line-heading { margin-bottom: 1rem; padding-bottom: .5rem; }
.report-article .a-section > .line-heading { padding-top: 1rem; }
.report-main-column .line-heading small { font-size: .8em; }
.report-article [id], .index-directory [id] { scroll-margin-top: calc(var(--pireport-header-height) + 1rem); }
.report-meta-bar { padding: .875rem var(--pireport-panel-padding); font-size: .8125rem; line-height: 1.7; }
.report-meta-bar .report-meta-date { min-width: 0; max-width: 100%; white-space: normal; }
.report-meta-bar .report-meta-date time { white-space: normal; }
.report-meta-bar .breadcrumb { margin-bottom: .5rem; }
.report-summary-grid { gap: 1.5rem; }
.report-article table caption { text-align: left; font-size: .8125rem; line-height: 1.6; }
.report-article table.table > :not(caption) > * > * { padding: .75rem; line-height: 1.65; }
.report-article table.table th:first-child, .report-article table.table td:first-child { text-align: left !important; }
.report-article table.table thead th { font-size: .8125rem; }
.report-table-scroll, .report-article .table-responsive { max-width: 100%; overscroll-behavior-x: contain; }

.report-kpis { margin: 1.25rem 0 1.5rem; }
.report-kpi { padding: 1rem; }
.report-kpi-label, .report-kpi-meta, .report-kpi-unit { font-size: .8125rem; }
.report-kpi-value { line-height: 1.2; font-size: clamp(1.5rem, 2.3vw, 1.875rem); }
/* Compact navigation: aligned section labels and one guide per child group. */
.report-sidebar { top: calc(var(--pireport-header-height) + 1rem); max-height: calc(100dvh - var(--pireport-header-height) - 2rem); padding: 1rem .875rem; }
.report-sidebar-label { margin: 0 .5rem .625rem; font-size: .6875rem; letter-spacing: .08em; }
.report-sidebar .toc, .report-sidebar .toc ul { margin: 0; padding: 0; list-style: none; }
.report-sidebar .toc li { margin: 0; padding: 0; font-size: .8125rem; line-height: 1.5; }
.report-sidebar .toc > li { margin-bottom: .25rem; }
.report-sidebar .toc > li:last-child { margin-bottom: 0; }
.report-sidebar .toc a,
.report-sidebar .toc-section-title { display: block; padding: .375rem .5rem; min-height: 0; border: 0; border-radius: .25rem; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.report-sidebar .toc > li > a,
.report-sidebar .toc-section-title { font-weight: 600; }
.report-sidebar .toc ul { margin: .125rem 0 .375rem .5rem; padding-left: .5rem; border-left: 1px solid var(--pireport-divider); }
.report-sidebar .toc li li { padding: 0; font-weight: 400; }
.report-sidebar .toc li li a { padding: .3125rem .5rem; font-size: .78125rem; font-weight: 400; }
.report-sidebar .toc a i { font-size: .85em; }
.report-sidebar .toc a:hover,
.report-sidebar .toc a:focus-visible { color: var(--pireport-blue); background: var(--pireport-blue-tint, #e9edff); }
.report-sidebar .toc a:focus-visible { outline: 2px solid var(--pireport-blue); outline-offset: 1px; }
@media (pointer: coarse) {
  .report-sidebar .toc a { min-height: 44px; align-content: center; }
}
.report-toc-disclosure > summary { min-height: 44px; padding: .5rem 0; }

/* Restore actual panel insets after legacy .col-* zero-padding utilities. */
.report-main-column .row.sidepadding > .supervisor-box,
.report-main-column .row.sidepadding > .comment-box,
.report-main-column .row.sidepadding > [class*="col-"].attention {
  padding: var(--pireport-panel-padding) !important;
  margin-block: 1.25rem;
}
.report-article .comment-body { font-size: .9375rem; line-height: 1.85; }
.report-article .supervisor-box > .row:last-child { margin-bottom: 0; }
.report-article .supervisor-box p:last-child { margin-bottom: 0; }
.report-main-column .report-promo-banner { max-width: 48rem; margin: 1.25rem 0; }
.report-main-column .report-promo-banner img { display: block; max-width: 100%; height: auto; border-radius: 0 !important; }
.report-main-column .serviceinfo-img { object-fit: contain; }
.report-main-column .serviceinfo-panel { padding: 1rem; gap: .75rem; }
.report-main-column .serviceinfo-panel .serviceinfo-img { padding: 0; margin: 0; flex-shrink: 0; }
.report-article .trend-chart-panel, .report-article .chart-data-table { border-radius: 0; box-shadow: none; }
.report-article .trend-chart-controls { flex-wrap: wrap; gap: .5rem; }
.report-article .trend-chart-controls .btn,
.report-article .trend-chart-controls select,
.report-article .dropdown-item { min-height: 44px; font-size: .875rem; }
.report-article .trend-chart-mode, .report-article .trend-chart-export { min-width: 0; max-width: 100%; }
.report-article .trend-chart-controls .btn { white-space: normal; text-align: left; }
.report-article .trend-chart-message { width: 90%; white-space: normal; text-align: center; }
.report-article .chart-data-table summary { min-height: 44px; line-height: 1.7; }
.report-article .trend-chart-stage { overscroll-behavior-x: contain; }

.index-hero { margin-top: 1.5rem; }
.index-hero-copy { padding: 2rem var(--pireport-panel-padding) 1.25rem; }
.index-hero-copy h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.55; }
.index-hero-copy p { font-size: .9375rem; line-height: 1.85; }
.index-hero .search-top { padding: 0 var(--pireport-panel-padding) 2rem; z-index: auto; }
.index-hero .search-top form { box-shadow: none; border: 1px solid var(--pireport-divider); border-bottom: 2px solid var(--pireport-blue); }
.index-hero .search-top input[type="search"],
.index-hero .search-top form .search-select,
.index-hero .search-top form .btn { height: 48px !important; min-height: 48px !important; font-size: 1rem; }
.index-hero .search-top form .btn { width: 48px !important; }
.index-hero .search-top form .search-select { width: 4.5rem; }
.index-hero .search-top input[type="search"] { min-width: 0; padding-inline: .75rem; }
.index-hero .search-top form table { width: 100%; }
.index-hero .carousel { min-height: 0; }
.index-hero .carousel-inner img { border-radius: 0 !important; }
.index-directory { padding: 2rem var(--pireport-panel-padding); }
.index-directory > .row { --bs-gutter-x: 0; column-gap: 1.5rem; }
.index-directory-intro { max-width: none; }
.index-directory-intro p { font-size: .9375rem; line-height: 1.8; }
.index-directory .index-report-nav { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index-directory .index-report-nav .btn { min-height: 48px; font-size: .875rem; gap: .5rem; }
.index-directory .index-report-nav .btn span { flex-basis: 1.5rem; font-size: .75rem; }
.index-directory .a-section { padding-top: 1.5rem !important; min-width: 0; }
.index-directory .a-section .line-heading { margin-top: 0; font-size: 1.125rem; line-height: 1.6; }
.index-directory table { font-size: .875rem; line-height: 1.65; }
.index-directory table td, .index-directory table th { padding: .75rem .5rem; }
.index-directory table td:first-child { overflow-wrap: anywhere; }
.index-directory table th:not(:first-child) { text-align: right !important; }
.index-directory table td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.index-directory .a-section .btn { min-height: 44px; white-space: normal; text-align: left; }
.sf_footer { margin-top: 2rem; padding-inline: var(--pireport-page-gutter); font-size: .875rem; line-height: 1.8; }
.sf_footer .blog-sidebar ul.category li a { min-height: 44px; }

@media (min-width: 768px) {
  :root { --pireport-page-gutter: 1.5rem; --pireport-panel-padding: 1.5rem; --pireport-section-gap: 2.5rem; }
  .index-directory .index-report-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-directory > .row > .a-section { width: calc(50% - .75rem); }
}
@media (min-width: 1200px) {
  :root { --pireport-panel-padding: 2rem; --pireport-section-gap: 3rem; }
  .sf_header .header-search { flex: 0 1 24rem; }
  .sf_header .header-search .form-control, .sf_header .header-search .btn { font-size: .875rem; }
  .report-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
  .index-hero-copy { padding-top: 2.5rem; }
}
@media (max-width: 1199.98px) {
  .report-sidebar { top: auto; max-height: none; padding: .5rem var(--pireport-panel-padding); }
  .report-toc-disclosure[open] > summary { margin-bottom: .75rem; }
  .sf_header .navbar-collapse { max-height: calc(100dvh - var(--pireport-header-height)); overflow-y: auto; }
  .index-hero > .row > [class*="col-"] { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .index-hero-copy h1 br { display: none; }
}
@media (max-width: 767.98px) {
  .report-article, .index-redesign { width: 100%; }
  .index-hero { margin-top: 0; }
  .index-hero .carousel { height: auto; aspect-ratio: 16 / 9; max-height: 20rem; }
  .index-hero .carousel-inner, .index-hero .carousel-item, .index-hero .carousel-item > a { height: 100%; }
  .report-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .report-kpis { grid-template-columns: minmax(0, 1fr); }
  .report-kpi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .5rem .75rem; align-items: center; padding: .875rem .5rem; }
  .report-kpi-label { margin: 0; }
  .report-kpi-meta { grid-column: 1 / -1; margin: 0; }
  .report-kpi-value { font-size: 1.5rem; }
  .report-article table.table > :not(caption) > * > * { padding: .65rem .5rem; }
  .report-article .trend-chart-panel { padding-inline: 0; }
  .report-main-column .row { margin-bottom: 1rem; }
  .report-article .comment-box > .row.mobile-topmargin { padding-left: 0; }
  .index-directory { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item { transition: none !important; }
}

/* Count comparisons retain a semantic numeric table and need no chart library. */
.count-bar-table th:first-child { width: 42% !important; }
.count-bar-table th:nth-child(2) { width: 58% !important; text-align: right !important; }
.count-bar-cell { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.count-bar-track { display: block; flex: 1; height: .5rem; background: #edf0f5; min-width: 1rem; }
.count-bar-track > span { display: block; height: 100%; background: #9dbaf0; }
.count-bar-table tbody tr:first-child .count-bar-track > span { background: var(--pireport-blue); }
.count-bar-number { min-width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.supervisor-comment-details { margin-top: .5rem; }
.supervisor-comment-details > summary { color: var(--pireport-blue); min-height: 44px; padding: .5rem 0; cursor: pointer; }
.report-article .supervisor-comment-details .row.mobile-topmargin { padding: 0; margin: .75rem 0 0 !important; }
.report-supervisors { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--pireport-divider); }
.report-supervisors .description { font-size: .875rem; line-height: 1.85; }
.summaria-ad { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--pireport-divider); }
.summaria-ad-label { display: block; font-size: .6875rem; color: #596473; letter-spacing: .08em; margin-bottom: .5rem; }
.summaria-ad a { display: block; text-decoration: none; }
.summaria-ad img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 232; object-fit: contain; }
.summaria-ad picture { display: block; }
@media (max-width: 767.98px) {
  .summaria-ad picture img { aspect-ratio: 6 / 5; }
}
.summaria-ad-copy, .summaria-ad-description { display: block; margin-top: .75rem; font-size: .8125rem; line-height: 1.7; }
.summaria-ad-copy { color: var(--pireport-text); font-weight: 700; }
.summaria-ad-description { color: #596473; }
.summaria-ad-cta { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 48px; margin-top: .75rem; padding: .75rem; border: 0; background: transparent; font-size: .9375rem; font-weight: 700; line-height: 1.7; }
.summaria-ad a:hover .summaria-ad-cta { text-decoration: underline; }
.summaria-sidebar-ad { width: 300px; max-width: 100%; margin-inline: auto; }
.summaria-sidebar-ad img { aspect-ratio: 6 / 5; }
@media (max-width: 1199.98px) {
  .summaria-sidebar-ad { display: none; }
}
.summaria-inline-slot { display: block; width: 100%; padding-inline: 0; }
.summaria-inline-slot .summaria-ad { width: 100%; max-width: none; margin: 1.25rem 0; padding: .5rem; border: 1px solid var(--pireport-divider); }
@media (max-width: 575.98px) {
  .count-bar-cell { flex-direction: column-reverse; align-items: stretch; gap: .5rem; }
  .count-bar-track { flex: none; height: .375rem; }
  .count-bar-number { min-width: 0; }
  .count-bar-table th:first-child { width: 60% !important; }
  .count-bar-table th:nth-child(2) { width: 40% !important; }
}
.supervisor-bio > summary { min-height: 44px; padding-block: .5rem; cursor: pointer; color: var(--pireport-blue); font-size: .875rem; }
.supervisor-bio[open] > summary { margin-bottom: .5rem; }

/* Share the description and table rows across the two summary columns. */
@media (min-width: 768px) {
  .report-summary-grid { align-items: stretch; }
  .report-summary-block > table { margin-top: auto; }
  @supports (grid-template-rows: subgrid) {
    .report-summary-grid { grid-template-rows: auto auto; row-gap: .55rem; }
    .report-summary-block {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
    .report-summary-block > table { margin-top: 0; align-self: stretch; }
  }
}

/* Compact expert notes with a readable preview before disclosure. */
.report-main-column .row.sidepadding > .comment-box {
  padding: 1rem 1.25rem !important;
  margin-block: 1rem;
}
.report-article .comment-box > .row.toppadding { padding: 0 !important; margin: 0 0 .625rem !important; column-gap: .75rem; }
.report-article .comment-box .comment-title { font-size: .75rem; margin: 0 0 .125rem; }
.report-article .comment-box .comment-name { font-size: .9375rem; margin: 0; }
.report-article .supervisor-comment-bio { font-size: .8125rem; line-height: 1.65; margin: 0 0 .75rem; color: var(--pireport-muted); }
.report-article .supervisor-reading-title { font-size: .875rem; font-weight: 600; margin: .5rem 0 .375rem; }
.report-article .supervisor-comment-preview { margin: 0; line-height: 1.75; }
.report-article .supervisor-comment-details { margin-top: .125rem; }
.report-article .supervisor-comment-details > summary { font-size: .8125rem; padding-block: .5rem; }
.report-article .supervisor-comment-details .row.mobile-topmargin { margin-top: .25rem !important; }
.report-supervisors .supervisor-bio-preview { margin: .5rem 0 .25rem; }
@media (max-width: 575.98px) {
  .report-main-column .row.sidepadding > .comment-box { padding: .875rem 1rem !important; }
}

.summaria-ad .summaria-product-title { margin: 0 0 .5rem; font-size: 1rem; }
.summaria-ad .summaria-product-description { max-width: none; margin: 0 0 .75rem; font-size: .9375rem; }
