/*
Theme Name: CalculatorGeek Tools Theme
Theme URI: https://calculatorgeek.com
Author: CalculatorGeek
Description: Clean, fast calculator tools theme with CPT, categories, popular calculators, ratings, usage stats, and calculator templates.
Version: 6.8.235
Text Domain: calculatorgeek
*/

/* =========================================================
 * Category page ads (desktop)
 * ========================================================= */
.cg-cat-ad-top{
  margin:28px auto;
  display:flex;
  justify-content:center;
}

/* =========================================================
 * Single post top-ad spacing (desktop)
 * NOTE: spacing is controlled via CSS variables from Ad Manager.
 * Keep only the category bar tightening here.
 * ========================================================= */
@media (min-width: 769px){
  body.single .cg-catbar{ margin-bottom: 0; }
}

/* =========================================================
 * Category top-ad spacing (desktop)
 * Keep equal distance: category bar -> ad == ad -> title
 * ========================================================= */
@media (min-width: 769px){
  body.tax-calculator_category .cg-catbar{ margin-bottom: 0 !important; }

  /* Use padding for symmetric spacing above/below the ad slot */
  body.tax-calculator_category .cg-cat-ad-top{
    margin: 0 auto !important;
    padding: 24px 0 !important;
  }

  /* Remove extra hero top padding when the ad exists above it */
  body.tax-calculator_category .cg-cat-ad-top + .cg-term-hero{ padding-top: 0 !important; }
}

/* =========================================================
 * Category archive (taxonomy) heading polish
 * ========================================================= */
.cg-term-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 6px;
}
.cg-term-title-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  /* Match homepage category icon chip: soft blue bg + blue icon */
  background:rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.22);
  color:#0ea5e9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  box-shadow:none;
}
.cg-term-title-icon svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
}

/* The global .cat-icon rule adds margin-bottom for homepage tiles.
   Inside the H1 chip we must remove that margin so the icon aligns perfectly. */
.cg-term-title-icon .cat-icon{ margin:0; }

.cg-term-desc{ margin:6px 0 0; }
.cg-term-readmore{ display:inline-block; margin-top:2px; }

/* Keep sub-category headings aligned */
.cg-subcat-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.cg-term-desc{margin:6px 0 0;}
.cg-term-readmore{display:inline-block;margin-top:2px;}
.cg-term-meta{margin-top:4px;}

/* =========================
   Category page listing (2-column, reference style)
========================= */
.cg-term-group{ margin: 38px 0; }
.cg-term-group-title{ margin: 0 0 14px; font-weight: 800; padding-left: 22px; }

.cg-term-list{
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 56px;
  padding-left: 22px;
  margin: 0;
}
.cg-term-list li{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 12px;
}
.cg-term-list a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 820px){
  .cg-term-list{ columns: 1; -webkit-columns: 1; -moz-columns: 1; }
}

/* Most popular icon (homepage) */
.cg-mostpop-icon{ display:flex; justify-content:center; margin: 0 0 10px; }
/* Most popular icon: keep at native size to avoid browser upscaling blur */
.cg-mostpop-icon img{ width:40px; height:40px; display:block; object-fit:contain; }

