/* =====================================================================
   Component CSS ported from the classic theme's style.css. Brand colors
   and fonts now come from theme.json (referenced here as
   var(--wp--preset--color--*) / var(--wp--preset--font-family--*)) so
   they stay a single source of truth editable from the Site Editor —
   this file carries layout/spacing/hover-state CSS theme.json can't
   express, reusing the same .khc-* class names as the classic theme so
   seeded block content can opt into this styling via block className.
   ===================================================================== */

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, blockquote { text-wrap: pretty; }
a { text-decoration: none; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease; }

/* WordPress adds a default block-gap margin-top to the children of any
   "flow layout" Group block (zeroed automatically for its own native
   grid/flex layouts, but not for a plain div turned into a custom layout
   via one of our .khc-* classes). Left in place, that stray margin
   stacks on top of the explicit spacing already ported from the classic
   theme's CSS below — misaligning grid columns, exposing a grid's
   background as a stray bar, or just adding extra vertical gaps that
   accumulate down a page. This showed up repeatedly across different
   components before being generalized here: reset it for the children
   of every one of this theme's own components (any element with a
   "khc-" class, at any nesting depth) rather than enumerating each
   affected parent by hand — every real gap is already provided
   explicitly by this file, so there's nothing this reset needs to
   preserve. Also covers `.wp-block-post-content` directly — the
   `<!-- wp:post-content /-->` template tag (templates/front-page.html
   etc.) renders as its own wrapping div around the page's top-level
   sections, itself a "flow layout" element with no "khc-" class, so it's
   what actually needs resetting here (not `main.wp-block-group`, which
   is one level further out and doesn't parent these sections directly).
   This is what let a stray gap show through between two colored sections
   placed back-to-back (Meet Keith / Table Group) once they became
   adjacent. */
[class*="khc-"] > *,
.wp-block-post-content > * {
	margin-block-start: 0 !important;
}

/* These two are also empty placeholder boxes (no content, sized only via
   `aspect-ratio`) sitting as grid items. A "constrained"-layout ancestor
   forces `max-width` + `margin-inline:auto !important` onto them, which
   for an element with no intrinsic content collapses it to zero width
   instead of letting it stretch to fill its grid column — reset just
   these two rather than every `khc-*` element broadly, since a wider
   reset also strips the (wanted) width-capping off other sections like
   the CTA panels. */
.khc-portrait,
.khc-team-row__photo {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* =====================================================================
   PAGE SHELL / HEADER / FOOTER
   ===================================================================== */
.khc-top-rule { height: 4px; background: var(--wp--preset--color--red); }

/* =====================================================================
   CONTAINERS — applied directly on each section (matching the classic
   theme exactly), not via WordPress's per-block "constrained" layout
   type. That WP mechanism caps a block's *children*, never the block
   itself — fine for a plain section, but silently fails to cap the
   overall width of any element that is ALSO a CSS grid display
   container (the cap lands on individual grid *items* instead, which
   doesn't shrink the grid), and generates a shared per-config CSS class
   that's easy to reason about wrong. Plain, explicit classes sidestep
   the whole problem. */
.khc-container { margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; box-sizing: border-box; }
.khc-container--home { max-width: 1200px; }
.khc-container--about,
.khc-container--schedule { max-width: 1150px; }
.khc-container--articles { max-width: 1100px; }
.khc-container--article { max-width: 760px; }
.khc-container--testimonials { max-width: 1000px; }

.khc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 249, 247, 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.khc-header__inner { max-width: 1200px; margin: 0 auto; padding: 18px 32px; gap: 24px; }
.khc-header .wp-block-site-logo img { height: 34px; width: auto; }
.khc-header .wp-block-navigation-item__content { color: var(--wp--preset--color--charcoal); }
.khc-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--red-hover); }
.khc-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--red); }
.khc-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream); }

