/*
 * KingVerity Child — brand overrides.
 * Enqueued with dependency 'kv-style', so it loads AFTER the parent's CSS
 * and the ③号 palette wins. Page backgrounds and body text are left
 * essentially unchanged (plan §0.1); only brand surfaces are recolored.
 */

:root{
  --kv-blue:#003E97;   /* ③号 primary blue */
  --kv-red:#E60024;    /* ③号 signature red */
  --kv-deep:#062049;   /* brand deep blue (footer) */
  --blue-500:#003E97;  /* CTA + links + active-nav underline + card hover */
  --blue-600:#062049;  /* CTA hover */
  --danger:#E60024;    /* risk / warning accent → brand red */
}

/* Footer → brand deep blue (Brand Guidelines V3.0 §6) */
.footer{background:var(--kv-deep)!important}

/* Risk / danger accents → brand red (small emphasis only) */
.icon-box.danger{background:#FDEEEC;color:var(--kv-red)}
.risk-high{color:var(--kv-red)}

/* Header logo: ③号 Master (white nav) replaces the legacy text mark */
.nav .logo{font-size:0;line-height:0}
.nav .logo .kv-logo{height:36px;width:auto;display:block}

/* Footer logo: ③号 White / reversed */
.footer .logo{font-size:0;line-height:0}
.footer .kv-logo-footer{height:30px;width:auto;display:block}

/* Brand accent utilities */
.kv-accent-red{color:var(--kv-red)!important}
.kv-accent-blue{color:var(--kv-blue)!important}

/* Blog sidebar (M2) — narrow, no reading counts / tag cloud / recent comments */

/* =============================================================
 * Layout fix: modern group blocks render no .wp-block-group__inner-container
 * wrapper, so the parent's inner-container constraint never matches.
 * Result: full-bleed section content spans the whole viewport (too wide on
 * desktop) and plain sections lose their side padding (edge-to-edge on
 * mobile). Restore both without depending on the wrapper:
 * ============================================================= */

/* 1) Full-bleed brand sections (dark risks band, tinted bands):
 *    constrain their direct children to the 1120px design container. */
.kv-main > .wp-block-group.is-style-kv-dark > *,
.kv-main > .wp-block-group.is-style-kv-alt > *{
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
  padding-left:24px;
  padding-right:24px;
  box-sizing:border-box;
}

/* 2) Plain (white) direct-child sections: the parent zeroes their side
 *    padding for the old wrapper layout. Give them back the 24px gutters. */
.kv-main > .wp-block-group{
  padding-left:24px;
  padding-right:24px;
}

.kv-sidebar-widget{margin-bottom:28px}
.kv-sidebar-widget.kv-sidebar-search input{
  border:1px solid var(--border);border-radius:10px;padding:10px 14px;
  width:100%;font-family:inherit;font-size:15px;box-sizing:border-box
}
.kv-sidebar-title{
  font-size:13px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--kv-blue);margin:0 0 12px
}
.kv-sidebar-widget ul{list-style:none;display:grid;gap:8px;padding:0;margin:0}
.kv-sidebar-widget a{color:var(--text-2);font-size:14px}
.kv-sidebar-widget a:hover{color:var(--kv-blue);text-decoration:none}

/* =============================================================
 * Key Facts strip — parent shipped .kv-fact as inline spans, which
 * mashed the number and label onto one line. Force a stacked grid.
 * ============================================================= */
