/* One content-header system for Profile, Report, Technicals and News.
 * Source dates retain their meaning; geometry and type roles are shared. */
html body.reading #report-content.report-content .tr-section-header {
  --section-ink: var(--tr-reading-text, var(--tr-ink, #edf2f6));
  --section-muted: var(--tr-reading-muted, #a0aeb8);
  --section-accent: var(--tr-reading-accent, #93bbd0);
  --section-line: var(--tr-reading-line, #26333d);
  position: static; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  width: 100%; margin: 0 0 24px; padding: 0;
  border: 0; border-radius: 0;
  background: transparent; box-shadow: none; text-align: left;
}
html body.reading #report-content.report-content .tr-section-header,
html body.reading #report-content.report-content .tr-section-header * { box-sizing: border-box; }
html body.reading #report-content.report-content .tr-section-header__meta {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; min-width: 0; margin-bottom: 4px;
}
html body.reading #report-content.report-content .tr-section-header p.tr-section-header__eyebrow {
  margin: 2px 0 0 !important; padding: 0 !important; color: var(--section-muted) !important;
  font: 500 var(--tr-type-caption-size, 10px)/16px var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
}
html body.reading #report-content.report-content .tr-section-header h1.tr-section-header__title {
  grid-column: 1 / -1; grid-row: 2; min-width: 0;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  color: var(--section-ink) !important;
  font: var(--tr-type-heading-weight, 600) var(--tr-type-page-size, 28px)/1.2 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: -.02em !important; text-transform: none !important; text-align: left !important;
  text-wrap: balance;
}
html body.reading #report-content.report-content .tr-section-header:has(.tr-section-header__action) h1.tr-section-header__title {
  grid-column: 1;
}
html body.reading #report-content.report-content .tr-section-header p.tr-section-header__description {
  grid-column: 1 / -1; grid-row: 3;
  max-width: 72ch; margin: 0 !important; padding: 0 !important;
  color: var(--section-muted) !important;
  font: var(--tr-type-body-weight, 400) var(--tr-type-body-size, 14px)/1.5 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: 0 !important; text-transform: none !important; text-align: left !important;
}
html body.reading #report-content.report-content .tr-section-header p.tr-section-header__date {
  margin: 0 !important; padding: 0 !important; color: var(--section-muted) !important;
  font: var(--tr-type-body-weight, 400) var(--tr-type-meta-size, 12px)/1.5 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: 0 !important; text-transform: none !important; text-align: left !important;
}
html body.reading #report-content.report-content .tr-section-header__action {
  grid-column: 2; grid-row: 2; justify-self: end;
  display: flex; align-items: center; justify-content: flex-end; height: 28px;
}
/* The action's 44px target extends into the clear gutters around the title. */
html body.reading #report-content.report-content .tr-section-header .tr-section-header__action button {
  appearance: none; position: static; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; flex: 0 0 auto; width: auto; height: 44px; min-width: 44px; min-height: 44px;
  margin: -8px 0; padding: 0; border: 0; border-radius: 2px; background: transparent; box-shadow: none;
  color: var(--section-accent);
  font: var(--tr-type-label-weight, 500) var(--tr-type-meta-size, 12px)/18px var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif);
  letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer;
}
html body.reading #report-content.report-content .tr-section-header__action button > svg {
  display: block; width: 16px; height: 16px; flex: 0 0 16px; margin: 0;
}
html body.reading #report-content.report-content .tr-section-header__action button:hover:not(:disabled) {
  background: transparent; text-decoration: underline; text-underline-offset: 3px;
}
html body.reading #report-content.report-content .tr-section-header__action button:focus-visible {
  outline: 2px solid var(--section-accent) !important; outline-offset: 3px;
}

html body.reading #report-content.report-content .tr-technical-observation { margin: 0 0 24px !important; }

/* Match the reading grid at each tab entry; the shared header precedes subviews. */
html body.reading #report-content.report-content .tr-tab-header-frame {
  box-sizing: border-box; width: min(var(--tr-reader-max-width, 1120px), 100%); margin: 0 auto;
  padding: 24px var(--tr-reader-gutter, clamp(16px, 3.5vw, 44px)) 0;
}
html body.reading #report-content.report-content .tr-stock-news { padding-top: 24px; }
html body.reading:not(.stock-profile-mode):not(.technical-mode) #report-content.report-content.tr-report-has-section-header {
  box-sizing: border-box; width: min(var(--tr-reader-max-width, 1120px), 100%) !important; max-width: var(--tr-reader-max-width, 1120px) !important;
  margin: 0 auto !important; padding: 24px var(--tr-reader-gutter, clamp(16px, 3.5vw, 44px)) 80px !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
/* A saved research document keeps its own company title and analytical brief.
 * The research category/date are provenance, not a generic replacement title. */
