/*
Theme Name: PPT Magazine
Theme URI: https://psicologiaparatodas.es
Description: Contemporary digital popular-science magazine theme (layout modelled on a digital outreach magazine: lead story, latest list, topic blocks, article with right rail) for "Psicologia Para Tod@s" (child of Twenty Twenty-Five). Variable fonts self-hosted, asymmetric magazine grid, dark mode, sticky minimal header, reading-optimised posts, site-wide advertising area. No sliders.
Author: Norlan Digital
Template: twentytwentyfive
Version: 3.0.0
Text Domain: ppt-magazine
*/

/* ==========================================================================
   1 tokens and dark mode   2 base type   3 header   4 buttons and forms
   5 cards and magazine grids   6 home   7 single post   8 content pages
   9 advertising   10 footer   11 motion
   ========================================================================== */

/* 1. tokens: one confident accent (teal), warm paper, deep ink.
   WordPress prints its colour presets on <body>, so every token is declared on body (light) and
   overridden on "html[data-theme=dark] body" (or automatically through prefers-color-scheme). */
body {
	--wp--preset--color--base: #fbfaf7;
	--wp--preset--color--contrast: #10201f;
	--wp--preset--color--accent-1: #00a89a;
	--wp--preset--color--accent-2: #007c70;
	--wp--preset--color--accent-3: #0b2b29;
	--wp--preset--color--accent-4: #55645f;
	--wp--preset--color--accent-5: #f0eee8;
	--wp--preset--color--accent-6: #dcd9d0;
	--ppt-surface: #ffffff;
	--ppt-ink: #10201f;
	--ppt-paper: #fbfaf7;
	--ppt-accent: #007c70;
	--ppt-accent-bright: #00a89a;
	--ppt-muted: #55645f;
	--ppt-soft: #f0eee8;
	--ppt-line: #dcd9d0;
	--ppt-on-accent: #ffffff;
	--ppt-radius: 14px;
	--ppt-shadow: 0 1px 2px rgba(16, 32, 31, .06), 0 8px 24px rgba(16, 32, 31, .06);
	--ppt-display: "Fraunces Variable", Georgia, "Times New Roman", serif;
	--ppt-sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ppt-header-h: 64px;
	--ppt-footer-bg: #0b2b29;
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] body {
	--wp--preset--color--base: #0c1514;
	--wp--preset--color--contrast: #e9f1ef;
	--wp--preset--color--accent-2: #46d8c8;
	--wp--preset--color--accent-3: #e9f1ef;
	--wp--preset--color--accent-4: #a3b6b1;
	--wp--preset--color--accent-5: #14201f;
	--wp--preset--color--accent-6: #253533;
	--ppt-surface: #111d1c;
	--ppt-ink: #e9f1ef;
	--ppt-paper: #0c1514;
	--ppt-accent: #46d8c8;
	--ppt-muted: #a3b6b1;
	--ppt-soft: #14201f;
	--ppt-line: #253533;
	--ppt-on-accent: #04201c;
	--ppt-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
	--ppt-footer-bg: #070d0c;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) { color-scheme: dark; }
	:root:not([data-theme="light"]) body {
		--wp--preset--color--base: #0c1514;
		--wp--preset--color--contrast: #e9f1ef;
		--wp--preset--color--accent-2: #46d8c8;
		--wp--preset--color--accent-3: #e9f1ef;
		--wp--preset--color--accent-4: #a3b6b1;
		--wp--preset--color--accent-5: #14201f;
		--wp--preset--color--accent-6: #253533;
		--ppt-surface: #111d1c;
		--ppt-ink: #e9f1ef;
		--ppt-paper: #0c1514;
		--ppt-accent: #46d8c8;
		--ppt-muted: #a3b6b1;
		--ppt-soft: #14201f;
		--ppt-line: #253533;
		--ppt-on-accent: #04201c;
		--ppt-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		--ppt-footer-bg: #070d0c;
	}
}

