/* Self-hosted CED Inter font. Upload file to /wp-content/uploads/ced-fonts/ */
@font-face {
  font-family: "CED Inter";
  src: url('/wp-content/uploads/ced-fonts/inter-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/*
CED Site Template Polish
Styles static pages, blog archive, category archive, tag/archive pages.
Does not target homepage or single post article layouts.
*/

:root {
  --ced-polish-navy: #071b3a;
  --ced-polish-blue: #0757a6;
  --ced-polish-blue-bright: #0f7fd1;
  --ced-polish-text: #263c56;
  --ced-polish-muted: #5b6f86;
  --ced-polish-border: #dce8f2;
  --ced-polish-border-dark: #b8cce2;
  --ced-polish-bg: #f5f7fb;
  --ced-polish-card: #ffffff;
  --ced-polish-soft: #eef6ff;
  --ced-polish-shadow: 0 14px 34px rgba(7, 27, 58, 0.08);
  --ced-polish-shadow-hover: 0 20px 44px rgba(7, 27, 58, 0.12);
  --ced-polish-font: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ced-polish-serif: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   Shared background for static pages and archive/category pages
   ========================================================= */

body.page:not(.home):not(.front-page),
body.blog,
body.archive,
body.category,
body.tag,
body.author,
body.date {
  background: var(--ced-polish-bg) !important;
}

/* Keep homepage custom design untouched */
body.home .cedph-wrap,
body.front-page .cedph-wrap {
  all: revert-layer;
}

/* =========================================================
   Static pages: About, Contact, Privacy, Terms, Disclaimer
   ========================================================= */

body.page:not(.home):not(.front-page) .entry-hero,
body.page:not(.home):not(.front-page) .entry-hero-container-inner,
body.page:not(.home):not(.front-page) .page-header {
  background: transparent !important;
}

body.page:not(.home):not(.front-page) .entry-hero-container-inner,
body.page:not(.home):not(.front-page) .page-header {
  padding: 52px 20px 26px !important;
  text-align: center !important;
}

body.page:not(.home):not(.front-page) .entry-title,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title,
body.page:not(.home):not(.front-page) h1.page-title,
body.page:not(.home):not(.front-page) .entry-hero h1 {
  max-width: 920px !important;
  margin: 0 auto !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
  font-weight: 900 !important;
}

body.page:not(.home):not(.front-page) .content-area {
  padding: 28px 20px 76px !important;
}

body.page:not(.home):not(.front-page) .site-main {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page:not(.home):not(.front-page) article.page,
body.page:not(.home):not(.front-page) .entry-content-wrap,
body.page:not(.home):not(.front-page) .entry-content {
  box-sizing: border-box !important;
}

body.page:not(.home):not(.front-page) .entry-content {
  width: 100% !important;
  margin: 0 auto !important;
  padding: clamp(26px, 4vw, 48px) !important;
  border: 1px solid var(--ced-polish-border) !important;
  border-radius: 24px !important;
  background: var(--ced-polish-card) !important;
  box-shadow: var(--ced-polish-shadow) !important;
  color: var(--ced-polish-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

body.page:not(.home):not(.front-page) .entry-content > p,
body.page:not(.home):not(.front-page) .entry-content li {
  color: var(--ced-polish-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

body.page:not(.home):not(.front-page) .entry-content > p {
  margin-top: 0 !important;
  margin-bottom: 1.2em !important;
}

body.page:not(.home):not(.front-page) .entry-content h2 {
  margin-top: 1.9em !important;
  margin-bottom: 0.7em !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-serif) !important;
  font-size: clamp(26px, 2.4vw, 34px) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.025em !important;
  font-weight: 700 !important;
}

body.page:not(.home):not(.front-page) .entry-content h3 {
  margin-top: 1.45em !important;
  margin-bottom: 0.55em !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: clamp(21px, 1.8vw, 26px) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  font-weight: 900 !important;
}

body.page:not(.home):not(.front-page) .entry-content a {
  color: var(--ced-polish-blue) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 4px !important;
}

body.page:not(.home):not(.front-page) .entry-content a:hover {
  color: var(--ced-polish-navy) !important;
}

body.page:not(.home):not(.front-page) .entry-content ul,
body.page:not(.home):not(.front-page) .entry-content ol {
  margin: 1em 0 1.35em 1.25em !important;
  padding-left: 1.1em !important;
}

body.page:not(.home):not(.front-page) .entry-content li {
  margin-bottom: 0.5em !important;
}

body.page:not(.home):not(.front-page) .entry-content li::marker {
  color: var(--ced-polish-blue) !important;
  font-weight: 900 !important;
}

/* Tables on static pages */
body.page:not(.home):not(.front-page) .entry-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--ced-polish-border-dark) !important;
  border-radius: 14px !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 15px !important;
}

body.page:not(.home):not(.front-page) .entry-content th {
  padding: 14px 16px !important;
  background: var(--ced-polish-navy) !important;
  color: #fff !important;
  text-align: left !important;
  font-weight: 900 !important;
}

body.page:not(.home):not(.front-page) .entry-content td {
  padding: 14px 16px !important;
  border-top: 1px solid var(--ced-polish-border) !important;
  color: var(--ced-polish-text) !important;
}

/* Contact forms */
body.page:not(.home):not(.front-page) .wpforms-container,
body.page:not(.home):not(.front-page) form.wpforms-form {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page:not(.home):not(.front-page) .wpforms-field input,
body.page:not(.home):not(.front-page) .wpforms-field textarea,
body.page:not(.home):not(.front-page) .wpforms-field select {
  border: 1px solid var(--ced-polish-border-dark) !important;
  border-radius: 12px !important;
  min-height: 46px !important;
  padding: 12px 14px !important;
  font-family: var(--ced-polish-font) !important;
}

body.page:not(.home):not(.front-page) .wpforms-submit {
  border-radius: 12px !important;
  background: var(--ced-polish-blue) !important;
  color: #fff !important;
  font-family: var(--ced-polish-font) !important;
  font-weight: 900 !important;
  padding: 13px 22px !important;
}


/* =========================================================
   Blog, category, tag and archive pages
   ========================================================= */

body.blog .entry-hero,
body.archive .entry-hero,
body.category .entry-hero,
body.tag .entry-hero,
body.author .entry-hero,
body.date .entry-hero,
body.blog .page-header,
body.archive .page-header,
body.category .page-header,
body.tag .page-header,
body.author .page-header,
body.date .page-header {
  background: transparent !important;
}

body.blog .entry-hero-container-inner,
body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.author .entry-hero-container-inner,
body.date .entry-hero-container-inner,
body.blog .page-header,
body.archive .page-header,
body.category .page-header,
body.tag .page-header,
body.author .page-header,
body.date .page-header {
  padding: 52px 20px 30px !important;
  text-align: center !important;
}

body.blog .page-title,
body.archive .page-title,
body.category .page-title,
body.tag .page-title,
body.author .page-title,
body.date .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.author h1.page-title,
body.date h1.page-title,
body.blog .entry-hero h1,
body.archive .entry-hero h1,
body.category .entry-hero h1,
body.tag .entry-hero h1,
body.author .entry-hero h1,
body.date .entry-hero h1 {
  display: inline-block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
  font-weight: 900 !important;
}

body.blog .taxonomy-description,
body.archive .taxonomy-description,
body.category .taxonomy-description,
body.tag .taxonomy-description {
  max-width: 760px !important;
  margin: 14px auto 0 !important;
  color: var(--ced-polish-muted) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

body.blog .content-area,
body.archive .content-area,
body.category .content-area,
body.tag .content-area,
body.author .content-area,
body.date .content-area {
  padding: 34px 20px 76px !important;
}

body.blog .site-main,
body.archive .site-main,
body.category .site-main,
body.tag .site-main,
body.author .site-main,
body.date .site-main {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.blog .content-wrap,
body.archive .content-wrap,
body.category .content-wrap,
body.tag .content-wrap,
body.author .content-wrap,
body.date .content-wrap,
body.blog .grid-cols,
body.archive .grid-cols,
body.category .grid-cols,
body.tag .grid-cols,
body.author .grid-cols,
body.date .grid-cols {
  gap: 32px !important;
}

/* Cards */
body.blog .entry.loop-entry,
body.archive .entry.loop-entry,
body.category .entry.loop-entry,
body.tag .entry.loop-entry,
body.author .entry.loop-entry,
body.date .entry.loop-entry {
  overflow: hidden !important;
  border: 1px solid var(--ced-polish-border) !important;
  border-radius: 22px !important;
  background: var(--ced-polish-card) !important;
  box-shadow: var(--ced-polish-shadow) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

body.blog .entry.loop-entry:hover,
body.archive .entry.loop-entry:hover,
body.category .entry.loop-entry:hover,
body.tag .entry.loop-entry:hover,
body.author .entry.loop-entry:hover,
body.date .entry.loop-entry:hover {
  transform: translateY(-4px) !important;
  border-color: var(--ced-polish-border-dark) !important;
  box-shadow: var(--ced-polish-shadow-hover) !important;
}

body.blog .entry.loop-entry .post-thumbnail,
body.archive .entry.loop-entry .post-thumbnail,
body.category .entry.loop-entry .post-thumbnail,
body.tag .entry.loop-entry .post-thumbnail,
body.author .entry.loop-entry .post-thumbnail,
body.date .entry.loop-entry .post-thumbnail,
body.blog .entry.loop-entry .post-thumbnail-inner,
body.archive .entry.loop-entry .post-thumbnail-inner,
body.category .entry.loop-entry .post-thumbnail-inner,
body.tag .entry.loop-entry .post-thumbnail-inner,
body.author .entry.loop-entry .post-thumbnail-inner,
body.date .entry.loop-entry .post-thumbnail-inner {
  margin: 0 !important;
  overflow: hidden !important;
}

body.blog .entry.loop-entry img,
body.archive .entry.loop-entry img,
body.category .entry.loop-entry img,
body.tag .entry.loop-entry img,
body.author .entry.loop-entry img,
body.date .entry.loop-entry img {
  display: block !important;
  width: 100% !important;
  height: 235px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

body.blog .entry.loop-entry .entry-content-wrap,
body.archive .entry.loop-entry .entry-content-wrap,
body.category .entry.loop-entry .entry-content-wrap,
body.tag .entry.loop-entry .entry-content-wrap,
body.author .entry.loop-entry .entry-content-wrap,
body.date .entry.loop-entry .entry-content-wrap {
  padding: 24px 24px 28px !important;
}

/* Category badges */
body.blog .entry.loop-entry .entry-taxonomies,
body.archive .entry.loop-entry .entry-taxonomies,
body.category .entry.loop-entry .entry-taxonomies,
body.tag .entry.loop-entry .entry-taxonomies,
body.author .entry.loop-entry .entry-taxonomies,
body.date .entry.loop-entry .entry-taxonomies {
  margin-bottom: 12px !important;
}

body.blog .entry.loop-entry .entry-taxonomies a,
body.archive .entry.loop-entry .entry-taxonomies a,
body.category .entry.loop-entry .entry-taxonomies a,
body.tag .entry.loop-entry .entry-taxonomies a,
body.author .entry.loop-entry .entry-taxonomies a,
body.date .entry.loop-entry .entry-taxonomies a {
  display: inline-block !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  background: var(--ced-polish-blue-bright) !important;
  color: #ffffff !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.author .entry.loop-entry .entry-title,
body.date .entry.loop-entry .entry-title {
  margin: 0 0 14px !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 25px !important;
  line-height: 1.32 !important;
  letter-spacing: -0.025em !important;
  font-weight: 850 !important;
}

body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a,
body.author .entry.loop-entry .entry-title a,
body.date .entry.loop-entry .entry-title a {
  color: var(--ced-polish-navy) !important;
  text-decoration: none !important;
}

body.blog .entry.loop-entry .entry-title a:hover,
body.archive .entry.loop-entry .entry-title a:hover,
body.category .entry.loop-entry .entry-title a:hover,
body.tag .entry.loop-entry .entry-title a:hover,
body.author .entry.loop-entry .entry-title a:hover,
body.date .entry.loop-entry .entry-title a:hover {
  color: var(--ced-polish-blue) !important;
}

body.blog .entry.loop-entry .entry-meta,
body.archive .entry.loop-entry .entry-meta,
body.category .entry.loop-entry .entry-meta,
body.tag .entry.loop-entry .entry-meta,
body.author .entry.loop-entry .entry-meta,
body.date .entry.loop-entry .entry-meta {
  margin-bottom: 16px !important;
  color: var(--ced-polish-muted) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body.blog .entry.loop-entry .entry-summary,
body.archive .entry.loop-entry .entry-summary,
body.category .entry.loop-entry .entry-summary,
body.tag .entry.loop-entry .entry-summary,
body.author .entry.loop-entry .entry-summary,
body.date .entry.loop-entry .entry-summary,
body.blog .entry.loop-entry .entry-summary p,
body.archive .entry.loop-entry .entry-summary p,
body.category .entry.loop-entry .entry-summary p,
body.tag .entry.loop-entry .entry-summary p,
body.author .entry.loop-entry .entry-summary p,
body.date .entry.loop-entry .entry-summary p {
  color: var(--ced-polish-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body.blog .entry.loop-entry .more-link,
body.archive .entry.loop-entry .more-link,
body.category .entry.loop-entry .more-link,
body.tag .entry.loop-entry .more-link,
body.author .entry.loop-entry .more-link,
body.date .entry.loop-entry .more-link {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 12px !important;
  color: var(--ced-polish-blue) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* Pagination */
body.blog .pagination,
body.archive .pagination,
body.category .pagination,
body.tag .pagination,
body.author .pagination,
body.date .pagination,
body.blog .nav-links,
body.archive .nav-links,
body.category .nav-links,
body.tag .nav-links,
body.author .nav-links,
body.date .nav-links {
  margin-top: 42px !important;
  text-align: center !important;
}

body.blog .page-numbers,
body.archive .page-numbers,
body.category .page-numbers,
body.tag .page-numbers,
body.author .page-numbers,
body.date .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  margin: 0 4px !important;
  border: 1px solid var(--ced-polish-border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--ced-polish-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.blog .page-numbers.current,
body.archive .page-numbers.current,
body.category .page-numbers.current,
body.tag .page-numbers.current,
body.author .page-numbers.current,
body.date .page-numbers.current,
body.blog .page-numbers:hover,
body.archive .page-numbers:hover,
body.category .page-numbers:hover,
body.tag .page-numbers:hover,
body.author .page-numbers:hover,
body.date .page-numbers:hover {
  background: var(--ced-polish-blue) !important;
  color: #ffffff !important;
  border-color: var(--ced-polish-blue) !important;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {
  body.page:not(.home):not(.front-page) .entry-hero-container-inner,
  body.page:not(.home):not(.front-page) .page-header,
  body.blog .entry-hero-container-inner,
  body.archive .entry-hero-container-inner,
  body.category .entry-hero-container-inner,
  body.tag .entry-hero-container-inner,
  body.author .entry-hero-container-inner,
  body.date .entry-hero-container-inner,
  body.blog .page-header,
  body.archive .page-header,
  body.category .page-header,
  body.tag .page-header,
  body.author .page-header,
  body.date .page-header {
    padding: 34px 18px 18px !important;
  }

  body.page:not(.home):not(.front-page) .content-area,
  body.blog .content-area,
  body.archive .content-area,
  body.category .content-area,
  body.tag .content-area,
  body.author .content-area,
  body.date .content-area {
    padding: 24px 14px 62px !important;
  }

  body.page:not(.home):not(.front-page) .entry-content {
    padding: 24px 20px !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  body.page:not(.home):not(.front-page) .entry-content > p,
  body.page:not(.home):not(.front-page) .entry-content li {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  body.blog .entry.loop-entry,
  body.archive .entry.loop-entry,
  body.category .entry.loop-entry,
  body.tag .entry.loop-entry,
  body.author .entry.loop-entry,
  body.date .entry.loop-entry {
    border-radius: 18px !important;
  }

  body.blog .entry.loop-entry img,
  body.archive .entry.loop-entry img,
  body.category .entry.loop-entry img,
  body.tag .entry.loop-entry img,
  body.author .entry.loop-entry img,
  body.date .entry.loop-entry img {
    height: 210px !important;
  }

  body.blog .entry.loop-entry .entry-content-wrap,
  body.archive .entry.loop-entry .entry-content-wrap,
  body.category .entry.loop-entry .entry-content-wrap,
  body.tag .entry.loop-entry .entry-content-wrap,
  body.author .entry.loop-entry .entry-content-wrap,
  body.date .entry.loop-entry .entry-content-wrap {
    padding: 20px 20px 24px !important;
  }

  body.blog .entry.loop-entry .entry-title,
  body.archive .entry.loop-entry .entry-title,
  body.category .entry.loop-entry .entry-title,
  body.tag .entry.loop-entry .entry-title,
  body.author .entry.loop-entry .entry-title,
  body.date .entry.loop-entry .entry-title {
    font-size: 22px !important;
    line-height: 1.32 !important;
  }
}


/* =========================================================
   Hero/title cleanup for archive and category pages
   Removes Kadence dark page-title band and replaces it with
   a clean white/soft heading area.
   ========================================================= */

body.blog .entry-hero-container,
body.archive .entry-hero-container,
body.category .entry-hero-container,
body.tag .entry-hero-container,
body.author .entry-hero-container,
body.date .entry-hero-container,
body.blog .entry-hero,
body.archive .entry-hero,
body.category .entry-hero,
body.tag .entry-hero,
body.author .entry-hero,
body.date .entry-hero,
body.blog .entry-hero-container-inner,
body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.author .entry-hero-container-inner,
body.date .entry-hero-container-inner {
  min-height: 0 !important;
  height: auto !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.blog .entry-hero-container,
body.archive .entry-hero-container,
body.category .entry-hero-container,
body.tag .entry-hero-container,
body.author .entry-hero-container,
body.date .entry-hero-container {
  border-bottom: 1px solid var(--ced-polish-border) !important;
}

body.blog .entry-hero-container-inner,
body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.author .entry-hero-container-inner,
body.date .entry-hero-container-inner {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 46px 20px 38px !important;
}

body.blog .entry-hero-container-inner .entry-header,
body.archive .entry-hero-container-inner .entry-header,
body.category .entry-hero-container-inner .entry-header,
body.tag .entry-hero-container-inner .entry-header,
body.author .entry-hero-container-inner .entry-header,
body.date .entry-hero-container-inner .entry-header {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

body.blog .entry-hero-container:before,
body.archive .entry-hero-container:before,
body.category .entry-hero-container:before,
body.tag .entry-hero-container:before,
body.author .entry-hero-container:before,
body.date .entry-hero-container:before,
body.blog .entry-hero:before,
body.archive .entry-hero:before,
body.category .entry-hero:before,
body.tag .entry-hero:before,
body.author .entry-hero:before,
body.date .entry-hero:before,
body.blog .entry-hero-container-inner:before,
body.archive .entry-hero-container-inner:before,
body.category .entry-hero-container-inner:before,
body.tag .entry-hero-container-inner:before,
body.author .entry-hero-container-inner:before,
body.date .entry-hero-container-inner:before,
body.blog .entry-hero-container:after,
body.archive .entry-hero-container:after,
body.category .entry-hero-container:after,
body.tag .entry-hero-container:after,
body.author .entry-hero-container:after,
body.date .entry-hero-container:after,
body.blog .entry-hero:after,
body.archive .entry-hero:after,
body.category .entry-hero:after,
body.tag .entry-hero:after,
body.author .entry-hero:after,
body.date .entry-hero:after,
body.blog .entry-hero-container-inner:after,
body.archive .entry-hero-container-inner:after,
body.category .entry-hero-container-inner:after,
body.tag .entry-hero-container-inner:after,
body.author .entry-hero-container-inner:after,
body.date .entry-hero-container-inner:after {
  display: none !important;
  content: none !important;
}

/* Optional category description, only if a category has one set in WordPress */
body.category .taxonomy-description,
body.archive .taxonomy-description,
body.tag .taxonomy-description {
  display: block !important;
  max-width: 760px !important;
  margin: 14px auto 0 !important;
  color: var(--ced-polish-muted) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

@media (max-width: 768px) {
  body.blog .entry-hero-container-inner,
  body.archive .entry-hero-container-inner,
  body.category .entry-hero-container-inner,
  body.tag .entry-hero-container-inner,
  body.author .entry-hero-container-inner,
  body.date .entry-hero-container-inner {
    padding: 32px 18px 26px !important;
  }
}



/* =========================================================
   v1.2 Category/archive spacing refinement
   Reduces the heading-to-card gap while keeping descriptions visible.
   Does not handle/remove punctuation in category descriptions.
   ========================================================= */

body.blog .entry-hero-container-inner,
body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.author .entry-hero-container-inner,
body.date .entry-hero-container-inner,
body.blog .page-header,
body.archive .page-header,
body.category .page-header,
body.tag .page-header,
body.author .page-header,
body.date .page-header {
  padding-top: 46px !important;
  padding-bottom: 42px !important;
}

body.blog .content-area,
body.archive .content-area,
body.category .content-area,
body.tag .content-area,
body.author .content-area,
body.date .content-area {
  padding-top: 46px !important;
}

body.category .taxonomy-description,
body.archive .taxonomy-description,
body.tag .taxonomy-description,
body.category .archive-description,
body.archive .archive-description,
body.tag .archive-description {
  max-width: 760px !important;
  margin: 16px auto 0 !important;
  color: var(--ced-polish-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

body.category .taxonomy-description p,
body.archive .taxonomy-description p,
body.tag .taxonomy-description p,
body.category .archive-description p,
body.archive .archive-description p,
body.tag .archive-description p {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 768px) {
  body.blog .entry-hero-container-inner,
  body.archive .entry-hero-container-inner,
  body.category .entry-hero-container-inner,
  body.tag .entry-hero-container-inner,
  body.author .entry-hero-container-inner,
  body.date .entry-hero-container-inner,
  body.blog .page-header,
  body.archive .page-header,
  body.category .page-header,
  body.tag .page-header,
  body.author .page-header,
  body.date .page-header {
    padding-top: 34px !important;
    padding-bottom: 30px !important;
  }

  body.blog .content-area,
  body.archive .content-area,
  body.category .content-area,
  body.tag .content-area,
  body.author .content-area,
  body.date .content-area {
    padding-top: 34px !important;
  }

  body.category .taxonomy-description,
  body.archive .taxonomy-description,
  body.tag .taxonomy-description,
  body.category .archive-description,
  body.archive .archive-description,
  body.tag .archive-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}


/* =========================================================
   v1.3 Old premium typography restoration
   Uses self-hosted Inter + Libre Baskerville from /uploads/ced-fonts/.
   ========================================================= */

body {
  font-family: var(--ced-polish-font) !important;
}

/* Static page and archive/category title: old editorial look */
body.page:not(.home):not(.front-page) .entry-title,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title,
body.page:not(.home):not(.front-page) h1.page-title,
body.page:not(.home):not(.front-page) .entry-hero h1,
body.blog .page-title,
body.archive .page-title,
body.category .page-title,
body.tag .page-title,
body.author .page-title,
body.date .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.author h1.page-title,
body.date h1.page-title,
body.blog .entry-hero h1,
body.archive .entry-hero h1,
body.category .entry-hero h1,
body.tag .entry-hero h1,
body.author .entry-hero h1,
body.date .entry-hero h1 {
  font-family: var(--ced-polish-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.032em !important;
}

/* Single post old-look typography, kept safe for calculators */
body.single-post {
  --ced-article-navy: #071b3a;
  --ced-article-blue: #0757a6;
  --ced-article-text: #263c56;
  --ced-article-muted: #5b6f86;
  --ced-article-border: #dce8f2;
  --ced-article-yellow: #fff7df;
  --ced-article-yellow-border: #e7b83f;
  --ced-article-engineer: #eef7ff;
}

/* Single post title only */
body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-hero-container-inner h1.entry-title {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--ced-article-navy) !important;
  font-family: var(--ced-polish-serif) !important;
  font-size: clamp(34px, 4.1vw, 58px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  font-weight: 700 !important;
}

body.single-post .entry-hero-container,
body.single-post .entry-hero,
body.single-post .entry-hero-container-inner {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

body.single-post .entry-hero-container-inner,
body.single-post article.type-post > .entry-header,
body.single-post .content-area .site-main > article.type-post > .entry-header {
  padding-top: 34px !important;
  padding-bottom: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  text-align: left !important;
}

/* Article content text. Direct-child targeting avoids calculator blocks. */
body.single-post .entry-content,
body.single-post .single-content {
  color: var(--ced-article-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 18px !important;
  line-height: 1.74 !important;
}

body.single-post .entry-content > p,
body.single-post .single-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .single-content > ul,
body.single-post .single-content > ol {
  color: var(--ced-article-text) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 18px !important;
  line-height: 1.74 !important;
}

body.single-post .entry-content > p,
body.single-post .single-content > p {
  margin-top: 0 !important;
  margin-bottom: 1.22em !important;
}

body.single-post .entry-content > h2,
body.single-post .single-content > h2 {
  margin-top: 2.05em !important;
  margin-bottom: 0.72em !important;
  color: var(--ced-article-navy) !important;
  font-family: var(--ced-polish-serif) !important;
  font-size: clamp(27px, 2.45vw, 36px) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.027em !important;
  font-weight: 700 !important;
}

body.single-post .entry-content > h3,
body.single-post .single-content > h3 {
  margin-top: 1.7em !important;
  margin-bottom: 0.62em !important;
  color: var(--ced-article-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: clamp(21px, 1.65vw, 26px) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.015em !important;
  font-weight: 850 !important;
}

body.single-post .entry-content > h4,
body.single-post .single-content > h4 {
  margin-top: 1.45em !important;
  margin-bottom: 0.55em !important;
  color: var(--ced-article-navy) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

body.single-post .entry-content > p a,
body.single-post .single-content > p a {
  color: var(--ced-article-blue) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 4px !important;
}

body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .single-content > ul,
body.single-post .single-content > ol {
  margin: 1.05em 0 1.35em 1.25em !important;
  padding-left: 1.1em !important;
}

body.single-post .entry-content > ul li,
body.single-post .entry-content > ol li,
body.single-post .single-content > ul li,
body.single-post .single-content > ol li {
  margin-bottom: 0.55em !important;
  padding-left: 0.25em !important;
}

body.single-post .entry-content > ul li::marker,
body.single-post .entry-content > ol li::marker,
body.single-post .single-content > ul li::marker,
body.single-post .single-content > ol li::marker {
  color: var(--ced-article-blue) !important;
  font-weight: 900 !important;
}

/* Article figures only */
body.single-post .entry-content > figure:not(.wp-block-table),
body.single-post .single-content > figure:not(.wp-block-table) {
  margin-top: 30px !important;
  margin-bottom: 34px !important;
}

body.single-post .entry-content > figure:not(.wp-block-table) img,
body.single-post .single-content > figure:not(.wp-block-table) img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(7, 27, 58, 0.08) !important;
}

body.single-post .entry-content figcaption,
body.single-post .single-content figcaption {
  margin-top: 10px !important;
  color: var(--ced-article-muted) !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Article callouts */
body.single-post .entry-content .quick-answer-box,
body.single-post .single-content .quick-answer-box {
  margin: 28px 0 !important;
  padding: 22px 24px !important;
  border: 1px solid #f0d48a !important;
  border-left: 6px solid var(--ced-article-yellow-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fffaf0 0%, var(--ced-article-yellow) 100%) !important;
  box-shadow: 0 10px 24px rgba(154, 107, 0, 0.10) !important;
}

body.single-post .entry-content .quick-answer-label,
body.single-post .single-content .quick-answer-label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #7a5200 !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.single-post .entry-content .quick-answer-box p,
body.single-post .single-content .quick-answer-box p {
  margin-bottom: 0 !important;
  color: #3d3216 !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

body.single-post .entry-content .engineers-note,
body.single-post .entry-content .engineer-note,
body.single-post .single-content .engineers-note,
body.single-post .single-content .engineer-note {
  margin: 28px 0 !important;
  padding: 22px 24px !important;
  border: 1px solid #b9d7f5 !important;
  border-left: 6px solid var(--ced-article-blue) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f7fbff 0%, var(--ced-article-engineer) 100%) !important;
  box-shadow: 0 10px 24px rgba(7, 87, 166, 0.10) !important;
}

body.single-post .entry-content .engineer-note-label,
body.single-post .single-content .engineer-note-label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #043f7d !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.single-post .entry-content .engineers-note p,
body.single-post .entry-content .engineer-note p,
body.single-post .single-content .engineers-note p,
body.single-post .single-content .engineer-note p {
  margin-bottom: 0 !important;
  color: #1e324d !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Tables only when they are article table blocks or marked as CED tables */
body.single-post .entry-content > .wp-block-table,
body.single-post .single-content > .wp-block-table,
body.single-post .entry-content > .ced-article-table,
body.single-post .single-content > .ced-article-table {
  width: 100% !important;
  margin: 30px 0 36px !important;
  overflow-x: auto !important;
  border-radius: 14px !important;
  border: 1px solid #b8cce2 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(7, 27, 58, 0.11) !important;
}

body.single-post .entry-content > .wp-block-table table,
body.single-post .single-content > .wp-block-table table,
body.single-post .entry-content > .ced-article-table table,
body.single-post .single-content > .ced-article-table table {
  width: 100% !important;
  min-width: 620px !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: var(--ced-polish-font) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  border: none !important;
}

body.single-post .entry-content > .wp-block-table thead th,
body.single-post .single-content > .wp-block-table thead th,
body.single-post .entry-content > .ced-article-table thead th,
body.single-post .single-content > .ced-article-table thead th {
  background: linear-gradient(180deg, #0a2755 0%, #071b3a 100%) !important;
  color: #ffffff !important;
  padding: 16px 18px !important;
  font-weight: 900 !important;
  text-align: left !important;
  border: none !important;
}

body.single-post .entry-content > .wp-block-table td,
body.single-post .single-content > .wp-block-table td,
body.single-post .entry-content > .ced-article-table td,
body.single-post .single-content > .ced-article-table td {
  padding: 15px 18px !important;
  border-bottom: 1px solid #d6e3f2 !important;
  color: var(--ced-article-text) !important;
  background: #ffffff !important;
  vertical-align: top !important;
}

body.single-post .entry-content > .wp-block-table tbody tr:nth-child(even) td,
body.single-post .single-content > .wp-block-table tbody tr:nth-child(even) td,
body.single-post .entry-content > .ced-article-table tbody tr:nth-child(even) td,
body.single-post .single-content > .ced-article-table tbody tr:nth-child(even) td {
  background: #f4f9ff !important;
}

/* End gap fix before author box */
body.single-post .entry-content,
body.single-post .single-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.single-post .entry-content > *:last-child,
body.single-post .single-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.single-post .entry-content > p:empty,
body.single-post .single-content > p:empty,
body.single-post .entry-content > .wp-block-spacer,
body.single-post .single-content > .wp-block-spacer,
body.single-post .entry-content > div:empty,
body.single-post .single-content > div:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post .entry-author-profile,
body.single-post .author-profile,
body.single-post .post-author-box,
body.single-post .author-box,
body.single-post .author-bio,
body.single-post .kadence-author-box,
body.single-post .kt_author_box {
  margin-top: 24px !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  body.single-post h1.entry-title,
  body.single-post .entry-hero h1.entry-title,
  body.single-post .entry-header h1.entry-title,
  body.single-post .entry-hero-container-inner h1.entry-title {
    font-size: 33px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em !important;
  }

  body.single-post .entry-hero-container-inner,
  body.single-post article.type-post > .entry-header,
  body.single-post .content-area .site-main > article.type-post > .entry-header {
    padding-top: 22px !important;
    padding-bottom: 16px !important;
    margin-bottom: 14px !important;
  }

  body.single-post .entry-content,
  body.single-post .single-content,
  body.single-post .entry-content > p,
  body.single-post .single-content > p,
  body.single-post .entry-content > ul,
  body.single-post .entry-content > ol,
  body.single-post .single-content > ul,
  body.single-post .single-content > ol {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  body.single-post .entry-content > h2,
  body.single-post .single-content > h2 {
    font-size: 27px !important;
  }

  body.single-post .entry-content > h3,
  body.single-post .single-content > h3 {
    font-size: 22px !important;
  }
}


/* =========================================================
   CED v1.4 global font force layer
   Enqueued late to restore self-hosted premium typography.
   ========================================================= */
body,
.site,
.site-content,
.entry-content,
.single-content,
.entry-summary,
.entry-meta,
.site-header,
.site-footer,
button,
input,
select,
textarea,
.main-navigation a,
.header-navigation a,
.footer-navigation a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Premium serif for high-value titles and article headings */
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-content > h2,
body.single-post .single-content > h2,
body.page:not(.home):not(.front-page) .entry-content h2 {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* Keep archive card titles clean sans, like the homepage cards */
body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 850 !important;
}

/* Restore premium size on single post titles unless a calculator block controls itself */
body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title {
  font-size: clamp(36px, 4.2vw, 62px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: #071b3a !important;
}

body.single-post .entry-content > h2,
body.single-post .single-content > h2 {
  font-size: clamp(28px, 2.5vw, 38px) !important;
  line-height: 1.18 !important;
}

/* Calculator blocks keep their own embedded calculator UI */
body.single-post .ced-dj-wrap,
body.single-post .ced-dj-wrap *,
body.single-post .ced-deck-joist-calculator,
body.single-post .ced-deck-joist-calculator * {
  font-family: Arial, Helvetica, sans-serif !important;
}


/* =========================================================
   CED v1.5 typography correction and speed fix
   Libre only for page/category/post titles and article H2.
   Archive cards, snippets, menus, buttons and body use fast system font.
   Inter webfont is intentionally not loaded to avoid the 344 KB critical request.
   ========================================================= */
body,
button,
input,
select,
textarea {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.page:not(.home):not(.front-page) .entry-content,
body.blog .entry.loop-entry,
body.archive .entry.loop-entry,
body.category .entry.loop-entry,
body.tag .entry.loop-entry,
body.single-post .entry-content,
body.single-post .single-content {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Card titles and snippets stay sans, not Libre */
body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.author .entry.loop-entry .entry-title,
body.date .entry.loop-entry .entry-title,
body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a,
body.author .entry.loop-entry .entry-title a,
body.date .entry.loop-entry .entry-title a,
body.blog .entry.loop-entry .entry-summary,
body.archive .entry.loop-entry .entry-summary,
body.category .entry.loop-entry .entry-summary,
body.tag .entry.loop-entry .entry-summary,
body.author .entry.loop-entry .entry-summary,
body.date .entry.loop-entry .entry-summary,
body.blog .entry.loop-entry .more-link,
body.archive .entry.loop-entry .more-link,
body.category .entry.loop-entry .more-link,
body.tag .entry.loop-entry .more-link {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Main editorial headings keep old premium serif look */
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-hero-container-inner h1.entry-title,
body.single-post .entry-content > h2,
body.single-post .single-content > h2 {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* Article H3/H4 and card titles remain clean sans */
body.single-post .entry-content > h3,
body.single-post .single-content > h3,
body.single-post .entry-content > h4,
body.single-post .single-content > h4 {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}


/* =========================================================
   CED Site Template Polish v1.6
   Site-wide pages, posts, categories and archives use clean sans typography.
   Libre Baskerville is homepage-only through the homepage plugin.
   ========================================================= */

/* Header safety. This does not target the WordPress admin bar. */
.site-header,
.site-main-header-wrap,
.site-header-row-container-inner,
.site-header-main-section,
.site-header-upper-inner-wrap {
  background: #ffffff !important;
  color: #071b3a !important;
}

.site-main-header-wrap {
  border-bottom: 1px solid #dce8f2 !important;
  box-shadow: 0 4px 16px rgba(7, 27, 58, 0.04) !important;
}

.site-branding img,
.site-header .custom-logo {
  max-height: 58px !important;
  width: auto !important;
}

.site-header,
.site-header p,
.site-header a,
.site-header span,
.site-title,
.site-title a,
.main-navigation a,
.header-navigation a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.main-navigation .primary-menu-container > ul > li > a,
.header-navigation .menu > li > a {
  color: #071b3a !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: -0.012em !important;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.header-navigation .menu > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.header-navigation .menu > li.current-menu-item > a {
  color: #0757a6 !important;
}

/* General site typography */
body:not(.home):not(.front-page),
body:not(.home):not(.front-page) p,
body:not(.home):not(.front-page) li,
body:not(.home):not(.front-page) a,
body:not(.home):not(.front-page) span,
body:not(.home):not(.front-page) small,
body:not(.home):not(.front-page) button,
body:not(.home):not(.front-page) input,
body:not(.home):not(.front-page) select,
body:not(.home):not(.front-page) textarea {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Single post heading sizing */
body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-hero-container-inner h1.entry-title {
  max-width: 900px !important;
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(32px, 3vw, 46px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
}

body.single-post .entry-content > h2,
body.single-post .single-content > h2 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(25px, 2vw, 32px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  font-weight: 850 !important;
  margin-top: 1.9em !important;
  margin-bottom: 0.7em !important;
}

body.single-post .entry-content > h3,
body.single-post .single-content > h3 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(21px, 1.55vw, 25px) !important;
  line-height: 1.3 !important;
  font-weight: 850 !important;
  margin-top: 1.55em !important;
  margin-bottom: 0.55em !important;
}

body.single-post .entry-content > h4,
body.single-post .single-content > h4 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

/* Archive and category title sizing */
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: #071b3a !important;
  font-size: clamp(34px, 3vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
}

/* Archive cards remain clean sans */
body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.32 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
}

body.blog .entry.loop-entry .entry-summary,
body.archive .entry.loop-entry .entry-summary,
body.category .entry.loop-entry .entry-summary,
body.tag .entry.loop-entry .entry-summary {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.62 !important;
}

@media (max-width: 768px) {
  .site-branding img,
  .site-header .custom-logo {
    max-height: 48px !important;
  }

  .main-navigation .primary-menu-container > ul > li > a,
  .header-navigation .menu > li > a {
    font-size: 15px !important;
  }

  body.single-post h1.entry-title,
  body.single-post .entry-hero h1.entry-title,
  body.single-post .entry-header h1.entry-title,
  body.single-post .entry-hero-container-inner h1.entry-title {
    font-size: 31px !important;
    line-height: 1.17 !important;
  }

  body.single-post .entry-content > h2,
  body.single-post .single-content > h2 {
    font-size: 26px !important;
  }

  body.single-post .entry-content > h3,
  body.single-post .single-content > h3 {
    font-size: 22px !important;
  }
}


/* =========================================================
   CED Site Template Polish v1.7 Inter restoration
   Site-wide pages, posts, categories, archives and header use self-hosted Inter.
   Libre Baskerville remains homepage-only through the homepage plugin.
   ========================================================= */
body:not(.home):not(.front-page),
body:not(.home):not(.front-page) p,
body:not(.home):not(.front-page) li,
body:not(.home):not(.front-page) a,
body:not(.home):not(.front-page) span,
body:not(.home):not(.front-page) small,
body:not(.home):not(.front-page) button,
body:not(.home):not(.front-page) input,
body:not(.home):not(.front-page) select,
body:not(.home):not(.front-page) textarea,
.site-header,
.site-header p,
.site-header a,
.site-header span,
.site-title,
.site-title a,
.main-navigation a,
.header-navigation a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-hero-container-inner h1.entry-title,
body.single-post .entry-content > h2,
body.single-post .single-content > h2,
body.single-post .entry-content > h3,
body.single-post .single-content > h3,
body.single-post .entry-content > h4,
body.single-post .single-content > h4,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title,
body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}


/* =========================================================
   CED Site Template Polish v1.8 final Inter sitewide layer
   Keeps homepage Libre controlled only by homepage plugin.
   ========================================================= */
.site-header,
.site-main-header-wrap,
.site-header-row-container-inner,
.site-header-main-section,
.site-header-upper-inner-wrap {
  background: #ffffff !important;
  color: #071b3a !important;
}

.site-main-header-wrap {
  border-bottom: 1px solid #dce8f2 !important;
  box-shadow: 0 4px 16px rgba(7, 27, 58, 0.04) !important;
}

body:not(.home):not(.front-page),
body:not(.home):not(.front-page) p,
body:not(.home):not(.front-page) li,
body:not(.home):not(.front-page) a,
body:not(.home):not(.front-page) span,
body:not(.home):not(.front-page) small,
body:not(.home):not(.front-page) button,
body:not(.home):not(.front-page) input,
body:not(.home):not(.front-page) select,
body:not(.home):not(.front-page) textarea,
.site-header,
.site-header p,
.site-header a,
.site-header span,
.site-title,
.site-title a,
.main-navigation a,
.header-navigation a,
.site-footer,
.site-footer p,
.site-footer a,
.site-footer li,
.site-footer span {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.main-navigation .primary-menu-container > ul > li > a,
.header-navigation .menu > li > a {
  color: #071b3a !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: -0.012em !important;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.header-navigation .menu > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.header-navigation .menu > li.current-menu-item > a {
  color: #0757a6 !important;
}

body.single-post h1.entry-title,
body.single-post .entry-hero h1.entry-title,
body.single-post .entry-header h1.entry-title,
body.single-post .entry-hero-container-inner h1.entry-title {
  max-width: 900px !important;
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(32px, 3vw, 46px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
}

body.single-post .entry-content > h2,
body.single-post .single-content > h2 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(25px, 2vw, 32px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  font-weight: 850 !important;
  margin-top: 1.9em !important;
  margin-bottom: 0.7em !important;
}

body.single-post .entry-content > h3,
body.single-post .single-content > h3 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(21px, 1.55vw, 25px) !important;
  line-height: 1.3 !important;
  font-weight: 850 !important;
  margin-top: 1.55em !important;
  margin-bottom: 0.55em !important;
}

body.single-post .entry-content > h4,
body.single-post .single-content > h4 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .page-title {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: #071b3a !important;
  font-size: clamp(34px, 3vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
}

body.blog .entry.loop-entry .entry-title,
body.archive .entry.loop-entry .entry-title,
body.category .entry.loop-entry .entry-title,
body.tag .entry.loop-entry .entry-title,
body.blog .entry.loop-entry .entry-title a,
body.archive .entry.loop-entry .entry-title a,
body.category .entry.loop-entry .entry-title a,
body.tag .entry.loop-entry .entry-title a {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.32 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
}

body.blog .entry.loop-entry .entry-summary,
body.archive .entry.loop-entry .entry-summary,
body.category .entry.loop-entry .entry-summary,
body.tag .entry.loop-entry .entry-summary {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.62 !important;
}

@media (max-width: 768px) {
  body.single-post h1.entry-title,
  body.single-post .entry-hero h1.entry-title,
  body.single-post .entry-header h1.entry-title,
  body.single-post .entry-hero-container-inner h1.entry-title {
    font-size: 31px !important;
    line-height: 1.17 !important;
  }

  body.single-post .entry-content > h2,
  body.single-post .single-content > h2 {
    font-size: 26px !important;
  }

  body.single-post .entry-content > h3,
  body.single-post .single-content > h3 {
    font-size: 22px !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.9
   Clean light premium footer. Replaces the old black/dark footer look.
   ========================================================= */

.site-footer,
#colophon,
.site-footer-wrap,
.site-footer-row-container-inner,
.site-footer-top-section,
.site-footer-middle-section,
.site-footer-bottom-section,
.footer-widget-area,
.footer-html,
.footer-navigation,
.footer-navigation-wrap {
  background: #f7fbff !important;
  color: #263c56 !important;
}

.site-footer,
#colophon {
  border-top: 1px solid #dce8f2 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* Footer spacing */
.site-footer-row-container-inner {
  padding-top: 48px !important;
  padding-bottom: 28px !important;
}

/* Footer headings */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .widget-title,
.site-footer .footer-widget-area h2,
.site-footer .footer-widget-area h3,
.site-footer .footer-widget-area h4 {
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
  letter-spacing: -0.018em !important;
  margin-bottom: 14px !important;
}

/* Footer body text */
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .footer-html,
.site-footer .widget,
.site-footer .site-info,
.site-footer .site-info p {
  color: #263c56 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* Footer links */
.site-footer a,
.site-footer .footer-navigation a,
.site-footer .footer-widget-area a,
.site-footer .menu a,
.site-footer .site-info a {
  color: #0757a6 !important;
  text-decoration: none !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 750 !important;
}

.site-footer a:hover,
.site-footer .footer-navigation a:hover,
.site-footer .footer-widget-area a:hover,
.site-footer .menu a:hover,
.site-footer .site-info a:hover {
  color: #071b3a !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Footer menus */
.site-footer .menu,
.site-footer ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer .menu li,
.site-footer li {
  margin-bottom: 9px !important;
}

/* Footer columns/cards feel cleaner */
.site-footer .widget {
  margin-bottom: 0 !important;
}

.site-footer .footer-widget-area {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Footer bottom strip */
.site-footer-bottom-section,
.site-footer .site-footer-bottom-section,
.site-footer .footer-bottom,
.site-footer .site-footer-row.site-footer-row-columns-1 {
  border-top: 1px solid #dce8f2 !important;
}

.site-footer-bottom-section,
.site-footer .site-footer-bottom-section,
.site-footer .footer-bottom {
  background: #eef5fb !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.site-footer .site-info,
.site-footer .site-info a,
.site-footer-bottom-section p,
.site-footer-bottom-section span {
  color: #5b6f86 !important;
  font-size: 13px !important;
}

/* Remove dark theme leftovers */
.site-footer *,
#colophon * {
  text-shadow: none !important;
}

.site-footer .wp-block-separator {
  border-color: #dce8f2 !important;
}

/* Mobile footer */
@media (max-width: 768px) {
  .site-footer-row-container-inner {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }

  .site-footer .footer-widget-area {
    margin-bottom: 24px !important;
  }

  .site-footer h1,
  .site-footer h2,
  .site-footer h3,
  .site-footer h4,
  .site-footer .widget-title {
    margin-bottom: 10px !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.10
   Smaller page/category headers and styled Rank Math FAQ block.
   ========================================================= */

/* Reduce oversized archive/category/page hero headers */
body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.blog .entry-hero-container-inner,
body.page:not(.home):not(.front-page) .entry-hero-container-inner,
body.archive .hero-container,
body.category .hero-container,
body.tag .hero-container,
body.blog .hero-container,
body.page:not(.home):not(.front-page) .hero-container,
body.archive .page-header,
body.category .page-header,
body.tag .page-header,
body.blog .page-header,
body.page:not(.home):not(.front-page) .page-header {
  padding-top: 54px !important;
  padding-bottom: 56px !important;
  min-height: 0 !important;
}

/* Kadence archive/page title wrapper */
body.archive .entry-hero,
body.category .entry-hero,
body.tag .entry-hero,
body.blog .entry-hero,
body.page:not(.home):not(.front-page) .entry-hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Main archive/page/category title size */
body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.blog h1.page-title,
body.archive .entry-hero h1,
body.category .entry-hero h1,
body.tag .entry-hero h1,
body.blog .entry-hero h1,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .entry-hero h1.entry-title,
body.page:not(.home):not(.front-page) .page-title {
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(34px, 3.05vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  font-weight: 850 !important;
  color: #071b3a !important;
  margin-bottom: 18px !important;
}

/* Category description text under title */
body.archive .archive-description,
body.category .archive-description,
body.tag .archive-description,
body.archive .taxonomy-description,
body.category .taxonomy-description,
body.tag .taxonomy-description,
body.blog .archive-description,
body.archive .entry-hero p,
body.category .entry-hero p,
body.tag .entry-hero p,
body.blog .entry-hero p {
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #263c56 !important;
  font-size: clamp(17px, 1.35vw, 22px) !important;
  line-height: 1.55 !important;
  font-weight: 450 !important;
}

/* Reduce the blank area below category/page hero before posts */
body.archive .content-area,
body.category .content-area,
body.tag .content-area,
body.blog .content-area {
  padding-top: 42px !important;
}

/* Normal page content H1/H2 refinement */
body.page:not(.home):not(.front-page) .entry-content h1,
body.page:not(.home):not(.front-page) .single-content h1 {
  font-size: clamp(32px, 2.7vw, 44px) !important;
  line-height: 1.12 !important;
}

body.page:not(.home):not(.front-page) .entry-content h2,
body.page:not(.home):not(.front-page) .single-content h2 {
  font-size: clamp(25px, 2vw, 32px) !important;
  line-height: 1.2 !important;
}

body.page:not(.home):not(.front-page) .entry-content h3,
body.page:not(.home):not(.front-page) .single-content h3 {
  font-size: clamp(21px, 1.55vw, 25px) !important;
  line-height: 1.28 !important;
}

/* Rank Math FAQ block styling */
.entry-content .rank-math-block,
.single-content .rank-math-block,
.entry-content .wp-block-rank-math-faq-block,
.single-content .wp-block-rank-math-faq-block,
.entry-content .rank-math-list,
.single-content .rank-math-list {
  margin: 34px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.entry-content .rank-math-list-item,
.single-content .rank-math-list-item,
.entry-content .wp-block-rank-math-faq-block .rank-math-list-item,
.single-content .wp-block-rank-math-faq-block .rank-math-list-item {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid #dce8f2 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.045) !important;
  overflow: hidden !important;
}

/* FAQ question */
.entry-content .rank-math-question,
.single-content .rank-math-question,
.entry-content .wp-block-rank-math-faq-block .rank-math-question,
.single-content .wp-block-rank-math-faq-block .rank-math-question,
.entry-content .rank-math-list-item h3,
.single-content .rank-math-list-item h3,
.entry-content .rank-math-list-item h4,
.single-content .rank-math-list-item h4 {
  display: block !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  color: #071b3a !important;
  background: #f4f8fc !important;
  border-bottom: 1px solid #dce8f2 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  letter-spacing: -0.018em !important;
}

/* FAQ answer */
.entry-content .rank-math-answer,
.single-content .rank-math-answer,
.entry-content .wp-block-rank-math-faq-block .rank-math-answer,
.single-content .wp-block-rank-math-faq-block .rank-math-answer {
  padding: 18px 22px 20px !important;
  color: #263c56 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

.entry-content .rank-math-answer p,
.single-content .rank-math-answer p,
.entry-content .wp-block-rank-math-faq-block .rank-math-answer p,
.single-content .wp-block-rank-math-faq-block .rank-math-answer p {
  margin: 0 0 12px !important;
  color: #263c56 !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

.entry-content .rank-math-answer p:last-child,
.single-content .rank-math-answer p:last-child {
  margin-bottom: 0 !important;
}

.entry-content .rank-math-answer a,
.single-content .rank-math-answer a,
.entry-content .wp-block-rank-math-faq-block .rank-math-answer a,
.single-content .wp-block-rank-math-faq-block .rank-math-answer a {
  color: #0757a6 !important;
  font-weight: 750 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Mobile header and FAQ refinement */
@media (max-width: 768px) {
  body.archive .entry-hero-container-inner,
  body.category .entry-hero-container-inner,
  body.tag .entry-hero-container-inner,
  body.blog .entry-hero-container-inner,
  body.page:not(.home):not(.front-page) .entry-hero-container-inner,
  body.archive .page-header,
  body.category .page-header,
  body.tag .page-header,
  body.blog .page-header,
  body.page:not(.home):not(.front-page) .page-header {
    padding-top: 38px !important;
    padding-bottom: 40px !important;
  }

  body.archive h1.page-title,
  body.category h1.page-title,
  body.tag h1.page-title,
  body.blog h1.page-title,
  body.archive .entry-hero h1,
  body.category .entry-hero h1,
  body.tag .entry-hero h1,
  body.blog .entry-hero h1,
  body.page:not(.home):not(.front-page) h1.entry-title,
  body.page:not(.home):not(.front-page) .entry-hero h1.entry-title,
  body.page:not(.home):not(.front-page) .page-title {
    font-size: 34px !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }

  body.archive .archive-description,
  body.category .archive-description,
  body.tag .archive-description,
  body.archive .taxonomy-description,
  body.category .taxonomy-description,
  body.tag .taxonomy-description,
  body.blog .archive-description,
  body.archive .entry-hero p,
  body.category .entry-hero p,
  body.tag .entry-hero p,
  body.blog .entry-hero p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .entry-content .rank-math-question,
  .single-content .rank-math-question,
  .entry-content .rank-math-list-item h3,
  .single-content .rank-math-list-item h3,
  .entry-content .rank-math-list-item h4,
  .single-content .rank-math-list-item h4 {
    padding: 16px 18px !important;
    font-size: 17px !important;
  }

  .entry-content .rank-math-answer,
  .single-content .rank-math-answer {
    padding: 16px 18px 18px !important;
    font-size: 15.5px !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.15
   Safe version: FAQ accordion + compact hero + TEXT ONLY styling
   for author box and similar posts. No alignment/layout changes
   for author box or similar posts.
   ========================================================= */

/* Compact category/archive/page hero only */
body.archive .entry-hero-container,
body.category .entry-hero-container,
body.tag .entry-hero-container,
body.blog .entry-hero-container,
body.search .entry-hero-container,
body.page:not(.home):not(.front-page) .entry-hero-container,
body.archive .entry-hero,
body.category .entry-hero,
body.tag .entry-hero,
body.blog .entry-hero,
body.search .entry-hero,
body.page:not(.home):not(.front-page) .entry-hero,
body.archive .page-header,
body.category .page-header,
body.tag .page-header,
body.blog .page-header,
body.search .page-header,
body.page:not(.home):not(.front-page) .page-header {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.archive .entry-hero-container-inner,
body.category .entry-hero-container-inner,
body.tag .entry-hero-container-inner,
body.blog .entry-hero-container-inner,
body.search .entry-hero-container-inner,
body.page:not(.home):not(.front-page) .entry-hero-container-inner,
body.archive .site .entry-hero-container-inner,
body.category .site .entry-hero-container-inner,
body.tag .site .entry-hero-container-inner,
body.blog .site .entry-hero-container-inner,
body.search .site .entry-hero-container-inner,
body.page:not(.home):not(.front-page) .site .entry-hero-container-inner {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 20px !important;
  padding-bottom: 22px !important;
  margin: 0 !important;
}

body.archive .entry-hero-container-inner .entry-header,
body.category .entry-hero-container-inner .entry-header,
body.tag .entry-hero-container-inner .entry-header,
body.blog .entry-hero-container-inner .entry-header,
body.search .entry-hero-container-inner .entry-header,
body.page:not(.home):not(.front-page) .entry-hero-container-inner .entry-header {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

body.archive h1.page-title,
body.category h1.page-title,
body.tag h1.page-title,
body.blog h1.page-title,
body.search h1.page-title,
body.archive .entry-hero h1,
body.category .entry-hero h1,
body.tag .entry-hero h1,
body.blog .entry-hero h1,
body.search .entry-hero h1,
body.page:not(.home):not(.front-page) h1.entry-title,
body.page:not(.home):not(.front-page) .entry-hero h1.entry-title,
body.page:not(.home):not(.front-page) .page-title {
  font-size: clamp(28px, 2.1vw, 38px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

body.archive .archive-description,
body.category .archive-description,
body.tag .archive-description,
body.search .archive-description,
body.archive .taxonomy-description,
body.category .taxonomy-description,
body.tag .taxonomy-description,
body.blog .archive-description,
body.archive .entry-hero p,
body.category .entry-hero p,
body.tag .entry-hero p,
body.blog .entry-hero p,
body.search .entry-hero p,
body.page:not(.home):not(.front-page) .entry-hero p {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: clamp(15.5px, 1vw, 17px) !important;
  line-height: 1.45 !important;
  color: #263c56 !important;
}

body.archive #primary,
body.category #primary,
body.tag #primary,
body.blog #primary,
body.search #primary,
body.archive .content-area,
body.category .content-area,
body.tag .content-area,
body.blog .content-area,
body.search .content-area,
body.archive .site-main,
body.category .site-main,
body.tag .site-main,
body.blog .site-main,
body.search .site-main {
  padding-top: 20px !important;
  margin-top: 0 !important;
}

/* Rank Math FAQ accordion */
.entry-content .ced-faq-accordion,
.single-content .ced-faq-accordion,
.entry-content .wp-block-rank-math-faq-block,
.single-content .wp-block-rank-math-faq-block {
  margin: 32px 0 !important;
}

.entry-content .ced-faq-accordion .rank-math-list-item,
.single-content .ced-faq-accordion .rank-math-list-item,
.entry-content .wp-block-rank-math-faq-block .rank-math-list-item,
.single-content .wp-block-rank-math-faq-block .rank-math-list-item {
  margin: 0 0 12px !important;
  border: 1px solid #dce8f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(7, 27, 58, 0.045) !important;
  overflow: hidden !important;
}

.entry-content .ced-faq-accordion .rank-math-question,
.single-content .ced-faq-accordion .rank-math-question,
.entry-content .wp-block-rank-math-faq-block .rank-math-question,
.single-content .wp-block-rank-math-faq-block .rank-math-question {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 17px 54px 17px 20px !important;
  color: #071b3a !important;
  background: #f7fbff !important;
  cursor: pointer !important;
  border: 0 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  letter-spacing: -0.016em !important;
}

.entry-content .ced-faq-accordion .rank-math-question::after,
.single-content .ced-faq-accordion .rank-math-question::after,
.entry-content .wp-block-rank-math-faq-block .rank-math-question::after,
.single-content .wp-block-rank-math-faq-block .rank-math-question::after {
  content: "+" !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0757a6 !important;
  background: #eaf3fc !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.entry-content .ced-faq-accordion .rank-math-list-item.is-open .rank-math-question::after,
.single-content .ced-faq-accordion .rank-math-list-item.is-open .rank-math-question::after,
.entry-content .wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-question::after,
.single-content .wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-question::after {
  content: "−" !important;
  background: #071b3a !important;
  color: #ffffff !important;
}

.entry-content .ced-faq-accordion .rank-math-answer,
.single-content .ced-faq-accordion .rank-math-answer,
.entry-content .wp-block-rank-math-faq-block .rank-math-answer,
.single-content .wp-block-rank-math-faq-block .rank-math-answer {
  display: none;
  padding: 18px 20px !important;
  border-top: 1px solid #dce8f2 !important;
  background: #ffffff !important;
  color: #263c56 !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

.entry-content .ced-faq-accordion .rank-math-list-item.is-open .rank-math-answer,
.single-content .ced-faq-accordion .rank-math-list-item.is-open .rank-math-answer,
.entry-content .wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-answer,
.single-content .wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-answer {
  display: block !important;
}

/* AUTHOR BOX: TEXT ONLY. No alignment, width, display, grid, or position changes. */
body.single-post .entry-author,
body.single-post .author-box,
body.single-post .post-author-box,
body.single-post .kadence-author-box,
body.single-post .author-bio,
body.single-post .entry-author-profile {
  color: #263c56 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.single-post .entry-author h2,
body.single-post .entry-author h3,
body.single-post .entry-author-name,
body.single-post .author-box h2,
body.single-post .author-box h3,
body.single-post .post-author-box h2,
body.single-post .post-author-box h3,
body.single-post .kadence-author-box h2,
body.single-post .kadence-author-box h3 {
  color: #071b3a !important;
  font-size: 20px !important;
  line-height: 1.22 !important;
  font-weight: 850 !important;
  letter-spacing: -0.018em !important;
}

body.single-post .entry-author p,
body.single-post .entry-author-description,
body.single-post .author-box p,
body.single-post .post-author-box p,
body.single-post .kadence-author-box p,
body.single-post .author-bio p {
  color: #263c56 !important;
  font-size: 15.5px !important;
  line-height: 1.58 !important;
  font-weight: 450 !important;
}

body.single-post .entry-author a,
body.single-post .author-box a,
body.single-post .post-author-box a,
body.single-post .kadence-author-box a {
  color: #0757a6 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
}

/* SIMILAR / RELATED POSTS: TEXT ONLY. No alignment or layout changes. */
body.single-post .entry-related,
body.single-post .related-posts,
body.single-post .similar-posts,
body.single-post .yarpp-related,
body.single-post .crp_related,
body.single-post .jp-relatedposts,
body.single-post div[class*="related-post"],
body.single-post section[class*="related-post"],
body.single-post div[class*="similar-post"],
body.single-post section[class*="similar-post"] {
  color: #263c56 !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.single-post .entry-related h2,
body.single-post .related-posts h2,
body.single-post .similar-posts h2,
body.single-post .yarpp-related h3,
body.single-post .crp_related h3,
body.single-post .jp-relatedposts h3,
body.single-post div[class*="related-post"] > h2,
body.single-post section[class*="related-post"] > h2,
body.single-post div[class*="similar-post"] > h2,
body.single-post section[class*="similar-post"] > h2,
body.single-post .entry-related-title {
  color: #071b3a !important;
  font-size: 28px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
}

body.single-post .entry-related .entry-title,
body.single-post .related-posts .entry-title,
body.single-post .similar-posts .entry-title,
body.single-post .yarpp-related a,
body.single-post .crp_related a,
body.single-post .jp-relatedposts a,
body.single-post div[class*="related-post"] .entry-title,
body.single-post section[class*="related-post"] .entry-title,
body.single-post div[class*="similar-post"] .entry-title,
body.single-post section[class*="similar-post"] .entry-title,
body.single-post .entry-related article h2,
body.single-post .related-posts article h2,
body.single-post .similar-posts article h2,
body.single-post .entry-related article h3,
body.single-post .related-posts article h3,
body.single-post .similar-posts article h3 {
  color: #071b3a !important;
  font-size: 22px !important;
  line-height: 1.28 !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
}

body.single-post .entry-related .entry-meta,
body.single-post .related-posts .entry-meta,
body.single-post .similar-posts .entry-meta,
body.single-post .yarpp-related .entry-meta,
body.single-post .crp_related .entry-meta,
body.single-post .jp-relatedposts .entry-meta,
body.single-post div[class*="related-post"] .entry-meta,
body.single-post section[class*="related-post"] .entry-meta,
body.single-post div[class*="similar-post"] .entry-meta,
body.single-post section[class*="similar-post"] .entry-meta {
  color: #5b6f86 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  body.single-post .entry-related .entry-title,
  body.single-post .related-posts .entry-title,
  body.single-post .similar-posts .entry-title,
  body.single-post .yarpp-related a,
  body.single-post .crp_related a,
  body.single-post .jp-relatedposts a,
  body.single-post div[class*="related-post"] .entry-title,
  body.single-post section[class*="related-post"] .entry-title,
  body.single-post div[class*="similar-post"] .entry-title,
  body.single-post section[class*="similar-post"] .entry-title,
  body.single-post .entry-related article h2,
  body.single-post .related-posts article h2,
  body.single-post .similar-posts article h2,
  body.single-post .entry-related article h3,
  body.single-post .related-posts article h3,
  body.single-post .similar-posts article h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.16
   Comment form and Previous/Next navigation styling only.
   Does not change author box or Similar Posts alignment.
   ========================================================= */

/* Previous / Next post navigation styling */
body.single-post .post-navigation,
body.single-post .navigation.post-navigation {
  max-width: 1080px !important;
  margin: 34px auto 40px !important;
  padding: 0 20px !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.single-post .post-navigation .nav-links {
  gap: 18px !important;
  border: 0 !important;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
  padding: 22px 24px !important;
  border: 1px solid #dce8f2 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 8px 22px rgba(7, 27, 58, 0.045) !important;
}

body.single-post .post-navigation .nav-previous:hover,
body.single-post .post-navigation .nav-next:hover {
  border-color: #c8d9ea !important;
  box-shadow: 0 12px 28px rgba(7, 27, 58, 0.07) !important;
}

body.single-post .post-navigation a {
  color: #071b3a !important;
  text-decoration: none !important;
}

body.single-post .post-navigation .nav-subtitle,
body.single-post .post-navigation .nav-label,
body.single-post .post-navigation .screen-reader-text {
  display: block !important;
  margin-bottom: 10px !important;
  color: #0757a6 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
}

body.single-post .post-navigation .nav-title,
body.single-post .post-navigation .post-title,
body.single-post .post-navigation a {
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
}

/* Keep existing left/right alignment but improve readability */
body.single-post .post-navigation .nav-next {
  text-align: right !important;
}

body.single-post .post-navigation .nav-previous {
  text-align: left !important;
}

/* Comment form styling */
body.single-post #comments,
body.single-post .comments-area,
body.single-post .comment-respond,
body.single-post #respond {
  max-width: 1080px !important;
  margin: 38px auto !important;
  padding: 30px 32px !important;
  border: 1px solid #dce8f2 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 10px 26px rgba(7, 27, 58, 0.05) !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.single-post #reply-title,
body.single-post .comment-reply-title,
body.single-post .comments-title {
  margin: 0 0 18px !important;
  color: #071b3a !important;
  font-size: 28px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
}

body.single-post .comment-notes,
body.single-post .logged-in-as,
body.single-post .comment-form p,
body.single-post .comment-form {
  color: #263c56 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

body.single-post .logged-in-as a,
body.single-post .comment-notes a,
body.single-post .comment-form a {
  color: #0757a6 !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body.single-post .logged-in-as a:hover,
body.single-post .comment-notes a:hover,
body.single-post .comment-form a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body.single-post .comment-form label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #071b3a !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
}

body.single-post .comment-form textarea,
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"] {
  width: 100% !important;
  border: 1px solid #cddceb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #071b3a !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 1px 2px rgba(7, 27, 58, 0.035) !important;
}

body.single-post .comment-form textarea {
  min-height: 190px !important;
  padding: 18px !important;
}

body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"] {
  min-height: 46px !important;
  padding: 10px 14px !important;
}

body.single-post .comment-form textarea:focus,
body.single-post .comment-form input[type="text"]:focus,
body.single-post .comment-form input[type="email"]:focus,
body.single-post .comment-form input[type="url"]:focus {
  border-color: #0757a6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(7, 87, 166, 0.12) !important;
}

body.single-post .form-submit,
body.single-post .comment-form .form-submit {
  margin-top: 18px !important;
}

body.single-post .form-submit input[type="submit"],
body.single-post .comment-form input[type="submit"],
body.single-post #submit {
  min-height: 48px !important;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #071b3a !important;
  color: #ffffff !important;
  font-family: "CED Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
}

body.single-post .form-submit input[type="submit"]:hover,
body.single-post .comment-form input[type="submit"]:hover,
body.single-post #submit:hover {
  background: #0757a6 !important;
}

/* Mobile refinement */
@media (max-width: 768px) {
  body.single-post .post-navigation,
  body.single-post .navigation.post-navigation {
    padding: 0 16px !important;
  }

  body.single-post .post-navigation .nav-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.single-post .post-navigation .nav-next,
  body.single-post .post-navigation .nav-previous {
    text-align: left !important;
  }

  body.single-post #comments,
  body.single-post .comments-area,
  body.single-post .comment-respond,
  body.single-post #respond {
    margin: 32px 16px !important;
    padding: 22px !important;
  }

  body.single-post #reply-title,
  body.single-post .comment-reply-title,
  body.single-post .comments-title {
    font-size: 24px !important;
  }

  body.single-post .comment-form textarea {
    min-height: 150px !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.18
   Replace broken default footer with clean premium custom footer.
   ========================================================= */

/* Hide Kadence/default footer only when custom footer is active */
body.ced-clean-footer-active #colophon,
body.ced-clean-footer-active .site-footer:not(.ced-clean-footer),
body.ced-clean-footer-active footer#colophon {
  display: none !important;
}

/* Clean custom footer */
.ced-clean-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f7fbff;
  border-top: 1px solid #dce8f2;
  color: #263c56;
  font-family: "CED Inter", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ced-clean-footer__inner {
  max-width: 1220px;
  min-height: 74px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ced-clean-footer__copy {
  color: #263c56;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  white-space: nowrap;
}

.ced-clean-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
}

.ced-clean-footer__nav a {
  color: #0757a6;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  text-decoration: none;
}

.ced-clean-footer__nav a:hover,
.ced-clean-footer__nav a:focus {
  color: #071b3a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .ced-clean-footer__inner {
    min-height: 0;
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
  }

  .ced-clean-footer__copy {
    white-space: normal;
    font-size: 13.5px;
  }

  .ced-clean-footer__nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .ced-clean-footer__nav a {
    font-size: 13.5px;
  }
}

/* =========================================================
   CED Site Template Polish v1.19
   Mobile/header category-menu icon visibility fix.
   Keeps footer and post styling unchanged.
   ========================================================= */

/* Force Kadence mobile/header menu/category icons to navy on white header */
.site-header,
#masthead,
.site-main-header-wrap,
.site-header-row-container-inner {
  --global-palette1: #071b3a;
  --global-palette2: #0757a6;
}

.site-header button,
#masthead button,
.site-header .menu-toggle-open,
#masthead .menu-toggle-open,
.site-header .mobile-toggle-open,
#masthead .mobile-toggle-open,
.site-header .mobile-toggle-open-container .menu-toggle-open,
#masthead .mobile-toggle-open-container .menu-toggle-open,
.site-header .drawer-toggle,
#masthead .drawer-toggle,
.site-header .menu-toggle,
#masthead .menu-toggle,
.site-header [class*="toggle"],
#masthead [class*="toggle"] {
  color: #071b3a !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* Hamburger / category icon bars */
.site-header .menu-toggle-icon,
#masthead .menu-toggle-icon,
.site-header .menu-toggle-icon span,
#masthead .menu-toggle-icon span,
.site-header .menu-toggle-icon::before,
#masthead .menu-toggle-icon::before,
.site-header .menu-toggle-icon::after,
#masthead .menu-toggle-icon::after,
.site-header .mobile-menu-toggle-icon,
#masthead .mobile-menu-toggle-icon,
.site-header .mobile-menu-toggle-icon span,
#masthead .mobile-menu-toggle-icon span,
.site-header .mobile-menu-toggle-icon::before,
#masthead .mobile-menu-toggle-icon::before,
.site-header .mobile-menu-toggle-icon::after,
#masthead .mobile-menu-toggle-icon::after {
  color: #071b3a !important;
  background-color: #071b3a !important;
  border-color: #071b3a !important;
}

/* SVG icons in header toggles/dropdowns */
.site-header .menu-toggle-open svg,
#masthead .menu-toggle-open svg,
.site-header .mobile-toggle-open svg,
#masthead .mobile-toggle-open svg,
.site-header .drawer-toggle svg,
#masthead .drawer-toggle svg,
.site-header .dropdown-nav-toggle svg,
#masthead .dropdown-nav-toggle svg,
.site-header .kadence-svg-iconset svg,
#masthead .kadence-svg-iconset svg,
.site-header .header-navigation svg,
#masthead .header-navigation svg {
  color: #071b3a !important;
  fill: #071b3a !important;
  stroke: #071b3a !important;
}

/* SVG paths sometimes carry their own white fill/stroke */
.site-header .menu-toggle-open svg *,
#masthead .menu-toggle-open svg *,
.site-header .mobile-toggle-open svg *,
#masthead .mobile-toggle-open svg *,
.site-header .drawer-toggle svg *,
#masthead .drawer-toggle svg *,
.site-header .dropdown-nav-toggle svg *,
#masthead .dropdown-nav-toggle svg *,
.site-header .header-navigation svg *,
#masthead .header-navigation svg * {
  color: #071b3a !important;
  stroke: #071b3a !important;
}

/* Only apply fill when the SVG element is not explicitly none */
.site-header .menu-toggle-open svg path,
#masthead .menu-toggle-open svg path,
.site-header .mobile-toggle-open svg path,
#masthead .mobile-toggle-open svg path,
.site-header .drawer-toggle svg path,
#masthead .drawer-toggle svg path,
.site-header .dropdown-nav-toggle svg path,
#masthead .dropdown-nav-toggle svg path,
.site-header .header-navigation svg path,
#masthead .header-navigation svg path {
  fill: #071b3a !important;
}

/* Mobile drawer/menu icon labels */
.site-header .mobile-toggle-label,
#masthead .mobile-toggle-label,
.site-header .menu-toggle-open .menu-toggle-label,
#masthead .menu-toggle-open .menu-toggle-label {
  color: #071b3a !important;
  font-family: "CED Inter", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 750 !important;
}

/* Hover/focus state */
.site-header .menu-toggle-open:hover,
#masthead .menu-toggle-open:hover,
.site-header .mobile-toggle-open:hover,
#masthead .mobile-toggle-open:hover,
.site-header .drawer-toggle:hover,
#masthead .drawer-toggle:hover {
  color: #0757a6 !important;
}

.site-header .menu-toggle-open:hover svg,
#masthead .menu-toggle-open:hover svg,
.site-header .mobile-toggle-open:hover svg,
#masthead .mobile-toggle-open:hover svg,
.site-header .drawer-toggle:hover svg,
#masthead .drawer-toggle:hover svg {
  fill: #0757a6 !important;
  stroke: #0757a6 !important;
}

/* Safety for transparent/white icons on mobile header */
@media (max-width: 1024px) {
  .site-header .menu-toggle-open,
  #masthead .menu-toggle-open,
  .site-header .mobile-toggle-open,
  #masthead .mobile-toggle-open,
  .site-header .mobile-toggle-open-container .menu-toggle-open,
  #masthead .mobile-toggle-open-container .menu-toggle-open {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #071b3a !important;
  }

  .site-header .menu-toggle-open svg,
  #masthead .menu-toggle-open svg,
  .site-header .mobile-toggle-open svg,
  #masthead .mobile-toggle-open svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #071b3a !important;
    fill: #071b3a !important;
    stroke: #071b3a !important;
  }
}

/* =========================================================
   CED Site Template Polish v1.20
   Remove old footer fully and force visible mobile menu icon.
   ========================================================= */

/* HARD REMOVE OLD THEME FOOTER.
   Our custom footer uses .ced-clean-footer, so hide every other footer wrapper. */
body.ced-clean-footer-active footer:not(.ced-clean-footer),
body.ced-clean-footer-active #colophon,
body.ced-clean-footer-active .site-footer:not(.ced-clean-footer),
body.ced-clean-footer-active .site-footer-wrap,
body.ced-clean-footer-active .site-footer-row-container,
body.ced-clean-footer-active .site-footer-row-container-inner,
body.ced-clean-footer-active .site-footer-row,
body.ced-clean-footer-active .site-footer-section,
body.ced-clean-footer-active .site-footer-top-section,
body.ced-clean-footer-active .site-footer-middle-section,
body.ced-clean-footer-active .site-footer-bottom-section,
body.ced-clean-footer-active .footer-widget-area,
body.ced-clean-footer-active .footer-navigation,
body.ced-clean-footer-active .footer-html {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Restore our clean footer if any broad selector above touches descendants accidentally */
body.ced-clean-footer-active .ced-clean-footer,
body.ced-clean-footer-active .ced-clean-footer * {
  visibility: visible !important;
  max-height: none !important;
}

body.ced-clean-footer-active .ced-clean-footer {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f7fbff !important;
  border-top: 1px solid #dce8f2 !important;
}

body.ced-clean-footer-active .ced-clean-footer__inner {
  display: flex !important;
  height: auto !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
}

body.ced-clean-footer-active .ced-clean-footer__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px 24px !important;
}

/* FORCE MOBILE HEADER MENU/HAMBURGER ICON.
   This draws a fresh navy hamburger with CSS, so it does not matter if the theme SVG is white. */
@media (max-width: 1024px) {
  .site-header .menu-toggle-open,
  #masthead .menu-toggle-open,
  .site-header .mobile-toggle-open,
  #masthead .mobile-toggle-open,
  .site-header .mobile-toggle-open-container .menu-toggle-open,
  #masthead .mobile-toggle-open-container .menu-toggle-open,
  .site-header button.menu-toggle,
  #masthead button.menu-toggle,
  .site-header .drawer-toggle,
  #masthead .drawer-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    color: #071b3a !important;
    background: transparent !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  .site-header .menu-toggle-open::before,
  #masthead .menu-toggle-open::before,
  .site-header .mobile-toggle-open::before,
  #masthead .mobile-toggle-open::before,
  .site-header .mobile-toggle-open-container .menu-toggle-open::before,
  #masthead .mobile-toggle-open-container .menu-toggle-open::before,
  .site-header button.menu-toggle::before,
  #masthead button.menu-toggle::before,
  .site-header .drawer-toggle::before,
  #masthead .drawer-toggle::before {
    content: "" !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #071b3a !important;
    border-radius: 999px !important;
    box-shadow: 0 7px 0 #071b3a, 0 14px 0 #071b3a !important;
    position: absolute !important;
    left: 50% !important;
    top: 13px !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide the white/invisible theme icon so only the drawn icon shows */
  .site-header .menu-toggle-open svg,
  #masthead .menu-toggle-open svg,
  .site-header .mobile-toggle-open svg,
  #masthead .mobile-toggle-open svg,
  .site-header .mobile-toggle-open-container .menu-toggle-open svg,
  #masthead .mobile-toggle-open-container .menu-toggle-open svg,
  .site-header button.menu-toggle svg,
  #masthead button.menu-toggle svg,
  .site-header .drawer-toggle svg,
  #masthead .drawer-toggle svg,
  .site-header .menu-toggle-icon,
  #masthead .menu-toggle-icon,
  .site-header .mobile-menu-toggle-icon,
  #masthead .mobile-menu-toggle-icon {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* If Kadence uses an icon font instead of SVG */
  .site-header .menu-toggle-open i,
  #masthead .menu-toggle-open i,
  .site-header .mobile-toggle-open i,
  #masthead .mobile-toggle-open i,
  .site-header button.menu-toggle i,
  #masthead button.menu-toggle i {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (max-width: 768px) {
  body.ced-clean-footer-active .ced-clean-footer__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 22px 18px !important;
    gap: 14px !important;
  }

  body.ced-clean-footer-active .ced-clean-footer__nav {
    justify-content: flex-start !important;
    gap: 10px 16px !important;
  }
}
