/*
 * webwork-help-center — front-end CSS
 * Modern vanilla (custom properties, logical properties, :has(), color-mix).
 * No reset beyond WP's baseline.
 *
 * Table of contents
 * ─────────────────
 *   0.  Inter font (self-hosted, matches main marketing site)
 *   1.  Tokens
 *   2.  Layout (shell)
 *   3.  Skip link (a11y)
 *   4.  Top band (dark wrapper for nav + hero)
 *   5.  Header
 *   6.  Logo
 *   7.  Nav (desktop)
 *   8.  Nav (mobile hamburger)
 *   9.  Hero + Search
 *  10.  Home — category grid
 *  11.  Page (category / search / 404 body)
 *  12.  Article (single post)
 *  13.  Post list
 *  14.  Breadcrumb
 *  15.  Footer
 *  16.  Utilities
 *  17.  Reduced motion
 */


/* ═══ 0. Inter font ══════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/Inter-Regular.woff2') format('woff2'),
         url('../fonts/inter/Inter-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter/Inter-Medium.woff2') format('woff2'),
         url('../fonts/inter/Inter-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2'),
         url('../fonts/inter/Inter-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/Inter-Bold.woff2') format('woff2'),
         url('../fonts/inter/Inter-Bold.woff') format('woff');
}


/* ═══ 1. Tokens ═══════════════════════════════════════════════════════════ */

:root {
    --wwhc-radius-sm: 4px;
    --wwhc-radius-md: 10px;
    --wwhc-radius-lg: 16px;

    --wwhc-shadow-sm: 0 1px 2px rgba(21, 15, 51, 0.04), 0 1px 3px rgba(21, 15, 51, 0.06);
    --wwhc-shadow-md: 0 4px 10px rgba(21, 15, 51, 0.06), 0 2px 4px rgba(21, 15, 51, 0.04);

    --wwhc-top-bg:    #0B0A24;   /* deep purple-navy, matches marketing site */
    --wwhc-top-text:  #FFFFFF;
    --wwhc-top-mute:  rgba(255, 255, 255, 0.82);

    --wwhc-transition: 180ms cubic-bezier(0.2, 0.7, 0.25, 1);

    --wwhc-bp-mobile: 820px; /* used via @media — keep in sync when changing */
}

body,
button,
input,
select,
textarea {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}


/* ═══ 2. Layout (shell) ═══════════════════════════════════════════════════ */

.wwhc-shell {
    max-inline-size: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}


/* ═══ 3. Skip link (a11y) ════════════════════════════════════════════════ */

.wwhc-skip-link {
    position: absolute;
    inset-inline-start: 0.5rem;
    inset-block-start: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--wp--preset--color--text-strong);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--wwhc-transition);
    z-index: 100;
}
.wwhc-skip-link:focus { transform: translateY(0); }


/* ═══ 4. Top band ════════════════════════════════════════════════════════ */

/*
 * Background stack (rendered bottom-up):
 *   1. Base solid — deep purple-navy
 *   2. Dot grid — subtle texture, fades out with a mask
 *   3. Radial glow — brand purple light spilling from top center
 * Matches the atmospheric feel of the marketing site without being noisy.
 */
.wwhc-top {
    position: relative;
    z-index: 10; /* keep dropdowns hanging below the header above page content */
    background-color: var(--wwhc-top-bg);
    color: var(--wwhc-top-text);
    isolation: isolate;
}
.wwhc-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(ellipse 900px 420px at 50% 0%, rgba(117, 90, 250, 0.22), transparent 70%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
    background-size: auto, 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
    pointer-events: none;
}


/* ═══ 5. Header ══════════════════════════════════════════════════════════ */

.wwhc-header {
    padding-block: 1rem;
}
.wwhc-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}


/* ═══ 6. Logo (white on dark) ════════════════════════════════════════════ */

.wwhc-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.wwhc-logo__img {
    block-size: 28px;
    inline-size: auto;
    display: block;
}


/* ═══ 7. Nav (desktop) ═══════════════════════════════════════════════════ */

.wwhc-nav { margin-inline-start: auto; }
.wwhc-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.wwhc-nav__link {
    color: var(--wwhc-top-mute);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--wwhc-transition);
}
.wwhc-nav__link:hover,
.wwhc-nav__link--active { color: #fff; }

.wwhc-nav__cta {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.125rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--wwhc-transition), border-color var(--wwhc-transition), color var(--wwhc-transition);
}
.wwhc-nav__cta:hover,
.wwhc-nav__cta:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--wp--preset--color--text-strong);
    outline: none;
}


