/* =========================================================
   RIVMEDIA BASE — HEADER, NAV, HERO, BREADCRUMBS
   ---------------------------------------------------------
   Loaded AFTER style.css to override legacy dark-theme
   declarations without modifying the original file.
   ========================================================= */

/* ----- Accessibility ----- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =========================================================
   1. HEADER
   ========================================================= */

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  overflow: visible !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Smart sticky */
.site-header.header--hidden {
  transform: translateY(-100%);
}
.site-header.header--scrolled {
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

/* ----- Inner layout: logo | nav | actions ----- */
/* CSS Grid guarantees true centre for nav regardless of
   logo vs actions width difference */
.site-header-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem clamp(2rem, 5vw, 4rem);
}

/* =========================================================
   2. LOGO — Overhanging "Hanging" Effect
   ========================================================= */

.site-logo {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Remove all old pseudo-element decorations */
.site-logo::before,
.site-logo::after {
  display: none !important;
  content: none !important;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ct-accent);
  text-decoration: none;
  padding: 0;
}

.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

/* The actual logo image — overhang effect */
.site-logo .custom-logo,
.site-logo img.custom-logo,
header .custom-logo,
header img.custom-logo {
  height: auto !important;
  max-height: 90px !important;
  width: auto !important;
  transform: translateY(12px) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease, max-height 0.25s ease;
}

/* Fallback text logo */
.site-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 25%, #fff, var(--ct-accent) 55%, transparent 70%);
  box-shadow: 0 0 18px rgba(122, 151, 48, 0.28);
}

/* =========================================================
   3. DESKTOP NAVIGATION
   ========================================================= */

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  overflow: visible !important;
}

.site-nav .menu-primary-container ul,
.site-nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--ct-text-main) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border-bottom: none !important;
  width: auto !important;
}

/* Remove old underline pseudo */
.site-nav a::after {
  display: none !important;
}

.site-nav a:hover {
  background: rgba(122, 151, 48, 0.08);
  color: var(--ct-accent) !important;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--ct-accent) !important;
  background: rgba(122, 151, 48, 0.06);
}

/* ----- Desktop dropdowns ----- */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 60;
  flex-direction: column;
  gap: 0;
}

/* Hover bridge */
.site-nav .menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.site-nav .sub-menu li { width: 100%; }

.site-nav .sub-menu a {
  display: block !important;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 400;
}
.site-nav .sub-menu a:hover {
  background: rgba(122, 151, 48, 0.08);
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children.is-focused > .sub-menu {
  display: flex;
}

/* Chevron indicator on parent items */
.site-nav .menu-item-has-children > a::after {
  display: inline-block !important;
  content: "" !important;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.4rem;
  position: static !important;
  background: none !important;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.site-nav .menu-item-has-children:hover > a::after { opacity: 1; }

/* =========================================================
   4. HEADER ACTIONS (search + hamburger)
   ========================================================= */

.site-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: transparent;
  color: var(--ct-text-main);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.header-search-toggle:hover {
  background: rgba(122, 151, 48, 0.06);
  border-color: rgba(122, 151, 48, 0.25);
}

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 10px;
  background: transparent !important;
  color: var(--ct-text-main) !important;
  cursor: pointer;
  padding: 0 !important;
}
.menu-toggle:hover { background: rgba(15, 23, 42, 0.04) !important; }

.menu-toggle-icon {
  width: 18px; height: 14px;
  position: relative; display: block;
}
.menu-toggle-icon span {
  position: absolute; left: 0; right: 0; height: 2px;
  border-radius: 999px;
  background: var(--ct-text-main) !important;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { bottom: 0; }

.menu-toggle > span:not(.menu-toggle-icon) { display: none; }

/* =========================================================
   5. SEARCH PANEL
   ========================================================= */

.header-search-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  z-index: 90;
}
.header-search-panel.is-open {
  max-height: 100px;
  opacity: 1;
  padding: 1rem 0;
}

.header-search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.header-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--ct-surface-soft);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.header-search-form:focus-within {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 3px rgba(122, 151, 48, 0.12);
}

.header-search-form input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--ct-text-main);
  outline: none;
  font-family: inherit;
}
.header-search-form input[type="search"]::placeholder { color: var(--ct-text-muted); }

.header-search-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; background: transparent;
  color: var(--ct-text-muted); cursor: pointer;
  transition: color 0.15s ease;
}
.header-search-form button[type="submit"]:hover { color: var(--ct-accent); }

.header-search-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: none; background: transparent;
  color: var(--ct-text-muted); cursor: pointer; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-search-close:hover { background: rgba(15, 23, 42, 0.05); color: var(--ct-text-main); }