/* Pin the footer to the bottom of the viewport on short pages, matching the
   classic theme's .khc-page flex trick — WP's block-theme front end wraps
   header/main/footer template parts in .wp-site-blocks, so that's the flex
   container here instead of a theme-authored wrapper class. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > footer.wp-block-template-part { margin-top: auto; }

.khc-footer { border-top: 1px solid var(--wp--preset--color--hairline); }
.khc-footer__inner { max-width: 1200px; margin: 0 auto; padding: 40px 32px; gap: 24px; }
.khc-footer__copy { font-size: 14px; color: var(--wp--preset--color--text-light); }
.khc-footer .wp-block-navigation-item__content { font-size: 14px; color: var(--wp--preset--color--text-light); }
.khc-footer .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--red); }

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.khc-hairline-grid { display: grid; gap: 2px; background: var(--wp--preset--color--hairline); border: 1px solid var(--wp--preset--color--hairline); }
.khc-hairline-grid--3up { grid-template-columns: repeat(3, 1fr); }
.khc-hairline-grid--2up { grid-template-columns: repeat(2, 1fr); }
.khc-hairline-grid--stack { grid-template-columns: 1fr; }

.khc-rule { display: inline-block; width: 22px; height: 1px; background: var(--wp--preset--color--red); }

/* =====================================================================
   TYPOGRAPHY UTILITIES
   ===================================================================== */
.khc-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--red); margin-bottom: 16px; }
.khc-eyebrow--muted { color: var(--wp--preset--color--text-lightest); }

.khc-h1 { font-size: 52px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 22px; }
.khc-h1--about { font-size: 46px; margin-bottom: 16px; }
.khc-h1--articles { font-size: 44px; margin-bottom: 16px; }
.khc-h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
.khc-h2--center { text-align: center; }
.khc-h2--lg { font-size: 32px; }
.khc-h2--tight { font-size: 34px; line-height: 1.15; }
.khc-h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.3; }

.khc-lede { font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--text-muted); max-width: 520px; margin: 0 0 30px; }
.khc-lede--tight { font-weight: 600; font-size: 20px; line-height: 1.55; max-width: none; margin-bottom: 20px; }
.khc-lede--intro { max-width: 600px; margin-bottom: 44px; font-size: 16.5px; line-height: 1.6; }
.khc-lede--schedule { max-width: 620px; margin-bottom: 52px; }
.khc-lede--articles { max-width: 600px; margin-bottom: 44px; }

.khc-body { font-size: 15px; line-height: 1.65; color: var(--wp--preset--color--text-muted); margin: 0 0 16px; }
.khc-body--small { font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.khc-body--on-dark { color: var(--wp--preset--color--on-dark-body); font-size: 16.5px; line-height: 1.7; margin-bottom: 20px; }
.khc-body--long { font-size: 16px; line-height: 1.75; color: var(--wp--preset--color--text-body); margin-bottom: 18px; }
.khc-body--last,
.khc-body--long.khc-body--last { margin-bottom: 0; }

.khc-link { font-size: 15px; font-weight: 700; color: var(--wp--preset--color--red); border-bottom: 1.5px solid rgba(200, 16, 46, .4); padding-bottom: 2px; }
.khc-link:hover { color: var(--wp--preset--color--red-hover); }
.khc-link--secondary { color: var(--wp--preset--color--charcoal); border-bottom: 1.5px solid rgba(43, 49, 56, .3); padding-bottom: 2px; }
.khc-link--secondary:hover { color: var(--wp--preset--color--charcoal-hover); }
.khc-link--on-dark { color: #fff; border-bottom: 1.5px solid rgba(200, 16, 46, .9); padding-bottom: 3px; }
.khc-link--on-dark:hover { color: var(--wp--preset--color--red-tint); }

.khc-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--wp--preset--color--text-muted); }
.khc-list li { margin-bottom: 4px; }

