/*
 * TOLA GO core base styles — cross-cutting browser infrastructure only.
 * Logical properties keep these rules correct for both RTL and LTR
 * surfaces; no module-specific selectors live here.
 */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--tg-font-family, 'Cairo', system-ui, sans-serif);
    font-size: var(--tg-type-body-size, 15px);
    line-height: var(--tg-type-body-lh, 24px);
    color: var(--tg-color-text-primary, #15191c);
    background: var(--tg-color-bg-canvas, #f5f6f7);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Accessible focus state — visible on every interactive surface. */
:focus-visible {
    outline: 2px solid var(--tg-color-border-focus, #fe5901);
    outline-offset: 2px;
}

/* Screen-reader-only content. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Honour the OS-level reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
