/*
Theme Name: CHI Knowledge Base
Theme URI: https://kb.chi-llc.com/
Description: A Twenty Twenty-Five child theme providing a branded BasePress knowledge-base homepage.
Author: CHI, LLC
Template: twentytwentyfive
Version: 2.3.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: chi-kb
*/

:root {
  --chi-navy: #071f4f;
  --chi-blue: #175fd3;
  --chi-blue-dark: #0d48ad;
  --chi-card: #eef5ff;
  --chi-card-light: #f9fbff;
  --chi-border: #d4e3f5;
  --chi-text: #11213d;
  --chi-muted: #52647d;
  --chi-focus: #8fc4ff;
}

html, body { margin: 0; }
body.home { background: #fff; }
body.home .wp-site-blocks { padding: 0; }

.chi-kb-home, .chi-kb-home * { box-sizing: border-box; }
.chi-kb-home {
  margin: 0;
  color: var(--chi-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.chi-kb-home a { text-decoration: none; }

.chi-kb-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 30px 24px 82px;
  color: #fff;
  background:
    radial-gradient(circle at 11% 14%, rgba(82, 188, 232, .28), transparent 25%),
    radial-gradient(circle at 88% 20%, rgba(54, 118, 230, .35), transparent 29%),
    linear-gradient(126deg, #06183f 0%, #082b69 55%, #10529f 100%);
}
.chi-kb-hero.has-custom-background {
  background-image: linear-gradient(rgba(4, 25, 63, .72), rgba(5, 44, 105, .72)), var(--chi-hero-image);
  background-position: center;
  background-size: cover;
}

.chi-kb-hero::before,
.chi-kb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chi-kb-hero::before {
  opacity: .17;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(127, 199, 255, .38) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(127, 199, 255, .25) 50%, transparent 51%);
  background-size: 82px 82px;
  transform: perspective(520px) rotateX(61deg) scale(1.75) translateY(26%);
  transform-origin: center bottom;
}
.chi-kb-hero::after {
  background: linear-gradient(to bottom, transparent 68%, rgba(2, 15, 43, .19));
}
.chi-kb-brand,
.chi-kb-hero-inner { position: relative; z-index: 1; }
.chi-kb-brand { max-width: 1240px; margin: 0 auto; }
.chi-kb-logo {
  display: block;
  width: 204px;
  height: auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .16));
}
.chi-kb-hero-inner { max-width: 930px; margin: 66px auto 0; text-align: center; }
.chi-kb-title {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 800;
  text-wrap: balance;
}
.chi-kb-subtitle {
  margin: 18px 0 32px;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.chi-kb-search {
  display: flex;
  max-width: 850px;
  min-height: 68px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .98);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chi-kb-search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .32), 0 0 0 4px rgba(143, 196, 255, .28);
}
.chi-kb-search-label { display: flex; align-items: center; flex: 1; margin: 0; }
.chi-kb-search-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  margin-left: 24px;
  color: #5a6f8b;
  flex: 0 0 auto;
}
.chi-kb-search-icon svg { width: 100%; height: 100%; }
.chi-kb-search input[type="search"] {
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #202a3a;
  background: transparent;
  font: inherit;
  font-size: 18px;
}
.chi-kb-search input[type="search"]::placeholder { color: #77869b; opacity: 1; }
.chi-kb-search button {
  min-width: 128px;
  margin: 7px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(180deg, #1c68e1 0%, var(--chi-blue) 100%);
  box-shadow: 0 5px 14px rgba(19, 83, 190, .25);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.chi-kb-search button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(19, 83, 190, .32); }
.chi-kb-search button:hover,
.chi-kb-search button:focus-visible { background: var(--chi-blue-dark); }
.chi-kb-search button:focus-visible { outline: 3px solid var(--chi-focus); outline-offset: 2px; }

.chi-kb-content { padding: 70px 24px 84px; background: #fff; }
.chi-kb-container { max-width: 1160px; margin: 0 auto; }
.chi-kb-section-heading { display: flex; align-items: center; gap: 30px; margin-bottom: 36px; }
.chi-kb-section-heading::before,
.chi-kb-section-heading::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, #c8dcf7); }
.chi-kb-section-heading::after { background: linear-gradient(90deg, #c8dcf7, transparent); }
.chi-kb-section-title {
  margin: 0;
  color: var(--chi-text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: center;
  white-space: nowrap;
}

.chi-kb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.chi-kb-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 352px;
  padding: 36px 30px 30px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--chi-border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--chi-card-light) 0%, var(--chi-card) 100%);
  box-shadow: 0 10px 28px rgba(26, 70, 130, .10);
  color: var(--chi-text);
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.chi-kb-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2e78e6, #5fb0ed);
  opacity: .9;
}
.chi-kb-card:hover,
.chi-kb-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(26, 70, 130, .17);
  border-color: #b3cfea;
  outline: none;
}
.chi-kb-card:focus-visible { box-shadow: 0 20px 44px rgba(26, 70, 130, .17), 0 0 0 4px rgba(143, 196, 255, .48); }
.chi-kb-card-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 23px;
  border: 1px solid #cbdfff;
  border-radius: 50%;
  color: #0756c9;
  background: linear-gradient(145deg, #eaf2ff, #d8e8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 18px rgba(32, 100, 190, .10);
  transition: transform .22s ease;
}
.chi-kb-card:hover .chi-kb-card-icon,
.chi-kb-card:focus-visible .chi-kb-card-icon { transform: scale(1.04); }
.chi-kb-card-icon svg { width: 47px; height: 47px; }
.chi-kb-card-title { display: block; margin: 0 0 12px; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.chi-kb-count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid #cbdfff;
  border-radius: 999px;
  background: #e1edff;
  color: #1554ad;
  font-size: 14px;
  font-weight: 750;
}
.chi-kb-card-description { display: block; margin: 0; color: var(--chi-muted); font-size: 16px; line-height: 1.65; }
.chi-kb-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  color: #0756c9;
  font-weight: 800;
}
.chi-kb-card-link::after { content: "→"; transition: transform .2s ease; }
.chi-kb-card:hover .chi-kb-card-link::after,
.chi-kb-card:focus-visible .chi-kb-card-link::after { transform: translateX(4px); }

.chi-kb-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 60px;
  padding: 40px 46px;
  border: 1px solid #d5e8fb;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef7ff 0%, #e5f1ff 100%);
  box-shadow: 0 10px 28px rgba(26, 70, 130, .08);
}
.chi-kb-help-block { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.chi-kb-help-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #316fc6;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 14px rgba(35, 89, 157, .09);
}
.chi-kb-help-icon svg { width: 31px; height: 31px; }
.chi-kb-help-title { margin: 0 0 7px; font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
.chi-kb-help-text { margin: 0; color: var(--chi-muted); line-height: 1.58; }
.chi-kb-email { color: #0756c9; font-weight: 800; }
.chi-kb-email:hover,
.chi-kb-email:focus-visible { text-decoration: underline; }
.chi-kb-email:focus-visible { outline: 3px solid var(--chi-focus); outline-offset: 3px; border-radius: 2px; }
.chi-kb-hours { margin-top: 7px; font-size: 14px; }
.chi-kb-footer { padding: 26px 24px; color: rgba(255, 255, 255, .88); background: #061a42; text-align: center; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .chi-kb-search,
  .chi-kb-search button,
  .chi-kb-card,
  .chi-kb-card-icon,
  .chi-kb-card-link::after { transition: none; }
}

@media (max-width: 850px) {
  .chi-kb-cards { grid-template-columns: 1fr; }
  .chi-kb-card { min-height: 300px; }
  .chi-kb-help { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .chi-kb-hero { min-height: 460px; padding: 24px 18px 58px; }
  .chi-kb-logo { width: 164px; }
  .chi-kb-hero-inner { margin-top: 70px; }
  .chi-kb-search { min-height: 60px; border-radius: 13px; }
  .chi-kb-search input[type="search"] { min-height: 60px; font-size: 16px; }
  .chi-kb-search button { min-width: 92px; padding: 0 13px; }
  .chi-kb-search-icon { width: 24px; height: 24px; margin-left: 16px; }
  .chi-kb-content { padding: 52px 18px 62px; }
  .chi-kb-section-heading { gap: 14px; }
  .chi-kb-section-title { white-space: normal; }
  .chi-kb-card { padding: 32px 25px 28px; }
  .chi-kb-help { padding: 32px 25px; }
}

@media (max-width: 430px) {
  .chi-kb-search button { min-width: 78px; margin: 6px; padding: 0 10px; font-size: 14px; }
  .chi-kb-search input[type="search"] { padding-right: 8px; }
  .chi-kb-help-block { grid-template-columns: 44px 1fr; gap: 14px; }
  .chi-kb-help-icon { width: 42px; height: 42px; }
}


/* Knowledge-base article navigation */
.chi-kb-article-nav,
.chi-kb-article-cta,
.chi-kb-last-updated {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chi-kb-article-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
  padding: 14px 16px;
  border: 1px solid var(--chi-border);
  border-radius: 14px;
  background: rgba(247, 250, 255, .96);
  box-shadow: 0 8px 24px rgba(7, 31, 79, .08);
  backdrop-filter: blur(10px);
}

.chi-kb-article-home-link,
.chi-kb-article-back-button,
.chi-kb-primary-button,
.chi-kb-secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 750;
}
.chi-kb-article-home-link { color: var(--chi-blue-dark); }
.chi-kb-article-home-link svg,
.chi-kb-article-back-button svg,
.chi-kb-primary-button svg,
.chi-kb-secondary-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.chi-kb-article-back-button,
.chi-kb-primary-button {
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--chi-blue);
}
.chi-kb-article-back-button:hover,
.chi-kb-primary-button:hover { color: #fff; background: var(--chi-blue-dark); }
.chi-kb-article-content {
  width: 100%;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  color: #0d1b2f;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 450;
}
.chi-kb-article-content p { margin: 0 0 1.5em; }
.chi-kb-article-content h1,
.chi-kb-article-content h2,
.chi-kb-article-content h3,
.chi-kb-article-content h4 {
  color: var(--chi-text);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 800;
}
.chi-kb-article-content h2 { margin: 1.9em 0 .65em; font-size: clamp(30px, 4vw, 38px); }
.chi-kb-article-content h3 { margin: 1.65em 0 .6em; font-size: clamp(25px, 3vw, 31px); }
.chi-kb-article-content h4 { margin: 1.5em 0 .55em; font-size: 23px; }
.chi-kb-article-content ul,
.chi-kb-article-content ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.chi-kb-article-content li { margin: .58em 0; }
.chi-kb-article-content a { color: var(--chi-blue-dark); font-weight: 650; text-decoration-thickness: .09em; text-underline-offset: .18em; }
.chi-kb-article-content img { max-width: 100%; height: auto; }
.chi-kb-article-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--chi-blue);
  background: #f4f8ff;
}
.chi-kb-article-content pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--chi-border);
  border-radius: 12px;
  background: #f6f8fb;
  font-size: 16px;
  line-height: 1.6;
}
.chi-kb-article-content code { font-size: .92em; }
.chi-kb-article-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 17px;
}
.chi-kb-article-content th,
.chi-kb-article-content td { padding: 12px 14px; border: 1px solid var(--chi-border); text-align: left; }
.chi-kb-article-content th { background: #edf4ff; }
.chi-kb-article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin: 48px 0 14px;
  padding: 30px;
  border: 1px solid var(--chi-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef7ff 0%, #e6f1ff 100%);
}
.chi-kb-article-cta h2 { margin: 0 0 8px; font-size: 27px; line-height: 1.25; }
.chi-kb-article-cta p { margin: 0; color: var(--chi-muted); font-size: 17px; line-height: 1.6; }
.chi-kb-article-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chi-kb-secondary-button {
  padding: 10px 15px;
  border: 1px solid #b9d1ee;
  border-radius: 10px;
  color: var(--chi-blue-dark);
  background: #fff;
}
.chi-kb-secondary-button:hover { background: #f6f9ff; }
.chi-kb-last-updated { margin: 0 0 30px; color: var(--chi-muted); font-size: 14px; }
.chi-kb-floating-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chi-kb-floating-home,
.chi-kb-back-to-top {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0b4fb7;
  box-shadow: 0 8px 24px rgba(7, 31, 79, .25);
}
.chi-kb-back-to-top {
  display: grid;
  place-items: center;
  width: 48px;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.chi-kb-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chi-kb-back-to-top svg { width: 23px; height: 23px; }
.chi-kb-back-to-top:hover { color: #fff; background: #083f91; }
.chi-kb-article-home-link:focus-visible,
.chi-kb-article-back-button:focus-visible,
.chi-kb-primary-button:focus-visible,
.chi-kb-secondary-button:focus-visible,
.chi-kb-back-to-top:focus-visible { outline: 3px solid var(--chi-focus); outline-offset: 3px; }

@media (max-width: 700px) {
  .chi-kb-article-nav { top: 6px; align-items: stretch; flex-direction: column; }
  .chi-kb-article-home-link { padding: 3px 2px; }
  .chi-kb-article-back-button { justify-content: center; }
  .chi-kb-article-cta { grid-template-columns: 1fr; padding: 24px; }
  .chi-kb-article-cta-actions { justify-content: flex-start; }
  .chi-kb-floating-controls { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .chi-kb-back-to-top { transition: none; }
}


/* BasePress and Twenty Twenty-Five reading-width refinements. */
body.single .wp-block-post-content,
body.single .entry-content,
body.single .bpress-post-content,
body.single .bpress-article-content {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 700px) {
  .chi-kb-article-content { font-size: 18px; line-height: 1.78; }
  .chi-kb-article-content table { font-size: 16px; }
}


/* Final inner-page cleanup: remove the parent title/header and duplicated breadcrumbs. */
.chi-kb-inner-page .wp-site-blocks > header,
.chi-kb-inner-page header.wp-block-template-part,
.chi-kb-inner-page [class*="site-header"],
.chi-kb-inner-page [class*="site-branding"],
.chi-kb-inner-page [class*="site-title"],
.chi-kb-inner-page [aria-label*="breadcrumb" i],
.chi-kb-inner-page nav[class*="breadcrumb"],
.chi-kb-inner-page div[class*="breadcrumb"],
.chi-kb-inner-page p[class*="breadcrumb"] {
  display: none !important;
}

.chi-kb-article-nav-single {
  justify-content: flex-end;
}

/* Branded header and BasePress inner-page cleanup. */
.chi-kb-inner-page header.wp-block-template-part,
.chi-kb-inner-page .wp-site-blocks > header,
.chi-kb-inner-page .wp-block-site-title,
.chi-kb-inner-page .wp-block-site-logo,
.chi-kb-inner-page .site-title,
.chi-kb-inner-page .site-branding {
  display: none !important;
}

.chi-kb-inner-header {
  box-sizing: border-box;
  width: min(100% - 32px, 1180px);
  margin: 22px auto 14px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chi-kb-inner-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.chi-kb-inner-logo {
  display: block;
  width: 238px;
  max-width: 72vw;
  height: auto;
}
.chi-kb-listing-home-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #175fd3;
  box-shadow: 0 7px 18px rgba(13, 72, 173, .2);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.chi-kb-listing-home-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}
.chi-kb-listing-home-button:hover {
  color: #fff;
  background: #0d48ad;
}
.chi-kb-listing-home-button:focus-visible,
.chi-kb-inner-logo-link:focus-visible {
  outline: 3px solid var(--chi-focus, #75a7ff);
  outline-offset: 3px;
}

/* Remove duplicate BasePress breadcrumbs. */
.chi-kb-inner-page .bpress-breadcrumb,
.chi-kb-inner-page .bpress-breadcrumbs,
.chi-kb-inner-page .basepress-breadcrumb,
.chi-kb-inner-page .basepress-breadcrumbs,
.chi-kb-inner-page [class*="bpress"][class*="breadcrumb"],
.chi-kb-inner-page [class*="basepress"][class*="breadcrumb"] {
  display: none !important;
}

/* Keep the search input and submit button together in one horizontal bar. */
.chi-kb-inner-page .bpress-search,
.chi-kb-inner-page .basepress-search,
.chi-kb-inner-page form[role="search"],
.chi-kb-inner-page form.search-form,
.chi-kb-inner-page form[class*="search"],
.chi-kb-inner-page form.chi-kb-normalized-search {
  box-sizing: border-box !important;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 0 34px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.chi-kb-inner-page form[role="search"] input[type="search"],
.chi-kb-inner-page form.search-form input[type="search"],
.chi-kb-inner-page form[class*="search"] input[type="search"],
.chi-kb-inner-page form.chi-kb-normalized-search input[type="search"],
.chi-kb-inner-page form[role="search"] input[type="text"],
.chi-kb-inner-page form.search-form input[type="text"],
.chi-kb-inner-page form[class*="search"] input[type="text"] {
  box-sizing: border-box !important;
  position: static !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d7dde7 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  font-size: 16px !important;
}
.chi-kb-inner-page form[role="search"] button,
.chi-kb-inner-page form.search-form button,
.chi-kb-inner-page form[class*="search"] button,
.chi-kb-inner-page form[role="search"] input[type="submit"],
.chi-kb-inner-page form.search-form input[type="submit"],
.chi-kb-inner-page form[class*="search"] input[type="submit"],
.chi-kb-inner-page form.chi-kb-normalized-search button,
.chi-kb-inner-page form.chi-kb-normalized-search input[type="submit"] {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 116px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: #175fd3 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 54px !important;
  white-space: nowrap !important;
}
.chi-kb-inner-page form[role="search"] button:hover,
.chi-kb-inner-page form.search-form button:hover,
.chi-kb-inner-page form[class*="search"] button:hover,
.chi-kb-inner-page form[role="search"] input[type="submit"]:hover,
.chi-kb-inner-page form.search-form input[type="submit"]:hover,
.chi-kb-inner-page form[class*="search"] input[type="submit"]:hover {
  background: #0d48ad !important;
}
.chi-kb-inner-page .bpress-search + h1,
.chi-kb-inner-page .basepress-search + h1,
.chi-kb-inner-page form[role="search"] + h1,
.chi-kb-inner-page form.search-form + h1,
.chi-kb-inner-page .bpress-section-title,
.chi-kb-inner-page .bpress-page-title,
.chi-kb-inner-page main h1 {
  position: static !important;
  clear: both !important;
  transform: none !important;
  margin-top: 30px !important;
}

@media (max-width: 700px) {
  .chi-kb-inner-header {
    width: min(100% - 24px, 1180px);
    margin-top: 14px;
    gap: 14px;
  }
  .chi-kb-inner-logo { width: 205px; max-width: 80vw; }
  .chi-kb-listing-home-button { min-height: 48px; padding: 12px 18px; font-size: 17px; }
  .chi-kb-inner-page form[role="search"],
  .chi-kb-inner-page form.search-form,
  .chi-kb-inner-page form[class*="search"] { min-height: 50px !important; }
  .chi-kb-inner-page form[role="search"] input[type="search"],
  .chi-kb-inner-page form.search-form input[type="search"],
  .chi-kb-inner-page form[class*="search"] input[type="search"],
  .chi-kb-inner-page form[role="search"] input[type="text"],
  .chi-kb-inner-page form.search-form input[type="text"],
  .chi-kb-inner-page form[class*="search"] input[type="text"],
  .chi-kb-inner-page form[role="search"] button,
  .chi-kb-inner-page form.search-form button,
  .chi-kb-inner-page form[class*="search"] button,
  .chi-kb-inner-page form[role="search"] input[type="submit"],
  .chi-kb-inner-page form.search-form input[type="submit"],
  .chi-kb-inner-page form[class*="search"] input[type="submit"] {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }
  .chi-kb-inner-page form[role="search"] button,
  .chi-kb-inner-page form.search-form button,
  .chi-kb-inner-page form[class*="search"] button,
  .chi-kb-inner-page form[role="search"] input[type="submit"],
  .chi-kb-inner-page form.search-form input[type="submit"],
  .chi-kb-inner-page form[class*="search"] input[type="submit"] {
    min-width: 94px !important;
    padding: 0 16px !important;
    line-height: 50px !important;
  }
}


/* 1.6 final cleanup: parent theme chrome must never appear above the CHI header. */
body.chi-kb-inner-page > header,
body.chi-kb-inner-page > .wp-block-template-part,
body.chi-kb-inner-page .wp-site-blocks > header:first-child,
body.chi-kb-inner-page .wp-site-blocks > .wp-block-template-part:first-child,
body.chi-kb-inner-page .wp-block-site-title,
body.chi-kb-inner-page .wp-block-site-logo,
body.chi-kb-inner-page .wp-block-navigation,
body.chi-kb-inner-page .site-title,
body.chi-kb-inner-page .site-branding,
body.chi-kb-inner-page [data-chi-kb-remove="true"] {
  display: none !important;
}


/* 1.7 approval cleanup: simple category return link and focused article pages. */
.chi-kb-article-nav-single {
  position: static !important;
  top: auto !important;
  display: block !important;
  max-width: 900px;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.chi-kb-article-back-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  min-height: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #175fd3 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
  text-decoration: none;
}
.chi-kb-article-back-button:hover { color: #0d48ad !important; text-decoration: underline; }
.chi-kb-article-back-button svg { width: 20px; height: 20px; }

/* Hide any breadcrumb implementation BasePress or the parent theme may emit. */
body.chi-kb-inner-page [class*="breadcrumb" i],
body.chi-kb-inner-page [id*="breadcrumb" i],
body.chi-kb-inner-page [aria-label*="breadcrumb" i],
body.chi-kb-inner-page .rank-math-breadcrumb,
body.chi-kb-inner-page .yoast-breadcrumb,
body.chi-kb-inner-page .woocommerce-breadcrumb {
  display: none !important;
}

/* Never repeat the homepage category browser inside an article. */
body.single.chi-kb-inner-page .chi-kb-content,
body.single.chi-kb-inner-page .chi-kb-section-heading,
body.single.chi-kb-inner-page .chi-kb-cards {
  display: none !important;
}


/* 2.0 production cleanup: remove the parent theme footer and WordPress credit on KB inner pages. */
body.chi-kb-inner-page > footer,
body.chi-kb-inner-page .wp-site-blocks > footer,
body.chi-kb-inner-page .wp-site-blocks > .wp-block-template-part:last-child,
body.chi-kb-inner-page footer.wp-block-template-part,
body.chi-kb-inner-page .site-footer,
body.chi-kb-inner-page [class*="site-footer"],
body.chi-kb-inner-page [class*="footer-credit"],
body.chi-kb-inner-page [class*="powered-by"] {
  display: none !important;
}


/* 2.1: hide common standalone WordPress credit wrappers on KB inner pages. */
body.chi-kb-inner-page .wp-block-site-info,
body.chi-kb-inner-page .site-info,
body.chi-kb-inner-page .powered-by-wordpress,
body.chi-kb-inner-page a[href*="wordpress.org"] {
  display: none !important;
}


/* Version 2.2 readability update: stronger typography across BasePress article output. */
body.single .chi-kb-article-content,
body.single .entry-content,
body.single .wp-block-post-content,
body.single .bpress-post-content,
body.single .bpress-article-content {
  color: #0d1b2f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 450;
}
body.single .chi-kb-article-content > p,
body.single .entry-content > p,
body.single .wp-block-post-content > p,
body.single .bpress-post-content > p,
body.single .bpress-article-content > p {
  margin-bottom: 1.5em;
}
body.single .chi-kb-article-content h1,
body.single .entry-content h1,
body.single .wp-block-post-content h1,
body.single .bpress-post-content h1,
body.single .bpress-article-content h1,
body.single .chi-kb-article-content h2,
body.single .entry-content h2,
body.single .wp-block-post-content h2,
body.single .bpress-post-content h2,
body.single .bpress-article-content h2,
body.single .chi-kb-article-content h3,
body.single .entry-content h3,
body.single .wp-block-post-content h3,
body.single .bpress-post-content h3,
body.single .bpress-article-content h3 {
  color: #0a1830;
  font-weight: 800;
  line-height: 1.2;
}
body.single main h1,
body.single .entry-title,
body.single .bpress-post-title,
body.single .bpress-article-title {
  color: #0a1830;
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.025em;
}
body.single .chi-kb-article-content strong,
body.single .entry-content strong,
body.single .wp-block-post-content strong,
body.single .bpress-post-content strong,
body.single .bpress-article-content strong {
  font-weight: 800;
}
@media (max-width: 700px) {
  body.single .chi-kb-article-content,
  body.single .entry-content,
  body.single .wp-block-post-content,
  body.single .bpress-post-content,
  body.single .bpress-article-content {
    font-size: 18px;
    line-height: 1.76;
  }
  body.single main h1,
  body.single .entry-title,
  body.single .bpress-post-title,
  body.single .bpress-article-title {
    font-size: clamp(34px, 10vw, 43px);
  }
}