/* 2. base type */
html { scroll-behavior: smooth; }
body { background: var(--ppt-paper); color: var(--ppt-ink); font-family: var(--ppt-sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .wp-block-post-title, .wp-block-heading { font-family: var(--ppt-display); font-variation-settings: "wght" 700; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; color: var(--ppt-ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
a { color: var(--ppt-accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ppt-accent-bright); color: #04201c; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--ppt-accent); outline-offset: 3px; border-radius: 4px; }
img { height: auto; max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ppt-skip { position: absolute; left: 12px; top: -60px; background: var(--ppt-ink); color: var(--ppt-paper); padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.ppt-skip:focus { top: 12px; }
.ppt-page-title { margin: 0 0 .4em; }

/* 3. header: sticky and minimal */
.ppt-header { background: color-mix(in srgb, var(--ppt-paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--ppt-line); }
.ppt-header__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: var(--ppt-header-h); display: flex; align-items: center; gap: 20px; }
.ppt-brand { display: block; line-height: 0; flex: none; }
.ppt-brand img { height: 36px; width: auto; display: block; }
.ppt-logo-dark { display: none !important; }
:root[data-theme="dark"] .ppt-logo-light { display: none !important; }
:root[data-theme="dark"] .ppt-logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ppt-logo-light { display: none !important; } :root:not([data-theme="light"]) .ppt-logo-dark { display: block !important; } }
.ppt-header .wp-block-navigation { margin-left: auto; font-family: var(--ppt-sans); font-weight: 600; font-size: .875rem; }
.ppt-header .wp-block-navigation a { color: var(--ppt-ink); text-decoration: none; padding: 6px 2px; background: linear-gradient(var(--ppt-accent-bright), var(--ppt-accent-bright)) 0 100% / 0 3px no-repeat; transition: background-size .25s ease; }
.ppt-header .wp-block-navigation a:hover, .ppt-header .wp-block-navigation .current-menu-item > a { background-size: 100% 3px; }
.ppt-header .wp-block-navigation__submenu-container { background: var(--ppt-surface) !important; border: 1px solid var(--ppt-line) !important; border-radius: 12px; box-shadow: var(--ppt-shadow); padding: 8px; min-width: 240px; }
.ppt-header .wp-block-navigation__submenu-container a { color: var(--ppt-ink) !important; font-weight: 500; }
.ppt-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ppt-paper); color: var(--ppt-ink); padding: 24px; }
.ppt-header .wp-block-navigation__responsive-container-open, .ppt-header .wp-block-navigation__responsive-container-close { color: var(--ppt-ink); }
.ppt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-family: var(--ppt-display); font-size: 1.6rem; gap: 10px; }
.ppt-mode { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ppt-line); background: var(--ppt-surface); color: var(--ppt-ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.ppt-mode:hover { transform: rotate(-12deg); background: var(--ppt-soft); }
.ppt-mode svg { width: 20px; height: 20px; }
.ppt-mode .ppt-icon-sun { display: none; }
:root[data-theme="dark"] .ppt-mode .ppt-icon-sun { display: block; }
:root[data-theme="dark"] .ppt-mode .ppt-icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ppt-mode .ppt-icon-sun { display: block; } :root:not([data-theme="light"]) .ppt-mode .ppt-icon-moon { display: none; } }

/* 4. buttons and forms */
.wp-element-button, .wpcf7-form input[type="submit"] { font-family: var(--ppt-sans); font-weight: 700; background: var(--ppt-accent); color: var(--ppt-on-accent); border: 0; border-radius: 999px; padding: 14px 30px; min-height: 48px; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.wp-element-button:hover, .wpcf7-form input[type="submit"]:hover { filter: brightness(1.1); transform: translateY(-1px); }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: 18px; font-size: .95rem; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--ppt-line); border-radius: 12px; background: var(--ppt-surface); color: var(--ppt-ink); }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--ppt-accent); outline: 3px solid color-mix(in srgb, var(--ppt-accent-bright) 40%, transparent); outline-offset: 0; }
.wpcf7-not-valid-tip, .wpcf7-response-output { font-size: .95rem; }
.ppt-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ppt-form-wrap { max-width: 680px; }

