html {
    font-size: calc(100% * var(--ttm-af-font-scale, 1));
}

html.ttm-af-font-active {
    font-size: calc(100% * var(--ttm-af-font-scale, 1)) !important;
}

html.ttm-af-font-active body {
    font-size: 1em !important;
}

html.ttm-af-line body,
html.ttm-af-letter body,
html.ttm-af-word body {
    line-height: calc(1.5 + var(--ttm-af-line-height, 0));
    letter-spacing: var(--ttm-af-letter-spacing, normal);
    word-spacing: var(--ttm-af-word-spacing, normal);
}

.ttm-af-contrast {
    filter: contrast(1.35);
}

.ttm-af-dark {
    filter: invert(1) hue-rotate(180deg);
}

.ttm-af-dark img,
.ttm-af-dark video,
.ttm-af-dark iframe {
    filter: invert(1) hue-rotate(180deg);
}

.ttm-af-gray {
    filter: grayscale(1);
}

.ttm-af-invert {
    filter: invert(1);
}

.ttm-af-links a {
    outline: 2px solid #ffbf00 !important;
    outline-offset: 2px !important;
    text-decoration: underline !important;
}

.ttm-af-headings :is(h1, h2, h3, h4, h5, h6) {
    outline: 2px solid #174ea6 !important;
    outline-offset: 3px !important;
}

.ttm-af-reading {
    max-width: 75ch;
    margin-inline: auto;
}

.ttm-af-focus :is(header, footer, nav, aside) {
    opacity: 0.22;
}

.ttm-af-motion *,
.ttm-af-motion *::before,
.ttm-af-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
}

.ttm-af-cursor body > :not(ttm-accessflow-toolbar),
.ttm-af-cursorContrast body > :not(ttm-accessflow-toolbar) {
    cursor: none !important;
}

ttm-accessflow-toolbar,
ttm-accessflow-toolbar * {
    cursor: pointer !important;
}

#ttm-af-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border: 3px solid #174ea6;
    border-radius: 50%;
    background: rgba(23, 78, 166, 0.18);
    pointer-events: none;
    z-index: 2147482998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

#ttm-af-cursor-ring.contrast {
    border-color: #ffbf00;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 0 0 2px #ffffff;
}

#ttm-af-ruler {
    position: fixed;
    left: 0;
    right: 0;
    top: -2px;
    height: 4px;
    background: #174ea6;
    opacity: 0.75;
    z-index: 2147482999;
    pointer-events: none;
}
