/* Section 03 localization-only semantic additions. */

/*
 * The final EN/KZ oil-and-gas IDML marks a large set of ordinary body runs
 * with the Notes superscript character style.  The generator changes those
 * explicitly classified body carriers to spans while retaining exact source
 * provenance.  True m²/m³ exponents and numeric footnote references do not
 * receive this class.
 */
.oil-gas-report .localization-body-superscript-normalized {
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.about-fund-opener__contents-label {
  margin: 28px 0 0;
  color: var(--samruk-blue);
  font-family: var(--font-ui-navigation);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.about-fund-opener__contents-label + .about-fund-opener__links {
  margin-top: 18px;
}

.about-fund-opener__content--long-menu-test .about-fund-opener__links > :is(a, .about-fund-opener__link) {
  white-space: pre-wrap;
}

.about-fund-opener__content--long-menu-test .about-fund-opener__link--split {
  grid-template-columns: 18px minmax(0, 1fr);
  width: 100%;
}

.about-fund-opener__split-links {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.about-fund-opener__content--long-menu-test .about-fund-opener__links .about-fund-opener__link--split .about-fund-opener__split-links > a {
  display: block;
  grid-template-columns: none;
  gap: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: pre-wrap;
}

.about-fund-opener__content--long-menu-test .about-fund-opener__links .about-fund-opener__link--split .about-fund-opener__split-links > a::before {
  content: none;
  display: none;
}

.source-line-separator {
  display: none;
}

.custom-section03-energy-kpi-stack {
  display: grid;
  gap: clamp(34px, 3vw, 52px);
  align-content: start;
  justify-self: start;
  width: min(100%, var(--operations-kpi-width));
}

.custom-section03-kpi {
  width: 100%;
}

.custom-section03-kpi__value {
  flex: 0 0 auto;
  font-family: var(--font-report-din-cond);
  font-size: var(--type-resource-kpi-value-size);
  font-weight: 500;
  line-height: var(--type-resource-kpi-value-leading);
  letter-spacing: -0.01em;
  white-space: pre-wrap;
}

.custom-section03-brokerage-layout > .custom-section03-kpi {
  grid-column: 1;
}

.custom-section03-brokerage-layout > .information-prose {
  grid-column: 2;
}

.operations-data-table--five.operations-data-table--story-order-header thead {
  display: table-header-group;
}

.operations-data-table--five.operations-data-table--story-order-header thead > tr {
  display: table-row;
}

.operations-data-table--five.operations-data-table--story-order-header thead > tr:first-child > .operations-story-order-header__cell {
  box-sizing: border-box;
  width: auto;
  padding: 0;
  color: var(--samruk-report-black);
  text-align: left;
  white-space: normal;
}

.operations-story-order-header__grid {
  display: grid;
  grid-template-columns: 32% repeat(4, 17%);
  width: 100%;
  align-items: end;
}

.operations-story-order-header__grid-row {
  display: contents;
}

.operations-story-order-header__item {
  box-sizing: border-box;
  min-width: 0;
  padding: 0 var(--type-report-table-cell-inline) var(--type-report-table-head-bottom);
  color: var(--samruk-report-black);
  font-weight: 700;
  line-height: var(--type-report-table-leading);
  text-align: right;
  white-space: pre-line;
}

.operations-story-order-header__plan-group {
  grid-column: 2 / span 2;
  grid-row: 1;
  color: var(--samruk-report-black);
  text-align: center;
  white-space: nowrap;
}

.operations-story-order-header__deviation-group {
  grid-column: 4 / span 2;
  grid-row: 1;
  color: var(--samruk-bronze);
  text-align: center;
  white-space: nowrap;
}

.operations-story-order-header__label {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: end;
  color: var(--samruk-report-black);
  text-align: left;
}

.operations-story-order-header__plan-value {
  grid-column: 2;
  grid-row: 2;
}

.operations-data-table--story-order-header .operations-story-order-header__actual {
  grid-column: 3;
  grid-row: 2;
}

.operations-data-table--story-order-header .operations-story-order-header__delta {
  grid-column: 4;
  grid-row: 2;
  color: var(--samruk-bronze);
}

.operations-data-table--story-order-header .operations-story-order-header__performance {
  grid-column: 5;
  grid-row: 2;
  color: var(--samruk-bronze);
}

/* QazaqGaz production plan: match the approved KZ report table. */
.operations-data-table--reference-layout .operations-story-order-header__grid {
  grid-template-columns: 26% 17% 17% 20% 20%;
  grid-template-rows: auto auto auto;
}

.operations-data-table--reference-layout col:nth-child(1) {
  width: 26%;
}

.operations-data-table--reference-layout col:nth-child(2),
.operations-data-table--reference-layout col:nth-child(3) {
  width: 17%;
}

.operations-data-table--reference-layout col:nth-child(4),
.operations-data-table--reference-layout col:nth-child(5) {
  width: 20%;
}

.operations-data-table--reference-layout .operations-story-order-header__divider {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  margin: 5px 0 9px;
}

.operations-data-table--reference-layout .operations-story-order-header__label,
.operations-data-table--reference-layout .operations-story-order-header__plan-value,
.operations-data-table--reference-layout .operations-story-order-header__actual,
.operations-data-table--reference-layout .operations-story-order-header__delta,
.operations-data-table--reference-layout .operations-story-order-header__performance {
  grid-row: 3;
}

.operations-data-table--reference-layout .operations-story-order-header__delta,
.operations-data-table--reference-layout .operations-story-order-header__performance,
.operations-data-table--reference-layout tbody td:nth-last-child(-n + 2) {
  background: color-mix(in srgb, var(--samruk-report-bronze) 9%, white);
}

.operations-data-table--reference-layout .operations-story-order-header__delta,
.operations-data-table--reference-layout .operations-story-order-header__performance {
  padding-top: var(--type-report-table-head-bottom);
}

.production-mining-table--localized-wrap tbody tr:not(.report-data-table__group) > th {
  white-space: normal;
  overflow-wrap: break-word;
}

.information-communication-report .information-data-table--stable {
  table-layout: fixed;
}

.information-data-table--stable .information-data-table__label-column {
  width: 64%;
}

.information-data-table--stable .information-data-table__value-column {
  width: 18%;
}

.information-data-table--stable tbody tr:not(.report-data-table__group) > th {
  white-space: normal;
  overflow-wrap: break-word;
}

.information-data-table--stable thead th:not(:first-child),
.information-data-table--stable tbody td {
  white-space: nowrap;
}

.information-notes--numbered p::before,
.information-communication-report .information-notes--single p::before {
  display: inline-block;
  margin-right: 0.35em;
  font-size: 0.75em;
  line-height: 1;
  vertical-align: super;
}

.information-notes--numbered p::before {
  content: attr(data-note-number);
}

.information-communication-report .information-notes--single p::before {
  content: "31";
}

.social-construction-results-table--localized {
  table-layout: fixed;
}

.social-construction-results-table--localized .social-construction-table__label-column {
  width: 68%;
}

.social-construction-results-table--localized .social-construction-table__value-column {
  width: 16%;
}

.social-construction-results-table--localized tbody tr:not(.report-data-table__group) > th,
.social-construction-results-table--localized .report-data-table__group > th {
  white-space: normal;
  overflow-wrap: break-word;
}

.social-construction-results-table--localized thead th:not(:first-child),
.social-construction-results-table--localized tbody td {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .custom-section03-energy-kpi-stack {
    width: min(100%, 560px);
  }
}

@media (max-width: 760px) {
  .custom-section03-brokerage-layout > .custom-section03-kpi,
  .custom-section03-brokerage-layout > .information-prose {
    grid-column: 1;
  }

  .custom-section03-kpi__value {
    font-size: calc(var(--type-resource-kpi-value-size) * 0.8);
  }
}
