/* components only — mobile rules in mobile-shell.css */
/* Mathla Platform — static CSS (no Vite, no @apply) */

.font-display, .mathla-serif {
    font-family: 'Cinzel', 'Source Serif 4', Georgia, serif;
}

.mathla-gold-gradient {
    background: linear-gradient(135deg, var(--mathla-primary-light) 0%, var(--mathla-primary) 100%);
}

.mathla-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #fff;
    background-color: var(--mathla-primary);
    text-decoration: none;
    transition: background-color 0.15s ease;
    min-height: 44px;
    border: none;
    cursor: pointer;
}
.mathla-btn-primary:hover { background-color: var(--mathla-primary-dark); }

.mathla-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--mathla-primary);
    color: var(--mathla-primary-dark);
    background: transparent;
    text-decoration: none;
    min-height: 44px;
    cursor: pointer;
}
.mathla-btn-outline:hover { background-color: rgba(212, 175, 55, 0.08); }

.mathla-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(214, 211, 209, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--mathla-primary-light);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--mathla-muted);
    text-decoration: none;
    min-width: 64px;
    min-height: 56px;
}
.mobile-nav-item.active { color: var(--mathla-primary-dark); }

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e7e5e4;
    z-index: 50;
}
@media (min-width: 1024px) {
    .mobile-bottom-nav { display: none !important; }
}

.skip-link {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: 100;
}
.skip-link:focus {
    top: 1rem;
    inset-inline-start: 1rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 1rem;
    clip: auto;
    overflow: visible;
    background: var(--mathla-primary);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.safe-area-pb { padding-bottom: env(safe-area-inset-bottom, 0); }

html[dir="rtl"] header .mathla-locale-switcher { direction: ltr; }