/* 5. shared pieces */
.ppt-page { max-width: 1240px; margin: 0 auto; padding: 32px 20px 64px; }
.ppt-page-title { margin: 0 0 .4em; }
.ppt-label, .ppt-label a { margin: 0 0 8px; font-family: var(--ppt-sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ppt-accent); text-decoration: none; }
.ppt-byline { font-family: var(--ppt-sans); font-size: .85rem; color: var(--ppt-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ppt-byline a { color: var(--ppt-ink); font-weight: 600; text-decoration: none; }
.ppt-section-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--ppt-sans) !important; font-variation-settings: normal !important; font-size: .8rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ppt-muted) !important; margin: 56px 0 20px; font-weight: 700; }
.ppt-section-title::after { content: ""; flex: 1; height: 1px; background: var(--ppt-line); }
.ppt-main > .ppt-section-title:first-child { margin-top: 0; }
.wp-block-post-template, .wp-block-post-template > li { list-style: none; margin: 0; padding: 0; }
.wp-block-post-title a { color: var(--ppt-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.wp-block-post-title a:hover { background-size: 100% 2px; color: var(--ppt-ink); }
.wp-block-post-featured-image { margin: 0; overflow: hidden; }
.wp-block-post-featured-image img { width: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a:hover > .wp-block-post-featured-image img, .wp-block-post-featured-image:hover img { transform: scale(1.03); }
.wp-block-post-excerpt { color: var(--ppt-muted); margin: 8px 0 0; font-size: .98rem; line-height: 1.55; }
.wp-block-post-excerpt__more-link { display: none; }
.wp-block-query-pagination { font-family: var(--ppt-sans); margin-top: 36px; gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--ppt-ink); color: var(--ppt-paper); }

/* two-column magazine layout: content + right rail */
.ppt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1040px) { .ppt-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .ppt-rail { position: sticky; top: calc(var(--ppt-header-h) + 20px); align-self: start; } }
.admin-bar .ppt-rail { top: calc(var(--ppt-header-h) + 52px); }

/* 6. home: lead story + side list */
.ppt-topstory { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--ppt-line); }
@media (min-width: 1000px) { .ppt-topstory { grid-template-columns: 2fr 1fr; gap: 48px; } }
.ppt-lead .wp-block-post-featured-image { border-radius: var(--ppt-radius); margin-bottom: 20px; }
.ppt-lead .wp-block-post-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; margin: 4px 0 12px; }
.ppt-lead .wp-block-post-excerpt { font-size: 1.15rem; max-width: 60ch; }
.ppt-lead .ppt-byline { margin-top: 14px; }
.ppt-side { border-top: 3px solid var(--ppt-ink); padding-top: 14px; }
.ppt-side__title { font-family: var(--ppt-sans) !important; font-variation-settings: normal !important; font-size: .8rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ppt-muted) !important; margin: 0 0 4px !important; }
.ppt-side__item { display: grid; grid-template-columns: 1fr 96px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ppt-line); align-items: start; }
.ppt-side__item .wp-block-post-title { font-size: 1.1rem; line-height: 1.2; margin: 0 0 6px; }
.ppt-side__item .wp-block-post-featured-image img { aspect-ratio: 1 / 1; border-radius: 10px; }
.ppt-side__item .wp-block-post-author-name { font-family: var(--ppt-sans); font-size: .8rem; color: var(--ppt-muted); }
.ppt-more-link { font-family: var(--ppt-sans); font-weight: 600; margin-top: 24px; }

/* list rows (latest, blog, archives) */
.ppt-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--ppt-line); }
@media (min-width: 640px) { .ppt-row { grid-template-columns: 240px 1fr; gap: 24px; } }
.ppt-row .wp-block-post-featured-image { border-radius: 12px; }
.ppt-row .wp-block-post-featured-image img { aspect-ratio: 3 / 2; }
.ppt-row .wp-block-post-title { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.15; margin: 0; }
.ppt-row__body > * + * { margin-top: 0; }
.ppt-row .ppt-byline { margin-top: 10px; }
.ppt-feed .wp-block-post-template > li:first-child .ppt-row { padding-top: 0; }
@media (min-width: 1040px) { body:not(.paged) .ppt-feed .wp-block-post-template > li:first-child .ppt-row { grid-template-columns: 1fr; } body:not(.paged) .ppt-feed .wp-block-post-template > li:first-child .wp-block-post-featured-image img { aspect-ratio: 16 / 9; } body:not(.paged) .ppt-feed .wp-block-post-template > li:first-child .wp-block-post-title { font-size: clamp(1.9rem, 3vw, 2.6rem); } }