.khc-btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* =====================================================================
   BUTTON VARIANTS (background/text color comes from theme.json; size/shape
   does not, since theme.json's elements.button has no padding/line-height —
   ported from the classic theme's .khc-btn base class)
   ===================================================================== */
.wp-block-button__link { display: inline-block; font-size: 15px; padding: 14px 26px; line-height: 1.2; text-align: center; }
.wp-block-button.khc-btn--nav .wp-block-button__link { font-size: 14px; padding: 10px 20px; }
.wp-block-button.khc-btn--dark .wp-block-button__link { background: var(--wp--preset--color--charcoal); color: #fff; padding: 15px 28px; }
.wp-block-button.khc-btn--dark.khc-btn--nav .wp-block-button__link { padding: 10px 20px; }
.wp-block-button.khc-btn--dark .wp-block-button__link:hover { background: var(--wp--preset--color--charcoal-hover); }
.wp-block-button.khc-btn--on-red .wp-block-button__link,
.wp-block-button.khc-btn--on-dark .wp-block-button__link { background: #fff; color: var(--wp--preset--color--red); padding: 16px 30px; }
.wp-block-button.khc-btn--on-red .wp-block-button__link:hover,
.wp-block-button.khc-btn--on-dark .wp-block-button__link:hover { background: var(--wp--preset--color--cream-alt); color: var(--wp--preset--color--red-hover); }

/* =====================================================================
   HOME
   ===================================================================== */
.khc-hero { padding-top: 72px; padding-bottom: 84px; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.khc-hero__graphic-img { max-width: 440px; margin-left: auto; }

.khc-pillars { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--wp--preset--color--hairline); }
.khc-pillars .khc-h2 { margin-bottom: 44px; }
.khc-pillar-card { background: #fff; padding: 30px 26px; border-top: 4px solid var(--wp--preset--color--red); }

.khc-table-group { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--cream); padding-left: 32px; padding-right: 32px; padding-top: 72px; padding-bottom: 0; }
.khc-table-group--about { padding-top: 64px; }
.khc-table-group__inner { margin: 0 auto; }
.khc-table-group--home .khc-table-group__inner { max-width: 1200px; }
.khc-table-group--about .khc-table-group__inner { max-width: 1150px; }
.khc-table-group__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.khc-table-group--about .khc-table-group__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.khc-table-group__logo-img { height: 100px; width: auto; margin-bottom: 26px; }
.khc-table-group--home .khc-h2 { font-size: 32px; }
.khc-table-group--about .khc-h2 { font-size: 30px; }

.khc-discipline-rows { display: flex; flex-direction: column; gap: 10px; }
.khc-discipline-row { background: var(--wp--preset--color--charcoal-raised); border-left: 4px solid var(--wp--preset--color--red); padding: 16px 20px; font-size: 14.5px; font-weight: 600; }
.khc-discipline-rows--staircase .khc-discipline-row { padding: 14px 18px; font-size: 14px; }
.khc-discipline-rows--staircase .khc-discipline-row:nth-child(1) { margin-left: 0; }
.khc-discipline-rows--staircase .khc-discipline-row:nth-child(2) { margin-left: 16px; }
.khc-discipline-rows--staircase .khc-discipline-row:nth-child(3) { margin-left: 32px; }
.khc-discipline-rows--staircase .khc-discipline-row:nth-child(4) { margin-left: 48px; }

.khc-book-series { margin-top: 56px !important; padding-top: 8px; }
.khc-book-series__img { width: 100%; max-width: 980px; margin: 0 auto; }
.khc-book-series--about { max-width: 1150px; margin: 48px auto 0; padding: 0; }
.khc-book-series--about .khc-book-series__img { max-width: 900px; }

.khc-video-testimonial { padding-top: 84px; padding-bottom: 84px; }
.khc-video-testimonial__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 52px; align-items: center; }
.khc-video-testimonial__player { background: var(--wp--preset--color--charcoal); }
.khc-video-testimonial__player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.khc-video-testimonial .khc-h2 { margin-bottom: 16px; }
.khc-video-testimonial .khc-body { font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }

.khc-pull-quote { margin: 0; border-left: 3px solid var(--wp--preset--color--red); padding-left: 16px; }
.khc-pull-quote p { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 15.5px; line-height: 1.6; color: var(--wp--preset--color--text-body); margin: 0 0 8px; }
.khc-pull-quote p.khc-pull-quote__attribution { font-family: var(--wp--preset--font-family--sans); font-style: normal; margin: 0; }
.khc-pull-quote__name { font-size: 13px; font-weight: 700; }
.khc-pull-quote__title { font-size: 12.5px; color: var(--wp--preset--color--text-light); }

.khc-meet-keith { background: var(--wp--preset--color--cream-alt); padding: 80px 0; }
.khc-meet-keith__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.khc-portrait { background: var(--wp--preset--color--hairline); border-radius: 3px; overflow: hidden; aspect-ratio: 1 / 1; }
.khc-portrait--5-6 { aspect-ratio: 5 / 6; }
.khc-portrait--4-5 { aspect-ratio: 4 / 5; }
.khc-portrait img { width: 100%; height: 100%; object-fit: cover; }

.khc-credential-section { padding-top: 88px; padding-bottom: 88px; }
.khc-credential-panel { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--cream); padding: 52px 48px; margin-bottom: 20px; }
.khc-credential-panel__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 52px; align-items: center; }
.khc-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--wp--preset--color--red); padding: 7px 14px; margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.khc-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--red); }

