.wtmg-intel {
    --wtmg-intel-navy: #13213a;
    --wtmg-intel-blue: #1f5cb8;
    --wtmg-intel-action: #2563eb;
    --wtmg-intel-light: #f3f7fd;
    --wtmg-intel-tint: #eaf2ff;
    --wtmg-intel-border: #d9e3f0;
    --wtmg-intel-text: #172238;
    --wtmg-intel-muted: #66738a;
    --wtmg-intel-positive: #178a68;
    --wtmg-intel-warm: #c98724;
    color: var(--wtmg-intel-text);
    background: #f8fafd;
    font-family: inherit;
    overflow-x: hidden;
}

.wtmg-intel *,
.wtmg-intel *::before,
.wtmg-intel *::after {
    box-sizing: border-box;
}

.wtmg-intel-shell {
    width: min(1280px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    margin: 0 auto;
    padding: 0;
}

.wtmg-intel-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 36px;
    background:
        radial-gradient(circle at 86% 28%, rgba(37, 99, 235, 0.16) 0, rgba(37, 99, 235, 0.07) 22%, transparent 44%),
        linear-gradient(135deg, #f3f7fd 0%, #ffffff 58%, #eaf2ff 100%);
    border-bottom: 1px solid var(--wtmg-intel-border);
}

.wtmg-intel-hero::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 92, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 92, 184, 0.07) 1px, transparent 1px);
    background-position: right 28px top 24px;
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%, #000 100%);
    content: "";
}

.wtmg-intel-hero .wtmg-intel-shell {
    position: relative;
    z-index: 1;
}

.wtmg-intel-hero-compact {
    padding-bottom: 38px;
}

