/*
Theme Name: Evolvarium
Theme URI: https://evolvarium.com/
Author: Evolvarium
Description: A compact, story-first editorial block theme. Native WordPress blocks, system typography, semantic design tokens and the approved Evolvarium palette.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evolvarium
Tags: blog, news, block-patterns, full-site-editing, wide-blocks, custom-colors, custom-logo, editor-style, featured-images, threaded-comments, translation-ready
*/
/* Hallmark v2.0.0 · direction: custom (deal: manual) · genre: editorial · "compact reader": shadcn/ui-inspired semantic tokens over the approved purple/mint palette, sans-serif title blocks, text-first story rows, one article axis. Signature: the real latest headline, readable before any image. */
/* Critique: fixes the page-list header, 260px fallback wordmark, image-first homepage, ch-misaligned article head, oversized article media and missing footer utility links. */
/* Waived on the record (blog adaptation, not a strict pass): Floor 15 stamp follows the required WordPress theme header; Floor 4 no overflow-x clip on html/body because this project forbids hiding overflow, horizontal overflow is measured instead; Floor 13 listing screens exceed 80 words because they are a story index; Taste violet and thin-rule bans yield to the approved brand purple and the brief's restrained 1px borders; Taste motion layer omitted for a reading product. */
/* System fonts only; no theme scripts, title clamps, overflow clipping or dependencies. */

*, *::before, *::after { box-sizing: border-box; }

/* Semantic roles. Components reference these, never the palette presets directly. */
:root {
 --evo-background: var(--wp--preset--color--white);
 --evo-foreground: var(--wp--preset--color--ink);
 --evo-muted: var(--wp--preset--color--canvas);
 --evo-muted-foreground: var(--wp--preset--color--slate);
 --evo-border: var(--wp--preset--color--border);
 --evo-input: color-mix(in srgb, var(--wp--preset--color--slate) 72%, var(--wp--preset--color--white));
 --evo-primary: var(--wp--preset--color--action-purple);
 --evo-primary-foreground: var(--wp--preset--color--white);
 --evo-accent: var(--wp--preset--color--lavender-soft);
 --evo-accent-foreground: var(--wp--preset--color--action-purple);
 --evo-highlight: var(--wp--preset--color--mint-soft);
 --evo-highlight-strong: var(--wp--preset--color--brand-mint);
 --evo-ring: var(--wp--preset--color--action-purple);
 --evo-image-outline: rgb(0 0 0 / .1);
 --evo-font-sans: var(--wp--preset--font-family--sans);

 --evo-radius: .5rem;
 --evo-radius-sm: .375rem;
 --evo-radius-full: 9999px;

 --evo-text-xs: .8125rem;
 --evo-text-sm: .875rem;
 --evo-text-base: 1rem;
 --evo-text-body: 1.125rem;
 --evo-text-body-mobile: 1.0625rem;
 --evo-text-control: 1rem;
 --evo-text-listing: 1.5rem;
 --evo-text-story: 1.125rem;
 --evo-text-lead: clamp(1.75rem, 1.15rem + 1.6vw, 2.5rem);
 --evo-text-article-title: var(--wp--preset--font-size--xx-large, 2.5rem);
 --evo-leading-body: 1.7;
 --evo-leading-title: 1.15;
 --evo-leading-snug: 1.35;

 --evo-control-height: 2.5rem;
 --evo-touch-target: 2.75rem;
 --evo-thumb-width: 9rem;
 --evo-media-width: 42rem;
}

