/*
 * Libazaar theme tokens and responsive foundation.
 * Existing component design remains in shared-layouts.css.
 * Load shared-layouts.css BEFORE this file.
 */
:root {
    --libazaar-purple: #5524c7;
    --libazaar-purple2: #8738e8;
    --libazaar-yellow: #ffca37;
    --libazaar-ink: #142344;
    --libazaar-muted: #6d7890;
    --libazaar-line: #e8eaf2;
    --libazaar-bg: #f6f7fb;
    --libazaar-white: #ffffff;
}

/* Common baseline: deliberately scoped to avoid changing existing components. */
html { scroll-behavior: smooth; }
body {
    color: var(--libazaar-ink);
    background: var(--libazaar-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Header 1/2 and Footer 1/2 retain their existing shared-layout CSS.
   Do not add broad .topinner/.brand/.bottomnav overrides here. */

/* Layout helpers for body-only views. */
.theme-page {
    width: min(1180px, 100%);
    margin-inline: auto;
    padding-inline: 20px;
}
.theme-desktop-only { display: block; }
.theme-mobile-only { display: none; }

@media (max-width: 850px) {
    .theme-page { padding-inline: 14px; }
}
@media (max-width: 600px) {
    .theme-page { padding-inline: 10px; }
    .theme-desktop-only { display: none !important; }
    .theme-mobile-only { display: block; }
}

/* Keep bottom-navigation safe area and viewport position consistent. */
@supports (padding: max(0px)) {
    .footer-bottomnav-one,
    .footer-bottomnav-two {
        padding-bottom: max(7px, env(safe-area-inset-bottom));
    }
}