/* ═══ 8. Nav (mobile hamburger — pure CSS via :has()) ═══════════════════ */

.wwhc-nav-toggle { display: none; }
.wwhc-nav-burger { display: none; }

@media (max-width: 820px) {
    .wwhc-header { position: relative; }

    .wwhc-nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        inline-size: 26px;
        block-size: 20px;
        cursor: pointer;
        padding: 0;
        background: transparent;
        border: 0;
        margin-inline-start: auto;
    }
    .wwhc-nav-burger span {
        display: block;
        block-size: 2px;
        inline-size: 100%;
        background: #fff;
        border-radius: 2px;
        transition: transform var(--wwhc-transition), opacity var(--wwhc-transition);
    }

    .wwhc-nav {
        display: none;
        position: absolute;
        inset-block-start: 100%;
        inset-inline: 0;
        background: var(--wwhc-top-bg);
        padding: 0.75rem clamp(1rem, 4vw, 2.5rem) 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        z-index: 5;
    }
    .wwhc-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .wwhc-nav__link,
    .wwhc-nav__cta  { display: block; padding: 0.75rem 0.25rem; }
    .wwhc-nav__cta {
        margin-block-start: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    /* Open state — no JS, just :has() */
    .wwhc-header:has(.wwhc-nav-toggle:checked) .wwhc-nav { display: block; }
    .wwhc-header:has(.wwhc-nav-toggle:checked) .wwhc-nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .wwhc-header:has(.wwhc-nav-toggle:checked) .wwhc-nav-burger span:nth-child(2) { opacity: 0; }
    .wwhc-header:has(.wwhc-nav-toggle:checked) .wwhc-nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* ═══ 9. Hero + Search (inside dark band) ═══════════════════════════════ */

.wwhc-hero { padding-block: 1rem clamp(2rem, 4vw, 3rem); }

.wwhc-search { display: block; }
.wwhc-search__label {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
    margin-block-end: 0.625rem;
}
.wwhc-search__bar {
    display: flex;
    align-items: stretch;
    inline-size: 100%;
    background: #fff;
    border-radius: var(--wwhc-radius-sm);
    overflow: hidden;
    transition: box-shadow var(--wwhc-transition);
}
.wwhc-search__bar:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}
.wwhc-search input[type="search"] {
    flex: 1;
    min-inline-size: 0;
    border: 0;
    outline: 0;
    padding: 0.875rem 1.125rem;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text);
}
.wwhc-search input[type="search"]::placeholder {
    color: var(--wp--preset--color--text-muted);
}
.wwhc-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    padding-inline: 1rem;
    background: transparent;
    color: var(--wp--preset--color--text-muted);
    transition: color var(--wwhc-transition);
}
.wwhc-search__submit:hover,
.wwhc-search__submit:focus-visible {
    color: var(--wp--preset--color--text-strong);
    outline: none;
}


/* ═══ 10. Home — category grid (borderless, centered) ══════════════════ */

.wwhc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2vw, 2rem);
    padding-block: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 820px) { .wwhc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wwhc-grid { grid-template-columns: 1fr; } }

.wwhc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--wp--preset--color--text);
    transition: transform var(--wwhc-transition);
}
.wwhc-card:hover,
.wwhc-card:focus-visible {
    transform: translateY(-2px);
    outline: none;
}
.wwhc-card:hover .wwhc-card__title,
.wwhc-card:focus-visible .wwhc-card__title {
    color: var(--wp--preset--color--primary);
}
.wwhc-card__icon {
    inline-size: 64px;
    block-size: 64px;
    display: block;
    margin-block-end: 0.5rem;
}
.wwhc-card__title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--wp--preset--color--text-strong);
    transition: color var(--wwhc-transition);
}
.wwhc-card__desc {
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-muted);
    line-height: 1.55;
    max-inline-size: 32ch;
}


/* ═══ 11. Page (category / search / 404 body) ═════════════════════════ */

.wwhc-page            { padding-block: clamp(2rem, 4vw, 3rem); }
.wwhc-page__title {
    font-size: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
    margin-block-end: 0.5rem;
    color: var(--wp--preset--color--text-strong);
}
.wwhc-page__lead {
    color: var(--wp--preset--color--text-muted);
    max-inline-size: 60ch;
    margin-block-end: 1.5rem;
}

