/* CreditPilot design system. Mobile-first. Colors come from the brand palette;
   --accent-text is a darker accent for links and small text (AA on white). */
:root {
  --primary: #142B45; --secondary: #263E57; --accent: #20A39E; --accent-text: #0F7672;
  --bg: #F7F9FC; --surface: #FFFFFF; --text: #263445; --muted: #697586; --muted-strong: #586474;
  --border: #E5EAF0; --success: #24845A; --warning: #D99A31; --danger: #C34B4B;
  --on-dark: #DCE5EE; --radius: 12px; --shadow: 0 1px 2px rgba(20,43,69,.05), 0 6px 18px rgba(20,43,69,.05);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--font); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.22; font-weight: 700; letter-spacing: -.012em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.85rem, 1.45rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.25rem + .8vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.cp-main:focus { outline: none; }
.cp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.cp-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.cp-skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.cp-skip:focus { top: .5rem; color: #fff; }
.cp-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .cp-wrap { padding-inline: 1.5rem; } }
.cp-icon { width: 1.5rem; height: 1.5rem; flex: none; }
p:empty { display: none; }

/* Buttons */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.15rem; border: 2px solid transparent; border-radius: 10px; font: 600 1rem/1.25 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cp-btn--lg { padding: .75rem 1.5rem; }
.cp-btn--primary { background: var(--accent); color: var(--primary); }
.cp-btn--primary:hover { background: #2BB6B0; color: var(--primary); }
.cp-btn--ghost { background: var(--surface); border-color: var(--secondary); color: var(--primary); }
.cp-btn--ghost:hover { background: var(--primary); color: #fff; }
.cp-btn--onDark { background: transparent; border-color: #fff; color: #fff; }
.cp-btn--onDark:hover { background: #fff; color: var(--primary); }
.cp-linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }

/* Header */
.cp-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.cp-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; min-height: 68px; padding-block: .6rem; }
.cp-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--primary); text-decoration: none; }
.cp-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.cp-logo__name { font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.cp-logo__tag { font-size: .72rem; color: var(--muted); }
.cp-brand img { max-height: 44px; width: auto; display: block; }
.cp-nav-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--primary); font: 600 .95rem var(--font); cursor: pointer; }
.cp-nav { display: none; width: 100%; padding-block: .5rem; }
.cp-nav.is-open { display: block; }
.cp-nav__list { list-style: none; margin: 0; padding: 0; }
.cp-nav__list > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); }
.cp-nav__list a { display: flex; align-items: center; flex: 1; min-height: 46px; padding: .4rem .25rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.cp-nav__list a:hover { color: var(--accent-text); }
.cp-nav__list .current-menu-item > a, .cp-nav__list .current-menu-ancestor > a { color: var(--accent-text); }
.cp-nav__sub-toggle { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.cp-nav__sub-toggle span { width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translate(-2px,-2px); transition: transform .15s; }
.cp-nav__sub-toggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-2px,-2px); }
.cp-nav .sub-menu { display: none; list-style: none; width: 100%; margin: 0; padding: 0 0 .5rem .75rem; }
.cp-nav .sub-menu a { font-weight: 500; min-height: 44px; }
.is-sub-open > .sub-menu { display: block; }
.cp-search-toggle { border-top: 1px solid var(--border); padding-top: .5rem; }
.cp-search-toggle summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--primary); font-weight: 600; cursor: pointer; list-style: none; }
.cp-search-toggle summary::-webkit-details-marker { display: none; }
.cp-search-toggle__panel { padding-block: .5rem; }
.cp-searchform { display: flex; gap: .5rem; max-width: 560px; }
.cp-searchform input { flex: 1; min-width: 0; }
@media (min-width: 1100px) {
  .cp-nav-toggle { display: none; }
  .cp-header__inner { flex-wrap: nowrap; }
  .cp-nav, .cp-nav.is-open { display: flex; align-items: center; justify-content: flex-end; width: auto; padding: 0; gap: .25rem; }
  .cp-nav__list { display: flex; align-items: center; gap: .1rem; }
  .cp-nav__list > li { border: 0; flex-wrap: nowrap; }
  .cp-nav__list > li > a { padding: .4rem .55rem; font-size: .97rem; white-space: nowrap; }
  .cp-nav__sub-toggle { width: 24px; height: 44px; margin-left: -.3rem; }
  .cp-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; padding: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
  .cp-nav .sub-menu a { padding: .3rem .6rem; border-radius: 8px; }
  .cp-nav .sub-menu a:hover { background: var(--bg); }
  .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .cp-search-toggle { position: relative; border: 0; padding: 0; }
  .cp-search-toggle summary { justify-content: center; width: 44px; border-radius: 10px; }
  .cp-search-toggle summary:hover { background: var(--bg); }
  .cp-search-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
  .cp-search-toggle__panel { position: absolute; right: 0; top: calc(100% + .5rem); width: 400px; padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
}

/* Forms */
input[type=text], input[type=email], input[type=search], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid #8A96A5; border-radius: 10px; background: var(--surface); color: var(--text); font: inherit;
}
input::placeholder { color: var(--muted); opacity: 1; }
.cp-field { margin-bottom: 1rem; }
.cp-field label { display: block; font-weight: 600; color: var(--primary); margin-bottom: .3rem; }
.cp-field__help { color: var(--muted); font-size: .875rem; margin: .3rem 0 0; }
.cp-field__error { color: #A83A3A; font-size: .9rem; font-weight: 600; margin: .3rem 0 0; }
input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.cp-form { max-width: 640px; }
.cp-form__privacy { font-size: .9rem; color: var(--muted-strong); }
.cp-notice { padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--border); margin: 0 0 1.25rem; background: var(--surface); }
.cp-notice ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.cp-notice p { margin: 0; }
.cp-notice--success { background: #E9F6F0; border-color: #A6D8C1; }
.cp-notice--danger { background: #FBEDED; border-color: #EBBABA; }
.cp-notice--warning { background: #FDF6E9; border-color: #F1DEB7; }

/* Sections */
.cp-main { min-height: 50vh; }
.cp-section { padding-block: 2.5rem; }
@media (min-width: 768px) { .cp-section { padding-block: 3.5rem; } }
.cp-section--surface { background: var(--surface); }
.cp-section--dark { background: var(--primary); color: var(--on-dark); }
.cp-section--dark h2 { color: #fff; }
.cp-section__title { margin-bottom: .4rem; }
.cp-section__title--sm { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 1rem; }
.cp-section__lede { max-width: 720px; margin-bottom: 1.5rem; color: var(--muted-strong); }
.cp-section--dark .cp-section__lede { color: var(--on-dark); }
.cp-section > .cp-wrap > .cp-section__title:only-child { margin-bottom: 0; }
.cp-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.25rem; }
@media (min-width: 640px) { .cp-grid--2, .cp-grid--3, .cp-grid--calc, .cp-grid--trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cp-grid--3, .cp-grid--trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-grid--calc { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Hero */
.cp-hero { background: var(--primary); color: var(--on-dark); }
.cp-hero__inner { display: grid; gap: 2rem; padding-block: 2.5rem; align-items: center; }
.cp-hero h1 { color: #fff; }
.cp-hero__kicker { color: #6FD6D1; font-weight: 600; margin-bottom: .6rem; }
.cp-hero__sub { font-size: 1.15rem; max-width: 40rem; }
.cp-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cp-hero__art { display: block; width: 100%; max-width: 460px; margin-inline: auto; }
@media (max-width: 639px) { .cp-hero__art { max-width: 320px; } .cp-hero__cta .cp-btn { width: 100%; } }
@media (min-width: 900px) { .cp-hero__inner { grid-template-columns: 1.15fr 1fr; padding-block: 4rem; } }

/* Finder */
.cp-finder__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.cp-finder__item { display: flex; align-items: center; gap: .65rem; min-height: 60px; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--primary); font-weight: 600; text-decoration: none; height: 100%; line-height: 1.25; }
.cp-finder__item .cp-icon { color: var(--accent-text); }
.cp-finder__item:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--primary); }

/* Tiles */
.cp-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; height: 100%; }
.cp-section--surface .cp-tile { background: var(--bg); }
.cp-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.cp-tile__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #E5F4F3; color: var(--accent-text); margin-bottom: .35rem; }
.cp-tile__title { font-weight: 700; color: var(--primary); font-size: 1.08rem; line-height: 1.3; }
.cp-tile__text { font-size: .95rem; color: var(--muted-strong); line-height: 1.5; }

/* Article cards */
.cp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cp-card__media { display: block; aspect-ratio: 16/9; background: var(--border); }
.cp-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.cp-eyebrow { display: inline-block; margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; }
.cp-card__title { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.3; }
.cp-card__title a { color: var(--primary); text-decoration: none; }
.cp-card__title a:hover { color: var(--accent-text); text-decoration: underline; }
.cp-card__excerpt { font-size: .96rem; line-height: 1.55; color: var(--text); }
.cp-card__meta { font-size: .85rem; color: var(--muted); margin-top: auto; margin-bottom: .5rem; }
.cp-more { font-weight: 600; font-size: .95rem; }

/* Topic list on dark */
.cp-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cp-topics { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cp-topic { display: flex; gap: .75rem; padding: 1rem; background: var(--secondary); border: 1px solid #3A5876; border-radius: var(--radius); color: var(--on-dark); text-decoration: none; height: 100%; font-size: .95rem; line-height: 1.5; }
.cp-topic strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .2rem; }
.cp-topic .cp-icon { color: #6FD6D1; }
.cp-topic:hover { border-color: var(--accent); color: var(--on-dark); }

/* Comparisons and trust */
.cp-compare { display: block; padding: 1.15rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); color: var(--text); text-decoration: none; line-height: 1.5; }
.cp-compare:hover { box-shadow: var(--shadow); color: var(--text); }
.cp-compare__title { display: block; font-weight: 700; color: var(--primary); font-size: 1.08rem; margin-bottom: .2rem; }
.cp-trust { padding-top: .9rem; border-top: 3px solid var(--accent); }
.cp-trust h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.cp-trust p { font-size: .97rem; margin: 0; line-height: 1.6; }

/* Newsletter */
.cp-newsletter { background: #E5F4F3; padding-block: 2.5rem; }
.cp-newsletter__inner { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .cp-newsletter__inner { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; } }
.cp-newsletter__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-newsletter__row input { flex: 1 1 200px; }
.cp-newsletter__consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; margin-top: .6rem; line-height: 1.45; }
.cp-newsletter__consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; }

/* Page heads */
.cp-pagehead { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 1.25rem 1.75rem; }
.cp-pagehead h1 { margin-bottom: .35rem; }
.cp-pagehead--hub { background: linear-gradient(180deg, #EEF8F7, var(--surface)); }
.cp-lede { font-size: 1.15rem; color: var(--muted-strong); max-width: 760px; margin: 0; line-height: 1.55; }
.cp-hubhead { display: flex; gap: 1rem; align-items: flex-start; }
.cp-hubhead__icon { display: none; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 14px; background: var(--primary); color: #6FD6D1; }
.cp-hubhead__icon .cp-icon { width: 32px; height: 32px; }
@media (min-width: 640px) { .cp-hubhead__icon { display: grid; } }
.cp-breadcrumbs { font-size: .88rem; margin-bottom: .9rem; }
.cp-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cp-breadcrumbs li { color: var(--muted-strong); }
.cp-breadcrumbs li + li::before { content: "/"; margin: 0 .45rem; color: var(--muted); }
.cp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.5rem; padding: 0; }
.cp-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .85rem; background: var(--surface); border: 1px solid #C9D3DE; border-radius: 999px; color: var(--primary); font-size: .93rem; font-weight: 600; text-decoration: none; }
.cp-chips a:hover { border-color: var(--accent); background: #E5F4F3; }

/* Article */
.cp-article-layout { display: grid; gap: 2rem; padding-block: 1.25rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .cp-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; } }
.cp-article__meta { font-size: .92rem; color: var(--muted-strong); margin-bottom: .75rem; }
.cp-article__meta span { margin-inline: .25rem; }
.cp-article__image { margin: 1rem 0 1.5rem; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--border); }
.cp-article__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-disclosure { font-size: .88rem; padding: .6rem .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--muted-strong); line-height: 1.5; }
.cp-prose { max-width: 760px; }
.cp-prose--page { max-width: 780px; }
.cp-prose h2 { margin-top: 2.25rem; }
.cp-prose h3 { margin-top: 1.6rem; }
.cp-prose ul, .cp-prose ol { padding-left: 1.35rem; margin: 0 0 1.1em; }
.cp-prose li { margin-bottom: .4em; }
.cp-prose > :first-child { margin-top: 0; }
.cp-box-title { font-weight: 700; color: var(--primary); margin-bottom: .5rem !important; font-size: 1.05rem; }
.cp-takeaways, .cp-example, .cp-important { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); margin: 1.5rem 0; }
.cp-takeaways > :last-child, .cp-example > :last-child, .cp-important > :last-child { margin-bottom: 0; }
.cp-takeaways { background: #EEF8F7; border-color: #BDE5E2; }
.cp-example { background: var(--surface); border-left: 4px solid var(--accent); }
.cp-important { background: #FDF6E9; border-color: #F1DEB7; }
.cp-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.cp-toc__title { font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.cp-toc ol { margin: 0; padding-left: 1.25rem; font-size: .97rem; }
.cp-toc li { margin-bottom: .25rem; }
.wp-block-table { margin: 1.25rem 0; overflow-x: auto; }
.wp-block-table table { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--surface); font-size: .96rem; line-height: 1.5; }
.wp-block-table th, .wp-block-table td { padding: .65rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--primary); color: #fff; border-color: var(--primary); }
.wp-block-table tbody th { background: var(--bg); color: var(--primary); }
.wp-block-details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0; margin-bottom: .6rem; }
.wp-block-details summary { min-height: 48px; padding: .7rem 1rem; font-weight: 600; color: var(--primary); cursor: pointer; line-height: 1.4; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--border); }
.wp-block-details > :not(summary) { padding-inline: 1rem; }
.wp-block-details > p:first-of-type { margin-top: .75rem; }
.cp-hubbody table { display: block; overflow-x: auto; border-collapse: collapse; background: var(--surface); font-size: .96rem; line-height: 1.5; margin: 1rem 0 1.5rem; }
.cp-hubbody th, .cp-hubbody td { padding: .65rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 130px; }
.cp-hubbody thead th { background: var(--primary); color: #fff; border-color: var(--primary); }
.cp-hubbody tbody th { background: var(--bg); color: var(--primary); }
.cp-hubbody details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: .6rem; padding: .7rem 1rem; }
.cp-hubbody summary { font-weight: 600; color: var(--primary); cursor: pointer; }
.cp-hubbody details p { margin: .6rem 0 0; }
.cp-sources { font-size: .95rem; }
.cp-sources h2 { font-size: 1.25rem; }
.cp-prose--sources { margin-top: 2rem; }
.cp-related { margin-top: 2.5rem; }
.cp-related .cp-grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cp-related .cp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cp-related .cp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-author { display: flex; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: .97rem; }
.cp-author__photo { border-radius: 50%; flex: none; width: 72px; height: 72px; }
.cp-author__kicker { font-size: .8rem; font-weight: 700; color: var(--muted-strong); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .1rem; }
.cp-author__name { font-size: 1.15rem; margin-bottom: .4rem; }
.cp-author p:last-child { margin-bottom: 0; }
.cp-legalnote { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted-strong); line-height: 1.55; }
.cp-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.cp-side-card { padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cp-side-card__title { font-size: 1.05rem; margin-bottom: .5rem; }
.cp-side-card ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.cp-side-card li { border-top: 1px solid var(--border); }
.cp-side-card li:first-child { border-top: 0; }
.cp-side-card a { display: block; padding: .5rem 0; line-height: 1.4; }

/* Ads: fixed reservation to prevent layout shift, always labeled and set apart */
.cp-ad { margin: 2rem 0; padding: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cp-ad__label { display: block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: .35rem; }
.cp-ad ins { min-height: 250px; }
.cp-ad--sidebar ins { min-height: 250px; }
.cp-ad--preview { min-height: 280px; display: grid; place-items: center; border: 2px dashed var(--warning); background: #FDF6E9; }
.cp-ad--preview .cp-ad__label { text-transform: none; color: var(--text); letter-spacing: 0; font-size: .85rem; }
.cp-no-ads .cp-ad { display: none; }

/* Calculators */
.cp-calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0 2rem; box-shadow: var(--shadow); }
.cp-calc__fields { display: grid; gap: 0 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cp-calc__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-input { display: flex; align-items: center; border: 1px solid #8A96A5; border-radius: 10px; background: var(--surface); }
.cp-input:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.cp-input input, .cp-input input:focus-visible { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
.cp-input__unit { padding-inline: .7rem; color: var(--muted-strong); font-size: .95rem; white-space: nowrap; }
.cp-input.has-prefix .cp-input__unit { padding-right: 0; }
.cp-input:has(input[aria-invalid="true"]) { border: 2px solid var(--danger); }
.cp-calc__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.cp-calc__results { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cp-calc__results-title { margin-bottom: .75rem; }
.cp-calc__outputs { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin: 0 0 1rem; }
@media (min-width: 640px) { .cp-calc__outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-calc__outputs[hidden] { display: none; }
.cp-calc__outputs div { padding: .8rem 1rem; background: #EEF8F7; border-radius: 10px; }
.cp-calc__outputs dt { font-size: .88rem; color: var(--muted-strong); font-weight: 600; }
.cp-calc__outputs dd { margin: .1rem 0 0; font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.cp-calc__note { font-size: .93rem; color: var(--muted-strong); margin-bottom: 0; }
.cp-calc__disclaimer { font-size: .84rem; color: var(--muted-strong); margin: 1rem 0 0; line-height: 1.5; }
.cp-meter { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.cp-meter span { display: block; height: 100%; width: 0; background: var(--accent); }

/* Spec box */
.cp-spec { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 1.5rem 0; }
.cp-spec__grid { display: grid; gap: .6rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0 0 1rem; }
.cp-spec__grid dt { font-size: .85rem; color: var(--muted-strong); font-weight: 600; }
.cp-spec__grid dd { margin: 0; }
.cp-spec__verified { font-size: .87rem; color: var(--muted-strong); margin: 0; }

/* Search, empty and 404 */
.cp-pagehead .cp-searchform { margin-top: .75rem; }
.cp-result { padding-block: 1rem; border-bottom: 1px solid var(--border); max-width: 780px; }
.cp-result h3 { margin-bottom: .3rem; }
.cp-result h3 a { color: var(--primary); }
.cp-result p:last-child { margin-bottom: 0; }
.cp-empty { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-width: 700px; }
.cp-404 { text-align: center; max-width: 720px; }
.cp-404__code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--accent); margin-bottom: 0; line-height: 1; }
.cp-404 .cp-searchform { margin: 1.5rem auto; text-align: left; }
.cp-404 .cp-chips, .cp-404 .cp-lede { justify-content: center; margin-inline: auto; }

/* Pagination */
.cp-pagination, .navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: .2rem .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--primary); font-weight: 600; }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.dots { border: 0; background: none; }

/* Footer */
.cp-footer { background: var(--primary); color: var(--on-dark); margin-top: 0; font-size: .96rem; }
.cp-footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding-block: .25rem; }
.cp-footer a:hover { color: #fff; text-decoration: underline; }
.cp-footer__grid { display: grid; gap: 2rem; padding-block: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cp-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.cp-footer__name { color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 1.1rem; margin-bottom: .25rem; }
.cp-footer__note { font-size: .86rem; line-height: 1.55; margin-top: .8rem; }
.cp-footer__title { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.cp-footer__list { list-style: none; margin: 0; padding: 0; }
.cp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1rem; border-top: 1px solid #3A5876; font-size: .88rem; }
.cp-footer__bottom p { margin: 0; }

/* Consent panel: non-blocking, equal-weight choices */
.cp-consent { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: .75rem; max-width: 560px; max-height: 80vh; overflow: auto; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid #C9D3DE; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20,43,69,.25); font-size: .93rem; line-height: 1.5; }
.cp-consent__title { font-size: 1.1rem; margin-bottom: .4rem; }
.cp-consent__row { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--border); }
.cp-consent__row input { width: 20px; height: 20px; margin-top: .15rem; flex: none; }
.cp-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cp-consent__actions .cp-btn { flex: 1 1 auto; min-height: 44px; font-size: .92rem; padding: .4rem .7rem; }

/* Comments */
.cp-comments { margin-top: 2.5rem; }
.cp-comments__list { padding-left: 1.25rem; }

/* WordPress core alignment */
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { display: block; margin-inline: auto; }

@media print {
  .cp-header, .cp-footer, .cp-sidebar, .cp-ad, .cp-related, .cp-consent, .cp-toc { display: none !important; }
  body { background: #fff; }
}
