/* =============================================================================
   NextTechTalents Talent Ecosystems dashboard.
   Rewritten 2026-09-10 for the "less indicators, more overview" rework.
   Scoped to .ntt-ecosystems to avoid bleeding into the surrounding theme.
   ============================================================================= */

/* Country-flag emoji polyfill. Windows (Segoe UI Emoji) ships no flag glyphs,
   and Chrome dropped its previous internal Twemoji fallback for flags, so
   without this webfont regional-indicator characters render as either bare
   two-letter codes or empty tofu. Font contains ONLY flag glyphs (~76 KB).
   Source: https://github.com/talkjs/country-flag-emoji-polyfill */
@font-face {
    font-family: "Twemoji Country Flags";
    src: url("../vendor/flags/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap;
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
}

:root {
    --ntt-color-fg:        #111827;
    --ntt-color-fg-soft:   #374151;
    --ntt-color-muted:     #6b7280;
    --ntt-color-border:    #e5e7eb;
    --ntt-color-border-2:  #d1d5db;
    --ntt-color-bg:        #ffffff;
    --ntt-color-bg-soft:   #f9fafb;
    --ntt-color-bg-warm:   #fbfaf7;

    --ntt-brand:           #3F37C9;
    --ntt-brand-dark:      #17146B;
    --ntt-brand-blue:      #4895EF;
    --ntt-brand-cyan:      #57C8FA;
    --ntt-brand-yellow:    #FFC636;
    --ntt-brand-brown:     #C98200;

    --ntt-radius:          6px;
    --ntt-radius-sm:       3px;
    --ntt-radius-pill:     999px;

    --ntt-font-sans: "Exo 2", Sans-serif;
    --ntt-font-mono: "Exo 2", Sans-serif;

    --ntt-shadow-sm:       0 1px 2px rgba(17,24,39,.04);
    --ntt-shadow:          0 1px 2px rgba(17,24,39,.04), 0 4px 16px rgba(17,24,39,.05);
}

.ntt-ecosystems [x-cloak] { display: none !important; }

/* ─── Shell ────────────────────────────────────────────────────────────── */
.ntt-ecosystems {
    font-family: var(--ntt-font-sans);
    color: var(--ntt-color-fg);
    line-height: 1.55;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}
.ntt-ecosystems * { box-sizing: border-box; }

.ntt-ecosystems__loading,
.ntt-ecosystems__error,
.ntt-ecosystems__empty {
    padding: 2rem;
    text-align: center;
    color: var(--ntt-color-muted);
}

.ntt-ecosystems__shell {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Every top-level content block uses this common section wrapper */
.ntt-ecosystems__section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.ntt-ecosystems__section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ntt-color-fg);
}
.ntt-ecosystems__section-hint {
    margin: -0.5rem 0 0;
    color: var(--ntt-color-muted);
    font-size: 0.95rem;
}

/* ─── Region tabs (TOP of the page) ────────────────────────────────────── */
/* Sits above every content block. No background — buttons float directly
   on the page ground. */
.ntt-ecosystems__region-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ntt-ecosystems__region-bar button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    color: var(--ntt-color-fg-soft);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ntt-ecosystems__region-bar button:hover {
    background: var(--ntt-color-bg-soft);
    border-color: var(--ntt-color-border-2);
}
.ntt-ecosystems__region-bar button.is-active {
    background: var(--ntt-brand);
    color: #fff;
    border-color: var(--ntt-brand);
}
.ntt-ecosystems__region-bar button.is-active:hover {
    background: var(--ntt-brand-dark);
    border-color: var(--ntt-brand-dark);
}

/* Country flag emoji glyphs render higher inside their font box than Exo 2
   letters. transform is the only approach that works reliably in flex. */
.ntt-ecosystems__flag {
    display: inline-block;
    font-size: 1em;
    line-height: 1;
    font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    font-style: normal;
    transform: translateY(0.08em);
}

