/* slgm backend additions: keeps the zip design; only adds what the backend needs. */
.comment-count{display:none!important}
@media(min-width:1051px){.content-grid.custom{grid-template-columns:var(--cols)}}
@media(max-width:1050px) and (min-width:651px){.content-grid.cols-1{grid-template-columns:minmax(0,1fr)}.content-grid.cols-2:not(:has(.pv-spots)){grid-template-columns:200px minmax(0,1fr)}.content-grid.cols-2:not(:has(.sidebar)) .pv-spots,.content-grid.cols-2:not(:has(.news-panel)) .pv-spots{grid-column:auto}}
/* Themed scrollbars: chrome track, green glowing thumb */
html{scrollbar-color:#2fe000 #d7e2e0;scrollbar-width:auto}
*{scrollbar-color:#2fe000 rgba(215,226,224,.85)}
::-webkit-scrollbar{width:14px;height:14px}
::-webkit-scrollbar-track{background:linear-gradient(90deg,#9aa8a6,#f4fbfa 45%,#c3cfcd);border-radius:10px;box-shadow:inset 0 0 4px rgba(0,0,0,.35)}
::-webkit-scrollbar-thumb{background:radial-gradient(ellipse at center,#7dff4d 0%,#2fe000 45%,#0a8a00 100%);border-radius:10px;border:2px solid #e9f5f2;box-shadow:0 0 10px #40ff16,inset 0 0 6px #baff90}
::-webkit-scrollbar-thumb:hover{background:radial-gradient(ellipse at center,#a8ff80 0%,#3dff00 50%,#0c9c00 100%);box-shadow:0 0 16px #5aff2a}
::-webkit-scrollbar-corner{background:#d7e2e0}
/* ---------- Drawer + news page (all sizes) ---------- */
.menu-toggle,.drawer,.drawer-scrim{display:none}
.news-page{margin:16px 18px;border-radius:31px;padding:14px 22px 24px}
.news-page .panel-heading h1{display:flex;align-items:center;gap:16px;font-size:30px;text-transform:uppercase;margin:0;font-weight:850}
.news-page .panel-heading h1 svg{width:38px;height:38px}
.news-search{display:flex;gap:12px;margin:10px 0 6px;max-width:640px}
.news-search input{flex:1;min-width:0;border:1px solid #7ac99c;border-radius:30px;background:rgba(255,255,255,.8);padding:11px 18px;outline:0}
.news-search .neon-button{padding:10px 22px}
.news-count{margin:8px 4px 10px;color:#2f4a3c;font-size:15px}
.news-list{border:1px solid #fff;border-radius:22px;background:linear-gradient(100deg,rgba(248,252,252,.85),rgba(224,234,237,.82));padding:0 16px}
.news-list .news-card{grid-template-columns:240px minmax(0,1fr)}
.news-list .news-thumb img{height:130px}
.news-article{border:1px solid #fff;border-radius:22px;background:rgba(248,252,252,.85);padding:20px;max-width:900px}
.news-article-img{display:block;width:100%;max-height:440px;object-fit:cover;border-radius:16px}
.news-article .article-body{font-size:17px;margin-top:10px}
.pager{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;justify-content:center}
.pager .pill{padding:8px 15px}.pager .pill.active{background:radial-gradient(ellipse at center,#005600,#008500 45%,#39ff00 90%);color:#fff}

/* ---------- Phone layout (≤650px). Desktop and tablet are untouched. ---------- */
@media(max-width:650px){
  html,body{overflow-x:hidden}
  body{font-size:16px}
  .site-shell{padding-top:10px}
  /* header: logo + hamburger */
  .topbar{margin:0 12px;height:64px;min-height:0;flex-wrap:nowrap;padding:0 8px 0 4px;border-radius:24px;gap:8px}
  .brand{width:auto;flex:1;height:64px;max-width:250px}
  .brand img{position:static;height:56px;width:100%;max-width:250px;object-fit:contain;object-position:left center;margin-top:4px}
  .topbar>.top-nav,.topbar>.search-form{display:none}
  .menu-toggle{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;flex-shrink:0;color:#fff;border:2px solid #fff;background:radial-gradient(ellipse at center,#005600,#008500 45%,#39ff00 90%);box-shadow:0 0 12px #40ff16,inset 0 0 8px #baff90}
  .menu-toggle svg{width:24px;height:24px}
  /* drawer */
  .drawer-scrim{display:block;position:fixed;inset:0;z-index:40;background:#001b12a8;backdrop-filter:blur(4px);opacity:0;transition:opacity .2s}
  .drawer{display:flex;flex-direction:column;gap:14px;position:fixed;z-index:41;top:0;bottom:0;left:0;width:min(86vw,340px);padding:14px 14px 24px;overflow-y:auto;border-radius:0 26px 26px 0;transform:translateX(-105%);transition:transform .22s ease;background:linear-gradient(160deg,rgba(236,252,244,.97),rgba(208,230,228,.97))}
  .drawer[hidden],.drawer-scrim[hidden]{display:none}
  body.drawer-open .drawer{transform:none}body.drawer-open .drawer-scrim{opacity:1}
  body.drawer-open{overflow:hidden}
  .drawer-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .drawer-head img{height:46px;width:auto;max-width:78%;object-fit:contain}
  .drawer-close{border:0;background:none;font-size:38px;line-height:1;color:#06420d;width:44px;height:44px}
  .drawer-search{display:flex;width:100%;height:46px;margin:0}
  .drawer-search input{font-size:16px}
  .drawer-top,.drawer-side{display:grid;gap:10px}
  .drawer-side{grid-template-columns:1fr 1fr;padding-top:12px;border-top:1px solid rgba(0,90,20,.25)}
  .drawer a{display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 16px;border-radius:26px;font-weight:800;text-transform:uppercase;font-size:15px;border:1.5px solid #fff;background:linear-gradient(115deg,rgba(255,255,255,.85),rgba(214,232,230,.75));box-shadow:0 1px 4px rgba(0,60,20,.15)}
  .drawer-side a{font-size:13px;padding:10px 12px;gap:8px;min-height:54px;line-height:1.15}
  .drawer a svg{width:24px;height:24px}.drawer-side a svg{width:20px;height:20px}
  .drawer a.active{background:radial-gradient(ellipse at center,#005600,#008500 45%,#39ff00 90%);color:#fff;box-shadow:0 0 12px #40ff16,inset 0 0 8px #baff90}
  /* hero */
  .hero{height:auto;flex-direction:column;padding:6px 16px 20px;gap:10px}
  .hero-bear{position:static;width:150px;height:140px;margin:0 auto -6px;order:0}
  .hero-copy{width:100%;max-width:420px;margin:0 auto;order:1}
  .welcome{font-size:15px;letter-spacing:7px;padding-left:7px;margin-bottom:8px}
  .tagline{font-size:15px;letter-spacing:1px;white-space:normal;margin:10px 0 0}
  .hero-download{position:static;order:2;width:100%;max-width:340px;margin:4px auto 0;min-height:52px;font-size:17px;padding:10px 18px}
  /* content */
  .content-grid,.content-grid.custom{grid-template-columns:minmax(0,1fr)!important;padding:0 12px;gap:14px}
  .content-grid .sidebar{display:none}
  .news-panel{min-height:0;padding:10px 12px 14px;border-radius:24px}
  .panel-heading{height:auto;min-height:52px;padding:4px 2px;flex-wrap:wrap}
  .panel-heading h2{font-size:22px}
  .pill{font-size:13px;padding:8px 12px}
  .news-items{max-height:none;overflow:visible;padding:0 12px;border-radius:18px}
  .news-card,.news-list .news-card{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 0}
  .news-thumb img,.news-list .news-thumb img{height:auto;aspect-ratio:16/9;border-radius:14px}
  .article-link{font-size:20px}
  .news-summary{font-size:16px;line-height:1.4}
  .news-meta{font-size:14px}.news-meta svg{width:16px;height:16px}
  .pv-spots{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto;padding:12px;gap:12px;border-radius:24px;height:auto}
  .pv-spot{aspect-ratio:524/194;width:100%;border-radius:16px}
  /* newsletter */
  .newsletter{margin:14px 12px;padding:18px 16px;flex-direction:column;align-items:stretch;gap:12px;border-radius:24px}
  .newsletter-title{border:0;padding:0;gap:12px;justify-content:center}
  .newsletter h2{font-size:24px}
  .newsletter p{font-size:15px;text-align:center}
  .newsletter form{flex-direction:column;gap:10px;width:100%}
  .email-field{padding:12px 16px}.email-field input{font-size:16px}
  .newsletter .neon-button{min-width:0;width:100%;min-height:50px;font-size:17px}
  /* footer */
  .footer{padding:18px 14px 22px;gap:14px;flex-direction:column}
  .footer>a{width:240px}
  .footer nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;font-size:13px}
  .footer nav a,.footer nav a:last-child{border:1px solid #fff;border-radius:22px;padding:10px;text-align:center;background:rgba(255,255,255,.55)}
  .footer small{font-size:12px;white-space:normal;text-align:center}
  /* dialogs (contact/advertise/article) */
  dialog{width:calc(100vw - 20px);max-width:none;padding:18px 16px;border-radius:20px;margin:auto}
  .dialog-header h2{font-size:21px}
  .dialog-form input,.dialog-form textarea,.dialog-form select{font-size:16px}
  .dialog-form .neon-button{width:100%;justify-self:stretch;min-height:50px}
  .article-body{font-size:16px}
  /* news page */
  .news-page{margin:14px 12px;padding:12px 12px 18px;border-radius:24px}
  .news-page .panel-heading h1{font-size:21px;gap:10px}.news-page .panel-heading h1 svg{width:28px;height:28px}
  .news-search{flex-direction:column}.news-search input{font-size:16px}.news-search .neon-button{min-height:48px}
  .news-list{padding:0 12px}
  .news-article{padding:14px}
}

/* ---------- mobile v4: compact hero, tucked links, reveal (phones only) ---------- */
.more-toggle{display:none}
@media(max-width:650px){
  .hero{padding:2px 16px 14px;gap:6px}
  .hero-bear{width:96px;height:90px;margin:0 auto -4px}
  .hero h1{margin:0}.hero h1 img{width:100%;max-width:270px;height:auto;display:block;margin:0 auto}
  .welcome{font-size:13px;letter-spacing:6px;padding-left:6px;margin-bottom:4px}
  .tagline{font-size:14px;margin-top:6px}
  .hero-download{min-height:46px;font-size:16px;max-width:280px;margin-top:2px;padding:8px 16px}
  .content-grid,.content-grid.custom{margin-top:0}
  .more-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 22px;border-radius:22px;border:1px solid #fff;background:rgba(255,255,255,.55);font:800 14px/1 inherit;text-transform:uppercase;color:#06420d;cursor:pointer}
  .more-toggle span{transition:transform .2s}
  body.more-open .more-toggle span{transform:rotate(180deg)}
  .footer nav{display:none}
  body.more-open .footer nav{display:grid}
}
@media(max-width:650px) and (prefers-reduced-motion:no-preference){
  /* entrance effect from gridmostwanted's "appear" keyframes (translateY 8px + fade, ease-out) */
  .rv{opacity:0;transform:translateY(8px)}
  .rv.rv-in{animation:pvAppear .5s ease-out both;animation-delay:var(--rv-d,0s)}
  @keyframes pvAppear{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
}

/* desktop v5: consistent 10px rhythm between content row and newsletter */
@media(min-width:1051px){.newsletter{margin:10px 18px 14px}}

/* mobile v5 polish */
@media(max-width:650px){
  .hero{padding-bottom:16px}
  .content-grid,.content-grid.custom{gap:12px}
  .news-panel{padding:12px 14px 6px}
  .panel-heading{flex-wrap:nowrap;justify-content:space-between;gap:10px;min-height:44px;padding:0 0 10px;border-bottom:1px solid rgba(0,90,20,.18)}
  .panel-heading h2{font-size:20px;gap:8px;white-space:nowrap}.panel-heading h2 svg{width:26px;height:26px}
  .panel-heading .pill{flex-shrink:0;font-size:12px;padding:7px 11px;gap:5px}
  .news-items{background:none;border:0;box-shadow:none;padding:0;border-radius:0}
  .news-card{padding:14px 0;gap:10px}
  .news-card+.news-card{border-top:1px solid rgba(0,90,20,.15)}
  .news-card:last-child{border-bottom:0}
  .news-thumb img{border-radius:16px}
  .article-link{font-size:19px;line-height:1.25}
  .pv-spots{padding:10px;gap:10px}
  .pv-spot{border-radius:16px}
  .newsletter{margin:12px 12px 12px}
  .footer{padding:16px 14px 18px;gap:10px}
}
@media(max-width:380px){.panel-heading h2{font-size:18px}.panel-heading .pill{font-size:11px;padding:6px 9px}}

/* ---------- nav hover handoff (desktop hover only) ---------- */
@media (hover:hover) and (min-width:651px){
  .top-nav a,.sidebar a{transition:background-color .25s,box-shadow .25s,color .25s,border-color .25s,filter .25s}
  .top-nav:has(a:hover) a.active:not(:hover){background:transparent;color:inherit;border-color:transparent;box-shadow:none}
  .sidebar nav:has(a:hover) a.active:not(:hover){background:linear-gradient(115deg,rgba(226,245,237,.8),rgba(202,219,220,.6));color:inherit;border-color:rgba(255,255,255,.7);box-shadow:none}
  .top-nav a:hover,.sidebar a:hover{background:radial-gradient(ellipse at center,#005600 0%,#008500 45%,#39ff00 90%);color:#fff;border-color:#fff;box-shadow:0 0 15px #40ff16,inset 0 0 9px #baff90}
}

/* ---------- dialogs: chrome frame + glass + neon ---------- */
dialog{border:3px solid transparent;border-radius:28px;padding:26px 28px 24px;color:#062210;
  background:linear-gradient(150deg,rgba(244,255,250,.97),rgba(214,236,230,.95) 55%,rgba(232,248,242,.97)) padding-box,
  linear-gradient(135deg,#ffffff,#9fb3ad 22%,#ffffff 40%,#6d8a80 62%,#f4fff9 80%,#9fd9b0) border-box;
  box-shadow:0 0 0 1px rgba(57,255,0,.35),0 0 38px rgba(57,255,0,.55),0 24px 60px rgba(0,30,10,.45),inset 0 1px 0 #fff}
dialog::backdrop{background:radial-gradient(ellipse at center,rgba(0,60,20,.55),rgba(0,18,8,.82));backdrop-filter:blur(8px)}
@media (prefers-reduced-motion:no-preference){
  dialog[open]{animation:pvDlg .32s cubic-bezier(.2,.9,.3,1.15)}
  dialog[open]::backdrop{animation:pvFade .25s ease-out}
  @keyframes pvDlg{from{opacity:0;transform:translateY(18px) scale(.95)}to{opacity:1;transform:none}}
  @keyframes pvFade{from{opacity:0}to{opacity:1}}
}
.dialog-header{padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid rgba(0,120,30,.2);position:relative}
.dialog-header:after{content:"";position:absolute;left:0;bottom:-1px;width:90px;height:2px;border-radius:2px;background:#39ff00;box-shadow:0 0 10px #39ff00}
.dialog-header h2{display:flex;align-items:center;gap:12px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}
dialog:has(.dialog-form) .dialog-header h2:before{content:"";flex:none;width:54px;height:54px;border-radius:50%;background:url(/assets/bear-icon.png) center/cover,#0b3d12;border:2px solid #fff;box-shadow:0 0 14px #40ff16,inset 0 0 6px #baff90}
.close-dialog{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%!important;border:2px solid #fff!important;background:linear-gradient(145deg,#fff,#cfe2dc)!important;font-size:28px!important;color:#06420d;box-shadow:0 2px 8px rgba(0,40,10,.25);transition:box-shadow .2s,transform .2s}
.close-dialog:hover{box-shadow:0 0 14px #40ff16;transform:rotate(90deg)}
.dialog-form{gap:14px}
.dialog-form label{font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#0f4a1c}
.dialog-form input:not([type=hidden]),.dialog-form textarea,.dialog-form select{font-size:16px;padding:14px 14px 14px 46px;border:1.5px solid rgba(255,255,255,.9);border-radius:16px;background-color:rgba(255,255,255,.78);background-repeat:no-repeat;background-position:14px 50%;background-size:20px;box-shadow:inset 0 2px 5px rgba(0,50,20,.12);text-transform:none;letter-spacing:0;font-weight:500;transition:border-color .2s,box-shadow .2s,background-color .2s}
.dialog-form textarea{background-position:14px 15px;resize:vertical;min-height:120px}
.dialog-form input[name=name]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E")}
.dialog-form input[type=email]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E")}
.dialog-form input[type=url]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E")}
.dialog-form textarea{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")}
.dialog-form input:focus,.dialog-form textarea:focus,.dialog-form select:focus{outline:none;border-color:#39ff00;background-color:#fff;box-shadow:0 0 0 3px rgba(57,255,0,.28),0 0 16px rgba(64,255,22,.6),inset 0 1px 3px rgba(0,50,20,.08)}
.dialog-form .neon-button{justify-self:stretch;width:100%;min-height:60px;font-size:20px;letter-spacing:1px;gap:12px;margin-top:4px}
.dialog-form .neon-button svg{width:26px;height:26px}
.dialog-form .neon-button[aria-busy=true]{filter:saturate(.6);cursor:progress}
.dialog-form .form-note{font-size:13px;margin:0}
.status-line:empty{display:none}
.status-line.err{margin:0;padding:10px 14px;border-radius:14px;background:#fff1ee;border:1px solid #ffb3a6;color:#8a1d0a;font-weight:700}
.dialog-form.sent>:not(.status-line):not([type=hidden]){display:none}
.dialog-form.sent .status-line.ok{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;margin:6px 0 4px;padding:26px 18px;border-radius:22px;font-size:18px;font-weight:800;color:#0b4a17;background:linear-gradient(150deg,rgba(255,255,255,.85),rgba(220,245,230,.8));border:1.5px solid #fff;box-shadow:0 0 18px rgba(57,255,0,.35)}
.dialog-form.sent .status-line.ok:before{content:"\2713";display:grid;place-items:center;width:72px;height:72px;border-radius:50%;font-size:38px;color:#fff;border:3px solid #fff;background:radial-gradient(ellipse at center,#005600,#008500 45%,#39ff00 90%);box-shadow:0 0 22px #40ff16,inset 0 0 9px #baff90}
@media (prefers-reduced-motion:no-preference){.dialog-form.sent .status-line.ok:before{animation:pvPop .45s cubic-bezier(.3,1.6,.5,1)}@keyframes pvPop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}}
@media(max-width:650px){
  dialog{width:calc(100vw - 20px);padding:18px 16px;border-radius:24px}
  .dialog-header h2{font-size:19px;gap:10px}
  dialog:has(.dialog-form) .dialog-header h2:before{width:44px;height:44px}
  .dialog-form .neon-button{min-height:56px;font-size:18px}
}

.close-dialog:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(57,255,0,.35),0 0 14px #40ff16}