html { scroll-padding-top: 1rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; color: var(--evo-foreground); background: var(--evo-background); }
::selection { background: var(--evo-highlight-strong); color: var(--evo-foreground); }
.wp-block-heading, .wp-block-post-title { text-wrap: balance; min-width: 0; overflow-wrap: break-word; }
.wp-block-post-content p, .wp-block-post-excerpt__excerpt, .listing-description { text-wrap: pretty; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { text-underline-offset: .2em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .125em; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--evo-ring); outline-offset: 2px; border-radius: 2px; }
:where(input, textarea, select) { max-width: 100%; font: inherit; }
:where(button, input[type=submit]) { cursor: pointer; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header: one compact row (brand, curated links, search) and a separate topic row. */
.site-header { background: var(--evo-background); border-bottom: 1px solid var(--evo-border); }
.header-inner { display: flex; align-items: center; gap: .75rem 1.5rem; min-height: 3.5rem; padding-block: .625rem .125rem; }
.header-inner > * { min-width: 0; margin: 0; }
.brand-lockup { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.brand-lockup > * { margin: 0; }
.brand-lockup:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }
.brand-symbol { flex: 0 0 auto; margin: 0; line-height: 0; }
.brand-symbol img { display: block; width: 2rem; height: 2rem; object-fit: contain; }
/* Width comes from the block's width attribute (140px fallback); height follows the artwork. */
.wp-block-site-logo { flex: 0 0 auto; line-height: 0; }
.wp-block-site-logo img { display: block; max-width: 100%; height: auto; max-height: 2.75rem; object-fit: contain; object-position: left center; }
.wp-block-site-title a { color: var(--evo-foreground); text-decoration: none; }

.main-navigation { flex: 1 1 auto; font-size: var(--evo-text-sm); font-weight: 500; }
.main-navigation .wp-block-navigation__container { gap: .25rem; }
.main-navigation .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: var(--evo-control-height); padding-inline: .75rem; border-radius: var(--evo-radius-sm); color: var(--evo-muted-foreground); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.main-navigation .wp-block-navigation-item__content[aria-current="page"] { color: var(--evo-accent-foreground); background: var(--evo-accent); }
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { display: inline-flex; align-items: center; justify-content: center; min-width: var(--evo-touch-target); min-height: var(--evo-touch-target); border-radius: var(--evo-radius-sm); color: var(--evo-foreground); }
.wp-block-navigation__responsive-container-open { border: 1px solid var(--evo-border); background: var(--evo-background); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1rem clamp(1rem, 4vw, 2rem); background: var(--evo-background); color: var(--evo-foreground); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; min-height: 3rem; padding-inline: .75rem; font-size: var(--evo-text-body); }

.header-search { flex: 0 1 16rem; margin-inline-start: auto; }

.topics-list.wp-block-categories { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 0 -.625rem; padding: 0 0 .5rem; font-size: var(--evo-text-sm); font-weight: 500; line-height: 1.4; }
.topics-list li { margin: 0; flex: 0 0 auto; }
.topics-list a { display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: .625rem; border-radius: var(--evo-radius-sm); color: var(--evo-muted-foreground); text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out; }
.topics-list .current-cat > a { color: var(--evo-accent-foreground); background: var(--evo-accent); }

/* Search: one input surface with an inset icon button. */
.wp-block-search__button-inside .wp-block-search__inside-wrapper { align-items: center; min-height: var(--evo-control-height); padding: 0; border: 1px solid var(--evo-input); border-radius: var(--evo-radius-sm); background: var(--evo-background); }
.wp-block-search__inside-wrapper:has(.wp-block-search__input:focus-visible) { outline: 2px solid var(--evo-ring); outline-offset: 2px; }
.wp-block-search__button-inside .wp-block-search__input:focus-visible { outline: none; }
.wp-block-search__input { flex: 1 1 auto; min-width: 0; height: calc(var(--evo-control-height) - 2px); border: 0; padding: 0 .75rem; background: transparent; color: var(--evo-foreground); font-size: var(--evo-text-sm); }
.wp-block-search__input::placeholder { color: var(--evo-muted-foreground); opacity: 1; }
.wp-block-search__button { margin: 0; border: 0; font-size: var(--evo-text-sm); font-weight: 500; }
.wp-block-search__button.has-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: calc(var(--evo-control-height) - 2px); height: calc(var(--evo-control-height) - 2px); padding: 0; border-radius: calc(var(--evo-radius-sm) - 1px); background: transparent; color: var(--evo-muted-foreground); transition: background-color .15s ease-out, color .15s ease-out; }
.wp-block-search__button svg { fill: currentColor; width: 1.25rem; height: 1.25rem; min-width: 0; min-height: 0; }
.wp-block-search__button-outside .wp-block-search__inside-wrapper { gap: .5rem; }
.wp-block-search__button-outside .wp-block-search__input { height: var(--evo-control-height); border: 1px solid var(--evo-input); border-radius: var(--evo-radius-sm); background: var(--evo-background); }
.wp-block-search__button:not(.has-icon) { min-height: var(--evo-control-height); padding-inline: 1rem; border-radius: var(--evo-radius-sm); background: var(--evo-primary); color: var(--evo-primary-foreground); }
.wp-block-search__label { font-size: var(--evo-text-sm); font-weight: 500; }

