/*
Theme Name: C&M Transport
Author: Josh Yager
Author URI: https://thedevq.com/
Description: C&M Transport site theme, built on the DevQ starter kit. One theme, no child. Blocks are built for this site and registered through the devq_blocks filter in functions.php.
Version: 2.0.0
Text Domain: devq
DevQ Kit: 485c387 (2026-08-18)
*/

/* -----------------------------------------------------------------------------
 * Brand tokens
 *
 * The ONLY place the brand is defined. The front end reads them here and the
 * block editor canvas gets this same file through add_editor_style().
 *
 * Palette (2026-11 rebuild):
 *   Compass Navy  #12387F  sampled from the C&M logo
 *   Night Haul    #0A1C3F  dark sections, footer, hero overlays
 *   Steel         #9BA5A6  the logo's compass silver: rules, quiet text on dark
 *   Signal Amber  #F2A900  calls to action only (reflective-marking amber)
 *   Lane White    #F4F6F8  cool light section ground
 *   Ink           #16202E  headings
 *
 * Type: Overpass, the open-source Highway Gothic (US interstate signage).
 * Keep header.php's <link> and assets/css/editor-fonts.css in step.
 * -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #12387F;
  --secondary: #0A1C3F;
  --tertiary: #F2A900;
  --tertiary-hover: #FFC233;
  --steel: #9BA5A6;
  --steel-light: #DCE1E4;
  --lane: #F4F6F8;
  --ink: #16202E;
  --navy-tint: #E8EDF6;

  /* Type */
  --font1: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --font2: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --heading-weight: 800;
  --heading-line-height: 1.08;
  --body-weight: 400;
  --body-size: 18px;
  --body-line-height: 1.6;
  --body-color: #3A4656;

  /* Buttons */
  --button-radius: 3px;
  --button-padding: 15px 28px;

  /* Spacing */
  --spacing-small: 16px;
  --spacing-medium: 32px;
  --spacing-large: 64px;
  --section-padding-top: 104px;
  --section-padding-bottom: 104px;
  --gutter: 24px;

  /* Layers */
  --z-index-dropdown: 30;
  --header-h: 84px;

  /* Transitions */
  --transition-fast: all 0.12s ease-out;
  --transition-default: all 0.25s ease-out;

  --video-aspect-ratio: 56.25%;
}

@media (max-width: 1199px) {
  :root {
    --section-padding-top: 80px;
    --section-padding-bottom: 80px;
    --header-h: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --body-size: 17px;
    --section-padding-top: 56px;
    --section-padding-bottom: 56px;
    --spacing-large: 40px;
    --gutter: 16px;
  }
}

/* -----------------------------------------------------------------------------
 * Base
 * -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
  /* Scroll-reveal photos start slightly zoomed; clip keeps them from widening the page (sticky still works, unlike overflow: hidden). */
  overflow-x: clip;
  font-family: var(--font2);
  font-weight: var(--body-weight);
  font-size: var(--body-size);
  color: var(--body-color);
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, ul, li, ol {
  font-family: var(--font2);
  font-weight: var(--body-weight);
  font-size: var(--body-size);
  color: var(--body-color);
  line-height: var(--body-line-height);
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--secondary);
}

:focus-visible {
  outline: 3px solid var(--tertiary);
  outline-offset: 3px;
}

strong, b { font-weight: 700; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.cm-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--tertiary);
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.cm-skip-link:focus { top: 12px; }

/* -----------------------------------------------------------------------------
 * Typography
 *
 * Overpass at heavy weights with tight tracking: the scale steps at the two
 * breakpoints, never fluidly. Blocks never set font-size on h1-h6/p/li.
 * -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font1);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: 4.25rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.0; }
h2 { font-size: 3rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: 1.3rem; line-height: 1.25; }
h5 { font-size: 1.1rem; line-height: 1.3; }
h6 { font-size: 1rem; line-height: 1.3; }

p { margin: 0 0 1em; }

/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.container-fluid {
  max-width: 2400px;
  margin: auto;
}

.videoWrapper {
  position: relative;
  padding-bottom: var(--video-aspect-ratio);
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------------------------------------------------------
 * Buttons
 *
 * .btn is the call to action: Signal Amber with Night Haul text. Amber is kept
 * for actions only, so on any page the amber thing is the thing to press.
 * -------------------------------------------------------------------------- */
