﻿.cw-hofstede-dashboard {
    --cw-hofstede-surface: color-mix(in srgb, var(--bg-elevated) 92%, var(--cw-blue) 4%);
    --cw-hofstede-surface-muted: color-mix(in srgb, var(--bg-secondary) 90%, var(--cw-blue) 3%);
    --cw-hofstede-border: color-mix(in srgb, var(--border-strong) 76%, var(--cw-blue) 24%);
    --cw-hofstede-accent-soft: color-mix(in srgb, var(--cw-blue) 10%, transparent);
    padding: 10px 0 66px;
}

.cw-hofstede-intro {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 0;
}

.cw-hofstede-intro h1 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
}

.cw-hofstede-intro > p {
    max-width: 680px;
    margin: 6px auto 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.cw-hofstede-search {
    position: relative;
    
}

.cw-hofstede-search label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.cw-hofstede-search-input {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 30px;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 0 10px 0 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cw-hofstede-search-input:focus-within {
    border-color: var(--cw-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cw-blue) 16%, transparent);
}

.cw-hofstede-search-input > .fas {
    color: var(--cw-blue);
    font-size: 0.88rem;
}

.cw-hofstede-search input {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    outline: 0;
}

.cw-hofstede-search input::placeholder {
    color: var(--text-muted);
}

.cw-hofstede-icon-button {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.cw-hofstede-icon-button:hover {
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
}

.cw-hofstede-search-results {
    overflow: hidden;
    margin-top: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    width: 100%;
    padding: 9px 12px;
    color: var(--text-primary);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.cw-hofstede-search-result:last-child {
    border-bottom: 0;
}

.cw-hofstede-search-result:hover,
.cw-hofstede-search-result:focus-visible {
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 9%, transparent);
    outline: 0;
}

.cw-hofstede-search-result strong,
.cw-hofstede-search-result small {
    display: block;
}

.cw-hofstede-search-result strong {
    font-size: 0.86rem;
}

.cw-hofstede-search-result small {
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.cw-hofstede-search-result span {
    align-self: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.cw-hofstede-data-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 18px;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--warning) 12%, var(--bg-elevated));
    border: 1px solid color-mix(in srgb, var(--warning) 48%, var(--border-strong));
    border-radius: 7px;
}

.cw-hofstede-data-notice .fas {
    color: var(--warning);
}

.cw-hofstede-data-notice p {
    margin: 0;
}

.cw-hofstede-map-section {
    padding-top: 10px;
}

.cw-hofstede-featured-section,
.cw-hofstede-comparisons,
.cw-hofstede-extremes {
    padding-top: 38px;
}

.cw-hofstede-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 19px;
}

.cw-hofstede-section-header h2,
.cw-hofstede-featured-country h2,
.cw-hofstede-framework-note h2 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.7rem;
    letter-spacing: 0;
    line-height: 1.2;
}

.cw-hofstede-section-note {
    max-width: 360px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: right;
}

.cw-hofstede-section-header > a,
.cw-hofstede-framework-note > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cw-blue);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.cw-hofstede-section-header > a:hover,
.cw-hofstede-framework-note > a:hover {
    color: var(--text-primary);
}

.cw-hofstede-map-layout {
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.cw-hofstede-map-panel {
    min-width: 0;
}

.cw-hofstede-map-search {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 800;
    width: 230px;
    max-width: calc(100% - 24px);
}

.cw-hofstede-map-search-bar {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 22px 18px;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 5px 6px 5px 10px;
    background: color-mix(in srgb, var(--bg-elevated) 94%, var(--bg-primary));
    backdrop-filter: blur(12px);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 7px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
    cursor: text;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cw-hofstede-map-search-bar:focus-within,
.cw-hofstede-map-search-bar:hover {
    border-color: var(--cw-blue);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 3px var(--cw-hofstede-accent-soft);
    transform: translateY(-1px);
}

.cw-hofstede-map-search-bar > .fas {
    color: var(--cw-blue);
    font-size: 0.76rem;
    flex-shrink: 0;
}

.cw-hofstede-map-search-bar input {
    width: 100%;
    min-width: 0;
    min-height: 26px;
    padding: 1px 0 2px;
    color: var(--text-heading);
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.35;
    background: transparent;
    border: 0;
    border-bottom: 2px solid color-mix(in srgb, var(--cw-blue) 48%, transparent);
    caret-color: var(--cw-blue);
    outline: 0;
}

.cw-hofstede-map-search-bar:focus-within input {
    border-bottom-color: var(--cw-blue);
}

.cw-hofstede-map-search-bar input::placeholder {
    color: var(--text-muted);
}

.cw-hofstede-search-submit {
    display: grid;
    width: 18px;
    height: 18px;
    padding: 0;
    place-items: center;
    color: var(--cw-black);
    background: var(--cw-blue);
    border: 0;
    border-radius: 5px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.cw-hofstede-search-submit .fas {
    font-size: 0.58rem;
}

.cw-hofstede-search-submit:hover,
.cw-hofstede-search-submit:focus-visible {
    background: var(--cw-blue-dark);
    outline: 0;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--cw-blue) 24%, transparent);
    transform: translateY(-1px);
}

.cw-hofstede-map-search-bar.is-searching .cw-hofstede-search-submit .fas {
    animation: cw-hofstede-search-pop 420ms ease;
}

@keyframes cw-hofstede-search-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.18) rotate(-8deg); }
    100% { transform: scale(1); }
}

body.light-mode .cw-hofstede-map-search-bar {
    background: color-mix(in srgb, var(--bg-elevated) 96%, var(--cw-blue) 4%);
    box-shadow: 0 14px 28px rgba(25, 74, 84, 0.15);
}

body.light-mode .cw-hofstede-map-search-bar:focus-within,
body.light-mode .cw-hofstede-map-search-bar:hover {
    box-shadow: 0 16px 34px rgba(25, 74, 84, 0.21);
}

.cw-hofstede-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-elevated) 94%, #102b30 6%);
    border: 1px solid color-mix(in srgb, var(--border-strong) 72%, var(--cw-blue) 28%);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    z-index: 850;
}

.cw-hofstede-map-search .cw-hofstede-search-result {
    min-height: 54px;
    padding: 10px 12px;
}

.cw-hofstede-search-result-copy,
.cw-hofstede-search-result-copy strong,
.cw-hofstede-search-result-copy small {
    display: block;
}

.cw-hofstede-search-result-copy {
    align-self: center;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
}

.cw-hofstede-search-result-copy strong {
    color: var(--text-heading);
}

.cw-hofstede-search-result-code {
    display: grid;
    min-width: 34px;
    height: 28px;
    place-items: center;
    color: var(--cw-blue);
    font-size: 0.7rem;
    font-weight: 800;
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
    border-radius: 7px;
}

.cw-hofstede-dimension-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
}

.cw-hofstede-dimension-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 9px 14px;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cw-hofstede-dimension-button strong {
    display: block;
    color: var(--cw-blue);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.cw-hofstede-dimension-button span {
    display: block;
    margin-top: 3px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.cw-hofstede-dimension-button:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--cw-blue) 10%, var(--bg-primary));
    border-color: var(--cw-blue);
}

.cw-hofstede-dimension-button.is-active {
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 16%, var(--bg-primary));
    border-color: var(--cw-blue);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cw-blue) 30%, transparent);
}

.cw-hofstede-map-frame {
    position: relative;
    min-height: 470px;
    background: #142d34;
}

#hofstede-world-map {
    width: 100%;
    height: 470px;
    background: #142d34;
}

.cw-hofstede-map-loading {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #dcf0ee;
    font-size: 0.82rem;
    background: rgba(7, 24, 28, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    transform: translate(-50%, -50%);
}

.cw-hofstede-map-loading.is-hidden {
    display: none;
}

.cw-hofstede-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding: 10px 15px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.74rem;
}

.cw-hofstede-map-footer > span:first-child {
    color: var(--text-secondary);
    font-weight: 700;
}

.cw-hofstede-legend {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    white-space: nowrap;
}

