:root {
    --tapsq-bg: #ffffff;
    --tapsq-surface: #f7f7f8;
    --tapsq-text: #111318;
    --tapsq-muted: #666b73;
    --tapsq-border: #e5e7eb;
    --tapsq-accent: #6d28d9;
    --tapsq-accent-contrast: #ffffff;
    --tapsq-logo-width: 170px;
    --tapsq-shell: 1240px;
    --tapsq-radius: 14px;
    --tapsq-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--tapsq-bg);
    color: var(--tapsq-text);
    font-family: var(--tapsq-font);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    margin: 0;
    z-index: 100000;
    background: #fff;
    color: #000;
    border: 2px solid currentColor;
}

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.tapsq-shell {
    width: min(calc(100% - 32px), var(--tapsq-shell));
    margin-inline: auto;
}

.tapsq-site-header {
    position: relative;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--tapsq-border);
}
.tapsq-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tapsq-branding { flex: 0 0 auto; }
.tapsq-branding .custom-logo-link { display: inline-flex; align-items: center; }
.tapsq-branding .custom-logo { width: var(--tapsq-logo-width); max-height: 64px; object-fit: contain; }
.tapsq-site-title { font-weight: 800; text-decoration: none; font-size: 1.25rem; }

.tapsq-primary-navigation { display: block; }
.tapsq-menu, .tapsq-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}
.tapsq-menu a, .tapsq-footer-menu a { text-decoration: none; }
.tapsq-menu a:hover, .tapsq-footer-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tapsq-menu-toggle {
    display: none;
    background: transparent;
    color: inherit;
    border: 1px solid var(--tapsq-border);
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.tapsq-main { min-height: 60vh; }
.tapsq-content-shell { padding-block: clamp(48px, 8vw, 96px); }
.tapsq-main--landing { width: 100%; overflow: clip; }
.tapsq-page > .elementor { width: 100%; }
.tapsq-entry-title { margin-top: 0; }

.tapsq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--tapsq-accent);
    color: var(--tapsq-accent-contrast);
    font-weight: 700;
}

.tapsq-site-footer {
    background: #111318;
    color: #fff;
    padding-block: 48px 24px;
}
.tapsq-footer-inner { display: grid; gap: 28px; }
.tapsq-footer-brand .custom-logo { width: min(var(--tapsq-logo-width), 220px); max-height: 70px; object-fit: contain; }
.tapsq-footer-credit { margin: 0; color: #c8cbd0; font-size: .92rem; }
.tapsq-footer-credit a { color: #fff; }

@media (max-width: 900px) {
    .tapsq-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .tapsq-primary-navigation {
        display: none;
        position: absolute;
        inset: 76px 0 auto 0;
        padding: 18px 16px 24px;
        background: #fff;
        border-bottom: 1px solid var(--tapsq-border);
    }
    .tapsq-primary-navigation.is-open { display: block; }
    .tapsq-menu { align-items: stretch; flex-direction: column; gap: 0; }
    .tapsq-menu a { display: block; padding: 12px 4px; }
}

@media (max-width: 640px) {
    .tapsq-shell { width: min(calc(100% - 24px), var(--tapsq-shell)); }
    .tapsq-header-inner { min-height: 68px; }
    .tapsq-primary-navigation { inset-block-start: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