.wtmg-intel-kicker {
    margin: 0 0 10px;
    color: var(--wtmg-intel-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wtmg-intel h1 {
    width: 100%;
    max-width: 860px;
    margin: 0;
    color: var(--wtmg-intel-navy);
    font-size: clamp(2.1rem, 3.2vw, 3.55rem);
    line-height: 1.07;
    letter-spacing: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.wtmg-intel-lede {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--wtmg-intel-muted);
    font-size: 1.05rem;
    line-height: 1.58;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.wtmg-intel-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.wtmg-intel-hero-stats span,
.wtmg-intel-warning,
.wtmg-intel-table-note {
    border: 1px solid var(--wtmg-intel-border);
    background: rgba(255, 255, 255, 0.86);
    color: #46556b;
}

.wtmg-intel-hero-stats span {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.93rem;
    font-weight: 700;
}

.wtmg-intel-warning {
    max-width: 860px;
    margin: 18px 0 0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.wtmg-intel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    background: #fff;
    border-bottom: 1px solid var(--wtmg-intel-border);
}

.wtmg-intel-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    border-bottom: 3px solid transparent;
    color: var(--wtmg-intel-navy);
    padding: 2px 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: normal;
}

.wtmg-intel-quickviews a,
.wtmg-intel-pagination a,
.wtmg-intel-corridor-controls button {
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
    color: var(--wtmg-intel-blue);
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wtmg-intel-nav a.is-active {
    border-bottom-color: var(--wtmg-intel-action);
    color: var(--wtmg-intel-action);
}

.wtmg-intel-quickviews a.is-active,
.wtmg-intel-corridor-controls button {
    background: var(--wtmg-intel-blue);
    color: #fff;
    border-color: var(--wtmg-intel-blue);
}

.wtmg-intel-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    padding: 42px 0 24px;
}

.wtmg-intel-summary div,
.wtmg-intel-method-grid article {
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 12px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(19, 33, 58, 0.055);
}

.wtmg-intel-summary div {
    position: relative;
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-top: 3px solid var(--wtmg-intel-blue);
}

.wtmg-intel-summary div:nth-child(1) {
    background: #f3f7fd;
}

.wtmg-intel-summary div:nth-child(2) {
    background: #f8fafd;
    border-top-color: var(--wtmg-intel-action);
}

.wtmg-intel-summary div:nth-child(3) {
    background: #f5f8fc;
    border-top-color: var(--wtmg-intel-navy);
}

.wtmg-intel-summary div:nth-child(4) {
    background: #fffaf1;
    border-top-color: var(--wtmg-intel-warm);
}

.wtmg-intel-summary strong {
    display: block;
    color: var(--wtmg-intel-navy);
    font-size: clamp(1.35rem, 2.1vw, 2.1rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.wtmg-intel-summary span {
    display: block;
    margin-top: 10px;
    color: var(--wtmg-intel-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.wtmg-intel-table-note {
    display: inline-block;
    margin: 10px 0 18px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.wtmg-intel-controls {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 12px;
    background: #f3f7fd;
    padding: 18px;
}

.wtmg-intel-corridor-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.wtmg-intel-controls label {
    display: grid;
    gap: 6px;
    color: #40506a;
    font-size: 0.85rem;
    font-weight: 700;
}

.wtmg-intel-controls input,
.wtmg-intel-controls select {
    min-height: 44px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
    padding: 9px 11px;
    color: var(--wtmg-intel-text);
}

.wtmg-intel-controls input:focus,
.wtmg-intel-controls select:focus {
    border-color: var(--wtmg-intel-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.wtmg-intel-explain,
.wtmg-intel-chart {
    overflow: hidden;
    padding-right: 32px;
    padding-left: 32px;
}

.wtmg-intel-chart h2 {
    max-width: 760px;
}

.wtmg-intel-chart {
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 12px;
    background: #fff;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(19, 33, 58, 0.045);
}

.wtmg-intel-explain {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    border-left: 4px solid var(--wtmg-intel-blue);
    background: var(--wtmg-intel-light);
}

.wtmg-intel-explain h2,
.wtmg-intel-chart h2 {
    margin: 0 0 12px;
    color: var(--wtmg-intel-navy);
    font-size: 1.18rem;
    letter-spacing: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
}

.wtmg-intel-explain p {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--wtmg-intel-muted);
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.wtmg-intel-explain p:first-of-type {
    color: #40506a;
    font-weight: 700;
}

.wtmg-intel-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin-top: 12px;
}

.wtmg-intel-bar span,
.wtmg-intel-bar strong {
    min-width: 0;
    color: var(--wtmg-intel-text);
    font-size: 0.88rem;
}

.wtmg-intel-bar span {
    grid-column: 1;
    grid-row: 1;
    padding-right: 128px;
}

.wtmg-intel-bar strong {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: 28px;
    text-align: right;
    color: var(--wtmg-intel-navy);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.wtmg-intel-bar i {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    display: block;
    height: 9px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}

.wtmg-intel-bar i::before {
    display: block;
    width: var(--bar-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--wtmg-intel-action);
    content: "";
}

.wtmg-intel-bar:first-of-type i::before {
    background: var(--wtmg-intel-blue);
}

.wtmg-intel-quickviews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 14px;
}

.wtmg-intel-table-wrap {
    overflow: auto;
    padding-bottom: 56px;
}

.wtmg-intel-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 12px;
    overflow: hidden;
}

.wtmg-intel-table th,
.wtmg-intel-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--wtmg-intel-border);
    text-align: left;
    vertical-align: top;
    font-size: 0.93rem;
}

.wtmg-intel-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f0f5fc;
    color: var(--wtmg-intel-navy);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wtmg-intel-table tbody tr[data-wtmg-intel-row]:hover td {
    background: #f3f7fd;
}

.wtmg-intel-table tbody tr.wtmg-intel-top-row td {
    background: #f6faff;
}

.wtmg-intel-country a {
    color: var(--wtmg-intel-blue);
    font-weight: 800;
    text-decoration: none;
}

.wtmg-intel-country span {
    display: block;
    margin-top: 3px;
    color: var(--wtmg-intel-muted);
    font-size: 0.8rem;
}

.wtmg-intel-score {
    font-weight: 800;
}

.wtmg-intel-score-badge,
.wtmg-intel-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    border: 1px solid #d5dfec;
    border-radius: 999px;
    background: #f6f8fb;
    color: #27364d;
    padding: 5px 9px;
    font-size: 0.82rem;
    font-weight: 900;
}

.wtmg-intel-score-badge.is-strong {
    border-color: #b7d3ff;
    background: #e9f2ff;
    color: var(--wtmg-intel-blue);
}

.wtmg-intel-score-badge.is-positive {
    border-color: #bfe3d5;
    background: #edf8f3;
    color: var(--wtmg-intel-positive);
}

.wtmg-intel-score-badge.is-neutral {
    border-color: #dce3ee;
    background: #f6f8fb;
    color: #3f4d61;
}

.wtmg-intel-score-badge.is-muted {
    border-color: #eadbc8;
    background: #fff7ed;
    color: #8a5c17;
}

.wtmg-intel-change {
    font-weight: 800;
}

.wtmg-intel-change.is-positive {
    color: var(--wtmg-intel-positive);
}

.wtmg-intel-change.is-negative {
    color: #8a5c17;
}

.wtmg-intel-coverage {
    display: block;
    width: fit-content;
    margin-top: 5px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--wtmg-intel-blue);
    padding: 4px 7px;
    font-size: 0.72rem;
    font-weight: 700;
}

.wtmg-intel-expand {
    display: none;
    margin-top: 8px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
    color: var(--wtmg-intel-blue);
    padding: 6px 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.wtmg-intel-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 6px 0;
}

.wtmg-intel-details div {
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.wtmg-intel-details span {
    display: block;
    color: var(--wtmg-intel-muted);
    font-size: 0.78rem;
}

.wtmg-intel-details strong {
    display: block;
    margin-top: 4px;
}

.wtmg-intel-detail-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
}

.wtmg-intel-detail-bar i {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e9f2;
}

.wtmg-intel-detail-bar i::before {
    display: block;
    width: var(--score);
    height: 100%;
    border-radius: inherit;
    background: var(--wtmg-intel-action);
    content: "";
}

.wtmg-intel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 0 56px;
}

.wtmg-intel-pagination span {
    color: var(--wtmg-intel-muted);
    font-weight: 700;
}

.wtmg-intel-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    padding: 48px 0 64px;
}

.wtmg-intel-method-grid article {
    display: flex;
    flex-direction: column;
}

.wtmg-intel-method-grid article:nth-child(2) {
    background: #f3f7fd;
}

.wtmg-intel-method-grid article:nth-child(3) {
    background: #f8fafd;
}

.wtmg-intel-method-grid article:nth-child(4) {
    background: #f7fbff;
}

.wtmg-intel-method-grid h2 {
    margin: 0 0 10px;
    color: var(--wtmg-intel-navy);
    font-size: 1.25rem;
    letter-spacing: 0;
}

.wtmg-intel-method-grid p,
.wtmg-intel-method-grid li {
    color: var(--wtmg-intel-muted);
    line-height: 1.6;
}

.wtmg-intel-method-grid ul {
    display: grid;
    gap: 10px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.wtmg-intel-method-grid li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(31, 92, 184, 0.12);
    padding-bottom: 8px;
    font-weight: 700;
}

.wtmg-intel-method-grid li strong {
    color: var(--wtmg-intel-blue);
    font-weight: 900;
}

.wtmg-intel-method-grid li i {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #e6edf7;
    overflow: hidden;
}

.wtmg-intel-method-grid li i::before {
    display: block;
    width: var(--weight);
    height: 100%;
    border-radius: inherit;
    background: var(--wtmg-intel-action);
    content: "";
}

.wtmg-intel-empty {
    padding: 28px 0 64px;
}

body .wtmg-intel > .wtmg-intel-shell:not(.wtmg-intel-nav):not(.wtmg-intel-summary):not(.wtmg-intel-method-grid) {
    padding-top: 28px;
}

@media (max-width: 860px) {
    .wtmg-intel-summary,
    .wtmg-intel-controls,
    .wtmg-intel-method-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-intel-table,
    .wtmg-intel-table tbody,
    .wtmg-intel-table tr,
    .wtmg-intel-table td {
        display: block;
        width: 100%;
    }

    .wtmg-intel-table thead {
        display: none;
    }

    .wtmg-intel-table tr[data-wtmg-intel-row] {
        position: relative;
        display: grid;
        grid-template-columns: 64px 1fr 104px;
        align-items: start;
        border-bottom: 1px solid var(--wtmg-intel-border);
        padding: 12px;
    }

    .wtmg-intel-table tr[data-wtmg-intel-row] td {
        border: 0;
        padding: 0;
    }

    .wtmg-intel-table tr[data-wtmg-intel-row] td:nth-child(n+4) {
        display: none;
    }

    .wtmg-intel-table tr[data-wtmg-intel-row] td:nth-child(3)::before {
        content: "Score";
        display: block;
        color: var(--wtmg-muted, #667085);
        font-size: 0.72rem;
        font-weight: 700;
    }

    .wtmg-intel-expand {
        display: inline-block;
    }

    .wtmg-intel-detail-row td {
        padding: 12px;
        border-bottom: 1px solid var(--wtmg-intel-border);
    }

    .wtmg-intel-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wtmg-intel-nav a {
        flex: 0 0 auto;
        text-align: center;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td {
        display: block;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(1),
    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(5),
    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(6),
    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(8) {
        display: none;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(4),
    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(7) {
        display: block;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td::before {
        content: attr(data-label);
        display: block;
        color: var(--wtmg-muted, #667085);
        font-size: 0.72rem;
        font-weight: 700;
    }

    .wtmg-intel-corridor-table tr[data-wtmg-intel-row] td:nth-child(3)::before {
        content: "Destination";
    }
}

@media (max-width: 520px) {
    .wtmg-intel-shell {
        width: min(100% - 28px, 1280px);
        max-width: calc(100vw - 28px);
    }

    .wtmg-intel-hero {
        padding: 36px 0 28px;
    }

    .wtmg-intel h1 {
        font-size: 1.48rem;
        line-height: 1.12;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .wtmg-intel-nav {
        gap: 16px;
        overflow-x: auto;
        width: min(100% - 28px, 1280px);
        max-width: calc(100vw - 28px);
        flex-wrap: nowrap;
    }

    .wtmg-intel-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        min-width: 0;
        flex: 0 0 auto;
        word-break: normal;
    }

    .wtmg-intel-lede {
        max-width: 31ch;
    }

    .wtmg-intel-warning {
        max-width: 34ch;
    }

    .wtmg-intel-summary {
        gap: 16px;
        padding-top: 32px;
    }

    .wtmg-intel-summary div,
    .wtmg-intel-method-grid article,
    .wtmg-intel-explain,
    .wtmg-intel-chart,
    .wtmg-intel-controls {
        padding: 18px;
    }

    .wtmg-intel-bar {
        gap: 5px;
    }

    .wtmg-intel-bar strong {
        grid-row: 2;
        justify-self: start;
        margin-right: 12px;
        font-size: 0.8rem;
    }

    .wtmg-intel-bar span {
        padding-right: 0;
    }

    .wtmg-intel-bar i {
        grid-row: 3;
    }

    .wtmg-intel-chart h2 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .wtmg-intel-quickviews {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wtmg-intel-quickviews a {
        width: 100%;
        text-align: center;
    }

    .wtmg-intel-table tr[data-wtmg-intel-row] {
        grid-template-columns: 48px 1fr 86px;
        gap: 8px;
    }

    .wtmg-intel-details {
        grid-template-columns: 1fr;
    }
}

/* Country-first market explorer */
.wtmg-explorer-select {
    padding-top: 32px;
}

.wtmg-explorer-select form {
    display: grid;
    grid-template-columns: minmax(240px, 520px) auto;
    gap: 12px;
    align-items: end;
}

.wtmg-explorer-select label,
.wtmg-explorer-select label span {
    display: block;
}

.wtmg-explorer-select label span {
    margin-bottom: 7px;
    color: var(--wtmg-intel-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.wtmg-explorer-select select,
.wtmg-explorer-select button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 6px;
    padding: 9px 12px;
}

.wtmg-explorer-select button {
    width: auto;
    background: var(--wtmg-intel-blue);
    color: #fff;
    font-weight: 700;
}

.wtmg-explorer-empty {
    padding-top: 44px;
    padding-bottom: 56px;
}

.wtmg-explorer-empty > div,
.wtmg-explorer-directions,
.wtmg-explorer-relationships {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wtmg-explorer-empty article,
.wtmg-explorer-directions a,
.wtmg-explorer-relationships article {
    padding: 20px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
}

.wtmg-explorer-directions {
    margin-top: 34px;
}

.wtmg-explorer-directions a {
    color: var(--wtmg-intel-navy);
    text-decoration: none;
}

.wtmg-explorer-directions a.is-active {
    border-color: var(--wtmg-intel-blue);
    box-shadow: inset 0 3px 0 var(--wtmg-intel-blue);
}

.wtmg-explorer-directions strong,
.wtmg-explorer-directions span {
    display: block;
}

.wtmg-explorer-directions span,
.wtmg-explorer-context {
    margin-top: 5px;
    color: var(--wtmg-intel-muted);
    font-size: 0.9rem;
}

.wtmg-explorer-sorts {
    margin: 22px 0 14px;
}

.wtmg-explorer-chart {
    margin: 20px 0 24px;
}

.wtmg-explorer-chart h3,
.wtmg-explorer-relationships h3 {
    margin: 0 0 16px;
    color: var(--wtmg-intel-navy);
    font-size: 1.05rem;
}

.wtmg-explorer-table {
    min-width: 1100px;
}

.wtmg-explorer-relationships ol {
    margin: 0;
    padding-left: 24px;
}

.wtmg-explorer-relationships li {
    padding: 8px 0;
    border-bottom: 1px solid var(--wtmg-intel-border);
}

.wtmg-explorer-relationships li span,
.wtmg-explorer-relationships li strong {
    display: inline-block;
}

.wtmg-explorer-relationships li strong {
    float: right;
    margin-left: 12px;
}

@media (max-width: 620px) {
    .wtmg-explorer-select form,
    .wtmg-explorer-empty > div,
    .wtmg-explorer-directions,
    .wtmg-explorer-relationships {
        grid-template-columns: 1fr;
    }

    .wtmg-explorer-select button {
        width: 100%;
    }
}

/* Country market profile pilot */
.wtmg-profile-hero-metrics,
.wtmg-profile-position,
.wtmg-profile-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.wtmg-profile-hero-metrics div,
.wtmg-profile-position div,
.wtmg-profile-cards article {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
}

.wtmg-profile-hero-metrics span,
.wtmg-profile-position span,
.wtmg-profile-cards span,
.wtmg-profile-cards small {
    display: block;
    color: var(--wtmg-intel-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.wtmg-profile-hero-metrics strong,
.wtmg-profile-position strong,
.wtmg-profile-cards strong {
    display: block;
    margin-top: 5px;
    color: var(--wtmg-intel-navy);
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.wtmg-profile-cards small {
    margin-top: 9px;
}

.wtmg-profile-section {
    padding-top: 42px;
    padding-bottom: 6px;
}

.wtmg-profile-heading {
    max-width: 820px;
    margin-bottom: 18px;
}

.wtmg-profile-heading h2,
.wtmg-profile-two-column h2,
.wtmg-profile-limitations h2 {
    margin: 0 0 8px;
    color: var(--wtmg-intel-navy);
    font-size: 1.55rem;
    letter-spacing: 0;
}

.wtmg-profile-heading p {
    margin: 0;
    color: var(--wtmg-intel-muted);
}

.wtmg-profile-table {
    min-width: 760px;
}

.wtmg-profile-table .wtmg-profile-total td {
    border-top: 2px solid var(--wtmg-intel-navy);
    color: var(--wtmg-intel-navy);
    font-weight: 700;
}

.wtmg-profile-context-link {
    margin: -22px 0 0;
}

.wtmg-profile-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wtmg-profile-two-column article,
.wtmg-profile-limitations {
    padding: 24px;
    border: 1px solid var(--wtmg-intel-border);
    border-radius: 8px;
    background: #fff;
}

.wtmg-profile-two-column article p,
.wtmg-profile-two-column article small {
    color: var(--wtmg-intel-muted);
    line-height: 1.55;
}

.wtmg-profile-two-column article small {
    display: block;
    margin-top: 14px;
}

.wtmg-profile-two-column .wtmg-profile-large-value {
    margin: 12px 0 4px;
    color: var(--wtmg-intel-blue);
    font-size: 2rem;
    font-weight: 750;
}

.wtmg-profile-limitations {
    margin-top: 42px;
    margin-bottom: 48px;
}

.wtmg-profile-limitations ul {
    margin: 14px 0 18px 20px;
}

.wtmg-profile-limitations li {
    margin: 7px 0;
    color: var(--wtmg-intel-muted);
}

@media (max-width: 900px) {
    .wtmg-profile-hero-metrics,
    .wtmg-profile-position,
    .wtmg-profile-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .wtmg-profile-hero-metrics,
    .wtmg-profile-position,
    .wtmg-profile-cards,
    .wtmg-profile-two-column {
        grid-template-columns: 1fr;
    }

    .wtmg-profile-section {
        padding-top: 32px;
    }
}

/* Phase 5.2B corrective cleanup: compact, scoped, data-first layout. */
.wtmg-intel {
    background: #f7f9fc;
    overflow-x: visible;
}

.wtmg-intel,
.wtmg-intel main,
.wtmg-intel section,
.wtmg-intel article,
.wtmg-intel div,
.wtmg-intel nav,
.wtmg-intel form,
.wtmg-intel table,
.wtmg-intel th,
.wtmg-intel td {
    min-width: 0;
}

.wtmg-intel-shell {
    width: min(100% - 48px, 1280px);
    max-width: 1280px;
    margin-inline: auto;
}

.wtmg-intel-hero {
    overflow: visible;
    padding: 48px 0;
    background:
        radial-gradient(circle at 88% 24%, rgba(37, 99, 235, 0.08) 0, rgba(37, 99, 235, 0.035) 24%, transparent 44%),
        linear-gradient(135deg, #f7f9fc 0%, #ffffff 58%, #eef4fc 100%);
}

.wtmg-intel-hero::after {
    display: none;
}

.wtmg-intel h1 {
    max-width: 960px;
    font-size: clamp(42px, 4vw, 60px);
    line-height: 1.08;
    overflow-wrap: break-word;
}

.wtmg-intel-lede {
    max-width: 850px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.wtmg-intel-warning {
    max-width: 950px;
}

.wtmg-intel-nav {
    gap: 22px;
    margin-top: 0;
    margin-bottom: 0;
}

.wtmg-intel-nav a {
    min-height: 44px;
    padding-top: 1px;
}

.wtmg-intel-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 32px 0 20px;
}

.wtmg-intel-summary div {
    width: auto;
    min-width: 0;
    min-height: 125px;
    height: auto;
    justify-content: flex-start;
    padding: 22px 24px;
    overflow: visible;
    background: #fff;
    border-color: #d9e3f0;
    border-top-color: #1f5cb8;
    box-shadow: 0 8px 18px rgba(19, 33, 58, 0.045);
}

.wtmg-intel-summary div:nth-child(1),
.wtmg-intel-summary div:nth-child(2),
.wtmg-intel-summary div:nth-child(3),
.wtmg-intel-summary div:nth-child(4) {
    background: #fff;
}

.wtmg-intel-summary div:nth-child(2) {
    border-top-color: #2563eb;
}

.wtmg-intel-summary div:nth-child(3) {
    border-top-color: #172238;
}

.wtmg-intel-summary div:nth-child(4) {
    border-top-color: #1f5cb8;
}

.wtmg-intel-summary strong {
    font-size: clamp(20px, 1.8vw, 34px);
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wtmg-intel-summary div:nth-child(4) strong {
    font-size: clamp(20px, 1.8vw, 28px);
}

.wtmg-intel-summary span {
    margin-top: 8px;
}

body .wtmg-intel > .wtmg-intel-shell:not(.wtmg-intel-nav):not(.wtmg-intel-summary):not(.wtmg-intel-method-grid) {
    padding-top: 20px;
}

.wtmg-intel-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 18px;
}

.wtmg-intel-corridor-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wtmg-intel-controls input,
.wtmg-intel-controls select,
.wtmg-intel-controls button {
    width: 100%;
    max-width: 100%;
}

.wtmg-intel-explain {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 24px;
    padding: 20px 22px;
    border-left: 4px solid #1f5cb8;
    background: #eef4fc;
    box-shadow: none;
}

.wtmg-intel-explain p {
    max-width: none;
    font-weight: 400;
}

.wtmg-intel-explain p:first-of-type {
    font-weight: 400;
}

.wtmg-intel-explain p:first-of-type strong,
.wtmg-intel-explain b {
    font-weight: 700;
}

.wtmg-intel-chart {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 24px;
    padding: 22px 24px;
    overflow: visible;
}

.wtmg-intel-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
}

.wtmg-intel-bar span {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
    overflow-wrap: anywhere;
}

.wtmg-intel-bar strong {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 0;
    white-space: nowrap;
}

.wtmg-intel-bar i {
    grid-column: 1;
    grid-row: 2;
    height: 8px;
    background: #e8eef7;
}

.wtmg-intel-bar i::before,
.wtmg-intel-bar:first-of-type i::before {
    background: #2563eb;
}

.wtmg-intel-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 38px;
}

.wtmg-intel-table {
    width: 100%;
    max-width: none;
}

.wtmg-intel-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    padding: 36px 0 48px;
}

.wtmg-intel-method-grid article {
    min-width: 0;
    padding: 22px 24px;
    overflow-wrap: anywhere;
    background: #fff;
    box-shadow: 0 8px 18px rgba(19, 33, 58, 0.045);
}

.wtmg-intel-method-grid article:nth-child(2),
.wtmg-intel-method-grid article:nth-child(3),
.wtmg-intel-method-grid article:nth-child(4) {
    background: #fff;
}

.wtmg-intel-method-grid ul {
    gap: 0;
}

.wtmg-intel-method-grid li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #d9e3f0;
}

.wtmg-intel-method-grid li span {
    min-width: 0;
}

.wtmg-intel-method-grid li i {
    grid-column: 1 / -1;
    height: 2px;
    background: transparent;
}

.wtmg-intel-method-grid li i::before {
    height: 2px;
    background: #1f5cb8;
}

@media (min-width: 861px) {
    .wtmg-intel-table {
        min-width: 1120px;
    }

    .wtmg-intel-corridor-table {
        min-width: 1180px;
    }
}

@media (max-width: 1100px) {
    .wtmg-intel-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wtmg-intel-controls,
    .wtmg-intel-corridor-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .wtmg-intel-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wtmg-intel-method-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-intel-table {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .wtmg-intel-shell,
    .wtmg-intel-nav {
        width: min(calc(100vw - 28px), 362px);
        max-width: min(calc(100vw - 28px), 362px);
        margin-left: 14px;
        margin-right: auto;
    }

    .wtmg-intel-hero {
        padding: 34px 0;
    }

    .wtmg-intel h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .wtmg-intel-summary,
    .wtmg-intel-controls,
    .wtmg-intel-corridor-controls {
        grid-template-columns: 1fr;
    }

    .wtmg-intel-summary div {
        min-height: 118px;
        padding: 20px;
    }

    .wtmg-intel-explain,
    .wtmg-intel-chart,
    .wtmg-intel-controls,
    .wtmg-intel-method-grid article {
        padding: 18px;
    }

    .wtmg-intel-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .wtmg-intel-bar strong {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .wtmg-intel-bar i {
        grid-row: 3;
    }
}

@media (max-width: 860px) {
    .wtmg-intel-market-explorer .wtmg-explorer-table {
        display: table;
        width: 1100px;
        min-width: 1100px;
    }

    .wtmg-intel-market-explorer .wtmg-explorer-table thead {
        display: table-header-group;
    }

    .wtmg-intel-market-explorer .wtmg-explorer-table tbody {
        display: table-row-group;
    }

    .wtmg-intel-market-explorer .wtmg-explorer-table tr {
        display: table-row;
    }

    .wtmg-intel-market-explorer .wtmg-explorer-table td,
    .wtmg-intel-market-explorer .wtmg-explorer-table th {
        display: table-cell;
        width: auto;
    }
}

@media (max-width: 520px) {
    .wtmg-intel-market-explorer .wtmg-intel-shell,
    .wtmg-intel-market-explorer .wtmg-intel-nav {
        width: calc(100% - 28px);
        max-width: none;
        margin-left: 14px;
        margin-right: 14px;
    }
}
