/*
Theme Name: Rupai Minimal
Author: Rupai
Description: Lightweight WordPress foundation for Rupai. Homepage design and customization can be managed by a compatible CodeBox module.
Requires at least: 6.0
Requires PHP: 7.4
Version: 1.0.5
Text Domain: rupai-minimal
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Only fallback/ordinary WordPress pages are styled here. The CodeBox
   homepage uses its own isolated CSS and must not inherit theme UI. */
.ggm-shell, .ggm-shell * { box-sizing: border-box; }
.ggm-shell {
  min-height: 100vh;
  color: #BDCEC2;
  background: #040A07;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.ggm-shell a { color: #9AAF9F; text-decoration: none; }
.ggm-shell a:hover, .ggm-shell a:focus-visible { text-decoration: underline; }
.ggm-shell a:focus-visible { outline: 2px solid #9AAF9F; outline-offset: 4px; }
.ggm-shell .ggm-wrap { max-width: 1000px; margin-inline: auto; padding-inline: 22px; }
.ggm-shell .ggm-header { border-bottom: 1px solid #1D3227; }
.ggm-shell .ggm-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 18px; }
.ggm-shell .ggm-brand { color: #BDCEC2; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.ggm-shell .ggm-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ggm-shell .ggm-main { padding-block: 70px; min-height: 55vh; }
.ggm-shell .ggm-card { max-width: 760px; margin: 0 auto; padding: 30px; background: #0C1913; border: 1px solid #283F30; border-radius: 15px; overflow-wrap: anywhere; }
.ggm-shell h1 { font-size: clamp(26px, 4vw, 44px); line-height: 1.16; margin: 0 0 18px; }
.ggm-shell .ggm-body > *:first-child { margin-top: 0; }
.ggm-shell .ggm-body img { max-width: 100%; height: auto; }
.ggm-shell .ggm-footer { border-top: 1px solid #1D3227; padding-block: 20px; color: #96AA9F; font-size: 13px; }
.ggm-shell .ggm-skip { position: absolute; left: -10000px; top: auto; }
.ggm-shell .ggm-skip:focus { left: 16px; top: 12px; z-index: 100; padding: 8px 12px; background: #08120D; }
@media (max-width: 540px) {
  .ggm-shell .ggm-main { padding-block: 42px; }
  .ggm-shell .ggm-card { padding: 22px; }
}

/* Canvas: no theme containers, animations, images, web fonts or scripts. */
body.rupai-codebox-canvas { margin: 0; }
body.rupai-codebox-canvas #rupai-content { width: 100%; min-width: 0; }

/* Consistent canvas across homepage, static pages and 404.
   Prevent a white body strip behind the fixed CodeBox menu. */
html,body { margin:0; min-height:100%; background:#040A07; }
body { color:#BDCEC2; }
body.ggmb2-site-menu-live .ggm-shell { background:#040A07; }
/* Full BG Colors paints its gradient on the body. Let it show through
   the theme shell on all ordinary pages, including 404 pages.
   Only applies while the background module is enabled. */
body.site-layer-bg-enabled .ggm-shell,
body.site-layer-bg-enabled.ggmb2-site-menu-live .ggm-shell {
  background: transparent !important;
}
body.ggmb2-site-menu-live .ggm-shell > .ggm-header { display:none!important; }
/* Menu stays outside normal theme card and wrapper; no added header layer. */
body.ggmb2-site-menu-live .ggm-shell { border-top:0; }