/* ─── Events section (hero counters + timeline) ────────────────────────── */
.ntt-ecosystems__hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.ntt-ecosystems__stat {
    flex: 1 1 180px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    box-shadow: var(--ntt-shadow-sm);
}
.ntt-ecosystems__stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ntt-brand-dark);
    letter-spacing: -0.02em;
}
.ntt-ecosystems__stat-label {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--ntt-color-muted);
    letter-spacing: 0.02em;
}

/* Timeline: horizontal axis centered on "today". Event markers scatter left
   (past) and right (future) proportional to their distance. */
.ntt-ecosystems__timeline {
    position: relative;
    padding: 3rem 0.5rem 3.5rem;
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    box-shadow: var(--ntt-shadow-sm);
    /* No overflow clipping — timeline-marker tooltips near the left/right
       edge need to extend past the card boundary to stay fully visible. */
}
.ntt-ecosystems__timeline-axis {
    position: relative;
    height: 2px;
    background: var(--ntt-color-border-2);
    margin: 2.5rem 0;
}
.ntt-ecosystems__timeline-now {
    position: absolute;
    top: -14px;
    bottom: -14px;
    left: 50%;
    width: 2px;
    background: var(--ntt-brand);
    transform: translateX(-50%);
}
.ntt-ecosystems__timeline-now::after {
    content: "TODAY";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ntt-brand);
    background: #fff;
    padding: 0 0.4rem;
}
/* Monthly ticks along the axis. Each tick is a short vertical line with a
   label underneath. Positioning is percentage-based so ticks stay in place
   as the axis resizes. */
.ntt-ecosystems__timeline-tick {
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 1px;
    background: var(--ntt-color-border-2);
    transform: translateX(-50%);
    pointer-events: none;
}
.ntt-ecosystems__timeline-tick-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--ntt-color-muted);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.ntt-ecosystems__timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ntt-color-muted);   /* fallback for unknown / missing type */
    /* White halo via box-shadow so it doesn't add to the dot's box and stays
       consistent when two dots on the same date overlap. Plus a small drop
       shadow for depth. */
    box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(17, 24, 39, .25);
    cursor: pointer;
}
/* Colour matches the event-type badge in the feed cards below. */
.ntt-ecosystems__timeline-marker[data-type="webinar"]         { background: var(--ntt-brand-blue); }
.ntt-ecosystems__timeline-marker[data-type="onsite_training"] { background: var(--ntt-brand); }
.ntt-ecosystems__timeline-marker[data-type="workshop"]        { background: var(--ntt-brand-yellow); }
.ntt-ecosystems__timeline-marker[data-type="mentoring"]       { background: var(--ntt-brand-cyan); }
.ntt-ecosystems__timeline-marker[data-tooltip]:hover::after,
.ntt-ecosystems__timeline-marker[data-tooltip]:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: -0.5rem;
    transform: translate(-50%, -100%);
    /* Constrain width so edge tooltips wrap instead of overshooting into
       arbitrarily wide space. Line-height stays tight since text may wrap. */
    max-width: 240px;
    width: max-content;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    background: var(--ntt-brand-dark);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--ntt-radius-sm);
    pointer-events: none;
    z-index: 3;
}
.ntt-ecosystems__timeline-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--ntt-color-muted);
    font-style: italic;
}

/* ─── Event feeds (Upcoming + Past) ─────────────────────────────────────── */
.ntt-ecosystems__event-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.ntt-ecosystems__feed-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ntt-color-fg-soft);
}
.ntt-ecosystems__event-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ntt-ecosystems__event-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    box-shadow: var(--ntt-shadow-sm);
    color: inherit;
    text-decoration: none;
}
.ntt-ecosystems__event-card.is-clickable { cursor: pointer; }

/* Calendar-style date tile: big day, small month, tiny year. Fixed width
   so titles line up across cards. `is-tbc` variant collapses to a single
   centred "TBC" label. */