.cw-hofstede-legend i {
    display: block;
    width: 128px;
    height: 7px;
    background: linear-gradient(90deg, #2176a4 0%, #16a8a2 34%, #e0ad43 66%, #de6857 100%);
    border-radius: 999px;
}

.cw-hofstede-map-frame .leaflet-container {
    font-family: inherit;
}

.cw-hofstede-map-frame .leaflet-control-zoom a {
    color: #102b30;
}

.cw-hofstede-map-frame .leaflet-control-attribution {
    color: #adc3c6;
    background: rgba(16, 43, 48, 0.78);
    font-size: 9px;
}

.cw-hofstede-map-frame .leaflet-control-attribution a {
    color: #d7f2ef;
}

.cw-hofstede-map-tooltip {
    min-width: 210px;
    max-width: 280px;
    padding: 10px 11px;
    color: #eafafa;
    background: #102b30;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    font-family: inherit;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: normal;
}

.cw-hofstede-map-tooltip::before {
    border-top-color: #102b30;
}

.cw-hofstede-tooltip-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.cw-hofstede-tooltip-head strong,
.cw-hofstede-tooltip-head span,
.cw-hofstede-tooltip-head small {
    display: block;
}

.cw-hofstede-tooltip-head strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.cw-hofstede-tooltip-head small {
    margin-top: 2px;
    color: #a8cfca;
    font-size: 0.68rem;
}

.cw-hofstede-tooltip-head span {
    padding: 2px 5px;
    color: #84ece1;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(59, 216, 199, 0.14);
    border-radius: 3px;
}

.cw-hofstede-tooltip-score {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.cw-hofstede-tooltip-score strong {
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

.cw-hofstede-tooltip-score span {
    color: #b2d5d0;
    font-size: 0.7rem;
    text-align: right;
}

.cw-hofstede-tooltip-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 9px;
}

.cw-hofstede-tooltip-scores span {
    display: block;
    padding: 4px 3px;
    color: #b7d6d2;
    font-size: 0.63rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.cw-hofstede-tooltip-scores b {
    margin-left: 3px;
    color: #ffffff;
}

.cw-hofstede-featured-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 0;
}

.cw-hofstede-featured-country,
.cw-hofstede-framework-note {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--border-strong);
}

.cw-hofstede-featured-country {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    background: var(--bg-elevated);
    border-radius: 8px 0 0 8px;
}

.cw-hofstede-featured-country h2 {
    font-size: 1.86rem;
}

.cw-hofstede-featured-copy > p:not(.cw-hofstede-kicker) {
    margin: 11px 0 22px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.62;
}

.cw-hofstede-featured-copy .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cw-hofstede-featured-scores {
    display: grid;
    gap: 10px;
    align-content: center;
}

.cw-hofstede-featured-scores > div {
    display: grid;
    grid-template-columns: 30px 28px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.cw-hofstede-featured-scores span {
    color: var(--cw-blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.cw-hofstede-featured-scores strong {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: right;
}

.cw-hofstede-featured-scores i {
    display: block;
    height: 5px;
    overflow: hidden;
    background: var(--border-strong);
    border-radius: 999px;
}

.cw-hofstede-featured-scores i::before {
    display: block;
    width: var(--hofstede-score);
    height: 100%;
    content: "";
    background: var(--cw-blue);
    border-radius: inherit;
}

.cw-hofstede-framework-note {
    background: color-mix(in srgb, var(--cw-blue) 7%, var(--bg-secondary));
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.cw-hofstede-framework-note h2 {
    max-width: 400px;
    font-size: 1.35rem;
}

.cw-hofstede-framework-note > p:not(.cw-hofstede-kicker) {
    margin: 13px 0 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.62;
}

.cw-hofstede-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.cw-hofstede-comparison-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 130px;
    padding: 18px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    text-decoration: none;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.cw-hofstede-comparison-card:hover {
    background: color-mix(in srgb, var(--cw-blue) 7%, var(--bg-elevated));
    border-color: color-mix(in srgb, var(--cw-blue) 60%, var(--border-strong));
    transform: translateY(-2px);
}

.cw-hofstede-comparison-country span,
.cw-hofstede-comparison-country strong {
    display: block;
}

.cw-hofstede-comparison-country span {
    color: var(--cw-blue);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.cw-hofstede-comparison-country strong {
    margin-top: 4px;
    color: var(--text-heading);
    font-size: 0.95rem;
    line-height: 1.25;
}

.cw-hofstede-comparison-card > .fas {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.cw-hofstede-comparison-card small {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 11px;
    color: var(--text-muted);
    font-size: 0.73rem;
}

.cw-hofstede-comparison-card small .fas {
    margin-left: 4px;
    color: var(--cw-blue);
}

.cw-hofstede-extremes-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

.cw-hofstede-extremes-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.cw-hofstede-extremes-table th,
.cw-hofstede-extremes-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cw-hofstede-extremes-table thead th {
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cw-hofstede-extremes-table tbody tr:last-child th,
.cw-hofstede-extremes-table tbody tr:last-child td {
    border-bottom: 0;
}

.cw-hofstede-extremes-table tbody th {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.cw-hofstede-extremes-table tbody th span {
    display: inline-block;
    min-width: 35px;
    margin-right: 9px;
    color: var(--cw-blue);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.cw-hofstede-extremes-table td strong,
.cw-hofstede-extremes-table td small {
    display: inline-block;
}

.cw-hofstede-extremes-table td strong {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.cw-hofstede-extremes-table td small {
    min-width: 30px;
    margin-left: 10px;
    padding: 2px 5px;
    color: var(--cw-blue);
    font-size: 0.69rem;
    font-weight: 800;
    text-align: center;
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
    border-radius: 4px;
}

.cw-hofstede-country-dialog {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cw-hofstede-country-dialog[hidden] {
    display: none;
}

.cw-hofstede-country-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 23, 0.68);
    backdrop-filter: blur(7px);
}

.cw-hofstede-country-dialog-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: min(660px, calc(100vh - 36px));
    overflow: auto;
    padding: 25px;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-elevated) 94%, #102b30 6%);
    border: 1px solid color-mix(in srgb, var(--border-strong) 72%, var(--cw-blue) 28%);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.cw-hofstede-country-dialog-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 10%, transparent);
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
}

.cw-hofstede-country-dialog-close:hover,
.cw-hofstede-country-dialog-close:focus-visible {
    color: var(--text-heading);
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--cw-blue) 35%, transparent);
    outline: 0;
}

.cw-hofstede-country-dialog-panel h2 {
    max-width: calc(100% - 48px);
    margin: 7px 0 8px;
    color: var(--text-heading);
    font-size: 1.55rem;
    line-height: 1.18;
}

.cw-hofstede-country-dialog-panel > p:not(.cw-hofstede-kicker) {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cw-hofstede-country-dialog-scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.cw-hofstede-country-dialog-score {
    min-width: 0;
    padding: 11px;
    background: color-mix(in srgb, var(--cw-blue) 8%, var(--bg-primary));
    border: 1px solid color-mix(in srgb, var(--cw-blue) 24%, var(--border-color));
    border-radius: 7px;
}

.cw-hofstede-country-dialog-score span,
.cw-hofstede-country-dialog-score strong,
.cw-hofstede-country-dialog-score small {
    display: block;
}

.cw-hofstede-country-dialog-score span {
    color: var(--cw-blue);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.cw-hofstede-country-dialog-score strong {
    margin-top: 5px;
    color: var(--text-heading);
    font-size: 1.35rem;
    line-height: 1;
}

.cw-hofstede-country-dialog-score small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
}

.cw-hofstede-country-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.cw-hofstede-country-dialog-actions .btn,
.cw-hofstede-dialog-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 7px;
}

.cw-hofstede-dialog-secondary {
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 800;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    cursor: pointer;
}

.cw-hofstede-dialog-secondary:hover,
.cw-hofstede-dialog-secondary:focus-visible {
    color: var(--text-heading);
    border-color: color-mix(in srgb, var(--cw-blue) 55%, var(--border-strong));
    outline: 0;
}

body.cw-hofstede-dialog-open {
    overflow: hidden;
}

.cw-hofstede-analysis-prompt {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    place-items: center;
    padding: 16px;
}

.cw-hofstede-analysis-prompt[hidden] {
    display: none;
}

.cw-hofstede-analysis-prompt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 23, 0.5);
    backdrop-filter: blur(4px);
}

.cw-hofstede-analysis-prompt-card {
    position: relative;
    width: min(340px, 100%);
    padding: 20px 20px 18px;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-elevated) 94%, #102b30 6%);
    border: 1px solid color-mix(in srgb, var(--border-strong) 72%, var(--cw-blue) 28%);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.cw-hofstede-analysis-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 10%, transparent);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.cw-hofstede-analysis-prompt-close:hover,
.cw-hofstede-analysis-prompt-close:focus-visible {
    color: var(--text-heading);
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--cw-blue) 35%, transparent);
    outline: 0;
}

.cw-hofstede-analysis-prompt-card h3 {
    max-width: calc(100% - 36px);
    margin: 8px 0 7px;
    color: var(--text-heading);
    font-size: 1.22rem;
    line-height: 1.25;
}

.cw-hofstede-analysis-prompt-card p:not(.cw-hofstede-kicker) {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cw-hofstede-analysis-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.cw-hofstede-analysis-prompt-actions .btn,
.cw-hofstede-analysis-prompt-actions .cw-hofstede-dialog-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 7px;
}

@media (max-width: 480px) {
    .cw-hofstede-analysis-prompt-card {
        padding: 18px 16px 16px;
    }
}

.cw-hofstede-education {
    padding-top: 48px;
}

.cw-hofstede-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--cw-blue);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.cw-hofstede-education-hero {
    padding: 30px;
    color: var(--text-primary);
    background: var(--cw-hofstede-surface);
    border: 1px solid var(--cw-hofstede-border);
    border-left: 5px solid var(--cw-blue);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-education-hero h2,
.cw-hofstede-education-title h2,
.cw-hofstede-dimension-guide h3,
.cw-hofstede-cluster h3,
.cw-hofstede-info-grid h3,
.cw-hofstede-use-grid h3,
.cw-hofstede-profile h3,
.cw-hofstede-term-grid h3,
.cw-hofstede-reference-layout h3 {
    margin: 0;
    color: var(--text-heading);
    letter-spacing: 0;
}

.cw-hofstede-education-hero h1,
.cw-hofstede-education-hero h2 {
    max-width: 900px;
    margin-top: 2px;
    font-size: 2.1rem;
    line-height: 1.12;
    color: var(--text-heading);
}

.cw-hofstede-education-hero > p {
    max-width: 980px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.cw-hofstede-education-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.cw-hofstede-education-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--cw-blue) 24%, var(--border-color));
    border-radius: 7px;
}

