.cdh-wrap {
  --cdh-ink: #1f2937;
  --cdh-heading: #23303a;
  --cdh-muted: #66727a;
  --cdh-line: #dfe8ec;
  --cdh-soft: #f5f9fa;
  --cdh-brand: #638b9d;
  --cdh-brand-dark: #3f687a;
  --cdh-accent: #c4a35a;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  color: var(--cdh-ink);
  font-family: inherit;
}

.cdh-wrap * { box-sizing: border-box; }
.cdh-wrap a { color: inherit; text-decoration: none; }
.cdh-wrap [hidden] { display: none !important; }

.cdh-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) clamp(22px, 6vw, 72px);
  border: 1px solid var(--cdh-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 14%, rgba(196, 163, 90, .18), transparent 24%),
    linear-gradient(135deg, #eef6f8 0%, #fbfdfd 55%, #f6f1e6 100%);
  text-align: center;
}

.cdh-hero::before,
.cdh-hero::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(99, 139, 157, .14);
  border-radius: 50%;
}

.cdh-hero::before { width: 280px; height: 280px; left: -160px; bottom: -200px; }
.cdh-hero::after { width: 190px; height: 190px; right: -95px; top: -105px; }
.cdh-eyebrow, .cdh-section-heading span { color: var(--cdh-brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cdh-hero h1 { max-width: 780px; margin: 10px auto 14px; color: var(--cdh-heading); font-size: clamp(34px, 6vw, 60px); line-height: 1.03; letter-spacing: -.035em; }
.cdh-hero > p { max-width: 680px; margin: 0 auto; color: var(--cdh-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }

.cdh-search-wrap { position: relative; z-index: 1; width: min(700px, 100%); margin: 30px auto 0; text-align: left; }
.cdh-search-wrap label { display: block; margin: 0 0 7px 3px; color: var(--cdh-heading); font-size: 13px; font-weight: 800; }
.cdh-search-box { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 13px 0 18px; border: 1px solid #cbdde4; border-radius: 15px; background: #fff; box-shadow: 0 12px 30px rgba(35, 48, 58, .08); }
.cdh-search-box:focus-within { border-color: var(--cdh-brand); box-shadow: 0 0 0 4px rgba(99, 139, 157, .14), 0 12px 30px rgba(35, 48, 58, .08); }
.cdh-search-box svg { flex: 0 0 22px; width: 22px; fill: none; stroke: var(--cdh-brand-dark); stroke-linecap: round; stroke-width: 1.8; }
.cdh-search { flex: 1 1 auto; min-width: 0; padding: 16px 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--cdh-heading); font: inherit; font-size: 17px; }
.cdh-search::placeholder { color: #929da3; }
.cdh-clear { flex: 0 0 auto; padding: 8px 11px; cursor: pointer; border: 0; border-radius: 9px; background: var(--cdh-soft); color: var(--cdh-brand-dark); font: inherit; font-size: 12px; font-weight: 800; }

.cdh-popular, .cdh-directory { padding: clamp(42px, 6vw, 68px) 0 0; }
.cdh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cdh-section-heading h2 { margin: 5px 0 0; color: var(--cdh-heading); font-size: clamp(25px, 4vw, 35px); letter-spacing: -.025em; }
.cdh-section-heading > p { max-width: 390px; margin: 0; color: var(--cdh-muted); text-align: right; }

.cdh-popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cdh-popular-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 78px; padding: 15px; border: 1px solid var(--cdh-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(35, 48, 58, .045); transition: border-color .16s, box-shadow .16s, transform .16s; }
.cdh-popular-link:hover { border-color: #b9cfd8; box-shadow: 0 12px 26px rgba(35, 48, 58, .08); transform: translateY(-2px); }
.cdh-popular-number { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: #edf5f7; color: var(--cdh-brand-dark); font-size: 11px; font-weight: 900; }
.cdh-popular-link strong { color: var(--cdh-heading); font-size: 14px; line-height: 1.3; }
.cdh-arrow { color: var(--cdh-brand); font-size: 20px; }

.cdh-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cdh-category { display: flex; min-width: 0; min-height: 100%; flex-direction: column; padding: 23px; border: 1px solid var(--cdh-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(35, 48, 58, .045); }
.cdh-category header { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid #edf2f4; }
.cdh-badge { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #eaf3f6; color: var(--cdh-brand-dark); font-size: 14px; font-weight: 900; letter-spacing: -.02em; }
.cdh-category-crypto .cdh-badge { background: #f7f0df; color: #8d702e; font-size: 22px; }
.cdh-category-savings .cdh-badge { background: #eaf5ef; color: #477c60; }
.cdh-category-mortgage .cdh-badge { background: #f2edfa; color: #705b8c; }
.cdh-category-loans .cdh-badge { background: #faeeee; color: #8f5a5a; }
.cdh-category-personal .cdh-badge { background: #eef1f8; color: #536684; }
.cdh-category h3 { margin: 0; color: var(--cdh-heading); font-size: 19px; line-height: 1.25; }
.cdh-category h3 a:hover { color: var(--cdh-brand-dark); }
.cdh-category header p { margin: 7px 0 0; color: var(--cdh-muted); font-size: 13px; line-height: 1.5; }
.cdh-calculator-list { margin: 13px 0 16px; padding: 0; list-style: none; }
.cdh-calculator-list li { margin: 0; padding: 0; }
.cdh-calculator-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f0f3f5; color: #31414a; font-size: 14px; line-height: 1.35; }
.cdh-calculator-list li:last-child a { border-bottom: 0; }
.cdh-calculator-list a span:last-child { color: #9aabb3; transition: transform .14s; }
.cdh-calculator-list a:hover { color: var(--cdh-brand-dark); }
.cdh-calculator-list a:hover span:last-child { transform: translateX(3px); }
.cdh-coming { margin: 18px 0; padding: 13px; border-radius: 11px; background: var(--cdh-soft); color: var(--cdh-muted); font-size: 13px; line-height: 1.5; }
.cdh-category-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--cdh-brand-dark) !important; font-size: 13px; font-weight: 800; }
.cdh-category-link:hover { text-decoration: underline; }
.cdh-no-results { padding: 35px 20px; border: 1px dashed #cbdde4; border-radius: 16px; background: var(--cdh-soft); color: var(--cdh-muted); text-align: center; }

.cdh-about { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 45px; align-items: center; margin: clamp(46px, 7vw, 78px) 0 18px; padding: clamp(27px, 5vw, 46px); border-radius: 20px; background: var(--cdh-heading); color: #fff; }
.cdh-about .cdh-eyebrow { color: #a9c7d3; }
.cdh-about h2 { margin: 8px 0 0; color: #fff; font-size: clamp(27px, 4vw, 39px); }
.cdh-about p { margin: 0; color: #d5e0e4; font-size: 15px; line-height: 1.7; }

.cdh-wrap a:focus-visible, .cdh-wrap button:focus-visible { outline: 3px solid rgba(99, 139, 157, .34); outline-offset: 3px; }

@media (max-width: 980px) {
  .cdh-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdh-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .cdh-wrap { width: min(100%, calc(100vw - 20px)); }
  .cdh-hero { padding: 40px 18px; border-radius: 17px; }
  .cdh-section-heading { display: block; }
  .cdh-section-heading > p { margin-top: 8px; text-align: left; }
  .cdh-popular-grid, .cdh-category-grid { grid-template-columns: 1fr; }
  .cdh-category { padding: 19px; }
  .cdh-about { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cdh-wrap * { scroll-behavior: auto !important; transition: none !important; }
}

/* Editable Gutenberg homepage pattern. */
.cdh-gb-home {
  --cdh-heading: #23303a;
  --cdh-muted: #66727a;
  --cdh-line: #dfe8ec;
  --cdh-soft: #f5f9fa;
  --cdh-brand: #638b9d;
  --cdh-brand-dark: #3f687a;
  --cdh-accent: #c4a35a;
  color: #1f2937;
}

.cdh-gb-home > * { box-sizing: border-box; }
.cdh-gb-home a { text-decoration: none; }
.cdh-gb-hero { margin-top: 0 !important; padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 54px) 30px; border: 1px solid var(--cdh-line); border-radius: 20px; background: linear-gradient(135deg, #eef6f8 0%, #fbfdfd 62%, #f7f2e8 100%); }
.cdh-gb-eyebrow { margin-bottom: 8px !important; color: var(--cdh-brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.cdh-gb-hero h1 { max-width: 810px; margin: 0 auto 13px !important; color: var(--cdh-heading); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.cdh-gb-intro { max-width: 720px; margin: 0 auto 25px !important; color: var(--cdh-muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.6; }
.cdh-gb-categories { gap: 9px !important; margin-top: 0 !important; }
.cdh-gb-categories .wp-block-button__link { padding: 10px 15px; border: 1px solid #c5d7de !important; border-radius: 999px !important; background: rgba(255,255,255,.82) !important; color: var(--cdh-brand-dark) !important; font-size: 13px; font-weight: 750; box-shadow: none !important; }
.cdh-gb-categories .wp-block-button__link:hover { border-color: var(--cdh-brand) !important; background: #fff !important; transform: translateY(-1px); }

.cdh-gb-ad-slot { display: grid; min-height: 96px; place-items: center; margin-top: 25px !important; overflow: hidden; border: 1px dashed #cbd7dc; border-radius: 13px; background: #fafcfc; }
.cdh-gb-ad-slot p { margin: 0 !important; color: #9aa5aa; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.cdh-gb-ad-middle { margin-top: clamp(34px, 5vw, 56px) !important; }

.cdh-gb-section-heading { align-items: end !important; gap: 20px; margin-top: clamp(38px, 6vw, 64px) !important; margin-bottom: 18px !important; padding-bottom: 11px; border-bottom: 1px solid var(--cdh-line); }
.cdh-gb-section-heading h2 { margin: 0 !important; color: var(--cdh-heading); font-size: clamp(27px, 4vw, 37px); letter-spacing: -.025em; }
.cdh-gb-section-heading p { margin: 0 !important; color: var(--cdh-muted); font-size: 13px; }

.cdh-gb-featured-query { margin-top: 0 !important; }
.cdh-gb-featured-query .wp-block-post-template { gap: 18px; }
.cdh-gb-featured-card { height: 100%; overflow: hidden; border: 1px solid var(--cdh-line); border-radius: 16px; background: #fff; box-shadow: 0 9px 24px rgba(35, 48, 58, .045); }
.cdh-gb-featured-card > *:not(.wp-block-post-featured-image) { margin-right: 19px !important; margin-left: 19px !important; }
.cdh-gb-featured-card .wp-block-post-featured-image { margin: 0 0 16px !important; overflow: hidden; background: #edf2f4; }
.cdh-gb-featured-card .wp-block-post-featured-image img { transition: transform .2s ease; }
.cdh-gb-featured-card:hover .wp-block-post-featured-image img { transform: scale(1.02); }
.cdh-gb-post-category, .cdh-gb-post-meta { color: var(--cdh-brand-dark); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.cdh-gb-featured-card .wp-block-post-title { margin-top: 7px !important; margin-bottom: 8px !important; color: var(--cdh-heading); font-size: clamp(18px, 2vw, 22px) !important; line-height: 1.25; }
.cdh-gb-featured-card .wp-block-post-title a, .cdh-gb-latest-copy .wp-block-post-title a { color: inherit; }
.cdh-gb-featured-card .wp-block-post-excerpt { margin-top: 0 !important; margin-bottom: 19px !important; color: var(--cdh-muted); font-size: 13px; line-height: 1.55; }
.cdh-gb-featured-card .wp-block-post-excerpt__more-link { color: var(--cdh-brand-dark); font-weight: 800; }
.cdh-gb-query-note { padding: 24px; border: 1px dashed #cbd7dc; border-radius: 13px; background: var(--cdh-soft); color: var(--cdh-muted); }

.cdh-gb-latest-query { margin-top: 0 !important; }
.cdh-gb-latest-list { margin: 0; padding: 0; list-style: none; }
.cdh-gb-latest-list > li { display: grid; grid-template-columns: minmax(180px, 255px) minmax(0, 1fr); gap: 23px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--cdh-line); }
.cdh-gb-latest-list > li:first-child { padding-top: 0; }
.cdh-gb-latest-list > li:last-child { border-bottom: 0; }
.cdh-gb-latest-image { width: 100%; margin: 0 !important; overflow: hidden; border-radius: 13px; background: #edf2f4; }
.cdh-gb-latest-copy { margin: 0 !important; }
.cdh-gb-post-meta { gap: 9px !important; margin: 0 0 5px !important; }
.cdh-gb-post-meta > * { margin: 0 !important; }
.cdh-gb-post-meta .wp-block-post-date { color: #89959b; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cdh-gb-latest-copy .wp-block-post-title { margin: 0 0 7px !important; color: var(--cdh-heading); font-size: clamp(19px, 2.5vw, 25px) !important; line-height: 1.23; }
.cdh-gb-latest-copy .wp-block-post-excerpt { margin: 0 !important; color: var(--cdh-muted); font-size: 13px; line-height: 1.55; }
.cdh-gb-latest-copy .wp-block-post-excerpt__more-link { color: var(--cdh-brand-dark); font-weight: 800; }

.cdh-gb-home a:focus-visible { outline: 3px solid rgba(99, 139, 157, .34); outline-offset: 3px; }

@media (max-width: 780px) {
  .cdh-gb-section-heading { display: block !important; }
  .cdh-gb-section-heading p { margin-top: 5px !important; }
  .cdh-gb-featured-query .wp-block-post-template { grid-template-columns: 1fr !important; }
  .cdh-gb-latest-list > li { grid-template-columns: 145px minmax(0, 1fr); gap: 15px; }
  .cdh-gb-latest-copy .wp-block-post-excerpt { display: none; }
}

@media (max-width: 520px) {
  .cdh-gb-hero { padding: 31px 15px 23px; border-radius: 15px; }
  .cdh-gb-categories { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  .cdh-gb-categories .wp-block-button { width: 100%; }
  .cdh-gb-categories .wp-block-button__link { width: 100%; height: 100%; padding: 9px 10px; font-size: 11px; }
  .cdh-gb-ad-slot { min-height: 74px; }
  .cdh-gb-latest-list > li { display: block; }
  .cdh-gb-latest-image { margin-bottom: 12px !important; }
  .cdh-gb-latest-copy .wp-block-post-excerpt { display: block; }
}