/* =========================================================
   6. MOBILE OFF-CANVAS NAV
   ========================================================= */

.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.10);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateX(0); }
body.nav-open { overflow: hidden; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.mobile-nav-title {
  font-weight: 600; font-size: 1rem;
  color: var(--ct-text-main);
}
.mobile-nav-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: none; background: rgba(15, 23, 42, 0.04);
  border-radius: 8px; color: var(--ct-text-main); cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-nav-close:hover { background: rgba(15, 23, 42, 0.08); }

/* Mobile search */
.mobile-nav-search {
  padding: 1rem 1.25rem 0.5rem;
  flex-shrink: 0;
}
.mobile-nav-search form { display: flex; }
.mobile-nav-search input[type="search"] {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--ct-surface-soft);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ct-text-main);
  outline: none; font-family: inherit;
  transition: border-color 0.15s ease;
}
.mobile-nav-search input[type="search"]:focus {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 3px rgba(122, 151, 48, 0.12);
}
.mobile-nav-search input::placeholder { color: var(--ct-text-muted); }

/* Mobile menu items */
.mobile-nav-menu {
  flex: 1;
  padding: 0.5rem 0;
}

.mobile-nav-menu ul.mobile-menu,
.mobile-nav-menu .menu-primary-container ul {
  list-style: none; margin: 0; padding: 0;
}
.mobile-nav-menu li { position: relative; }

.mobile-nav-menu > ul > li > a,
.mobile-nav-menu > .menu-primary-container > ul > li > a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ct-text-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.12s ease;
}
.mobile-nav-menu a:hover {
  background: rgba(122, 151, 48, 0.06);
  text-decoration: none;
}
.mobile-nav-menu .current-menu-item > a {
  color: var(--ct-accent);
  font-weight: 600;
}

/* Sub-menu accordion toggle */
.mobile-submenu-toggle {
  position: absolute;
  top: 0; right: 0;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--ct-text-muted); cursor: pointer;
  transition: color 0.15s ease;
}
.mobile-submenu-toggle.is-open { color: var(--ct-accent); }
.mobile-submenu-toggle.is-open svg { transform: rotate(180deg); }

.mobile-nav-menu .sub-menu {
  list-style: none; margin: 0;
  padding: 0 0 0.5rem;
  background: rgba(15, 23, 42, 0.02);
}
.mobile-nav-menu .sub-menu a {
  display: block;
  padding: 0.7rem 1.25rem 0.7rem 2.25rem;
  font-size: 0.9rem; font-weight: 400;
  color: var(--ct-text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
.mobile-nav-menu .sub-menu a:hover { color: var(--ct-accent); }

/* =========================================================
   7. PAGE HERO — decorative separator for archives/single
   ========================================================= */

.ct-page-hero {
  position: relative;
  background:
    radial-gradient(1200px 300px at 80% 30%, rgba(166, 184, 79, 0.12), transparent 60%),
    radial-gradient(800px 250px at 20% 60%, rgba(244, 178, 140, 0.10), transparent 60%),
    linear-gradient(180deg, #f7f9f4 0%, #ffffff 100%);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Decorative leaf/food pattern (same as homepage hero) */
.ct-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cg fill='%23a6b84f' fill-opacity='0.06'%3E%3Cellipse cx='120' cy='80' rx='34' ry='14'/%3E%3Cellipse cx='260' cy='150' rx='26' ry='12'/%3E%3Cellipse cx='420' cy='90' rx='38' ry='16'/%3E%3Cellipse cx='560' cy='170' rx='30' ry='13'/%3E%3Cellipse cx='690' cy='110' rx='28' ry='12'/%3E%3Cellipse cx='180' cy='250' rx='22' ry='10'/%3E%3Cellipse cx='480' cy='280' rx='32' ry='14'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 500px 260px;
  pointer-events: none;
}

/* Gradient fade at bottom */
.ct-page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ct-accent), var(--ct-accent-2), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.ct-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
}

.ct-page-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ct-text-main);
  margin: 0.5rem 0 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ct-page-hero-sub {
  color: var(--ct-text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin: 0.6rem 0 0;
  max-width: 600px;
  line-height: 1.55;
}

/* Single post variant (slimmer) */
.ct-page-hero--single {
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 1.5vw, 1.5rem);
}

/* =========================================================
   8. BREADCRUMBS
   ========================================================= */

.ct-breadcrumbs {
  font-size: 0.82rem;
  line-height: 1.4;
}

.ct-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ct-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ct-text-muted);
}

