/**
 * Ecosystem profile density (company + product).
 *
 * - 901px+: legacy company-only spacing/grid tweaks (product uses body.page-product guard).
 * - 1200px+: shared editorial scale for main.ecosystem-profile-page — typography + rhythm
 *   (no zoom, no transform: scale, no global root font shrink).
 */

@media (min-width: 901px) {
    /* .profile padding stays base page CSS (32px 20px 40px) to match ecosystem-product.html */

    /* ── Header band: vertical rhythm only (type = base profile CSS) ── */
    body:not(.page-product) .profile .profile__header {
        margin-bottom: 26px;
    }

    body:not(.page-product) .profile .profile__header .title {
        margin-bottom: 24px;
    }

    body:not(.page-product) .profile .title {
        margin-bottom: 22px;
    }

    body:not(.page-product) .profile .kicker,
    body:not(.page-product) .kicker {
        margin-bottom: 16px;
    }

    /* ── Meta / grid top ── */
    body:not(.page-product) .profile .profile__grid {
        padding-top: 15px;
    }

    body:not(.page-product) .profile .profile__meta-row {
        padding-bottom: 17px;
    }

    /* ── Section rhythm ── */
    body:not(.page-product) .profile .section {
        margin-top: 36px;
    }

    body:not(.page-product) .profile .section-inner {
        padding-top: 17px;
    }

    body:not(.page-product) .profile .sectionBlock {
        margin-top: 22px;
    }

    body:not(.page-product) .profile .section-editorial .section-inner {
        padding-top: 17px;
    }

    body:not(.page-product) .profile #editorial-and-media-wrap .section-editorial .section-inner {
        padding-top: 17px;
    }

    /* ── Tabs: spacing only; labels keep var(--korthos-header-*) from page CSS ── */
    body:not(.page-product) .profile .bandHeader {
        margin-bottom: 22px;
    }

    body:not(.page-product) .profile .rightSwitcher {
        margin-bottom: 28px;
    }

    /* All tabs grow naturally — no fixed pane height. */

    /* ── Price + chart band: padding / gap only ── */
    body:not(.page-product) .price-summary {
        margin: 17px 0 22px;
        padding: 17px;
    }

    body:not(.page-product) .price-main {
        margin-bottom: 8px;
    }

    body:not(.page-product) .profile .profile__chart-module.section-chart > .section-inner {
        padding-top: 20px;
    }

    body:not(.page-product) .profile .profile__chart-module .chart-top {
        padding: 8px 0 2px;
    }

    body:not(.page-product) .profile .profile__chart-module .company-chart-header {
        gap: 15px 18px;
    }

    /* ── Flagship / media (company): less vertical footprint ── */
    body:not(.page-product) .profile .section-media .section-inner {
        padding-top: 20px;
        margin-top: 38px;
    }

    body:not(.page-product) .profile .editorial-and-media-wrap.public-layout .profile-hero-media-band .section-media .section-inner,
    body:not(.page-product) .profile .editorial-and-media-wrap.private-layout .profile-hero-media-band .section-media .section-inner {
        padding-top: 0;
        margin-top: 0;
    }

    /* Flagship (company): large anchor slot — sync with ecosystem-company.html (--profile-hero-wide-*). */
    body:not(.page-product) .profile .section-media #profile-flagship-figure.figurePlate .figureMedia.profile-hero-figure--wide {
        max-height: var(--profile-hero-wide-max-h, min(600px, 72vh));
        min-height: var(--profile-hero-wide-min-h, 240px);
    }
    body:not(.page-product) .profile .section-media #profile-flagship-figure.figurePlate .figureMedia.profile-hero-figure--object {
        max-height: min(420px, 75vw);
        min-height: 200px;
    }

    /* ── Trajectory: module spacing + chart lane only ── */
    body:not(.page-product) .profile .company-trajectory.sectionBlock {
        margin-top: 24px;
        padding-top: 16px;
        padding-bottom: 8px;
    }

    body:not(.page-product) .profile .company-trajectory .block__title {
        margin-bottom: 10px;
    }

    body:not(.page-product) .profile .company-trajectory__cadence {
        padding: 9px 0 16px;
    }

    body:not(.page-product) .profile .company-trajectory__bars-row {
        min-height: 78px;
        padding-bottom: 9px;
    }

    body:not(.page-product) .profile .company-trajectory__summary-block {
        margin: 12px 0 0;
    }

    /* ── Two-column grids (narrower media column = less dominant image rail) ── */
    body:not(.page-product) .profile .main-grid,
    body:not(.page-product) .profile .profile__secondary,
    body:not(.page-product) .profile .profileGrid {
        gap: 30px;
        grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    }

    body:not(.page-product) .profile .main-grid .left,
    body:not(.page-product) .profile .profileGrid .leftCol,
    body:not(.page-product) .profile .profileGrid .profileGrid__media {
        max-width: 360px;
    }

    /* Private / public hero wrap: flagship + editorial band ── */
    body:not(.page-product) .editorial-and-media-wrap.private-layout,
    body:not(.page-product) .editorial-and-media-wrap.public-layout {
        gap: 15px;
    }

    body:not(.page-product) .editorial-and-media-wrap.private-layout .bandHeader,
    body:not(.page-product) .editorial-and-media-wrap.public-layout .bandHeader {
        margin-bottom: 15px;
    }

    body:not(.page-product) .profile .comparable-systems {
        margin-top: 26px;
        padding-top: 0;
        border-top: 0;
    }

    body:not(.page-product) .profile .comparable-systems__grid {
        gap: 18px;
    }

    body:not(.page-product) .profile .profile__meta-row .meta__row {
        grid-template-columns: minmax(140px, 30%) 1fr;
        gap: 6px 14px;
    }

    body:not(.page-product) .profile .profile__meta-row .meta-snapshot-facts .meta__row,
    body:not(.page-product) .profile .profile__meta-row .meta__row.company-meta {
        grid-template-columns: 160px minmax(0, 1fr);
        column-gap: 12px;
    }

    body:not(.page-product) .profile .profile__events {
        padding-bottom: 40px !important;
    }

    body:not(.page-product) .profile .profile__events.sectionBlock {
        margin-top: 22px;
        padding-top: 16px;
    }

    body:not(.page-product) .profile .profile__events .block__title {
        margin-bottom: 12px;
    }

    body:not(.page-product) .profile .profile__rule {
        margin: 36px 0 18px;
    }

    body:not(.page-product) .profile .from-the-record.sectionBlock {
        margin-top: 22px;
        padding-top: 16px;
        padding-bottom: 28px;
    }

    body:not(.page-product) .profile .from-the-record .block__title {
        margin-bottom: 12px;
    }
}