.ntt-ecosystems__event-tile {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* day sits at the top, in line with title */
    color: var(--ntt-color-fg-soft);
    line-height: 1;
    text-align: center;
}
.ntt-ecosystems__event-tile-day {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ntt-brand-dark);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.ntt-ecosystems__event-tile-month {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ntt-brand);
}
.ntt-ecosystems__event-tile-year {
    margin-top: 0.1rem;
    font-size: 0.65rem;
    color: var(--ntt-color-muted);
    font-variant-numeric: tabular-nums;
}
.ntt-ecosystems__event-tile.is-tbc .ntt-ecosystems__event-tile-day {
    font-size: 0.85rem;
    color: var(--ntt-color-muted);
    letter-spacing: 0.05em;
}

.ntt-ecosystems__event-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}
/* Title on the left, type badge pushed to the far right, both baseline-aligned
   so the badge sits at the top-right corner of the card next to the title. */
.ntt-ecosystems__event-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.ntt-ecosystems__event-title-row .ntt-ecosystems__event-title {
    flex: 1 1 auto;
    min-width: 0;
}
.ntt-ecosystems__event-title-row .ntt-ecosystems__event-type {
    flex: 0 0 auto;
}

/* Past-events collapsible. Closed by default; the count sits next to the
   heading so the user knows how many rows are hidden. */
.ntt-ecosystems__past-events { margin-top: 0.75rem; }
.ntt-ecosystems__past-events > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: var(--ntt-color-fg-soft);
}
.ntt-ecosystems__past-events > summary::-webkit-details-marker { display: none; }
.ntt-ecosystems__past-events > summary::before {
    content: "▸";
    color: var(--ntt-color-muted);
    transition: transform .15s;
    display: inline-block;
}
.ntt-ecosystems__past-events[open] > summary::before { transform: rotate(90deg); }
.ntt-ecosystems__past-count {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    background: var(--ntt-color-bg-soft);
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius-pill);
    color: var(--ntt-color-muted);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ntt-ecosystems__past-events[open] > .ntt-ecosystems__event-list {
    margin-top: 0.75rem;
}

.ntt-ecosystems__event-type {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--ntt-color-muted);   /* fallback for unknown type */
    border-radius: var(--ntt-radius-pill);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
}
/* Solid brand colours matching the timeline dot palette. Text switches to
   dark on the light chips (yellow, cyan) for contrast, white on the dark
   ones (blue, purple). */
.ntt-ecosystems__event-type[data-type="webinar"]         { background: var(--ntt-brand-blue);   color: #fff; }
.ntt-ecosystems__event-type[data-type="onsite_training"] { background: var(--ntt-brand);        color: #fff; }
.ntt-ecosystems__event-type[data-type="workshop"]        { background: var(--ntt-brand-yellow); color: var(--ntt-brand-dark); }
.ntt-ecosystems__event-type[data-type="mentoring"]       { background: var(--ntt-brand-cyan);   color: var(--ntt-brand-dark); }

.ntt-ecosystems__event-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ntt-color-fg);
}
.ntt-ecosystems__event-meta {
    margin: 0;
    color: var(--ntt-color-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* ─── Local Alliances ──────────────────────────────────────────────────── */
.ntt-ecosystems__alliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}
.ntt-ecosystems__alliance-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    box-shadow: var(--ntt-shadow-sm);
    position: relative;
}
.ntt-ecosystems__alliance-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}
.ntt-ecosystems__alliance-logo img {
    max-width: 90%;
    max-height: 58px;
    object-fit: contain;
}
.ntt-ecosystems__alliance-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ntt-color-fg);
}
.ntt-ecosystems__alliance-meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    color: var(--ntt-color-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    list-style: none;
}
.ntt-ecosystems__alliance-meta li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;   /* space between flag glyph and country name */
    list-style: none;
}

