:root {
    --navy: #003360;
    --blue: #0878e7;
    --blue2: #eaf5ff;
    --teal: #007e9e;
    --ink: #003360;
    --muted: #526b82;
    --line: #dce8f1;
    --paper: #fff;
    --soft: #f3f9fe;
    --gold: #d5a943;
    --accent-gradient: linear-gradient(90deg, #c9a24a 0%, #f2e3a6 35%, #e6c77a 65%, #b8913f 100%);
    --accent-ink: #003360;
    --shadow: 0 8px 24px rgba(0, 51, 96, 0.08);
    --radius: 12px;
    --max: 1300px;
    --ananeoo-home-navy: #003360;
    --ananeoo-home-blue: #0878e7;
    --ananeoo-home-teal: #007e9e;
    --ananeoo-home-muted: #526b82;
    --ananeoo-home-line: #dce8f1;
    --ananeoo-home-soft: #f3f9fe;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0.2px;
}
button,
input,
select,
textarea {
    font: inherit;
}
.site-container,
.cat-hub-container,
.single-breadcrumb-container,
.single-post-header-container {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 10px;
}
body :where(h1, h2, h3, h4, h5, h6) {
    font-family: 'Poppins', Arial, sans-serif;
}
body :where(h1, h2, h3, h4) {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0;
}
body :where(p, li) {
    color: var(--muted);
}
.ananeoo-header {
    height: var(--ananeoo-header-height);
    border-color: var(--line);
    background: var(--ananeoo-header-bg);
    box-shadow: 0 1px 8px rgba(0, 51, 96, 0.04);
    backdrop-filter: none;
}
.ananeoo-header__inner {
    min-height: var(--ananeoo-header-height);
    gap: 24px;
}
.ananeoo-header__title {
    color: var(--ananeoo-header-ink);
    font-family: var(--ananeoo-header-font);
    font-size: var(--ananeoo-header-title-size);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}
.ananeoo-header__tagline {
    margin-top: 4px;
    color: var(--ananeoo-header-tagline);
    font-size: var(--ananeoo-header-tagline-size);
}
.primary-menu {
    gap: 25px;
}
.primary-menu a {
    color: var(--ananeoo-header-ink);
    font-size: var(--ananeoo-header-menu-size);
    font-weight: 400;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--ananeoo-header-hover);
    box-shadow: inset 0 -3px 0 var(--ananeoo-header-hover);
}
.ananeoo-header__button {
    min-height: auto;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--ananeoo-header-button);
    color: var(--ananeoo-header-button-text);
    font-size: var(--ananeoo-header-button-size);
    font-weight: 700;
}
.ananeoo-header__button:hover {
    background: var(--ananeoo-header-button);
    color: var(--ananeoo-header-button-text);
    filter: brightness(1.04);
}
.ananeoo-search-toggle {
    color: var(--ananeoo-header-ink);
}
.tfc-blog-page-wrapper {
    background: var(--soft);
}
.tfc-blog-header,
.single-post-header-section {
    background: linear-gradient(110deg, #f7fbfe 0%, #eef7fc 55%, #e7f3f8 100%);
}
.tfc-blog-title,
.single-post-title,
.articles-title,
.article-card-title,
.single-post-content h2,
.single-post-content h3,
.related-posts-section h2 {
    color: var(--navy);
}
.tfc-blog-subtitle,
.article-summary,
.article-summary p,
.single-post-content {
    color: var(--muted);
}
.tfc-filter-btn.active,
.post-category-badge,
.author-bio-footer a {
    background: var(--blue);
}
.articles-wrapper,
.content-box,
.author-bio-box,
.social-share-box,
.tags-box {
    border-color: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.articles-wrapper {
    border-top-color: var(--blue);
}
.article-card,
.related-post-card {
    border-color: var(--line);
    border-radius: 13px;
    box-shadow: 0 5px 17px rgba(22, 53, 77, 0.045);
}
.article-card:hover,
.related-post-card:hover {
    box-shadow: var(--shadow);
}
.article-category {
    background: var(--blue2);
    color: var(--blue);
}
.article-readmore,
.single-post-content a,
.toc-list a,
.post-author-credential {
    color: var(--blue);
}
.blog-articles {
    padding-block: 68px;
}
.single-post-header-section {
    padding-block: 58px;
}
.content-section {
    padding-block: 68px;
}
.related-posts-section {
    padding-block: 68px;
    background: var(--soft);
}
.site-footer {
    padding: 42px 0 20px;
    background: #f3f9fe;
    color: var(--muted);
}
.site-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 38px;
}
.site-footer h2 {
    margin: 4px 0 13px;
    color: var(--navy);
    font:
        700 1.15rem 'Poppins',
        Arial,
        sans-serif;
}
.site-footer p {
    max-width: 270px;
    margin: 14px 0;
    font-size: 0.78rem;
}
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-menu a {
    color: var(--navy);
    font-size: 0.76rem;
    text-decoration: none;
}
.footer-menu a:hover {
    color: var(--blue);
}
.site-info {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #70869a;
    font-size: 0.68rem;
}
@media (max-width: 960px) {
    .ananeoo-header {
        height: var(--ananeoo-header-height);
    }
    .ananeoo-header__inner {
        min-height: var(--ananeoo-header-height);
    }
    .site-navigation {
        background: var(--ananeoo-header-bg);
    }
    .primary-menu a {
        font-size: var(--ananeoo-header-menu-size);
    }
    .site-footer__inner {
        flex-direction: column;
    }
}
@media (max-width: 720px) {
    .site-container,
    .cat-hub-container,
    .single-breadcrumb-container,
    .single-post-header-container {
        width: 100%;
        max-width: 1300px;
        padding-inline: 10px;
    }
    .blog-articles,
    .content-section,
    .related-posts-section {
        padding-block: 49px;
    }
    .tfc-blog-header,
    .single-post-header-section {
        padding-block: 45px;
    }
    .site-footer {
        padding-top: 35px;
    }
    .footer-menu {
        gap: 12px;
    }
}

/* Homepage components inherit block colors and backgrounds so editor controls remain authoritative. */
body.home {
    background: #fff;
    color: var(--ink);
}
body.home .site-main {
    background: #fff;
}

/* Slightly improve linked H3 prominence across Home and inner templates. */
h3 > a {
    font-size: 1.08em;
    line-height: 1.25;
}

/* Ananeoo-inspired visual skin; component structure and spacing stay intact. */
.ananeoo-featured-card,
.ananeoo-topic-card,
.ananeoo-resource-card,
.article-card,
.related-post-card,
.content-box,
.author-bio-box,
.social-share-box,
.tags-box {
    border-color: var(--line) !important;
    border-radius: var(--radius) !important;
    background: #fff;
    box-shadow: var(--shadow) !important;
}
.ananeoo-featured-card h3,
.ananeoo-featured-card h3 a,
.ananeoo-resource-card h3,
.article-card-title,
.article-card-title a,
.related-post-card h3 a {
    color: var(--navy) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}
.ananeoo-featured-card__category,
.ananeoo-resource-card span,
.ananeoo-home-eyebrow,
.ananeoo-featured-view-all,
.article-readmore {
    color: var(--blue) !important;
}
.article-category {
    background: var(--blue2) !important;
    color: var(--blue) !important;
}
.tfc-blog-page-wrapper,
.related-posts-section {
    background: var(--soft) !important;
}
.tfc-blog-header,
.single-post-header-section {
    background: linear-gradient(115deg, #f4faff 0%, #e7f4ff 100%) !important;
}
.tfc-blog-title,
.tfc-blog-subtitle {
    color: var(--navy) !important;
}
.post-category-badge,
.author-bio-footer a,
.tfc-filter-btn.active {
    background: var(--blue) !important;
    color: #fff !important;
}

/* Custom block settings always win over the visual defaults above. */
.ananeoo-featured-section__title.ananeoo-advanced-heading h2,
.ananeoo-featured-section__eyebrow.ananeoo-advanced-heading p {
    color: var(--ananeoo-adv-color, inherit) !important;
    font-family: var(--ananeoo-adv-font-family, 'Poppins', Arial, sans-serif) !important;
    font-size: var(--ananeoo-adv-font-size, inherit) !important;
    line-height: var(--ananeoo-adv-line-height, inherit) !important;
}
.ananeoo-home-eyebrow.ananeoo-advanced-heading {
    color: var(--ananeoo-adv-color, inherit) !important;
}
.ananeoo-home-eyebrow.ananeoo-advanced-heading > * {
    color: inherit !important;
    font-family: var(--ananeoo-adv-font-family, 'Poppins', Arial, sans-serif) !important;
}

.ananeoo-home-button,
.ananeoo-subscribe-form button,
.author-bio-footer a {
    border-color: transparent;
    background: var(--accent-gradient) !important;
    color: var(--accent-ink) !important;
    font-weight: 700;
}
.ananeoo-home-button:hover,
.ananeoo-subscribe-form button:hover,
.author-bio-footer a:hover {
    filter: brightness(1.04);
}

/* Accessible type scale for a vision-health audience. Custom block typography remains editor-controlled. */
html {
    font-size: 18px;
}
body {
    font-size: 1rem;
    line-height: 1.7;
}
.primary-menu a {
    font-size: var(--ananeoo-header-menu-size);
}
.ananeoo-header__tagline {
    font-size: var(--ananeoo-header-tagline-size);
}
.ananeoo-header__button {
    font-size: var(--ananeoo-header-button-size);
}
.ananeoo-home-button,
.ananeoo-subscribe-form button {
    font-size: 0.94rem;
}
.site-footer p,
.footer-menu a {
    font-size: 0.9rem;
}
.site-info {
    font-size: 0.78rem;
}
.ananeoo-home-eyebrow {
    font-size: 0.82rem;
}
.ananeoo-home-section-head > a {
    font-size: 1rem;
}
.ananeoo-topic-card strong {
    font-size: 1.08rem;
}
.ananeoo-topic-card small {
    font-size: 0.86rem;
}
.ananeoo-mission-copy p {
    font-size: 1rem;
}
.ananeoo-home-stats small {
    font-size: 0.82rem;
}
.ananeoo-resource-card span {
    font-size: 0.76rem;
}
.ananeoo-resource-card h3 {
    font-size: 1.12rem;
}
.ananeoo-newsletter-title p {
    font-size: 0.94rem;
}
.article-summary {
    font-size: 1rem;
}
.article-readmore {
    font-size: 0.94rem;
}
@media (max-width: 720px) {
    html {
        font-size: 17px;
    }
    .primary-menu a {
        font-size: var(--ananeoo-header-menu-size);
    }
    .ananeoo-header__brand,
    .ananeoo-header__identity {
        min-width: 0;
        max-width: calc(100vw - 72px);
    }
    .ananeoo-header__tagline {
        overflow-wrap: anywhere;
        font-size: var(--ananeoo-header-tagline-size);
        line-height: 1.35;
        white-space: normal;
    }
}

/* Unified navy background for archive filters, post badges and author actions. */
.post-category-badge,
.author-bio-footer a,
.tfc-filter-btn.active {
    border-color: #003360 !important;
    background: #003360 !important;
    color: #fff !important;
}
.post-category-badge:hover,
.author-bio-footer a:hover,
.tfc-filter-btn.active:hover {
    background: #003360 !important;
    color: #fff !important;
    filter: brightness(1.12);
}

/* Theme action buttons use the same navy; editor-controlled Advanced Button colors remain untouched. */
.ananeoo-home-button,
.ananeoo-subscribe-form button,
.search-submit,
.wp-block-search__button,
.vision-assessment-card a,
.blog-pagination .current,
.pagination .current,
.error-404 .button {
    border-color: #003360 !important;
    background: #003360 !important;
    color: #fff !important;
}
.ananeoo-home-button:hover,
.ananeoo-subscribe-form button:hover,
.search-submit:hover,
.wp-block-search__button:hover,
.vision-assessment-card a:hover,
.error-404 .button:hover {
    background: #003360 !important;
    color: #fff !important;
    filter: brightness(1.12);
}

/* Dynamic four-column footer. */
.site-footer {
    padding: 46px 0 24px;
    border-top: 4px solid #eef7fc;
    background: #fff;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(240px, 1.55fr) repeat(3, minmax(150px, 1fr));
    align-items: start;
    gap: 52px;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    min-height: 145px;
}
.site-footer__identity {
    display: flex;
    align-items: center;
    gap: 15px;
}
.site-footer__identity .custom-logo-link {
    display: block;
}
.site-footer__identity .custom-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 72px;
}
.site-footer__brand-mark {
    display: block;
    width: 25px;
    height: 25px;
    flex: none;
    border: 3px solid #0788d8;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
    background: #0788d8;
}
.site-footer__brand h2,
.site-footer__column h2 {
    margin: 0 0 13px;
    color: #003360;
    font:
        700 17px/1.3 'Poppins',
        Arial,
        sans-serif;
}
.site-footer__brand h2 {
    margin-bottom: 2px;
    font-size: 20px;
}
.site-footer__brand p {
    max-width: 260px;
    margin: 0;
    color: #526b82;
    font-size: 11px;
    line-height: 1.45;
}
.site-footer__column .footer-menu {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}
.site-footer .footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer .footer-menu a {
    display: block;
    color: #526b82;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}
.site-footer .footer-menu a:hover {
    color: #0878e7;
}
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #dce8f1;
}
.site-footer .site-info {
    margin: 0;
    padding: 0;
    border: 0;
    color: #60798d;
    font-size: 12px;
}
.site-footer__legal .footer-menu--legal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}
.site-footer__legal .footer-menu--legal a {
    font-size: 12px;
}
@media (max-width: 960px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }
    .site-footer__brand {
        min-height: 0;
    }
    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .site-footer__legal .footer-menu--legal {
        justify-content: flex-start;
    }
}
@media (max-width: 600px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
    .site-footer__identity .custom-logo {
        max-width: 210px;
    }
    .site-footer__bottom {
        margin-top: 24px;
    }
    .site-footer__legal .footer-menu--legal {
        gap: 10px 16px;
    }
}