.khc-stat-tiles { display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .12); }
.khc-stat-tile { background: var(--wp--preset--color--charcoal-raised); padding: 22px 24px; }
.khc-stat-tile--red { background: var(--wp--preset--color--red); }
.khc-stat-tile__number { font-size: 30px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; }
.khc-stat-tile__caption { font-size: 13px; line-height: 1.45; color: var(--wp--preset--color--on-dark-muted); }
.khc-stat-tile__highlight { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.35; }

.khc-cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.khc-cert-card { border: 1px solid var(--wp--preset--color--hairline); background: #fff; padding: 28px 26px; }
.khc-chip-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.khc-chip { font-size: 11px; font-weight: 700; background: var(--wp--preset--color--cream-alt); padding: 5px 9px; color: var(--wp--preset--color--text-muted); }

.khc-testimonials { background: var(--wp--preset--color--cream-alt); padding: 80px 0; }
.khc-testimonials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.khc-testimonial__quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 19px; line-height: 1.6; margin: 0 0 20px; }
.khc-testimonial__name { font-size: 14.5px; font-weight: 700; margin: 0; }
.khc-testimonial__title { font-size: 13.5px; color: var(--wp--preset--color--text-light); margin: 0; }

.khc-client-logos { padding: 72px 0; }
.khc-client-logos--about { padding: 64px 0; background: var(--wp--preset--color--cream-alt); }
.khc-client-logos__grid { display: grid; gap: 16px; }
.khc-client-logos--home .khc-client-logos__grid { grid-template-columns: repeat(5, 1fr); }
.khc-client-logos--about .khc-client-logos__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.khc-client-logos__cell { border: 1px solid var(--wp--preset--color--hairline); background: #fff; display: flex; align-items: center; justify-content: center; height: 64px; }
.khc-client-logos__cell img { filter: grayscale(1); max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; }

.khc-cta-section { background: var(--wp--preset--color--red); padding: 64px 0; margin-bottom: 96px; }
.khc-cta-panel { padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.khc-cta-panel--red { padding: 0; }
.khc-cta-panel--dark { background: var(--wp--preset--color--charcoal); margin-top: 64px !important; padding: 48px 44px; }
.khc-cta-panel__heading { color: #fff; font-weight: 700; margin: 0 0 10px; }
.khc-cta-panel--red .khc-cta-panel__heading { font-size: 28px; }
.khc-cta-panel--dark .khc-cta-panel__heading { font-size: 25px; margin-bottom: 8px; }
.khc-cta-panel__sub { margin: 0; font-size: 16px; }
.khc-cta-panel--red .khc-cta-panel__sub { color: var(--wp--preset--color--red-tint); }
.khc-cta-panel--dark .khc-cta-panel__sub { color: var(--wp--preset--color--on-dark-body); font-size: 15.5px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.khc-about-bio { padding-top: 64px; padding-bottom: 72px; }
.khc-about-bio__grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 56px; align-items: start; }
.khc-about-bio__side { display: flex; flex-direction: column; gap: 20px; }
.khc-credentials-card { border: 1px solid var(--wp--preset--color--hairline); background: #fff; border-top: 4px solid var(--wp--preset--color--red); padding: 20px 22px; }
.khc-credentials-card .khc-eyebrow { font-size: 10.5px; margin-bottom: 10px; color: var(--wp--preset--color--red); }
.khc-credentials-card__list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.4; list-style: none; margin: 0; padding: 0; }
.khc-about-bio__title { font-size: 19px; font-weight: 600; margin: 0 0 8px; line-height: 1.55; }
.khc-about-bio__subtitle { font-size: 15px; color: var(--wp--preset--color--text-light); margin: 0 0 26px; line-height: 1.5; }

.khc-team { padding-top: 76px; padding-bottom: 76px; }
.khc-team-row { background: #fff; padding: 32px 34px; display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: start; margin-bottom: 2px; }
.khc-team-row__photo,
.khc-team-row__photo img { width: 150px; height: 150px; border-radius: 3px; background: var(--wp--preset--color--hairline); object-fit: cover; }
.khc-team-row__role { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 15px; color: var(--wp--preset--color--red); margin-bottom: 14px; }

.khc-connect { padding-top: 76px; padding-bottom: 96px; }
.khc-connect__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.khc-connect__fields { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.khc-field-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--text-lightest); margin-bottom: 6px; }
.khc-field-value { font-size: 17px; font-weight: 600; }
.khc-field-value--link { font-size: 17px; font-weight: 600; color: var(--wp--preset--color--charcoal); }
.khc-field-value--link:hover { color: var(--wp--preset--color--red); }

/* =====================================================================
   ARTICLES INDEX
   ===================================================================== */
.khc-articles { padding-top: 64px; padding-bottom: 88px; }
/* The classic theme's cards are a single <a> wrapping the whole card.
   Query Loop's post-title link can't wrap sibling blocks (category,
   excerpt) too, so the title's own link is stretched over the full card
   via ::after instead — same "whole card is clickable" result. */
.khc-article-featured,
.khc-article-card { position: relative; }
.khc-article-featured .wp-block-post-title a::after,
.khc-article-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }

.khc-article-featured { display: block; border: 1px solid var(--wp--preset--color--hairline); border-top: 4px solid var(--wp--preset--color--red); background: #fff; padding: 38px 40px; margin-bottom: 48px; }
.khc-article-featured__meta { display: flex; gap: 14px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--red); margin-bottom: 16px; }
.khc-article-featured__category, .khc-article-featured__category a { color: var(--wp--preset--color--text-lightest); text-decoration: none; }
.khc-article-featured .wp-block-post-title { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
.khc-article-featured .wp-block-post-title a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.khc-article-featured .wp-block-post-excerpt { font-family: var(--wp--preset--font-family--serif); font-size: 16.5px; line-height: 1.65; color: var(--wp--preset--color--text-muted); margin: 0 0 18px; max-width: 660px; }

.khc-divider-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.khc-divider-row__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--text-light); white-space: nowrap; }
.khc-divider-row__rule { flex: 1; height: 1px; background: var(--wp--preset--color--hairline); }

.khc-article-card { background: #fff; padding: 28px 26px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.khc-article-card:hover { background: var(--wp--preset--color--cream-alt); }
.khc-article-card .wp-block-post-title { font-size: 19px; line-height: 1.3; margin: 0; }
.khc-article-card .wp-block-post-title a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.khc-article-card .wp-block-post-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--wp--preset--color--text-muted); margin: 0; }
.khc-article-card__category { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--red); }
.khc-article-card__category a { color: inherit; text-decoration: none; }