/* ── Shared profile pages (company + product): full desktop editorial scale ────
 * Scoped to main.ecosystem-profile-page only; nav/footer/mobile unchanged.
 * Token overrides cascade to descendants; layout rules use main…profile to win
 * over the legacy 901px company block at ≥1200px.
 * -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    main.ecosystem-profile-page {
        /* Rail / tab / block titles (topnav grammar, profile-local override) */
        --korthos-header-size: clamp(13px, 0.98vw, 16px);
        --korthos-header-tracking: 0.036em;
        --korthos-header-line-height: 1.14;
        /* Micro labels, chart rails, .sectionTitle on product */
        --t-size: 10.25px;
        --t-height: 1.44;
        --profile-display-rail: clamp(13px, 1vw, 17px);
        /* Shell + section rhythm (~12% tighter than base) */
        --ep-pad-y: 28px;
        --ep-pad-x: 18px;
        --ep-pad-y-bottom: 34px;
        --ep-section-mt: 32px;
        --ep-section-inner-pt: 15px;
        --ep-block-mb: 24px;
        --ep-section-block-mt: 20px;
    }

    /* ── Page shell ── */
    main.ecosystem-profile-page.profile {
        padding: var(--ep-pad-y) var(--ep-pad-x) var(--ep-pad-y-bottom);
    }

    /* ── Global section rhythm (whole template) ── */
    main.ecosystem-profile-page.profile .section {
        margin-top: var(--ep-section-mt);
    }

    main.ecosystem-profile-page.profile .section-inner {
        padding-top: var(--ep-section-inner-pt);
    }

    main.ecosystem-profile-page.profile .sectionBlock {
        margin-top: var(--ep-section-block-mt);
    }

    main.ecosystem-profile-page.profile .section-editorial .section-inner,
    main.ecosystem-profile-page.profile #editorial-and-media-wrap .section-editorial .section-inner {
        padding-top: var(--ep-section-inner-pt);
    }

    main.ecosystem-profile-page.profile .section-chart .section-inner {
        padding-top: 14px;
    }

    main.ecosystem-profile-page.profile .profile__chart-module.section-chart > .section-inner {
        padding-top: 17px;
    }

    /* ── Title band ── */
    main.ecosystem-profile-page .title {
        font-size: clamp(44px, 5.15vw, 76px);
    }

    main.ecosystem-profile-page .profile__header {
        margin-bottom: 20px;
    }

    main.ecosystem-profile-page .profile__header .title {
        margin-bottom: 22px;
    }

    /* ── Top meta grid ── */
    main.ecosystem-profile-page .profile__grid {
        padding-top: 18px;
    }

    main.ecosystem-profile-page .profile__meta-row {
        padding-bottom: 20px;
    }

    main.ecosystem-profile-page .profile__meta-row .meta__row {
        gap: 6px 16px;
    }

    main.ecosystem-profile-page .profile__meta-row .meta-snapshot-facts .meta__row,
    main.ecosystem-profile-page .profile__meta-row .meta__row.company-meta {
        grid-template-columns: 160px minmax(0, 1fr);
        column-gap: 12px;
    }

    @media (max-width: 600px) {
        body:not(.page-product) .profile .profile__meta-row .meta-snapshot-facts .meta__row,
        body:not(.page-product) .profile .profile__meta-row .meta__row.company-meta,
        main.ecosystem-profile-page .profile__meta-row .meta-snapshot-facts .meta__row,
        main.ecosystem-profile-page .profile__meta-row .meta__row.company-meta {
            grid-template-columns: 104px minmax(0, 1fr);
            column-gap: 8px;
        }
    }

    main.ecosystem-profile-page .profile__meta-row .meta__key {
        font-size: clamp(13px, 0.98vw, 16px);
    }

    main.ecosystem-profile-page .profile__meta-row .meta__val {
        font-size: 13.5px;
        line-height: 1.4;
    }

    /* ── Price + chart (company) ── */
    main.ecosystem-profile-page .price-summary {
        margin: 14px 0 18px;
        padding: 14px;
    }

    main.ecosystem-profile-page .price-main {
        font-size: 28px;
        margin-bottom: 6px;
    }

    main.ecosystem-profile-page .profile__chart-module .chart-top {
        padding: 6px 0 2px;
    }

    main.ecosystem-profile-page .profile__chart-module .company-chart-header {
        gap: 12px 14px;
    }

    /* ── Hero / media → content whitespace ── */
    main.ecosystem-profile-page.profile .section-media .section-inner {
        padding-top: 16px;
        margin-top: 32px;
    }

    main.ecosystem-profile-page.profile .editorial-and-media-wrap.public-layout .profile-hero-media-band .section-media .section-inner,
    main.ecosystem-profile-page.profile .editorial-and-media-wrap.private-layout .profile-hero-media-band .section-media .section-inner {
        padding-top: 0;
        margin-top: 0;
    }

    main.ecosystem-profile-page.profile .section-media #profile-flagship-figure.figurePlate .figureMedia.profile-hero-figure--wide {
        max-height: min(540px, 65vh);
        min-height: 216px;
    }

    main.ecosystem-profile-page.profile .section-media #profile-flagship-figure.figurePlate .figureMedia.profile-hero-figure--object {
        max-height: min(380px, 70vw);
        min-height: 176px;
    }

    main.ecosystem-profile-page.profile .product-hero__media .figurePlate .figureMedia {
        max-height: min(360px, 65vw);
        min-height: 194px;
    }

    main.ecosystem-profile-page.profile .product-hero__media .figurePlate .figureMedia.product-hero-media--object-cutout {
        max-height: min(468px, 84vw);
        min-height: 252px;
    }

    main.ecosystem-profile-page .editorial-and-media-wrap.public-layout,
    main.ecosystem-profile-page .editorial-and-media-wrap.private-layout {
        gap: 12px;
    }

    /* Product-stage hero (company): left column aligns with outer .company-profile-hero-layout only — no inner offset */
    main.ecosystem-profile-page .editorial-and-media-wrap.company-product-hero-active .company-product-hero {
        padding-top: 0;
    }

    /* ── Two-column profile band ── */
    main.ecosystem-profile-page .profile-info-band {
        gap: clamp(20px, 3.2vw, 44px);
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.2fr);
        padding-bottom: clamp(16px, 2.4vw, 28px);
    }

    main.ecosystem-profile-page .profile-info-band.product-profile-info-band--overview-only {
        grid-template-columns: 1fr;
    }

    main.ecosystem-profile-page .profile-info-band.product-profile-info-band {
        padding-top: clamp(18px, 2.2vw, 28px);
        padding-bottom: clamp(6px, 1.4vw, 14px);
    }

    /* ── Main lower grids (media + notes, etc.) ── */
    main.ecosystem-profile-page.profile .main-grid,
    main.ecosystem-profile-page.profile .profile__secondary,
    main.ecosystem-profile-page.profile .profileGrid {
        gap: 26px;
        grid-template-columns: minmax(0, min(340px, 36vw)) minmax(0, 1fr);
    }

    main.ecosystem-profile-page.profile .main-grid .left,
    main.ecosystem-profile-page.profile .profileGrid .leftCol,
    main.ecosystem-profile-page.profile .profileGrid .profileGrid__media {
        max-width: 340px;
    }

    /* ── Typography: body, notes, rails ── */
    main.ecosystem-profile-page .notesText,
    main.ecosystem-profile-page .whyText,
    main.ecosystem-profile-page .rightRail .notesText,
    main.ecosystem-profile-page #profile-editorial-col .notesText,
    main.ecosystem-profile-page #profile-editorial-col .whyText,
    main.ecosystem-profile-page #product-editorial-col .notesText,
    main.ecosystem-profile-page .product-profile-info-band .left-col-main .notesText {
        font-size: 15px;
        line-height: 1.54;
    }

    main.ecosystem-profile-page .notesText ul,
    main.ecosystem-profile-page .notesText ol,
    main.ecosystem-profile-page .whyText ul,
    main.ecosystem-profile-page .whyText ol {
        margin: 0.55em 0 0.55em 1.05em;
    }

    main.ecosystem-profile-page .notesText li + li,
    main.ecosystem-profile-page .whyText li + li {
        margin-top: 0.3em;
    }

    main.ecosystem-profile-page .block-content {
        font-size: 13px;
        line-height: 1.56;
    }

    main.ecosystem-profile-page .sectionTitle {
        margin: 14px 0 6px;
    }

    /* ── Blocks + right rail groups ── */
    main.ecosystem-profile-page .block {
        margin-bottom: var(--ep-block-mb);
    }

    main.ecosystem-profile-page.profile .block-title {
        margin-bottom: 8px;
    }

    main.ecosystem-profile-page.profile .block__title {
        margin: 0 0 10px;
    }

    main.ecosystem-profile-page .right-col-financials .rightBlock + .rightBlock {
        padding-top: 19px;
    }

    main.ecosystem-profile-page .right-col-financials .rightBlock.notesBlock + .rightBlock.notesBlock {
        margin-top: 16px;
        padding-top: 16px;
    }

    main.ecosystem-profile-page #profile-editorial-col .profile-overview-col-head,
    main.ecosystem-profile-page .product-profile-info-band .profile-overview-col-head {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    main.ecosystem-profile-page #profile-editorial-col .profile-overview-col-heading,
    main.ecosystem-profile-page .product-profile-info-band .profile-overview-col-heading {
        padding: 2px 0 11px 0;
    }

    /* Notes → Why */
    main.ecosystem-profile-page #profile-editorial-col .notesBlock:has(+ .whyBlock) .block-title,
    main.ecosystem-profile-page #profile-editorial-col .notesBlock:has(+ .whyBlock) + .whyBlock .block-title {
        margin-bottom: 11px;
    }

    main.ecosystem-profile-page #profile-editorial-col .notesBlock:has(+ .whyBlock) .notesText,
    main.ecosystem-profile-page #profile-editorial-col .notesBlock:has(+ .whyBlock) .block-content.notesText {
        margin-bottom: 20px;
    }

    main.ecosystem-profile-page #profile-editorial-col .notesBlock:has(+ .whyBlock) + .whyBlock {
        margin-top: 22px;
    }

    main.ecosystem-profile-page #profile-editorial-col .left-col-main .block.notesBlock {
        padding-bottom: 20px;
    }

    main.ecosystem-profile-page .product-profile-info-band .left-col-main .notesBlock + .notesBlock {
        margin-top: 20px;
    }

    main.ecosystem-profile-page .product-profile-info-band .left-col-main .keySpecsBlock {
        margin-top: 20px;
    }

    /* ── Tabs ── */
    main.ecosystem-profile-page .bandTabs button,
    main.ecosystem-profile-page .rightSwitcher button {
        padding: 2px 20px 11px 0;
    }

    main.ecosystem-profile-page .bandTabs button.active,
    main.ecosystem-profile-page .rightSwitcher button.active {
        padding-bottom: 11px;
    }

    main.ecosystem-profile-page .bandTabs {
        padding-bottom: 10px;
    }

    main.ecosystem-profile-page .bandHeader {
        margin-bottom: 22px;
    }

    main.ecosystem-profile-page .rightSwitcher {
        margin-bottom: 26px;
    }

    main.ecosystem-profile-page #profile-structured-col .profile-hero-info-panel .bandTabs,
    main.ecosystem-profile-page #product-structured-col .profile-hero-info-panel .bandTabs {
        margin: 0 0 14px 0;
        padding: 0 0 10px 0;
        gap: 0 clamp(11px, 1.55vw, 20px);
        row-gap: 3px;
    }

    main.ecosystem-profile-page .profile-hero-info-panel .bandHeader {
        margin-bottom: clamp(10px, 1.4vw, 16px);
    }

    main.ecosystem-profile-page .editorial-and-media-wrap.public-layout .bandHeader,
    main.ecosystem-profile-page .editorial-and-media-wrap.private-layout .bandHeader {
        margin-bottom: 15px;
    }

    main.ecosystem-profile-page .editorial-and-media-wrap.public-layout .section-editorial .section-inner,
    main.ecosystem-profile-page .editorial-and-media-wrap.private-layout .section-editorial .section-inner {
        margin-top: clamp(20px, 3vw, 32px);
        padding-top: clamp(18px, 2.2vw, 22px);
    }

    /* ── Company trajectory + modules ── */
    main.ecosystem-profile-page.profile .company-trajectory.sectionBlock {
        margin-top: 20px;
        padding-top: 14px;
    }

    main.ecosystem-profile-page.profile .profile__events.sectionBlock {
        margin-top: 18px;
        padding-top: 14px;
    }

    main.ecosystem-profile-page #product-events.profile__events.sectionBlock,
    main.ecosystem-profile-page #profile-events.profile__events.sectionBlock {
        margin-top: 26px;
    }

    main.ecosystem-profile-page .profile__events {
        padding-bottom: 44px;
    }

    main.ecosystem-profile-page .profile__events .block__title {
        margin-bottom: 12px;
    }

    main.ecosystem-profile-page .events-table-wrap {
        margin-top: 12px;
    }

    main.ecosystem-profile-page .events-table-scroll {
        max-height: 340px;
    }

    main.ecosystem-profile-page.profile .from-the-record.sectionBlock {
        margin-top: 18px;
        padding-top: 14px;
        padding-bottom: 22px;
    }

    main.ecosystem-profile-page .from-the-record .block__title {
        margin-bottom: 12px;
    }

    main.ecosystem-profile-page .from-the-record__entry + .from-the-record__entry {
        margin-top: 10px;
    }

    main.ecosystem-profile-page .profile__rule {
        margin: 32px 0 16px;
    }

    main.ecosystem-profile-page .company-contribute {
        margin-top: 22px;
        font-size: 11px;
    }

    /* ── Product: specs + in-context + comparables ── */
    main.ecosystem-profile-page .product-specs-section {
        margin-top: 28px;
    }

    main.ecosystem-profile-page .specSection {
        padding: 26px 0 0;
    }

    main.ecosystem-profile-page .specSection:not(:first-child) {
        padding-top: 40px;
    }

    main.ecosystem-profile-page .specSection__title {
        margin: 0 0 16px;
        padding: 0 0 9px 12px;
    }

    main.ecosystem-profile-page .specSection__rows {
        row-gap: 11px;
    }

    main.ecosystem-profile-page .specSection.systemSubsection:not(:first-child) {
        margin-top: 18px;
    }

    main.ecosystem-profile-page .specSection.systemSubsection .specSection__title {
        margin-bottom: 8px;
    }

    main.ecosystem-profile-page .product-family__section-heading {
        margin: 0 0 16px;
        padding: 0 0 9px 12px;
    }

    main.ecosystem-profile-page .product-family__shared {
        padding: 0 0 20px;
    }

    main.ecosystem-profile-page .product-family__shared .specSection__rows {
        row-gap: 13px;
    }

    main.ecosystem-profile-page .specsKv .specRow:not(.specRow--stacked) {
        padding: 5px 0;
    }

    main.ecosystem-profile-page .specsKv .specKey {
        font-size: 9.5px;
    }

    main.ecosystem-profile-page .specsKv .specVal {
        font-size: 13.5px;
        line-height: 1.46;
    }

    main.ecosystem-profile-page .keySpecsKv .keySpecLabel {
        font-size: 9.5px;
    }

    main.ecosystem-profile-page .keySpecsKv .keySpecValue {
        font-size: 13.5px;
        line-height: 1.46;
    }

    main.ecosystem-profile-page .keySpecsKv .keySpecRow {
        padding: 5px 0;
    }

    main.ecosystem-profile-page #product-spec-context .spec-context__row {
        padding-top: 6px;
        padding-bottom: 3px;
    }

    /* Operational profile rail */
    main.ecosystem-profile-page .product-op-field + .product-op-field {
        margin-top: 15px;
    }

    main.ecosystem-profile-page .product-op-field__label {
        font-size: 8.25px;
        margin-bottom: 4px;
    }

    main.ecosystem-profile-page .product-op-field__value {
        font-size: clamp(13.5px, 0.95vw, 15.5px);
        line-height: 1.44;
    }

    main.ecosystem-profile-page .product-rail-panel {
        padding-top: 0;
    }

    main.ecosystem-profile-page .product-rail-event__type {
        margin-top: 6px;
    }

    main.ecosystem-profile-page .product-rail-events__status {
        font-size: 12.5px;
        margin: 12px 0 0 0;
    }

    /* Comparables */
    main.ecosystem-profile-page .comparable-systems {
        margin-top: 26px;
        padding-top: 0;
        border-top: 0;
    }

    main.ecosystem-profile-page .comparable-systems__heading {
        margin: 0 0 12px 0;
    }

    main.ecosystem-profile-page .comparable-systems__grid {
        gap: 18px;
    }

    main.ecosystem-profile-page.profile .comparable-systems__grid--information {
        gap: 18px 22px;
    }

    main.ecosystem-profile-page .comparable-tile {
        padding-bottom: 13px;
    }

    main.ecosystem-profile-page.profile .comparable-tile__name {
        font-size: 13px;
    }

    main.ecosystem-profile-page.profile .comparable-tile__type,
    main.ecosystem-profile-page.profile .comparable-tile__fact {
        font-size: 9.5px;
    }

    /* Financials / resources KV */
    main.ecosystem-profile-page .right-col-financials .market-grid-item {
        padding: 7px 0;
        column-gap: 9px;
    }

    main.ecosystem-profile-page .right-col-financials .market-grid-item .kvKey {
        font-size: 10.25px;
    }

    main.ecosystem-profile-page .right-col-financials .market-grid-item .kvVal {
        font-size: 13.5px;
        line-height: 1.42;
    }

    main.ecosystem-profile-page .twoColBand[data-view="resources"] .resources-ref-panel .kvKey {
        font-size: 10.25px;
    }

    main.ecosystem-profile-page .twoColBand[data-view="resources"] .resources-ref-panel .kvVal {
        font-size: 13.5px;
        line-height: 1.42;
    }

    /* Relationships / key people (company editorial) */
    main.ecosystem-profile-page .section-editorial .key-people-list {
        gap: 6px;
    }

    main.ecosystem-profile-page .section-editorial .key-people-name {
        font-size: clamp(13px, 1.02vw, 15px);
    }

    main.ecosystem-profile-page .section-editorial .relationship-name,
    main.ecosystem-profile-page .profile__relations-module .relationship-name {
        font-size: 13px;
    }
}