/* --- Category page: two-column body (sidebar / main). Title + description
   live inside the main column, matching the HubSpot KB layout. --- */

.wwhc-cat__title {
    font-size: clamp(2rem, 1.25rem + 2vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--wp--preset--color--text-strong);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.wwhc-cat__lead {
    color: var(--wp--preset--color--text-muted);
    max-inline-size: 62ch;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}

.wwhc-cat__grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
@media (max-width: 960px) {
    .wwhc-cat__grid { grid-template-columns: 1fr; gap: 2rem; }
    /* On mobile: main content first, the 24-category rail slides below. */
    .wwhc-cat__body { order: 1; }
    .wwhc-cat__rail { order: 2; }
}

.wwhc-cat__rail {
    position: sticky;
    inset-block-start: 1.5rem;
    align-self: start;
    max-block-size: calc(100dvh - 2rem);
    overflow-y: auto;
    padding-inline-end: 0.5rem;
    /* thin, brand-tinted scrollbar so the rail feels integrated, not OS-default */
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent) transparent;
}
@media (max-width: 960px) {
    .wwhc-cat__rail {
        position: static;
        max-block-size: none;
        padding-inline-end: 0;
    }
}

/* --- Left rail: 24-category nav --- */

.wwhc-cat-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.wwhc-cat-nav__link {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--wp--preset--color--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    transition: color var(--wwhc-transition);
}
.wwhc-cat-nav__link:hover { color: var(--wp--preset--color--primary); }
.wwhc-cat-nav__item.is-active > .wwhc-cat-nav__link {
    color: var(--wp--preset--color--text-strong);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--wp--preset--color--primary);
}
.wwhc-cat-nav__children {
    list-style: none;
    margin: 0.125rem 0 0.75rem 0.875rem;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.wwhc-cat-nav__children a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--wp--preset--color--text);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.45;
    transition: color var(--wwhc-transition);
}
.wwhc-cat-nav__children a:hover { color: var(--wp--preset--color--primary); }
.wwhc-cat-nav__children li.is-active a,
.wwhc-cat-nav__children li.is-active a:hover {
    color: var(--wp--preset--color--text-strong);
    font-weight: 600;
}

/* --- Main body: grouped article sections --- */

.wwhc-cat__body { min-inline-size: 0; }
.wwhc-cat-section { margin-block-end: clamp(2rem, 3vw, 2.75rem); }
.wwhc-cat-section:last-child { margin-block-end: 0; }
.wwhc-cat-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-strong);
    margin: 0 0 1rem;
    padding-block-end: 0.625rem;
    border-block-end: 1px solid var(--wp--preset--color--border);
    letter-spacing: -0.005em;
}
.wwhc-cat-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.wwhc-cat-section__list li { margin: 0; }
.wwhc-cat-section__list a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--wwhc-radius-sm);
    color: var(--wp--preset--color--text);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: background var(--wwhc-transition), color var(--wwhc-transition), transform var(--wwhc-transition);
}
.wwhc-cat-section__list a:hover {
    background: var(--wp--preset--color--bg-alt);
    color: var(--wp--preset--color--primary);
    transform: translateX(2px);
}
.wwhc-cat-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 28px;
    block-size: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
    color: var(--wp--preset--color--primary);
    transition: background var(--wwhc-transition);
}
.wwhc-cat-section__list a:hover .wwhc-cat-section__icon {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
}
.wwhc-cat-section__title-text {
    min-inline-size: 0;
    flex: 1;
}


/* ═══ 12. Article (single post) ═══════════════════════════════════════ */

.wwhc-article {
    /* Width is already constrained by .wwhc-cat__body — no self-centering. */
    min-inline-size: 0;
    /* Breathing room under the single-page H1 (this wrapper only renders there). */
    margin-block-start: 1rem;
}
.wwhc-article h2 { font-size: 1.5rem;  margin-block-start: 2rem;   margin-block-end: 0.75rem; }
.wwhc-article h3 { font-size: 1.25rem; margin-block-start: 1.5rem; margin-block-end: 0.5rem;  }
.wwhc-article p,
.wwhc-article ul,
.wwhc-article ol { line-height: 1.7; margin-block-end: 1rem; }
.wwhc-article ul,
.wwhc-article ol { padding-inline-start: 1.5rem; }
.wwhc-article img,
.wwhc-article video {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    border-radius: var(--wwhc-radius-sm);
    box-shadow: var(--wwhc-shadow-sm);
    margin-block: 1.25rem 2rem;
}
/* HubSpot wraps every image in a <p>. Neutralise the wrapper's margin so the
   image's own margin-block owns the vertical rhythm — no doubled gaps, no
   phantom line-height pushing the image. */