/* ─── Registrations ("Users registered on the knowledge platform") ─────── */
/* Collapsible via native <details>/<summary>, open by default in template. */
.ntt-ecosystems__registrations {
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    box-shadow: var(--ntt-shadow-sm);
    overflow: hidden;
}
.ntt-ecosystems__registrations > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--ntt-color-bg-soft);
    border-bottom: 1px solid var(--ntt-color-border);
}
.ntt-ecosystems__registrations > summary::-webkit-details-marker { display: none; }
.ntt-ecosystems__registrations > summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--ntt-color-muted);
    font-size: 1rem;
    transition: transform .15s;
}
.ntt-ecosystems__registrations:not([open]) > summary::after {
    transform: rotate(-90deg);
}
.ntt-ecosystems__registrations-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ntt-brand-dark);
}
.ntt-ecosystems__registrations-total {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ntt-brand-dark);
    letter-spacing: -0.02em;
}
.ntt-ecosystems__registrations-total small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ntt-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.35rem;
}

.ntt-ecosystems__registrations-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
}
.ntt-ecosystems__chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ntt-ecosystems__chart-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ntt-color-fg-soft);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
/* Small legend under the Country chart title explaining the yellow bars. */
.ntt-ecosystems__chart-hint {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ntt-color-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}
.ntt-ecosystems__chart-hint-swatch {
    display: inline-block;
    width: 12px;
    height: 8px;
    background: var(--ntt-brand-yellow);
    border-radius: 2px;
}

/* Horizontal bar-list chart: label + bar + count in a 3-col grid */
.ntt-ecosystems__bar-list {
    display: grid;
    grid-template-columns: minmax(80px, max-content) 1fr auto;
    gap: 0.4rem 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ntt-color-fg-soft);
}
.ntt-ecosystems__bar-track {
    position: relative;
    height: 8px;
    background: var(--ntt-color-bg-soft);
    border-radius: var(--ntt-radius-pill);
    overflow: hidden;
}
.ntt-ecosystems__bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--ntt-brand);
    border-radius: var(--ntt-radius-pill);
    transition: background .15s;
}
/* Widening-country rows in the Country chart are recoloured yellow so the
   widening share becomes visible at a glance, without a separate badge or
   hover dependency. `display: contents` on the wrapper doesn't affect
   descendant selectors, so this rule still reaches the fill. */
.ntt-ecosystems__bar-list .is-widening .ntt-ecosystems__bar-fill {
    background: var(--ntt-brand-yellow);
}
.ntt-ecosystems__bar-count {
    font-variant-numeric: tabular-nums;
    color: var(--ntt-color-fg);
    font-weight: 600;
}

/* Pie chart: single inline SVG. See JS for slice-rendering. */
.ntt-ecosystems__pie-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.ntt-ecosystems__pie {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
}
.ntt-ecosystems__pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}
.ntt-ecosystems__pie-legend > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ntt-color-fg-soft);
}
.ntt-ecosystems__pie-swatch {
    width: 12px; height: 12px;
    border-radius: 2px;
    flex: 0 0 auto;
}

/* ─── Training System tables ───────────────────────────────────────────── */
.ntt-ecosystems__training-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--ntt-color-border);
    border-radius: var(--ntt-radius);
    overflow: hidden;
    box-shadow: var(--ntt-shadow-sm);
}
/* Yellow title band above every training table. Values match the spec:
   #FFC636 bg, #17146B fg, 700 weight, 18px, 12px 16px padding. */