.btn {
  text-decoration: none;
  background: var(--tertiary);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--button-padding);
  font-family: var(--font1);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  transition: var(--transition-fast);
  border: 2px solid var(--tertiary);
  border-radius: var(--button-radius);
  cursor: pointer;
  min-width: 0;
}

.btn:hover,
.btn:focus-visible {
  background: var(--tertiary-hover);
  border-color: var(--tertiary-hover);
  color: var(--secondary);
}

.btn:active { transform: translateY(1px); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn.btn-secondary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.btn-secondary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.btn.btn-tertiary {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: var(--secondary);
}

.btn.btn-white {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}

.btn.btn-white:hover {
  background: var(--lane);
  border-color: var(--lane);
}

.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn.btn-outline-secondary,
.btn.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn.btn-outline-secondary:hover,
.btn.btn-outline-white:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}

/* Inline text link with an arrow chevron drawn in CSS (no icon font). */
.cm-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.cm-textlink::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: var(--transition-fast);
}

.cm-textlink:hover { color: var(--secondary); }
.cm-textlink:hover::after { transform: translateX(3px) rotate(45deg); }

/* -----------------------------------------------------------------------------
 * Section grounds (blocks use these through their "background" select)
 * -------------------------------------------------------------------------- */
.cm-ground-white { background: #fff; }
.cm-ground-lane { background: var(--lane); }
.cm-ground-night { background: var(--secondary); --body-color: #C9D1DD; }
.cm-ground-navy { background: var(--primary); --body-color: #DCE4F2; }

.cm-ground-night h1, .cm-ground-night h2, .cm-ground-night h3, .cm-ground-night h4,
.cm-ground-navy h1, .cm-ground-navy h2, .cm-ground-navy h3, .cm-ground-navy h4 {
  color: #fff;
}

.cm-ground-night a:not(.btn),
.cm-ground-navy a:not(.btn) {
  color: #fff;
}

/* Small sign-plate label that sits above some section headings. Sentence case,
 * used only where it names the section's audience or category. */
.cm-kicker {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--font1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.cm-ground-night .cm-kicker,
.cm-ground-navy .cm-kicker {
  color: var(--tertiary);
}

/* Shared check-list used by several blocks' WYSIWYG fields. */
.cm-checks ul,
ul.cm-checks {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.cm-checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.cm-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--tertiary);
  border-bottom: 3px solid var(--tertiary);
  transform: rotate(-45deg);
}

/* -----------------------------------------------------------------------------
 * Header
 * -------------------------------------------------------------------------- */
.cm-utility {
  background: var(--secondary);
  color: #C9D1DD;
  font-size: 15px;
}

.cm-utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.cm-utility-dispatch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #C9D1DD;
  font-size: 15px;
}

.cm-utility-dispatch a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.cm-utility-dispatch a:hover { color: var(--tertiary); }

.cm-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DD68C;
  flex: none;
}

.cm-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3DD68C;
  opacity: 0;
  animation: cm-pulse 2.4s ease-out infinite;
}

@keyframes cm-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cm-utility-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-utility-links li { font-size: 15px; }

.cm-utility-links a {
  color: #C9D1DD;
  text-decoration: none;
  font-weight: 600;
}