.wp-block-query-pagination { margin-top: 40px; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.wp-block-query-pagination .page-numbers.current { color: var(--wp--preset--color--red); }

/* =====================================================================
   SINGLE ARTICLE
   ===================================================================== */

/* On-screen "printed page" card — echoes the prototype's paged-preview
   look; inert at print, where the real @page margins stand in for it. */
@media screen {
	.khc-article-page { background: var(--wp--preset--color--cream-alt); padding: 40px 24px 64px; }
	.khc-article-page .khc-article {
		background: #fff;
		border-radius: 4px;
		box-shadow: 0 1px 2px rgba(43, 49, 56, .06), 0 16px 40px rgba(43, 49, 56, .08);
	}
}

.khc-article { padding-top: 28px; padding-bottom: 96px; padding-left: 64px; padding-right: 64px; }
.khc-article__meta { display: flex; gap: 14px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--red); margin-bottom: 18px; }
.khc-article__meta a { color: var(--wp--preset--color--red); }
.khc-article__category, .khc-article__category a { color: var(--wp--preset--color--text-lightest); text-decoration: none; }
.khc-article__title { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
.khc-article__deck { font-family: var(--wp--preset--font-family--serif); font-size: 17px; line-height: 1.6; color: var(--wp--preset--color--text-muted); margin: 0 0 24px; }
.khc-article__byline { display: flex; gap: 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--wp--preset--color--hairline); border-bottom: 1px solid var(--wp--preset--color--hairline); margin: 0 0 34px; font-size: 12.5px; color: var(--wp--preset--color--text-light); }
.khc-article__byline strong { color: var(--wp--preset--color--charcoal); font-weight: 600; }
.khc-article__byline .lpe-pdf-button { margin-left: auto; padding: 7px 16px; border: 1px solid var(--wp--preset--color--input-border); border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--charcoal); text-decoration: none; white-space: nowrap; }
.lpe-pdf-button:hover { border-color: var(--wp--preset--color--red); color: var(--wp--preset--color--red); }