.cw-hofstede-education-stats strong {
    color: var(--cw-blue);
    font-size: 1.1rem;
}

.cw-hofstede-education-section {
    padding-top: 52px;
}

.cw-hofstede-education-title {
    max-width: 960px;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border-color);
}

.cw-hofstede-education-title h2 {
    margin-top: 7px;
    font-size: 1.58rem;
    line-height: 1.2;
}

.cw-hofstede-dimension-guide {
    margin-bottom: 16px;
    padding: 24px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-dimension-guide:last-child {
    margin-bottom: 0;
}

.cw-hofstede-dimension-guide > header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.cw-hofstede-dimension-guide > header > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--cw-black);
    font-size: 0.86rem;
    font-weight: 900;
    background: var(--cw-blue);
    border-radius: 8px;
}

.cw-hofstede-dimension-guide h3 {
    font-size: 1.25rem;
    line-height: 1.22;
}

.cw-hofstede-dimension-guide header p,
.cw-hofstede-cluster > p,
.cw-hofstede-profile p,
.cw-hofstede-term-grid p,
.cw-hofstede-reference-layout li,
.cw-hofstede-data-notes p {
    color: var(--text-secondary);
    line-height: 1.64;
}

.cw-hofstede-dimension-guide header p {
    max-width: 920px;
    margin: 7px 0 0;
    font-size: 0.92rem;
}

.cw-hofstede-score-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cw-hofstede-score-table-grid h4 {
    margin: 0 0 9px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.25;
}

.cw-hofstede-education-table-wrap {
    overflow-x: auto;
    background: color-mix(in srgb, var(--bg-elevated) 95%, var(--cw-blue) 2%);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.cw-hofstede-education-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.cw-hofstede-education-table th,
.cw-hofstede-education-table td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.cw-hofstede-education-table tr:last-child th,
.cw-hofstede-education-table tr:last-child td {
    border-bottom: 0;
}

.cw-hofstede-education-table thead th {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.25;
    background: color-mix(in srgb, var(--cw-blue) 8%, transparent);
    text-transform: uppercase;
}

.cw-hofstede-education-table tbody th {
    color: var(--text-heading);
    font-size: 0.86rem;
    line-height: 1.35;
}

.cw-hofstede-education-table td {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cw-hofstede-education-table td strong {
    color: var(--cw-blue);
    font-size: 0.9rem;
}

.cw-hofstede-cluster-stack {
    display: grid;
    gap: 16px;
}

.cw-hofstede-cluster,
.cw-hofstede-info-grid article,
.cw-hofstede-use-grid article,
.cw-hofstede-profile,
.cw-hofstede-term-grid article,
.cw-hofstede-reference-layout article,
.cw-hofstede-data-notes {
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-cluster {
    padding: 24px;
    border-left: 4px solid var(--cw-blue);
}

.cw-hofstede-cluster > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cw-hofstede-cluster h3 {
    font-size: 1.2rem;
}

.cw-hofstede-cluster header p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.cw-hofstede-cluster header span {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: var(--cw-blue);
    font-size: 0.7rem;
    font-weight: 850;
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--cw-blue) 28%, transparent);
    border-radius: 6px;
}

.cw-hofstede-cluster > p {
    margin: 0 0 16px;
    font-size: 0.92rem;
}

.cw-hofstede-insight,
.cw-hofstede-important-note {
    margin: 16px 0 0;
    padding: 14px 16px;
    color: var(--text-secondary);
    line-height: 1.62;
    background: color-mix(in srgb, var(--cw-blue) 8%, var(--bg-elevated));
    border-left: 4px solid var(--cw-blue);
    border-radius: 7px;
}

.cw-hofstede-info-grid,
.cw-hofstede-use-grid,
.cw-hofstede-profile-grid,
.cw-hofstede-term-grid,
.cw-hofstede-reference-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.cw-hofstede-info-grid article,
.cw-hofstede-use-grid article,
.cw-hofstede-term-grid article,
.cw-hofstede-reference-layout article {
    padding: 22px;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.cw-hofstede-info-grid article:hover,
.cw-hofstede-use-grid article:hover,
.cw-hofstede-term-grid article:hover,
.cw-hofstede-reference-layout article:hover {
    background: color-mix(in srgb, var(--cw-blue) 6%, var(--bg-elevated));
    border-color: color-mix(in srgb, var(--cw-blue) 42%, var(--border-strong));
    transform: translateY(-2px);
}

.cw-hofstede-info-grid .fas {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    place-items: center;
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 13%, transparent);
    border-radius: 8px;
}

.cw-hofstede-info-grid h3,
.cw-hofstede-use-grid h3,
.cw-hofstede-term-grid h3,
.cw-hofstede-reference-layout h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.cw-hofstede-info-grid p,
.cw-hofstede-use-grid li,
.cw-hofstede-term-grid p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.cw-hofstede-info-grid p,
.cw-hofstede-term-grid p {
    margin: 9px 0 0;
}

.cw-hofstede-use-grid ul,
.cw-hofstede-reference-layout ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding-left: 18px;
}

.cw-hofstede-timeline {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cw-hofstede-timeline li {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 18px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--cw-blue);
    border-radius: 8px;
}

.cw-hofstede-timeline strong {
    color: var(--cw-blue);
}

.cw-hofstede-timeline span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cw-hofstede-faq-list {
    display: grid;
    gap: 10px;
}

.cw-hofstede-faq-list details {
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cw-hofstede-faq-list details[open],
.cw-hofstede-faq-list details:hover {
    background: color-mix(in srgb, var(--cw-blue) 6%, var(--bg-elevated));
    border-color: color-mix(in srgb, var(--cw-blue) 40%, var(--border-strong));
}

.cw-hofstede-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--text-heading);
    font-weight: 800;
    cursor: pointer;
}

.cw-hofstede-faq-list summary::-webkit-details-marker {
    display: none;
}

.cw-hofstede-faq-list summary .fas {
    color: var(--cw-blue);
    transition: transform var(--transition-fast);
}

.cw-hofstede-faq-list details[open] summary .fas {
    transform: rotate(180deg);
}

.cw-hofstede-faq-list p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.cw-hofstede-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-hofstede-profile {
    overflow: hidden;
}

.cw-hofstede-profile h3 {
    padding: 17px 18px;
    font-size: 1.12rem;
    background: color-mix(in srgb, var(--cw-blue) 10%, transparent);
    border-bottom: 1px solid var(--border-color);
}

.cw-hofstede-profile .cw-hofstede-education-table-wrap {
    border: 0;
    border-radius: 0;
}

.cw-hofstede-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-hofstede-reference-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 960px;
}

.cw-hofstede-data-notes {
    display: grid;
    gap: 10px;
    max-width: 960px;
    margin-top: 16px;
    padding: 20px;
}

.cw-hofstede-data-notes p {
    margin: 0;
    font-size: 0.9rem;
}

body.light-mode .cw-hofstede-map-frame,
body.light-mode #hofstede-world-map {
    background: #d6e8ea;
}