.cm-utility-links a:hover { color: #fff; }

.devq-header-wrap {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid var(--steel-light);
  transition: box-shadow 0.2s ease-out;
}

.admin-bar .devq-header-wrap { top: 32px; }

.devq-header-wrap.is-scrolled {
  box-shadow: 0 6px 24px rgba(10, 28, 63, 0.08);
}

.devq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.devq-header-logo { flex: none; }

.devq-header-logo a {
  display: block;
  text-decoration: none;
}

.devq-header-logo img {
  display: block;
  height: 72px;
  width: auto;
  transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Desktop, top of the page: the logo sits large on a white tab that hangs
   below the bar, over the hero. Once the page scrolls (.is-scrolled) it
   settles back into the bar at its normal size. */
@media (min-width: 1200px) {
  .devq-header-logo {
    position: relative;
    align-self: stretch;
    width: 200px;
    z-index: 2;
  }

  .devq-header-logo a {
    position: absolute;
    top: 0;
    left: -20px;
    padding: 12px 20px 14px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 30px rgba(10, 28, 63, 0.14);
    clip-path: inset(0 -40px -60px -40px);
    transition: padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease-out, background-color 0.3s ease-out;
  }

  .devq-header-logo img { height: 96px; }

  .is-scrolled .devq-header-logo a {
    padding: 10px 20px;
    box-shadow: 0 16px 30px rgba(10, 28, 63, 0);
  }

  .is-scrolled .devq-header-logo img { height: 64px; }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .devq-header-logo a,
  .devq-header-logo img { transition: none; }
}

.devq-header-wordmark {
  font-family: var(--font1);
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}

.devq-header-nav { margin-left: auto; }

.devq-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devq-desktop-nav > li {
  position: relative;
  font-size: 17px;
}

.devq-desktop-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: var(--header-h);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.devq-desktop-nav > li > a .fas { display: none; }

.devq-desktop-nav > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.devq-desktop-nav > li > a:hover,
.devq-desktop-nav > li.current-menu-item > a,
.devq-desktop-nav > li.current-menu-ancestor > a,
.devq-desktop-nav > li.current-page-ancestor > a {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--tertiary);
}

.devq-desktop-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 268px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--tertiary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 48px rgba(10, 28, 63, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.2s;
  z-index: var(--z-index-dropdown);
}

.devq-desktop-nav li:hover > .dropdown-menu,
.devq-desktop-nav li:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.devq-desktop-nav .dropdown-menu li {
  font-size: 16px;
}

.devq-desktop-nav .dropdown-menu a {
  position: relative;
  display: block;
  padding: 10px 14px 10px 18px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.devq-desktop-nav .dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 2px;
  background: var(--tertiary);
  transform: translateY(-50%);
  transition: height 0.18s ease-out;
}

.devq-desktop-nav .dropdown-menu a:hover,
.devq-desktop-nav .dropdown-menu .current-menu-item > a {
  background: var(--lane);
  color: var(--primary);
}

.devq-desktop-nav .dropdown-menu a:hover::before,
.devq-desktop-nav .dropdown-menu .current-menu-item > a::before { height: 18px; }

/* -----------------------------------------------------------------------------
 * Services mega menu (functions/cm-megamenu.php)
 *
 * The panel hangs off the sticky header, edge to edge, with the content on the
 * site container. Opens on hover intent / focus / tap (the .is-open class),
 * dims the page under it, and the service rows arrive in a short stagger.
 * -------------------------------------------------------------------------- */
.devq-desktop-nav > li.cm-mega { position: static; }

.devq-desktop-nav > li.cm-mega.is-open > a {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--tertiary);
}

.devq-desktop-nav > li.cm-mega.is-open > a::after { transform: rotate(225deg); margin-top: 4px; }
.devq-desktop-nav > li.menu-item-has-children > a::after { transition: transform 0.2s ease-out, margin 0.2s ease-out; }

.cm-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--steel-light);
  box-shadow: 0 30px 60px rgba(10, 28, 63, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease-out, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.22s;
  z-index: var(--z-index-dropdown);
}

/* Page scrim under the panel. Never catches the pointer. */
.cm-mega-panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(10, 28, 63, 0.32);
  pointer-events: none;
}

.cm-mega.is-open > .cm-mega-panel,
.cm-mega:focus-within > .cm-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cm-mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  padding: 36px 0 40px;
}

.cm-mega-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cm-mega-group-title {
  margin: 0 0 10px;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--steel-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #6B7686;
}

.cm-mega-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-mega-group li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-mega.is-open .cm-mega-group li,
.cm-mega:focus-within .cm-mega-group li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 28ms + 60ms);
}

.cm-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.18s ease-out;
}

.cm-mega-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy-tint);
  color: var(--primary);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-mega-icon svg {
  width: 22px;
  height: 22px;
}

.cm-mega-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 1px;
}

.cm-mega-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  transition: color 0.15s ease-out;
}

.cm-mega-line {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #5B6778;
}

.cm-mega-link:hover,
.cm-mega-link:focus-visible,
.cm-mega-link.is-current {
  background: var(--lane);
}

.cm-mega-link:hover .cm-mega-name,
.cm-mega-link.is-current .cm-mega-name { color: var(--primary); }

.cm-mega-link:hover .cm-mega-icon,
.cm-mega-link:focus-visible .cm-mega-icon {
  background: var(--tertiary);
  color: var(--secondary);
  transform: translateY(-2px) rotate(-4deg);
}

.cm-mega-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 0;
}

/* Dispatch card */
.cm-mega-desk {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 74px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--secondary);
  color: #fff;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease-out, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-mega.is-open .cm-mega-desk,