.khc-article__body { font-size: 15.5px; line-height: 1.75; }
.khc-article__body p { margin: 0 0 18px; }
.khc-article__body h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 12px; }
.khc-article__body ol, .khc-article__body ul { padding-left: 22px; margin: 0 0 18px; }
.khc-article__body li { margin-bottom: 10px; }
.khc-article__body li strong { font-weight: 600; }
.khc-article__body blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 3px solid var(--wp--preset--color--red); }
.khc-article__body blockquote p { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 17.5px; line-height: 1.6; color: var(--wp--preset--color--text-body); }

.khc-bio-box { margin-top: 38px !important; padding: 24px 26px; background: var(--wp--preset--color--cream-alt); border-left: 4px solid var(--wp--preset--color--red); }
.khc-bio-box .khc-eyebrow { font-size: 11px; margin-bottom: 10px; }
.khc-bio-box__body { font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; color: var(--wp--preset--color--text-body); }

/* =====================================================================
   SCHEDULE
   ===================================================================== */
.khc-schedule { padding-top: 64px; padding-bottom: 96px; }
.khc-schedule__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.khc-schedule__form-card { border: 1px solid var(--wp--preset--color--hairline); background: #fff; border-top: 4px solid var(--wp--preset--color--red); padding: 36px 34px; }
.khc-schedule__sidebar { display: flex; flex-direction: column; gap: 20px; }
.khc-form-setup-notice { font-size: 14px; color: var(--wp--preset--color--text-light); background: var(--wp--preset--color--cream-alt); border-left: 3px solid var(--wp--preset--color--red); padding: 14px 16px; }

.khc-sidebar-card { border: 1px solid var(--wp--preset--color--hairline); background: #fff; padding: 26px 24px; }
.khc-sidebar-card .khc-eyebrow { font-size: 10.5px; margin-bottom: 16px; }
.khc-sidebar-card--dark { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--cream); border: none; }
.khc-field-label--tight { font-size: 11px; letter-spacing: .1em; margin-bottom: 4px; }
.khc-field-value--sidebar { font-size: 16px; font-weight: 600; }
.khc-field-value--sidebar-email { font-size: 14.5px; font-weight: 600; word-break: break-word; color: var(--wp--preset--color--charcoal); }
.khc-field-value--sidebar-email:hover { color: var(--wp--preset--color--red); }

.khc-steps { display: flex; flex-direction: column; gap: 16px; }
.khc-step { display: flex; gap: 14px; }
.khc-step__number { flex-shrink: 0; width: 26px; height: 26px; background: var(--wp--preset--color--red); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.khc-step__text { font-size: 14px; line-height: 1.55; color: var(--wp--preset--color--text-body); }

.khc-sidebar-card__quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 16px; line-height: 1.6; }

/* Featured-testimonial synced pattern, reused on Home (light pull-quote)
   and the Schedule sidebar (dark card) — same block content, context CSS. */
.khc-sidebar-card--dark .khc-pull-quote { border-left: none; padding-left: 0; margin: 0 0 14px; }
.khc-sidebar-card--dark .khc-pull-quote p { font-size: 16px; color: #fff; }
.khc-sidebar-card--dark .khc-pull-quote__title { color: var(--wp--preset--color--on-dark-muted); }
/* On Home this quote's name/title share one line (Jon Brady President,
   Midtown Athletic Club); the Schedule sidebar's original markup stacks
   them on separate lines instead — same source content, adapt display. */
.khc-sidebar-card--dark .khc-pull-quote__name,
.khc-sidebar-card--dark .khc-pull-quote__title { display: block; }

/* =====================================================================
   WPFORMS OVERRIDES — field spec is built by hand in the WPForms admin
   per README section 5; this reskins the plugin's "modern" markup.
   Colors/sizes go through WPForms' own --wpforms-* variables, since its
   stylesheet out-specifies plain theme selectors; the rest is scoped
   under div.wpforms-container-full for the same reason.
   ===================================================================== */
.khc-schedule__form-card .wpforms-container {
	margin: 0;
	--wpforms-field-border-radius: 0;
	--wpforms-field-background-color: var(--wp--preset--color--cream);
	--wpforms-field-border-color: var(--wp--preset--color--input-border);
	--wpforms-field-text-color: var(--wp--preset--color--charcoal);
	--wpforms-field-size-font-size: 15px;
	--wpforms-field-size-input-height: 46px;
	--wpforms-label-color: var(--wp--preset--color--text-muted);
	--wpforms-button-border-radius: 0;
	--wpforms-button-background-color: var(--wp--preset--color--charcoal);
	--wpforms-button-border-color: var(--wp--preset--color--charcoal);
	--wpforms-button-text-color: #fff;
	--wpforms-button-size-font-size: 15px;
	--wpforms-button-size-height: auto;
	--wpforms-button-size-padding-h: 30px;
	--wpforms-button-size-margin-top: 0;
}
.khc-schedule__form-card .wpforms-form { display: flex; flex-direction: column; gap: 28px; }
.khc-schedule__form-card .wpforms-field-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
.khc-schedule__form-card .wpforms-field-checkbox,
.khc-schedule__form-card .wpforms-field-textarea { grid-column: 1 / -1; }
.khc-schedule__form-card .wpforms-field { padding: 0 !important; margin: 0 !important; min-width: 0; }
.khc-schedule__form-card .wpforms-field-label { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--text-light) !important; display: block; margin-bottom: 7px !important; padding: 0; }
.khc-schedule__form-card .wpforms-required-label { color: var(--wp--preset--color--red); }
.khc-schedule__form-card .wpforms-container .wpforms-field-medium,
.khc-schedule__form-card .wpforms-container .wpforms-field-small { max-width: 100%; width: 100%; }
.khc-schedule__form-card div.wpforms-container-full input,
.khc-schedule__form-card div.wpforms-container-full select,
.khc-schedule__form-card div.wpforms-container-full textarea { font-family: inherit; }
.khc-schedule__form-card div.wpforms-container-full textarea { min-height: 120px; padding: 12px 14px; }

.khc-schedule__form-card .wpforms-field-checkbox fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li { position: relative; margin: 0; padding: 0; border: 1px solid var(--wp--preset--color--input-border); background: var(--wp--preset--color--cream); }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li input[type="checkbox"] + label { display: block; padding: 9px 15px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--text-muted); cursor: pointer; user-select: none; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li:has(input:checked) { border-color: var(--wp--preset--color--red); background: var(--wp--preset--color--red); }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li:has(input:checked) input + label { color: #fff; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--charcoal); outline-offset: 2px; }

.khc-schedule__form-card div.wpforms-container-full .wpforms-submit-container { display: flex; align-items: center; }
.khc-schedule__form-card div.wpforms-container-full button[type="submit"] { height: auto; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; padding: 15px 30px; }
.khc-schedule__form-card div.wpforms-container-full button[type="submit"]:hover,
.khc-schedule__form-card div.wpforms-container-full button[type="submit"]:active { background-color: var(--wp--preset--color--charcoal-hover); border-color: var(--wp--preset--color--charcoal-hover); }

.khc-schedule__form-card div.wpforms-container-full .wpforms-confirmation-container-full { margin: 0; padding: 36px 4px; text-align: center; border: none; background: transparent; }
.khc-schedule__form-card div.wpforms-container-full .wpforms-confirmation-container-full::before {
	content: "✓"; display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--wp--preset--color--cream-alt); border: 2px solid var(--wp--preset--color--red); color: var(--wp--preset--color--red);
	font-size: 24px; font-weight: 700; margin: 0 auto 20px;
}
.khc-schedule__form-card div.wpforms-container-full .wpforms-confirmation-container-full p { font-size: 15.5px; line-height: 1.65; color: var(--wp--preset--color--text-muted); max-width: 380px; margin: 0 auto !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
	.khc-hero { grid-template-columns: 1fr; }
	.khc-hero__graphic-img { max-width: 380px; margin: 0 auto; }
	.khc-hairline-grid--3up { grid-template-columns: 1fr; }
	.khc-table-group__grid,
	.khc-table-group--about .khc-table-group__grid { grid-template-columns: 1fr; gap: 32px; }
	.khc-discipline-rows--staircase .khc-discipline-row { margin-left: 0 !important; }
	.khc-video-testimonial__grid,
	.khc-meet-keith__grid,
	.khc-credential-panel__grid,
	.khc-cert-grid,
	.khc-testimonials__grid,
	.khc-about-bio__grid,
	.khc-connect__grid,
	.khc-schedule__grid { grid-template-columns: 1fr; }
	.khc-team-row { grid-template-columns: 1fr; }
	.khc-client-logos--home .khc-client-logos__grid,
	.khc-client-logos--about .khc-client-logos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.khc-schedule__form-card .wpforms-field-container { grid-template-columns: 1fr; }

	.khc-cta-panel { flex-direction: column; align-items: flex-start; text-align: left; }
	.khc-cert-grid { grid-template-columns: 1fr; }

	.khc-article-page { padding: 0; }
	.khc-article-page .khc-article { padding-left: 20px; padding-right: 20px; border-radius: 0; }
}