.wwhc-article p:has(> img:only-child) {
    margin-block: 0;
    line-height: 0;
}
.wwhc-article code {
    background: var(--wp--preset--color--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.wwhc-article pre {
    background: var(--wp--preset--color--bg-dark);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--wwhc-radius-sm);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}
.wwhc-article blockquote {
    border-inline-start: 3px solid var(--wp--preset--color--primary);
    padding-inline-start: 1rem;
    color: var(--wp--preset--color--text-muted);
    margin-block: 1rem;
}

/* Video embeds (YouTube / Vimeo / Wistia / Loom) — responsive 16:9 box. */
.wwhc-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-inline-size: 100%;
    margin-block: 1.5rem;
    border-radius: var(--wwhc-radius-md);
    overflow: hidden;
    box-shadow: var(--wwhc-shadow-md);
    background: var(--wp--preset--color--bg-alt);
}
.wwhc-video iframe {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    border: 0;
    display: block;
}

/* Callouts — note / tip / caution. Used via block patterns; rendered as
   a core/group with .wwhc-callout + a modifier class. One CSS defines all
   three by swapping the accent color and background tint. */
.wwhc-callout {
    padding: 1rem 1.25rem;
    margin-block: 1.5rem;
    border-radius: var(--wwhc-radius-sm);
    border-inline-start: 3px solid var(--wwhc-callout-accent, currentColor);
    background: var(--wwhc-callout-bg, transparent);
    color: var(--wwhc-callout-fg, inherit);
}
.wwhc-callout > *:first-child { margin-block-start: 0; }
.wwhc-callout > *:last-child  { margin-block-end: 0; }

.wwhc-callout--note    { --wwhc-callout-accent: #2563EB; --wwhc-callout-bg: #EFF6FF; --wwhc-callout-fg: #1E3A8A; }
.wwhc-callout--tip     { --wwhc-callout-accent: #059669; --wwhc-callout-bg: #ECFDF5; --wwhc-callout-fg: #064E3B; }
.wwhc-callout--caution { --wwhc-callout-accent: #D97706; --wwhc-callout-bg: #FFFBEB; --wwhc-callout-fg: #78350F; }

/* Inline links inside article body — same color as body text (matches HubSpot),
   subtle underline identifies them, hover reveals brand purple for feedback. */
.wwhc-article a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color var(--wwhc-transition), text-decoration-color var(--wwhc-transition);
}
.wwhc-article a:hover {
    color: var(--wp--preset--color--primary);
    text-decoration-color: currentColor;
}

/* Nested list markers — mirror HubSpot so imported content keeps hierarchy. */
.wwhc-article ul                         { list-style-type: disc; }
.wwhc-article ul li ul                   { list-style-type: circle; }
.wwhc-article ul li ul li ul             { list-style-type: square; }
.wwhc-article ul li ul li ul li ul       { list-style-type: disc; }
.wwhc-article ol                         { list-style-type: decimal; }
.wwhc-article ol li ol                   { list-style-type: lower-alpha; }
.wwhc-article ol li ol li ol             { list-style-type: lower-roman; }
.wwhc-article ol li ol li ol li ol       { list-style-type: decimal; }
.wwhc-article li                         { margin-block-end: 0.35rem; }
.wwhc-article li > ul,
.wwhc-article li > ol                    { margin-block: 0.35rem 0.35rem; }

/* HubSpot image-alignment helpers, preserved for migrated content. */
.wwhc-article img.hs-image-align-center  { margin-inline: auto; }
.wwhc-article img.hs-image-align-right   { float: right; margin: 0 0 1rem 1rem; }
.wwhc-article img.hs-image-align-left    { float: left;  margin: 0 1rem 1rem 0; }
.wwhc-article img.hs-image-align-none    { display: inline; margin-block: 0; }

/* Callouts — tip / note / caution / warning.
 * Attribute selector catches any `hs-callout-type-*` variant on import. */
.wwhc-article [class*="hs-callout-type-"] {
    border-inline-start: 5px solid transparent;
    border-radius: var(--wwhc-radius-sm);
    padding: 1rem 1.25rem;
    margin-block: 1.25rem;
    clear: both;
}
.wwhc-article [class*="hs-callout-type-"] p:last-child { margin-block-end: 0; }
.wwhc-article .hs-callout-type-tip     { background: #E5F5F8; border-inline-start-color: #7FD1DE; color: #000; }
.wwhc-article .hs-callout-type-note    { background: #E5F8F6; border-inline-start-color: #7FDED2; color: #000; }
.wwhc-article .hs-callout-type-caution { background: #FDEDEE; border-inline-start-color: #F8A9AD; color: #000; }
.wwhc-article .hs-callout-type-warning { background: #FFEBE6; border-inline-start-color: #E68250; color: #000; }


/* Related articles — end of every single post */
.wwhc-related {
    margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
    padding-block-start: 1.75rem;
    border-block-start: 1px solid var(--wp--preset--color--border);
}
.wwhc-related__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-strong);
    margin-block-end: 0.75rem;
}
.wwhc-related__list {
    list-style: disc;
    padding-inline-start: 1.25rem;
    margin: 0;
}
.wwhc-related__list li {
    padding-block: 0.25rem;
    color: var(--wp--preset--color--text-muted);
}
.wwhc-related__list a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color var(--wwhc-transition);
}
.wwhc-related__list a:hover,
.wwhc-related__list a:focus-visible {
    color: var(--wp--preset--color--primary-hover);
    text-decoration: underline;
}


/* --- Search results list. Google-style: no card, just typographic rhythm.
   Path line → big title link → 2-line snippet, generous vertical breathing. --- */

.wwhc-results {
    list-style: none;
    margin: 0.5rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.wwhc-result { padding: 0; }
.wwhc-result__cat {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    margin-block-end: 0.25rem;
    line-height: 1.3;
}
.wwhc-result__cat:hover { text-decoration: underline; }
.wwhc-result__title {
    display: inline-block;
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--wp--preset--color--text-strong);
    text-decoration: none;
    line-height: 1.3;
    margin-block-end: 0.4rem;
}
.wwhc-result__title:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.wwhc-result__snippet {
    margin: 0;
    color: #4D5156;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-inline-size: 60rem;
}
.wwhc-result__snippet mark {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
}

.wwhc-pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-block: 1.5rem 0;
}
.wwhc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 2.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--wwhc-radius-sm);
    color: var(--wp--preset--color--text);
    text-decoration: none;
    font-weight: 500;
    transition: background var(--wwhc-transition), color var(--wwhc-transition);
}
.wwhc-pagination .page-numbers:hover,
.wwhc-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: #fff;
}
.wwhc-pagination .page-numbers.dots { background: transparent; color: var(--wp--preset--color--text-muted); }