.cm-mega:focus-within .cm-mega-desk {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

.cm-mega-desk-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #C9D3E1;
}

.cm-mega-desk-title {
  margin: 0 0 6px;
  font-family: var(--font1);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}

.cm-mega-desk-copy {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #C9D3E1;
}

.cm-mega-desk-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.cm-mega-desk-phone svg {
  width: 24px;
  height: 24px;
  color: var(--tertiary);
}

.cm-mega-desk-phone:hover { color: var(--tertiary); }

.cm-mega-desk-btn.btn {
  width: 100%;
  text-align: center;
}

.cm-mega-desk-all {
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--tertiary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cm-mega-desk-all:hover { color: var(--tertiary); }

.cm-mega-desk-route {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  width: calc(100% - 36px);
  height: 46px;
  color: var(--tertiary);
  opacity: 0.55;
}

.cm-mega-desk-route path { animation: cm-route-run 1.6s linear infinite paused; }
.cm-mega.is-open .cm-mega-desk-route path { animation-play-state: running; }

@keyframes cm-route-run {
  to { stroke-dashoffset: -38; }
}

@media (max-width: 1399px) {
  .cm-mega-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .cm-mega-groups { gap: 16px; }
  .cm-mega-line { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-mega-panel,
  .cm-mega-group li,
  .cm-mega-desk { transition: opacity 0.15s linear, visibility 0.15s; transform: none; }
  .cm-mega-desk-route path { animation: none; }
}

.devq-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.devq-header-cta.btn { padding: 13px 22px; }

/* Hamburger */
.devq-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.devq-hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 20px;
}

.devq-hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.devq-hamburger.is-active .devq-hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.devq-hamburger.is-active .devq-hamburger-bar:nth-child(2) { opacity: 0; }
.devq-hamburger.is-active .devq-hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.desktopOnly { display: inherit; }
.mobileOnly, .mobileonly { display: none; }

/* Mobile menu ------------------------------------------------------------- */
.devq-mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 88px 24px 120px;
  overflow-y: auto;
  background: var(--secondary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s;
  z-index: 999;
}

.devq-mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.devq-menu-close {
  position: absolute;
  top: 20px;
  right: 16px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.devq-mobile-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.devq-mobile-nav > li {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.devq-mobile-nav a {
  display: block;
  padding: 14px 48px 14px 0;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
}

.devq-mobile-nav .sub-menu {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  transition: max-height 0.25s ease-out;
}

.devq-mobile-nav .sub-menu a {
  padding: 9px 0;
  font-size: 17px;
  font-weight: 600;
  color: #C9D1DD;
}

.devq-mobile-nav .submenu-open > .sub-menu { padding-bottom: 12px; }

.devq-submenu-toggle {
  position: absolute;
  right: 0;
  top: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.devq-submenu-toggle .fas { display: none; }

.devq-submenu-toggle::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.2s ease-out;
}

.submenu-open > .devq-submenu-toggle::before { transform: rotate(-135deg); }

.cm-mobile-menu-actions {
  display: grid;
  gap: 12px;
}

.cm-mobile-menu-actions .btn { width: 100%; }

.cm-mobile-menu-phone {
  margin: 0;
  color: #C9D1DD;
  font-size: 16px;
}

.cm-mobile-menu-phone a {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-decoration: none;
}

/* Fixed action bar on phones and tablets: the three things people come for. */
.cm-actionbar {
  display: none;
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.cm-footer {
  background: var(--secondary);
  color: #C9D1DD;
  --body-color: #C9D1DD;
}

.cm-footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.cm-footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 2.25rem;
}

.cm-footer-cta p { margin: 8px 0 0; }

.cm-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

.cm-footer-main .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.cm-footer-brand img {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 20px;
}

.cm-footer-brand p { font-size: 16px; }

.cm-footer-nap {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
}

.cm-footer-nap a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.cm-footer-nap a:hover { color: var(--tertiary); }

.cm-footer-col h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.cm-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-footer-col li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.cm-footer-col a {
  color: #C9D1DD;
  text-decoration: none;
}

.cm-footer-col a:hover { color: #fff; text-decoration: underline; }

.cm-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-footer-legal .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

.cm-footer-legal p,
.cm-footer-legal li {
  margin: 0;
  font-size: 14px;
  color: #8D99AB;
}

.cm-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-footer-legal a { color: #8D99AB; text-decoration: none; }
.cm-footer-legal a:hover { color: #fff; }

/* -----------------------------------------------------------------------------
 * Prose (blog posts, privacy policy, any the_content() output)
 * -------------------------------------------------------------------------- */
.cm-prose {
  max-width: 760px;
}

.cm-prose h2 { font-size: 2rem; margin-top: 1.6em; }
.cm-prose h3 { font-size: 1.45rem; margin-top: 1.5em; }
.cm-prose h4 { margin-top: 1.4em; }
.cm-prose img { border-radius: 2px; margin: 1em 0; }
.cm-prose ul, .cm-prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.cm-prose li { margin-bottom: 0.4em; }
.cm-prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--tertiary);
}

/* -----------------------------------------------------------------------------
 * Gravity Forms (C&M forms: Request a Quote, Contact)
 *
 * GF runs its basic "gravity-theme" (layout only); everything visual is here.
 * Required is the norm on these forms, so the asterisks are hidden and the
 * few optional fields say so instead. Section breaks on the quote form are a
 * two-part sequence (you, then the load) and borrow the Load Route's dashed
 * route line.
 * -------------------------------------------------------------------------- */
.gform_wrapper.gravity-theme .gform_fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 22px;
  counter-reset: cmsec;
}

.gform_wrapper.gravity-theme .gfield {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gform_wrapper.gravity-theme .gfield--width-half { grid-column: span 6; }
.gform_wrapper.gravity-theme .gfield--width-third { grid-column: span 4; }
.gform_wrapper.gravity-theme .gfield--width-quarter { grid-column: span 3; }
.gform_wrapper.gravity-theme .gfield.gfield_visibility_hidden,
.gform_wrapper.gravity-theme .gfield--type-hidden { display: none; }

.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper .gfield_label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.gform_wrapper.gravity-theme .gfield_label .gfield_required { display: none; }

.gform_wrapper.gravity-theme .gfield:not(.gfield_contains_required):not(.gfield--type-section):not(.gfield--type-captcha):not(.gfield--type-html) > .gfield_label::after {
  content: "Optional";
  font-size: 13px;
  font-weight: 600;
  color: #6B7686;
}

.gform_wrapper.gravity-theme .ginput_complex.gform-grid-row { display: block; margin: 0; }
.gform_wrapper.gravity-theme .ginput_complex .gform-grid-col,
.gform_wrapper.gravity-theme .ginput_complex span { display: block; flex: none; width: 100%; max-width: none; margin: 0; padding: 0 !important; } /* GF's own rule here is a long :not() chain */

.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  /* !important: GF's gravity-theme sets these through a four-deep :not() chain */
  padding: 14px 16px !important;
  font-family: var(--font2);
  font-size: 17px !important;
  line-height: 1.3 !important;
  color: var(--ink);
  background-color: var(--lane);
  border: 1px solid #D3DAE2;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(10, 28, 63, 0.03);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder { color: #8A94A3; opacity: 1; }

.gform_wrapper input:hover,
.gform_wrapper select:hover,
.gform_wrapper textarea:hover { border-color: #AEB8C4; }

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.3);
}

.gform_wrapper.gravity-theme select {
  appearance: none;
  padding-right: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2312387F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.gform_wrapper select:has(option.gf_placeholder:checked) { color: #8A94A3; }
.gform_wrapper select option { color: var(--ink); }

.gform_wrapper.gravity-theme textarea { min-height: 136px; resize: vertical; }
.gform_wrapper .ginput_container_date img.ui-datepicker-trigger { display: none; }

/* Date: full width, calendar button tucked inside the field on the right. */
.gform_wrapper .ginput_container_date {
  position: relative;
  display: block;
  width: 100%;
}

.gform_wrapper.gravity-theme .ginput_container_date input.datepicker {
  width: 100% !important;
  padding-right: 52px !important;
}

.gform_wrapper .gform-datepicker-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--primary);
  transform: translateY(-50%);
  cursor: pointer;
}

.gform_wrapper .gform-datepicker-toggle:hover { background: var(--navy-tint); }
.gform_wrapper .gform-datepicker-toggle:focus-visible { outline: 3px solid var(--tertiary); }
.gform_wrapper .gform-datepicker-toggle .dashicons { font-size: 20px; width: 20px; height: 20px; }

.gform_wrapper .gfield_description {
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5B6778;
}

/* Section breaks: numbered stops on a dashed route line. */
.gform_wrapper.gravity-theme .gfield.gfield--type-section {
  counter-increment: cmsec;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 -4px;
  padding: 0;
  border: 0;
  border-bottom: 0;
}

.gform_wrapper.gravity-theme .gfield--type-section:first-child { margin-top: 0; }

.gform_wrapper.gravity-theme .gfield--type-section::after {
  content: "";
  flex: 1 1 auto;
  height: 0;
  border-top: 2px dashed var(--tertiary);
  opacity: 0.7;
}

.gform_wrapper .gsection_title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font1);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.gform_wrapper .gsection_title::before {
  content: counter(cmsec);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 3px solid var(--tertiary);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: #fff;
}

.gform_wrapper .gsection_description:empty { display: none; }

/* Submit */
.gform_wrapper.gravity-theme .gform_footer {
  margin: 30px 0 0;
  padding: 0;
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button,
.gform_wrapper .gform_button {
  display: block;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 16px 28px;
  background: var(--tertiary);
  border: 0;
  border-radius: var(--button-radius);
  color: var(--secondary);
  font-family: var(--font1);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 169, 0, 0.28);
  transition: background-color 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_button:hover {
  background: var(--tertiary-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(242, 169, 0, 0.36);
}

.gform_wrapper .gform_button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Errors */
.gform_wrapper .gform_validation_errors {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #FDF1F0;
  border: 0;
  border-left: 4px solid #B3261E;
  border-radius: 0 4px 4px 0;
  box-shadow: none;
}

.gform_wrapper .gform_validation_errors > h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #8C1D17;
}

.gform_wrapper .gform_validation_errors > h2 .gform-icon { display: none; }

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
  background-color: #fff;
  border-color: #B3261E;
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
  margin: 8px 0 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: #B3261E;
}

.gform_wrapper .gform_ajax_spinner { margin-left: 12px; }

.gform_confirmation_message {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 767px) {
  .gform_wrapper.gravity-theme .gform_fields { row-gap: 18px; }

  .gform_wrapper.gravity-theme .gfield--width-half,
  .gform_wrapper.gravity-theme .gfield--width-third,
  .gform_wrapper.gravity-theme .gfield--width-quarter { grid-column: 1 / -1; }

  .gform_wrapper .gsection_title { font-size: 17px; }
}

/* -----------------------------------------------------------------------------
 * Browser
 * -------------------------------------------------------------------------- */
::selection {
  background: var(--tertiary);
  color: var(--secondary);
}

/* -----------------------------------------------------------------------------
 * Tablet - 1199px and below
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.5rem; }

  .desktopOnly { display: none !important; }
  .mobileOnly, .mobileonly { display: block !important; }
  .devq-hamburger { display: block; }

  .devq-header { gap: 16px; }
  .devq-header-logo img { height: 60px; }

  .cm-utility-links { display: none; }
  .cm-utility .container { justify-content: center; }

  .cm-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cm-actionbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 62px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  .cm-actionbar a + a { border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .cm-actionbar a.is-primary { background: var(--tertiary); color: var(--secondary); }
  .cm-actionbar svg { width: 20px; height: 20px; }

  body { padding-bottom: 62px; }

  .cm-footer-main .container { grid-template-columns: 1fr 1fr; }
  .cm-footer-cta .container { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------------------------------------
 * Mobile - 767px and below
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.05rem; }
  h3 { font-size: 1.45rem; }
  h4 { font-size: 1.2rem; }

  .btn { width: 100%; }

  .admin-bar .devq-header-wrap { top: 0; }
  .devq-header-logo img { height: 52px; }
  .devq-header-cta.btn { display: none; }

  .cm-utility { font-size: 14px; }
  .cm-utility-dispatch { font-size: 14px; }

  .cm-footer-main .container { grid-template-columns: 1fr; gap: 36px; }
  .cm-footer-cta h2 { font-size: 1.8rem; }
  .cm-footer-cta-actions { width: 100%; }
  .cm-footer-legal .container { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------------------------------------
 * Shared section intro (cm_section_intro()): left-aligned, measured.
 * -------------------------------------------------------------------------- */
.cm-intro {
  max-width: 760px;
  margin: 0 0 48px;
}

.cm-intro h2 { margin: 0; }

.cm-intro-sub {
  margin: 18px 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .cm-intro { margin-bottom: 32px; }
  .cm-intro-sub { font-size: 1.05rem; }
}

/* ==========================================================================
   Templates: page head, articles, post grid, 404
   ========================================================================== */
.cm-pagehead {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--steel-light);
}

.cm-breadcrumbs {
  margin-bottom: 28px;
  color: #5B6778;
  font-size: 14px;
  font-weight: 600;
}

.cm-breadcrumbs a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cm-breadcrumbs a:hover { text-decoration-thickness: 2px; }

.cm-pagehead-title {
  max-width: 920px;
  margin: 0;
  font-size: 3.25rem;
}

.cm-pagehead-sub {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.cm-pagehead-sub p:last-child { margin-bottom: 0; }

.cm-pagehead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  color: #5B6778;
  font-size: 15px;
  font-weight: 700;
}

.cm-pagehead-meta span { color: var(--steel); }

.cm-article {
  padding: 56px 0 var(--section-padding-bottom);
}

.cm-article-hero {
  margin: 0 0 56px;
}

.cm-article-hero-img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.cm-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 96px;
  align-items: start;
}

