/* WordPress-only adapter; screen.css remains the unchanged Ghost baseline. */
:root { --ghost-accent-color: var(--brand-primary); }
.primary-navigation .current-menu-item > a { color: var(--brand-primary); font-weight: 700; }
.wp-block-group > .eyebrow { display: block; }
.wp-block-group.pillar-grid, .wp-block-group.two-col { margin-block-start: 0; }
/* Core's default flow spacing must not offset items in the original grids. */
.wp-block-group:is(.pillar-grid, .two-col, .cta-band) > * { margin-block-start: 0; margin-block-end: 0; }
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 0;
    border-radius: var(--radius-md);
    font: var(--text-button);
    text-decoration: none;
    color: var(--text-on-brand);
    background: var(--brand-primary);
}
.gh-content .wp-block-button__link { color: var(--text-on-brand); }
.wp-block-button__link:hover { color: var(--text-on-brand); background: var(--brand-primary-hover); }
.sanopus-button-light .wp-block-button__link { position: relative; z-index: 1; color: var(--brand-primary); background: var(--white); }
.sanopus-button-light .wp-block-button__link:hover { color: var(--brand-primary); background: var(--red-100); }
.cta-band::before { content: ''; position: absolute; top: -60%; height: 220%; right: -40px; aspect-ratio: 546 / 1807; background: url('../images/symbol-white.png') center / 100% 100% no-repeat; opacity: .08; pointer-events: none; }
.wp-block-buttons > .wp-block-button { display: flex; }
.kg-product-card-container.wp-block-group > *, .founder-copy.wp-block-group > p { margin-block-start: 0; }
.gh-content .ghost-button-card { margin-top: 32px; }
.gh-content .ghost-button-card .wp-block-button__link { height: 2.4em; }
.ghost-align-center { justify-content: center; }
.gh-content figure.ghost-image-card { margin-top: 32px; }
.gh-content .wp-block-table { overflow-x: auto; }
.gh-content .wp-block-table table { width: 100%; }
.gh-content .wp-block-table:is(.qualification-table, .content-table) table { border-collapse: separate; }
.gh-content .wp-block-table:is(.qualification-table, .content-table) :is(thead, tfoot) { border: 0; }
.gh-content .wp-block-table:is(.qualification-table, .content-table) tr:last-child td { border-bottom: 0; }
.gh-content .wp-block-table :is(td, th) { padding: 16px; border: 0; border-bottom: 1px solid var(--border-subtle); text-align: left; }
/* Make room for the additional profile link before the existing mobile breakpoint. */
@media (min-width: 901px) and (max-width: 1100px) {
    .site-header .header-inner { padding-inline: 24px; gap: 20px; }
    .site-header .header-navigation,
    .site-header .primary-navigation ul { gap: 20px; }
}
.en-site-header { flex-wrap: wrap; gap: 24px; }
.en-site-header .primary-navigation .nav { flex-wrap: wrap; }

/* Native page layouts keep the established design without per-page PHP templates. */
.wp-block-columns:is(.two-col, .bio-grid, .contact-grid) { display: flex; flex-wrap: nowrap !important; margin-bottom: 0; gap: 96px; align-items: flex-start !important; }
.wp-block-columns.bio-grid { gap: 72px; align-items: center !important; }
.wp-block-columns .wp-block-column { min-width: 0; }
.wp-block-columns .founder-portrait-column { flex-grow: 0; flex-shrink: 0; }
.wp-block-image.sanopus-founder-image { margin: 0; }
.wp-block-image.sanopus-founder-image img { width: 260px; height: 260px; object-fit: cover; border-radius: var(--radius-lg); }
.wp-block-image.generic-page-feature { margin: 0 auto; }
.wp-block-image.home-hero-image { margin: 0; }
.home-hero-buttons { flex: 0 0 auto; }
.wp-block-button.home-hero-cta { padding: 0; background: transparent; }
.home-hero-cta > .wp-block-button__link { padding: 16px 32px; }
@media (max-width: 860px) {
    .wp-block-columns:is(.two-col, .bio-grid, .contact-grid) { flex-direction: column; gap: 48px; }
    .wp-block-columns.bio-grid { gap: 28px; }
    .wp-block-columns:is(.two-col, .bio-grid, .contact-grid) > .wp-block-column { width: 100%; flex-basis: auto !important; }
    .wp-block-image.sanopus-founder-image img { width: 180px; height: 180px; }
}

/* Optional native image captions must not be clipped by the fixed home hero ratio. */
.home-hero-image:has(figcaption) { aspect-ratio: auto; }
.home-hero-image:has(figcaption) img { height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.home-hero-image figcaption { padding: 12px 16px; font: var(--text-small); color: var(--text-secondary); }

/* One native table: ordinary columns on desktop, labelled rows on phones. */
.sanopus-table-label { display: none; }
@media (max-width: 700px) {
    .generic-page :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
    .gh-content .wp-block-table .sanopus-stacked-table {
        display: block;
        position: relative;
        width: 100%;
        min-width: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .sanopus-stacked-table > caption { display: block; padding-bottom: 16px; text-align: left; }
    .sanopus-stacked-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .sanopus-stacked-table > tbody { display: block; }
    .gh-content .sanopus-stacked-table > tbody > tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        background: var(--surface-card);
        break-inside: avoid;
    }
    .gh-content .sanopus-stacked-table > tbody > tr > td {
        display: block;
        padding: 12px 16px;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .sanopus-stacked-table .sanopus-table-label {
        display: block;
        margin-bottom: 6px;
        color: var(--text-muted);
        font-size: 0.875em;
        font-weight: 600;
        line-height: 1.4;
        white-space: normal;
    }
}
