/* The first image banner keeps its original theme typography; page content uses the Studio scale. */
.entry-content { --furpaw-managed-font: "FurPaw Hiragino", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
:is(.entry-content, .editor-styles-wrapper .is-root-container):has(.fp-migrated-block) > :where(:not(.fp-migrated-image-hero:first-child)) {
    --fps-section-title-size: clamp(40px, 4.2vw, 56px);
    --fps-hero-title-size: clamp(54px, 5.45vw, 78px);
    --fpb--preset--font-size--small: 14px;
    --fpb--preset--font-size--medium: 20px;
    --fpb--preset--font-size--large: clamp(22px, 2.4vw, 32px);
    --fpb--preset--font-size--x-large: var(--fps-section-title-size);
    --fpb--preset--font-size--xx-large: var(--fps-section-title-size);
    font-family: var(--furpaw-managed-font, inherit);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}

.fp-migrated-block :is(.wp-block-heading, .wp-block-paragraph, .wp-block-button__link):where(:not(.fp-migrated-image-hero:first-child *)) {
    font-family: inherit;
    letter-spacing: 0;
}

.fp-migrated-block .fpb-block-heading__text:where(:not(.fp-migrated-image-hero:first-child *)) {
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

.fpb-block-heading > :where(h1.fpb-block-heading__text:not(.fp-migrated-image-hero:first-child *)) {
    font-size: var(--fps-section-title-size);
}

.fp-migrated-image-hero:not(:first-child) .fpb-block-heading__text {
    font-size: var(--fps-hero-title-size);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.fp-migrated-block .wp-block-button__link:where(:not(.fp-migrated-image-hero:first-child *)) {
    min-height: 44px;
    line-height: 1.4;
}

.fp-migrated-block .fpb-button__inner-text:where(:not(.fp-migrated-image-hero:first-child *)) {
    font-weight: 600;
}

@media (max-width: 1024px) {
    :is(.entry-content, .editor-styles-wrapper .is-root-container):has(.fp-migrated-block) > :where(:not(.fp-migrated-image-hero:first-child)) {
        --fps-section-title-size: clamp(28px, 8vw, 32px);
    }
}

@media (max-width: 689px) {
    :is(.entry-content, .editor-styles-wrapper .is-root-container):has(.fp-migrated-block) > :where(:not(.fp-migrated-image-hero:first-child)) {
        --fps-hero-title-size: var(--fur-mobile-page-title-size, 32px);
        --fps-section-title-size: var(--fur-mobile-section-title-size, 28px);
        font-size: 16px;
    }
}

.fp-migrated-image-hero:first-child > .wp-block-columns.fpb--column-wrap-desktop {
    flex-wrap: wrap !important;
}

/* Each briefing card stacks its illustration and report inside the outer card grid. */
.furpaw-managed-wiki .fpb-column.fpb-block-background .fpb-row.fpb--column-wrap-desktop {
    flex-direction: column;
}

@media (max-width: 767px) {
    .fp-migrated-image-hero:first-child > .fpb-row > .fpb-column:last-child .fpb-block-text__text,
    .fp-migrated-image-hero:first-child .fpb-button__inner-text {
        line-height: 1.375;
    }
    .fp-migrated-image-hero:first-child .fpb-block-button .wp-block-button__link {
        padding-inline: 11px;
    }
}

html[data-fp-theme="dark"] .furpaw-managed-page:not(.furpaw-managed-wiki) .entry-content {
    --theme-palette-color-3: var(--fps-muted);
    --theme-palette-color-5: var(--fur-surface-strong);
    --theme-palette-color-7: var(--fur-divider);
    --theme-link-initial-color: var(--fps-link);
    --theme-link-hover-color: var(--fps-ink);
}

html[data-fp-theme="dark"] .furpaw-managed-page:not(.furpaw-managed-wiki) .fpb-block-heading {
    --theme-palette-color-1: var(--fps-link);
    --theme-palette-color-3: var(--fps-ink);
}

html[data-fp-theme="dark"] .furpaw-managed-page:not(.furpaw-managed-wiki) .fpb-container.fpb-hover-parent {
    --theme-palette-color-8: var(--fur-surface-muted);
}

/* Shop channel and event cards keep their resting surface while their links receive interaction feedback. */
:is(.fpb-ec41bee, .fpb-8d7e6f3) .fpb-column-wrapper:hover,
:is(.fpb-ec41bee, .fpb-8d7e6f3) .fpb-column-wrapper:hover::before {
    background-color: var(--theme-palette-color-8, #fff) !important;
}
:is(.fpb-ec41bee, .fpb-8d7e6f3) .fpb-column-wrapper:hover {
    border-color: var(--theme-palette-color-7, #fbfbfc) !important;
    box-shadow: 0 3px 5px #123f5209 !important;
}

html[data-fp-theme="dark"] .furpaw-managed-page:not(.furpaw-managed-wiki) .fpb-block-button {
    --theme-palette-color-8: #fff;
}

html[data-fp-theme="dark"] .furpaw-managed-page .page-links a.post-page-numbers {
    color: var(--fps-link);
}

html[data-fp-theme="dark"] .furpaw-managed-page:not(.furpaw-managed-wiki) :is(.fpb-block-pricing-box, .fpb-block-column.fpb-block-background) {
    background-color: var(--fur-surface-muted) !important;
    border-color: var(--fur-divider) !important;
}

/* Match the Page Studio document banner. */
:is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) {
    display: flex;
    align-items: flex-end;
    min-height: min(56.25vw, 576px);
    padding-block: var(--fur-space-9, 80px) var(--fur-space-8, 64px) !important;
    background-color: var(--theme-palette-color-1, #0162b3);
}

:is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) > .fpb-row {
    flex: 0 1 auto;
}

:is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) .wp-block-heading {
    font-family: var(--furpaw-managed-font, inherit);
    font-size: clamp(48px, 5.45vw, 78px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
    text-align: start;
    text-wrap: balance;
}

@media (max-width: 1024px) {
    :is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) {
        min-height: clamp(260px, 42vw, 432px);
        padding-block: var(--fur-space-8, 64px) var(--fur-space-6, 32px) !important;
    }
}

@media (max-width: 760px) {
    :is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) {
        padding-block: 52px var(--fur-space-5, 24px) !important;
        padding-inline: var(--fur-space-5, 24px);
    }

    :is(.entry-content, .editor-styles-wrapper .is-root-container) > .fp-migrated-block.fpb-block-background.alignfull:first-child:not(.fp-migrated-image-hero) .wp-block-heading {
        font-size: var(--fur-mobile-page-title-size, 32px);
    }
}

/* The Wiki starts with three reserved links. A destination entered in Page Studio activates its button. */
.furpaw-managed-wiki .fp-migrated-image-hero:first-child .fpb-block-button-group a[href]:not([href=""]) {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.furpaw-managed-wiki .fp-migrated-image-hero:first-child .fpb-block-button-group .wp-block-button__link:is(:hover,:focus) { color:var(--theme-button-text-hover-color,#fff); }
.furpaw-managed-wiki .fp-migrated-image-hero:first-child .fpb-block-button-group .wp-block-button__link:focus-visible { outline-offset:2px; }

html[data-fp-theme="dark"] .furpaw-managed-wiki .entry-content {
    --theme-palette-color-1: var(--fps-link);
    --theme-palette-color-3: var(--fps-muted);
    --theme-palette-color-5: var(--fur-surface-muted);
    --theme-palette-color-9: var(--fps-ink);
    --theme-link-initial-color: var(--fps-link);
    --theme-link-hover-color: var(--fps-ink);
    --fpb-container-color: var(--fps-ink);
    --fpb-block-background-color: var(--fur-surface-muted);
    --fpb-container-background-color: var(--fur-surface-muted);
}

html[data-fp-theme="dark"] .furpaw-managed-wiki .fpb-block-button {
    /* Archive buttons use the original body-text swatch as their fill. */
    --theme-palette-color-3: var(--fur-surface-strong);
}

html[data-fp-theme="dark"] .furpaw-managed-wiki .fpb-block-image {
    --theme-palette-color-8: var(--fur-divider);
}

html[data-fp-theme="dark"] .furpaw-managed-wiki .fpb-block-background.fpb--has-background-overlay::before {
    opacity: .56 !important;
}

html[data-fp-theme="dark"] .furpaw-managed-wiki .history-table,
html[data-fp-theme="dark"] .furpaw-managed-wiki .history-table :is(th, td) {
    color: var(--fps-ink);
    border-color: var(--fur-divider);
    background-color: var(--fur-surface-muted);
}

html[data-fp-theme="dark"] .furpaw-managed-wiki .history-table th {
    background-color: var(--fur-surface-strong);
}

/* The archived HTML table sets a white row fill on even rows and on hover. */
html[data-fp-theme="dark"] .furpaw-managed-wiki .history-table tbody :is(tr, td) {
    background-color: var(--fur-surface-muted) !important;
}
