/* Text size levels for the admin app (requested by David, Teams, 18 Nov 2026: "the font is too small").
   app.css writes every font size of 20px or less as var(--fs-N, Npx): with no level set, nothing changes.
   js/admin/text-size.js sets <html data-text-size="larger|largest"> from the switch in the menu's Appearance row.
   The second half catches the sizes written straight into the page code (style="font-size:11px"), which a
   variable cannot reach: an attribute match with !important outranks an inline style that has none.
   Today -> Larger -> Largest: 9/11/12, 10/12/13, 11/13/14, 11.5/13/14, 12/14/15, 12.5/14/15, 13/15/16, 14/15/16, 15/16/17, 16/17/18, 17/18/19, 18/19/20, 20/21/22 (px); bigger sizes stay. */
html[data-text-size="larger"] {
  --fs-9:11px; --fs-10:12px; --fs-11:13px; --fs-11-5:13px; --fs-12:14px; --fs-12-5:14px; --fs-13:15px; --fs-14:15px; --fs-15:16px; --fs-16:17px; --fs-17:18px; --fs-18:19px; --fs-20:21px;
}
html[data-text-size="largest"] {
  --fs-9:12px; --fs-10:13px; --fs-11:14px; --fs-11-5:14px; --fs-12:15px; --fs-12-5:15px; --fs-13:16px; --fs-14:16px; --fs-15:17px; --fs-16:18px; --fs-17:19px; --fs-18:20px; --fs-20:22px;
}
html[data-text-size] [style*="font-size:9px"], html[data-text-size] [style*="font-size: 9px"] { font-size: var(--fs-9) !important; }
html[data-text-size] [style*="font-size:10px"], html[data-text-size] [style*="font-size: 10px"] { font-size: var(--fs-10) !important; }
html[data-text-size] [style*="font-size:11px"], html[data-text-size] [style*="font-size: 11px"] { font-size: var(--fs-11) !important; }
html[data-text-size] [style*="font-size:11.5px"], html[data-text-size] [style*="font-size: 11.5px"] { font-size: var(--fs-11-5) !important; }
html[data-text-size] [style*="font-size:12px"], html[data-text-size] [style*="font-size: 12px"] { font-size: var(--fs-12) !important; }
html[data-text-size] [style*="font-size:12.5px"], html[data-text-size] [style*="font-size: 12.5px"] { font-size: var(--fs-12-5) !important; }
html[data-text-size] [style*="font-size:13px"], html[data-text-size] [style*="font-size: 13px"] { font-size: var(--fs-13) !important; }
html[data-text-size] [style*="font-size:14px"], html[data-text-size] [style*="font-size: 14px"] { font-size: var(--fs-14) !important; }
html[data-text-size] [style*="font-size:15px"], html[data-text-size] [style*="font-size: 15px"] { font-size: var(--fs-15) !important; }
html[data-text-size] [style*="font-size:16px"], html[data-text-size] [style*="font-size: 16px"] { font-size: var(--fs-16) !important; }
html[data-text-size] [style*="font-size:17px"], html[data-text-size] [style*="font-size: 17px"] { font-size: var(--fs-17) !important; }
html[data-text-size] [style*="font-size:18px"], html[data-text-size] [style*="font-size: 18px"] { font-size: var(--fs-18) !important; }
html[data-text-size] [style*="font-size:20px"], html[data-text-size] [style*="font-size: 20px"] { font-size: var(--fs-20) !important; }
/* The switch itself, in the menu's Appearance row: its three A's keep fixed sizes, so they look the same at every level. */
.text-size-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:var(--fs-10,10px);}
.text-size-switch{display:inline-flex;border:1px solid rgba(255,255,255,.2);border-radius:6px;overflow:hidden;}
.text-size-switch button{background:rgba(255,255,255,.08);border:0;border-left:1px solid rgba(255,255,255,.2);color:#fff;cursor:pointer;width:26px;height:24px;padding:0;line-height:1;font-weight:600;font-family:inherit;}
.text-size-switch button:first-child{border-left:0;}
.text-size-switch button:hover{background:rgba(255,255,255,.2);}
.text-size-switch button[aria-pressed="true"]{background:#fff;color:#003366;}
.text-size-switch .ts-standard{font-size:11px !important;}
.text-size-switch .ts-larger{font-size:13px !important;}
.text-size-switch .ts-largest{font-size:15px !important;}