.ntt-ecosystems__training-title {
    background: #FFC636;
    color: #17146B;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 16px;
    margin: 0;
    line-height: 1.3;
}
.ntt-ecosystems__training-scroll {
    overflow-x: auto;
}
.ntt-ecosystems__training-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ntt-ecosystems__training-table thead {
    background: var(--ntt-brand-dark);
    color: #fff;
}
.ntt-ecosystems__training-table thead th {
    text-align: left;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Sortable headers become borderless buttons that fill the cell. A
   neutral arrow sits on the right; it darkens and flips based on the
   current sort direction. */
.ntt-ecosystems__training-table thead th.is-sortable button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    cursor: pointer;
}
.ntt-ecosystems__training-table thead th.is-sortable button::after {
    content: "↕";
    font-size: 0.85rem;
    opacity: .35;
    transition: opacity .15s, transform .15s;
}
.ntt-ecosystems__training-table thead th.is-sortable:hover button::after { opacity: .7; }
.ntt-ecosystems__training-table thead th[data-sort="asc"]  button::after { content: "↑"; opacity: 1; }
.ntt-ecosystems__training-table thead th[data-sort="desc"] button::after { content: "↓"; opacity: 1; }
.ntt-ecosystems__training-table thead th.is-sortable:focus-within button {
    outline: 2px solid var(--ntt-brand-yellow);
    outline-offset: -2px;
}

.ntt-ecosystems__training-table tbody tr {
    border-top: 1px solid var(--ntt-color-border);
    transition: background .12s;
}
.ntt-ecosystems__training-table tbody tr:first-child {
    border-top: none;
}
/* Hover row: soft yellow wash. Ties into the section's yellow title band
   and the yellow placeholder language used elsewhere in the dashboard. */
.ntt-ecosystems__training-table tbody tr:hover {
    background: rgba(255, 198, 54, 0.14);
}
.ntt-ecosystems__training-table td {
    padding: 0.85rem 1rem;
    color: var(--ntt-color-fg-soft);
    vertical-align: top;
}
.ntt-ecosystems__training-cell--center {
    text-align: center;
}
.ntt-ecosystems__training-country {
    white-space: nowrap;
    color: var(--ntt-color-fg);
    font-weight: 600;
}
.ntt-ecosystems__training-country .ntt-ecosystems__flag { margin-right: 0.4rem; }
.ntt-ecosystems__training-country-all {
    color: var(--ntt-color-muted);
    font-style: italic;
    font-weight: 500;
}
.ntt-ecosystems__training-table td:first-child {
    color: var(--ntt-color-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-family: var(--ntt-font-mono);
    font-weight: 600;
}
.ntt-ecosystems__training-table td.ntt-ecosystems__training-activity {
    color: var(--ntt-color-fg);
    font-weight: 600;
}

/* Badges inside training-table cells (Pathway, Layer, Deep-Tech, Target) */
.ntt-ecosystems__ts-pathway {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.2rem 0.5rem;
    background: var(--ntt-brand);
    color: #fff;
    border-radius: var(--ntt-radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    /* No letter-spacing: single-character badge was being shifted right. */
    letter-spacing: 0;
}
.ntt-ecosystems__ts-pathway--b { background: var(--ntt-brand-blue); }
.ntt-ecosystems__ts-pathway--c { background: var(--ntt-brand-cyan); color: var(--ntt-brand-dark); }
.ntt-ecosystems__ts-relevance {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--ntt-color-fg-soft);
}
.ntt-ecosystems__ts-relevance::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ntt-color-border-2);
}
.ntt-ecosystems__ts-relevance[data-level="High"]::before       { background: var(--ntt-brand); }
.ntt-ecosystems__ts-relevance[data-level="Medium"]::before     { background: var(--ntt-brand-blue); }
.ntt-ecosystems__ts-relevance[data-level="Supporting"]::before { background: var(--ntt-color-border-2); }
.ntt-ecosystems__ts-target {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--ntt-color-bg-warm);
    border: 1px solid var(--ntt-color-border);
    color: var(--ntt-color-fg-soft);
    border-radius: var(--ntt-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--ntt-font-mono);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ntt-ecosystems__shell { gap: 2rem; }
    .ntt-ecosystems__stat  { flex-basis: 100%; }
    .ntt-ecosystems__stat-value { font-size: 1.6rem; }
    .ntt-ecosystems__registrations > summary {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .ntt-ecosystems__training-title { font-size: 16px; padding: 10px 14px; }
    .ntt-ecosystems__training-table thead th,
    .ntt-ecosystems__training-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }
}
