/**
 * Editorial and public-content adapters for the 2N9HT design system.
 * Loaded after the child theme. Plugin-owned rules live in their later adapter.
 */
html body #content.site-content {
    box-sizing: border-box !important;
    padding-inline: var(--n9-layout-gutter-current) !important;
}

html body #content.site-content > .col-full,
html body #content.site-content .col-full {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: var(--n9-layout-container-max) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

/*
 * The legacy mobile layout narrows #primary by another 20px after .col-full
 * has already applied the shared shell gutter. Keep a single outer edge for
 * editorial, profile and commerce routes while preserving component insets.
 */
@media (max-width: 767px) {
    html body #content.site-content > .col-full > #primary {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }
}

html body:not(.home):not(.elementor-page-26) .breadcrumb-wrap .elementor-container,
html body:not(.home):not(.elementor-page-26) .breadcrumb-wrap > .elementor > .elementor-section > .elementor-container {
    box-sizing: border-box !important;
    width: min(var(--n9-layout-container-max), calc(100% - (2 * var(--n9-layout-gutter-current)))) !important;
    max-width: var(--n9-layout-container-max) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body.single-post .single-content > .entry-content {
    max-width: var(--n9-layout-reading-max);
    color: var(--n9-color-body) !important;
    font-family: var(--n9-font-family) !important;
    font-weight: var(--n9-weight-regular) !important;
    font-synthesis: none;
}

body.single-post .single-content > .entry-content > p,
body.single-post .single-content > .entry-content > ul > li,
body.single-post .single-content > .entry-content > ol > li {
    color: var(--n9-color-body) !important;
    font-family: var(--n9-font-family) !important;
    font-size: var(--n9-type-article-body-size) !important;
    font-weight: var(--n9-weight-regular) !important;
    font-synthesis: none;
    line-height: var(--n9-type-article-body-line) !important;
}

@media (min-width: 768px) {
    body.single-post .single-content .entry-title {
        font-size: var(--n9-type-article-h1-size) !important;
        line-height: var(--n9-type-article-h1-line) !important;
    }
}

body.archive.blog-ui article.article-default .entry-meta .meta-date,
body.archive.blog-ui article.article-default .entry-meta .meta-date *,
body.archive.blog-ui article.article-default .entry-meta .n9-wc-sit-views,
body.archive.blog-ui article.article-default .entry-meta .n9-wc-sit-views *,
body.category.blog-ui article.article-default .entry-meta .meta-date,
body.category.blog-ui article.article-default .entry-meta .meta-date *,
body.category.blog-ui article.article-default .entry-meta .n9-wc-sit-views,
body.category.blog-ui article.article-default .entry-meta .n9-wc-sit-views * {
    font-size: var(--n9-type-archive-meta-size) !important;
    line-height: var(--n9-type-archive-meta-line) !important;
}

.n9-pr-eyebrow,
.ugc-selling-recipient__eyebrow,
.text-checker-extension-block__eyebrow {
    font-family: var(--n9-font-family) !important;
    font-weight: var(--n9-type-eyebrow-weight) !important;
    font-synthesis: none;
}

.n9-pr-button.n9-button--secondary {
    min-height: var(--n9-button-min-height) !important;
    padding-block: 10px !important;
    border-color: var(--n9-button-secondary-border) !important;
    background: var(--n9-button-secondary-bg) !important;
    color: var(--n9-button-secondary-text) !important;
    font-family: var(--n9-font-family) !important;
    font-size: var(--n9-button-size) !important;
    font-weight: var(--n9-button-weight) !important;
    line-height: var(--n9-button-line) !important;
    font-synthesis: none;
    box-shadow: var(--n9-button-shadow-rest) !important;
}

/* Theme-owned hero and PR CTAs use the shared control contract. */
body.home .kitchor-lite-hero__btn,
body.page-id-30808 .n9-pr-button--ready {
    min-height: var(--n9-button-min-height) !important;
    padding-block: 10px !important;
    border-radius: var(--n9-button-radius) !important;
    font-family: var(--n9-font-family) !important;
    font-size: var(--n9-button-size) !important;
    font-weight: var(--n9-button-weight) !important;
    line-height: var(--n9-button-line) !important;
    font-synthesis: none;
}

body.home .kitchor-lite-hero__btn {
    background: var(--n9-button-primary-bg) !important;
    color: var(--n9-button-primary-text) !important;
    box-shadow: var(--n9-button-shadow-rest) !important;
}

body.page-id-30808 .n9-pr-button--ready {
    border-color: transparent !important;
    background: var(--n9-button-accent-bg) !important;
    color: var(--n9-button-accent-text) !important;
    box-shadow: var(--n9-button-shadow-rest) !important;
}

body.home .elementor-cta__button,
body.home .elementor-button:not(.elementor-cta__button),
body.page-template-page-text-checker .kitchor-text-checker-panel__action,
body.page-template-page-text-checker-php .kitchor-text-checker-panel__action,
body.page-template-page-text-checker .text-checker-new-check-btn,
body.page-template-page-text-checker-php .text-checker-new-check-btn,
body.page-template-page-text-checker .text-checker-not-found-btn,
body.page-template-page-text-checker-php .text-checker-not-found-btn,
body.page-template-page-text-checker .text-checker-run-btn,
body.page-template-page-text-checker-php .text-checker-run-btn,
body.page-template-page-text-checker .kitchor-share-btn,
body.page-template-page-text-checker-php .kitchor-share-btn {
    font-family: var(--n9-font-family) !important;
    font-size: var(--n9-button-size) !important;
    font-weight: var(--n9-button-weight) !important;
    line-height: var(--n9-button-line) !important;
    font-synthesis: none;
}

body.home .elementor-cta__button {
    color: var(--n9-button-tertiary-text) !important;
}

@media (hover: hover) and (pointer: fine) {
    .n9-pr-button.n9-button--secondary:hover {
        background: var(--n9-button-secondary-hover) !important;
        box-shadow: var(--n9-button-shadow-raised) !important;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .n9-pr-button.n9-button--secondary:hover {
        transform: translateY(var(--n9-button-lift));
    }
}

body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card {
    box-shadow: var(--n9-elevation-editorial-rest) !important;
    transform: none !important;
}

@media (hover: hover) and (pointer: fine) {
    body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card:hover {
        box-shadow: var(--n9-elevation-editorial-raised) !important;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card {
        transition: box-shadow var(--n9-motion-card-duration) var(--n9-motion-card-easing),
            transform var(--n9-motion-card-duration) var(--n9-motion-card-easing) !important;
    }

    body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card:hover {
        transform: translateY(var(--n9-elevation-editorial-lift)) !important;
    }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card,
    body.category .blog-ui .elementor-posts--skin-cards .elementor-post__card:hover {
        transition: none !important;
        transform: none !important;
    }
}

body.single-post .navigation.post-navigation {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    body.home .kitchor-lite-hero,
    body.home .kitchor-lite-hero * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