.ct-breadcrumbs a {
  color: var(--ct-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ct-breadcrumbs a:hover {
  color: var(--ct-accent);
  text-decoration: none;
}

.ct-breadcrumbs li[aria-current="page"] {
  color: var(--ct-text-main);
  font-weight: 500;
  /* Truncate very long post titles */
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-sep {
  display: inline-flex;
  align-items: center;
  color: var(--ct-text-muted);
  opacity: 0.5;
}

/* =========================================================
   9. SINGLE POST ENHANCEMENTS
   ========================================================= */

/* Category badge */
.ct-post-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ct-accent) !important;
  background: rgba(122, 151, 48, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: background 0.15s ease;
}
.ct-post-category:hover {
  background: rgba(122, 151, 48, 0.14);
  text-decoration: none;
}

/* Post meta icons */
.ct-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ct-text-muted) !important;
  margin-top: 0.75rem;
}

.ct-post-meta-date,
.ct-post-meta-author,
.ct-post-meta-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ct-post-meta svg {
  opacity: 0.5;
}

.ct-post-meta-sep {
  opacity: 0.3;
}

/* Tags */
.ct-post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ct-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ct-text-soft) !important;
  background: var(--ct-surface-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ct-tag:hover {
  background: rgba(122, 151, 48, 0.08);
  border-color: rgba(122, 151, 48, 0.20);
  color: var(--ct-accent) !important;
  text-decoration: none;
}

/* No results */
.ct-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ct-text-muted);
}

/* =========================================================
   10. LIGHT THEME FIXES (override dark-theme remnants)
   ========================================================= */

/* Post content text */
.ct-post-content {
  color: var(--ct-text-soft) !important;
}
.ct-post-content h1,
.ct-post-content h2,
.ct-post-content h3,
.ct-post-content h4 {
  color: var(--ct-text-main) !important;
}

/* Sidebar text */
.ct-sidebar-box h3 {
  color: var(--ct-text-main) !important;
}
.ct-sidebar-box a {
  color: var(--ct-text-main) !important;
}
.ct-sidebar-box a:hover {
  color: var(--ct-accent) !important;
}

/* Article card hover (softer for light theme) */
.ct-article-card:hover,
.ct-tool-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10) !important;
  border-color: rgba(122, 151, 48, 0.18) !important;
}

/* Article meta and row text */
.ct-article-meta a {
  color: var(--ct-text-main) !important;
}
.ct-article-row:hover {
  background: rgba(122, 151, 48, 0.04) !important;
  border-color: rgba(122, 151, 48, 0.18) !important;
}

/* Post content blockquote */
.ct-post-content blockquote {
  background: var(--ct-surface-soft) !important;
  color: var(--ct-text-soft) !important;
  border-left: 4px solid var(--ct-accent) !important;
}

/* Post content code */
.ct-post-content code {
  background: rgba(15, 23, 42, 0.05) !important;
  color: var(--ct-text-main) !important;
}
.ct-post-content pre {
  background: var(--ct-surface-soft) !important;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Footer – fix grid to 3 columns to match template */
footer.ct-footer .ct-footer-inner {
  grid-template-columns: 1.5fr 1fr 1fr !important;
}

/* Footer text colours */
.ct-footer-posts a {
  color: var(--ct-text-main) !important;
}
.ct-footer-posts a:hover {
  color: var(--ct-accent) !important;
}

/* =========================================================
   SITE-MAIN — Remove top gap so hero sits flush
   ========================================================= */

.site-main {
  margin-top: 0 !important;
}

/* Content containers need breathing room below the hero */
.ct-single-layout,
.ct-blog-archive {
  margin-top: 2rem;
}

/* Match hero horizontal padding to header/footer */
.ct-page-hero {
  padding-left: clamp(2rem, 5vw, 4rem) !important;
  padding-right: clamp(2rem, 5vw, 4rem) !important;
}

/* =========================================================
   11. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex !important;
  }
  .site-nav {
    display: none !important;
  }

  /* Collapse grid to logo-left / actions-right on mobile */
  .site-header-inner {
    grid-template-columns: 1fr auto;
    padding: 0.5rem 1.25rem;
  }
  .site-header-actions {
    grid-column: 2;
  }

  /* Slightly smaller logo overhang on tablet */
  .site-logo .custom-logo,
  .site-logo img.custom-logo,
  header .custom-logo,
  header img.custom-logo {
    max-height: 72px !important;
    transform: translateY(8px) !important;
  }

  /* Footer stack */
  footer.ct-footer .ct-footer-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
    max-width: 100vw;
  }

  .site-logo .custom-logo,
  .site-logo img.custom-logo,
  header .custom-logo,
  header img.custom-logo {
    max-height: 56px !important;
    transform: translateY(6px) !important;
  }

  .ct-page-hero-title {
    font-size: 1.4rem;
  }

  .ct-breadcrumbs li[aria-current="page"] {
    max-width: 180px;
  }
}
