/* Can Aviation – light site-wide refresh (header, menu, deal posts, footer).
   Switch off under Parts Catalog › Settings › "Site design refresh". */
:root { --cx-navy: #000c30; --cx-blue: #0eb2e7; --cx-grey: #f2f2f2; --cx-line: #e3e7ee; --cx-muted: #5b6275; }

/* Header stays visible while scrolling */
#masthead { position: sticky; top: 0; z-index: 999; background: #fff; transition: box-shadow .3s; box-shadow: 0 1px 0 rgba(0, 12, 48, .06), 0 8px 24px rgba(0, 12, 48, .06); }
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar #masthead { top: 0; } }

/* Menu: thin blue line under the hovered / current item */
.main-header-menu > .menu-item > .menu-link { position: relative; transition: color .2s; }
.main-header-menu > .menu-item > .menu-link::after { content: ""; position: absolute; left: 1em; right: 1em; bottom: calc(50% - 16px); height: 2px; background: var(--cx-blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current_page_item > .menu-link::after { transform: scaleX(1); }
.ast-header-button-1 .ast-custom-button, .ast-builder-button-wrap .ast-custom-button { transition: background .25s, box-shadow .25s; }
.ast-header-button-1 .ast-custom-button:hover { box-shadow: 0 10px 24px rgba(14, 178, 231, .3); }

/* Deal posts (Wanted / Available) */
.single-post .ast-article-single { border-top: 3px solid var(--cx-blue); }
.single-post .entry-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
.single-post .entry-meta { font-size: 13px; color: var(--cx-muted); margin-top: 8px; }
.single-post .entry-meta .ast-terms-link a { display: inline-block; padding: 3px 10px; margin: 0 4px 4px 0; background: #e7f7fd; color: var(--cx-navy); font-size: 12px; text-decoration: none; }
.single-post .entry-meta .posted-by { display: none; }
.single-post .entry-content > p { margin-bottom: .7em; font-size: 16px; }
.single-post .entry-content > p:first-of-type { font-size: 18px; color: var(--cx-navy); }
.cx-backlink { margin: 0 0 22px !important; font-size: 14px; }
.cx-backlink a { color: var(--cx-muted) !important; text-decoration: none !important; }
.cx-backlink a:hover { color: var(--cx-blue) !important; }

/* Footer */
.site-primary-footer-wrap a { transition: color .2s; }
.site-primary-footer-wrap a:hover { color: var(--cx-blue) !important; }
.site-below-footer-wrap { letter-spacing: .02em; }

/* Redesigned pages carry their own heading */
.apc-designed-page .entry-header { display: none; }
.apc-designed-page.ast-separate-container .ast-article-single, .apc-designed-page.ast-separate-container .ast-article-post { padding: 0; }