/* Listings */
.site-main { padding-block: 2rem 4rem; min-height: 55vh; }
.story-listing > .stories-query { max-width: none; }
.listing-header { margin-bottom: 1.25rem; }
.listing-header > * { margin: 0; }
.listing-title { font-size: var(--evo-text-listing); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.listing-description { max-width: 40rem; margin-top: .5rem; color: var(--evo-muted-foreground); font-size: var(--evo-text-base); }
.listing-description > * { margin: 0; }
.listing-search { max-width: 28rem; margin-top: 1rem; }

/* One query in document order. Each card is text first, image second; the title link covers the card. */
.editorial-stories.wp-block-post-template { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3rem; margin: 0; padding: 0; list-style: none; }
.editorial-stories > li { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; min-width: 0; margin: 0; padding-block: 1.25rem; border-top: 1px solid var(--evo-border); }
.story-card-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: .375rem; min-width: 0; }
.story-card-body > * { margin: 0; }
.story-media { flex: 0 0 var(--evo-thumb-width); margin: 0; }
.story-media img, .article-media img { display: block; border-radius: var(--evo-radius-sm); outline: 1px solid var(--evo-image-outline); outline-offset: -1px; background: var(--evo-muted); }
.story-title { font-size: var(--evo-text-story); font-weight: 600; line-height: var(--evo-leading-snug); letter-spacing: -.01em; }
.story-title a { color: var(--evo-foreground); text-decoration: none; }
.story-title a::after { content: ""; position: absolute; inset: 0; }
.story-category a, .story-meta a { position: relative; z-index: 1; }
.story-category, .article-category { display: flex; flex-wrap: wrap; gap: .375rem; }
.story-category a { color: var(--evo-accent-foreground); font-size: var(--evo-text-xs); font-weight: 500; text-decoration: none; }
.story-category a:hover { text-decoration: underline; }
.editorial-stories .wp-block-post-excerpt { display: none; color: var(--evo-muted-foreground); font-size: var(--evo-text-base); line-height: 1.6; }
.editorial-stories .wp-block-post-excerpt__excerpt { margin: 0; }
.story-meta, .article-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; color: var(--evo-muted-foreground); font-size: var(--evo-text-xs); }
.story-meta > *, .article-meta > * { margin: 0 !important; }
.story-meta a { color: inherit; text-decoration: none; }
.story-meta a:hover { text-decoration: underline; }

/* Lead story on the front/blog index: headline column first, supporting image beside it. */
.stories-query--lead .editorial-stories > li:first-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 0 2rem; border-top: 0; }
.stories-query--lead .editorial-stories > li:first-child .story-card-body { gap: .625rem; }
.stories-query--lead .editorial-stories > li:first-child .story-title { font-size: var(--evo-text-lead); line-height: var(--evo-leading-title); letter-spacing: -.025em; }
.stories-query--lead .editorial-stories > li:first-child .wp-block-post-excerpt { display: block; max-width: 36rem; font-size: 1.0625rem; }
.stories-query--lead .editorial-stories > li:first-child .story-meta { font-size: var(--evo-text-sm); }
.stories-query--lead .editorial-stories > li:first-child .story-media { flex: none; }
.stories-query--lead .editorial-stories > li:first-child .story-media img { border-radius: var(--evo-radius); }

.wp-block-query-pagination { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--evo-border); gap: .5rem; font-size: var(--evo-text-sm); font-weight: 500; align-items: center; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: .25rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--evo-control-height); min-height: var(--evo-control-height); padding-inline: .75rem; border-radius: var(--evo-radius-sm); color: var(--evo-foreground); text-decoration: none; transition: background-color .15s ease-out; }
.wp-block-query-pagination .page-numbers.current { background: var(--evo-accent); color: var(--evo-accent-foreground); font-weight: 600; }
.wp-block-query-pagination .page-numbers.dots { min-width: auto; padding-inline: .25rem; }

/* Article and page: category, title, byline and prose share one wrapper edge (rem measure, not ch). */
.single-story, .standard-page, .not-found { padding-top: 1.75rem; }
.article-header { display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; margin-bottom: 1.5rem; }
.article-header > * { margin: 0; }
.article-category a { display: inline-flex; align-items: center; min-height: 1.75rem; padding-inline: .625rem; border-radius: var(--evo-radius-full); background: var(--evo-accent); color: var(--evo-accent-foreground); font-size: var(--evo-text-xs); font-weight: 500; text-decoration: none; }
.article-category a:hover { text-decoration: underline; }
.article-category .wp-block-post-terms__separator { display: none; }
.article-title { font-weight: 600; line-height: var(--evo-leading-title); letter-spacing: -.025em; }
.article-meta { font-size: var(--evo-text-sm); }
.article-meta a { color: var(--evo-foreground); font-weight: 500; text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }
.single-story > .article-media.alignwide, .standard-page > .article-media.alignwide, .single-story > .article-media, .standard-page > .article-media { max-width: var(--evo-media-width); margin-block: 0 1.75rem; }
.article-media img { border-radius: var(--evo-radius); }

