/*
Theme Name: App Theme
*/

:root{
  --brand:#0b6508;
  --brand-2:#a663cc;
  --accent:#ffcc4d;

  --text:#1a1a1a;
  --bg:#ffffff;
  --muted:#6b7280;
  --soft:#f3f5f7;

  --header-h:4rem;
  --header-bg:var(--brand);
  --header-link:#fff;
  --header-border:#5da7a1;

  --section-bg:#ffffff;
  --section-bd:var(--brand);
  --footer-sep:rgba(255,255,255,.18);

  --content-inset-m:12px;
  --content-inset-pc:1rem;
  --content-inset:var(--content-inset-m);
}

@media (min-width:1024px){
  :root{ --content-inset:var(--content-inset-pc); }
}

*{ box-sizing:border-box; }
html{ font-size:16px; }

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,Helvetica,sans-serif;
  font-size:1rem;
  line-height:1.7;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

a:focus-visible,
button:focus-visible{
  outline:2px solid rgba(255,255,255,.75);
  outline-offset:2px;
}

.container{
  max-width:98%;
  margin-inline:auto;
  padding-inline:clamp(12px,3vw,24px);
  padding-bottom:1px;
}

.section{ padding:0; }

.container.section{
  background:#fff;
  padding:0px auto 10px; 
}

.site-main{
  margin:0;
  padding:0;
}

.site-header.sticky{
  position:fixed;
  inset:0 0 auto;
  z-index:1200;
  height:var(--header-h);
  background:var(--header-bg);
  border-bottom:1px solid  var(--header-border);
  color:var(--header-link);
}

.site-header.sticky .container,
.site-header.sticky .header-inner,
.site-header.sticky .site-nav,
.site-header.sticky .menu{
  background:transparent;
}

.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  overflow:hidden;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand .custom-logo{
  height:calc(var(--header-h) * .98);
  width:auto;
  max-height:calc(var(--header-h) * .98);
}

.site-header :is(a,.menu a){
  color:var(--header-link);
}

.site-nav .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:18px;
}

.site-header .site-nav .menu a{
  display:flex;
  align-items:center;
  gap:8px;
  line-height:1;
  padding-block:10px;
}

.site-nav .menu :is(a:hover,li.current-menu-item>a){
  text-decoration:underline;
  font-weight:600;
}

.site-nav .menu a.btn-download{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  font-weight:600;
}

.site-nav .menu a.btn-download:hover{
  filter:brightness(.95);
}

.hamburger{
  display:none;
  width:44px;
  height:44px;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  color:var(--header-link);
  -webkit-tap-highlight-color:transparent;
}

.hamburger .icon-bars{ display:block; }

@media (max-width:1023px){
  .site-nav{ display:none; }
  .hamburger{ display:inline-flex; }
}

#mobile-drawer .drawer-backdrop{
  position:fixed;
  left:0;
  right:0;
  top:var(--header-h);
  bottom:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s;
  z-index:1100;
}

.drawer-open #mobile-drawer .drawer-backdrop{
  opacity:1;
  pointer-events:auto;
}

#mobile-drawer .drawer-panel{
  position:fixed;
  top:var(--header-h);
  left:50%;
  width:min(1100px,100%);
  transform:translate(-50%,-8px);
  background:#000;
  color:#fff;
  border-radius:0 0 12px 12px;
  box-shadow:0 6px 24px rgba(0,0,0,.35);
  max-height:50vh;
  overflow:auto;
  opacity:0;
  pointer-events:none;
  z-index:1101;
  transition:transform .4s,opacity .4s;
}

.drawer-open #mobile-drawer .drawer-panel{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,0);
}

#mobile-drawer .drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

#mobile-drawer .drawer-close{
  font-size:26px;
  line-height:1;
  background:transparent;
  border:0;
  color:#fff;
  cursor:pointer;
  padding:4px 8px;
}

#mobile-drawer .drawer-menu{
  list-style:none;
  margin:0;
  padding:8px 0;
}

#mobile-drawer .drawer-menu li{
  border-bottom:1px solid rgba(255,255,255,.1);
}

#mobile-drawer .drawer-menu a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 16px;
  color:#fff;
  line-height:1.15;
}

#mobile-drawer .drawer-menu a:hover{
  background:rgba(255,255,255,.08);
}

#mobile-drawer .drawer-menu li.current-menu-item>a{
  background:rgba(255,255,255,.12);
  font-weight:600;
}

#mobile-drawer .drawer-menu a.btn-download{
  background:#fff;
  color:#111;
  margin:8px 12px;
  border-radius:10px;
}

.site-header :is(.menu,.hamburger) svg,
#mobile-drawer .drawer-menu svg{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  display:block;
  flex:0 0 20px;
  fill:currentColor;
  stroke:currentColor;
}

.header-spacer{
  display:block;
  height:var(--header-h);
}

.entry [id]{
  scroll-margin-top:calc(var(--header-h) + 10px);
}

.site-footer{
  background:var(--brand);
  color:#fff;
  border-top:1px solid var(--footer-sep);
}

.site-footer .footer-bottom{
  padding:14px 0;
  text-align:center;
  font-size:.875rem;
}

.site-footer a:hover{
  text-decoration:underline;
}

.backTop{
  position:fixed;
  right:18px;
  bottom:18px;
  width:40px;
  height:40px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  border:0;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .2s,opacity .2s;
  z-index:1300;
  -webkit-tap-highlight-color:transparent;
}

.backTop.show{
  display:flex;
  opacity:1;
}

.backTop:hover{
  transform:translateY(-2px);
}

@media (prefers-reduced-motion:reduce){
  #mobile-drawer .drawer-backdrop,
  #mobile-drawer .drawer-panel,
  .backTop{
    transition:none;
  }
}