/* topic blocks */
.ppt-topics { display: grid; grid-template-columns: 1fr; gap: 40px 48px; }
@media (min-width: 800px) { .ppt-topics { grid-template-columns: repeat(2, 1fr); } }
.ppt-topic__title { font-size: 1.35rem !important; margin: 0 0 14px !important; padding-top: 12px; border-top: 3px solid var(--ppt-accent-bright); }
.ppt-topic__title a { color: var(--ppt-ink); text-decoration: none; }
.ppt-topic__title a:hover { color: var(--ppt-accent); }
.ppt-topic__item { padding: 12px 0; border-bottom: 1px solid var(--ppt-line); }
.ppt-topic__item .wp-block-post-title { font-size: 1.05rem; line-height: 1.25; margin: 0; font-weight: 600; }
.ppt-topic__item .wp-block-post-author-name { font-family: var(--ppt-sans); font-size: .8rem; color: var(--ppt-muted); margin-top: 4px; }
.ppt-topic .wp-block-post-template > li:first-child .ppt-topic__item { padding-top: 0; }
.ppt-topic .wp-block-post-template > li:first-child .wp-block-post-featured-image { margin-bottom: 12px; border-radius: 12px; }
.ppt-topic .wp-block-post-template > li:first-child .wp-block-post-featured-image img { aspect-ratio: 16 / 10; }
.ppt-topic .wp-block-post-template > li:first-child .wp-block-post-title { font-size: 1.4rem; line-height: 1.15; font-weight: 700; }
.ppt-topic .wp-block-post-template > li:not(:first-child) .wp-block-post-featured-image { display: none; }

/* 7. article: standfirst, author card, 70ch reading column, right rail */
.ppt-article { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.ppt-article__main { max-width: 760px; }
.ppt-article .wp-block-post-title { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; margin: 6px 0 14px; }
.ppt-standfirst, .ppt-article .wp-block-post-excerpt { font-size: 1.25rem; line-height: 1.5; color: var(--ppt-muted); margin: 0 0 22px; }
.ppt-byline--card { padding: 14px 0; border-top: 1px solid var(--ppt-line); border-bottom: 1px solid var(--ppt-line); margin-bottom: 26px; }
.ppt-byline--card .wp-block-post-author { display: flex; align-items: center; gap: 10px; }
.ppt-byline--card .wp-block-post-author__avatar img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.ppt-byline--card .wp-block-post-author__name { font-weight: 700; color: var(--ppt-ink); }
.ppt-article .wp-block-post-featured-image { margin: 0 0 30px; }
.ppt-article .wp-block-post-featured-image img { border-radius: var(--ppt-radius); width: 100%; }
.ppt-article .wp-block-post-content { font-size: 1.1875rem; line-height: 1.8; max-width: 70ch; }
.ppt-article .wp-block-post-content p { margin: 0 0 1.25em; }
.ppt-article .wp-block-post-content img { border-radius: 10px; }
.ppt-article .wp-block-post-content h2, .ppt-article .wp-block-post-content h3 { margin: 1.8em 0 .5em; }
.ppt-article .wp-block-post-content blockquote { border-left: 4px solid var(--ppt-accent-bright); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; font-family: var(--ppt-display); font-size: 1.35em; line-height: 1.35; }
.ppt-tags { font-family: var(--ppt-sans); font-size: .85rem; color: var(--ppt-muted); margin-top: 28px; }
.ppt-authorbox { margin-top: 36px; padding: 24px; background: var(--ppt-soft); border-radius: var(--ppt-radius); }
.ppt-authorbox .wp-block-post-author { display: flex; gap: 16px; align-items: flex-start; }
.ppt-authorbox .wp-block-post-author__avatar img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.ppt-authorbox .wp-block-post-author__byline { font-family: var(--ppt-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ppt-muted); margin: 0; }
.ppt-authorbox .wp-block-post-author__name { font-family: var(--ppt-display); font-weight: 700; font-size: 1.2rem; margin: 2px 0 6px; }
.ppt-authorbox .wp-block-post-author__bio { font-size: .95rem; line-height: 1.55; margin: 0; }
.ppt-readtime { display: inline-flex; align-items: center; gap: 6px; }
.ppt-readtime::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ppt-accent-bright); }
.ppt-related { max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }
.ppt-related__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .ppt-related__grid { grid-template-columns: repeat(3, 1fr); } }
.ppt-card { background: var(--ppt-surface); border: 1px solid var(--ppt-line); border-radius: var(--ppt-radius); overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.ppt-card:hover { transform: translateY(-3px); box-shadow: var(--ppt-shadow); }
.ppt-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; }
.ppt-card-body { padding: 16px 18px 20px; }
.ppt-card .wp-block-post-title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.ppt-comments { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }
.ppt-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ppt-accent-bright); z-index: 80; }
.ppt-inline-ad { margin: 32px 0; }

