/*
Theme Name: A pie de ría
Theme URI: https://example.com/a-pie-de-ria
Author: A pie de ría
Description: Tema de bloques Full Site Editing, editorial, modular y responsive para un periódico digital de Ferrolterra. Todas las plantillas, secciones, colores, tipografías y elementos se editan visualmente desde el Editor del sitio.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: a-pie-de-ria
Tags: news, blog, block-patterns, block-styles, full-site-editing, custom-logo, custom-menu, featured-images, editor-style, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--apr-ink: #102A43;
	--apr-primary: #167D7F;
	--apr-mist: #A9CBD0;
	--apr-paper: #F5F1E8;
	--apr-alert: #E66A4E;
	--apr-white: #fff;
	--apr-text: #263746;
	--apr-muted: #6d7c86;
	--apr-line: #dce5e5;
	--apr-surface: #f8faf9;
	--apr-serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
	--apr-sans: Inter, "Nimbus Sans", "Helvetica Neue", Arial, sans-serif;
	--apr-shadow: 0 18px 44px rgba(16, 42, 67, .12);
	--apr-radius: 4px;
	--apr-shell: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--apr-text); background: var(--apr-white); font-family: var(--apr-sans); font-size: 17px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
body.menu-open, body.search-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--apr-primary); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { color: var(--apr-ink); font-family: var(--apr-serif); line-height: 1.08; text-wrap: balance; }
ul, ol { padding-left: 1.2em; }
blockquote { border-left: 5px solid var(--apr-primary); margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem; color: var(--apr-ink); font-family: var(--apr-serif); font-size: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--apr-line); padding: .8rem; text-align: left; }

.site-shell { width: min(calc(100% - 48px), var(--apr-shell)); margin-inline: auto; }
.narrow-shell { width: min(calc(100% - 48px), 920px); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: .75rem 1rem; background: var(--apr-white); color: var(--apr-ink); box-shadow: var(--apr-shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .65rem; color: var(--apr-primary); font-family: var(--apr-sans); font-size: .72rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--apr-mist); }
.story-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--apr-muted); font-size: .76rem; font-weight: 650; }
.story-meta span + span::before, .story-meta time::before { content: "·"; margin-right: .9rem; color: var(--apr-mist); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid var(--apr-primary); border-radius: 999px; background: var(--apr-primary); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.button:hover { background: var(--apr-ink); border-color: var(--apr-ink); color: #fff; }
.text-link { color: var(--apr-primary); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Cabecera */
.site-header { position: relative; z-index: 500; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--apr-line); }
.apr-sticky-header .site-header { position: sticky; top: 0; }
.utility-bar { background: var(--apr-ink); color: #e4eff1; font-size: .72rem; letter-spacing: .035em; }
.utility-inner { min-height: 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.utility-inner p { margin: 0; }
.utility-note { color: var(--apr-mist); font-weight: 700; text-align: center; text-transform: uppercase; }
.utility-links { display: flex; justify-content: flex-end; gap: 1rem; }
.utility-links a:hover { color: #fff; }
.brand-row { min-height: 132px; display: grid; grid-template-columns: 1fr minmax(340px, 560px) 1fr; align-items: center; gap: 2rem; }
.site-branding { justify-self: center; width: min(100%, 560px); }
.site-branding > a { display: block; }
.site-branding img, .site-branding .custom-logo { width: 100%; max-height: 108px; object-fit: contain; }
.custom-logo-link { display: block; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.header-ad { font-size: .68rem; color: var(--apr-muted); }
.header-ad .widget { margin: 0; }
.listen-button { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .55rem .85rem; border-radius: 999px; background: var(--apr-paper); color: var(--apr-ink); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pulse-dot, .live-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--apr-alert); box-shadow: 0 0 0 0 rgba(230,106,78,.5); animation: apr-pulse 1.8s infinite; }
@keyframes apr-pulse { 70% { box-shadow: 0 0 0 8px rgba(230,106,78,0); } 100% { box-shadow: 0 0 0 0 rgba(230,106,78,0); } }
.search-toggle, .menu-toggle { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--apr-ink); cursor: pointer; }
.search-toggle:hover, .menu-toggle:hover { background: var(--apr-paper); }
.search-icon { display: block; position: relative; width: 18px; height: 18px; margin: auto; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 2px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); }
.menu-toggle { display: none; padding: 11px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: currentColor; }
.main-navigation { border-top: 1px solid var(--apr-line); }
.nav-inner { display: flex; justify-content: center; }
.primary-menu, .main-navigation .menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-menu > li, .main-navigation .menu > li { position: relative; }
.primary-menu > li > a, .main-navigation .menu > li > a { display: flex; align-items: center; min-height: 49px; padding: .2rem 1.15rem; border-bottom: 3px solid transparent; color: var(--apr-ink); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.primary-menu > li > a:hover, .primary-menu > .current-menu-item > a { border-bottom-color: var(--apr-primary); color: var(--apr-primary); }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: .7rem 0; background: #fff; box-shadow: var(--apr-shadow); list-style: none; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: .55rem 1rem; font-size: .84rem; }

/* Menú móvil y búsqueda */
.drawer-backdrop { position: fixed; z-index: 900; inset: 0; background: rgba(16,42,67,.58); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-drawer { position: fixed; z-index: 950; inset: 0 auto 0 0; width: min(89vw, 390px); padding: 1.25rem; background: #fff; transform: translateX(-103%); transition: transform .28s ease; overflow-y: auto; box-shadow: 20px 0 60px rgba(16,42,67,.22); }
.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.menu-open .mobile-drawer { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--apr-line); }
.drawer-top img { width: 240px; }
.drawer-close, .search-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--apr-paper); color: var(--apr-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.mobile-menu { margin: 1rem 0; padding: 0; list-style: none; }
.mobile-menu a { display: flex; padding: .8rem 0; border-bottom: 1px solid var(--apr-line); color: var(--apr-ink); font-family: var(--apr-serif); font-size: 1.4rem; font-weight: 700; }
.mobile-menu .sub-menu { padding-left: 1rem; list-style: none; }
.mobile-menu .sub-menu a { font-family: var(--apr-sans); font-size: .9rem; }
.drawer-socials { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.drawer-socials a { padding: .45rem .7rem; border: 1px solid var(--apr-line); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.drawer-listen { width: 100%; justify-content: center; background: var(--apr-ink); color: #fff; }
.search-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 2rem; background: rgba(16,42,67,.96); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.search-open .search-overlay { opacity: 1; visibility: visible; }
.search-close { position: absolute; top: 24px; right: 24px; }
.search-dialog { width: min(720px, 100%); color: #fff; }
.search-dialog .eyebrow { color: var(--apr-mist); }
.search-form { display: flex; gap: .75rem; }
.search-field { width: 100%; min-height: 62px; padding: .7rem 1rem; border: 0; border-bottom: 2px solid var(--apr-mist); background: transparent; color: #fff; font-family: var(--apr-serif); font-size: 2rem; outline: none; }
.search-field::placeholder { color: rgba(255,255,255,.65); }
.search-submit { padding: .7rem 1.2rem; border: 0; border-radius: var(--apr-radius); background: var(--apr-primary); color: #fff; font-weight: 800; cursor: pointer; }

/* Portada */
.breaking-strip { background: var(--apr-paper); border-bottom: 1px solid #e7ded0; }
.breaking-inner { min-height: 45px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; font-size: .82rem; }
.breaking-label { padding: .35rem .65rem; border-radius: 2px; background: var(--apr-alert); color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.breaking-inner a { overflow: hidden; color: var(--apr-ink); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.breaking-inner time { color: var(--apr-muted); font-size: .72rem; }
.hero-zone { display: grid; grid-template-columns: minmax(0, 3.15fr) minmax(270px, 1fr); gap: 1.6rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.hero-slider { min-width: 0; position: relative; background: var(--apr-ink); overflow: hidden; border-radius: var(--apr-radius); }
.hero-slides { height: clamp(470px, 54vw, 650px); position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-media, .hero-media img, .hero-media video { width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; }
.hero-mobile-poster { display: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,35,.05) 28%, rgba(8,22,35,.9) 100%); }
.hero-content { position: absolute; z-index: 3; left: clamp(1.3rem, 4vw, 3.4rem); right: clamp(1.3rem, 4vw, 3.4rem); bottom: clamp(3.9rem, 7vw, 5rem); color: #fff; }
.hero-content h1 { max-width: 900px; margin: 0 0 .8rem; color: #fff; font-size: clamp(2.1rem, 4.5vw, 4.4rem); }
.hero-content h1 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--apr-primary); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.hero-content > p { max-width: 720px; margin-bottom: .8rem; color: #ebf1f0; font-size: 1.03rem; }
.light-meta { color: #d9e6e6; }
.hero-controls { position: absolute; z-index: 10; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; display: flex; align-items: center; gap: .65rem; }
.hero-controls button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(16,42,67,.38); color: #fff; cursor: pointer; }
.hero-dots { flex: 1; display: flex; gap: 6px; }
.hero-dots button { flex: 1; width: auto; height: 3px; border: 0; border-radius: 0; padding: 0; background: rgba(255,255,255,.35); }
.hero-dots button.is-active { background: var(--apr-mist); }
.hero-empty { min-height: 520px; display: flex; flex-direction: column; justify-content: end; padding: 3rem; background: linear-gradient(145deg, var(--apr-ink), var(--apr-primary)); color: #fff; }
.hero-empty h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.6rem, 5vw, 5.4rem); }
.hero-empty p:last-child { max-width: 650px; }
.hero-rail { min-width: 0; padding: 1.25rem 1.25rem 1rem; border-top: 5px solid var(--apr-primary); background: var(--apr-surface); }
.compact-heading { margin-bottom: .4rem; padding-bottom: .6rem !important; }
.compact-heading .eyebrow { margin: 0; }
.minute-list article { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--apr-line); }
.minute-list time { color: var(--apr-alert); font-size: .72rem; font-weight: 900; }
.minute-list h2 { margin: 0; font-size: 1.08rem; line-height: 1.18; }
.hero-rail > .text-link { display: inline-block; margin-top: 1rem; }
.empty-note, .section-empty { color: var(--apr-muted); font-size: .92rem; }
.topic-ribbon { border-block: 1px solid var(--apr-line); background: #fff; }
.topic-ribbon .site-shell { min-height: 50px; display: flex; align-items: center; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.topic-ribbon strong { color: var(--apr-ink); font-family: var(--apr-serif); white-space: nowrap; }
.topic-ribbon a { color: var(--apr-primary); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.news-section { padding-top: clamp(3.3rem, 7vw, 6.2rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: .85rem; border-bottom: 2px solid var(--apr-ink); }
.section-heading .eyebrow { margin-bottom: .45rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.story-card { min-width: 0; }
.story-card-lead { grid-column: span 2; grid-row: span 2; padding-right: 1.5rem; border-right: 1px solid var(--apr-line); }
.story-image { display: block; margin-bottom: 1rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--apr-paper); }
.story-card-lead .story-image { aspect-ratio: 16 / 9; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.story-card:hover .story-image img { transform: scale(1.035); }
.story-card h3 { margin: 0 0 .65rem; font-size: 1.35rem; }
.story-card-lead h3 { font-size: clamp(2rem, 3vw, 3rem); }
.story-card h3 a:hover { color: var(--apr-primary); }
.story-excerpt { color: var(--apr-muted); }
.opinion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opinion-grid .story-card-lead { grid-column: auto; grid-row: auto; padding-right: 0; border-right: 0; }
.story-card-opinion, .opinion-grid .story-card { padding: 1.4rem; border-top: 4px solid var(--apr-primary); background: var(--apr-paper); }
.story-card-opinion h3, .opinion-grid .story-card h3 { font-size: 1.45rem; }
.author-monogram { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--apr-ink); color: #fff; font-family: var(--apr-serif); font-size: 1.5rem; font-weight: 700; }
.section-empty { padding: 2.2rem; border: 1px dashed var(--apr-mist); background: var(--apr-surface); }
.newsletter-band { margin-top: clamp(4rem, 8vw, 7rem); background: var(--apr-primary); color: #fff; }
.newsletter-inner { min-height: 230px; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 2rem; }
.newsletter-symbol img { width: 105px; filter: saturate(.85) brightness(1.08); }
.newsletter-inner h2 { max-width: 770px; margin: 0 0 .4rem; color: #fff; font-size: clamp(2rem, 4vw, 3.35rem); }
.newsletter-inner p { margin-bottom: 0; color: #ddf0ee; }
.light-button { background: #fff; border-color: #fff; color: var(--apr-ink); white-space: nowrap; }

/* Archivos, páginas y noticias */
.archive-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 3rem; padding-block: 4rem 6rem; }
.archive-header { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--apr-ink); }
.archive-header h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.archive-description { max-width: 760px; color: var(--apr-muted); }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.6rem; }
.archive-sidebar { padding-top: 8rem; }
.widget { margin-bottom: 2rem; }
.widget-title, .footer-column h2 { padding-bottom: .7rem; border-bottom: 2px solid currentColor; font-family: var(--apr-sans); font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--apr-line); }
.page-numbers.current { background: var(--apr-ink); color: #fff; }
.single-story, .page-entry { padding-top: 4rem; }
.single-header h1, .page-entry h1 { margin: 0 0 1.2rem; font-size: clamp(3rem, 7vw, 6.5rem); }
.single-deck { color: #536775; font-family: var(--apr-serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.35; }
.byline { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: var(--apr-muted); font-size: .8rem; font-weight: 700; }
.single-hero { margin-top: 2.5rem; }
.single-hero img { width: 100%; max-height: 760px; object-fit: cover; }
.single-hero figcaption { padding-top: .55rem; color: var(--apr-muted); font-size: .75rem; }
.single-layout { display: grid; grid-template-columns: 80px minmax(0, 760px) minmax(220px, 1fr); justify-content: center; gap: 2.5rem; padding-top: 3rem; }
.share-rail { display: flex; flex-direction: column; align-items: center; gap: .55rem; color: var(--apr-muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.share-rail a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--apr-line); border-radius: 50%; color: var(--apr-ink); }
.article-content { color: #233541; font-family: var(--apr-serif); font-size: 1.22rem; line-height: 1.78; }
.article-content > p:first-child::first-letter { float: left; margin: .09em .12em 0 0; color: var(--apr-primary); font-size: 4.2em; font-weight: 700; line-height: .75; }
.article-content h2 { margin-top: 2.2rem; font-size: 2.2rem; }
.article-content a { color: var(--apr-primary); text-decoration: underline; }
.article-content img { margin-block: 1.5rem; }
.article-sidebar { padding-top: 1rem; }
.single-footer { margin-top: 2.5rem; padding-bottom: 4rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { padding: .4rem .7rem; border-radius: 999px; background: var(--apr-paper); font-size: .78rem; }
.page-entry { padding-bottom: 6rem; }
.search-results-page { padding-block: 4rem 6rem; }
.not-found { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; padding-block: 4rem; text-align: center; }
.not-found .error-code { margin: 0; color: var(--apr-mist); font-family: var(--apr-serif); font-size: 8rem; font-weight: 700; line-height: .8; }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.not-found-actions { display: flex; justify-content: center; gap: 1rem; }
.not-found .search-form { max-width: 430px; }
.not-found .search-field { min-height: 46px; border: 1px solid var(--apr-line); color: var(--apr-text); font-family: var(--apr-sans); font-size: 1rem; }
.comments-area { padding-bottom: 5rem; }
.comment-list { padding: 0; list-style: none; }

/* Pie */
.site-footer { position: relative; overflow: hidden; background: var(--apr-ink); color: #dce8eb; }
.footer-wave { height: 22px; background: var(--apr-primary); clip-path: polygon(0 0, 32% 0, 38% 75%, 44% 0, 100% 0, 100% 100%, 0 100%); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 3rem; padding-block: 4rem; }
.footer-brand img { width: 320px; max-width: 100%; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 420px; color: #b8c9cf; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; font-weight: 800; }
.footer-column h2 { color: #fff; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-bottom: .45rem; }
.footer-column a { color: #b8c9cf; font-size: .85rem; }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .site-shell { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom p { margin: 0; color: #9fb1b8; font-size: .72rem; }

/* Responsive */
@media (max-width: 1080px) {
	.utility-inner { grid-template-columns: 1fr auto; }
	.utility-note { display: none; }
	.brand-row { min-height: 105px; grid-template-columns: auto minmax(260px, 480px) auto; }
	.menu-toggle { display: block; }
	.main-navigation { display: none; }
	.hero-zone { grid-template-columns: 1fr; }
	.hero-rail { display: grid; grid-template-columns: auto 1fr; gap: 0 1.2rem; }
	.hero-rail .section-heading, .hero-rail > .text-link { grid-column: 1 / -1; }
	.minute-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
	.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 1.8rem; }
	.single-layout { grid-template-columns: 60px minmax(0, 1fr); }
	.article-sidebar { display: none; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.site-shell, .narrow-shell { width: min(calc(100% - 28px), var(--apr-shell)); }
	.utility-date { display: none; }
	.utility-inner { min-height: 30px; display: flex; justify-content: center; }
	.utility-links { font-size: .66rem; }
	.brand-row { min-height: 82px; grid-template-columns: 42px 1fr 42px; gap: .5rem; }
	.site-branding { width: min(100%, 270px); }
	.site-branding img, .site-branding .custom-logo { max-height: 66px; }
	.header-tools .listen-button, .header-ad { display: none; }
	.breaking-inner { min-height: 42px; grid-template-columns: auto 1fr; gap: .6rem; }
	.breaking-inner time { display: none; }
	.hero-zone { width: 100%; padding-top: 0; gap: 0; }
	.hero-slider { border-radius: 0; }
	.hero-slides { height: 72vh; min-height: 510px; max-height: 660px; }
	.hero-media video { display: none; }
	.hero-media .hero-mobile-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
	.hero-content { left: 1.1rem; right: 1.1rem; bottom: 4.2rem; }
	.hero-content h1 { font-size: clamp(2.15rem, 10.5vw, 3.4rem); }
	.hero-content > p { display: none; }
	.hero-controls { left: 1rem; right: 1rem; }
	.hero-rail { display: block; margin: 0 14px; }
	.minute-list { display: block; }
	.topic-ribbon .site-shell { width: 100%; padding-inline: 14px; }
	.news-section { padding-top: 3.7rem; }
	.section-heading { align-items: center; }
	.section-heading h2 { font-size: 2.4rem; }
	.section-heading .text-link { font-size: 0; }
	.section-heading .text-link::after { content: "→"; font-size: 1.3rem; }
	.section-grid, .opinion-grid { grid-template-columns: 1fr; gap: 2rem; }
	.story-card-lead { grid-column: auto; grid-row: auto; padding-right: 0; border-right: 0; }
	.story-card-lead h3 { font-size: 2rem; }
	.newsletter-inner { grid-template-columns: 72px 1fr; padding-block: 2.5rem; gap: 1rem; }
	.newsletter-symbol img { width: 68px; }
	.newsletter-inner .button { grid-column: 1 / -1; width: 100%; }
	.archive-layout { grid-template-columns: 1fr; padding-block: 3rem; }
	.archive-sidebar { padding-top: 0; }
	.archive-grid { grid-template-columns: 1fr; }
	.single-story, .page-entry { padding-top: 2.5rem; }
	.single-header h1, .page-entry h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
	.single-hero { width: 100%; }
	.single-layout { grid-template-columns: 1fr; padding-top: 2rem; }
	.share-rail { flex-direction: row; justify-content: flex-start; }
	.article-content { font-size: 1.12rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom .site-shell { padding-block: 1rem; flex-direction: column; align-items: flex-start; }
	.search-form { flex-direction: column; }
	.search-field { font-size: 1.45rem; }
}

@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-brand { grid-column: auto; }
	.not-found-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   WORDPRESS FULL SITE EDITING · VERSIÓN 2.1
   ========================================================= */
.wp-site-blocks { overflow: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
.apr-fse-header { position: sticky; top: 0; z-index: 500; box-shadow: 0 1px 0 var(--apr-line); }
.admin-bar .apr-fse-header { top: 32px; }
.apr-utility { min-height: 34px; }
.apr-utility > .wp-block-group { min-height: 34px; }
.apr-utility p { margin: 0; letter-spacing: .08em; text-transform: uppercase; }
.apr-utility .wp-block-social-links { flex: 0 0 auto; }
.apr-brand-row { padding-block: clamp(.8rem, 2vw, 1.35rem); }
.apr-masthead-columns { min-height: 112px; margin: 0; gap: clamp(1rem, 3vw, 2.5rem); }
.apr-header-intro p { margin: .15rem 0; }
.apr-header-intro p:first-child { letter-spacing: .13em; }
.apr-editable-brand { min-width: 0; text-align: center; }
.apr-editable-brand .wp-block-site-logo { margin: 0 auto; }
.apr-editable-brand .wp-block-site-logo img { width: min(100%, 460px); max-height: 92px; object-fit: contain; }
.apr-wordmark { position: relative; width: max-content; max-width: 100%; gap: clamp(.55rem, 1.4vw, 1.25rem) !important; margin: 0 auto !important; padding-bottom: .65rem; }
.apr-wordmark::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .1rem; height: 4px; background: var(--apr-primary); clip-path: polygon(0 0, 39% 0, 45% 100%, 51% 0, 100% 0, 100% 100%, 0 100%); }
.apr-wordmark p, .apr-wordmark h2 { margin: 0; }
.apr-wordmark-sans { color: var(--apr-ink); font-family: var(--apr-sans); font-size: clamp(1.75rem, 3.55vw, 4.15rem); font-weight: 300; letter-spacing: .11em; line-height: 1; white-space: nowrap; }
.apr-wordmark-serif { color: var(--apr-primary); font-family: var(--apr-serif); font-size: clamp(3rem, 5.4vw, 6.35rem); font-style: italic; font-weight: 700; letter-spacing: -.045em; line-height: .72; white-space: nowrap; }
.apr-brand-tagline { margin: .55rem 0 0; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.apr-editable-brand:has(.wp-block-site-logo img) .apr-wordmark,
.apr-editable-brand:has(.wp-block-site-logo img) .apr-brand-tagline { display: none; }
.apr-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.apr-header-actions .wp-block-buttons { margin: 0; }
.apr-header-actions .wp-block-button__link { min-height: 38px; padding: .55rem .9rem; letter-spacing: .07em; }
.apr-header-actions .wp-block-button__link::first-letter { color: var(--apr-alert); }
.apr-brand-row .wp-block-search { width: 100%; max-width: 255px; }
.apr-brand-row .wp-block-search__inside-wrapper { border: 1px solid var(--apr-line); border-radius: 999px; padding: 3px; }
.apr-brand-row .wp-block-search__input { min-width: 0; border: 0; background: transparent; }
.apr-brand-row .wp-block-search__button { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; margin-left: 0; padding: .55rem; }
.apr-nav-row { border-top: 1px solid var(--apr-line); }
.apr-nav-row .wp-block-navigation { min-height: 49px; }
.apr-nav-row .wp-block-navigation__container { column-gap: clamp(.9rem, 2.2vw, 2rem); }
.apr-nav-row .wp-block-navigation-item__content { padding-block: .85rem; border-bottom: 3px solid transparent; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.apr-nav-row .wp-block-navigation-item__content:hover { border-color: var(--apr-primary); color: var(--apr-primary); }
.apr-breaking-block { min-height: 46px; border-bottom: 1px solid #e7ded0; }
.apr-breaking-block > .wp-block-group { min-height: 46px; }
.apr-breaking-block p { margin: 0; }
.apr-breaking-label { flex: 0 0 auto; padding: .35rem .65rem; border-radius: 2px; letter-spacing: .08em; }

.apr-home-hero .wp-block-columns { gap: 1.5rem; }
.apr-hero-query, .apr-hero-query .wp-block-post-template, .apr-hero-query .wp-block-post { height: 100%; margin: 0; padding: 0; list-style: none; }
.apr-hero-card { position: relative; min-height: 570px; overflow: hidden; border-radius: 4px; background: linear-gradient(135deg, var(--apr-ink), var(--apr-primary)); }
.apr-hero-card::before { content: "A PIE DE ría"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.1); font-family: var(--apr-serif); font-size: clamp(3rem,8vw,8rem); font-weight: 700; }
.apr-hero-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(8,22,35,.03) 28%, rgba(8,22,35,.94) 100%); pointer-events: none; }
.apr-hero-card > .wp-block-post-featured-image { position: absolute; inset: 0; height: 100%; margin: 0; }
.apr-hero-card > .wp-block-post-featured-image a, .apr-hero-card > .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.apr-hero-copy { position: absolute; z-index: 2; left: clamp(1.4rem,4vw,3.6rem); right: clamp(1.4rem,4vw,3.6rem); bottom: clamp(1.8rem,4vw,3.8rem); }
.apr-hero-copy .wp-block-post-terms { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.apr-hero-copy .wp-block-post-title { max-width: 960px; margin-block: .55rem .8rem; }
.apr-hero-copy .wp-block-post-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--apr-primary); text-underline-offset: .18em; }
.apr-hero-copy .wp-block-post-excerpt { max-width: 720px; }
.apr-hero-copy .wp-block-post-excerpt__more-link { color: var(--apr-mist); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.apr-no-posts { min-height: 570px; padding: clamp(2rem,5vw,5rem); display: flex; flex-direction: column; justify-content: end; }
.apr-minute-panel { min-height: 100%; padding: 1.25rem; border-top: 5px solid var(--apr-primary); }
.apr-minute-panel > h3 { margin: 0 0 .7rem; padding-bottom: .75rem; border-bottom: 1px solid var(--apr-line); font-family: var(--apr-sans); letter-spacing: .12em; }
.apr-minute-query .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.apr-minute-item { padding: 1rem 0; border-bottom: 1px solid var(--apr-line); }
.apr-minute-item .wp-block-post-date { font-weight: 800; }
.apr-minute-item .wp-block-post-title { margin: .3rem 0 0; }
.apr-topics-block { overflow: hidden; }
.apr-topics-block p { min-height: 50px; display: flex; align-items: center; margin-block: 0; white-space: nowrap; overflow-x: auto; }
.apr-editable-section { scroll-margin-top: 180px; }
.apr-section-title { margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 2px solid var(--apr-ink); }
.apr-section-title p, .apr-section-title h2 { margin: 0; }
.apr-news-query .wp-block-post-template, .apr-compact-query .wp-block-post-template, .apr-opinion-query .wp-block-post-template, .apr-archive-query .wp-block-post-template { gap: 1.6rem; }
.apr-news-query .wp-block-post-template, .apr-compact-query .wp-block-post-template, .apr-archive-query .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.apr-news-query .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.apr-compact-query .wp-block-post-template { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.apr-news-query .wp-block-post, .apr-compact-query .wp-block-post, .apr-archive-query .wp-block-post { min-width: 0; }
.apr-news-query .wp-block-post:first-child { grid-column: span 2; grid-row: span 2; padding-right: 1.5rem; border-right: 1px solid var(--apr-line); }
.apr-news-query .wp-block-post:first-child .wp-block-post-title { font-size: clamp(2rem,3vw,3.1rem) !important; }
.apr-news-query .wp-block-post:first-child .wp-block-post-featured-image { aspect-ratio: 16/9; }
.apr-news-query .wp-block-post:not(:first-child) .wp-block-post-excerpt { display: none; }
.apr-news-card, .apr-compact-card, .apr-archive-card { position: relative; height: 100%; display: flex; flex-direction: column; margin: 0; padding-bottom: 1.15rem; border-bottom: 1px solid var(--apr-line); }
.apr-news-card .wp-block-post-featured-image, .apr-compact-card .wp-block-post-featured-image, .apr-archive-card .wp-block-post-featured-image { margin: 0 0 .95rem; overflow: hidden; background: var(--apr-paper); }
.apr-news-card .wp-block-post-featured-image { aspect-ratio: 16/10; }
.apr-compact-card .wp-block-post-featured-image { aspect-ratio: 4/3; }
.apr-archive-card .wp-block-post-featured-image { aspect-ratio: 16/10; }
.apr-news-card .wp-block-post-featured-image a, .apr-compact-card .wp-block-post-featured-image a, .apr-archive-card .wp-block-post-featured-image a,
.apr-news-card .wp-block-post-featured-image img, .apr-compact-card .wp-block-post-featured-image img, .apr-archive-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.apr-news-card .wp-block-post-featured-image img, .apr-compact-card .wp-block-post-featured-image img, .apr-archive-card .wp-block-post-featured-image img { transition: transform .4s ease; }
.apr-news-card:hover .wp-block-post-featured-image img, .apr-compact-card:hover .wp-block-post-featured-image img, .apr-archive-card:hover .wp-block-post-featured-image img { transform: scale(1.035); }
.apr-news-card:not(:has(.wp-block-post-featured-image img))::before,
.apr-compact-card:not(:has(.wp-block-post-featured-image img))::before,
.apr-archive-card:not(:has(.wp-block-post-featured-image img))::before { content: "A PIE DE ría"; display: grid; width: 100%; aspect-ratio: 16/10; place-items: center; margin-bottom: .95rem; background: linear-gradient(135deg,var(--apr-paper),var(--apr-mist)); color: rgba(16,42,67,.42); font-family: var(--apr-serif); font-size: clamp(1.3rem,3vw,2.25rem); font-weight: 700; }
.apr-compact-card:not(:has(.wp-block-post-featured-image img))::before { aspect-ratio: 4/3; }
.apr-news-query .wp-block-post-title, .apr-compact-query .wp-block-post-title, .apr-archive-query .wp-block-post-title { margin-block: .55rem; }
.apr-news-query .wp-block-post-title a, .apr-compact-query .wp-block-post-title a, .apr-archive-query .wp-block-post-title a { text-decoration: none; }
.apr-news-query .wp-block-post-title a:hover, .apr-compact-query .wp-block-post-title a:hover, .apr-archive-query .wp-block-post-title a:hover { color: var(--apr-primary); }
.apr-news-query .wp-block-post-terms, .apr-compact-query .wp-block-post-terms, .apr-archive-query .wp-block-post-terms { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apr-news-query .wp-block-post-date, .apr-compact-query .wp-block-post-date, .apr-archive-query .wp-block-post-date { margin-top: auto; padding-top: .45rem; color: var(--apr-muted); }
.apr-query-empty { padding: clamp(1.5rem,4vw,3rem); border: 1px dashed var(--apr-mist); }
.apr-query-empty h3 { margin-bottom: .45rem; }
.apr-query-empty p { margin-bottom: 0; color: var(--apr-muted); }
.apr-opinion-card { height: 100%; padding: 1.4rem; border-top: 4px solid var(--apr-primary); }
.apr-opinion-card .wp-block-post-author-name { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apr-opinion-card .wp-block-post-title { margin-block: .75rem; }
.apr-newsletter-block .wp-block-heading { margin-block: .45rem; }
.apr-media-feature { min-height: 430px; }
.apr-media-feature .wp-block-media-text__content { padding: clamp(2rem,5vw,5rem); }
.apr-video-placeholder { min-height: 380px; display: grid; place-items: center; padding: 2rem; background: linear-gradient(135deg,var(--apr-mist),var(--apr-primary)); }
.apr-ad-block { color: var(--apr-muted); letter-spacing: .06em; text-transform: uppercase; }

.apr-single-fse > .wp-block-post-featured-image img { width: 100%; max-height: 760px; object-fit: cover; }
.apr-single-fse .wp-block-post-content { font-family: var(--apr-serif); font-size: 1.2rem; line-height: 1.78; }
.apr-single-fse .wp-block-post-content > p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--apr-primary); font-size: 4.2em; font-weight: 700; line-height: .76; }
.apr-single-fse .wp-block-post-content a { text-decoration: underline; }
.apr-archive-query .wp-block-post { margin-bottom: 1.5rem; }
.apr-404 { display: flex; flex-direction: column; justify-content: center; }
.apr-fse-footer { position: relative; }
.apr-fse-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 15px; background: var(--apr-primary); clip-path: polygon(0 0,34% 0,40% 85%,46% 0,100% 0,100% 100%,0 100%); }
.apr-fse-footer .wp-block-site-title { margin: 0; }
.apr-fse-footer a { color: inherit; }
.is-style-none { padding-left: 0; list-style: none; }

@media (max-width: 960px) {
	.admin-bar .apr-fse-header { top: 46px; }
	.apr-masthead-columns { min-height: 88px; }
	.apr-header-intro { display: none; }
	.apr-masthead-columns > .wp-block-column:nth-child(2) { flex-basis: 68% !important; }
	.apr-header-actions { flex-basis: 32% !important; }
	.apr-brand-row .wp-block-search { max-width: 210px; }
	.apr-home-hero > .wp-block-columns { flex-wrap: wrap !important; }
	.apr-home-hero > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.apr-minute-panel { min-height: auto; }
	.apr-minute-query .wp-block-post-template { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.2rem; }
	.apr-compact-query .wp-block-post-template, .apr-opinion-query .wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 680px) {
	.apr-fse-header { position: relative; top: auto; }
	.admin-bar .apr-fse-header { top: auto; }
	.apr-utility { display: none; }
	.apr-brand-row { padding-block: .75rem; }
	.apr-masthead-columns { min-height: 70px; margin: 0; }
	.apr-masthead-columns > .wp-block-column:nth-child(2) { flex-basis: 100% !important; }
	.apr-header-actions { display: none; }
	.apr-editable-brand .wp-block-site-logo img { max-height: 62px; }
	.apr-wordmark { gap: .42rem !important; padding-bottom: .45rem; }
	.apr-wordmark-sans { font-size: clamp(1.35rem,7vw,2rem); letter-spacing: .08em; }
	.apr-wordmark-serif { font-size: clamp(2.45rem,12vw,3.65rem); }
	.apr-brand-tagline { margin-top: .35rem; font-size: .58rem !important; letter-spacing: .1em; }
	.apr-nav-row .wp-block-navigation { justify-content: center; }
	.apr-nav-row .wp-block-navigation__responsive-container-open { margin-block: .55rem; }
	.apr-breaking-block > .wp-block-group { flex-wrap: nowrap; }
	.apr-breaking-block p:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.apr-home-hero { padding-inline: 0 !important; }
	.apr-hero-card, .apr-no-posts { min-height: 72vh; border-radius: 0; }
	.apr-hero-copy { left: 1.1rem; right: 1.1rem; bottom: 1.8rem; }
	.apr-hero-copy .wp-block-post-title { font-size: clamp(2.3rem,11vw,3.5rem) !important; }
	.apr-hero-copy .wp-block-post-excerpt { display: none; }
	.apr-minute-query .wp-block-post-template, .apr-compact-query .wp-block-post-template, .apr-opinion-query .wp-block-post-template, .apr-archive-query .wp-block-post-template { grid-template-columns: 1fr !important; }
	.apr-section-title { flex-wrap: nowrap !important; }
	.apr-section-title > p { font-size: 0 !important; }
	.apr-section-title > p a::after { content: "→"; font-size: 1.25rem; }
	.apr-news-query .wp-block-post-template { grid-template-columns: 1fr !important; }
	.apr-news-query .wp-block-post:first-child { grid-column: auto; grid-row: auto; padding-right: 0; border-right: 0; }
	.apr-news-query .wp-block-post:not(:first-child) .wp-block-post-excerpt { display: block; }
	.apr-news-card, .apr-compact-card, .apr-archive-card { padding-bottom: 1.35rem; }
	.apr-newsletter-block .wp-block-buttons { justify-content: flex-start; }
	.apr-fse-footer .wp-block-columns { gap: 2rem; }
}
