/* W11 Label atlas (.w11-) */
.w11 { font-variant-numeric: tabular-nums; position: relative; }
.w11-intro { margin-bottom: 20px; max-width: 720px; }
.w11-title { margin: 0 0 8px; }
.w11-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.w11-switch { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--color-surface-blue); }
.w11-switch .s-chip { border-color: transparent; background: transparent; }
.w11-switch .s-chip[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.w11-field { display: inline-flex; align-items: center; gap: 8px; }
.w11-field[hidden] { display: none; }
.w11-field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; }
.w11-select { width: auto; min-width: 200px; max-width: 100%; }
.w11-select-wide { min-width: 280px; }
.w11-domainbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--color-surface-violet); font-size: 14.5px; }
.w11-domainbar[hidden] { display: none; }
.w11-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 16px; font-size: 13.5px; color: var(--color-text-secondary); }
.w11-legend p { margin: 0; }
.w11-legend-scale { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--color-text-muted); }
.w11-legend-key { margin-left: 8px; }

/* Scorebolletjes: kleur + getal (contrast via donkere tekst naast de bol) */
.w11-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.w11-s1 { background: var(--color-score-1); } .w11-s2 { background: var(--color-score-2); } .w11-s3 { background: var(--color-score-3); }
.w11-s4 { background: var(--color-score-4); } .w11-s5 { background: var(--color-score-5); }
.w11-scores { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; justify-content: flex-end; }
.w11-score { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--color-text-primary); white-space: nowrap; min-width: 52px; }
.w11-score-k { font-size: 11px; font-weight: 700; color: var(--color-text-muted); }
.w11-score-none { font-weight: 500; color: var(--color-text-muted); font-size: 13px; }
.w11-muted { color: var(--color-text-muted); font-size: 13.5px; }