.wwhc-no-results {
    margin-block: 1.5rem 0;
}
.wwhc-no-results > p {
    color: var(--wp--preset--color--text-muted);
    margin-block-end: 1.5rem;
}


/* ═══ 13. Post list (category / search results) ═══════════════════════ */

.wwhc-post-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin-block: 1.5rem 2rem;
}
.wwhc-post-list li {
    background: var(--wp--preset--color--bg);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--wwhc-radius-sm);
    transition: border-color var(--wwhc-transition), box-shadow var(--wwhc-transition);
}
.wwhc-post-list li:hover {
    border-color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, var(--wp--preset--color--border));
    box-shadow: var(--wwhc-shadow-sm);
}
.wwhc-post-list a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--wp--preset--color--text-strong);
    font-weight: 600;
}


/* ═══ 14. Breadcrumb ══════════════════════════════════════════════════ */

/* Breadcrumb — design mirrors the main marketing site: signature 3×16px
   brand-gradient bar on the left, uppercase muted link, purple chevron
   separator, purple active term. */
.wwhc-breadcrumb {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-inline-start: 14px;
    margin-block-end: 1rem;
}
.wwhc-breadcrumb::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 50%;
    inline-size: 3px;
    block-size: 16px;
    border-radius: 999px;
    background: var(--wp--preset--gradient--brand-vertical, linear-gradient(180deg, #5A5AFA 0%, #F425F4 100%));
    transform: translateY(-50%);
}
.wwhc-breadcrumb a,
.wwhc-breadcrumb__current {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    text-decoration: none;
    transition: color var(--wwhc-transition);
}
.wwhc-breadcrumb a          { color: var(--wp--preset--color--text-muted); }
.wwhc-breadcrumb a:hover    { color: var(--wp--preset--color--primary); }
.wwhc-breadcrumb__current   { color: var(--wp--preset--color--primary); }
.wwhc-breadcrumb__sep {
    display: inline-block;
    inline-size: 6px;
    block-size: 6px;
    border-inline-end: 1.5px solid var(--wp--preset--color--primary);
    border-block-start: 1.5px solid var(--wp--preset--color--primary);
    transform: rotate(45deg);
    opacity: 0.85;
    flex-shrink: 0;
}
/* Mobile: hide the current-page crumb (and its preceding chevron) — the page's
   H1 already says where you are, so the breadcrumb becomes a pure back-trail. */
@media (max-width: 640px) {
    .wwhc-breadcrumb {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .wwhc-breadcrumb__current,
    .wwhc-breadcrumb__current + :is(),
    .wwhc-breadcrumb > :last-child.wwhc-breadcrumb__sep {
        display: none;
    }
    .wwhc-breadcrumb__current { display: none; }
    .wwhc-breadcrumb__sep:has(+ .wwhc-breadcrumb__current) { display: none; }
}


/* ═══ 15. Footer (three bands: CTA / body / baseline) ═════════════════════ */

.wwhc-footer {
    margin-block-start: clamp(3rem, 6vw, 6rem);
    color: var(--wp--preset--color--text-muted);
    font-size: 0.9375rem;
}

/* --- CTA band (dark, mirrors the top band) --- */
.wwhc-footer__cta-band {
    position: relative;
    overflow: hidden;
    background: var(--wwhc-top-bg);
    color: var(--wwhc-top-text);
}
.wwhc-footer__cta-band::after {
    content: "";
    position: absolute;
    inset-block-start: -60%;
    inset-inline-end: -10%;
    inline-size: 55%;
    block-size: 260%;
    background: radial-gradient(closest-side,
        color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent),
        transparent 70%);
    filter: blur(24px);
    opacity: 0.6;
    pointer-events: none;
}
.wwhc-footer__cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 4vw, 3.25rem);
}
.wwhc-footer__cta-copy { max-inline-size: 32rem; }
.wwhc-footer__cta-title {
    margin: 0;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
}
.wwhc-footer__cta-sub {
    margin: 0.375rem 0 0;
    color: var(--wwhc-top-mute);
    font-size: 0.9375rem;
}
.wwhc-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 999px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--wp--preset--color--primary) 80%, transparent);
    transition: background var(--wwhc-transition),
                transform var(--wwhc-transition),
                box-shadow var(--wwhc-transition);
}
.wwhc-footer__cta-btn:hover {
    background: var(--wp--preset--color--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--wp--preset--color--primary) 90%, transparent);
}
.wwhc-footer__cta-btn svg { transition: transform var(--wwhc-transition); }
.wwhc-footer__cta-btn:hover svg { transform: translateX(2px); }