/* 8. content pages (legacy pages rebuilt as blocks) */
.ppt-mosaic { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; }
@media (min-width: 640px) { .ppt-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ppt-mosaic { grid-template-columns: repeat(3, 1fr); } }
.ppt-mosaic .ppt-card--wide { grid-column: 1 / -1; }
.ppt-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1000px) { .ppt-hero-grid { grid-template-columns: 1.9fr 1fr; gap: 48px; align-items: start; } }
.ppt-hero .wp-block-post-featured-image { border-radius: var(--ppt-radius); margin-bottom: 20px; }
.ppt-hero .wp-block-post-title { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; margin: 6px 0 12px; }
.ppt-more { border-top: 3px solid var(--ppt-ink); padding-top: 14px; }
.ppt-more-title { font-family: var(--ppt-sans) !important; font-variation-settings: normal !important; font-size: .8rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ppt-muted) !important; margin: 0 0 6px !important; }
.ppt-more .wp-block-post-title { font-size: 1.05rem; line-height: 1.3; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ppt-line); font-weight: 600; }
.ppt-people { gap: 16px; }
.ppt-person { background: var(--ppt-surface); border: 1px solid var(--ppt-line); border-radius: var(--ppt-radius); padding: 14px; }
.ppt-person .wp-block-media-text__media img { border-radius: 50%; width: 84px; height: 84px; object-fit: cover; }
.ppt-person-name { margin: 0; font-family: var(--ppt-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.ppt-person-role { margin: 2px 0 0; color: var(--ppt-muted); font-size: .92rem; line-height: 1.4; }
.ppt-person.wp-block-media-text { grid-template-columns: 84px 1fr !important; gap: 0 16px; align-items: center; }
.ppt-person.wp-block-media-text > .wp-block-media-text__media { grid-column: 1 !important; grid-row: 1 !important; width: 84px; }
.ppt-person.wp-block-media-text > .wp-block-media-text__content { grid-column: 2 !important; grid-row: 1 !important; min-width: 0; overflow-wrap: anywhere; padding: 0; }
.ppt-editorial { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .ppt-editorial { grid-template-columns: 280px 1fr; gap: 56px; } }
.ppt-editorial-photo img { border-radius: 50%; box-shadow: var(--ppt-shadow); width: 240px; height: 240px; object-fit: cover; }
.ppt-editorial-text { max-width: 68ch; font-size: 1.15rem; line-height: 1.8; }
.ppt-signature img { max-width: 220px; border-radius: 0; }
.ppt-credits { margin-top: 56px; padding: 32px; background: var(--ppt-soft); border-radius: var(--ppt-radius); font-size: .95rem; line-height: 1.7; }
.ppt-credits p { margin: 0 0 .3em; }
.ppt-note { text-align: center; color: var(--ppt-muted); font-size: .9rem; margin-top: 24px; }
.ppt-legal { max-width: 74ch; }
.ppt-legal h2 { font-size: 1.3rem; margin: 1.8em 0 .4em; }
.ppt-pdf { width: 100%; height: min(80vh, 900px); border: 1px solid var(--ppt-line); border-radius: var(--ppt-radius); background: var(--ppt-surface); }
.ppt-form-wrap { max-width: 680px; }

/* 9. advertising: always labelled "Publicidad", always in the content flow, never a popup */
.ppt-ads { font-family: var(--ppt-sans); }
.ppt-ads__label { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border: 1px solid var(--ppt-line); border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ppt-muted); background: var(--ppt-surface); }
.ppt-ads--rail { border-top: 3px solid var(--ppt-ink); padding-top: 12px; }
.ppt-ads--band { max-width: 1240px; margin: 40px auto; padding: 0 20px; }
.ppt-ads--band, .ppt-page .ppt-ads--band { border-top: 1px solid var(--ppt-line); padding-top: 14px; }
.ppt-ads__stack { display: grid; gap: 12px; margin-bottom: 14px; }
.ppt-ads__list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .ppt-ads__list { grid-template-columns: repeat(3, 1fr); } }
.ppt-ad { position: relative; display: flex; gap: 14px; align-items: center; background: var(--ppt-surface); border: 1px solid var(--ppt-line); border-radius: 12px; padding: 12px 14px 12px 18px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.ppt-ad::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ppt-ad-color); }
.ppt-ad:hover { box-shadow: var(--ppt-shadow); transform: translateY(-2px); }
.ppt-ad__logo { flex: 0 0 96px; display: block; background: #fff; border-radius: 8px; padding: 6px 8px; line-height: 0; }
.ppt-ad__logo img { width: 100%; height: auto; display: block; }
.ppt-ad__text { min-width: 0; }
.ppt-ad__title { margin: 0 0 2px; font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--ppt-ink); }
.ppt-ad__desc { margin: 0 0 8px; font-size: .86rem; line-height: 1.4; color: var(--ppt-muted); }
a.ppt-ad__cta { display: inline-block; font-size: .82rem; font-weight: 700; color: #fff; background: var(--ppt-ad-color); padding: 7px 14px; border-radius: 999px; text-decoration: none; min-height: 32px; }
a.ppt-ad__cta:hover { filter: brightness(1.15); text-decoration: none; }
.ppt-ads__images { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .ppt-ads__images--4 { grid-template-columns: repeat(4, 1fr); } .ppt-ads__images--6 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .ppt-ads__images--6 { grid-template-columns: repeat(6, 1fr); } }
.ppt-adimg { background: #fff; border: 1px solid var(--ppt-line); border-radius: 10px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ppt-adimg:hover { transform: translateY(-2px); box-shadow: var(--ppt-shadow); }
.ppt-adimg a, .ppt-adimg img { display: block; width: 100%; height: auto; }
.ppt-ads--footer { background: var(--ppt-soft); border-top: 1px solid var(--ppt-line); padding: 18px 0 8px; }
.ppt-ads--footer .ppt-ads__label { margin-left: max(20px, calc((100vw - 1240px) / 2 + 20px)); }
.ppt-ads__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px 14px; }
.ppt-ads--footer .ppt-ad { padding: 10px 12px 10px 16px; }
.ppt-inline-ad .ppt-ads--band { margin: 0; padding-left: 0; padding-right: 0; }
.ppt-inline-ad .ppt-ads__images--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 460px) { .ppt-ad { flex-direction: column; align-items: flex-start; } .ppt-ad__logo { flex-basis: auto; width: 120px; } }

