/*
Theme Name: EmailMarketingChoice Child
Template: twentytwentyfive
Version: 1.0.2
Text Domain: emailmarketingchoice-child
*/

/* Shared with the block editor; native blocks remain editable. */
:root {
    --emc-ink: #172b3a;
    --emc-teal: #086b60;
    --emc-muted: #52636e;
    --emc-line: #d9e4e1;
    --emc-mist: #eff6f4;
}

html { scroll-padding-top: 2rem; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
a { text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--emc-teal);
    outline-offset: 5px;
}
.emc-header, .emc-footer, .emc-hero, .emc-section {
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.emc-header { padding-block: 1.4rem; border-bottom: 1px solid var(--emc-line); }
.emc-header-inner { gap: 1.25rem 2rem; }
.emc-brand { margin: 0; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.045em; }
.emc-brand a { color: var(--emc-ink); text-decoration: none; }
.emc-navigation { font-size: 0.875rem; font-weight: 600; }
.emc-navigation .wp-block-navigation__container { gap: 1rem; }
.emc-navigation a, .emc-footer-navigation a { text-decoration: none; }
.emc-navigation a:hover, .emc-footer-navigation a:hover { text-decoration: underline; }
.wp-site-blocks > .emc-main, .wp-site-blocks > footer { margin-block-start: 0; }
.emc-main > * { margin-block: 0; }
.emc-hero { background: var(--emc-mist); padding-block: clamp(3.5rem, 7vw, 6rem); }
.emc-eyebrow { color: var(--emc-teal); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.emc-hero h1 { max-width: 950px; margin-block: 1.25rem; text-wrap: balance; }
.emc-lead { max-width: 760px; color: var(--emc-muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.emc-hero .wp-block-buttons { margin-top: 2rem; gap: 0.85rem; }
.emc-main .wp-block-button__link { min-height: 48px; }
.emc-main .wp-block-button__link:hover { background: #07574e; color: #fff; }
.emc-main .is-style-outline .wp-block-button__link { color: var(--emc-teal); background: transparent; border: 1px solid var(--emc-teal); }
.emc-main .is-style-outline .wp-block-button__link:hover { background: #dfeee9; }
.emc-hero-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--emc-muted); }
.emc-section { padding-block: clamp(3rem, 6vw, 5rem); }
.emc-section h2 { max-width: 860px; text-wrap: balance; }
.emc-section-intro { max-width: 760px; color: var(--emc-muted); }
.emc-content-grid, .emc-evaluation-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.emc-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emc-evaluation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; }
.emc-content-grid > *, .emc-evaluation-grid > * { margin-block: 0; min-width: 0; }
.emc-topic { padding: 1.75rem; border: 1px solid var(--emc-line); border-radius: 8px; }
.emc-topic h3, .emc-dimension h3 { margin-top: 0; }
.emc-topic p, .emc-dimension p { margin-block: 0.75rem 0; color: var(--emc-muted); }
.emc-topic h3 a { color: inherit; text-decoration: none; }
.emc-topic h3 a:hover { text-decoration: underline; }
.emc-latest-query { margin-top: 2rem; }
.emc-latest-query .wp-block-post-template { gap: 1.25rem; }
.emc-latest-query .wp-block-post { padding: 1.5rem; border: 1px solid var(--emc-line); border-radius: 8px; min-width: 0; }
.emc-latest-query .wp-block-post-featured-image { margin: 0 0 1.25rem; }
.emc-latest-query .wp-block-post-featured-image img { display: block; width: 100%; height: auto; }
.emc-latest-query .wp-block-post-title { margin-block: 0 0 0.75rem; font-size: 1.25rem; }
.emc-latest-query .wp-block-post-title a { text-decoration: none; }
.emc-latest-query .wp-block-post-title a:hover { text-decoration: underline; }
.emc-latest-query .wp-block-post-excerpt { color: var(--emc-muted); }
.emc-latest-query .wp-block-read-more { font-weight: 600; }
.emc-methodology { background: #f7f9f8; border-block: 1px solid var(--emc-line); }
.emc-dimension { border-top: 2px solid var(--emc-line); padding-top: 1.25rem; }
.emc-methodology-note { max-width: 850px; border-left: 3px solid var(--emc-teal); padding-left: 1.25rem; margin-top: 2.5rem; }
.emc-footer { padding-block: 3rem 1.5rem; }
.emc-footer-heading { font-size: 1.125rem; margin-top: 1.5rem; }
.emc-footer-intro { max-width: 650px; color: var(--emc-muted); }
.emc-footer-navigation { margin-block: 1.75rem; font-size: 0.9375rem; }
.emc-footer-navigation .wp-block-navigation__container { gap: 0.75rem 1.75rem; }
.emc-footer-status, .emc-footer-bottom { font-size: 0.8125rem; color: var(--emc-muted); }
.emc-footer .wp-block-details { margin-top: 0; border-top: 1px solid var(--emc-line); font-size: 0.875rem; }
.emc-footer summary { cursor: pointer; padding-block: 0.85rem; font-weight: 600; }
.emc-footer .wp-block-details p { max-width: 760px; margin-block: 0 1rem; color: var(--emc-muted); }
.emc-footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--emc-line); }

@media (max-width: 1000px) {
    .emc-header-inner { justify-content: center; }
    .emc-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .emc-latest-query .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .emc-header-inner { justify-content: space-between; }
    .emc-brand { font-size: 1rem; }
    .emc-content-grid, .emc-evaluation-grid { grid-template-columns: minmax(0, 1fr); }
    .emc-latest-query .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
    .emc-hero .wp-block-buttons, .emc-hero .wp-block-button { width: 100%; }
    .emc-hero .wp-block-button__link { width: 100%; text-align: center; }
    .emc-topic { padding: 1.25rem; }
    .emc-navigation .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
    .emc-navigation .is-menu-open .wp-block-navigation__container { gap: 1.25rem; }
    .emc-navigation .is-menu-open a { padding-block: 0.35rem; }
}

/* Keep the comparison table readable on phones in the first article. */
@media (max-width: 767px) {
    body.single-post.postid-12 .wp-block-post-content .wp-block-table {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.single-post.postid-12 .wp-block-post-content .wp-block-table table {
        width: max(100%, 840px);
        min-width: 840px;
    }
    body.single-post.postid-12 .wp-block-post-content .wp-block-table th,
    body.single-post.postid-12 .wp-block-post-content .wp-block-table td {
        overflow-wrap: normal;
        word-break: normal;
    }
}