/* =========================
   Footer (Omni-like, professional)
========================= */
.cg-footer-omni{
  background: linear-gradient(180deg, #11162b 0%, #0f1427 55%, #0e1326 100%) !important;
  color: rgba(255,255,255,.82);
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Ensure footer background is full-width on ALL pages (even if templates wrap content in .cg-container) */
.cg-footer-omni{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.cg-footer-omni .cg-footer-shell{
  background: transparent !important;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.cg-footer-omni .cg-footer-top,
.cg-footer-omni .cg-footer-bottom{ background: transparent !important; }
.cg-footer-omni a{ color:rgba(255,255,255,.82) !important; text-decoration:none; }
.cg-footer-omni a:hover{ color:#fff; }
.cg-footer-top{ padding: 44px 0 28px; border-top: none; }
.cg-footer-wrap{
  display:grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 56px;
}
.cg-footer-col h4{
  margin: 0 0 14px;
  color:#fff;
  font-size:16px;
  font-weight: 800;
}
.cg-footer-brandrow{ display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.cg-footer-col.brand{ display:flex; flex-direction:column; align-items:flex-start; text-align:left; }

/* Keep footer brand/logo hard-left aligned in all layouts */
.cg-footer-brandlink{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}
.cg-footer-logo{ width:auto; height:auto; border-radius:0; object-fit:contain; margin: 0 0 6px; }
.cg-footer-logowrap{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cg-footer-logoimg{
  height: var(--cg-footer-logo, 64px);
  width: auto;
  display: block;
  object-fit: contain;
  max-height: var(--cg-footer-logo, 64px);
  max-width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  margin: 0;
}
.cg-footer-logo--fallback{ width: var(--cg-footer-logo, 64px); height: var(--cg-footer-logo, 64px); display:inline-flex; align-items:center; justify-content:center; background: rgba(255,255,255,.08); color:#fff; font-weight:900; border:1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.22); font-size: calc(var(--cg-footer-logo, 64px) * 0.42); }
.cg-footer-cats{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); column-gap:28px; row-gap:10px; }
@media (max-width: 720px){
  .cg-footer-cats{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px){
  .cg-footer-cats{ grid-template-columns:1fr; }
}
.cg-footer-brandname{ font-weight:900; color:#fff; letter-spacing:.2px; font-size:28px; line-height:1.1; max-width:260px; }
.cg-footer-about{ margin: 0; max-width: 340px; line-height: 1.6; color: rgba(255,255,255,.78); }
.cg-footer-links{ list-style:none; padding:0; margin:0; }
.cg-footer-links li{ margin: 11px 0; }
.cg-footer-links a{ font-weight: 600; }

.cg-footer-social{ display:flex; gap:10px; margin: 4px 0 14px; flex-wrap:wrap; }
.cg-social{
  width:44px; height:44px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
}
.cg-social:hover{ background: rgba(255,255,255,.14); }

.cg-footer-contact a{ display:inline-block; margin-top: 4px; }

.cg-footer-bottom{ border-top:1px solid rgba(255,255,255,.10); padding: 18px 0; }
.cg-footer-bottom-inner{ display:flex; justify-content:space-between; align-items:center; gap:16px; }
.cg-footer-copy{ font-size: 13px; color: rgba(255,255,255,.70); text-align:left; }

@media (max-width: 980px){
  .cg-footer-wrap{ grid-template-columns: 1fr 1fr; }
  .cg-footer-top{ padding: 36px 0 22px; }
  .cg-footer-bottom{ padding: 16px 0; }
}
@media (max-width: 560px){
  .cg-footer-wrap{ grid-template-columns: 1fr; }
  .cg-footer-top{ padding: 30px 0 18px; }
  .cg-footer-bottom{ padding: 14px 0; }
}
/* v6.8.21+ footer extra-compact + centered copyright (no builder text) */
.cg-footer-top{ padding: 12px 0 8px !important; }
.cg-footer-bottom{ padding: 6px 0 !important; }
.cg-footer-wrap{ gap: 30px !important; }
.cg-footer-col h4{ margin-bottom: 8px !important; }
.cg-footer-links li{ margin: 6px 0 !important; }
.cg-footer-social{ margin: 2px 0 8px !important; }
.cg-social{ width:40px; height:40px; }
.cg-footer-bottom-inner{ display:flex !important; justify-content:center; align-items:center; }
.cg-footer-copy{ text-align:center !important; }

@media (max-width: 980px){
  .cg-footer-top{ padding: 10px 0 8px !important; }
  .cg-footer-bottom{ padding: 6px 0 !important; }
  .cg-footer-wrap{ gap: 24px !important; }
}
@media (max-width: 560px){
  .cg-footer-top{ padding: 10px 0 8px !important; }
  .cg-footer-bottom{ padding: 6px 0 !important; }
  .cg-footer-wrap{ gap: 18px !important; }
}

/* =========================
   Header auth buttons
========================= */
.cg-auth-cta{ display:flex; align-items:center; gap:10px; margin-left:14px; }
.cg-auth-cta .btn{ white-space:nowrap; }
.btn.btn-ghost{
  background: transparent;
  border: 1px solid rgba(2,132,199,.35);
  color: #0b2b3b;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}
.btn.btn-ghost:hover{ background: rgba(56,189,248,.10); }

/* =========================
   Auth pages (Login/Signup)
========================= */
.cg-auth-wrap{ display:flex; justify-content:center; padding: 40px 16px; }
.cg-auth-card{
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  padding: 28px 24px;
}
.cg-auth-close{ position:absolute; right:14px; top:12px; width:34px; height:34px; border-radius:999px; display:flex; align-items:center; justify-content:center; color:#0f172a; text-decoration:none; }
.cg-auth-close:hover{ background: rgba(15,23,42,.06); }
.cg-auth-close span{ font-size: 22px; line-height: 1; }

.cg-auth-tabs{ display:flex; justify-content:space-between; gap:16px; padding: 6px 6px 18px; }
.cg-auth-tab{ flex:1; text-align:center; padding: 12px 10px; text-decoration:none; color:#0f172a; font-weight: 700; border-bottom: 2px solid transparent; }
.cg-auth-tab.is-active{ color:#0284c7; border-bottom-color:#0284c7; }

.cg-auth-subtitle{ text-align:center; color:#64748b; font-weight: 600; margin: 6px 0 18px; }
.cg-auth-form{ display:flex; flex-direction:column; gap: 12px; }
.cg-auth-field input{
  width:100%;
  border: 2px solid rgba(2,132,199,.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.cg-auth-field input:focus{ border-color:#0284c7; box-shadow: 0 0 0 4px rgba(56,189,248,.18); }
.cg-auth-field.has-eye{ position:relative; }
.cg-auth-eye{ position:absolute; right:10px; top:50%; transform:translateY(-50%); background:transparent; border:0; cursor:pointer; font-size:16px; }

.cg-auth-btn{
  width:100%;
  border:0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: background .18s ease, transform .12s ease;
}
.cg-auth-btn:hover{
  /* Slightly deeper on hover (requested) */
  background: linear-gradient(90deg, #0284c7, #16a34a);
}

/* Ensure signup/login primary button never turns white due to any global hover rules */
.cg-auth-modal .cg-auth-btn:hover,
.cg-auth-modal .cg-auth-btn:focus,
.cg-auth-modal .cg-auth-btn:focus-visible{
  background: linear-gradient(90deg, #0284c7, #16a34a) !important;
  color:#fff !important;
}
.cg-auth-btn:active{ transform: translateY(1px); }
.cg-auth-btn-outline{ background: #fff; color:#0f172a; border: 1px solid rgba(148,163,184,.65); }
.cg-auth-btn-outline:disabled{ opacity: .55; cursor:not-allowed; }
.cg-auth-provider{ display:inline-block; width: 18px; text-align:center; margin-right: 8px; font-weight:900; }

/* OAuth buttons (Google / Apple) */
.cg-auth-oauth{
  width:100%;
  height: 46px;
  border-radius: 12px;
  background:#fff;
  border: 1px solid rgba(148,163,184,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color:#0f172a;
  font-weight: 700;
  cursor:pointer;
  text-decoration:none;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.cg-auth-oauth:visited{ color:#0f172a; }
.cg-auth-oauth:hover{
  background: rgba(241,245,249,.75);
  border-color: rgba(100,116,139,.55);
}
.cg-auth-oauth:active{ transform: translateY(1px); }
.cg-auth-oauth__icon{ width: 18px; height: 18px; display:inline-flex; }
.cg-auth-oauth__icon svg{ width: 18px; height: 18px; display:block; }

.cg-auth-link{ text-align:center; color:#0284c7; font-weight: 700; text-decoration:none; margin-top: 2px; }
.cg-auth-link:hover{ text-decoration:underline; }
.cg-auth-sep{ display:flex; align-items:center; gap: 12px; margin: 10px 0 2px; color:#94a3b8; font-weight: 800; justify-content:center; }
.cg-auth-sep:before, .cg-auth-sep:after{ content:""; flex:1; height:1px; background: rgba(148,163,184,.45); }
.cg-auth-sep span{ padding: 0 2px; }
.cg-auth-legal{ text-align:center; color:#94a3b8; font-size: 13px; margin-top: 8px; }
.cg-auth-legal a{ color:#0284c7; text-decoration:underline; }
.cg-auth-error{ background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color:#b91c1c; padding: 10px 12px; border-radius: 12px; margin: 2px 0 12px; }
.cg-auth-back{ display:inline-flex; align-items:center; gap:8px; color:#0284c7; font-weight: 800; text-decoration:none; margin: 2px 0 10px; }
.sr-only{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* =========================
 * Auth Modal (Login / Signup)
 * ========================= */
html.cg-modal-open, body.cg-modal-open{ overflow:hidden; }
.cg-auth-modal{ position:fixed; inset:0; z-index:100000; display:none; }
.cg-auth-modal.is-open{ display:block; }
.cg-auth-modal__backdrop{ position:absolute; inset:0; background:rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.cg-auth-modal__dialog{
  position:relative;
  width:min(420px, calc(100vw - 32px));
  margin: 60px auto;
  background:#fff;
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow: 0 18px 60px rgba(2,6,23,.25);
}
.cg-auth-modal .cg-auth-close{
  position:absolute;
  right:12px;
  top:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.45);
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.cg-auth-modal .cg-auth-tabs{ display:flex; gap:12px; justify-content:center; margin: 8px 0 14px; }
.cg-auth-modal .cg-auth-tab{
  border:0;
  background:transparent;
  font-weight:600;
  padding:10px 14px;
  border-bottom:2px solid transparent;
  color:#0f172a;
  cursor:pointer;
}
.cg-auth-modal .cg-auth-tab.is-active{ color:#0ea5e9; border-bottom-color:#0ea5e9; }
.cg-auth-modal .cg-auth-error{
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.25);
  padding:10px 12px;
  border-radius:12px;
  margin: 0 0 12px;
  color:#b91c1c;
  font-weight:500;
}

@media (max-width: 480px){
  .cg-auth-modal__dialog{ margin: 44px auto; }
}



/* === CG Ads (v1) === */
.cg-ad{margin:16px 0;}
.cg-ad-left,.cg-ad-right{margin:0;}
.cg-ad-left ins,.cg-ad-right ins,.cg-ad-top ins,.cg-ad-mid ins,.cg-ad-footer ins{max-width:100%;}
.cg-ads-sticky .cg-ad-left,
.cg-ads-sticky .cg-ad-right{
  position: sticky;
  top: clamp(120px, var(--cg-ads-sticky-top), 260px);
  height: fit-content;
}
@media (max-width:1024px){
  .cg-ads-hide-mobile-side .cg-ad-left,
  .cg-ads-hide-mobile-side .cg-ad-right{display:none!important;}
}
/* === /CG Ads (v1) === */



/* === CG Ads Layout (v2) === */
.cg-ads-layout{
  display:grid;
  grid-template-columns: 160px minmax(0,1fr) 300px;
  gap:24px;
  align-items:start;
}
.cg-ads-layout .cg-ads-main{min-width:0;}
.cg-ads-layout .cg-ads-left{grid-column:1;}
.cg-ads-layout .cg-ads-main{grid-column:2;}
.cg-ads-layout .cg-ads-right{grid-column:3;}
.cg-ads-layout .cg-ads-left, .cg-ads-layout .cg-ads-right{height:fit-content;}

@media (max-width:1024px){
  .cg-ads-layout{grid-template-columns:1fr;}
  .cg-ads-layout .cg-ads-left, .cg-ads-layout .cg-ads-right{display:none!important;}
  .cg-ads-layout .cg-ads-main{grid-column:1;}
}
/* === /CG Ads Layout (v2) === */



/* === Side rails (ads outside main container) === */
/* Default gap between sticky rail unit and footer when locking */
:root{ --cg-rail-footer-gap: 32px; }

body.cg-ads-enabled .cg-ads-rail{
  /* Rail container is non-sticky so the first unit scrolls away. */
  position: absolute;
  top: var(--cg-rail-top, 160px);
  z-index: 20;
  height: auto;
}
body.cg-ads-enabled .cg-ads-rail-left{ width: var(--cg-ads-left-width, 300px); }
body.cg-ads-enabled .cg-ads-rail-right{ width: var(--cg-ads-right-width, 300px); }

/* Position rails just outside the centered content area */
body.cg-ads-enabled .cg-ads-rail-left{
  left: max(10px, calc((100vw - 1240px)/2 - (var(--cg-ads-left-width, 300px) + var(--cg-rail-container-gap, 20px))));
}
body.cg-ads-enabled .cg-ads-rail-right{
  right: max(10px, calc((100vw - 1240px)/2 - (var(--cg-ads-right-width, 300px) + var(--cg-rail-container-gap, 20px))));
}

/* If left/right rails ever collide (viewport/zoom/scrollbar changes), hide the right rail */
body.cg-ads-enabled.cg-rails-overlap .cg-ads-rail-right{
  display:none !important;
}

/* Two-rail units: first scrolls naturally, second becomes sticky via JS */
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-2{
  margin-top: var(--cg-rail-gap, 28px);
}
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-sticky.is-fixed{
  position: fixed;
  top: var(--cg-rail-top, 160px);
}
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-sticky.is-absolute{
  position: absolute;
}

/* Hide rails when viewport is too narrow to avoid overlap */
@media (max-width: 1400px){
  body.cg-ads-enabled .cg-ads-rail{ display:none !important; }
}

/* Rail units: #1 is non-sticky; #2 becomes sticky via JS (fixed) */
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit{ width:100%; }
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-2{ margin-top: var(--cg-rail-gap, 24px); }
/* While sticking we add classes to the sticky unit */
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-sticky.is-fixed{ position:fixed; }
body.cg-ads-enabled .cg-ads-rail .cg-rail-unit-sticky.is-abs{ position:absolute; }
/* === /Side rails === */



/* === Top/Footer ad width controls === */
.cg-ad-top, .cg-ad-footer{
  max-width: var(--cg-ads-top-max, 970px);
  margin-left:auto;
  margin-right:auto;
}
.cg-ad-cta{
  max-width: var(--cg-ads-cta-max, 970px);
  margin: 22px auto;
  display:flex;
  justify-content:center;
}
.cg-ad-footer{ max-width: var(--cg-ads-footer-max, 970px); }

/* Ensure footer/top placements are visually centered regardless of ad code width */
.cg-ad-top,
.cg-ad-cta,
.cg-ad-footer{
  display:flex;
  justify-content:center;
}
.cg-ad-top > *,
.cg-ad-cta > *,
.cg-ad-footer > *{ max-width:100%; }

/* === Single: Top ad spacing (Desktop vs Mobile) === */
.cg-single-ad-top{
  display:flex;
  justify-content:center;
  margin-top: var(--cg-single-topad-top-d, 10px);
  margin-bottom: var(--cg-single-topad-bottom-d, 10px);
}
.cg-single-ad-top-mobile{
  display:flex;
  justify-content:center;
  margin-top: var(--cg-single-topad-top-m, 8px);
  margin-bottom: var(--cg-single-topad-bottom-m, 8px);
}
/* === /Single: Top ad spacing === */
/* === /Top/Footer ad width controls === */



/* === CG Mobile Home Ads (sizes from Ad Manager) === */
@media (max-width: 1024px){
  body.cg-ads-ctx-home .cg-ad-mob1,
  body.cg-ads-ctx-home .cg-ad-mob2,
  body.cg-ads-ctx-home .cg-ad-mob3{
    display:flex;
    justify-content:center;
    margin: 14px auto;
    padding: 0;
  }
  body.cg-ads-ctx-home .cg-ad-mob1 > *,
  body.cg-ads-ctx-home .cg-ad-mob2 > *,
  body.cg-ads-ctx-home .cg-ad-mob3 > *{
    max-width: 100%;
  }

  /* Reserve space to prevent layout shift; applies when using slots/ins too */
  body.cg-ads-ctx-home .cg-ad-mob1{ width: min(100%, var(--cg-mob1-w, 300px)); min-height: var(--cg-mob1-h, 100px); }
  body.cg-ads-ctx-home .cg-ad-mob2{ width: min(100%, var(--cg-mob2-w, 300px)); min-height: var(--cg-mob2-h, 100px); }
  body.cg-ads-ctx-home .cg-ad-mob3{ width: min(100%, var(--cg-mob3-w, 300px)); min-height: var(--cg-mob3-h, 100px); }
}
/* === /CG Mobile Home Ads === */


/* === CG Mobile Single Ads (sizes from Ad Manager) === */
@media (max-width: 1024px){
  body.cg-ads-ctx-single .cg-ad-mob1,
  body.cg-ads-ctx-single .cg-ad-mob2,
  body.cg-ads-ctx-single .cg-ad-mob3,
  body.cg-ads-ctx-single .cg-ad-mobfooter{
    display:flex;
    justify-content:center;
    margin: 14px auto;
    padding: 0;
  }
  body.cg-ads-ctx-single .cg-ad-mob1 > *,
  body.cg-ads-ctx-single .cg-ad-mob2 > *,
  body.cg-ads-ctx-single .cg-ad-mob3 > *,
  body.cg-ads-ctx-single .cg-ad-mobfooter > *{ max-width:100%; }

  /* Reserve space to reduce layout shift for in-content mobile units */
  body.cg-ads-ctx-single .cg-ad-mob1{ width: min(100%, var(--cg-mob1-w, 300px)); min-height: var(--cg-mob1-h, 100px); }
  body.cg-ads-ctx-single .cg-ad-mob2{ width: min(100%, var(--cg-mob2-w, 300px)); min-height: var(--cg-mob2-h, 100px); }
  body.cg-ads-ctx-single .cg-ad-mob3{ width: min(100%, var(--cg-mob3-w, 300px)); min-height: var(--cg-mob3-h, 100px); }
  body.cg-ads-ctx-single .cg-ad-mobfooter{ width: min(100%, var(--cg-mob1-w, 300px)); min-height: 100px; }
}

/* Hide single mobile placements on desktop */
@media (min-width: 1025px){
  body.cg-ads-ctx-single .cg-ad-mob1,
  body.cg-ads-ctx-single .cg-ad-mob2,
  body.cg-ads-ctx-single .cg-ad-mob3,
  body.cg-ads-ctx-single .cg-ad-mobfooter{ display:none !important; }
}
/* === /CG Mobile Single Ads === */


/* === CG Mobile Category Ads (Top + Before Footer) === */
@media (max-width: 1024px){
  body.cg-ads-ctx-category .cg-ad-mobtop,
  body.cg-ads-ctx-category .cg-ad-mobfooter{
    display:flex;
    justify-content:center;
    margin: 14px auto;
    padding: 0;
  }
  body.cg-ads-ctx-category .cg-ad-mobtop > *,
  body.cg-ads-ctx-category .cg-ad-mobfooter > *{ max-width:100%; }

  body.cg-ads-ctx-category .cg-ad-mobtop{ width: min(100%, var(--cg-catmobtop-w, 300px)); min-height: var(--cg-catmobtop-h, 100px); }
  body.cg-ads-ctx-category .cg-ad-mobfooter{ width: min(100%, var(--cg-catmobfooter-w, 300px)); min-height: var(--cg-catmobfooter-h, 100px); }
}

/* Hide category mobile placements on desktop */
@media (min-width: 1025px){
  body.cg-ads-ctx-category .cg-ad-mobtop,
  body.cg-ads-ctx-category .cg-ad-mobfooter{ display:none !important; }
}
/* === /CG Mobile Category Ads === */



/* Hide mobile placements on desktop */
@media (min-width: 1025px){
  body.cg-ads-ctx-home .cg-ad-mob1,
  body.cg-ads-ctx-home .cg-ad-mob2,
  body.cg-ads-ctx-home .cg-ad-mob3{ display:none !important; }
}



/* Hide home top banner on mobile (mobile has dedicated placements Mob1/Mob2/Mob3) */
@media (max-width: 1024px){
  body.cg-ads-ctx-home .cg-ad-top{ display:none !important; }
}

/* Home mobile already has Mob1/Mob2/Mob3 placements.
   Prevent an extra "Before Footer" banner from showing on mobile. */
@media (max-width: 1024px){
  body.cg-ads-ctx-home .cg-ad-footer{ display:none !important; }
}

/* =========================================================
 * Header: logo + header sizing (controlled via Customizer options)
 * Base logo box is 200x50, scaled by --cg-logo-scale
 * ========================================================= */
.site-header .brand .custom-logo-link{
  width: calc(200px * var(--cg-logo-scale, 1));
  height: calc(50px * var(--cg-logo-scale, 1));
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex: 0 0 auto;
  margin:0 !important;
  padding:0 !important;
}
.site-header .brand .custom-logo{
  max-width: calc(200px * var(--cg-logo-scale, 1));
  max-height: calc(50px * var(--cg-logo-scale, 1));
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* Tighten header vertical spacing + make header visually distinct */
.site-header{
  padding-top:0 !important;
  padding-bottom:0 !important;
  background: var(--cg-header-bg, #ffffff) !important;
  /* Full-width divider between header and top category bar */
  border-bottom:1px solid rgba(14,165,233,.9) !important;
}
.site-header .header-inner{
  padding-top: var(--cg-header-pad-y, 6px) !important;
  padding-bottom: var(--cg-header-pad-y, 6px) !important;
  /* Keep logo spacing equal from top/bottom and align everything nicely */
  display:flex;
  align-items:center;
}
.site-header .nav-primary > ul > li > a{ padding-top:8px !important; padding-bottom:8px !important; }
.site-header .cg-auth-cta .btn{ padding-top:8px !important; padding-bottom:8px !important; }

/* Optional brand text styling (when enabled) */
.brand .cg-brand-name,
.brand .cg-brand-text{ font-weight:900; letter-spacing:-.02em; white-space:nowrap; }

/* =========================================================
 * Top Category Bar
 * - Sits directly under the header blue line
 * - Width matches header container
 * - Shows ALL categories in one row (horizontal scroll if needed)
 * ========================================================= */
.cg-catbar{
  margin:0 !important;
  padding:8px 0 !important;
  background: var(--cg-header-bg, #ffffff) !important;
  border:0 !important; /* divider is the header border-bottom */
}
.cg-catbar-shell{
  border:0 !important;
  background: transparent !important;
  padding:0 !important;
  width:100%;
}
.cg-catbar-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  width:100%;
}
.cg-catbar-scroll::-webkit-scrollbar{ display:none; }
.cg-catbar-list{
  display:flex;
  flex-wrap:nowrap;
  gap:18px;
  white-space:nowrap;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}
.cg-catbar-item{ flex:0 0 auto; margin:0; }
.cg-catbar-link{
  display:inline-block;
  padding:6px 2px;
  font-weight:700;
  color: rgba(20, 29, 43, .85);
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.cg-catbar-link:hover{ color: rgba(20, 29, 43, 1); }
.cg-catbar-link.is-active{
  color: rgba(20, 29, 43, 1);
  border-bottom-color: rgba(14,165,233,.95);
}

/* =========================================================
 * Global full-bleed top chrome
 * Ensures header + top category bar always reach screen edges
 * (some single templates can appear "boxed" otherwise).
 * ========================================================= */
.site-header,
.cg-catbar{
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/*
  v6.8.219 — Mobile only: remove the top category bar on all pages.
  (Desktop/tablet remain unchanged.)

  v6.8.220 — Mobile: add a stylish hamburger button (top-right) that opens
  an off-canvas Categories drawer with a clean accordion layout.
*/
@media (max-width: 768px){
  .cg-catbar{ display:none !important; }
}

/* Desktop: distribute categories evenly across the full bar width */
@media (min-width: 992px){
  .cg-catbar-scroll{ overflow: visible; width:100%; }
  .cg-catbar-list{
    width:100%;
    gap:0;
    justify-content: space-between;
    flex-wrap:nowrap;
    white-space:nowrap;
  }
  .cg-catbar-item{
    flex: 1 1 0;
    text-align: center;
  }
  .cg-catbar-link{
    display:block;
    padding: 6px 10px;
  }
}

/* Overflow dropdown (legacy styles kept, but "More" is not rendered now) */
.cg-catbar-more{ position:relative; }
.cg-catbar-morebtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(217,225,238,.85);
  background:#fff;
  font-weight:700;
  cursor:pointer;
}
.cg-catbar-caret svg{ width:16px; height:16px; display:block; }
.cg-catbar-moremenu{
  display:none;
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  min-width: 220px;
  max-height: 320px;
  overflow:auto;
  background:#fff;
  border:1px solid rgba(217,225,238,.9);
  border-radius:14px;
  box-shadow: 0 16px 40px rgba(11,18,32,.12);
  padding:8px;
  z-index: 1000001;
}
.cg-catbar-more.is-open .cg-catbar-moremenu{ display:block; }
.cg-catbar-morelist{ list-style:none; margin:0; padding:0; }
.cg-catbar-moreitem{ margin:0; }
.cg-catbar-morelink{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  font-weight:700;
}
.cg-catbar-morelink:hover{ background:#e9f8ff; }


/* =========================================================
 * Catbar vertical centering fix (all pages)
 * Ensures category labels are vertically centered in the top bar
 * ========================================================= */
.cg-catbar{ display:flex; align-items:center; min-height:44px; }
.cg-catbar-shell{ display:flex; align-items:center; width:100%; }
.cg-catbar-scroll{ display:flex; align-items:center; width:100%; }


/* Version: 6.8.235 */

/* Desktop/Mobile visibility helpers */
.cg-desktop-only{display:block;}
@media (max-width:768px){.cg-desktop-only{display:none !important;}}
.cg-mobile-only{display:none;}
@media (max-width:768px){.cg-mobile-only{display:block;}}