html body.reading #report-content.report-content .tr-report-document-header {
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
html body.reading #report-content.report-content .tr-report-document-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; margin: 0 0 12px; padding: 0;
}
html body.reading #report-content.report-content .tr-report-document-meta p,
html body.reading #report-content.report-content .tr-report-publisher p {
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  font-family: var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
}
/* Publisher identity shares the reader's theme and established type roles. */
html body.reading #report-content.report-content .tr-report-publisher {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
  color: var(--tr-reading-muted, #a0aeb8);
}
html body.reading #report-content.report-content .tr-report-publisher-mark {
  display: block; position: relative; flex: 0 0 16px; width: 16px; height: 16px;
  color: inherit;
}
html body.reading #report-content.report-content svg.tr-report-publisher-logo {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; fill: currentColor;
}
html body.reading #report-content.report-content .tr-report-publisher-registered {
  position: absolute; top: -2px; right: -5px; color: inherit;
  font: 400 6px/1 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif);
  letter-spacing: 0; text-transform: none;
}
html body.reading #report-content.report-content .tr-report-publisher-copy { min-width: 0; }
html body.reading #report-content.report-content p.tr-report-publisher-name {
  color: var(--tr-reading-muted, #a0aeb8) !important;
  font-size: var(--tr-type-meta-size, 12px) !important; font-weight: var(--tr-type-label-weight, 500) !important;
  line-height: var(--tr-type-meta-line, 16px) !important; letter-spacing: 0 !important; text-transform: none !important;
}
html body.reading #report-content.report-content .tr-report-publisher-copy p.tr-report-document-eyebrow {
  margin-top: 2px !important;
}
/* The selected tab already names the category; retain one quiet publisher line. */
html body.reading #report-content.report-content .tr-report-publisher-copy p.tr-report-document-eyebrow {
  display: none !important;
}
html body.reading #report-content.report-content p.tr-report-document-eyebrow {
  color: var(--tr-reading-muted, #a0aeb8) !important;
  font-size: var(--tr-type-caption-size, 10px) !important; font-weight: 500 !important;
  line-height: 16px !important; letter-spacing: .06em !important; text-transform: uppercase !important;
}
html body.reading #report-content.report-content p.tr-report-document-date {
  color: var(--tr-reading-muted, #a0aeb8) !important;
  font-size: var(--tr-type-meta-size, 12px) !important; font-weight: 400 !important;
  line-height: 18px !important; letter-spacing: 0 !important; text-transform: none !important;
}
html body.reading #report-content.report-content .tr-report-document-header :is(.tr-report-title-row, .tr-report-v4__title-row) {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important; margin: 0 !important; padding: 0 !important;
}
html body.reading #report-content.report-content .tr-report-document-header h1 {
  display: block !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; color: var(--tr-reading-text, #edf2f6) !important;
  font: 600 var(--tr-type-page-size, 28px)/1.2 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: -.02em !important; text-transform: none !important; text-align: left !important;
  text-wrap: balance;
}
html body.reading #report-content.report-content .tr-report-document-header :is(.tr-report-brief, .tr-report-v4__brief) {
  max-width: 72ch; margin: 0 !important; padding: 0 !important; border: 0 !important;
  color: var(--tr-reading-text, #edf2f6) !important;
  font: 400 var(--tr-type-body-size, 14px)/1.65 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
html body.reading #report-content.report-content .tr-report-document-header .tr-report-v4__brief { margin-top: 8px !important; }
html body.reading #report-content.report-content .tr-report-document-header .tr-report-v4__as-of {
  margin: 8px 0 0 !important; color: var(--tr-reading-muted, #a0aeb8) !important;
  font: 400 12px/1.5 var(--tr-type-family, "IBM Plex Sans", system-ui, sans-serif) !important;
}
/* Retain ticker nodes for the saved-report identity check; masthead supplies its visible ticker. */
html body.reading #report-content.report-content .tr-report-document-header :is(.tr-report-kicker, .tr-report-v4__brand, .tr-report-v4__date, .tr-report-v4__symbol, .tr-report-title-row h1 span) { display: none !important; }
html body.reading #report-content.report-content .tr-report-document-header :is(.tr-report-brief, .tr-report-v4__brief):empty { display: none; }

@media (max-width: 700px) {
  html body.reading #report-content.report-content .tr-section-header {
    column-gap: 16px; margin-bottom: 20px;
  }
}
/* Quiet phone actions keep their full accessible names and 44px targets. */
@media (max-width: 600px) {
  html body.reading #report-content.report-content .tr-section-header__action { height: 44px; }
  html body.reading #report-content.report-content .tr-section-header .tr-section-header__action button {
    position: relative; width: 44px; margin: 0; gap: 0;
  }
  html body.reading #report-content.report-content .tr-section-header__action button > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
}
@media (max-width: 640px) {
  html body.reading #report-content.report-content .tr-tab-header-frame,
  html body.reading #report-content.report-content .tr-stock-news { padding-top: 20px; }
  html body.reading:not(.stock-profile-mode):not(.technical-mode) #report-content.report-content.tr-report-has-section-header { padding-top: 20px !important; }
}
