/*
Theme Name: ANP · Agencia de Noticias Perú
Theme URI: https://agenciadenoticiaspe.com
Author: Agencia de Noticias Perú
Description: Portal editorial rojo y negro con titulares sobre franja semitransparente, publicidad, RSS y diseño adaptable.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: anp-noticias
*/
:root{--navy:#181b20;--blue:#d20d26;--cyan:#ffb6bd;--ink:#202127;--muted:#6e737c;--line:#e0e1e5;--soft:#f5f5f6;--max:1320px;--paper:#fff}*{box-sizing:border-box}html{width:100%;background:#fff;scroll-padding-top:var(--anp-sticky-height,200px)}html body{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;color:var(--ink)!important;font:16px/1.55 Arial,Helvetica,sans-serif;text-transform:none}a{color:inherit;text-decoration:none}a:hover{color:#c00c23}img{max-width:100%;height:auto;vertical-align:middle}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #f04b60;outline-offset:3px}h1,h2,h3{margin:0 0 16px;line-height:1.1;letter-spacing:-.03em}h1{font-size:clamp(32px,4.2vw,54px)}p{margin:0 0 1.2em}.wrap,body .wrap{box-sizing:border-box;width:100%;max-width:var(--max);margin-inline:auto!important;float:none!important;padding-inline:26px}.sr-only,.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:16px;z-index:9999;padding:12px;background:#fff;color:#111}.skip-link:focus{top:10px}.sticky-shell{position:sticky;top:var(--anp-admin-top,0px);z-index:999;background:#fff;box-shadow:0 2px 10px #0002;max-height:90dvh;overflow-y:auto}.site-header{background:linear-gradient(90deg,#100c10a0,#210409a0),url('assets/images/anp-mundo.jpg') center center/cover;color:#fff}.topbar{display:none}.masthead{position:relative;min-height:110px;display:flex;justify-content:center;align-items:center}.brand-group{display:flex;align-items:center;gap:20px}.brand{display:inline-flex;align-items:center;justify-content:center}.brand img{width:280px;max-height:100px;object-fit:contain}.brand-tagline{max-width:155px;border-left:1px solid #e63346;padding-left:18px;margin:0;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.custom-logo-link img{width:auto;max-width:310px;max-height:96px;object-fit:contain}.social{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;font-weight:bold}.social svg{width:20px;height:20px;display:block}.social a{display:inline-flex;align-items:center;min-width:26px;min-height:30px}.social a:hover{color:#ffb6bd}.masthead-social{position:absolute;right:75px}.search-toggle{position:absolute;right:26px;top:50%;transform:translateY(-50%)}.menu-toggle{display:none;color:white;background:none;border:0;font-size:26px}.navigation{background:linear-gradient(#d90a23,#a80017)}.navigation .menu{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;list-style:none;margin:0;padding:0}.navigation .menu>li>a{display:block;padding:12px 23px;font-size:12px;text-transform:uppercase;font-weight:800;border-bottom:3px solid transparent}.navigation .menu>li>a:hover,.navigation .current-menu-item>a{color:#fff;background:#ffffff15;border-bottom-color:#fff}.navigation .sub-menu{display:none;position:absolute;z-index:20;background:#16171a;padding:15px;list-style:none}.navigation li:hover>.sub-menu,.navigation li:focus-within>.sub-menu{display:block}.search-panel{display:none;padding-block:16px;background:var(--soft)}.search-panel:target{display:block}.search-form{display:flex;gap:8px;max-width:700px}.search-form label{flex:1;min-width:0}.search-form input{width:100%;padding:13px;background:white;border:1px solid var(--line)}.search-form button{background:var(--blue);color:white;border:0;font-weight:bold;padding:12px 20px}.ad-slot{margin-block:22px;text-align:center;overflow:hidden;max-width:100%}.ad-disclosure{display:block;font-size:8px;color:#767a83;letter-spacing:.18em;text-transform:uppercase;margin-bottom:3px}.ad-placeholder{min-height:80px;border:1px solid #e2e3e6;background:repeating-linear-gradient(135deg,#f4f4f6,#f4f4f6 12px,#eceef0 12px,#eceef0 13px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#777e8a}.ad-placeholder>span{font-size:11px;letter-spacing:.25em}.ad-placeholder small{font-size:9px}.ad-side .ad-placeholder{min-height:250px}.ad-slot img{display:block;margin:auto;max-width:100%;height:auto}.ad-slot:not(:has(.ad-placeholder,.ad-widget,img)){display:none}.ad-widget iframe,.ad-widget>*{max-width:100%}.sticky-shell .ad-top{margin-block:6px}.sticky-shell .ad-top .ad-placeholder{min-height:56px}.sticky-shell .ad-top img{max-height:70px;width:auto;object-fit:contain}.sticky-shell .ad-widget{max-height:80px;overflow:auto}.breaking-bar{display:flex;min-height:36px;align-items:stretch;background:#fff;border-block:1px solid #e6d8db;overflow:hidden;min-width:0}.breaking-label{display:flex;align-items:center;gap:7px;padding:8px 14px;background:#ce0924;color:#fff;font-size:10px;letter-spacing:.05em;flex-shrink:0}.breaking-label svg{width:20px;height:20px}.breaking-window{display:flex;align-items:center;overflow:hidden;flex:1;min-width:0}.breaking-track{display:flex;gap:30px;width:max-content;padding-left:16px;animation:anp-ticker 60s linear infinite}.breaking-track>a{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:12px}.breaking-track small{font-size:10px;color:#777}.breaking-pause{border:0;background:#fbebee;padding:6px 12px;color:#b80920;font-weight:bold;flex-shrink:0}.breaking-bar:hover .breaking-track,.breaking-bar:focus-within .breaking-track,.breaking-bar.is-paused .breaking-track{animation-play-state:paused}@keyframes anp-ticker{from{transform:translateX(0)}to{transform:translateX(-85%)}}.home-main{padding-top:20px}.anp-front-lead{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:20px}.news-card{position:relative;min-width:0;background:#222;isolation:isolate}.card-link{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:250px;aspect-ratio:16/10;height:100%;overflow:hidden;color:#fff!important}.card-photo{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;transition:transform .4s}.card-link:hover .card-photo{transform:scale(1.025)}.card-copy{padding:17px 20px;background:rgba(8,10,14,.66);border-top:1px solid #ffffff18;max-width:100%}.card-copy h2{font-size:25px;line-height:1.1;color:white;margin:0 0 8px;font-weight:900;text-shadow:0 2px 4px #000b;overflow-wrap:break-word;text-wrap:pretty}.card-copy h2 em{font-style:normal;color:#fff}.card-link:hover h2{text-decoration:underline;text-decoration-color:#e52440;text-underline-offset:4px}.category{display:inline-block;background:var(--blue);padding:4px 7px;font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.04em;line-height:1;margin-bottom:8px;color:white}.card-meta{color:#f1e7e8;font-size:10px;line-height:1.3}.photo-note{position:absolute;right:9px;top:9px;font-size:8px;color:#fff;background:#1119;padding:4px 7px;z-index:2}.lead .card-link{min-height:470px;aspect-ratio:16/9}.lead .card-copy{padding:22px 24px}.lead h2{font-size:clamp(29px,2.7vw,39px);line-height:1.08}.no-photo{background:linear-gradient(120deg,#6b0d1d,#1e1f23)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #d00b24;padding:0 0 10px;margin-bottom:16px}.section-heading h2{font-size:24px;margin:0;font-weight:900}.section-heading>a,.section-heading>span{font-size:10px}.developing .section-heading{background:var(--blue);color:white;padding:10px 12px;margin:0;border:0}.developing .section-heading h2{font-size:18px;text-transform:uppercase}.headline-row{border-bottom:1px solid var(--line);padding:12px 0}.headline-row>a{display:grid;grid-template-columns:95px 1fr;gap:12px}.headline-row img{width:95px;height:77px;object-fit:cover}.headline-row h3{font-size:17px;line-height:1.13;margin:3px 0 5px}.row-cat{font-size:9px;color:#cc0c24;font-weight:800;text-transform:uppercase}.headline-row time{font-size:9px;color:#777}.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.front-strip{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}.front-strip .card-link{aspect-ratio:16/9;min-height:225px}.front-strip h2{font-size:21px}.front-strip .card-copy{padding:14px}.body-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px;margin-top:32px;margin-bottom:45px}.body-grid>*,.article-layout>*{min-width:0}.category-section{margin-top:35px}.category-grid .card-link{min-height:250px}.compact h2{font-size:22px}.sidebar>.ad-slot{margin-top:0}.editor-picks{border:1px solid var(--line);background:white;padding:18px;margin-top:28px}.editor-picks .section-heading h2{font-size:21px}.eyebrow{font-size:10px;letter-spacing:.1em;color:#bb0b22;text-transform:uppercase;font-weight:700}.editor-picks ol{list-style:none;counter-reset:agenda;margin:0;padding:0}.editor-picks li{counter-increment:agenda;display:flex;gap:13px;border-bottom:1px solid var(--line);padding:17px 0;font-size:14px;font-weight:700;line-height:1.35}.editor-picks li:before{content:counter(agenda,decimal-leading-zero);font-size:24px;color:#d00b24;line-height:1}.editor-picks li:last-child{border:0}.follow-box{background:#1c1c20;color:white;padding:24px;margin-top:25px;border-top:4px solid var(--blue)}.follow-box h2{font-size:23px}.follow-box p{font-size:13px;color:#ddd}.site-footer{margin-top:45px;border-top:5px solid var(--blue);background:#121316;color:#fff}.footer-top{display:flex;justify-content:space-between;gap:30px;padding-block:32px}.footer-top .brand img{width:220px;max-height:100px}.footer-top p{font-size:13px;color:#d8d8db}.footer-top .social{margin-top:14px}.footer-institutional{border-top:1px solid #ffffff20}.institutional-links{display:flex;flex-wrap:wrap;gap:14px 24px;padding-block:20px;font-size:12px}.footer-bottom{border-top:1px solid #ffffff20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:18px;font-size:10px;color:#babdc4}.footer-bottom .menu{display:flex;list-style:none;gap:16px;flex-wrap:wrap;padding:0;margin:0}.archive-heading{padding:28px 0 10px}.archive-heading h1{font-size:40px}.pagination{padding:26px 0}.page-numbers{display:inline-block;padding:8px 13px;background:var(--soft);margin:3px}.page-numbers.current{background:var(--blue);color:#fff}.empty-state{padding-block:65px;min-height:45vh}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:40px;margin-top:32px}.breadcrumbs{font-size:12px;color:#777;margin-bottom:18px}.article-header h1{font-size:clamp(32px,4vw,50px);line-height:1.08}.article-excerpt{font-size:20px;color:#62656d;line-height:1.5}.byline{font-size:12px;color:#777;border-block:1px solid var(--line);padding:13px 0}.article-figure{margin:25px 0}.article-figure img{width:100%;max-height:560px;object-fit:cover}.article-figure figcaption{font-size:11px;color:#777;padding-top:8px}.entry-content{font-size:19px;line-height:1.8;overflow-wrap:anywhere}.entry-content h2{font-size:28px;margin-top:28px}.entry-content a,.source-box a{color:#bd0922;text-decoration:underline;text-underline-offset:3px}.entry-content iframe{max-width:100%}.entry-content .wp-block-image{margin-inline:0}.source-box{border-left:4px solid var(--blue);background:#f8f5f6;padding:22px;margin:30px 0;font-size:13px}.source-box p{margin:10px 0}.article-nav{display:flex;justify-content:space-between;gap:25px;font-size:12px;padding:25px 0 35px}.article-nav a{max-width:48%}.related-grid h2{font-size:21px}.page-content,body .page-content{max-width:900px;padding-block:36px;min-height:50vh}.share-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0;font-size:12px}.share-links a,.share-links button{border:1px solid #ddd;background:#f6f6f6;padding:8px 12px;font-size:12px}.aligncenter{display:block;margin-inline:auto}.wp-caption{max-width:100%}.wp-caption-text{font-size:12px}.entry-content:after{content:'';display:block;clear:both}
@media(min-width:761px) and (max-width:1050px){.masthead-social{display:none}.anp-front-lead{grid-template-columns:1.8fr 1fr;gap:15px}.lead .card-link{min-height:470px}.headline-row>a{grid-template-columns:65px 1fr;gap:8px}.headline-row img{width:65px;height:70px}.headline-row h3{font-size:15px}.front-strip h2{font-size:18px}.body-grid,.article-layout{grid-template-columns:minmax(0,1fr) 230px;gap:22px}.card-copy h2{font-size:22px}.navigation .menu>li>a{padding-inline:16px}}
@media(max-width:760px){.wrap,body .wrap{padding-inline:16px}.masthead{min-height:70px;padding-inline:55px}.brand img{width:180px;max-height:64px}.brand-tagline,.masthead-social{display:none}.custom-logo-link img{max-width:200px;max-height:60px}.menu-toggle{display:block;position:absolute;left:12px;top:50%;transform:translateY(-50%);padding:6px}.search-toggle{right:16px}.navigation{display:none}.navigation.is-open{display:block}.navigation .menu{display:block;padding-block:8px}.navigation .menu>li>a{padding:10px 14px;border-bottom:1px solid #ffffff20}.navigation .sub-menu{position:static;display:block;background:transparent;padding-block:0}.sticky-shell .sticky-ad{padding-inline:12px}.sticky-shell .ad-top .ad-placeholder{min-height:42px}.sticky-shell .ad-top img{max-height:50px}.ad-disclosure{font-size:8px}.ad-placeholder>span{font-size:9px;letter-spacing:.15em}.ad-placeholder small{font-size:8px}.breaking-label{font-size:9px;padding:6px 9px;gap:4px}.breaking-label svg{width:17px;height:17px}.breaking-track>a{font-size:11px}.breaking-track small{font-size:9px}.breaking-bar{min-height:32px}.breaking-pause{padding-inline:9px}.home-main{padding-top:14px}.anp-front-lead{display:block}.lead .card-link,.card-link,.front-strip .card-link{aspect-ratio:4/3;min-height:280px;height:100%}.lead .card-copy,.card-copy{padding:15px 16px;background:rgba(8,10,14,.63)}.lead h2,.card-copy h2,.front-strip h2,.compact h2{font-size:23px;line-height:1.1;margin-bottom:8px}.category{font-size:8px;margin-bottom:7px}.card-meta{font-size:9px}.photo-note{font-size:7px;padding:3px 5px}.developing{margin-top:20px}.developing .headline-row>a{grid-template-columns:100px 1fr}.headline-row img{width:100px;height:76px}.headline-row h3{font-size:17px}.front-strip{grid-template-columns:1fr;gap:14px;margin-top:20px}.body-grid,.article-layout{grid-template-columns:1fr;gap:28px}.news-grid,.category-grid,.related-grid{grid-template-columns:1fr;gap:14px}.section-heading h2{font-size:22px}.section-heading>span{display:none}.footer-top{flex-direction:column;gap:25px}.footer-top .brand img{width:200px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:13px}.institutional-links{gap:13px 19px;font-size:12px}.article-header h1{font-size:34px}.article-excerpt{font-size:18px}.entry-content{font-size:18px;line-height:1.8}.archive-heading h1{font-size:32px}.page-content{padding-top:28px}.ad-slot{margin-block:18px}.search-form button{padding-inline:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.breaking-track{animation:none}.breaking-window{overflow-x:auto}}
/* Constrain intrinsic card dimensions on narrow desktop/tablet columns. */
.anp-front-lead>*{min-width:0}.card-link{width:100%;min-width:0}.card-copy{min-width:0}
@media(min-width:761px) and (max-width:1050px){.anp-front-lead{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}}
@media(min-width:761px){.anp-front-lead>div>.news-card,.anp-front-lead .lead .card-link{height:100%}.anp-front-lead .lead .card-link{aspect-ratio:auto}.headline-row h3{font-size:16px}.headline-row{padding-block:10px}}