@media (min-width: 1440px) {
    main.ecosystem-profile-page {
        --korthos-header-size: clamp(12.75px, 0.94vw, 15.75px);
        --korthos-header-tracking: 0.034em;
        --t-size: 10px;
        --t-height: 1.42;
        --ep-section-mt: 30px;
        --ep-section-inner-pt: 14px;
        --ep-block-mb: 22px;
        --ep-pad-y: 26px;
        --ep-pad-y-bottom: 32px;
    }

    main.ecosystem-profile-page .title {
        font-size: clamp(42px, 4.95vw, 72px);
    }

    main.ecosystem-profile-page .notesText,
    main.ecosystem-profile-page .whyText,
    main.ecosystem-profile-page .rightRail .notesText,
    main.ecosystem-profile-page #profile-editorial-col .notesText,
    main.ecosystem-profile-page #profile-editorial-col .whyText,
    main.ecosystem-profile-page #product-editorial-col .notesText,
    main.ecosystem-profile-page .product-profile-info-band .left-col-main .notesText {
        font-size: 14.5px;
        line-height: 1.52;
    }

    main.ecosystem-profile-page .profile-info-band {
        gap: clamp(18px, 2.9vw, 40px);
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.22fr);
    }

    main.ecosystem-profile-page .profile-info-band.product-profile-info-band--overview-only {
        grid-template-columns: 1fr;
    }

    main.ecosystem-profile-page.profile .main-grid,
    main.ecosystem-profile-page.profile .profile__secondary,
    main.ecosystem-profile-page.profile .profileGrid {
        gap: 24px;
    }
}