.cm-article-body > *:first-child { margin-top: 0; }

.cm-article-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.cm-article-card {
  padding: 28px 26px;
  border-top: 6px solid var(--tertiary);
  background: var(--secondary);
}

.cm-article-card-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.cm-article-card-text {
  margin: 0 0 22px;
  color: #D5DCE6;
  font-size: 16px;
  line-height: 1.55;
}

.cm-article-card .btn { width: 100%; }

.cm-article-card-phone {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.cm-article-card-phone:hover { color: var(--tertiary); }

.cm-more {
  padding: 88px 0;
}

.cm-more-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.cm-more-top h2 { margin: 0; font-size: 2.25rem; }

.cm-postlist {
  padding: 48px 0 var(--section-padding-bottom);
}

.cm-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.cm-catnav a {
  padding: 9px 16px;
  border: 2px solid var(--steel-light);
  border-radius: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cm-catnav a:hover { border-color: var(--primary); color: var(--primary); }

.cm-catnav a[aria-current="page"] {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.cm-postgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.cm-postcard-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: var(--body-color);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--steel-light);
}

.cm-ground-lane .cm-postcard-link { box-shadow: none; }

.cm-postcard-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--steel-light);
}

.cm-postcard-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.cm-postcard-link:hover .cm-postcard-img { transform: scale(1.03); }