/* --- Middle band: brand + nav --- */
.wwhc-footer__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
    border-block-end: 1px solid var(--wp--preset--color--border);
}
.wwhc-footer__brand img {
    display: block;
    block-size: 24px;
    inline-size: auto;
}
.wwhc-footer__nav {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.875rem, 1.8vw, 1.5rem);
    min-inline-size: 0;
}
.wwhc-footer__nav a { white-space: nowrap; }
.wwhc-footer__nav a {
    color: var(--wp--preset--color--text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--wwhc-transition);
}
.wwhc-footer__nav a:hover { color: var(--wp--preset--color--primary); }

/* --- Baseline: copy + legal, centered --- */
.wwhc-footer__baseline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-block: 1.25rem 1.75rem;
    font-size: 0.8125rem;
    text-align: center;
}
.wwhc-footer__copy { color: var(--wp--preset--color--text-muted); }
.wwhc-footer__legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.wwhc-footer__legal a {
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    transition: color var(--wwhc-transition);
}
.wwhc-footer__legal a:hover { color: var(--wp--preset--color--text-strong); }

@media (max-width: 640px) {
    .wwhc-footer__cta-btn { inline-size: 100%; justify-content: center; }
    .wwhc-footer__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ═══ 16. Utilities ═══════════════════════════════════════════════════ */

.wwhc-empty {
    text-align: center;
    color: var(--wp--preset--color--text-muted);
    padding-block: 3rem;
}


/* ═══ 17. Reduced motion ══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .wwhc-card,
    .wwhc-post-list li,
    .wwhc-search__bar,
    .wwhc-nav__link,
    .wwhc-nav__cta,
    .wwhc-nav-burger span       { transition: none; }
    .wwhc-card:hover,
    .wwhc-nav__cta:hover        { transform: none; }
}