@media (max-width: 1080px) {
    .cw-hofstede-featured-section {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    }

    .cw-hofstede-featured-country {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-score-table-grid,
    .cw-hofstede-reference-layout {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-info-grid,
    .cw-hofstede-use-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .cw-hofstede-dashboard {
        padding-top: 30px;
    }

    .cw-hofstede-intro,
    .cw-hofstede-featured-section {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-intro {
        gap: 24px;
    }

    .cw-hofstede-featured-country {
        border-radius: 8px 8px 0 0;
    }

    .cw-hofstede-education-hero {
        padding: 28px;
    }

    .cw-hofstede-education-hero h1,
    .cw-hofstede-education-hero h2 {
        font-size: 2rem;
    }

    .cw-hofstede-term-grid,
    .cw-hofstede-profile-grid,
    .cw-hofstede-info-grid,
    .cw-hofstede-use-grid {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-timeline li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cw-hofstede-framework-note {
        border-top: 0;
        border-left: 1px solid var(--border-strong);
        border-radius: 0 0 8px 8px;
    }

    .cw-hofstede-comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cw-hofstede-dashboard {
        padding-bottom: 50px;
    }

    .cw-hofstede-intro h1 {
        font-size: 1.95rem;
    }

    .cw-hofstede-education-hero h1,
    .cw-hofstede-education-hero h2 {
        font-size: 1.72rem;
    }

    .cw-hofstede-map-section,
    .cw-hofstede-featured-section,
    .cw-hofstede-comparisons,
    .cw-hofstede-extremes {
        padding-top: 43px;
    }

    .cw-hofstede-section-header {
        display: block;
        margin-bottom: 16px;
    }

    .cw-hofstede-section-header h2,
    .cw-hofstede-featured-country h2,
    .cw-hofstede-framework-note h2 {
        font-size: 1.45rem;
    }

    .cw-hofstede-section-note {
        margin-top: 9px;
        text-align: left;
    }

    .cw-hofstede-section-header > a {
        margin-top: 11px;
    }

    .cw-hofstede-map-layout {
        margin-right: -2%;
        margin-left: -2%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .cw-hofstede-map-search {
        top: 9px;
        right: 9px;
        left: 9px;
        width: auto;
        max-width: none;
    }

    .cw-hofstede-map-search-bar {
        min-height: 36px;
        grid-template-columns: 14px minmax(0, 1fr) 22px 18px;
        gap: 6px;
        padding: 4px 5px 4px 9px;
    }

    .cw-hofstede-search-submit {
        width: 18px;
        height: 18px;
    }

    .cw-hofstede-dimension-switcher {
        padding: 12px 8px;
        gap: 8px;
    }

    .cw-hofstede-dimension-button {
        min-width: 100px;
        padding: 6px 8px;
    }

    .cw-hofstede-dimension-button strong {
        font-size: 0.8rem;
    }

    .cw-hofstede-dimension-button span {
        font-size: 0.7rem;
    }

    .cw-hofstede-map-frame,
    #hofstede-world-map {
        height: 360px;
        min-height: 360px;
    }

    .cw-hofstede-map-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cw-hofstede-map-footer > span:last-child {
        display: none;
    }

    .cw-hofstede-featured-country,
    .cw-hofstede-framework-note {
        padding: 24px 18px;
    }

    .cw-hofstede-featured-scores {
        margin-top: 8px;
    }

    .cw-hofstede-country-dialog-panel {
        padding: 22px 17px;
    }

    .cw-hofstede-country-dialog-panel h2 {
        font-size: 1.35rem;
    }

    .cw-hofstede-country-dialog-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cw-hofstede-country-dialog-actions {
        justify-content: stretch;
    }

    .cw-hofstede-country-dialog-actions .btn,
    .cw-hofstede-dialog-secondary {
        width: 100%;
    }

    .cw-hofstede-education {
        padding-top: 34px;
    }

    .cw-hofstede-education-hero {
        padding: 24px 18px;
    }

    .cw-hofstede-education-section {
        padding-top: 36px;
    }

    .cw-hofstede-dimension-guide > header {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-dimension-guide > header > span {
        width: 48px;
        height: 48px;
    }

    .cw-hofstede-cluster {
        padding: 20px 16px;
    }

    .cw-hofstede-cluster > header {
        display: grid;
    }

    .cw-hofstede-cluster header span {
        width: fit-content;
    }

    .cw-hofstede-page-hero {
        gap: 24px;
        padding: 16px 0 8px;
    }

    .cw-hofstede-page-hero-copy h1 {
        font-size: 1.55rem;
    }

    .cw-hofstede-page-hero-art {
        width: min(80%, 210px);
    }

    .cw-hofstede-compare-search-results li {
        padding: 12px 11px;
    }

    .cw-hofstede-info-grid article,
    .cw-hofstede-use-grid article,
    .cw-hofstede-term-grid article,
    .cw-hofstede-reference-layout article,
    .cw-hofstede-data-notes {
        padding: 18px;
    }
}

.cw-hofstede-analysis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.cw-hofstede-country-picker {
    padding-top: 16px;
}

.cw-hofstede-country-picker h2,

.cw-hofstede-score-overview h2,
.cw-hofstede-implications h2,
.cw-hofstede-dimension-deep h2,
.cw-hofstede-facts h2,
.cw-hofstede-related h2 {
    margin: 0 0 18px;
    color: var(--text-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cw-hofstede-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.cw-hofstede-picker-link {
    display: block;
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 12px;
    background: var(--cw-hofstede-surface-muted);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cw-hofstede-picker-link:hover,
.cw-hofstede-picker-link:focus-visible {
    color: var(--cw-blue);
    border-color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
}

.cw-hofstede-score-overview {
    padding: 34px 0 8px;
}

.cw-hofstede-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}

.cw-hofstede-score-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 16px;
    background: var(--cw-hofstede-surface);
}

.cw-hofstede-score-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.cw-hofstede-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    color: var(--cw-blue);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 12px;
    background: var(--cw-hofstede-accent-soft);
}

.cw-hofstede-score-card-head h3,
.cw-hofstede-dimension-section h3 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: 0;
}

.cw-hofstede-score-label {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.cw-hofstede-score-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cw-hofstede-score-number {
    color: var(--text-heading);
    font-size: 2.05rem;
    font-weight: 850;
    line-height: 1;
}

.cw-hofstede-score-of {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.cw-hofstede-score-bar {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border-strong) 55%, transparent);
}

.cw-hofstede-score-bar > span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cw-blue), color-mix(in srgb, var(--cw-blue) 60%, var(--text-heading)));
}

.cw-hofstede-score-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.cw-hofstede-implications {
    padding: 34px 0 8px;
}

.cw-hofstede-implications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.cw-hofstede-implication-card {
    padding: 18px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 16px;
    background: var(--cw-hofstede-surface);
}

.cw-hofstede-implication-card h3 {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0;
}

.cw-hofstede-implication-card h3 .fas {
    color: var(--cw-blue);
}

.cw-hofstede-implication-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.cw-hofstede-dimension-deep {
    padding: 34px 0 8px;
}

.cw-hofstede-dimension-section {
    padding: 18px 20px;
    border-left: 3px solid var(--cw-blue);
    border-radius: 0 14px 14px 0;
    background: var(--cw-hofstede-surface-muted);
}

.cw-hofstede-dimension-section + .cw-hofstede-dimension-section {
    margin-top: 14px;
}

.cw-hofstede-dimension-section header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.cw-hofstede-dimension-section > p {
    margin: 0 0 9px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cw-hofstede-dimension-section > p:last-child {
    margin-bottom: 0;
}

.cw-hofstede-facts {
    padding: 34px 0 8px;
}

.cw-hofstede-facts-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cw-hofstede-facts-list li {
    position: relative;
    padding: 13px 16px 13px 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 12px;
    background: var(--cw-hofstede-surface-muted);
}

.cw-hofstede-facts-list li::before {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--cw-blue);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0a1";
}

.cw-hofstede-related {
    padding: 34px 0 8px;
}

.cw-hofstede-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.cw-hofstede-related-group {
    padding: 18px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 16px;
    background: var(--cw-hofstede-surface);
}

.cw-hofstede-related-group h3 {
    margin: 0 0 10px;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0;
}

.cw-hofstede-related-group ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cw-hofstede-related-group a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.cw-hofstede-related-group a::before {
    color: var(--cw-blue);
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.cw-hofstede-related-group a:hover,
.cw-hofstede-related-group a:focus-visible {
    color: var(--cw-blue);
}

@media (max-width: 767px) {
    .cw-hofstede-score-card-head {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-score-badge {
        min-width: 40px;
        height: 40px;
    }

    .cw-hofstede-dimension-section,
    .cw-hofstede-implication-card,
    .cw-hofstede-score-card,
    .cw-hofstede-related-group {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .cw-hofstede-education-table {
        min-width: 0;
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix {
        min-width: 0;
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix thead,
    .cw-hofstede-education-table.cw-hofstede-corr-matrix tr,
    .cw-hofstede-education-table.cw-hofstede-corr-matrix th,
    .cw-hofstede-education-table.cw-hofstede-corr-matrix td {
        display: revert;
        width: auto;
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix tbody tr {
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix tbody tr:last-child {
        border-bottom: 0;
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix th,
    .cw-hofstede-education-table.cw-hofstede-corr-matrix td {
        padding: 5px 4px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .cw-hofstede-education-table.cw-hofstede-corr-matrix tbody th {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--cw-hofstede-surface);
    }

    .cw-hofstede-education-table thead {
        display: none;
    }

    .cw-hofstede-education-table tr,
    .cw-hofstede-education-table th,
    .cw-hofstede-education-table td {
        display: block;
        width: 100%;
    }

    .cw-hofstede-education-table tbody tr {
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .cw-hofstede-education-table tbody tr:last-child {
        border-bottom: 0;
    }

    .cw-hofstede-education-table th,
    .cw-hofstede-education-table td {
        padding: 7px 0;
        border-bottom: 0;
    }

    .cw-hofstede-education-table th::before,
    .cw-hofstede-education-table td::before {
        display: block;
        margin-bottom: 3px;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 850;
        content: attr(data-label);
        text-transform: uppercase;
    }
}

.cw-hofstede-compare-picker {
    padding-top: 34px;
}

.cw-hofstede-compare-picker > h2 {
    margin: 0 0 16px;
    color: var(--text-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cw-hofstede-compare-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cw-hofstede-compare-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.cw-hofstede-compare-search {
    position: relative;
}

.cw-hofstede-compare-search > label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
}

.cw-hofstede-compare-search-input {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 24px;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 0 10px 0 14px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 10px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cw-hofstede-compare-search-input:focus-within {
    border-color: var(--cw-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cw-blue) 16%, transparent);
}

.cw-hofstede-compare-search-input > .fas {
    color: var(--cw-blue);
    font-size: 0.88rem;
}

.cw-hofstede-compare-search-input input {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    outline: 0;
}

.cw-hofstede-compare-search-input input::placeholder {
    color: var(--text-muted);
}

.cw-hofstede-compare-search-clear {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.cw-hofstede-compare-search-clear:hover {
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 12%, transparent);
}

.cw-hofstede-compare-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    overflow: hidden;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--cw-hofstede-surface);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-height: 320px;
    overflow-y: auto;
}

.cw-hofstede-compare-search-results li {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 9px 11px;
    text-align: left;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.cw-hofstede-compare-search-results li:hover,
.cw-hofstede-compare-search-results li:focus-visible,
.cw-hofstede-compare-search-results li.is-active {
    background: var(--cw-hofstede-accent-soft);
}

.cw-hofstede-compare-search-results li > span:first-child {
    flex: 1;
    min-width: 0;
}

.cw-hofstede-compare-search-results strong,
.cw-hofstede-compare-search-results small {
    display: block;
}

.cw-hofstede-compare-search-results strong {
    color: var(--text-heading);
    font-size: 0.88rem;
    font-weight: 750;
}

.cw-hofstede-compare-search-results small {
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.cw-hofstede-compare-search-results li > i {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
}

.cw-hofstede-compare-search-results li.is-empty {
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

.cw-hofstede-compare-swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 44px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 10px;
    background: var(--cw-hofstede-surface-muted);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cw-hofstede-compare-swap:hover,
.cw-hofstede-compare-swap:focus-visible {
    color: var(--cw-blue);
    border-color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
}

.cw-hofstede-compare-swap.swapping {
    transform: rotate(180deg);
}

.cw-hofstede-compare-submit {
    align-self: flex-end;
    white-space: nowrap;
}

.cw-hofstede-compare-row {
    padding: 24px;
    margin-bottom: 16px;
    background: var(--cw-hofstede-surface);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-compare-row-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.cw-hofstede-compare-row-head > div {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.cw-hofstede-compare-code {
    display: grid;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    place-items: center;
    color: var(--cw-black);
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--cw-blue);
    border-radius: 8px;
}

.cw-hofstede-compare-row-head h3 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cw-hofstede-compare-gap,
.cw-hofstede-compare-gap-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.cw-hofstede-compare-gap {
    margin-left: auto;
    padding: 4px 11px;
}

.cw-hofstede-compare-gap-label {
    padding: 2px 8px;
    font-weight: 750;
    font-size: 0.74rem;
}

.cw-tone-critical {
    color: #b3261e;
    background: color-mix(in srgb, #b3261e 12%, transparent);
}

.cw-tone-warning {
    color: #b05a00;
    background: color-mix(in srgb, #e07b00 16%, transparent);
}

.cw-tone-notice {
    color: #8a6d00;
    background: color-mix(in srgb, #c9a227 18%, transparent);
}

.cw-tone-info {
    color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
}

.cw-tone-success {
    color: #1c7a47;
    background: color-mix(in srgb, #1c7a47 12%, transparent);
}

.cw-hofstede-compare-bars {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cw-hofstede-compare-bar {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 46px;
    gap: 12px;
    align-items: center;
}

.cw-hofstede-compare-country {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-hofstede-compare-track {
    height: 14px;
    background: color-mix(in srgb, var(--border-strong) 45%, transparent);
    border-radius: 999px;
    overflow: hidden;
}

.cw-hofstede-compare-fill {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cw-blue), color-mix(in srgb, var(--cw-blue) 55%, var(--text-heading)));
}

.cw-hofstede-compare-fill.cw-fill-b {
    background: linear-gradient(90deg, color-mix(in srgb, var(--cw-blue) 55%, #5ee0d8), var(--cw-blue));
}

.cw-hofstede-compare-bar strong {
    color: var(--text-heading);
    font-size: 0.95rem;
    font-weight: 850;
    text-align: right;
}

.cw-hofstede-compare-interpretation {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--cw-hofstede-border);
}

.cw-hofstede-compare-interpretation p {
    margin: 9px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cw-hofstede-compare-interpretation p strong {
    color: var(--text-heading);
}

.cw-hofstede-compare-interpretation blockquote {
    margin: 11px 0 0;
    padding: 10px 16px;
    color: var(--text-secondary);
    background: var(--cw-hofstede-surface-muted);
    border-left: 3px solid var(--cw-blue);
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.cw-hofstede-compare-interpretation .cw-hofstede-insight {
    margin-top: 13px;
    padding: 12px 15px;
    color: var(--text-primary);
    background: var(--cw-hofstede-accent-soft);
    border-radius: 10px;
}

.cw-hofstede-compare-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cw-hofstede-compare-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: var(--cw-blue);
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cw-hofstede-compare-links a:hover,
.cw-hofstede-compare-links a:focus-visible {
    background: var(--cw-hofstede-accent-soft);
    border-color: var(--cw-blue);
}

@media (max-width: 900px) {
    .cw-hofstede-compare-bar {
        grid-template-columns: 130px minmax(0, 1fr) 44px;
    }
}

@media (max-width: 767px) {
    .cw-hofstede-compare-fields {
        grid-template-columns: 1fr;
    }

    .cw-hofstede-compare-swap {
        width: 100%;
        height: 40px;
        transform: rotate(90deg);
    }

    .cw-hofstede-compare-swap.swapping {
        transform: rotate(270deg);
    }

    .cw-hofstede-compare-submit {
        width: 100%;
        align-self: stretch;
    }

    .cw-hofstede-compare-row {
        padding: 18px 15px;
    }

    .cw-hofstede-compare-row-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cw-hofstede-compare-code {
        width: 42px;
        height: 42px;
    }

    .cw-hofstede-compare-row-head h3 {
        font-size: 1.05rem;
    }

    .cw-hofstede-compare-gap {
        margin-left: 0;
    }

    .cw-hofstede-compare-bar {
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 8px;
    }

    .cw-hofstede-compare-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .cw-hofstede-compare-country {
        grid-column: 1;
        grid-row: 1;
    }

    .cw-hofstede-compare-bar strong {
        grid-column: 2;
        grid-row: 1;
    }
}

.cw-hofstede-coming-soon {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 30px;
    text-align: center;
    background: var(--cw-hofstede-surface);
    border: 1px dashed var(--cw-blue);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-coming-soon-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
    border: 1px solid color-mix(in srgb, var(--cw-blue) 40%, var(--cw-hofstede-border));
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cw-hofstede-coming-soon h2 {
    margin: 4px 0 0;
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: 0;
}

.cw-hofstede-coming-soon > p {
    max-width: 560px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cw-hofstede-coming-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.cw-hofstede-coming-soon-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 11px 16px;
    color: var(--cw-blue);
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cw-hofstede-coming-soon-link:hover,
.cw-hofstede-coming-soon-link:focus-visible {
    border-color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
}

/* Cluster analysis page: cluster selector form */
.cw-hofstede-cluster-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
    margin: 26px 0 0;
    padding: 18px 20px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-cluster-form label {
    display: grid;
    gap: 7px;
    flex: 1 1 240px;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.cw-hofstede-cluster-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
}

.cw-hofstede-cluster-form select:focus-visible {
    outline: 2px solid var(--cw-blue);
    outline-offset: 2px;
    border-color: var(--cw-blue);
}

.cw-hofstede-cluster-form .cw-hofstede-compare-submit {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .cw-hofstede-cluster-form {
        justify-content: stretch;
    }

    .cw-hofstede-cluster-form .cw-hofstede-compare-submit {
        width: 100%;
    }
}

/* Correlation analysis page: dimension selector */
.cw-hofstede-correlation-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
    margin: 26px 0 0;
    padding: 18px 20px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-correlation-form label {
    display: grid;
    gap: 7px;
    flex: 1 1 200px;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.cw-hofstede-correlation-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
}

.cw-hofstede-correlation-form select:focus-visible {
    outline: 2px solid var(--cw-blue);
    outline-offset: 2px;
    border-color: var(--cw-blue);
}

.cw-hofstede-correlation-form .cw-hofstede-compare-submit {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .cw-hofstede-correlation-form {
        justify-content: stretch;
    }

    .cw-hofstede-correlation-form .cw-hofstede-compare-submit {
        width: 100%;
    }
}

/* Correlation analysis page: stat cards */
.cw-hofstede-corr-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.cw-hofstede-corr-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-corr-stat-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cw-hofstede-corr-stat-value {
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--text-heading);
}

.cw-hofstede-corr-stat-value.cw-tone-critical,
.cw-hofstede-corr-stat-value.cw-tone-warning,
.cw-hofstede-corr-stat-value.cw-tone-notice,
.cw-hofstede-corr-stat-value.cw-tone-info,
.cw-hofstede-corr-stat-value.cw-tone-success {
    align-self: flex-start;
    padding: 2px 9px;
    border-radius: 6px;
}

.cw-hofstede-corr-stat small {
    color: var(--text-muted);
    line-height: 1.45;
}

/* Correlation analysis page: scatter plot */
.cw-hofstede-corr-scatter {
    margin: 18px 0 0;
    padding: 22px;
    background: var(--cw-hofstede-surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cw-hofstede-corr-scatter svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 560px;
    margin: 0 auto;
}

.cw-hofstede-corr-scatter svg text {
    fill: var(--text-primary);
    font-family: inherit;
}

.cw-hofstede-corr-scatter svg line.cw-corr-axis {
    stroke: var(--border-strong);
    stroke-width: 1.5;
}

.cw-hofstede-corr-scatter svg line.cw-corr-grid {
    stroke: color-mix(in srgb, var(--border-color) 70%, transparent);
    stroke-width: 1;
}

.cw-hofstede-corr-scatter svg line.cw-corr-reg {
    stroke: #d63031;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.cw-hofstede-corr-scatter figcaption {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
    text-align: center;
}

/* Correlation analysis page: matrix */
.cw-hofstede-corr-matrix th,
.cw-hofstede-corr-matrix td {
    text-align: center;
}

.cw-corr-cell {
    font-weight: 700;
}

.cw-corr-diagonal {
    color: var(--cw-blue);
    background: color-mix(in srgb, var(--cw-blue) 14%, var(--bg-elevated));
    font-weight: 800;
}

.cw-corr-pos-strong {
    color: #167d3f;
    background: color-mix(in srgb, #167d3f 14%, transparent);
}

.cw-corr-pos {
    color: #5f7d0a;
    background: color-mix(in srgb, #6a950c 12%, transparent);
}

.cw-corr-neutral {
    color: var(--text-muted);
}

.cw-corr-neg {
    color: #b45a0a;
    background: color-mix(in srgb, #d16a0a 12%, transparent);
}

.cw-corr-neg-strong {
    color: #b3261e;
    background: color-mix(in srgb, #b3261e 14%, transparent);
}

.cw-corr-n-a {
    color: var(--text-muted);
}

/* Compact editorial refresh for Hofstede analysis pages. */
.cw-hofstede-dashboard {
    --cw-hofstede-surface: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    --cw-hofstede-surface-muted: color-mix(in srgb, var(--bg-secondary) 88%, var(--cw-blue) 3%);
    --cw-hofstede-border: color-mix(in srgb, var(--border-color) 74%, var(--cw-blue) 18%);
    padding: 18px 0 56px;
}

.cw-hofstede-dashboard > .container > .cw-hofstede-cluster {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cw-hofstede-dashboard .cw-hofstede-education-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 18px;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.cw-hofstede-dashboard .cw-hofstede-education-hero h1,
.cw-hofstede-dashboard .cw-hofstede-education-hero h2,
.cw-hofstede-intro h1 {
    max-width: 860px;
    margin: 4px auto 0;
    font-size: 2rem;
    line-height: 1.12;
}

.cw-hofstede-dashboard .cw-hofstede-education-hero > p,
.cw-hofstede-intro > p {
    max-width: 760px;
    margin: 10px auto 0;
    font-size: 0.94rem;
    line-height: 1.64;
}

.cw-hofstede-dashboard .cw-hofstede-education,
.cw-hofstede-country-picker,
.cw-hofstede-score-overview,
.cw-hofstede-implications,
.cw-hofstede-dimension-deep,
.cw-hofstede-facts,
.cw-hofstede-related,
.cw-hofstede-compare-picker {
    padding-top: 30px;
}

.cw-hofstede-dashboard .cw-hofstede-education-section {
    padding-top: 38px;
}

.cw-hofstede-dashboard .cw-hofstede-education-section > h2,
.cw-hofstede-compare-picker > h2,
.cw-hofstede-country-picker h2,
.cw-hofstede-score-overview h2,
.cw-hofstede-implications h2,
.cw-hofstede-dimension-deep h2,
.cw-hofstede-facts h2,
.cw-hofstede-related h2 {
    margin: 0 0 12px;
    color: var(--text-heading);
    font-size: 1.42rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.cw-hofstede-dashboard .cw-hofstede-education-section > p {
    max-width: 930px;
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.62;
}

.cw-hofstede-education-title {
    max-width: 760px;
    margin: 0 auto 16px;
    padding-bottom: 0;
    text-align: center;
    border-bottom: 0;
}

.cw-hofstede-education-title h2 {
    margin-top: 6px;
    font-size: 1.42rem;
}

.cw-hofstede-education-stats {
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
}

.cw-hofstede-education-stats span {
    min-height: 31px;
    padding: 0 10px;
    background: color-mix(in srgb, var(--cw-blue) 7%, transparent);
    border: 0;
    border-radius: 4px;
    font-size: 0.75rem;
}

.cw-hofstede-dimension-guide,
.cw-hofstede-compare-row,
.cw-hofstede-score-card,
.cw-hofstede-implication-card,
.cw-hofstede-dimension-section,
.cw-hofstede-facts-list li,
.cw-hofstede-related-group,
.cw-hofstede-info-grid article,
.cw-hofstede-use-grid article,
.cw-hofstede-profile,
.cw-hofstede-term-grid article,
.cw-hofstede-reference-layout article,
.cw-hofstede-cluster-stack .cw-hofstede-cluster,
.cw-hofstede-corr-stat,
.cw-hofstede-corr-scatter,
.cw-hofstede-data-notes,
.cw-hofstede-faq-list details {
    background: var(--cw-hofstede-surface);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

.cw-hofstede-dimension-guide,
.cw-hofstede-compare-row {
    margin-bottom: 12px;
    padding: 18px;
}

.cw-hofstede-dimension-guide > header {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 13px;
}

.cw-hofstede-dimension-guide > header > span,
.cw-hofstede-compare-code,
.cw-hofstede-score-badge {
    width: 42px;
    height: 42px;
    border-radius: 7px;
}

.cw-hofstede-dimension-guide h3,
.cw-hofstede-compare-row-head h3 {
    font-size: 1.06rem;
}

.cw-hofstede-dimension-guide header p,
.cw-hofstede-compare-interpretation p,
.cw-hofstede-compare-interpretation blockquote {
    font-size: 0.85rem;
}

.cw-hofstede-compare-picker,
.cw-hofstede-cluster-form,
.cw-hofstede-correlation-form {
    margin-top: 0;
}

.cw-hofstede-compare-form,
.cw-hofstede-cluster-form,
.cw-hofstede-correlation-form {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cw-hofstede-compare-search-input,
.cw-hofstede-compare-swap,
.cw-hofstede-cluster-form select,
.cw-hofstede-correlation-form select,
.cw-hofstede-picker-link {
    background: var(--bg-elevated);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 7px;
}

.cw-hofstede-cluster-form,
.cw-hofstede-correlation-form {
    gap: 12px;
}

.cw-hofstede-education-table-wrap,
.cw-hofstede-extremes-table-wrap {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--cw-hofstede-border);
    border-bottom: 1px solid var(--cw-hofstede-border);
    border-radius: 0;
}

.cw-hofstede-education-table th,
.cw-hofstede-education-table td {
    padding: 10px 11px;
}

.cw-hofstede-education-table thead th {
    background: transparent;
}

.cw-hofstede-education-table tbody tr:hover {
    background: color-mix(in srgb, var(--cw-blue) 4%, transparent);
}

.cw-hofstede-score-grid,
.cw-hofstede-implications-grid,
.cw-hofstede-related-grid,
.cw-hofstede-corr-stat-grid,
.cw-hofstede-info-grid,
.cw-hofstede-use-grid,
.cw-hofstede-term-grid,
.cw-hofstede-profile-grid,
.cw-hofstede-reference-layout,
.cw-hofstede-picker-grid {
    gap: 10px;
}

.cw-hofstede-score-card,
.cw-hofstede-implication-card,
.cw-hofstede-related-group,
.cw-hofstede-info-grid article,
.cw-hofstede-use-grid article,
.cw-hofstede-term-grid article,
.cw-hofstede-reference-layout article,
.cw-hofstede-corr-stat {
    padding: 16px;
}

.cw-hofstede-score-number {
    font-size: 1.78rem;
}

.cw-hofstede-score-bar {
    height: 8px;
}

.cw-hofstede-dimension-section {
    padding: 16px 18px;
    border-left: 3px solid var(--cw-blue);
    border-radius: 0 7px 7px 0;
}

.cw-hofstede-facts-list li {
    padding: 11px 14px 11px 36px;
}

.cw-hofstede-facts-list li::before {
    top: 14px;
    left: 14px;
}

.cw-hofstede-insight,
.cw-hofstede-important-note,
.cw-hofstede-compare-interpretation .cw-hofstede-insight {
    padding: 12px 14px;
    background: color-mix(in srgb, var(--cw-blue) 7%, transparent);
    border-left: 3px solid var(--cw-blue);
    border-radius: 0 7px 7px 0;
}

.cw-hofstede-compare-interpretation {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--cw-hofstede-border);
}

.cw-hofstede-compare-links {
    gap: 8px;
}

.cw-hofstede-compare-links a {
    padding: 7px 10px;
    background: transparent;
    border: 0;
    border-radius: 4px;
}

.cw-hofstede-compare-links a:hover,
.cw-hofstede-compare-links a:focus-visible {
    background: color-mix(in srgb, var(--cw-blue) 8%, transparent);
}

.cw-hofstede-faq-list {
    gap: 6px;
}

.cw-hofstede-faq-list summary {
    min-height: 48px;
    padding: 0 15px;
    font-size: 0.88rem;
}

.cw-hofstede-faq-list p {
    padding: 0 15px 15px;
    font-size: 0.84rem;
}

.cw-hofstede-corr-scatter {
    padding: 16px;
}

@media (max-width: 820px) {
    .cw-hofstede-dashboard .cw-hofstede-education-hero {
        padding: 0 0 16px;
    }

    .cw-hofstede-dashboard .cw-hofstede-education-hero h1,
    .cw-hofstede-dashboard .cw-hofstede-education-hero h2,
    .cw-hofstede-intro h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .cw-hofstede-dashboard {
        padding-top: 15px;
        padding-bottom: 44px;
    }

    .cw-hofstede-dashboard .cw-hofstede-education-section,
    .cw-hofstede-score-overview,
    .cw-hofstede-implications,
    .cw-hofstede-dimension-deep,
    .cw-hofstede-facts,
    .cw-hofstede-related,
    .cw-hofstede-compare-picker {
        padding-top: 30px;
    }

    .cw-hofstede-dashboard .cw-hofstede-education-section > h2,
    .cw-hofstede-compare-picker > h2,
    .cw-hofstede-country-picker h2,
    .cw-hofstede-score-overview h2,
    .cw-hofstede-implications h2,
    .cw-hofstede-dimension-deep h2,
    .cw-hofstede-facts h2,
    .cw-hofstede-related h2 {
        font-size: 1.28rem;
    }

    .cw-hofstede-dimension-guide,
    .cw-hofstede-compare-row,
    .cw-hofstede-score-card,
    .cw-hofstede-implication-card,
    .cw-hofstede-related-group,
    .cw-hofstede-info-grid article,
    .cw-hofstede-use-grid article,
    .cw-hofstede-term-grid article,
    .cw-hofstede-reference-layout article,
.cw-hofstede-corr-stat {
        padding: 14px;
    }
}

/* About-page alignment pass. */
.cw-hofstede-dashboard {
    --cw-hofstede-surface: color-mix(in srgb, var(--bg-elevated) 86%, var(--cw-blue) 4%);
    --cw-hofstede-surface-muted: color-mix(in srgb, var(--bg-secondary) 86%, var(--cw-blue) 3%);
}

body.light-mode .cw-hofstede-dashboard {
    --cw-hofstede-surface: color-mix(in srgb, var(--bg-elevated) 94%, var(--cw-blue) 4%);
    --cw-hofstede-surface-muted: color-mix(in srgb, var(--bg-secondary) 92%, var(--cw-blue) 3%);
}

.cw-hofstede-dashboard .cw-hofstede-education-section {
    padding-top: 34px;
}

.cw-hofstede-dashboard .cw-hofstede-education-section > .cw-hofstede-kicker,
.cw-hofstede-compare-picker > .cw-hofstede-kicker {
    display: block;
    width: fit-content;
    margin: 0 auto 6px;
    color: var(--cw-blue);
}

.cw-hofstede-dashboard .cw-hofstede-education-section > h2,
.cw-hofstede-compare-picker > h2 {
    margin: 0 auto 12px;
    text-align: center;
}

.cw-hofstede-score-overview .cw-hofstede-kicker,
.cw-hofstede-implications > .cw-hofstede-kicker,
.cw-hofstede-dimension-deep > .cw-hofstede-kicker,
.cw-hofstede-facts > .cw-hofstede-kicker,
.cw-hofstede-related > .cw-hofstede-kicker,
.cw-hofstede-country-picker > .cw-hofstede-kicker {
    display: block;
    width: fit-content;
    margin: 0 auto 8px;
}

.cw-hofstede-score-overview h2,
.cw-hofstede-implications > h2,
.cw-hofstede-dimension-deep > h2,
.cw-hofstede-facts > h2,
.cw-hofstede-related > h2,
.cw-hofstede-country-picker > h2 {
    text-align: center;
}

.cw-hofstede-education-table-wrap,
.cw-hofstede-extremes-table-wrap {
    border-top: 0;
    border-bottom: 0;
}

.cw-hofstede-dimension-section {
    border-left: 0;
    border-radius: 7px;
}

.cw-hofstede-compare-interpretation {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0;
}

.cw-hofstede-insight,
.cw-hofstede-important-note,
.cw-hofstede-compare-interpretation .cw-hofstede-insight {
    border-left: 0;
    border-radius: 7px;
}



/* ============================================================
   Seamless page refresh -- aligns dashboard pages with the
   hofstede-cultural-dimensions-explained (about) aesthetic.
   No heavy card borders; sections flow on the page background.
   ============================================================ */

/* Hero: strip the filled box / left-border treatment */
.cw-hofstede-education-hero {
    padding: 22px 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.cw-hofstede-education-hero h1,
.cw-hofstede-education-hero h2 {
    font-size: 1.95rem;
}

.cw-hofstede-education-hero > p {
    margin-top: 10px;
    font-size: 0.94rem;
    line-height: 1.65;
}

/* Hero lede */
.cw-hofstede-lede {
    max-width: 860px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* Section spacing compact */
.cw-hofstede-education-section {
    padding-top: 36px;
}

/* Dimension guide -- softer, no border */
.cw-hofstede-dimension-guide {
    padding: 18px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}
.cw-hofstede-dimension-guide > header {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.cw-hofstede-dimension-guide > header > span {
    width: 46px;
    height: 46px;
}

/* Use-grid articles */
.cw-hofstede-use-grid article {
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}
.cw-hofstede-use-grid article:hover {
    background: color-mix(in srgb, var(--cw-blue) 8%, var(--bg-elevated));
    border-color: transparent;
    transform: none;
}

/* Score cards */
.cw-hofstede-score-card {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
}
.cw-hofstede-score-grid { gap: 10px; }
.cw-hofstede-score-number { font-size: 1.75rem; }

/* Implication cards */
.cw-hofstede-implication-card {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
}
.cw-hofstede-implications-grid { gap: 10px; }

/* Related groups */
.cw-hofstede-related-group {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
}

/* Facts list */
.cw-hofstede-facts-list li {
    padding: 10px 14px 10px 34px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
}

/* Compare row */
.cw-hofstede-compare-row {
    padding: 18px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

/* Selector forms */
.cw-hofstede-cluster-form,
.cw-hofstede-correlation-form {
    margin-top: 16px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

/* Corr stat cards */
.cw-hofstede-corr-stat {
    padding: 12px 14px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

/* Scatter plot */
.cw-hofstede-corr-scatter {
    margin-top: 14px;
    padding: 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

/* FAQ accordions */
.cw-hofstede-faq-list details {
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
}
.cw-hofstede-faq-list details[open],
.cw-hofstede-faq-list details:hover {
    background: color-mix(in srgb, var(--cw-blue) 8%, var(--bg-elevated));
    border-color: transparent;
}

/* Education table wrapper */
.cw-hofstede-education-table-wrap {
    background: color-mix(in srgb, var(--bg-elevated) 92%, var(--cw-blue) 2%);
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, var(--cw-blue) 12%);
}

/* Section heading */
.cw-hofstede-education-title h2 {
    margin-top: 4px;
    font-size: 1.38rem;
}

/* Compact top gaps */
.cw-hofstede-compare-picker { padding-top: 20px; }
.cw-hofstede-score-overview { padding-top: 22px; }
.cw-hofstede-dimension-deep,
.cw-hofstede-implications,
.cw-hofstede-facts,
.cw-hofstede-related { padding-top: 22px; }

/* Data notes */
.cw-hofstede-data-notes {
    margin-top: 10px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

/* Dimension section strips */
.cw-hofstede-dimension-section {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border-left: 3px solid var(--cw-blue);
    border-radius: 0 7px 7px 0;
}

/* Closing strip */
.cw-hofstede-section-closing {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 36px;
    padding: 15px 18px;
    background: color-mix(in srgb, var(--cw-blue) 8%, var(--bg-elevated));
    border: 1px solid color-mix(in srgb, var(--cw-blue) 30%, var(--border-color));
    border-radius: 7px;
}
.cw-hofstede-section-closing > .fas {
    color: var(--cw-blue);
    font-size: 1.1rem;
    text-align: center;
}
.cw-hofstede-section-closing p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.5;
}
.cw-hofstede-section-closing strong { color: var(--text-primary); }
.cw-hofstede-section-closing a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--cw-blue);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.cw-hofstede-section-closing a:hover { color: var(--text-primary); }

@media (max-width: 640px) {
    .cw-hofstede-section-closing {
        grid-template-columns: 22px minmax(0, 1fr);
    }
    .cw-hofstede-section-closing a { grid-column: 2; }
}

body.light-mode .cw-hofstede-education-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Universal Hero Section with Image (matching About page) */
.cw-hofstede-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 40px;
    align-items: center;
    justify-items: center;
    padding: 24px 0 16px;
}

.cw-hofstede-page-hero-copy {
    max-width: 720px;
    text-align: left;
}

.cw-hofstede-page-hero-copy h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    margin: 6px 0 10px;
    color: var(--text-heading);
}

.cw-hofstede-page-hero-copy .cw-hofstede-lede {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.cw-hofstede-page-hero-art {
    width: min(100%, 280px);
    margin: 0 auto;
}

.cw-hofstede-hero-frame {
    position: relative;
    aspect-ratio: 1.15;
    overflow: hidden;
    background: #12363a;
    border: 1px solid color-mix(in srgb, var(--cw-blue) 55%, var(--border-strong));
    border-radius: 8px;
    box-shadow: 10px 11px 0 color-mix(in srgb, var(--cw-blue) 14%, transparent);
}

.cw-hofstede-hero-frame img {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-hofstede-hero-frame .cw-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #efffff;
    background: #12363a;
    text-align: center;
    gap: 8px;
}

.cw-hofstede-hero-frame .cw-hero-fallback .fas {
    color: var(--cw-blue);
    font-size: 2.6rem;
}

.cw-hofstede-hero-frame .cw-hero-fallback span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ddae45;
}

/* Authors Section in Dashboard pages */
.cw-hofstede-authors-credit {
    padding-top: 36px;
}

.cw-hofstede-authors-credit .cw-hofstede-about-section-title {
    max-width: 680px;
    margin: 0 auto 16px;
    text-align: center;
}

.cw-hofstede-authors-credit .cw-hofstede-about-section-title h2 {
    font-size: 1.45rem;
    color: var(--text-heading);
    margin: 4px 0 0;
}

.cw-hofstede-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 1040px);
    margin: 14px auto 0;
}

.cw-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 4%);
    border-radius: 8px;
}

.cw-author-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #12363a;
    border: 2px solid var(--cw-blue);
}

.cw-author-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.cw-author-avatar .cw-author-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--cw-blue);
    font-size: 1.25rem;
    background: #12363a;
}

.cw-author-bio {
    flex: 1;
    min-width: 0;
}

.cw-author-bio strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.3;
}

.cw-author-bio span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .cw-hofstede-page-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cw-hofstede-page-hero-copy {
        text-align: center;
    }
    .cw-hofstede-authors-grid {
        grid-template-columns: 1fr;
    }
}


/* Curved border-radius (12px) for containers with solid thicker primary left borders */
.cw-hofstede-cluster,
.cw-hofstede-dimension-section,
.cw-hofstede-insight,
.cw-hofstede-important-note,
.cw-hofstede-timeline li,
.cw-hofstede-compare-interpretation blockquote,
.cw-hofstede-glossary-quote {
    border-radius: 12px !important;
}

/* Hide broken image alt text artifacts while graceful fallbacks are visible */
.cw-hofstede-hero-frame img,
.cw-hofstede-about-book-art img,
.cw-hofstede-about-map-art img,
.cw-author-avatar img {
    font-size: 0 !important;
    color: transparent !important;
}

/* =====================================================
   Collapsible comparison link browser (hub + pair pages)
   ===================================================== */
.cw-compare-disclosure {
    margin-top: 16px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 14px;
    background: var(--cw-hofstede-surface);
    overflow: hidden;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--cw-blue) 10%, transparent) inset;
}

.cw-compare-disclosure > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    color: var(--text-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    user-select: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.cw-compare-disclosure > summary::-webkit-details-marker {
    display: none;
}

.cw-compare-disclosure > summary::marker {
    content: "";
}

.cw-compare-disclosure > summary:hover,
.cw-compare-disclosure > summary:focus-visible {
    background: var(--cw-hofstede-accent-soft);
    color: var(--cw-blue);
    outline: none;
}

.cw-compare-disclosure-icon {
    color: var(--cw-blue);
    font-size: 0.92rem;
}

.cw-compare-disclosure-label {
    flex: 1 1 auto;
}

.cw-compare-disclosure-count {
    flex: 0 0 auto;
    padding: 2px 10px;
    border: 1px solid color-mix(in srgb, var(--cw-blue) 34%, transparent);
    border-radius: 999px;
    background: var(--cw-hofstede-accent-soft);
    color: var(--cw-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.cw-compare-disclosure-chevron {
    flex: 0 0 auto;
    color: var(--cw-blue);
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.cw-compare-disclosure[open] > summary {
    border-bottom: 1px solid var(--cw-hofstede-border);
}

.cw-compare-disclosure[open] > summary .cw-compare-disclosure-chevron {
    transform: rotate(180deg);
}

.cw-hofstede-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 8px;
    max-height: 360px;
    padding: 14px 16px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cw-hofstede-quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 5%);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cw-hofstede-quick-links a::before {
    content: "\2192";
    flex: 0 0 auto;
    color: var(--cw-blue);
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 0.18s ease;
}

.cw-hofstede-quick-links a:hover,
.cw-hofstede-quick-links a:focus-visible {
    border-color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
    color: var(--cw-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--cw-blue) 18%, transparent);
    outline: none;
}

.cw-hofstede-quick-links a:hover::before {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .cw-hofstede-quick-links {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

    .cw-compare-disclosure-label {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-compare-disclosure-chevron,
    .cw-hofstede-quick-links a,
    .cw-hofstede-quick-links a::before,
    .cw-hofstede-picker-link,
    .cw-hofstede-picker-link::before {
        transition: none;
    }
}

/* =====================================================
   Country picker grid (reuses the disclosure component)
   ===================================================== */
.cw-hofstede-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
    gap: 8px;
    max-height: 380px;
    padding: 14px 16px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cw-hofstede-picker-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--cw-blue) 5%);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cw-hofstede-picker-link::before {
    content: "\2192";
    flex: 0 0 auto;
    color: var(--cw-blue);
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 0.18s ease;
}

.cw-hofstede-picker-link:hover,
.cw-hofstede-picker-link:focus-visible {
    border-color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
    color: var(--cw-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--cw-blue) 18%, transparent);
    outline: none;
}

.cw-hofstede-picker-link:hover::before {
    transform: translateX(2px);
}

/* =====================================================
   "Country not found" empty state
   ===================================================== */
.cw-hofstede-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding: 34px 24px 30px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid var(--cw-hofstede-border);
    border-radius: 16px;
    background: var(--cw-hofstede-surface);
}

.cw-hofstede-not-found-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid color-mix(in srgb, var(--cw-blue) 32%, transparent);
    border-radius: 50%;
    color: var(--cw-blue);
    background: var(--cw-hofstede-accent-soft);
    font-size: 1.45rem;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--cw-blue) 6%, transparent);
}

.cw-hofstede-not-found-body {
    max-width: 620px;
}

.cw-hofstede-not-found-body h2 {
    margin: 0 0 8px;
    color: var(--text-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cw-hofstede-not-found-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cw-hofstede-not-found-body p strong {
    color: var(--text-primary);
}

.cw-hofstede-not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .cw-hofstede-picker-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
}

/* Country profile links (any page linking into the analysis tool) use the primary blue. */
a[href*="/cultural-dimensions-analysis-tool/"] {
    color: var(--cw-blue);
}

a[href*="/cultural-dimensions-analysis-tool/"]:hover,
a[href*="/cultural-dimensions-analysis-tool/"]:focus-visible {
    color: var(--cw-blue-dark);
}

/* =====================================================
   Very small phones (<=400px): tighter typography + space
   ===================================================== */
@media (max-width: 400px) {
    .cw-hofstede-page-hero {
        gap: 18px;
        padding: 12px 0 6px;
    }

    .cw-hofstede-page-hero-copy h1 {
        font-size: 1.32rem;
    }

    .cw-hofstede-page-hero-copy .cw-hofstede-lede,
    .cw-hofstede-lede {
        font-size: 0.9rem;
    }

    .cw-hofstede-page-hero-art {
        width: min(70%, 180px);
    }

    .cw-hofstede-education-hero h1,
    .cw-hofstede-education-hero h2,
    .cw-hofstede-dashboard .cw-hofstede-education-hero h1,
    .cw-hofstede-dashboard .cw-hofstede-education-hero h2,
    .cw-hofstede-intro h1 {
        font-size: 1.45rem;
    }

    .cw-hofstede-dashboard .cw-hofstede-education-section > h2,
    .cw-hofstede-compare-picker > h2,
    .cw-hofstede-country-picker h2,
    .cw-hofstede-score-overview h2,
    .cw-hofstede-implications h2,
    .cw-hofstede-dimension-deep h2,
    .cw-hofstede-facts h2,
    .cw-hofstede-related h2 {
        font-size: 1.12rem;
    }

    .cw-hofstede-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.05em;
    }

    .cw-hofstede-dimension-guide,
    .cw-hofstede-compare-row,
    .cw-hofstede-score-card,
    .cw-hofstede-implication-card,
    .cw-hofstede-related-group,
    .cw-hofstede-info-grid article,
    .cw-hofstede-use-grid article,
    .cw-hofstede-term-grid article,
    .cw-hofstede-reference-layout article {
        padding: 13px;
    }

    .cw-hofstede-dimension-section {
        padding: 13px 14px;
    }

    .cw-hofstede-cluster {
        padding: 16px 13px;
    }

    .cw-hofstede-corr-scatter {
        padding: 12px;
    }

    .cw-hofstede-corr-stat {
        padding: 11px 12px;
    }

    .cw-hofstede-compare-links a {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .cw-hofstede-compare-bar strong {
        font-size: 0.88rem;
    }

    .cw-hofstede-cluster-form,
    .cw-hofstede-correlation-form {
        padding: 12px 13px;
    }

    .cw-hofstede-compare-search-results li {
        padding: 13px 11px;
    }

    .cw-hofstede-not-found {
        padding: 26px 16px;
    }

    .cw-hofstede-compare-row-head h3 {
        font-size: 0.98rem;
    }
}