.article-body { font-size: var(--evo-text-body); line-height: var(--evo-leading-body); letter-spacing: 0; }
.article-body :where(h2, h3, h4, h5, h6) { font-weight: 600; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.article-body :where(h2) { font-size: 1.5rem; }
.article-body :where(h3) { font-size: 1.25rem; }
.article-body :where(h4, h5, h6) { font-size: 1.125rem; }
.article-body :where(h2, h3, h4) { margin-top: 2.25em; margin-bottom: .6em; }
.article-body :where(ul, ol) { padding-inline-start: 1.5em; }
.article-body li + li { margin-top: .5em; }
.article-body a { color: var(--evo-primary); text-decoration: underline; }
.article-body :where(pre, table) { max-width: 100%; overflow-x: auto; }
.article-body table { border-collapse: collapse; font-size: var(--evo-text-base); }
.article-body :where(th, td) { padding: .5rem .75rem; border: 1px solid var(--evo-border); text-align: start; }
.article-body th { background: var(--evo-muted); font-weight: 600; }
.article-body :where(code):not(pre code) { padding: .1em .35em; border-radius: .25rem; background: var(--evo-muted); font-size: .875em; }
.article-body hr, .wp-block-separator { border: 0; border-top: 1px solid var(--evo-border); }
.wp-block-image.is-style-rounded img { border-radius: var(--evo-radius-full); }
.wp-element-caption { color: var(--evo-muted-foreground); font-size: var(--evo-text-xs); line-height: 1.6; }
.wp-block-quote { margin-inline: 0; padding: 1rem 1.25rem; border-radius: 0 var(--evo-radius) var(--evo-radius) 0; background: var(--evo-highlight); }
.wp-block-quote > :last-child { margin-bottom: 0; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-block: 2.5rem 0; color: var(--evo-muted-foreground); font-size: var(--evo-text-sm); }
.article-tags a { display: inline-flex; align-items: center; min-height: 1.75rem; padding-inline: .625rem; border-radius: var(--evo-radius-full); background: var(--evo-highlight); color: var(--evo-foreground); text-decoration: none; }
.article-tags .wp-block-post-terms__separator { display: none; }
.article-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--evo-border); }
.article-navigation > * { min-width: 0; margin: 0; }
.article-navigation .post-navigation-link-next { grid-column: 2; text-align: end; }
.article-navigation a { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--evo-border); border-radius: var(--evo-radius); color: var(--evo-foreground); font-size: var(--evo-text-base); font-weight: 600; line-height: var(--evo-leading-snug); text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out; }
.article-navigation .post-navigation-link__label { color: var(--evo-muted-foreground); font-size: var(--evo-text-xs); font-weight: 500; }
.article-comments { margin-top: 3rem; }
.comment-item { padding-block: 1.5rem; border-bottom: 1px solid var(--evo-border); }
.wp-block-comment-date { font-size: var(--evo-text-xs); }
.comment-form { font-size: var(--evo-text-sm); }
.comment-form label { font-weight: 500; }
.comment-form :where(input:not([type=checkbox]):not([type=submit]), textarea) { font-size: var(--evo-text-control); width: 100%; padding: .625rem .75rem; border: 1px solid var(--evo-input); border-radius: var(--evo-radius-sm); background: var(--evo-background); color: var(--evo-foreground); }
.comment-form input[type=submit] { min-height: var(--evo-control-height); padding-inline: 1rem; border: 0; border-radius: var(--evo-radius-sm); background: var(--evo-primary); color: var(--evo-primary-foreground); font-weight: 500; }

.not-found-search { max-width: 28rem; }
.not-found-heading { margin-top: 2.5rem; font-size: var(--evo-text-base); }
.not-found-topics { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; list-style: none; }
.not-found-topics a { display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: .75rem; border: 1px solid var(--evo-border); border-radius: var(--evo-radius-sm); color: var(--evo-foreground); font-size: var(--evo-text-sm); text-decoration: none; }

/* Footer: brand and search, then real site and policy pages. */
.site-footer { padding-block: 3rem 1.5rem; border-top: 1px solid var(--evo-border); background: var(--evo-muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.footer-grid > * { margin: 0; }
.footer-brand { display: flex; flex-direction: column; gap: .75rem; max-width: 22rem; }
.footer-brand > *, .footer-brand-row > * { margin: 0; }
.footer-brand-row { display: flex; align-items: center; gap: .625rem; }
.footer-brand-symbol img { display: block; width: 2.5rem; height: 2.5rem; }
.footer-tagline { color: var(--evo-muted-foreground); font-size: var(--evo-text-sm); }
.footer-search { margin-top: .25rem; }
.footer-heading { margin: 0 0 .5rem; font-size: var(--evo-text-sm); font-weight: 600; letter-spacing: 0; }
.footer-column:not(:has(a)) { display: none; }
.footer-links .wp-block-navigation__container { gap: 0; }
.footer-links .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 2rem; color: var(--evo-muted-foreground); font-size: var(--evo-text-sm); text-decoration: none; }
.footer-links .wp-block-navigation-item__content[aria-current="page"] { color: var(--evo-foreground); font-weight: 500; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--evo-border); color: var(--evo-muted-foreground); font-size: var(--evo-text-sm); }
.footer-bottom > * { margin: 0; }
.footer-bottom a { color: inherit; }