/* Overview trajectory compact alignment. Keep the chart anchored inside its card. */
body[data-company-subpage="overview"]:not(.page-product) .profile .company-trajectory-module .company-trajectory.sectionBlock {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body[data-company-subpage="overview"]:not(.page-product) .profile .company-trajectory-module .company-trajectory .block__title {
    margin: 0 0 8px !important;
}

body[data-company-subpage="overview"]:not(.page-product) .profile .company-trajectory-module .company-trajectory__cadence {
    padding: 0 0 4px !important;
}

/* 2026-08-09 company profile typography — reference hierarchy.
 * This file loads after the profile visual layer, so the final type contract
 * belongs here rather than being accidentally compressed back to legacy sizes. */
body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page {
    --profile-reference-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --profile-reference-body: 14.5px;
    --profile-reference-body-line: 1.48;
    font-family: var(--profile-reference-family) !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page :is(
    .profile__header,
    .profile-desktop-content,
    #company-subpage-root,
    #company-subpage-root button,
    #company-subpage-root input,
    #company-subpage-root select
) {
    font-family: var(--profile-reference-family) !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile__header .title {
    font-family: var(--profile-reference-family) !important;
    font-size: clamp(38px, 3.4vw, 52px) !important;
    font-weight: 720 !important;
    line-height: 1.02 !important;
    letter-spacing: -.048em !important;
}

body[data-company-subpage]:not([data-company-subpage="overview"]) main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .subpage-label {
    font-family: var(--profile-reference-family) !important;
    font-size: 24px !important;
    font-weight: 720 !important;
    line-height: 1.15 !important;
    letter-spacing: -.032em !important;
    text-transform: none !important;
    color: #171713 !important;
}

/* Module headings match the supplied reference: sentence case, compact and
   confidently bold. Uppercase remains reserved for metadata labels. */
body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root :is(
    .profile-relations-sub__headline,
    .profile-overview-body-card__heading,
    .funding-feature-module__title,
    .funding-ledger-card__title,
    .investor-card-title,
    .team-leader-card__name,
    .deployment-profile-card__title,
    .profile-operations-group__title,
    .profile-operations-compare-card__title,
    .sci-supply-group__title,
    .company-supply-profile-card__title,
    .company-trajectory__title,
    .timeline-event-ledger__head,
    .spec-context__title,
    .commercial-module-title
) {
    font-family: var(--profile-reference-family) !important;
    font-size: 18px !important;
    font-weight: 720 !important;
    line-height: 1.22 !important;
    letter-spacing: -.022em !important;
    text-transform: none !important;
    color: #171713 !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root :is(
    p,
    li,
    .profile-relations-sub__summary,
    .profile-relations-item__summary,
    .profile-overview-body-card__intro,
    .profile-overview-body-card__body,
    .funding-feature-module__summary,
    .deployment-profile-card__text,
    .profile-operations-card__summary,
    .sci-supply-group__deck,
    .company-supply-row__summary,
    .commercial-note,
    .commercial-profile-narrative,
    .profile-timeline-event__bullets,
    .spec-context__intro,
    .team-field__value,
    .profile-team-block__text
) {
    font-family: var(--profile-reference-family) !important;
    font-size: var(--profile-reference-body) !important;
    font-weight: 450 !important;
    line-height: var(--profile-reference-body-line) !important;
    letter-spacing: -.008em !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root :is(
    .profile-relations-item__name,
    .profile-operations-card__title,
    .deployment-evidence-record__title,
    .company-supply-row__name,
    .sci-supply-row__name,
    .profile-team-person__name,
    .profile-timeline-event__title,
    .commercial-evidence-record__headline,
    .commercial-record-row__value
) {
    font-family: var(--profile-reference-family) !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.018em !important;
    text-transform: none !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root :is(
    .profile-relations-item__value,
    .deployment-evidence-record__fact strong,
    .profile-operations-card__fact strong,
    .market-grid-item .kvVal,
    .commercial-summary-stat__sub
) {
    font-family: var(--profile-reference-family) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
    letter-spacing: -.006em !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root :is(
    .profile-relations-item__label,
    .profile-relations-sub__count,
    .team-field__label,
    .profile-team-block__label,
    .deployment-evidence-record__fact span,
    .profile-operations-card__fact span,
    .market-grid-item .kvKey,
    .commercial-section-label:not(.commercial-module-title),
    .commercial-summary-stat__label,
    .profile-timeline-event__date
) {
    font-family: var(--profile-reference-family) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .065em !important;
    text-transform: uppercase !important;
}

body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-side-nav__label {
    font-family: var(--profile-reference-family) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .025em !important;
}

body[data-company-subpage="timeline"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .profile-timeline-event__title {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

body[data-company-subpage="products"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .profile-product-card__name {
    font-family: var(--profile-reference-family) !important;
    font-size: 21px !important;
    font-weight: 720 !important;
    line-height: 1.16 !important;
    letter-spacing: -.028em !important;
}

/* Shared profile comparator: hierarchy comes from spacing, not name rules. */
main.ecosystem-profile-page :is(
    .spec-context__name,
    a.spec-context__name--link,
    a.spec-context__name--link:hover,
    .spec-context__row--current a.spec-context__name--link
) {
    border-bottom: 0 !important;
    text-decoration: none !important;
}