.kv-keyfacts{background:var(--kv-deep);color:#fff;padding:44px 0}
.kv-keyfacts h2{color:#fff;text-align:center;margin:0 0 26px}
.kv-keyfacts .kv-fact-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:24px;max-width:1120px;margin:0 auto;padding:0 24px;box-sizing:border-box
}
.kv-keyfacts .kv-fact{display:flex;flex-direction:column;text-align:center;gap:6px}
.kv-keyfacts .kv-fact-num{font-size:2.2rem;font-weight:800;color:#fff;line-height:1}
.kv-keyfacts .kv-fact-label{font-size:.95rem;color:#cdd9ef;line-height:1.3}

/* Process image band — keep the figure from collapsing to a blank box */
.kv-main .img-band img{width:100%;height:auto;display:block;border-radius:12px}

/* Homepage pricing-preview CTA (links the tier cards to /pricing) */
.kv-pricing-cta{text-align:center;padding:10px 24px 0}
.kv-pricing-cta .wp-block-button__link{
  background:var(--kv-blue);color:#fff;padding:14px 26px;border-radius:8px;
  display:inline-block;font-weight:700;text-decoration:none
}
.kv-pricing-cta .wp-block-button__link:hover{background:var(--blue-600)}

.kv-faq-more{margin-top:22px;padding-top:18px;border-top:1px solid rgba(0,62,151,.16)}.kv-faq-more a{color:var(--kv-blue);font-weight:700;text-decoration:none}.kv-faq-more a:hover{text-decoration:underline}
.kv-main h2[id], #inquiry{ scroll-margin-top:50px !important; }
/* ===== Pricing page (/pricing) - M2 ===== */
.kv-pricing{margin:8px 0 0}
.kv-pricing .wp-block-column{padding:0}
.kv-plan{border:1px solid rgba(0,62,151,.14);border-radius:14px;padding:28px 24px;background:#fff;height:100%;box-sizing:border-box;box-shadow:0 6px 20px rgba(6,32,73,.06);display:flex;flex-direction:column}
.kv-plan.is-featured{border:2px solid var(--kv-blue);box-shadow:0 12px 32px rgba(0,62,151,.16)}
.kv-plan-badge{display:inline-block;background:var(--kv-blue);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin:0 0 12px}
.kv-plan-name{font-size:1.2rem;margin:0 0 6px;color:var(--kv-deep)}
.kv-plan-price{font-size:2rem;font-weight:800;color:var(--kv-blue);margin:0 0 2px;line-height:1}
.kv-plan-price .kv-per{font-size:.9rem;font-weight:600;color:var(--text-2)}
.kv-plan-tag{color:var(--text-2);font-size:.92rem;margin:0 0 16px;line-height:1.4}
.kv-plan-core{margin:0 0 14px;padding-left:18px}
.kv-plan-core li{margin:0 0 8px}
.kv-plan-details{margin:0 0 14px}
.kv-plan-details summary{cursor:pointer;font-weight:700;color:var(--kv-blue);padding:6px 0;list-style:none;user-select:none}
.kv-plan-details summary::-webkit-details-marker{display:none}
.kv-plan-details summary::before{content:'+ ';font-weight:800;font-size:1.05em}
.kv-plan-details[open] summary::before{content:'- ';font-weight:800;font-size:1.05em}
.kv-plan-details .kv-plan-sublist{margin:8px 0 0;padding-left:18px}
.kv-plan-details .kv-plan-sublist li{margin:0 0 6px}
.kv-plan-note{font-size:.85rem;color:var(--kv-deep);background:#eef3fb;border-left:3px solid var(--kv-blue);padding:9px 12px;border-radius:6px;margin:0 0 18px;line-height:1.4}
.kv-plan .wp-block-buttons{margin-top:auto}
.kv-plan .wp-block-button{width:100%}
.kv-plan .wp-block-button__link{background:var(--kv-blue);color:#fff;border-radius:8px;padding:13px 20px;font-weight:700;text-decoration:none;width:100%;box-sizing:border-box;text-align:center;min-height:50px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.kv-plan .wp-block-button__link:hover{background:var(--blue-600)}
.kv-testimonials{background:#f7f9fc;padding:40px 28px;border-radius:14px;margin:44px 0 0;box-sizing:border-box}
.kv-testimonials h2{text-align:center;color:var(--kv-deep);margin:0 0 8px}
.kv-testimonials .kv-tintro{text-align:center;color:var(--text-2);margin:0 0 24px}
.kv-testimonials .kv-tgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.kv-testimonials .kv-tcard{background:#fff;border:1px solid rgba(6,32,73,.08);border-radius:12px;padding:20px;font-style:italic;color:var(--text-2);line-height:1.5;box-sizing:border-box}
.kv-testimonials .kv-tcard .kv-tname{display:block;margin-top:12px;font-style:normal;font-weight:700;color:var(--kv-deep);font-size:.88rem}
.kv-main .wp-block-columns.kv-pricing{margin:8px 0 0;gap:20px} .kv-main .kv-pricing .wp-block-column{padding:0} .kv-main .kv-pricing .wp-block-column > .wp-block-group.kv-plan{border:1px solid rgba(0,62,151,.14);border-radius:14px;padding:28px 24px;background:#fff;height:100%;box-sizing:border-box;box-shadow:0 6px 20px rgba(6,32,73,.06);display:flex;flex-direction:column} .kv-main .kv-pricing .wp-block-column > .wp-block-group.kv-plan.is-featured{border:2px solid var(--kv-blue);box-shadow:0 12px 32px rgba(0,62,151,.16)} .kv-plan{position:relative}.kv-plan.is-featured > p:first-child{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);display:inline-block;background:var(--kv-red);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin:0;white-space:nowrap;z-index:2;box-shadow:0 4px 12px rgba(230,0,36,.28)} .kv-plan h3{font-size:1.2rem;margin:0 0 6px;color:var(--kv-deep)} .kv-plan h3 + p{font-size:2rem;font-weight:800;color:var(--kv-blue);margin:0 0 2px;line-height:1} .kv-plan h3 + p .kv-per{font-size:.9rem;font-weight:600;color:var(--text-2)} .kv-plan h3 + p + p{color:var(--text-2);font-size:.92rem;margin:0 0 16px;line-height:1.4;min-height:2.9em} .kv-plan > ul{margin:0 0 14px;padding-left:18px} .kv-plan > ul li{margin:0 0 8px} .kv-plan details{margin:0 0 14px} .kv-plan details summary{cursor:pointer;font-weight:700;color:var(--kv-blue);padding:6px 0;list-style:none;user-select:none} .kv-plan details summary::-webkit-details-marker{display:none} .kv-plan details summary::before{content:'+ ';font-weight:800;font-size:1.05em} .kv-plan details[open] summary::before{content:'- ';font-weight:800;font-size:1.05em} .kv-plan details ul{margin:8px 0 0;padding-left:18px} .kv-plan details ul li{margin:0 0 6px} .kv-plan > p:last-of-type{font-size:.85rem;color:var(--kv-deep);background:#eef3fb;border-left:3px solid var(--kv-blue);padding:9px 12px;border-radius:6px;margin:0 0 18px;line-height:1.4} .kv-plan .wp-block-buttons{margin-top:auto} .kv-plan .wp-block-button{width:100%} .kv-plan .wp-block-button__link{background:var(--kv-blue);color:#fff;border-radius:8px;padding:13px 20px;font-weight:700;text-decoration:none;width:100%;box-sizing:border-box;text-align:center;min-height:50px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap} .kv-plan .wp-block-button__link:hover{background:var(--blue-600)} .kv-testimonials{background:#f7f9fc;padding:40px 28px;border-radius:14px;margin:44px 0 0;box-sizing:border-box} .kv-testimonials h2{text-align:center;color:var(--kv-deep);margin:0 0 8px} .kv-testimonials > p{text-align:center;color:var(--text-2);margin:0 0 24px} .kv-testimonials > .wp-block-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px} .kv-testimonials > .wp-block-group > .wp-block-group{background:#fff;border:1px solid rgba(6,32,73,.08);border-radius:12px;padding:20px;font-style:italic;color:var(--text-2);line-height:1.5;box-sizing:border-box} .kv-testimonials > .wp-block-group > .wp-block-group > p:last-child{display:block;margin-top:12px;font-style:normal;font-weight:700;color:var(--kv-deep);font-size:.88rem}

/* =============================================================
 * Blog layout (M2) — article / archive content + narrow sidebar
 * ============================================================= */
.kv-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;align-items:start
}
.kv-article-col,.kv-posts-col{min-width:0}

/* Sidebar widgets — card look (matches the M1 .kv-sidebar-widget hooks) */
.kv-sidebar{display:flex;flex-direction:column;gap:20px;min-width:0}
.kv-sidebar-widget{
  background:#fff;border:1px solid rgba(6,32,73,.10);border-radius:12px;
  padding:20px;margin:0;box-sizing:border-box
}
.kv-sidebar-widget ul{list-style:none;display:grid;gap:8px;padding:0;margin:0}
.kv-cat-list li,.kv-hot-list li{
  border-bottom:1px solid rgba(6,32,73,.08);padding:0 0 8px;font-size:14px;line-height:1.45
}
.kv-cat-list li:last-child,.kv-hot-list li:last-child{border-bottom:0;padding-bottom:0}
.kv-sidebar-empty{font-size:14px;color:var(--text-2);margin:0}

/* Search widget */
.kv-sidebar-search .search-form{display:block}
.kv-sidebar-search label{display:block;width:100%}
.kv-sidebar-search input{
  border:1px solid var(--border);border-radius:10px;padding:10px 14px;
  width:100%;font-family:inherit;font-size:15px;box-sizing:border-box
}
.kv-sidebar-search .search-submit{
  background:var(--kv-blue);color:#fff;border:0;border-radius:10px;
  padding:10px 14px;font-weight:700;font-size:14px;cursor:pointer;margin-top:10px;width:100%
}
.kv-sidebar-search .search-submit:hover{background:var(--blue-600)}

/* Pricing promo card */
.kv-sidebar-promo{background:#f7f9fc;border-color:rgba(0,62,151,.16)}
.kv-sidebar-promo p{font-size:14px;color:var(--text-2);margin:0 0 14px;line-height:1.5}
.kv-promo-btn{
  display:block;text-align:center;background:var(--kv-blue);color:#fff;
  font-weight:700;font-size:14px;padding:11px 16px;border-radius:8px;text-decoration:none
}
.kv-promo-btn:hover{background:var(--blue-600);text-decoration:none}

/* Article CTA group (single posts) */
.kv-article-cta{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  margin:40px 0 0;padding-top:28px;border-top:1px solid rgba(6,32,73,.10)
}
.kv-cta-secondary{
  color:var(--kv-blue);font-weight:700;text-decoration:none;
  border-bottom:2px solid rgba(0,62,151,.35);padding-bottom:2px
}
.kv-cta-secondary:hover{border-bottom-color:var(--kv-blue)}

/* Archive pagination sits inside the posts column */
.kv-pagination{margin-top:36px}

/* Responsive — sidebar drops below the content column */
@media (max-width:960px){
  .kv-layout{grid-template-columns:1fr;gap:32px}
}
@media (max-width:640px){
  .kv-post-grid{grid-template-columns:1fr!important}
}

/* =============================================================
 * Pricing page (M2 fix) — parent page.php wraps page content in
 * .article-body (720px reading width); the pricing page needs the
 * full 1120px container so the three plan cards breathe and the
 * CTA buttons fit on one line. Scoped by the kv-pricing-page body
 * class added in functions.php.
 * ============================================================= */
.kv-pricing-page .kv-main .container.article-body{max-width:1120px}

/* =============================================================
 * Homepage polish (2026-10-22) — Key Facts alignment + section rhythm.
 * 1) "5 regions" used to wrap to 2 lines at 2.2rem, pushing its caption
 *    35px below the other captions; "regions" is now a small inline
 *    suffix (markup edit in page content) so every stat stays ONE line.
 * 2) The Custom-HTML H2/P pairs after the band had margin:0 — heading
 *    touched paragraph, sections touched each other. Scoped to
 *    body.home .kv-main direct children so no other page is affected.
 * ============================================================= */
.kv-keyfacts .kv-fact-num{white-space:nowrap}
.kv-keyfacts .kv-fact-num .kv-fact-suffix{font-size:.42em;font-weight:800;margin-left:.14em;letter-spacing:.01em}
.kv-keyfacts .kv-fact{gap:10px}
body.home .kv-main > h2{margin:0 auto 14px}
body.home .kv-main > p:not(.kv-faq-more){margin:0 auto 34px}

/* =============================================================
 * Brand typography + polish (2026-10-22 evening, v1.0.12)
 * Palette per logo ③: primary blue #003E97, deep #062049, red #E60024
 * (red stays reserved for risk semantics only — no decorative red).
 * ============================================================= */

/* 1) Headings → brand blue. Dark bands keep white headings.
 *    Parent sets h1/h2 to ink #0A2540; (0,2,0)/(0,1,1) beats it. */
.kv-main h1,.kv-main h2{color:var(--kv-blue)}
/* Inner-page (blog/archive/standard page) H1 lives in header.page-hero */
.page-hero h1{color:var(--kv-blue)}
.kv-main .is-style-kv-dark h1,.kv-main .is-style-kv-dark h2,
.kv-keyfacts h2,.footer h1,.footer h2{color:#fff}
/* H3/H4 → brand deep blue for hierarchy without noise */
.kv-main h3,.kv-main h4{color:var(--kv-deep)}
.kv-main .is-style-kv-dark h3,.kv-main .is-style-kv-dark h4{color:#fff}

/* 2) FAQ rows — breathing room + brand-tinted dividers */
.kv-main details{border:0}
.kv-main details summary{
  color:var(--kv-deep);font-weight:700;cursor:pointer;
  padding:14px 0;border-bottom:1px solid rgba(0,62,151,.14);list-style:none
}
.kv-main details summary::-webkit-details-marker{display:none}
.kv-main details summary::after{content:'+';float:right;font-weight:800;color:var(--kv-blue);font-size:1.15em;line-height:1}
.kv-main details[open] summary::after{content:'–'}
.kv-main details > *:not(summary){padding-bottom:16px}
.kv-main details > p:last-child{margin-bottom:0}

/* 3) Inquiry form submit → brand CTA (was white/weak on /contact) */
.kv-main form input[type=submit],.kv-main form button[type=submit]{
  background:var(--kv-blue)!important;color:#fff!important;border:0;
  border-radius:8px;padding:12px 26px;font-weight:700;font-size:15px;cursor:pointer
}
.kv-main form input[type=submit]:hover,.kv-main form button[type=submit]:hover{
  background:var(--blue-600)!important
}

/* 4) Sidebar promo button — parent link-color rule (e.g. .sidebar a)
 *    was beating .kv-promo-btn and painting grey text on blue. Win back. */
.kv-sidebar .kv-promo-btn{color:#fff!important}
.kv-sidebar .kv-promo-btn:hover{color:#fff!important}

/* 5) Card grids — equal heights via column stretch (cols carry card style).
 *    NOTE: never flex-grow the column's children — that stretched the
 *    .step-num disc into an ellipse on shorter-content cards. */
.grid-2,.grid-3{align-items:stretch}
.grid-2 .wp-block-column,.grid-3 .wp-block-column{display:flex;flex-direction:column}

/* 5b) Step head — disc and title on ONE line (disc fixed 44px, never warped).
 *     Title kept to a single line so all three cards' body copy starts at
 *     the same height ("We run the investigation" must not wrap). */
.grid-3 .kv-step-head{display:flex;align-items:center;gap:13px;margin:0 0 14px}
.grid-3 .kv-step-head .step-num{flex:0 0 44px;margin:0}
.grid-3 .kv-step-head h3{margin:0;font-size:1.12rem;white-space:nowrap;letter-spacing:-.01em}

/* 6) Band rhythm — H2 → figure → cards had ZERO gaps inside tinted bands */
.kv-main > .wp-block-group.is-style-kv-alt > * + *,
.kv-main > .wp-block-group.is-style-kv-dark > * + *{margin-top:28px}

/* 7) Cookie banner (Complianz) → brand palette */
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept{
  background:var(--kv-blue)!important;border-color:var(--kv-blue)!important
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept:hover{
  background:var(--blue-600)!important;border-color:var(--blue-600)!important
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-deny,
#cmplz-cookiebanner-container .cmplz-btn.cmplz-view-preferences{
  color:var(--kv-deep)!important;border-color:rgba(0,62,151,.35)!important
}
#cmplz-cookiebanner-container a,#cmplz-cookiebanner-container .cmplz-link{
  color:var(--kv-blue)!important
}

/* 8) Sample-report / data tables — brand-tinted header row */
.kv-main table th{background:#eef3fb;color:var(--kv-deep)}

/* =============================================================
 * Editorial polish (2026-10-22 late, v1.0.14) — red accent markers,
 * step badges, blog index & single-post layout (scales to 100s of posts).
 * ============================================================= */

/* 1) Step numbers — brand blue disc + soft halo (was plain deep-blue dot) */
.grid-3 .step-num{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--kv-blue);color:#fff;font-weight:800;font-size:1.15rem;line-height:1;
  box-shadow:0 0 0 6px rgba(0,62,151,.08);margin:0 0 14px
}

/* 2) Red accent markers — semantic "editorial highlight", used sparingly:
 *    a) hero standfirst (blog & archive subtitles)
 *    b) single-post section headings (mainstream US/UK business-blog marker) */
.page-hero p{border-left:3px solid var(--kv-red);padding-left:14px}
.single-post .article-body h2{border-left:4px solid var(--kv-red);padding-left:12px}

/* 3) Blog index cards — hover lift, equal heights, clamped excerpts */
.kv-post-grid{align-items:stretch}
.kv-post-grid .post-thumb{margin-top:0}
.kv-post-grid > .card{display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.kv-post-grid > .card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(6,32,73,.10)}
.kv-post-grid .post-thumb img{border-radius:10px;width:100%;height:auto;display:block}
.kv-post-grid .post-excerpt{
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  margin:0;color:var(--text-2)
}
.kv-post-grid h3{margin:10px 0 8px}
.kv-post-grid h3 a{color:var(--kv-deep)}
.kv-post-grid h3 a:hover{color:var(--kv-blue);text-decoration:none}

/* 4) Numeric pagination — clickable pills, current = brand blue */
.kv-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.kv-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;border-radius:8px;
  border:1px solid rgba(0,62,151,.18);color:var(--kv-deep);
  font-weight:700;font-size:14px;text-decoration:none;background:#fff
}
.kv-pagination .page-numbers:hover{border-color:var(--kv-blue);color:var(--kv-blue);text-decoration:none}
.kv-pagination .page-numbers.current{background:var(--kv-blue);border-color:var(--kv-blue);color:#fff}
.kv-pagination .page-numbers.dots{border:0;background:none}

/* 5) Breadcrumb (single post hero) */
.kv-breadcrumb{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:13px;color:var(--text-3);margin:0 0 14px
}
.kv-breadcrumb a{color:var(--text-3);text-decoration:none}
.kv-breadcrumb a:hover{color:var(--kv-blue);text-decoration:underline}
.kv-bc-sep{color:rgba(6,32,73,.25)}

/* 6) Author row — brand logo mark instead of user avatar/username */
.article-meta{display:flex;align-items:center;gap:14px;margin-top:22px}
.kv-author-logo{width:44px;height:44px;border-radius:10px;background:#fff;border:1px solid rgba(0,62,151,.12);padding:5px;box-sizing:border-box;box-shadow:0 2px 8px rgba(6,32,73,.06)}

/* 7) Post navigation (single) — back link + prev/next cards */
.kv-post-nav{margin:44px 0 0;padding-top:26px;border-top:1px solid rgba(6,32,73,.10)}
.kv-post-nav-back{
  display:inline-block;font-size:14px;font-weight:700;color:var(--kv-blue);
  text-decoration:none;margin:0 0 18px
}
.kv-post-nav-back:hover{text-decoration:underline}
.kv-post-nav-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.kv-nav-card{
  display:flex;flex-direction:column;gap:8px;
  border:1px solid rgba(0,62,151,.14);border-radius:12px;padding:18px 20px;
  background:#fff;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease
}
.kv-nav-card:hover{border-color:var(--kv-blue);box-shadow:0 8px 20px rgba(0,62,151,.08);text-decoration:none}
.kv-nav-card .kv-nav-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--kv-red)}
.kv-nav-card .kv-nav-title{font-weight:700;color:var(--kv-deep);line-height:1.35;font-size:.98rem}
.kv-nav-next{text-align:right}
@media (max-width:640px){
  .kv-post-nav-grid{grid-template-columns:1fr}
  .kv-nav-next{text-align:left}
}

/* 9) Searchable country combobox — REMOVED with the inquiry form (M3 / Option C).
   It was scoped to the lead form but also matched WooCommerce's billing_country
   select on /checkout/, replacing the native country picker. The checkout now
   uses WooCommerce's own country select. */

/* 10) MOST POPULAR badge → brand red (both homepage preview & pricing card) */
.badge-dark.plan-badge,.kv-plan.is-featured > p:first-child{background:var(--kv-red)!important;color:#fff!important;box-shadow:0 4px 12px rgba(230,0,36,.28)!important}

/* =============================================================
 * 11) Typography & accessibility (2026-10-23, v1.0.19)
 * ============================================================= */

/* a) Inter webfonts — latin subset, self-hosted, swap. The parent declared
 *    the Inter stack but shipped no files; this lands the design intent. */
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/inter-400.woff2') format('woff2')
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;
  src:url('../fonts/inter-600.woff2') format('woff2')
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;
  src:url('../fonts/inter-700.woff2') format('woff2')
}

/* b) WCAG AA: secondary text #7A8CA3 ≈ 3.4:1 → #5A6C85 ≈ 5.5:1.
 *    Same-variable override; every 13–14px label gets darker for free. */
:root{--text-3:#5A6C85}


/* =============================================================
 * 12) Post-card meta alignment (2026-10-24, v1.0.21)
 *     Parent .post-meta is flex WITHOUT flex-wrap, so long badges
 *     ("Due diligence", "Factory audit") got squeezed and wrapped
 *     internally while the date broke mid-phrase. Result: card
 *     titles started at different heights across the grid.
 *     Fix: badges never wrap internally; inside the blog grid the
 *     meta stacks uniformly (badge line, then date line) so every
 *     card's thumbnail and title start at the same y-position.
 * ============================================================= */
.badge{white-space:nowrap}
.post-meta{flex-wrap:wrap;row-gap:4px}
.post-meta > span:not(.badge){white-space:nowrap}
.kv-post-grid .post-meta{flex-direction:column;align-items:flex-start;gap:6px}


/* =============================================================
 * 13) Tablet / mobile overflow fixes (2026-10-26, v1.0.22)
 *     P1-01: the parent theme collapses the desktop nav at 720px,
 *     which leaves iPad portrait (768px) stuck on the full desktop
 *     nav — 8 items + My Account + the CTA measure ~864px inside a
 *     754px viewport, pushing the "Order a Report" button off-screen
 *     (10/10 pages affected). Collapse at 1024px instead, matching
 *     the existing grid reflow point.
 *     P1-02: .grid-3 step headings use white-space:nowrap so the
 *     number + title stay on one line on desktop; below 720px the
 *     unwrappable text forced the grid column wider than the
 *     viewport (homepage measured a 380px column inside 360px).
 *     ============================================================= */
@media (max-width:1024px){
  .nav-links{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;align-items:flex-start;padding:20px 24px;gap:18px;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .nav-links.open{display:flex}
  .nav-toggle{display:block}
}
@media (max-width:720px){
  .grid-3 .kv-step-head h3{white-space:normal}
  .wp-block-column.is-style-kv-card{max-width:100%}
}
/* Safety net: stray sub-pixel or decorative overflow must never produce a
   horizontal scrollbar on a storefront. clip (not hidden) so position:sticky
   descendants keep working. */
html,body{overflow-x:clip}


/* =============================================================
 * 14) Account-centre polish (2026-10-26, v1.0.23)
 *     - Dashboard PI cell wrapped mid-identifier ("PI-20261024-252"
 *       broke across three lines in a narrow column) -> nowrap.
 *     - A single monitoring/subscription card sat in one half of the
 *       two-column grid leaving dead space -> single card spans full
 *       width.
 *     - WooCommerce's "Confirm your email address" notice is redundant
 *       here: the order flow verifies the address before checkout.
 * ============================================================= */
.kv-acct-table td.kv-pi-cell{white-space:nowrap}
.kv-acct-grid .kv-acct-card:only-child{grid-column:1/-1}
.woocommerce-MyAccount-content .woocommerce-info:has(a[href*="wc_send_verification"]){display:none}
/*     - Account pages reused the article container (max-width:720px), so the
 *       whole dashboard squeezed into ~460px with a dead right column.
 *       Accounts are app pages, not articles: give them the full 1120 grid. */
.woocommerce-account .article-body{max-width:1120px}
.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:230px}
.woocommerce-account .woocommerce-MyAccount-content{float:right;width:calc(100% - 254px)}
@media(max-width:720px){
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}
  .woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:18px}
}
/*     - Order view: the billing-address card repeats data the customer just
 *       entered and services need no shipping — hide it on account pages. */
.woocommerce-view-order .woocommerce-customer-details{display:none}

/* =============================================================
 * 15) Full-site QA pass (2026-10-27, v1.0.25)
 *     Six audit findings. Every fix lives here in the child theme so
 *     the kingverity-store plugin is never touched.
 * ============================================================= */

/* --- P1-1  /order/ sidebar: "Order summary" heading invisible -------
 * aside.kv-of-side paints a #062049 panel (plugin CSS) but sits inside
 * .kv-main, whose generic `.kv-main h3,.kv-main h4{color:var(--kv-deep)}`
 * (line 240) colours headings in that same deep blue -> contrast 1.00:1.
 * Restore white inside the panel. Specificity (0,0,2,x) beats the (0,0,1,x)
 * rule above, so no !important and no load-order dependency.
 * Audited the rest of the panel for the same fault: .kv-of-line (#cdd9ec),
 * .kv-of-side-note (#9fb2cf) and .kv-of-total (inherits white) all set
 * their own colour, so the heading was the only victim. Counting the panel's
 * descendants confirmed it: 1 h3, 0 h4, 0 label, 0 strong — so the fix is
 * scoped to h3/h4 and carries no dead selectors.
 * ------------------------------------------------------------------ */
.kv-main .kv-of-side h3,
.kv-main .kv-of-side h4{color:#fff}

/* --- P1-2  three-column bands clipped with no way to scroll --------
 * REAL CAUSE (measured on staging, not inferred): it is NOT an inline style.
 * Every .grid-3 container on the homepage returns `getAttribute('style') ===
 * null`, and the cascade shows nothing above (0,0,2,0). Two things combine:
 *
 *   1. `1fr` is shorthand for `minmax(auto,1fr)`. The `auto` minimum floors a
 *      track at its content's min-content width, so a track can never shrink
 *      past it. `.grid-3 .kv-step-head h3{white-space:nowrap}` (line 280)
 *      makes "Choose a package and check out" ~282px of unbreakable text;
 *      plus the 44px disc, the gap and the card's 28px side padding, a
 *      column is floored at ~396px. The parent's own
 *      `@media(max-width:1024px){.wp-block-columns.grid-3{1fr 1fr}}`
 *      therefore only halves the problem — measured overflow:
 *      1121px -> 11px, 1024px -> 108px, 820px -> 6px, 768px -> 58px,
 *      721px -> 106px (fit again only once the 720px single-column rule
 *      kicks in).
 *   2. The 1024px breakpoint is a knife edge: with a scrollbar present the
 *      layout viewport reads 1025px, `(max-width:1024px)` does NOT match,
 *      and the band silently stays three columns at exactly 1024.
 *
 * `html,body{overflow-x:clip}` (line 456) then hides the excess instead of
 * scrolling to it, which is what turns "overflowing" into "unreachable".
 *
 * Fix: `minmax(0,1fr)` removes the min-content floor so tracks may shrink,
 * and the nowrap is released unconditionally — `normal` only wraps text that
 * genuinely does not fit, so headings that fit still render on one line.
 * Verified after injection: grid scrollWidth === clientWidth at 1440/1280/
 * 1200/1121/1120/1024/1023/900/820/768/721/720/600/480/390, and every step
 * heading stays inside its card. `clip` is deliberately left alone: it was
 * never the bug, and strengthening it would only hide the next one.
 * ------------------------------------------------------------------ */
.kv-main .wp-block-columns.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kv-main .grid-3 .kv-step-head h3{white-space:normal}
@media (max-width:1024px){
  .kv-main .wp-block-columns.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .kv-main .wp-block-columns.grid-3{grid-template-columns:minmax(0,1fr)}
}

/* --- P1-3  cookie banner swallows the expanded nav (<=1024) --------
 * Complianz paints `.cmplz-cookiebanner` at position:fixed;z-index:99999
 * (measured on staging) while the nav sits at z-index:50, so on a 390px screen
 * the banner overlay covers the hamburger panel and eats the clicks. The
 * dropdown itself is fine — it is a pure stacking-order conflict.
 * Chosen fix: lift the nav above the banner, but ONLY while the panel is open,
 * so nothing else on the page shifts. Pushing the banner down instead would
 * fight a third-party plugin's own z-index, and padding-bottom would have to
 * guess a banner height that changes with its copy.
 * ------------------------------------------------------------------ */
@media (max-width:1024px){
  .nav:has(.nav-links.open){z-index:100000}
}

/* --- P2-1  homepage pricing CTAs not bottom-aligned ----------------
 * The pricing page cards carry .kv-plan, which is `display:flex;
 * flex-direction:column` (line 108) with
 * `.kv-plan .wp-block-buttons{margin-top:auto}` (line 125) pinning the CTA
 * to the card bottom. The homepage reuses the PARENT's `.plan` instead, which
 * has no such rule — so each CTA stops right after its own copy. Measured
 * button tops 4517 / 4555 / 4567 (50px apart) on equal-height (479px)
 * cards, because the feature lists wrap to different line counts.
 *
 * Two extra twists found while measuring, both in the 3rd card:
 *   a) it is the only one whose .wp-block-buttons is 73px tall instead of
 *      52px — an empty <p> sits INSIDE the button container;
 *   b) a second empty <p> sits AFTER the container, adding 12px of dead
 *      space. Both are the parser's repair of two stray `</p>` close tags
 *      in the saved page content (they should have been `</div>`).
 * So `margin-top:auto` alone only closed 50px -> 33px. Collapsing the two
 * empty paragraphs gets all three bottoms within 1px of each other.
 * The flex-column declaration is repeated defensively: `margin-top:auto`
 * is a no-op unless the card really is a column flex container.
 * ------------------------------------------------------------------ */
.kv-main .wp-block-columns.grid-3 > .wp-block-column.plan{display:flex;flex-direction:column}
.kv-main .wp-block-columns.grid-3 > .wp-block-column.plan > .wp-block-buttons{margin-top:auto}
.kv-main .wp-block-columns.grid-3 > .wp-block-column.plan > p:empty,
.kv-main .wp-block-columns.grid-3 > .wp-block-column.plan > .wp-block-buttons > p:empty{display:none}

/* --- P2-2  dark CTA band button indented 28px from the heading -------
 * `.btn-lg{padding:14px 28px}` (parent line 50) applies to the
 * .wp-block-button wrapper, so the visible button edge starts 28px right of
 * the heading's left edge (measured: heading 201, button 229). Zero the
 * wrapper's horizontal padding on this band only — .btn-lg is untouched
 * everywhere else.
 * ------------------------------------------------------------------ */
.wp-block-group.cta-band .wp-block-button.btn-lg{padding-left:0;padding-right:0}

/* --- P2-3  footer tagline contrast 2.05:1 -------------------------
 * `p{color:var(--text-2)}` (#425466, parent line 36) is inherited all the way
 * into the footer, landing on the #062049 panel at 15px -> ~2.1:1.
 * Move it to #B8C7DA — the same colour already used for dark-band body copy
 * and .cta-band p — giving ~9.5:1, comfortably past WCAG AA.
 * Scoped to .footer so no other page text changes.
 * ------------------------------------------------------------------ */
.footer p{color:#B8C7DA}

/* =============================================================
 * KingVerity — UI Refresh · 批次 1（P0）
 * 生成：2026-11-09  依据：kingverity-ui-refresh-plan.md §C-P0
 *
 * 用法：整段**追加**到 kingverity-child/assets/css/child-overrides.css 末尾。
 *       不修改任何既有规则，不触碰 WooCommerce 模板与 PHP。
 * 回滚：删除本段（自 "UI-REFRESH-P0 BEGIN" 至 "UI-REFRESH-P0 END"）。
 * 说明：六个小节彼此独立，可单独删除某一节而不影响其余。
 * ============================================================= */

/* ---------- UI-REFRESH-P0 BEGIN ---------- */

/* =============================================================
 * P0-1  统一键盘焦点环（a11y）
 * 现状：全站仅 1 条 :focus-visible；账号下拉 outline:none（header.php:89）；
 *       焦点环 #A6BBDB 对白 1.95:1、输入外发光 #C5D4FA 对白 1.58:1，均低于 3:1。
 * 改法：实色 2px 品牌蓝；深色面反白；账号下拉用 inset 避免被裁切。
 * ============================================================= */
:focus-visible {
  outline: 2px solid #003E97 !important;
  outline-offset: 2px;
}

.is-style-kv-dark :focus-visible,
.dark :focus-visible,
.footer :focus-visible,
.kv-of-side :focus-visible,
.nav :focus-visible {
  outline-color: #FFFFFF !important;
}

.nav-account .nav-sub a:focus-visible {
  outline: 2px solid #003E97 !important;
  outline-offset: -2px;
}

/* =============================================================
 * P0-2  收回装饰性红色（对齐品牌规范 child:229）
 * 现状：child:319 / 320 / 375 三处纯装饰用红，稀释「红=风险」语义。
 * 注意：不动 .risk-high / .kv-of-err / .kv-req / .icon-box.danger。
 * ============================================================= */
.page-hero p {
  border-left-color: rgba(0, 62, 151, .35);
}

.single-post .article-body h2 {
  border-left-color: var(--kv-blue);
}

.kv-nav-card .kv-nav-label {
  color: var(--text-2);
}

/* =============================================================
 * P0-3  CTA 带移动端内边距（原 720 / 480 规则是死代码）
 * 现状：index.php:105 为裸 <div class="cta-band">，既有覆盖挂在
 *       .wp-block-group.cta-band 上不匹配；parent:359 的 (0,3,0)
 *       又压死了 (0,2,0) 的 padding:32px。
 * 改法：两个选择器都显式写出，不依赖类名是否存在。
 * ============================================================= */
@media (max-width: 1024px) {
  .cta-band,
  .kv-main > .wp-block-group.cta-band {
    padding: 40px;
  }
}

@media (max-width: 720px) {
  .cta-band,
  .kv-main > .wp-block-group.cta-band {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .cta-band,
  .kv-main > .wp-block-group.cta-band {
    padding: 26px 20px;
  }
}

/* =============================================================
 * P0-4  首页板块纵向节奏（移动端减半）
 * 现状：.kv-main > .wp-block-group 的 72px 全断点生效（parent:352），
 *       手机端相邻板块间距 144px，比内页 56px 大 88px。
 * ============================================================= */
@media (max-width: 1024px) {
  .kv-main > .wp-block-group {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 720px) {
  .kv-main > .wp-block-group {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

@media (max-width: 720px) {
  .kv-keyfacts {
    padding: 32px 0;
  }
}

/* =============================================================
 * P0-5  锚点不被粘性导航遮挡
 * 现状：.nav 高 68px，child:104 用 !important 把 scroll-margin-top
 *       压到 50px（parent 原为 84px）→ 目标标题顶部藏在导航后 18px。
 * 改法：改回 88px（720 断点 76px），仍用 !important 闭环。
 * ============================================================= */
.kv-main h2[id],
#inquiry {
  scroll-margin-top: 88px !important;
}

@media (max-width: 720px) {
  .kv-main h2[id],
  #inquiry {
    scroll-margin-top: 76px !important;
  }
}

/* =============================================================
 * P0-6  统一深蓝（消除色块接缝）
 * 现状：--navy-900:#0A2540 与 --kv-deep:#062049 并存，首页深色带紧邻
 *       页脚，全宽色块交接处可见色阶断层。
 * 影响：.is-style-kv-dark / .dark / .cta-band / .logo-mark / .avatar /
 *       .report-doc h2 下边框 / 页脚（.footer 本就用 --kv-deep）。
 * ============================================================= */
:root {
  --navy-900: #062049;
}

/* ---------- UI-REFRESH-P0 END ---------- */


/* ---------- UI-REFRESH-P0-FIX1 BEGIN ---------- */
/* P0-1 修正（2026-11-09）：.nav 为白底 rgba(255,255,255,.95)，
   白环不可见。此处以同特异性、更靠后的规则改回品牌蓝。
   深色面（.footer / .is-style-kv-dark / .kv-keyfacts / .kv-of-side / .dark）仍为白环。 */
.nav :focus-visible {
  outline-color: #003E97 !important;
}

/* ---------- UI-REFRESH-P0-FIX1 END ---------- */


/* =============================================================
 * KingVerity — Typographic system（对标欧美头部商业站）
 * 生成：2026-11-09  依据：kingverity-typography-plan.md §3
 *
 * 用法：整段**追加**到 kingverity-child/assets/css/child-overrides.css 末尾。
 * 回滚：删除本段（自 "TYPO BEGIN" 至 "TYPO END"）。
 * 说明：各小节独立，可单删。
 * ============================================================= */

/* ---------- TYPO BEGIN ---------- */

/* T1 令牌：字号 / 行高 / 字距 / 行宽一次收口
 * 对标依据：Stripe h1 48·h2 32、Kroll 40/56·32、Control Risks 50·45、Vercel 48/64·32
 * 现行 56 / 36 / 22 / 17（比值 1.56 / 1.64 / 1.29，无模数）→ 44 / 32 / 23 / 17（1.375 / 1.391 / 1.353） */
:root {
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 23px;
  --fs-card: 16px;
  --lh-h1: 1.1;
  --lh-h2: 1.15;
  --lh-h3: 1.3;
  --tk-display: -.022em;
  --tk-h3: -.012em;
  --measure-prose: 620px;
  --measure-hero: 690px;
}

/* T2 标题尺度（原 h1,h2,h3 统一 line-height:1.2 / letter-spacing:-.01em） */
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tk-display);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tk-display);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tk-h3);
}

/* T2b 移动端重声明：父主题 @720 有 h1{font-size:34px} h2{26px}，同特异性，
 * 不重声明的话 44px 会一路漏到 390px 屏 */
@media (max-width: 1024px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
}

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* T3 断行控制（对标：Stripe 全站 text-wrap:pretty ×25 / balance ×6；Vercel、Ramp 标题全 balance）
 * 目的：消除「末行只剩 deposit.」这类寡妇行，不写死 <br> */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* T4 Hero 几何：左列 584px → 683px
 * 计算：container 1120 − padding 48 = 1072；gap 48；2fr:1fr → 左列 (1072−48)×2/3 = 682.7
 * h1 44px 下 CPL = 682.7 / (44×0.5) = 31.0 → 61 字符标题 2 行 */
@media (min-width: 1025px) {
  .kv-main > .wp-block-columns.hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero h1,
.kv-main .hero-grid h1 {
  max-width: var(--measure-hero);
}

/* T5 标题字色：品牌蓝 → 墨蓝（对标五站 Stripe/Vercel/Ramp/Control Risks/Moody's 标题全为墨黑，
 * 彩色只留给动作。彩色标题会让字号差异失效——眼睛先读颜色后读尺寸） */
.kv-main h1,
.kv-main h2,
.hero h1,
.page-hero h1,
.page-hero h2 {
  color: var(--kv-deep);
}

/* T5b 深色面上的标题必须反白。选择器刻意加长以压过 T5 */
.kv-main .is-style-kv-dark h1,
.kv-main .is-style-kv-dark h2,
.kv-main .dark h1,
.kv-main .dark h2,
.kv-main .kv-keyfacts h1,
.kv-main .kv-keyfacts h2,
.kv-main .cta-band h1,
.kv-main .cta-band h2,
.footer h1,
.footer h2 {
  color: #fff;
}

/* T6 卡片正文：15.5px（与全站 17 不一致）→ 16px，与正文留一档 */
.card p,
.wp-block-column.is-style-kv-card p,
.faq-a-inner {
  font-size: var(--fs-card);
  line-height: 1.6;
}

/* T7 步骤序号：44px 圆盘 + 6px 光晕（比所标的 22px 标题大 2 倍）→ 32px 无光晕 */
.grid-3 .step-num {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  box-shadow: none;
  margin: 0;
}

.grid-3 .kv-step-head .step-num { flex: 0 0 32px; }
.grid-3 .kv-step-head { gap: 12px; }
.grid-3 .kv-step-head h3 { font-size: var(--fs-h3); }

/* T8 步骤卡兜底：若实际 DOM 没有 .kv-step-head 包裹（首页疑似如此），
 * 让编号与标题强制同行。DOM 不匹配时为无副作用的空操作 */
.grid-3 > .wp-block-column:has(> .step-num) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.grid-3 > .wp-block-column:has(> .step-num) > .step-num {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.grid-3 > .wp-block-column:has(> .step-num) > h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.grid-3 > .wp-block-column:has(> .step-num) > p {
  grid-column: 1 / -1;
  margin-top: 12px;
}

/* T9 促销徽章：品牌红 → 深蓝。红只留给风险语义
 * （P0 批次已收掉装饰性红，此处是最后一处非风险用红） */
.badge-dark.plan-badge,
.kv-plan.is-featured > p:first-child {
  background: var(--kv-deep) !important;
}

/* T10 正文行宽：720px（≈85 CPL）→ 620px（≈73 CPL）
 * 订单页 / 定价页 / 账户页各有更高特异性的放宽规则，不受影响：
 *   store:2419 body.page-id-250 .article-body{max-width:1180px}
 *   child:209 .kv-pricing-page .kv-main .container.article-body{max-width:1120px}
 *   child:475 .woocommerce-account .article-body{max-width:1120px} */
.article-body {
  max-width: var(--measure-prose);
}

/* ---------- TYPO END ---------- */

/* ---------- TYPO-FIX1 BEGIN ---------- */
/* h1 44px → 40px：实测 44px 在 683px 列里无论是否 balance 都是 3 行（balance 只是把
   584/505/168 的寡妇行均衡成 407/399/452）；40px 才能压到 2 行且末行占比 74%。
   40px 仍在 B2B 区间内（Kroll 40 / Stripe 48 / Control Risks 50）。 */
:root { --fs-h1: 40px; }

/* ---------- TYPO-FIX1 END ---------- */

/* ---------- TYPO-FIX2 BEGIN ---------- */
/* 步骤卡：编号与标题同行的规则原本只写在 .grid-3 下，而首页实际用的是 .grid-2，
   导致 display:flex 空转、编号（44px）与标题堆成上下两行。改为不限容器。 */
.kv-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.kv-step-head .step-num,
.grid-2 .step-num,
.grid-3 .step-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  box-shadow: none;
  margin: 0;
}

.kv-step-head h3 {
  margin: 0;
  font-size: var(--fs-h3);
  white-space: normal;
  letter-spacing: -.012em;
}

/* ---------- TYPO-FIX2 END ---------- */

/* ---------- TYPO-FIX3 BEGIN ---------- */
/* 图标卡（首页 3 张 / 内页同类）：图标框 48px 独立成行在标题上方，切断阅读。
   改为 32px 内联，与标题首行基线对齐；正文回到下一行通栏。 */
.wp-block-column.is-style-kv-card:has(> .icon-box) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}

.wp-block-column.is-style-kv-card:has(> .icon-box) > .icon-box {
  grid-column: 1;
  grid-row: 1;
  width: 32px;
  height: 32px;
  margin: 1px 0 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  line-height: 1;
}

.wp-block-column.is-style-kv-card:has(> .icon-box) > h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.wp-block-column.is-style-kv-card:has(> .icon-box) > p:not(.icon-box) {
  grid-column: 1 / -1;
  margin-top: 14px;
}

/* ---------- TYPO-FIX3 END ---------- */

/* ---------- TYPO-FIX4 BEGIN ---------- */
/* 实测问题（1440px）：
 * 1) .kv-step-head 用 align-items:center 时，编号对齐的是整个 h3 盒子而非首行 →
 *    单行标题时编号比首行高 9px，两行标题时反而低 6px。改为 start + -1px 微调，
 *    使编号中心恒等于首行中心（23px × 1.3 行高，32px 徽标 → 偏移 1px）。
 * 2) 标题行数不同导致同排卡片正文起点错位：步骤卡差 30px、图标卡差 39px。
 *    给标题预留两行（2 × 1.3em）即可对齐。 */
.kv-step-head {
  align-items: start;
}

.kv-step-head .step-num {
  margin-top: -1px;
}

.kv-step-head h3,
.wp-block-column.is-style-kv-card:has(> .icon-box) > h3 {
  min-height: calc(2 * 1.3em);
}

/* ---------- TYPO-FIX4 END ---------- */

/* ---------- TYPO-FIX5 BEGIN ---------- */
/* 核心区块样式把 h3 的 margin-top 定死为 16px、把 .step-num 的 margin 归零，
 * 导致 FIX4 的 align-items:start + margin-top:-1px 全部失效（实测 -1px 变 0、h3 被顶低 16px）。
 * 这里用 !important 显式压制，并把卡片内子元素间距收回自己手里。 */
.kv-step-head {
  align-items: flex-start !important;
}

.kv-step-head > .step-num {
  align-self: flex-start !important;
  margin: -1px 0 0 0 !important;   /* 32px 徽标 vs 29.9px 行高，中心对齐首行 */
}

.kv-step-head > h3 {
  margin: 0 !important;
  min-height: calc(2 * 1.3em);
}

/* 图标卡：图标、标题、正文三个子元素的间距全部收口，避免核心样式各自为政 */
.wp-block-column.is-style-kv-card:has(> .icon-box) > .icon-box {
  margin: 1px 0 0 0 !important;
}

.wp-block-column.is-style-kv-card:has(> .icon-box) > h3 {
  margin: 0 !important;
  min-height: calc(2 * 1.3em);
}

.wp-block-column.is-style-kv-card:has(> .icon-box) > p:not(.icon-box) {
  margin: 14px 0 0 0 !important;
}

/* ---------- TYPO-FIX5 END ---------- */

/* ---------- TYPO-FIX6 BEGIN ---------- */
/* 图标卡等高拉伸后，grid 的 align-content 默认会把握余空间摊给各行：
   实测中间卡第一行 85.38px vs 其他 59.79px，正文被推低 26px。
   align-content:start 让行高只由内容决定，多余空间全部落到卡片底部。 */
.wp-block-column.is-style-kv-card:has(> .icon-box) {
  align-content: start;
}

/* ---------- TYPO-FIX6 END ---------- */

/* ---------- TYPO-FIX7 BEGIN ---------- */
/* 标题预留两行是为了桌面端同排卡片正文对齐；≤1024px 变单列后不再需要，
   反而会在单行标题下留 30px 空洞（实测 h3 高 60px 而内容仅 1 行）。 */
@media (max-width: 1024px) {
  .kv-step-head > h3,
  .wp-block-column.is-style-kv-card:has(> .icon-box) > h3 {
    min-height: 0;
  }
}

/* ---------- TYPO-FIX7 END ---------- */

/* ---------- TYPO-FIX8 BEGIN ---------- */
/* 移动端标题字号降到 20px（行高 26px），32px 的图标居中后偏低 4px（实测 delta=4）。
   缩到 28px 并留 -1px 补偿，使图标中心与首行中心重合。 */
@media (max-width: 1024px) {
  .wp-block-column.is-style-kv-card:has(> .icon-box) > .icon-box {
    width: 28px;
    height: 28px;
    margin: -1px 0 0 0 !important;
    font-size: .85rem;
  }

  .kv-step-head > .step-num {
    margin: -2px 0 0 0 !important;
  }
}

/* ---------- TYPO-FIX8 END ---------- */

/* ---------- TYPO-FIX9 BEGIN ---------- */
/* 1) 正文行宽封顶：/pricing/ 导语实测 1024px ≈ 120 CPL、/order/ 104–120 CPL，
 *    远超 45–75 的可读区间。用 ch 单位按字号自适应（17px × 0.5 × 66 ≈ 561px）。 */
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote {
  max-width: 66ch;
}

/* 2) 套餐卡 CTA 吸底：三张卡清单长度不同，按钮分别落在 1131 / … / … 高度，
 *    卡内出现大片悬空留白。改为纵向 flex + 按钮 margin-top:auto，三卡 CTA 对齐卡底。 */
.kv-plan {
  display: flex;
  flex-direction: column;
}

.kv-plan > .wp-block-buttons {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- TYPO-FIX9 END ---------- */

/* ---------- TYPO-FIX10 BEGIN ---------- */
/* FIX9 用了 > 直接子级，但 /order/ 与 /pricing/ 的段落嵌套在 section/div 里，
   实测仍为 104–120 CPL。改为任意层级，并按字号自适应（66ch）。 */
.article-body p,
.article-body li,
.article-body blockquote,
.article-body > .wp-block-group p {
  max-width: 66ch;
}

/* ---------- TYPO-FIX10 END ---------- */

/* ---------- TYPO-FIX11 BEGIN ---------- */
/* 深色带 H2（如 "You pay 30% up front and 70% before shipment. One bad supplier ends it all."）
 * 在 balance 下必然被拉成等长的两行（实测 570/569），断点落在 "before" 后，把短语劈开。
 * 实测：关 balance + max-width ≈ 24.5em(780px) → 两行 727/412，断点回到句号处。
 * 仅作用于深色带标题，不影响普通区块 h2。 */
.is-style-kv-dark h2,
.kv-keyfacts h2 {
  text-wrap: initial;
  max-width: 24.5em;
}

@media (max-width: 720px) {
  .is-style-kv-dark h2,
  .kv-keyfacts h2 {
    max-width: none;
    text-wrap: balance;
  }
}

/* ---------- TYPO-FIX11 END ---------- */

/* ---------- TYPO-FIX12 BEGIN ---------- */
/* FIX11 失效原因：.kv-main > .wp-block-group.is-style-kv-dark > *{max-width:1120px}
 * 特异性 (0,3,0) 压过了 .is-style-kv-dark h2 (0,1,1)，而 text-wrap 却生效了，
 * 结果标题变成 1069/70（末行只剩 "all."），比改前更差。
 * 这里用同等特异性 + !important 精确覆盖单个 h2。 */
.kv-main > .wp-block-group.is-style-kv-dark > h2,
.is-style-kv-dark h2 {
  max-width: 24.5em !important;
  text-wrap: initial !important;
}

@media (max-width: 720px) {
  .kv-main > .wp-block-group.is-style-kv-dark > h2,
  .is-style-kv-dark h2 {
    max-width: none !important;
    text-wrap: balance !important;
  }
}

/* ---------- TYPO-FIX12 END ---------- */

/* ---------- TYPO-FIX13 BEGIN ---------- */
/* FIX12 限宽后出现回退：.is-style-kv-dark > * 带 margin-left/right:auto，
   max-width 收紧到 784px 后自动外边距把标题居中（实测左右各 296.8px），
   而原始版式是左对齐。左边距归零即恢复。 */
.kv-main > .wp-block-group.is-style-kv-dark > h2 {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ---------- TYPO-FIX13 END ---------- */

/* ---------- TYPO-FIX14 BEGIN ---------- */
/* 深色带的兄弟元素（p / 图块）靠 max-width:1120px + margin:auto 居中，
   内容列左边界实测 153px（band 1426 宽、padding 24）。而 h2 限宽后 margin-left:0
   会贴到 24px，与兄弟元素错位 129px。用 calc 复刻同等偏移并对窄屏夹紧。 */
.kv-main > .wp-block-group.is-style-kv-dark > h2 {
  max-width: 24.5em !important;
  margin-left: max(0px, calc((100% - 1120px) / 2)) !important;
  margin-right: auto !important;
  text-wrap: initial !important;
}

/* ---------- TYPO-FIX14 END ---------- */

/* ---------- UNIFY-BEGIN ---------- */
/* ===== 1) h1 全站 40px + 与副标题 24px 间距 =====
 * 现状（实测）：首页 h1 40px、其余页 44px（我上一轮只改了 --fs-h1，没覆盖 .page-hero h1）；
 *              h1 margin-bottom:0 + 紧随 p margin-top:0 → 间距实测 0px。 */
.kv-main h1, .page-hero h1, .hero h1 {
  font-size: 40px !important;
  margin-bottom: 24px !important;
}

.kv-main h1 + p, .page-hero h1 + p, .hero h1 + p {
  margin-top: 0 !important;   /* 由 h1 的 margin-bottom 统一控制，避免相加 */
}

@media (max-width: 1024px) {
  .kv-main h1, .page-hero h1, .hero h1 { font-size: 36px !important; margin-bottom: 20px !important; }
}
@media (max-width: 720px) {
  .kv-main h1, .page-hero h1, .hero h1 { font-size: 30px !important; margin-bottom: 16px !important; }
}

/* ===== 2) 字号阶梯收敛：h1 40 / h2 32 / h3 23 =====
 * 现状（实测）：h2 有 32 与 28（正文区）两档；h3 有 23 / 20 / 19.2 三档。 */
.kv-main h2, .article-body h2 { font-size: 32px !important; }
.kv-main h3, .article-body h3 { font-size: 23px !important; }

@media (max-width: 1024px) {
  .kv-main h2, .article-body h2 { font-size: 28px !important; }
  .kv-main h3, .article-body h3 { font-size: 21px !important; }
}
@media (max-width: 720px) {
  .kv-main h2, .article-body h2 { font-size: 24px !important; }
  .kv-main h3, .article-body h3 { font-size: 20px !important; }
}

/* ===== 3) 圆角收敛为 3 档：8 控件 / 12 卡片 / 16 容器 =====
 * 现状（实测）：6 / 8 / 10 / 11(仅上圆角) / 12 / 14 / 16 并存。 */
.kv-plan,
.wp-block-column.is-style-kv-card,
.card,
.kv-sidebar-widget,
.kv-nav-card,
.wp-block-details,
.kv-plan-note {
  border-radius: 12px !important;
}

.kv-main .wp-block-image img,
.hero-img img,
.wp-block-image.hero-img img {
  border-radius: 16px !important;
}

/* 卡片内图片：上圆角跟随卡片，不再出现 11px 这种编外值 */
.wp-block-column.is-style-kv-card img,
.kv-plan img {
  border-radius: 12px 12px 0 0 !important;
}

.kv-main .btn,
.kv-main .wp-block-button__link,
.kv-main button,
.kv-main input[type="submit"],
.kv-main .search-field,
.kv-main .search-submit,
.kv-main .kv-promo-btn,
.kv-main .kv-author-logo {
  border-radius: 8px !important;
}

/* ===== 4) 按钮统一两档高度：44 常规 / 52 主 CTA =====
 * 现状（实测）：52 / 54 / 56 / 58 四种高度混用。 */
.kv-main .btn,
.kv-main .wp-block-button__link,
.kv-main button,
.kv-main input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  line-height: 1.2 !important;
}

.kv-main .btn-lg,
.kv-main .wp-block-button.btn-lg .wp-block-button__link {
  min-height: 52px !important;
  padding: 0 28px !important;
}

/* ===== 5) 徽章统一一种 ===== */
.kv-main .badge,
.kv-main .badge-dark,
.kv-main .plan-badge {
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

/* ---------- UNIFY-END ---------- */

/* ---------- UNIFY2-BEGIN ---------- */
/* 补漏 1：套餐卡内带浅底的段落是普通 .wp-block-paragraph（非 .kv-plan-note），
   实测仍为 6px 圆角。整块统一到 12px（无背景的段落视觉上无影响）。 */
.kv-plan .wp-block-paragraph,
.kv-plan > p {
  border-radius: 12px !important;
}

/* 补漏 2：input[type=submit] 不吃 inline-flex，高度由字号+内边距决定，
   实测 46px。显式给高度即可并入 44px 档。 */
.kv-main input[type="submit"],
.kv-main .search-submit {
  height: 44px !important;
}

/* ---------- UNIFY2-END ---------- */

/* ---------- AXIS-BEGIN ---------- */
/* 全站一条左轴 = 177px（= 1120 容器居中后 + 24px 内边距）。
 * 实测错位原因：
 *   .page-hero 自身有 24px 横向内边距 → h1 落在 201；
 *   .section 无内边距，但 .container.article-body 被 margin:auto 居中且限宽 620 → 正文落在 427。
 * 处理：去掉 page-hero / section 的横向内边距（.container 自身已有 24px，移动端不会贴边），
 *       并取消正文容器的自动居中。 */
.page-hero,
.section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.section > .container.article-body,
.section .container.article-body {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 页脚等其它 container 已在 177，无需处理；此处仅作兜底：确保 hero 内容器不再叠加内边距 */
.page-hero > .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- AXIS-END ---------- */

/* ---------- RHYTHM-BEGIN ---------- */
/* 1) hero 到正文的空隙 96 → 64
 * 拆解：hero padding-bottom 48 + section padding-top 24 + h1 margin-bottom 24。
 * 只压 hero 下内边距到 16，其余不动：16 + 24 + 24 = 64。 */
.page-hero {
  padding-bottom: 16px !important;
}

/* 2) 正文列 620 → 760，段落上限 66ch → 70ch
 * 620 在 1120 列里空 44%，读起来像被挤在左边；760 时空白降到 32%，
 * 同时 70ch ≈ 749px 仍在 45–75 的可读区间内。 */
.article-body {
  max-width: 760px;
}

.article-body p,
.article-body li,
.article-body blockquote {
  max-width: 70ch;
}

/* ---------- RHYTHM-END ---------- */

/* ---------- RISK-RULE-BEGIN ---------- */
/* 品牌红 #E60024 的唯一职责：风险 / 必填 / 错误。
 * 现状（全站实测）：只在 /order/ 的 .kv-req（必填星号）与 .kv-of-err（错误条）出现，
 * 营销页 0 次 —— 因为没有"风险标签"这类元素可供挂载，属内容缺口，不是样式缺失。
 * 本段定义规则与组件，内容侧一加 class 即生效，无需再改 CSS。 */

:root {
  --risk-strong: #C4001E;   /* 文字用（比 #E60024 略深，#FFFFFF 上对比 7.1:1） */
  --risk-base:   #E60024;   /* 描边、图标、小面积填充 */
  --risk-soft:   #FDECEC;   /* 浅底 */
}

/* 风险标签：小面积、胶囊形、≤2 处/页。用于风险卡、清单条目的前置标记。 */
.kv-risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--risk-soft);
  color: var(--risk-strong);
  border: 1px solid rgba(230, 0, 36, .25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* 风险文字分级：高 = 品牌红；中 = 琥珀（不用红，避免稀释） */
.risk-high, .kv-risk-high { color: var(--risk-strong) !important; }
.risk-med,  .kv-risk-med  { color: #B4540A !important; }

/* 图标危险态（既有类，统一到 token） */
.icon-box.danger {
  background: var(--risk-soft);
  color: var(--risk-base);
}

/* 必填与错误：统一走 token，避免第三个红值出现 */
.kv-req { color: var(--risk-base); }

/* 深色面上的风险标签需要反相，否则浅底在深蓝上看不清 */
.is-style-kv-dark .kv-risk-tag {
  background: rgba(230, 0, 36, .18);
  border-color: rgba(230, 0, 36, .45);
  color: #FF8080;
}

/* ---------- RISK-RULE-END ---------- */

/* ---------- RHYTHM2-BEGIN ---------- */
/* 5) 首页中段节奏：.kv-main 的第 4–7 个 div 是连续 4 段 .is-style-kv-alt
 *    （实测 468 + 648 + 857 + 534 ≈ 2,507px，背景全为 #F7F9FC），中间无换色，
 *    读者进入这一段就失去位置感。改为 白 / 浅 交替，只改第 2、4 段。
 *    注：用 nth-of-type 定位，依赖当前页面区块顺序；若日后增删首页板块需复核。 */
.kv-main > div.is-style-kv-alt:nth-of-type(5),
.kv-main > div.is-style-kv-alt:nth-of-type(7) {
  background: #FFFFFF !important;
}

/* 6) 移动端转化入口：.nav-cta 是 .nav-inner 的直接子元素，被 ≤1024 的规则整颗隐藏，
 *    导致手机上首屏没有任何下单入口。改为在 header 内常驻，并压缩尺寸以容纳。 */
@media (max-width: 1024px) {
  .nav-inner {
    gap: 8px;
  }

  .nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    margin-left: auto;
    white-space: nowrap;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }
}

@media (max-width: 360px) {
  .nav-cta {
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* ---------- RHYTHM2-END ---------- */

/* ---------- RHYTHM3-BEGIN ---------- */
/* 移动端 CTA 按钮等宽：homepage 两个 hero 按钮实测 260 / 223，堆叠后左参差。
   在 ≤720 让列内按钮组撑满，两枚按钮同宽（标准移动端做法）。 */
@media (max-width: 720px) {
  .kv-main .wp-block-column > .wp-block-buttons,
  .kv-main .wp-block-column > .wp-block-buttons .wp-block-button,
  .kv-main .wp-block-column > .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  .kv-main .wp-block-column > .wp-block-buttons {
    justify-content: stretch;
  }
}

/* ---------- RHYTHM3-END ---------- */

/* ---------- CTA-BAR-BEGIN ---------- */
/* 首页深色 CTA 色块 221px → 约 108px 窄条。
 * 现状：h2(37) + p(28) + 按钮组(52)，padding 48，视觉重量压过上方定价卡。
 * 改为左侧两行文字 + 右侧按钮的横条；用 :has(> .wp-block-buttons) 限定，
 * 不影响博客列表页那条订阅带（无按钮组）。文字内容一个字没动。 */
.cta-band:has(> .wp-block-buttons) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  row-gap: 4px;
  align-items: center;
  padding: 26px 32px !important;
}

.cta-band:has(> .wp-block-buttons) > h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
}

.cta-band:has(> .wp-block-buttons) > p {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.cta-band:has(> .wp-block-buttons) > .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 !important;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .cta-band:has(> .wp-block-buttons) {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 22px 20px !important;
  }

  .cta-band:has(> .wp-block-buttons) > .wp-block-buttons {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px !important;
    width: 100%;
  }

  .cta-band:has(> .wp-block-buttons) > .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }
}

/* ---------- CTA-BAR-END ---------- */

/* ---------- TAIL-TEXT-BEGIN ---------- */
/* 首页底部有 4 段裸文本（"What a supplier check actually covers" 等），
 * 实测：无 section 容器、段间距 0、正文宽 1120px = **104 字符/行**（正文其他处 66）。
 * 这是全站行宽最差的地方，且紧贴深色 CTA 色块下方，看起来像忘了排版。
 * 这里只修排版（宽度/间距/分隔线），不动文字与顺序。 */
.kv-main > h2 {
  margin: 64px 0 14px !important;
}

.kv-main > h2 + p,
.kv-main > p:not(.kv-faq-more) {
  max-width: 66ch !important;
  margin-top: 0 !important;
}

/* 第一段前加细分隔线，与上方深色色块分开 */
.kv-main > .cta-band + h2 {
  margin-top: 72px !important;
  padding-top: 56px !important;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .kv-main > h2 {
    margin-top: 44px !important;
  }

  .kv-main > .cta-band + h2 {
    margin-top: 48px !important;
    padding-top: 36px !important;
  }
}

/* ---------- TAIL-TEXT-END ---------- */

/* ---------- TAIL-TEXT2-BEGIN ---------- */
/* 补漏：底部 4 段正文原本满宽，看不出带有 margin:auto；一旦 max-width 收到 66ch
 * 就居中飘走（实测文字左边 359px，标题在 177px）。这里取消自动外边距，回到左轴。 */
.kv-main > h2 + p,
.kv-main > p:not(.kv-faq-more) {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ---------- TAIL-TEXT2-END ---------- */

/* ---------- TAIL-TEXT3-BEGIN ---------- */
/* 根因：首页尾部 4 段（h2 + p）是 .kv-main 的直接子元素，没有 .container 包裹，
 * 实测贴 x=0，比全站内容列（x=177）左移 177px。
 * 处理：用 calc 复刻 .container 的居中偏移（1120 列 + 24 内边距），与深色带标题同一手法。 */
.kv-main > h2 {
  margin-left: max(0px, calc((100% - 1120px) / 2 + 24px)) !important;
  margin-right: auto !important;
  max-width: 1072px;
}

.kv-main > h2 + p,
.kv-main > p:not(.kv-faq-more) {
  margin-left: max(0px, calc((100% - 1120px) / 2 + 24px)) !important;
  margin-right: auto !important;
  max-width: 66ch !important;
}

@media (max-width: 1120px) {
  .kv-main > h2,
  .kv-main > h2 + p,
  .kv-main > p:not(.kv-faq-more) {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}

/* ---------- TAIL-TEXT3-END ---------- */

/* ---------- TAIL-TEXT4-BEGIN ---------- */
/* 替代方案（无色块）：四段没有共同父容器，CSS 无法铺整块底色。
 * 改用「分隔线 + 更宽行宽」建立分区感：
 *   正文 66ch → 76ch（≈813px，接近用户偏好的宽度，仍在 45–80 可读区间）
 *   每段上方 1px 分隔线 + 72px 段距 + 48px 内边距 */
.kv-main > h2 {
  margin: 72px 0 14px !important;
  padding-top: 48px !important;
  border-top: 1px solid var(--border);
}

.kv-main > .cta-band + h2 {
  margin-top: 72px !important;
  padding-top: 56px !important;
}

.kv-main > h2 + p,
.kv-main > p:not(.kv-faq-more) {
  max-width: 76ch !important;
}

@media (max-width: 720px) {
  .kv-main > h2 {
    margin-top: 44px !important;
    padding-top: 32px !important;
  }

  .kv-main > .cta-band + h2 {
    margin-top: 44px !important;
    padding-top: 36px !important;
  }

  .kv-main > h2 + p,
  .kv-main > p:not(.kv-faq-more) {
    max-width: 100% !important;
  }
}

/* ---------- TAIL-TEXT4-END ---------- */

/* ---------- TAIL-TEXT5-BEGIN ---------- */
/* 修正：TAIL-TEXT4 用了 margin 简写（margin: 72px 0 14px），把此前设的
 * margin-left 一并重置为 0，导致 h2 贴到 x=0 而正文仍在 177，错位 177px。
 * 改用长写，只动上下，左侧偏移继续沿用 TAIL-TEXT3。 */
.kv-main > h2 {
  margin-top: 72px !important;
  margin-bottom: 14px !important;
  padding-top: 48px !important;
  border-top: 1px solid var(--border);
}

.kv-main > .cta-band + h2 {
  margin-top: 72px !important;
  padding-top: 56px !important;
}

@media (max-width: 720px) {
  .kv-main > h2 {
    margin-top: 44px !important;
    padding-top: 32px !important;
  }

  .kv-main > .cta-band + h2 {
    margin-top: 44px !important;
    padding-top: 36px !important;
  }
}

/* ---------- TAIL-TEXT5-END ---------- */

/* ---------- TAIL-TEXT6-BEGIN ---------- */
/* 根因：TAIL-TEXT4 的 margin 简写展开出 margin-left:0 !important，
 * 后续规则若只写 margin-top/bottom，就压不过它 → h2 一直是 x=0。
 * 这里把左侧偏移显式写回，与正文同轴（177）。 */
.kv-main > h2 {
  margin-left: max(0px, calc((100% - 1120px) / 2 + 24px)) !important;
  margin-right: auto !important;
  margin-top: 72px !important;
  margin-bottom: 14px !important;
  padding-top: 48px !important;
  border-top: 1px solid var(--border);
}

.kv-main > .cta-band + h2 {
  margin-top: 72px !important;
  padding-top: 56px !important;
}

@media (max-width: 1120px) {
  .kv-main > h2 {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}

@media (max-width: 720px) {
  .kv-main > h2 {
    margin-top: 44px !important;
    padding-top: 32px !important;
  }

  .kv-main > .cta-band + h2 {
    margin-top: 44px !important;
    padding-top: 36px !important;
  }
}

/* ---------- TAIL-TEXT6-END ---------- */

/* ---------- COLOR-REVERT-BEGIN ---------- */
/* 回滚到生产原版配色（实测生产：h1 #003E97、h2 #003E97、h3 #062049） */
.kv-main h1,
.kv-main h2,
.hero h1,
.page-hero h1,
.page-hero h2,
.article-body h2 {
  color: var(--kv-blue) !important;
}

/* 深色面反白必须在上面之后重新声明，否则会被蓝色覆盖 */
.kv-main .is-style-kv-dark h1,
.kv-main .is-style-kv-dark h2,
.kv-main .dark h1,
.kv-main .dark h2,
.kv-main .kv-keyfacts h1,
.kv-main .kv-keyfacts h2,
.kv-main .cta-band h1,
.kv-main .cta-band h2,
.footer h1,
.footer h2 {
  color: #fff !important;
}

/* 恢复红色竖线（原 child:319 / 320，P0 批次曾改为蓝/半透明） */
.page-hero p {
  border-left-color: var(--kv-red) !important;
}

.single-post .article-body h2 {
  border-left-color: var(--kv-red) !important;
}

/* ---------- COLOR-REVERT-END ---------- */

/* ---------- PILLAR-CSS-BEGIN ---------- */
/* KingVerity pillar — scoped to .kv-pillar */
.kv-pillar{--ink:#15181d; --ink2:#41474f; --ink3:#666e79; --line:#e6e8ec;
--bg:#fbfbfc; --paper:#fff; --accent:#1b3a6b; --warn:#8a4b12;
--warnbg:#fdf6ec; --notebg:#f4f6fa;}.kv-pillar *{margin:0;padding:0;box-sizing:border-box}.kv-pillar{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Georgia,"Times New Roman",sans-serif;
font-size:17px;line-height:1.72;-webkit-font-smoothing:antialiased}.kv-pillar .wrap{max-width:740px;margin:0 auto;padding:52px 22px 90px;background:var(--paper);
box-shadow:0 0 0 1px var(--line)}.kv-pillar .crumb{font-size:12px;color:var(--ink3);margin-bottom:16px}.kv-pillar .crumb a{color:var(--ink3);text-decoration:none;border-bottom:1px solid var(--line)}.kv-pillar .crumb a:hover{color:var(--blue)}.kv-pillar .eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink3);font-weight:600;margin-bottom:14px}.kv-pillar h1{font-size:33px;line-height:1.24;letter-spacing:-.02em;font-weight:700;margin-bottom:16px}.kv-pillar .byline{font-size:13px;color:var(--ink3);border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:28px}.kv-pillar .byline b{color:var(--ink2);font-weight:600}.kv-pillar .byline span{margin-right:14px}.kv-pillar .byline-mark{height:15px;width:auto;vertical-align:-3px;margin-right:6px}.kv-pillar .zhnote{font-size:13px;color:var(--ink3);font-style:italic;margin:-6px 0 22px}.kv-pillar p{margin-bottom:16px;color:var(--ink2)}.kv-pillar .lede{font-size:18.5px;line-height:1.66;color:var(--ink);margin-bottom:20px}.kv-pillar .lede strong{font-weight:700}.kv-pillar h2{font-size:23px;line-height:1.34;letter-spacing:-.01em;font-weight:700;margin:44px 0 14px;color:var(--ink)}.kv-pillar h2:first-of-type{margin-top:34px}.kv-pillar h3{font-size:17px;font-weight:700;margin:26px 0 8px;color:var(--ink)}.kv-pillar b, .kv-pillar strong{color:var(--ink)}.kv-pillar em{font-style:italic}.kv-pillar .sf{font-weight:700;color:var(--ink)}.kv-pillar ul, .kv-pillar ol{margin:0 0 16px 22px;color:var(--ink2)}.kv-pillar li{margin-bottom:8px}.kv-pillar a{color:var(--accent);text-decoration:none;border-bottom:1px solid #c9d3e4}.kv-pillar a:hover{border-bottom-color:var(--accent)}.kv-pillar .takeaways{background:var(--notebg);border:1px solid #dfe5ef;border-radius:6px;padding:20px 24px;margin:24px 0 26px}.kv-pillar .takeaways .h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:12px}.kv-pillar .takeaways ul{margin:0 0 0 20px;font-size:15.5px}.kv-pillar .takeaways li{margin-bottom:7px}.kv-pillar .toc{border:1px solid var(--line);border-radius:6px;padding:16px 20px;margin:0 0 34px;font-size:14.5px}.kv-pillar .toc .h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3);font-weight:700;margin-bottom:10px}.kv-pillar .toc ol{margin:0 0 0 20px;columns:2;column-gap:28px}.kv-pillar .toc li{margin-bottom:5px;break-inside:avoid}.kv-pillar .fig{margin:26px 0 30px}.kv-pillar .fig img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:5px;background:#fff}.kv-pillar .fig img.crop{aspect-ratio:16/9;object-fit:cover;object-position:center top}.kv-pillar .fig figcaption{font-size:13px;line-height:1.6;color:var(--ink3);margin-top:9px}.kv-pillar .fig figcaption b{color:var(--ink2)}.kv-pillar .term{background:var(--notebg);border-left:3px solid var(--accent);border-radius:0 4px 4px 0;
padding:16px 19px;margin:20px 0 22px}.kv-pillar .term p{margin-bottom:8px;font-size:16px}.kv-pillar .term p:last-child{margin-bottom:0}.kv-pillar .term .t{font-weight:700;color:var(--ink)}.kv-pillar .cav{font-size:15.5px;color:var(--warn);background:var(--warnbg);border-left:3px solid #d9a86a;
border-radius:0 4px 4px 0;padding:11px 15px;margin:0 0 18px}.kv-pillar .cav b{color:#6d3a0b}.kv-pillar .tw{overflow-x:auto;margin:22px 0 26px}.kv-pillar table{width:100%;border-collapse:collapse;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.kv-pillar th{background:#f2f4f7;text-align:left;padding:10px 11px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;
color:#5d6570;font-weight:700;border-bottom:1px solid #d8dce3;vertical-align:bottom}.kv-pillar td{padding:10px 11px;border-bottom:1px solid #eef0f3;vertical-align:top;color:var(--ink2);line-height:1.55}.kv-pillar tr:last-child td{border-bottom:none}.kv-pillar .mono{font-family:ui-monospace,Consolas,monospace;font-size:13px;color:var(--ink)}.kv-pillar .zh{font-size:13.5px;color:var(--ink)}.kv-pillar .sub{font-size:12px;color:var(--ink3)}.kv-pillar .box{border:1px solid var(--line);border-radius:6px;padding:18px 20px;margin:26px 0;background:#fff}.kv-pillar .box .h{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3);font-weight:600;margin-bottom:10px}.kv-pillar .box p:last-child{margin-bottom:0}.kv-pillar .faq{margin-top:34px}.kv-pillar .faq h3.q{font-size:17px;margin:24px 0 7px;color:var(--ink)}.kv-pillar .faq p{font-size:16px;margin-bottom:0}.kv-pillar hr{border:none;border-top:1px solid var(--line);margin:40px 0}.kv-pillar .foot{font-size:14px;color:var(--ink3);margin-top:34px;padding-top:20px;border-top:1px solid var(--line)}.kv-pillar .foot p{font-size:13.5px;color:var(--ink3);margin-bottom:9px}.kv-pillar .foot b{color:var(--ink2)}.kv-pillar .foot a{font-size:inherit}.kv-pillar .svgscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){.kv-pillar .svgscroll img{min-width:696px}
}
@media(max-width:640px){.kv-pillar{font-size:16px}.kv-pillar .wrap{padding:30px 16px 60px;box-shadow:none}.kv-pillar h1{font-size:25px}.kv-pillar h2{font-size:20px;margin-top:34px}.kv-pillar .lede{font-size:17px}.kv-pillar .toc ol{columns:1}
}
/* 嵌入主题容器后取消独立页面的宽度与居中 */
.kv-pillar .wrap{max-width:none;margin:0 auto;padding:0;box-shadow:none;background:transparent}
.kv-pillar{background:transparent}
.kv-pillar .tw{overflow-x:auto}

/* ---------- PILLAR-CSS-END ---------- */

/* ---------- PILLAR-CSS-A1-BEGIN ---------- */
/* 作用域：.kv-pillar */
.kv-pillar{--ink:#15181d; --ink2:#41474f; --ink3:#666e79; --line:#e6e8ec;
--bg:#fbfbfc; --paper:#fff;
--accent:#003E97; --deep:#062049;
--notebg:#f4f6fa; --keybg:#eef3fb;}.kv-pillar *{margin:0;padding:0;box-sizing:border-box}.kv-pillar{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Georgia,"Times New Roman",sans-serif;
font-size:17px;line-height:1.72;-webkit-font-smoothing:antialiased}.kv-pillar .wrap{max-width:760px;margin:0 auto;padding:52px 22px 90px;background:var(--paper);
box-shadow:0 0 0 1px var(--line)}.kv-pillar .crumb{font-size:12px;color:var(--ink3);margin-bottom:16px}.kv-pillar .crumb a{color:var(--ink3);text-decoration:none;border-bottom:1px solid var(--line)}.kv-pillar .crumb a:hover{color:var(--accent)}.kv-pillar .eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink3);font-weight:600;margin-bottom:14px}.kv-pillar h1{font-size:40px;line-height:1.18;letter-spacing:-.02em;font-weight:700;margin-bottom:16px;color:var(--accent)}.kv-pillar .byline{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:13px;color:var(--ink3);border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:28px}.kv-pillar .byline b{color:var(--ink2);font-weight:600}.kv-pillar .byline span{margin-right:0;white-space:nowrap;min-width:0}.kv-pillar .byline a{color:var(--ink2);border-bottom:1px dotted #c9d3e4}.kv-pillar .byline a:hover{color:var(--accent);border-bottom-color:var(--accent)}.kv-pillar .zhnote{font-size:13px;color:var(--ink3);font-style:italic;margin:-6px 0 22px}.kv-pillar p{margin-bottom:16px;color:var(--ink2)}.kv-pillar .key-answer{background:var(--keybg);border-left:4px solid var(--accent);border-radius:8px;
padding:20px 24px;margin:0 0 22px;font-size:17px;line-height:1.68;color:var(--ink)}.kv-pillar .key-answer strong{font-weight:700;color:var(--deep)}.kv-pillar h2{font-size:32px;line-height:1.26;letter-spacing:-.015em;font-weight:700;margin:46px 0 14px;
color:var(--accent);border-left:4px solid #E60024;padding-left:12px}.kv-pillar h2:first-of-type{margin-top:36px}.kv-pillar h3{font-size:23px;line-height:1.34;font-weight:700;margin:28px 0 8px;color:var(--deep)}.kv-pillar h4{font-size:17px;font-weight:700;margin:22px 0 6px;color:var(--deep)}.kv-pillar b, .kv-pillar strong{color:var(--ink)}.kv-pillar em{font-style:italic}.kv-pillar ul, .kv-pillar ol{margin:0 0 16px 22px;color:var(--ink2)}.kv-pillar li{margin-bottom:8px}.kv-pillar a{color:var(--accent);text-decoration:none;border-bottom:1px solid #c9d3e4}.kv-pillar a:hover{border-bottom-color:var(--accent)}.kv-pillar .takeaways{background:var(--notebg);border:1px solid #dfe5ef;border-radius:6px;padding:20px 24px;margin:24px 0 26px}.kv-pillar .takeaways .h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:12px}.kv-pillar .takeaways ul{margin:0 0 0 20px;font-size:15.5px}.kv-pillar .takeaways li{margin-bottom:7px}.kv-pillar .toc{border:1px solid var(--line);border-radius:6px;padding:16px 20px;margin:0 0 34px;font-size:14.5px}.kv-pillar .toc .h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3);font-weight:700;margin-bottom:10px}.kv-pillar .toc ol{margin:0 0 0 20px;columns:2;column-gap:28px}.kv-pillar .toc li{margin-bottom:5px;break-inside:avoid}.kv-pillar .tw{overflow-x:auto;margin:22px 0 26px}.kv-pillar table{width:100%;min-width:640px;border-collapse:collapse;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.kv-pillar th{background:#f2f4f7;text-align:left;padding:10px 11px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;
color:#5d6570;font-weight:700;border-bottom:1px solid #d8dce3;vertical-align:bottom}.kv-pillar td{padding:10px 11px;border-bottom:1px solid #eef0f3;vertical-align:top;color:var(--ink2);line-height:1.55}.kv-pillar tr:last-child td{border-bottom:none}.kv-pillar .cav{font-size:15.5px;color:#8a4b12;background:#fdf6ec;border-left:3px solid #d9a86a;
border-radius:0 4px 4px 0;padding:11px 15px;margin:0 0 18px}.kv-pillar .cav b{color:var(--deep)}.kv-pillar .box{border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:26px 0;background:#fff}.kv-pillar .box .h{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3);font-weight:600;margin-bottom:10px}.kv-pillar .box p:last-child{margin-bottom:0}.kv-pillar .faq{margin-top:10px}.kv-pillar .faq h3{font-size:23px;margin:26px 0 8px;color:var(--deep)}.kv-pillar .faq p{font-size:17px;margin-bottom:0}.kv-pillar hr{border:none;border-top:1px solid var(--line);margin:40px 0}.kv-pillar .foot{font-size:14px;color:var(--ink3);margin-top:34px;padding-top:20px;border-top:1px solid var(--line)}.kv-pillar .foot p{font-size:13.5px;color:var(--ink3);margin-bottom:9px}.kv-pillar .foot b{color:var(--ink2)}.kv-pillar .foot a{font-size:inherit}
@media(max-width:1024px){.kv-pillar h1{font-size:36px}.kv-pillar h2{font-size:28px}.kv-pillar h3{font-size:21px}
}
@media(max-width:720px){.kv-pillar{font-size:16px}.kv-pillar .wrap{padding:30px 16px 60px;box-shadow:none}.kv-pillar h1{font-size:30px}.kv-pillar h2{font-size:24px;margin-top:34px}.kv-pillar h3{font-size:20px}.kv-pillar .key-answer{font-size:16px;padding:18px 20px}.kv-pillar .toc ol{columns:1}
}
/* 嵌入主题容器后取消独立页面宽度 */
.kv-pillar .wrap{max-width:none;margin:0 auto;padding:0;box-shadow:none;background:transparent}
.kv-pillar{background:transparent}
.kv-pillar .tw{overflow-x:auto}

/* ---------- PILLAR-CSS-A1-END ---------- */