.cm-postcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
  border-bottom: 4px solid transparent;
}

.cm-postcard-link:hover .cm-postcard-body { border-bottom-color: var(--tertiary); }

.cm-postcard-date {
  color: #5B6778;
  font-size: 14px;
  font-weight: 700;
}

.cm-postcard-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.cm-postcard-link:hover .cm-postcard-title { color: var(--primary); }

.cm-postcard-excerpt {
  font-size: 15px;
  line-height: 1.55;
}

.cm-pagination { margin-top: 56px; }

.cm-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--steel-light);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cm-pagination .page-numbers.current {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.cm-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }

.cm-404-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-404-links li { margin: 0; }
.cm-404-links li::before { display: none; }

.cm-404-links a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border-top: 4px solid var(--primary);
  background: var(--lane);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.cm-404-links a:hover { border-top-color: var(--tertiary); }

.cm-404-links svg { width: 32px; height: 32px; color: var(--primary); }

.cm-404-call {
  margin: 40px 0 0;
  font-weight: 700;
}

.cm-404-call a { font-weight: 900; text-decoration: none; }

@media (max-width: 1199px) {
  .cm-pagehead-title { font-size: 2.6rem; }
  .cm-article-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cm-article-aside { position: static; max-width: 760px; }
  .cm-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cm-404-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .cm-pagehead { padding: 28px 0 36px; }
  .cm-breadcrumbs { margin-bottom: 18px; }
  .cm-pagehead-title { font-size: 2.05rem; }
  .cm-pagehead-sub { font-size: 1.05rem; }
  .cm-article { padding-top: 32px; }
  .cm-article-hero { margin: 0 -8px 36px; }
  .cm-more { padding: 64px 0; }
  .cm-more-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cm-more-top h2 { font-size: 1.75rem; }
  .cm-postgrid { grid-template-columns: minmax(0, 1fr); }
  .cm-catnav { gap: 8px; margin-bottom: 28px; }
  .cm-catnav a { padding: 7px 12px; font-size: 14px; }
  .cm-404-links { grid-template-columns: minmax(0, 1fr); }
}

/* GF date field: the field itself is the picker; hide the trigger icon that wraps below it. */
