:where(body) { font-size: calc(1rem * var(--teo-font-scale, 1)); }
:root[data-teo-bold] { --teo-weight-step: 200; }
@font-face {
    font-family: "TEO Reading";
    src: url("fonts/tajawal/Tajawal-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "TEO Reading";
    src: url("fonts/tajawal/Tajawal-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
@media screen {
    :root[data-admin-bold] {
        --teo-weight-step: 100;
        --teo-reading-weight: 500;
        --teo-heading-weight: 700;
    }
    :root[data-admin-bold]:is(:lang(ar), :lang(ckb), :lang(en)) :is(body, button, input, select, textarea) {
        font-family: "TEO Reading", Tahoma, Arial, sans-serif;
    }
}
.teo-font-menu { flex: none; }
.teo-font-menu > summary { white-space: nowrap; cursor: pointer; }
:where([data-teo-bold] body, [data-teo-bold] button, [data-teo-bold] input, [data-teo-bold] select, [data-teo-bold] textarea) { font-weight: var(--teo-reading-weight, 600); }
:where([data-teo-bold] h1, [data-teo-bold] h2, [data-teo-bold] h3, [data-teo-bold] h4, [data-teo-bold] h5, [data-teo-bold] h6, [data-teo-bold] th, [data-teo-bold] strong, [data-teo-bold] b) { font-weight: var(--teo-heading-weight, 900); }
.teo-font-control { display: grid; gap: .25rem; }
.teo-font-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.teo-font-buttons .btn { padding: .25em .55em; min-width: 2em; }
.teo-font-buttons [aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -3px; background: var(--primary, #563482); color: white; }
.teo-font-buttons output { font-variant-numeric: tabular-nums; }
[data-site-font-status]:empty { display: none; }
button.teo-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    flex: none;
    border: 0;
    border-radius: 6px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    align-self: center;
}
button.teo-refresh:hover { background: rgba(125,125,125,.13); }
button.teo-refresh:focus-visible { outline: 2px solid currentColor; }
.teo-refresh svg { display: block; width: 17px; height: 17px; }
@media print { button.teo-refresh { display: none; } }

.teo-session-notice {position:fixed;inset-inline:1rem;bottom:1rem;z-index:100000;max-width:38rem;margin:auto;padding:1rem;border:1px solid #ad8951;border-radius:.6rem;background:#fff9e9;color:#402d16;box-shadow:0 2px 12px #0002}
.teo-session-notice a {color:inherit;font-weight:700;text-decoration:underline}
