/* Tokenisierung: "Who may take part" matrix + Off-plan (2026-12-03, Vorschau). Mobile first, logical properties for RTL. */
.mx-section{scroll-margin-top:var(--anchor-scroll-margin,110px)}
#tcWho,#tcOffPlan{scroll-margin-top:var(--anchor-scroll-margin,110px)}
.mx-lead{max-width:62rem}
.mx-disclaimer{display:flex;gap:10px;align-items:flex-start;margin:16px 0 8px;padding:12px 14px;border:1px solid #e0e0e0;border-inline-start:5px solid #E20074;border-radius:10px;background:#fff7fb;color:#1a1a1a}
.mx-disclaimer strong{font-weight:700;line-height:1.45}
.mx-i{flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:#E20074;color:#fff;font:700 .85rem/22px Georgia,serif;text-align:center;font-style:italic}
.mx-today{margin:0 0 14px;color:#6c757d}
/* chips */
.mx-chip{display:inline-flex;align-items:flex-start;gap:8px;padding:6px 10px;border-radius:10px;border:1px solid transparent;font-size:.86rem;line-height:1.3;font-weight:600;max-width:100%;box-sizing:border-box}
.mx-ic{flex:0 0 auto;width:20px;height:20px;border-radius:50%;text-align:center;font:700 .8rem/20px -apple-system,'Segoe UI',Roboto,'Noto Sans Symbols 2','DejaVu Sans',sans-serif}
.mx-ct{min-width:0;overflow-wrap:anywhere}
.mx-sub{display:block;font-weight:500;font-size:.76rem;opacity:.9;margin-top:1px}
.mx-g{background:#e6f6ec;border-color:#9fd8b6;color:#12602f}.mx-g .mx-ic{background:#22a55a;color:#fff}
.mx-y{background:#fff3d9;border-color:#f3cf86;color:#7a4a00}.mx-y .mx-ic{background:#f59e0b;color:#fff}
.mx-n{background:#eef0f3;border-color:#d3d8de;color:#505a66}.mx-n .mx-ic{background:#9aa4b0;color:#fff}
/* legend */
.mx-legend{margin:14px 0 18px;padding:12px 14px;border:1px solid #e0e0e0;border-radius:12px;background:#fff}
.mx-legt{margin:0 0 8px;font-size:1rem}
.mx-legend ul{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.mx-legend li{display:flex;align-items:center;gap:10px;font-weight:600;font-size:.92rem}
.mx-legend li .mx-chip{padding:4px;border-radius:50%;width:auto;flex:0 0 auto}
.mx-legend p{margin:0}
@media(min-width:900px){.mx-legend ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* matrix: mobile = one card per class */
.mx-matrix{display:grid;gap:14px;margin:0 0 28px}
.mx-head{display:none}
.mx-row{border:1px solid #e0e0e0;border-radius:14px;background:#fff;overflow:hidden;min-width:0}
.mx-class{display:block;padding:12px 14px;background:linear-gradient(135deg,#E20074,#b8005a);color:#fff;font-weight:700;text-decoration:none}
.mx-class:hover{color:#fff;text-decoration:underline}
.mx-cell{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 14px;border-top:1px solid #f0f0f0;min-width:0}
.mx-cell:first-of-type{border-top:0}
.mx-gl{flex:1 1 38%;min-width:0;font-weight:600;font-size:.88rem;color:#1a1a1a;padding-top:6px;overflow-wrap:anywhere}
.mx-chips .mx-chip{width:100%}
.mx-chips{flex:1 1 56%;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
/* matrix: desktop = table-like grid */
@media(min-width:900px){
  .mx-matrix{gap:0;border:1px solid #e0e0e0;border-radius:14px;overflow:hidden;background:#fff}
  .mx-head{display:grid}
  .mx-row{display:grid;grid-template-columns:minmax(150px,1.2fr) repeat(5,minmax(0,1fr));border:0;border-radius:0;border-top:1px solid #e0e0e0;align-items:stretch}
  .mx-row.mx-head{border-top:0;background:linear-gradient(135deg,#E20074,#b8005a);color:#fff;font-weight:700;font-size:.88rem}
  .mx-head > div{padding:12px 10px}
  .mx-class{background:#fafbfd;color:#1a1a1a;padding:12px 10px;display:flex;align-items:center;border-inline-end:1px solid #eee}
  .mx-class:hover{color:#E20074}
  .mx-cell{display:block;border-top:0;padding:10px 8px;border-inline-end:1px solid #f0f0f0}
  .mx-cell:last-child{border-inline-end:0}
  .mx-gl{display:none}
  .mx-chips{align-items:stretch}
  .mx-chips .mx-chip{width:100%}
}
/* groups + explanations */
.mx-groups,.mx-expl{margin-bottom:26px}
.mx-groups h4,.mx-expl h4{margin:0 0 6px;font-size:1rem}
.mx-expl h4 a{color:#b8005a;text-decoration:none}.mx-expl h4 a:hover{text-decoration:underline}
.mx-section h3.serif{margin:22px 0 12px}
/* off-plan */
.mx-offbadge{margin:8px 0 14px}
.mx-offtext{max-width:62rem}
.mx-offtext h3{margin:18px 0 8px;font-size:1.05rem}
.mx-offlist{padding-inline-start:1.2rem}
/* notes on class / project pages */
.mx-kenya-note{margin-top:10px;padding:10px 12px;border-inline-start:4px solid #E20074;background:#fff7fb;border-radius:8px}
.mx-seewho{margin:10px 0 0}
.mx-devnote{margin-top:14px}
[dir=rtl] .mx-i{font-style:normal}
