/*
Theme Name: CryptoCoinGrowth Lightweight
Theme URI: https://cryptocoingrowth.com/
Author: MediaWeb Pros
Description: A lightweight, performance-first editorial WordPress theme designed for CryptoCoinGrowth. No page builder, Bootstrap, React, or theme framework.
Version: 1.0.19
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: cryptocoin-growth
*/

:root {
  --ccg-primary: #1264d8;
  --ccg-secondary: #0d2b52;
  --ccg-accent: #20a36a;
  --ccg-text: #18202a;
  --ccg-muted: #667085;
  --ccg-border: #e5e7eb;
  --ccg-bg: #ffffff;
  --ccg-soft: #f5f7fa;
  --ccg-max: 1180px;
  --ccg-radius: 8px;
  --ccg-gap: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ccg-text);
  background: var(--ccg-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--ccg-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }

.ccg-container {
  width: min(var(--ccg-max), calc(100% - 32px));
  margin-inline: auto;
}
.ccg-skip { position:absolute; left:-9999px; }
.ccg-skip:focus { left:12px; top:12px; z-index:9999; background:#fff; padding:10px 14px; }

.ccg-topbar {
  background: var(--ccg-secondary);
  color:#fff;
  font-size:13px;
}
.ccg-topbar .ccg-container { display:flex; justify-content:space-between; gap:20px; padding:7px 0; }
.ccg-header { border-bottom:1px solid var(--ccg-border); background:#fff; }
.ccg-header-inner { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.ccg-brand { display:flex; align-items:center; gap:12px; color:var(--ccg-secondary); font-weight:800; font-size:25px; letter-spacing:-.5px; }
.ccg-brand:hover { text-decoration:none; }
.ccg-brand-mark { width:38px; height:38px; border-radius:9px; background:var(--ccg-primary); display:grid; place-items:center; color:#fff; font-weight:800; }
.ccg-tagline { display:block; font-size:11px; font-weight:500; color:var(--ccg-muted); letter-spacing:0; }
.ccg-nav { display:flex; align-items:center; gap:20px; margin-left:auto; }
.ccg-nav > ul { display:flex; align-items:center; flex-wrap:nowrap; gap:22px; list-style:none; margin:0; padding:0; }
.ccg-nav li { position:relative; list-style:none; }
.ccg-nav > ul > li > a { display:block; padding:28px 0; white-space:nowrap; }
.ccg-nav a { color:var(--ccg-text); font-weight:600; font-size:14px; }
.ccg-nav a:hover,
.ccg-nav a:focus { color:var(--ccg-primary); text-decoration:none; }

.ccg-nav .sub-menu {
  position:absolute;
  z-index:1000;
  top:100%;
  left:-16px;
  min-width:260px;
  display:none;
  margin:0;
  padding:8px 0;
  background:#fff;
  border:1px solid var(--ccg-border);
  border-radius:8px;
  box-shadow:0 10px 28px rgba(15,23,42,.12);
}
.ccg-nav .sub-menu li { width:100%; }
.ccg-nav .sub-menu a {
  display:block;
  width:100%;
  padding:10px 16px;
  white-space:nowrap;
  font-size:14px;
}
.ccg-nav .sub-menu a:hover,
.ccg-nav .sub-menu a:focus { background:var(--ccg-soft); }
.ccg-nav li:hover > .sub-menu,
.ccg-nav li:focus-within > .sub-menu { display:block; }

.ccg-nav .menu-item-has-children > a::after {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}

.ccg-menu-toggle { display:none; border:1px solid var(--ccg-border); background:#fff; padding:8px 11px; border-radius:6px; }

.ccg-main { padding:32px 0 56px; }
.ccg-section { margin-top:38px; }
.ccg-section:first-child { margin-top:0; }
.ccg-section-title { display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:2px solid var(--ccg-secondary); margin:0 0 20px; padding:0 0 9px; }
.ccg-section-title h2 { font-size:20px; line-height:1.2; margin:0; }
.ccg-kicker { display:inline-block; color:#0b57b7; text-transform:uppercase; letter-spacing:.06em; font-size:11px; font-weight:800; margin-bottom:7px; }
.ccg-card { background:#fff; }
.ccg-card img { display:block; width:100%; }
.ccg-card-title { margin:9px 0 0; line-height:1.25; font-size:20px; }
.ccg-card-title a { color:var(--ccg-text); }
.ccg-card-title a:hover { color:var(--ccg-primary); text-decoration:none; }
.ccg-meta { color:#4b5563; font-size:12px; margin-top:8px; }
.ccg-meta a { color:#374151; text-decoration:underline; text-underline-offset:2px; }
.ccg-excerpt { color:#4b5563; font-size:14px; margin:7px 0 0; }

.ccg-hero { display:grid; grid-template-columns:minmax(0, 2fr) minmax(280px, 1fr); gap:var(--ccg-gap); }
.ccg-hero-main { position:relative; overflow:hidden; border-radius:var(--ccg-radius); background:#eef2f7; }
.ccg-hero-main img { aspect-ratio:16/9; object-fit:cover; }
.ccg-hero-copy { padding:18px 4px 0; }
.ccg-hero-copy h1 { font-size:clamp(28px, 4vw, 46px); line-height:1.08; letter-spacing:-1px; margin:0; }
.ccg-hero-copy h1 a { color:var(--ccg-text); }
.ccg-hero-copy p { color:#526071; margin:12px 0 0; }
.ccg-side-stories { display:grid; gap:20px; }
.ccg-side-story { display:grid; grid-template-columns:110px 1fr; gap:13px; padding-bottom:18px; border-bottom:1px solid var(--ccg-border); }
.ccg-side-story:last-child { border-bottom:0; }
.ccg-side-story img { aspect-ratio:16/10; object-fit:cover; border-radius:6px; }
.ccg-side-story h2 { margin:0; font-size:16px; line-height:1.25; }

.ccg-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.ccg-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.ccg-card-grid img { aspect-ratio:16/9; object-fit:cover; border-radius:var(--ccg-radius); }
.ccg-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:36px; }
.ccg-layout.no-sidebar { grid-template-columns:minmax(0,1fr); max-width:850px; }
.ccg-sidebar { min-width:0; }
.ccg-widget { margin-bottom:28px; }
.ccg-widget-title { font-size:16px; border-bottom:2px solid var(--ccg-secondary); padding-bottom:8px; margin:0 0 13px; }
.ccg-widget ul { list-style:none; margin:0; padding:0; }
.ccg-widget li { border-bottom:1px solid var(--ccg-border); padding:8px 0; }
.ccg-widget .widget { margin-bottom:28px; }


.ccg-post-header { max-width:900px; margin-bottom:24px; }
.ccg-post-title { font-size:clamp(32px,5vw,54px); line-height:1.08; letter-spacing:-1.2px; margin:0 0 12px; }
.ccg-featured { margin:22px 0 30px; }
.ccg-featured img { width:100%; display:block; border-radius:var(--ccg-radius); }
.ccg-post-content { font-size:18px; line-height:1.8; }
.ccg-post-content > * { max-width:850px; }
.ccg-post-content img { height:auto; }
.ccg-post-content h2 { font-size:30px; line-height:1.2; margin-top:38px; }
.ccg-post-content h3 { font-size:24px; line-height:1.25; margin-top:32px; }
.ccg-post-content blockquote { margin:25px 0; padding:16px 20px; border-left:4px solid var(--ccg-primary); background:var(--ccg-soft); }
.ccg-post-content table { width:100%; border-collapse:collapse; }
.ccg-post-content th, .ccg-post-content td { border:1px solid var(--ccg-border); padding:9px; text-align:left; }

.ccg-archive-head { margin-bottom:25px; }
.ccg-archive-head h1 { font-size:38px; margin:0; }
.ccg-archive-list { display:grid; gap:24px; }
.ccg-list-card { display:grid; grid-template-columns:280px 1fr; gap:22px; padding-bottom:24px; border-bottom:1px solid var(--ccg-border); }
.ccg-list-card img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--ccg-radius); }
.ccg-list-card h2 { margin:0; font-size:25px; line-height:1.2; }
.ccg-pagination { margin-top:30px; }
.ccg-pagination .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.ccg-pagination a, .ccg-pagination span { padding:7px 11px; border:1px solid var(--ccg-border); border-radius:6px; }

.ccg-tools { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.ccg-tool { padding:22px; border:1px solid var(--ccg-border); border-radius:var(--ccg-radius); background:#fff; }
.ccg-tool h3 { margin:0 0 5px; font-size:18px; }
.ccg-market-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:30px; }
.ccg-market-item { border:1px solid var(--ccg-border); padding:12px 14px; border-radius:7px; background:var(--ccg-soft); }
.ccg-market-item strong { display:block; font-size:13px; }
.ccg-market-item span { font-size:18px; font-weight:700; }

.ccg-footer { border-top:1px solid var(--ccg-border); background:#f8fafc; padding:36px 0; }
.ccg-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px; }
.ccg-footer h3 { margin-top:0; font-size:16px; }
.ccg-footer p, .ccg-footer li { color:#5f6b7a; font-size:14px; }
.ccg-footer ul { list-style:none; padding:0; margin:0; }
.ccg-footer li { margin-bottom:7px; }
.ccg-copyright { border-top:1px solid var(--ccg-border); margin-top:25px; padding-top:18px; color:var(--ccg-muted); font-size:12px; }

@media (max-width: 900px) {
  .ccg-hero { grid-template-columns:1fr; }
  .ccg-layout { grid-template-columns:1fr; }
  .ccg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ccg-market-strip { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 700px) {
  .ccg-container { width:min(var(--ccg-max), calc(100% - 22px)); }
  .ccg-header-inner { min-height:64px; }
  .ccg-nav { display:none; width:100%; }
  .ccg-nav.is-open { display:block; }
  .ccg-header-inner { flex-wrap:wrap; }
  .ccg-menu-toggle { display:block; }
  .ccg-nav > ul { flex-direction:column; align-items:stretch; padding:10px 0 15px; gap:0; }
  .ccg-nav > ul > li > a { padding:10px 0; }
  .ccg-nav .sub-menu {
    position:static;
    display:block;
    min-width:0;
    border:0;
    box-shadow:none;
    padding:0 0 4px 16px;
    background:transparent;
  }
  .ccg-nav .sub-menu a { padding:8px 0; white-space:normal; }
  .ccg-nav .menu-item-has-children > a::after { display:none; }
  .ccg-topbar .ccg-container { display:none; }
  .ccg-main { padding-top:22px; }
  .ccg-grid, .ccg-grid-2, .ccg-tools { grid-template-columns:1fr; }
  .ccg-list-card { grid-template-columns:120px 1fr; gap:14px; }
  .ccg-list-card h2 { font-size:18px; }
  .ccg-list-card .ccg-excerpt { display:none; }
  .ccg-hero-copy h1 { font-size:31px; }
  .ccg-side-story { grid-template-columns:95px 1fr; }
  .ccg-post-title { font-size:34px; }
  .ccg-post-content { font-size:17px; }
  .ccg-footer-grid { grid-template-columns:1fr; }
}

@media (max-width: 1080px) and (min-width: 701px) {
  .ccg-header-inner { gap:18px; }
  .ccg-brand { font-size:22px; }
  .ccg-nav > ul { gap:15px; }
  .ccg-nav a { font-size:13px; }
}


/* Organized magazine homepage */
.ccg-section-link {
  color:var(--ccg-primary);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.ccg-section-note {
  color:var(--ccg-muted);
  font-size:12px;
  font-weight:600;
}
.ccg-popular-section {
  padding:24px;
  background:var(--ccg-soft);
  border-radius:var(--ccg-radius);
}
.ccg-popular-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 30px;
}
.ccg-popular-card {
  display:grid;
  grid-template-columns:44px 1fr;
  gap:13px;
  align-items:start;
  padding:17px 0;
  border-bottom:1px solid var(--ccg-border);
}
.ccg-popular-rank {
  color:var(--ccg-primary);
  font-size:35px;
  font-weight:800;
  line-height:1;
  letter-spacing:-1.5px;
}
.ccg-popular-card h3 {
  margin:2px 0 0;
  font-size:17px;
  line-height:1.28;
}
.ccg-popular-card h3 a { color:var(--ccg-text); }
.ccg-popular-card h3 a:hover { color:var(--ccg-primary); text-decoration:none; }

.ccg-video-section {
  padding:26px;
  background:#0d2b52;
  border-radius:var(--ccg-radius);
}
.ccg-video-section .ccg-section-title { border-color:#fff; }
.ccg-video-section .ccg-section-title h2,
.ccg-video-section .ccg-section-link { color:#fff; }
.ccg-video-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.ccg-video-card h3 {
  margin:10px 0 0;
  font-size:16px;
  line-height:1.3;
}
.ccg-video-card h3 a { color:#fff; }
.ccg-video-card .ccg-meta,
.ccg-video-card .ccg-meta a { color:#d7e1ee; }
.ccg-video-thumb { position:relative; }
.ccg-video-thumb img {
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:7px;
}
.ccg-play-badge {
  position:absolute;
  left:12px;
  bottom:12px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  color:#fff;
  background:rgba(0,0,0,.72);
  font-size:13px;
  pointer-events:none;
}
.ccg-tools-section .ccg-tool {
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
}
.ccg-category-section + .ccg-category-section {
  padding-top:7px;
  border-top:1px solid var(--ccg-border);
}

@media (max-width: 900px) {
  .ccg-video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .ccg-section-title { align-items:flex-end; }
  .ccg-popular-section,
  .ccg-video-section { padding:18px; }
  .ccg-popular-grid { grid-template-columns:1fr; }
  .ccg-video-grid { grid-template-columns:1fr 1fr; gap:16px 12px; }
  .ccg-video-card h3 { font-size:14px; }
}


/* v1.0.6 metadata cleanup */
.ccg-meta-sep { margin:0 2px; }
.ccg-side-story .ccg-meta,
.ccg-side-story .ccg-excerpt { display:none; }


/* v1.0.7 hero balance */
.ccg-hero { align-items:start; }
.ccg-side-stories {
  align-self:start;
  align-content:start;
  grid-auto-rows:auto;
  gap:0;
}
.ccg-side-story {
  grid-template-columns:108px 1fr;
  gap:13px;
  align-items:start;
  padding:13px 0;
  margin:0;
}
.ccg-side-story:first-child { padding-top:0; }
.ccg-side-story img {
  width:108px;
  height:68px;
  aspect-ratio:auto;
  object-fit:cover;
}
.ccg-side-story h2 {
  font-size:15px;
  line-height:1.25;
}
.ccg-side-story .ccg-kicker {
  margin-bottom:4px;
  font-size:10px;
}
.ccg-home-hero-section .ccg-hero-main > img {
  width:100%;
  aspect-ratio:16/8.6;
  object-fit:cover;
}
.ccg-home-hero-section .ccg-hero-copy {
  padding-top:15px;
}
.ccg-home-hero-section .ccg-hero-copy p {
  margin-top:9px;
}

@media (max-width: 900px) {
  .ccg-home-hero-section .ccg-hero-main > img {
    aspect-ratio:16/9;
  }
}

.ccg-brand .custom-logo-link{display:flex;align-items:center;line-height:0}
.ccg-brand .custom-logo{display:block;width:auto;height:auto;max-height:54px;max-width:320px}
.ccg-menu-toggle{width:46px;height:46px;padding:0;align-items:center;justify-content:center}
.ccg-menu-icon{display:flex;width:23px;flex-direction:column;gap:5px}
.ccg-menu-icon span{display:block;width:100%;height:3px;border-radius:2px;background:var(--ccg-text)}
@media(max-width:700px){
  .ccg-header-inner{min-height:78px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0}
  .ccg-brand{min-width:0;width:auto;justify-self:start;justify-content:flex-start;margin:0;padding:0;font-size:0}
  .ccg-brand .custom-logo-link{justify-content:flex-start;width:auto;max-width:100%}
  .ccg-brand .custom-logo{height:50px;width:auto;max-width:min(290px,calc(100vw - 95px));object-fit:contain;object-position:left center}
  .ccg-menu-toggle{display:flex;justify-self:end;flex:0 0 46px;margin:0;border:1px solid var(--ccg-border);background:#fff;border-radius:8px}
  .ccg-nav{grid-column:1/-1;width:100%;margin-left:0}
  .ccg-nav:not(.is-open){display:none}
  .ccg-nav.is-open{display:block}
  .ccg-nav>ul{width:100%}
}
@media(max-width:420px){
  .ccg-brand .custom-logo{height:46px;max-width:calc(100vw - 88px)}
  .ccg-header-inner{gap:8px}
  .ccg-menu-toggle{width:42px;height:42px;flex-basis:42px}
}

@media (max-width:700px){
  .ccg-header .ccg-container.ccg-header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:auto auto!important;
    width:min(var(--ccg-max),calc(100% - 22px))!important;
    min-height:72px!important;
    gap:8px 10px!important;
    align-items:center!important;
    padding:8px 0!important;
  }
  .ccg-header .ccg-brand{
    grid-column:1!important;grid-row:1!important;
    display:flex!important;justify-content:flex-start!important;align-items:center!important;
    justify-self:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
  }
  .ccg-header .ccg-brand>.custom-logo-link{
    display:flex!important;justify-content:flex-start!important;align-items:center!important;
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  }
  .ccg-header .ccg-brand img.custom-logo{
    display:block!important;width:auto!important;height:46px!important;max-height:46px!important;
    max-width:100%!important;object-fit:contain!important;object-position:left center!important;margin:0!important;
  }
  .ccg-header .ccg-menu-toggle{
    grid-column:2!important;grid-row:1!important;display:flex!important;
    justify-self:end!important;align-self:center!important;
    width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;
  }
  .ccg-header .ccg-nav{
    grid-column:1/-1!important;grid-row:2!important;width:100%!important;margin:0!important;
  }
  .ccg-header .ccg-nav:not(.is-open){display:none!important}
  .ccg-header .ccg-nav.is-open{display:block!important}
}
@media (max-width:420px){
  .ccg-header .ccg-container.ccg-header-inner{grid-template-columns:minmax(0,1fr) 40px!important}
  .ccg-header .ccg-brand img.custom-logo{height:42px!important;max-height:42px!important}
  .ccg-header .ccg-menu-toggle{width:40px!important;height:40px!important;min-width:40px!important}
}


/* v1.0.11: corrected logo markup + true overlay mobile navigation */
.ccg-brand-fallback {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ccg-secondary);
}
.ccg-brand-fallback:hover { text-decoration:none; }

@media (max-width:700px) {
  body.ccg-menu-open {
    overflow:hidden;
  }

  .ccg-header {
    position:relative;
    z-index:2000;
    background:#fff;
  }

  .ccg-header .ccg-container.ccg-header-inner {
    position:relative;
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) 44px !important;
    grid-template-rows:1fr !important;
    align-items:center !important;
    gap:10px !important;
    min-height:72px !important;
    padding:8px 0 !important;
  }

  .ccg-header .ccg-brand {
    grid-column:1 !important;
    grid-row:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
  }

  .ccg-header .ccg-brand .custom-logo-link {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    line-height:0 !important;
  }

  .ccg-header .ccg-brand img.custom-logo {
    display:block !important;
    width:auto !important;
    height:46px !important;
    max-height:46px !important;
    max-width:min(280px, calc(100vw - 86px)) !important;
    object-fit:contain !important;
    object-position:left center !important;
    margin:0 !important;
  }

  .ccg-header .ccg-menu-toggle {
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:end !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    margin:0 !important;
    padding:0 !important;
    z-index:2;
  }

  /* Mobile navigation overlays the page instead of becoming a second header row. */
  .ccg-header .ccg-nav {
    position:absolute !important;
    top:100% !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:100vw !important;
    max-height:calc(100vh - 72px) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    display:none !important;
    margin:0 !important;
    padding:10px 0 20px !important;
    background:#fff !important;
    border-top:1px solid var(--ccg-border);
    border-bottom:1px solid var(--ccg-border);
    box-shadow:0 14px 28px rgba(15,23,42,.14);
    z-index:1999;
  }

  .ccg-header .ccg-nav.is-open {
    display:block !important;
  }

  .ccg-header .ccg-nav > ul {
    width:min(var(--ccg-max), calc(100% - 32px)) !important;
    margin:0 auto !important;
    padding:4px 0 10px !important;
    display:block !important;
  }

  .ccg-header .ccg-nav > ul > li {
    border-bottom:1px solid #eef1f4;
  }

  .ccg-header .ccg-nav > ul > li:last-child {
    border-bottom:0;
  }

  .ccg-header .ccg-nav > ul > li > a {
    display:block !important;
    padding:12px 2px !important;
    font-size:15px !important;
  }

  .ccg-header .ccg-nav .sub-menu {
    position:static !important;
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 0 8px 16px !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }

  .ccg-header .ccg-nav .sub-menu li {
    border:0 !important;
  }

  .ccg-header .ccg-nav .sub-menu a {
    display:block !important;
    padding:8px 2px !important;
    font-size:14px !important;
    white-space:normal !important;
  }

  .ccg-header .ccg-nav .menu-item-has-children > a::after {
    display:none !important;
  }

  /* Hamburger morphs into an X while open. */
  .ccg-menu-icon span {
    transition:transform .18s ease, opacity .18s ease;
    transform-origin:center;
  }

  .ccg-menu-toggle[aria-expanded="true"] .ccg-menu-icon span:nth-child(1) {
    transform:translateY(8px) rotate(45deg);
  }

  .ccg-menu-toggle[aria-expanded="true"] .ccg-menu-icon span:nth-child(2) {
    opacity:0;
  }

  .ccg-menu-toggle[aria-expanded="true"] .ccg-menu-icon span:nth-child(3) {
    transform:translateY(-8px) rotate(-45deg);
  }
}

@media (max-width:420px) {
  .ccg-header .ccg-container.ccg-header-inner {
    grid-template-columns:minmax(0, 1fr) 40px !important;
    min-height:66px !important;
  }

  .ccg-header .ccg-brand img.custom-logo {
    height:42px !important;
    max-height:42px !important;
    max-width:calc(100vw - 78px) !important;
  }

  .ccg-header .ccg-menu-toggle {
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .ccg-header .ccg-nav {
    max-height:calc(100vh - 66px) !important;
  }
}


/* v1.0.12: force logo + hamburger onto one permanent mobile row */
@media (max-width:700px) {
  .ccg-header .ccg-container.ccg-header-inner {
    position:relative !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:min(var(--ccg-max), calc(100% - 22px)) !important;
    min-height:72px !important;
    gap:10px !important;
    padding:8px 0 !important;
  }

  .ccg-header .ccg-brand {
    display:flex !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:calc(100% - 54px) !important;
    align-items:center !important;
    justify-content:flex-start !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    order:1 !important;
  }

  .ccg-header .ccg-brand .custom-logo-link {
    display:flex !important;
    flex:0 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    align-items:center !important;
    justify-content:flex-start !important;
    margin:0 !important;
    padding:0 !important;
  }

  .ccg-header .ccg-brand img.custom-logo {
    display:block !important;
    width:auto !important;
    height:46px !important;
    max-height:46px !important;
    max-width:100% !important;
    object-fit:contain !important;
    object-position:left center !important;
    margin:0 !important;
  }

  .ccg-header .ccg-menu-toggle {
    position:static !important;
    display:flex !important;
    flex:0 0 44px !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    margin:0 !important;
    padding:0 !important;
    order:2 !important;
  }

  .ccg-header .ccg-nav {
    position:absolute !important;
    top:100% !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:100vw !important;
    max-height:calc(100vh - 72px) !important;
    overflow-y:auto !important;
    margin:0 !important;
    flex:none !important;
    order:3 !important;
  }
}

@media (max-width:420px) {
  .ccg-header .ccg-container.ccg-header-inner {
    min-height:66px !important;
    gap:8px !important;
  }

  .ccg-header .ccg-brand {
    max-width:calc(100% - 48px) !important;
  }

  .ccg-header .ccg-brand img.custom-logo {
    height:42px !important;
    max-height:42px !important;
  }

  .ccg-header .ccg-menu-toggle {
    flex-basis:40px !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .ccg-header .ccg-nav {
    max-height:calc(100vh - 66px) !important;
  }
}

/* v1.0.14: uniform category/archive thumbnails */
.category .ccg-card-grid>a,
.archive .ccg-card-grid>a,
.category .ccg-list-card>a,
.archive .ccg-list-card>a,
.search .ccg-list-card>a{
  display:block;overflow:hidden;border-radius:var(--ccg-radius)
}
.category .ccg-card-grid>a>img.ccg-image,
.archive .ccg-card-grid>a>img.ccg-image,
.category .ccg-list-card>a>img.ccg-image,
.archive .ccg-list-card>a>img.ccg-image,
.search .ccg-list-card>a>img.ccg-image{
  display:block;width:100%!important;aspect-ratio:16/9!important;
  object-fit:cover!important;object-position:center!important
}
.category .ccg-list-card>a,
.archive .ccg-list-card>a,
.search .ccg-list-card>a{aspect-ratio:16/9}
.category .ccg-list-card>a>img.ccg-image,
.archive .ccg-list-card>a>img.ccg-image,
.search .ccg-list-card>a>img.ccg-image{height:100%!important}
@media(max-width:700px){
  .category .ccg-list-card,
  .archive .ccg-list-card,
  .search .ccg-list-card{grid-template-columns:120px minmax(0,1fr)}
  .category .ccg-list-card>a,
  .archive .ccg-list-card>a,
  .search .ccg-list-card>a{width:120px;aspect-ratio:16/9}
}


/* v1.0.15: magazine archive/category image normalization */
.category .ccg-grid-2 .ccg-card > a,
.archive .ccg-grid-2 .ccg-card > a {
  display:block !important;
  width:100% !important;
  aspect-ratio:16 / 9 !important;
  overflow:hidden !important;
  border-radius:var(--ccg-radius) !important;
  background:#eef2f7;
}

.category .ccg-grid-2 .ccg-card > a > img.ccg-image,
.archive .ccg-grid-2 .ccg-card > a > img.ccg-image {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:0 !important;
}

/* Keep every magazine card aligned even when source images have wildly
   different intrinsic dimensions. */
.category .ccg-grid-2,
.archive .ccg-grid-2 {
  align-items:start;
}

@media (max-width:700px) {
  .category .ccg-grid-2 .ccg-card > a,
  .archive .ccg-grid-2 .ccg-card > a {
    aspect-ratio:16 / 9 !important;
  }
}


/* v1.0.17 per-page layout options */
.ccg-layout.ccg-page-contained {
  max-width:850px;
}

.ccg-layout.ccg-page-full-width {
  max-width:none;
  width:100%;
}

.ccg-page-full-width .ccg-post-header,
.ccg-page-full-width .ccg-post-content > * {
  max-width:none;
}

.ccg-page-full-width .ccg-post-content {
  width:100%;
  min-width:0;
}

.ccg-page-primary {
  min-width:0;
}

@media (max-width:900px) {
  .ccg-layout .ccg-sidebar {
    margin-top:28px;
  }
}


/* v1.0.18 simplified page layouts */
.ccg-page-browser-width {
  width:calc(100% - 44px);
  max-width:none;
  margin-left:auto;
  margin-right:auto;
}

.ccg-layout.ccg-page-full-width {
  display:block;
  width:100%;
  max-width:none;
}

.ccg-page-full-width .ccg-page-primary,
.ccg-page-full-width .ccg-post-header,
.ccg-page-full-width .ccg-post-content,
.ccg-page-full-width .ccg-post-content > * {
  width:100%;
  max-width:none;
}

.ccg-page-with-sidebar {
  grid-template-columns:minmax(0,1fr) 310px;
}

@media (max-width:900px) {
  .ccg-page-browser-width {
    width:calc(100% - 30px);
  }
  .ccg-page-with-sidebar {
    grid-template-columns:1fr;
  }
}

@media (max-width:700px) {
  .ccg-page-browser-width {
    width:calc(100% - 22px);
  }
}


/* v1.0.19 page layout correction:
   Content Width = full normal site container, without sidebar. */
.ccg-layout.ccg-page-content-width {
  display:block;
  width:100%;
  max-width:none;
}

.ccg-page-content-width .ccg-page-primary,
.ccg-page-content-width .ccg-post-header,
.ccg-page-content-width .ccg-post-content,
.ccg-page-content-width .ccg-post-content > * {
  width:100%;
  max-width:none;
}

.ccg-page-content-width .ccg-post-content {
  min-width:0;
}

.ccg-page-with-sidebar {
  grid-template-columns:minmax(0,1fr) 310px;
}

/* Retire the browser-edge breakout introduced in v1.0.18. */
.ccg-page-browser-width {
  width:auto;
  max-width:none;
  margin:0;
}

@media (max-width:900px) {
  .ccg-page-with-sidebar {
    grid-template-columns:1fr;
  }
}
