/*
Theme Name: Cubi Savings Base
Theme URI: https://cubisavings.com/
Author: Cubi Savings
Description: Minimal, performance-focused WordPress theme for Cubi Savings. Designed to work with the Cubi Savings Site Shell, Cubi Savings Platform plugin, and optional page builders on selected pages.
Version: 2.1.0-us
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: cubi-savings-base
*/

/*
 * Intentionally small Cubi Savings base layer.
 * Component and store/coupon styling stays in the existing plugins.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

main {
    display: block;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* Conservative layout only for ordinary WordPress fallback templates.
 * Elementor/front-page and Cubi Savings plugin templates are not constrained by this.
 */
.cubi-theme-standard {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
    padding-block: 40px 64px;
}

.cubi-theme-standard article + article {
    margin-top: 40px;
}

.cubi-theme-standard h1,
.cubi-theme-standard h2,
.cubi-theme-standard h3 {
    line-height: 1.2;
}

.cubi-theme-standard the {
    color: inherit;
}

.cubi-theme-empty,
.cubi-theme-404 {
    min-height: 40vh;
}

@media (max-width: 767px) {
    .cubi-theme-standard {
        width: min(100% - 24px, 1120px);
        padding-block: 28px 48px;
    }
}