/* 10. footer */
.ppt-footer { background: var(--ppt-footer-bg); color: #e9f1ef; font-family: var(--ppt-sans); }
.ppt-footer__inner { max-width: 1240px; margin: 0 auto; padding: 56px 20px 40px; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .ppt-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.ppt-footer__brand { font-family: var(--ppt-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; font-weight: 700; margin: 0 0 10px; color: #fff; }
.ppt-footer p { margin: 0 0 8px; color: #c7d8d4; }
.ppt-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.ppt-footer ul { list-style: none; margin: 0; padding: 0; }
.ppt-footer li { margin: 0 0 6px; }
.ppt-footer h2 { font-family: var(--ppt-sans); font-variation-settings: normal; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #9ed9d1; margin: 0 0 12px; }
.ppt-footer__bottom { max-width: 1240px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #c7d8d4; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* sticky header: the template-part wrapper is the sticky element (its parent is the whole page) */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 60; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea { box-sizing: border-box; max-width: 100%; }

/* 11. motion: subtle, and fully off for people who ask for it */
.ppt-js .ppt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ppt-js .ppt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ppt-js .ppt-reveal { opacity: 1; transform: none; }
}

/* topic blocks whose posts were all shown higher up (each post appears once on the home page) */
.ppt-topic:not(:has(.wp-block-post-template > li)) { display: none; }