/* (a) By label */
.w11-group { margin-bottom: 18px; }
.w11-group-title { margin: 0 0 6px; padding: 8px 0; font-size: 15px; font-weight: 800; color: var(--color-text-primary); border-bottom: 2px solid var(--color-border); }
.w11-group-title span { font-weight: 500; font-size: 13px; color: var(--color-text-muted); margin-left: 6px; }
.w11-rows { list-style: none; margin: 0; padding: 0; }
.w11-row { width: 100%; display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(80px, 1fr) 44px auto; align-items: center; gap: 14px; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--color-border); background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; border-radius: 8px; }
.w11-row:hover { background: var(--color-bg); }
.w11-row:focus-visible { box-shadow: var(--focus-ring); }
.w11-row-name { font-weight: 600; font-size: 15px; color: var(--color-text-primary); }
.w11-row:hover .w11-row-name { color: var(--color-primary); }
.w11-bar { display: block; height: 10px; border-radius: 999px; background: var(--color-chart-faint); overflow: hidden; min-width: 40px; }
.w11-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--color-primary); }
.w11-row-meta { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.w11-count { font-weight: 700; font-size: 14px; text-align: right; color: var(--color-text-primary); }

/* (b) By industry: heatmap */
.w11-heat-scroll { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.w11-heat { border-collapse: separate; border-spacing: 3px; min-width: 900px; width: 100%; font-size: 13px; }
.w11-heat th { font-weight: 700; color: var(--color-text-secondary); text-align: left; padding: 4px 6px; }
.w11-heat thead th { vertical-align: bottom; text-align: center; font-size: 12px; line-height: 1.2; }
.w11-heat tbody th { white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }
.w11-heat-corner { text-align: left !important; }
.w11-heat td { padding: 0; }
.w11-heat-cell { width: 100%; min-width: 52px; height: 38px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; color: var(--color-text-primary); }
.w11-heat-cell:focus-visible { box-shadow: var(--focus-ring); }
.w11-heat-cell:hover { outline: 2px solid var(--color-text-primary); outline-offset: -2px; }
.w11-h0 { background: var(--color-surface-subtle); color: var(--color-text-muted); }
.w11-h1 { background: #EAF2FF; } .w11-h2 { background: #C8DAFF; } .w11-h3 { background: #9DB8FF; }
.w11-h4 { background: #1E5BFF; color: #fff; } .w11-h5 { background: #123E9E; color: #fff; }
.w11-heat-note { margin: 10px 0 0; font-size: 13px; color: var(--color-text-muted); }

/* Zijpaneel */
.w11-backdrop { position: fixed; inset: 0; z-index: 290; background: rgba(7, 26, 61, .35); }
.w11-backdrop[hidden] { display: none; }
.w11-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 300; width: min(460px, 100%); overflow-y: auto; background: #fff; box-shadow: -12px 0 38px rgba(7, 26, 61, .16); padding: 28px; outline: none; animation: w11-slide .2s ease; }
.w11-panel[hidden] { display: none; }
@keyframes w11-slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.w11-panel-head { position: relative; padding-right: 44px; }
.w11-panel-domain { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--color-ai-accent); }
.w11-panel-title, .w11-summary-title { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--color-text-primary); }
.w11-summary-title { font-size: 21px; }
.w11-close { position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--color-text-primary); }
.w11-close:hover { background: var(--color-surface-blue); }
.w11-panel-desc { margin: 0 0 14px; color: var(--color-text-secondary); font-size: 15px; line-height: 1.55; }
.w11-panel-count { margin: 0 0 8px; font-size: 15px; }
.w11-panel-avg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: 14.5px; color: var(--color-text-secondary); }
.w11-panel-avg strong { color: var(--color-text-primary); }
.w11-panel-scores .w11-scores { justify-content: flex-start; }
.w11-panel-sub { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-brand-teal); }
.w11-panel-empty { margin-top: 10px; padding: 18px; }
.w11-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.w11-dist li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 28px; gap: 10px; align-items: center; font-size: 13.5px; padding: 2px 4px; border-radius: 6px; }
.w11-dist li.is-active { background: var(--color-surface-blue); font-weight: 700; }
.w11-dist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w11-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.w11-examples li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 12px; }
.w11-examples a { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.w11-examples span { font-size: 12.5px; color: var(--color-text-muted); }
.w11-panel-cta { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--color-surface-blue); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.w11-panel-cta p { margin: 0; font-weight: 600; color: var(--color-text-primary); }
.w11-footnote { margin-top: 14px; }
.w11-skeleton { display: grid; gap: 10px; }
.w11-skel-row { height: 40px; }

/* Compact */
.w11-summary { margin-bottom: 14px; }
.w11-ctable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.w11-ctable th, .w11-ctable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.w11-ctable thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.w11-ctable tbody th { font-weight: 600; color: var(--color-text-primary); }
.w11-ctable .w11-scores { justify-content: flex-start; }
.w11-cbar { display: grid; grid-template-columns: minmax(60px, 140px) 28px; gap: 8px; align-items: center; }

/* Teaser */
.w11-teaser-lead { margin: 0 0 14px; font-weight: 600; color: var(--color-text-primary); }
.w11-teaser-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 12px; }
.w11-teaser-head { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-brand-teal); }
.w11-teaser-list { list-style: none; margin: 0; padding: 0; }
.w11-teaser-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid var(--color-border); }
.w11-teaser-name { display: grid; font-weight: 600; font-size: 14.5px; color: var(--color-text-primary); }
.w11-teaser-name span { font-weight: 400; font-size: 12.5px; color: var(--color-text-muted); }
.w11-teaser-foot { display: grid; gap: 6px; }
.w11-teaser-foot .s-source { margin: 0; }

@media (max-width: 767px) {
    .w11-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .w11-switch { align-self: flex-start; }
    .w11-field { flex-direction: column; align-items: stretch; gap: 4px; }
    .w11-select, .w11-select-wide { min-width: 0; width: 100%; }
    .w11-row { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 10px; padding: 10px 6px; }
    .w11-row .w11-bar { grid-column: 1 / -1; grid-row: 2; }
    .w11-row .w11-scores { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
    .w11-panel { width: 100%; top: auto; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 22px 16px; }
    .w11-teaser-cols { grid-template-columns: 1fr; }
    .w11-heat tbody th { white-space: normal; min-width: 110px; max-width: 120px; font-size: 12px; line-height: 1.25; }
    .w11-legend-key { margin-left: 0; }
}
html.w11-panel-open { overflow: hidden; }
@media (min-width: 768px) { html.w11-panel-open { overflow: auto; } }