@media (hover: hover) {
 .main-navigation .wp-block-navigation-item__content:hover, .topics-list a:hover { background: var(--evo-muted); color: var(--evo-foreground); }
 .wp-block-navigation__responsive-container-open:hover, .wp-block-search__button.has-icon:hover, .wp-block-query-pagination a:hover { background: var(--evo-muted); color: var(--evo-foreground); }
 .editorial-stories > li:hover .story-title a { text-decoration: underline; }
 .article-navigation a:hover { border-color: var(--evo-input); background: var(--evo-muted); }
 .footer-links .wp-block-navigation-item__content:hover { color: var(--evo-foreground); text-decoration: underline; }
}

/* Press feedback on real buttons only; never on disabled controls. */
:where(.wp-element-button, .wp-block-search__button, .comment-form input[type=submit], .wp-block-navigation__responsive-container-open):not(:disabled):active { scale: .96; }
@media (prefers-reduced-motion: no-preference) {
 :where(.wp-element-button, .wp-block-search__button, .comment-form input[type=submit], .wp-block-navigation__responsive-container-open) { transition-property: scale, background-color, color; transition-duration: .15s; transition-timing-function: ease-out; }
}
@media (min-width: 900px) {
 .editorial-stories.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .stories-query--lead .editorial-stories > li:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2.5rem; }
}
@media (max-width: 699px) {
 .header-inner { flex-wrap: wrap; }
 .header-search { flex: 1 1 100%; }
}
@media (max-width: 781px) {
 .wp-block-search__button-inside .wp-block-search__inside-wrapper, .wp-block-search__button-outside .wp-block-search__input { min-height: var(--evo-touch-target); }
 .wp-block-search__button.has-icon { width: calc(var(--evo-touch-target) - 2px); height: calc(var(--evo-touch-target) - 2px); }
 .wp-block-search__button-inside .wp-block-search__input { height: calc(var(--evo-touch-target) - 2px); }
 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer-brand { grid-column: 1 / -1; max-width: none; }
 .footer-links .wp-block-navigation-item__content { min-height: var(--evo-touch-target); }
}
@media (max-width: 599px) {
 .header-inner { gap: .5rem .75rem; padding-block: .5rem .625rem; }
 .main-navigation { flex: 0 0 auto; margin-inline-start: auto; }
 .brand-lockup .wp-block-site-logo img { max-width: 7.5rem; }
 .brand-lockup .brand-symbol img { width: 1.75rem; height: 1.75rem; }
 .topics-list.wp-block-categories { flex-wrap: nowrap; margin-inline: -.625rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; }
 .topics-list a { min-height: var(--evo-touch-target); }
 .site-main { padding-top: 1.5rem; }
 .single-story, .standard-page, .not-found { padding-top: 1.5rem; }
 .editorial-stories > li { gap: 1rem; }
 .story-media { flex-basis: 6rem; }
 .story-title { font-size: var(--evo-text-base); }
 .article-header { margin-bottom: 1.5rem; }
 .single-story > .article-media, .standard-page > .article-media { margin-bottom: 1.75rem; }
 .article-navigation { grid-template-columns: minmax(0, 1fr); }
 .article-navigation .post-navigation-link-next { grid-column: auto; }
 .article-body { font-size: var(--evo-text-body-mobile); }
}
/* Prevent iOS focus zoom: mobile and coarse-pointer inputs render at 1rem (16px by default). */
@media (max-width: 781px), (pointer: coarse) {
 input:not([type=checkbox]):not([type=radio]), textarea, select,
 .wp-block-search__input { font-size: var(--evo-text-control); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .main-navigation .wp-block-navigation-item__content[aria-current="page"], .topics-list .current-cat > a, .wp-block-query-pagination .page-numbers.current { outline: 1px solid CanvasText; } }
@media print { .site-header, .site-footer, .article-navigation, .article-comments, .wp-block-query-pagination { display: none; } .site-main { padding: 0; } body { color: CanvasText; background: Canvas; } }
