/*
Theme Name: Aferomat
Author: Aferomat
Description: Nowoczesny polski motyw redakcyjny. Wyróżnione wiadomości, kategorie i dopracowane artykuły z obsługą edytora blokowego.
Version: 2.3.1
Requires at least: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aferomat
*/
:root{--ink:#142235;--muted:#6d7580;--red:#e33140;--line:#e2e5e9;--paper:#fff;--soft:#f4f5f6}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}img{max-width:100%;height:auto}figure{margin:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h1{font-size:46px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #2563eb;outline-offset:5px}.container{width:min(1240px,calc(100% - 80px));margin-inline:auto}.red{color:var(--red)}.topline{background:var(--soft);font-size:11px;color:#626c78}.topline>.container{display:flex;justify-content:space-between;padding-block:10px}.site-header{background:white}.masthead{display:flex;align-items:center;justify-content:space-between;min-height:104px;gap:20px}.brand-wrap{display:flex;align-items:center;gap:26px}.brand{font-size:54px;font-weight:900;letter-spacing:-4px;line-height:1}.brand-note{max-width:140px;border-left:1px solid var(--line);padding-left:24px;font-size:12px;line-height:1.5;color:var(--muted)}.custom-logo{max-height:66px;width:auto}.header-actions{display:flex;align-items:center;gap:26px}.search-trigger{font-size:23px;display:flex;gap:8px;align-items:center}.search-trigger span{font-size:13px}.latest-button{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:white;padding:13px 18px;font-size:12px;font-weight:700;border:0}.latest-button:hover{background:#293f59;color:white}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);flex-shrink:0}.navigation{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);border-bottom:2px solid var(--ink);min-height:53px;gap:20px}.menu{display:flex;list-style:none;gap:27px;margin:0;padding:0;flex-wrap:wrap}.navigation .menu>li>a{font-size:13px;font-weight:700;display:block;padding-block:17px}.navigation .current-menu-item>a,.navigation .current-cat>a{color:var(--red)}.menu li{position:relative}.sub-menu{display:none;position:absolute;z-index:5;min-width:190px;background:white;padding:12px;list-style:none;box-shadow:0 10px 25px #14223520}.sub-menu a{display:block;padding:8px}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{display:block}.sub-menu .sub-menu{left:100%;top:0}.rss-link{font-size:11px;color:var(--muted);white-space:nowrap}.menu-toggle{display:none;background:none;border:1px solid var(--line);padding:9px 12px}.breaking{display:flex;align-items:center;gap:18px;background:#fcf0f1;margin-top:21px;min-height:43px;font-size:12px;padding:10px 16px}.breaking>span:first-child{font-weight:800;color:var(--red);font-size:10px;letter-spacing:1px}.breaking a{flex:1}.breaking>span:last-child{color:var(--red);font-size:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:34px 0 24px}.section-heading h1{margin:0;font-size:36px;letter-spacing:-1.4px}.section-heading h1 span,.section-heading h2 span{font-weight:400}.edition{font-size:9px;letter-spacing:1.6px;color:var(--muted)}.lead-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.lead-stories{min-width:0}.hero-story{position:relative;min-height:490px;display:flex;align-items:flex-end;overflow:hidden;background:var(--ink);color:white}.hero-image{position:absolute;inset:0}.hero-image img,.hero-image .image-placeholder{width:100%;height:100%;object-fit:cover}.hero-image:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 12%,#07132355 38%,#071323ed 100%);pointer-events:none}.hero-copy{position:relative;padding:32px;pointer-events:none;max-width:740px}.hero-copy a{pointer-events:auto}.eyebrow{font-size:10px;color:var(--red);letter-spacing:1.35px;font-weight:800;text-transform:uppercase;display:inline-block;margin-bottom:12px}.hero-copy .eyebrow{color:white;background:var(--red);padding:6px 9px;font-size:9px}.hero-copy h2{font-size:38px;line-height:1.08;margin-bottom:16px;max-width:650px}.hero-copy h2 a:hover{color:#f3d7d9}.hero-copy p{font-size:13px;line-height:1.6;color:#e0e3e9;max-width:580px;margin-bottom:18px}.meta{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted);line-height:1.6}.meta>span+span:before{content:'·';margin-right:14px}.hero-copy .meta{color:#d9dce1}.secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:26px}.card-image{display:block;aspect-ratio:1.65;overflow:hidden;background:var(--soft)}.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.card-image:hover img{transform:scale(1.035)}.card-copy{padding-top:17px}.news-card :is(h2,h3){font-size:23px;line-height:1.2;margin-bottom:12px}.news-card p{font-size:13px;line-height:1.65;color:var(--muted);margin-bottom:16px}.news-card .eyebrow{margin-bottom:9px}.secondary-grid .news-card :is(h2,h3){font-size:22px}.secondary-grid .news-card p{display:none}.news-wire{border-left:1px solid var(--line);padding-left:26px}.wire-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--ink);padding:2px 0 17px}.wire-heading h2{font-size:20px;letter-spacing:-.6px;margin:0;display:flex;align-items:center;gap:9px}.wire-heading>span{font-size:8px;color:var(--red);font-weight:700;letter-spacing:1px}.wire-item{padding:19px 0 19px 17px;position:relative;border-bottom:1px solid var(--line)}.wire-item:before{content:'';width:5px;height:5px;background:var(--red);border-radius:50%;position:absolute;top:23px;left:0}.wire-item time{font-size:10px;color:var(--red);font-weight:700}.wire-item h3{font-size:15px;line-height:1.4;letter-spacing:-.2px;margin:7px 0 0}.text-link{display:flex;justify-content:space-between;font-size:11px;font-weight:700;padding-block:21px}.editor-note{background:var(--soft);padding:25px 23px;margin-top:13px;overflow:hidden;position:relative}.editor-note h3{font-size:25px;line-height:1.12;max-width:190px}.editor-note p{font-size:12px;line-height:1.7;max-width:180px;color:var(--muted);margin-bottom:28px}.editor-note .eyebrow{font-size:8px}.note-mark{position:absolute;right:12px;bottom:-12px;font-size:84px;letter-spacing:-10px;font-weight:900;color:#dce0e5}.small{border-top:2px solid var(--ink);padding-top:23px;margin-top:48px}.small h2{font-size:26px;margin:0}.small>a{font-size:11px;font-weight:700}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px}.latest-section,.category-section{margin-bottom:48px}.image-placeholder{height:100%;min-height:180px;display:grid;place-items:center;background:linear-gradient(135deg,#dfe5ec,#a1b2c3);color:#fff}.image-placeholder>span{font-size:60px;font-weight:900;letter-spacing:-5px;opacity:.7}.search-section{margin-top:64px;border-top:1px solid var(--line);padding-block:35px;display:flex;justify-content:space-between;align-items:center;gap:32px}.search-section h2{font-size:22px;margin:0;max-width:360px}.search-form{display:flex;gap:0;width:min(460px,100%)}.search-form input{width:100%;min-width:0;background:var(--soft);border:1px solid var(--line);padding:15px;font-size:13px}.search-form button{border:0;color:white;background:var(--ink);padding:14px 23px;white-space:nowrap;font-size:12px}.site-footer{background:var(--ink);color:white;padding-top:42px}.footer-top{display:flex;justify-content:space-between;gap:35px;padding-bottom:38px}.footer-top .brand{font-size:44px}.footer-top p{font-size:11px;color:#b1bac6;margin:14px 0 0}.footer-top .menu{align-items:center;font-size:12px}.footer-bottom{display:flex;justify-content:space-between;padding-block:20px;border-top:1px solid #ffffff26;font-size:10px;color:#b1bac6}.archive-main{padding-bottom:30px;min-height:50vh}.archive-description{max-width:740px;line-height:1.7;color:var(--muted)}.pagination{margin-top:40px}.nav-links{display:flex;gap:10px;flex-wrap:wrap}.page-numbers{padding:10px 14px;background:var(--soft)}.page-numbers.current{background:var(--ink);color:white}.empty-state{padding-block:80px;max-width:800px;min-height:40vh}.empty-state p{line-height:1.8;color:var(--muted)}.single-main{padding-top:30px}.article-header{max-width:920px;margin:0 auto 34px}.breadcrumbs{display:flex;gap:14px;font-size:11px;align-items:center;margin-bottom:30px;color:var(--muted)}.breadcrumbs .eyebrow{margin:0}.article-header h1{font-size:clamp(34px,4.4vw,60px);line-height:1.07;margin-bottom:25px;letter-spacing:-.045em}.article-lead{font-size:21px;line-height:1.65;color:#596573}.article-byline{padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px}.article-byline>div{display:flex;align-items:center;gap:12px}.avatar{border-radius:50%}.article-byline strong{font-size:12px;display:block;margin-bottom:4px}.share-button{border:1px solid var(--line);padding:12px 16px;background:white;font-size:11px}.article-cover{margin-bottom:40px}.article-cover>img{width:100%;max-height:680px;object-fit:cover}.article-cover figcaption{font-size:11px;color:var(--muted);padding-top:10px}.article-body{max-width:740px;margin-inline:auto}.article-content{font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.85;overflow-wrap:anywhere}.article-content p{margin-bottom:1.4em}.article-content h2,.article-content h3{font-family:Arial,sans-serif;line-height:1.2;margin-top:1.4em}.article-content h2{font-size:32px}.article-content h3{font-size:25px}.article-content a{text-decoration:underline;text-underline-offset:4px;color:#b52130}.article-content blockquote{border-left:4px solid var(--red);background:var(--soft);margin:30px 0;padding:24px 30px;font-size:26px;line-height:1.5}.article-content blockquote p:last-child{margin:0}.article-content figcaption{font-family:Arial,sans-serif;font-size:12px;color:var(--muted);line-height:1.5}.article-content .alignwide{max-width:calc(100vw - 80px);width:1000px;margin-left:50%;transform:translateX(-50%)}.article-content .alignfull{max-width:calc(100vw - 80px);width:1240px;margin-left:50%;transform:translateX(-50%)}.article-content .alignleft{float:left;margin:0 24px 16px 0}.article-content .alignright{float:right;margin:0 0 16px 24px}.article-content:after{content:'';display:block;clear:both}.article-content iframe{max-width:100%}.article-content table{border-collapse:collapse;width:100%}.article-content td,.article-content th{border:1px solid var(--line);padding:12px}.tags{display:flex;gap:9px;flex-wrap:wrap;margin:30px 0}.tags a{font-size:11px;background:var(--soft);padding:8px 12px}.author-box{display:flex;gap:20px;border-block:1px solid var(--line);padding:26px 0;margin-block:30px}.author-box .avatar{height:64px}.author-box h2{font-size:19px;margin-bottom:9px}.author-box p{font-size:13px;line-height:1.7;color:var(--muted)}.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:50;transform-origin:left;transform:scaleX(0);background:var(--red)}.admin-bar .reading-progress{top:32px}.comments-area{margin:40px 0}.comment-list{padding-left:20px}.comment-body{font-size:14px;line-height:1.7;padding-block:15px}.comment-meta{font-size:11px}.comment-form label{display:block;font-size:12px;margin-bottom:6px}.comment-form input:not([type=checkbox]),.comment-form textarea{border:1px solid var(--line);padding:12px;max-width:100%;width:100%}.comment-form .submit{background:var(--ink);color:white;cursor:pointer}.comment-form-cookies-consent{display:flex;gap:10px}.screen-reader-text,.skip-link{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{width:auto;height:auto;clip:auto;z-index:100;background:white;padding:15px}.wp-caption{max-width:100%}.aligncenter{display:block;margin-inline:auto}.bypostauthor{border-left:2px solid var(--red);padding-left:12px}
@media(min-width:1500px){.hero-story{min-height:530px}}
@media(max-width:1050px){.container{width:calc(100% - 48px)}.brand-note{display:none}.lead-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.news-wire{padding-left:20px}.hero-copy{padding:25px}.hero-copy h2{font-size:32px}.menu{gap:18px}.article-content .alignwide,.article-content .alignfull{max-width:calc(100vw - 48px)}}
@media(max-width:780px){.container{width:calc(100% - 36px)}.topline>.container>span:last-child,.edition,.rss-link{display:none}.masthead{min-height:84px}.brand{font-size:45px}.header-actions{gap:14px}.header-actions .latest-button{display:none}.menu-toggle{display:block}.navigation{display:none}.navigation.is-open{display:block;padding-block:8px}.navigation .menu{display:flex;flex-direction:column;gap:0}.navigation .menu>li>a{padding:13px 0}.sub-menu{display:block;position:static;box-shadow:none;padding:0 0 0 20px}.section-heading{margin-top:25px}.section-heading h1{font-size:31px}.lead-layout{grid-template-columns:1fr}.hero-story{min-height:460px}.hero-copy h2{font-size:34px}.news-wire{border-left:0;padding-left:0;margin-top:20px}.wire-list{display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.editor-note{display:none}.cards-grid{grid-template-columns:1fr 1fr}.search-section{align-items:flex-start;flex-direction:column}.search-form{width:100%}.footer-top{flex-direction:column}.article-header h1{font-size:40px}.article-content .alignwide,.article-content .alignfull{max-width:calc(100vw - 36px)}.admin-bar .reading-progress{top:46px}}
@media(max-width:480px){.hero-story{min-height:430px}.hero-copy{padding:22px}.hero-copy h2{font-size:29px}.hero-copy p{font-size:12px}.secondary-grid{gap:16px}.secondary-grid .news-card :is(h2,h3){font-size:18px}.secondary-grid .meta{font-size:9px;gap:5px}.cards-grid{grid-template-columns:1fr}.small h2{font-size:23px}.small>a{font-size:10px}.section-heading.small{gap:12px}.wire-item h3{font-size:14px}.article-header h1{font-size:34px}.article-lead{font-size:18px}.article-byline{align-items:flex-start;flex-direction:column}.article-content{font-size:18px}.article-content blockquote{font-size:22px;padding:18px}.breaking{gap:10px;font-size:11px}.search-section h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Aferomat identity */
.brand{display:inline-flex;align-items:center;flex-shrink:0;letter-spacing:normal}
.brand-logo{display:block;width:280px;height:56px;overflow:visible}
.image-placeholder>span{font-size:clamp(28px,4vw,52px);letter-spacing:-2px}
.site-footer .brand-logo{width:245px;height:49px}
@media(max-width:780px){.brand-logo{width:210px;height:42px}.header-actions{gap:10px}.masthead{gap:10px}.search-trigger span{display:none}}
@media(max-width:360px){.brand-logo{width:180px;height:36px}}

/* Animated mobile menu icon. */
.menu-toggle{width:42px;height:42px;padding:9px}
.menu-toggle-icon{display:flex;width:22px;height:16px;flex-direction:column;justify-content:space-between;margin:auto}
.menu-toggle-icon span{display:block;width:100%;height:2px;background:currentColor;transform-origin:center;transition:transform .3s var(--ease-out),opacity .2s ease}
.menu-toggle[aria-expanded=true] .menu-toggle-icon span:first-child{transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded=true] .menu-toggle-icon span:nth-child(2){opacity:0;transform:scaleX(0)}
.menu-toggle[aria-expanded=true] .menu-toggle-icon span:last-child{transform:translateY(-7px) rotate(-45deg)}

/* Motion — short editorial entrances, then a calm reading experience. */
:root{--ease-out:cubic-bezier(.22,1,.36,1)}
a{transition:color .2s ease}
.news-card{transition:transform .4s var(--ease-out)}
.card-image{position:relative;transition:box-shadow .4s ease}
.card-image img,.hero-image img{transition:transform .9s var(--ease-out),filter .6s ease}
.news-card :is(h2,h3) a,.wire-item h3 a{background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:0 100%;background-size:0 1px;transition:background-size .35s var(--ease-out),color .2s ease;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.navigation .menu>li>a{position:relative}
.navigation .menu>li>a:after{content:'';position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease-out)}
.navigation .menu>li>a:focus-visible:after{transform:scaleX(1)}
.latest-button,.share-button,.search-form button,.menu-toggle,.page-numbers,.tags a{transition:transform .25s var(--ease-out),box-shadow .25s ease,background-color .25s ease,color .25s ease}
.latest-button:active,.share-button:active,.search-form button:active,.menu-toggle:active{transform:scale(.97)}
.text-link span,.breaking>span:last-child{transition:transform .35s var(--ease-out)}
.brand-logo{transition:transform .35s var(--ease-out)}
.wire-item{transition:background-color .3s ease}
.wire-item:before{transition:box-shadow .3s ease,transform .3s ease}
.search-form input{transition:border-color .25s ease,box-shadow .25s ease}
.search-form:focus-within input{border-color:var(--red);box-shadow:0 3px 0 #e3314014}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .news-card:hover{transform:translateY(-5px)}
 .news-card:hover .card-image{box-shadow:0 14px 28px -16px #14223580}
 .news-card:hover .card-image img{transform:scale(1.055)}
 .hero-story:hover .hero-image img{transform:scale(1.035);filter:saturate(1.08)}
 .news-card :is(h2,h3) a:hover,.wire-item h3 a:hover{background-size:100% 1px}
 .navigation .menu>li>a:hover:after{transform:scaleX(1)}
 .latest-button:hover,.search-form button:hover{transform:translateY(-2px);box-shadow:0 8px 18px -8px #14223580}
 .share-button:hover,.menu-toggle:hover,.tags a:hover,.page-numbers:hover{transform:translateY(-2px);background:var(--soft);box-shadow:0 5px 14px -9px var(--ink)}
 .page-numbers.current:hover{background:var(--ink)}
 .brand:hover .brand-logo{transform:translateY(-2px)}
 .text-link:hover span{transform:translateY(4px)}
 .breaking:hover>span:last-child{transform:translate(3px,-3px)}
 .wire-item:hover{background:#f4f5f680}
 .wire-item:hover:before{box-shadow:0 0 0 4px #e3314014;transform:scale(1.2)}
}
@keyframes aferomat-enter{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}
@keyframes aferomat-picture{from{opacity:0;scale:1.035}to{opacity:1;scale:1}}
@keyframes aferomat-signal{0%,100%{box-shadow:0 0 0 0 #e3314000}45%{box-shadow:0 0 0 5px #e3314018}}
@media(prefers-reduced-motion:no-preference){
 .masthead{animation:aferomat-enter .7s var(--ease-out) both}
 .navigation{animation:aferomat-enter .65s .07s var(--ease-out) both}
 .breaking{animation:aferomat-enter .7s .12s var(--ease-out) both}
 .homepage>.section-heading,.archive-main>.section-heading{animation:aferomat-enter .75s .17s var(--ease-out) both}
 .hero-story{animation:aferomat-enter .85s .22s var(--ease-out) both}
 .hero-image img{animation:aferomat-picture 1.3s .22s var(--ease-out) backwards}
 .hero-copy>.eyebrow{animation:aferomat-enter .65s .34s var(--ease-out) both}
 .hero-copy>h2{animation:aferomat-enter .8s .42s var(--ease-out) both}
 .hero-copy>p,.hero-copy>.meta{animation:aferomat-enter .8s .5s var(--ease-out) both}
 .wire-heading{animation:aferomat-enter .75s .3s var(--ease-out) both}
 .article-header{animation:aferomat-enter .85s .16s var(--ease-out) both}
 .article-cover{animation:aferomat-enter .9s .26s var(--ease-out) both}
 .status-dot{animation:aferomat-signal 1.8s 1s 3}
 .navigation.is-open{animation:aferomat-enter .3s var(--ease-out) both}
}
@media(prefers-reduced-motion:reduce){
 .news-card,.brand-logo,.card-image img,.hero-image img{transform:none!important}
}
@media print{
 *,*:before,*:after{animation:none!important;transition:none!important;opacity:1!important;translate:none!important}
}
/* Keep dropdown menus above the animated lead story. */
.navigation{position:relative;z-index:20}
@media print{.reading-progress{display:none}}

/* PWA install and notification controls. */
.pwa-actions{display:flex;align-items:center;gap:10px;min-height:54px;padding-block:10px;border-top:1px solid #ffffff26}
.pwa-button{border:1px solid #ffffff45;background:transparent;color:white;padding:10px 14px;font-size:11px;font-weight:700;transition:background-color .2s ease,border-color .2s ease,transform .2s var(--ease-out)}
.pwa-button:hover{background:#ffffff12;border-color:#ffffff80}
.pwa-button:active{transform:scale(.97)}
.pwa-button[data-active=true]{border-color:#e33140}
.pwa-button:disabled{cursor:wait;opacity:.6}
.pwa-status{font-size:10px;line-height:1.4;color:#b1bac6}
@media(max-width:600px){.pwa-actions{align-items:flex-start;flex-direction:column;padding-block:16px}.pwa-status{min-height:14px}}
@media print{.pwa-actions{display:none}}

/* Sticky masthead: full identity at the top, compact navigation while reading. */
html{scroll-padding-top:150px}
.site-header{position:sticky;top:0;z-index:100;transition:box-shadow .3s ease;background:#fff}
.site-header .masthead{transition:min-height .35s var(--ease-out)}
.site-header .brand-logo{transition:width .35s var(--ease-out),height .35s var(--ease-out),transform .35s var(--ease-out)}
.site-header .custom-logo{transition:max-height .35s var(--ease-out)}
.site-header .brand-note{transition:opacity .25s ease}
.site-header .navigation{transition:min-height .35s var(--ease-out)}
.site-header .navigation .menu>li>a{transition:padding .35s var(--ease-out),color .2s ease}
.site-header.is-compact{box-shadow:0 5px 24px #14223514}
.site-header.is-compact .masthead{min-height:64px}
.site-header.is-compact .brand-logo{width:210px;height:42px}
.site-header.is-compact .custom-logo{max-height:42px}
.site-header.is-compact .brand-note{opacity:0;visibility:hidden}
.site-header.is-compact .navigation{min-height:40px;border-bottom-color:var(--line)}
.site-header.is-compact .navigation .menu>li>a{padding-block:11px}
.admin-bar .site-header{top:32px}
.reading-progress{z-index:110}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:780px){
 html{scroll-padding-top:100px}
 .site-header.is-compact .masthead{min-height:60px}
 .site-header.is-compact .brand-logo{width:180px;height:36px}
 .site-header .navigation.is-open{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:600px){.admin-bar .site-header{top:0}}
@media print{.site-header{position:static;box-shadow:none}}
:root {
 --color-ink: #142235;
 --color-ink-raised: #20334a;
 --color-red: #c92535;
 --color-paper: #fff;
 --color-surface: #f4f5f6;
 --color-muted: #626c78;
 --color-line: #e2e5e9;
 --color-action: #142235;
 --color-action-hover: #293f59;
 --color-on-action: #fff;
 --color-footer: #142235;
 --color-on-footer: #fff;
 --space-1: .5rem;
 --space-2: .75rem;
 --space-3: 1rem;
 --space-4: 1.5rem;
 --space-5: 2rem;
 --space-6: 3rem;
 --space-7: 4rem;
 --radius-sm: 3px;
 --radius-md: 8px;
 --shadow-card: 0 14px 34px -22px rgb(20 34 53 / 35%);
 --shadow-modal: 0 28px 80px -24px rgb(7 19 35 / 50%);
 --font-size-body: clamp(1rem, .96rem + .18vw, 1.125rem);
 --font-size-title: clamp(2.15rem, 5vw, 4.25rem);
 --line-height-body: 1.7;
 --content-width: 740px;
 --article-width: 920px;
 --container-width: 1240px;
 --ink: var(--color-ink);
 --red: var(--color-red);
 --paper: var(--color-paper);
 --soft: var(--color-surface);
 --muted: var(--color-muted);
 --line: var(--color-line);
 color-scheme: light;
}

:root[data-theme="dark"] {
 --color-ink: #eef3f8;
 --color-ink-raised: #fff;
 --color-paper: #0e1825;
 --color-surface: #172536;
 --color-muted: #aab7c6;
 --color-line: #2b3c50;
 --color-red: #ff8591;
 --color-action: #bb2031;
 --color-action-hover: #d1283a;
 --color-on-action: #fff;
 --color-footer: #090f18;
 --color-on-footer: #eef3f8;
 --shadow-card: 0 14px 34px -22px rgb(0 0 0 / 80%);
 color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
  --color-ink: #eef3f8;
  --color-ink-raised: #fff;
  --color-paper: #0e1825;
  --color-surface: #172536;
  --color-muted: #aab7c6;
  --color-line: #2b3c50;
  --color-red: #ff8591;
 --color-action: #bb2031;
  --color-action-hover: #d1283a;
  --color-on-action: #fff;
  --color-footer: #090f18;
  --color-on-footer: #eef3f8;
  --shadow-card: 0 14px 34px -22px rgb(0 0 0 / 80%);
  color-scheme: dark;
 }
}
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: background-color .2s ease, color .2s ease; }
.latest-button,
.search-form button,
.comment-form .submit,
.page-numbers.current {
 background: var(--color-action);
 color: var(--color-on-action);
}
.latest-button:hover,
.search-form button:hover,
.comment-form .submit:hover {
 background: var(--color-action-hover);
 color: var(--color-on-action);
}
.site-footer {
 background: var(--color-footer);
 color: var(--color-on-footer);
}
:root[data-theme="dark"] .latest-button .status-dot { background: var(--color-on-action); }
.site-header.is-anchor-scrolling,
.site-header.is-anchor-scrolling .masthead,
.site-header.is-anchor-scrolling .brand-logo,
.site-header.is-anchor-scrolling .custom-logo,
.site-header.is-anchor-scrolling .brand-note,
.site-header.is-anchor-scrolling .navigation,
.site-header.is-anchor-scrolling .navigation .menu > li > a { transition: none !important; }
.site-header, .sub-menu, .share-button, .skip-link:focus { background: var(--paper); }
.topline { background: var(--soft); color: var(--muted); }
.breaking { background: color-mix(in srgb, var(--red) 9%, var(--paper)); }
.breaking > strong { color: var(--red); font-size: 10px; letter-spacing: 1px; }
.container { width: min(var(--container-width), calc(100% - clamp(36px, 6vw, 80px))); }
.icon-button, .theme-toggle, .dialog-close { border: 0; background: transparent; color: inherit; }
.search-trigger { cursor: pointer; }
.search-trigger kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font: 10px system-ui, sans-serif; }
.theme-toggle { display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: min(680px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: var(--radius-md); color: var(--ink); background: var(--paper); box-shadow: var(--shadow-modal); }
.search-dialog::backdrop { background: rgb(7 19 35 / 72%); backdrop-filter: blur(4px); }
.search-dialog-inner { padding: clamp(20px, 4vw, 36px); }
.search-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.search-dialog-head h2 { margin: 0 0 20px; font-size: clamp(24px, 4vw, 34px); }
.dialog-close { width: 44px; height: 44px; font-size: 32px; line-height: 1; }
.search-hint { margin: 10px 0 18px; color: var(--muted); font-size: 12px; }
.search-suggestions { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.search-result { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 15px 10px; border-bottom: 1px solid var(--line); }
.search-result[aria-selected="true"], .search-result:hover { background: var(--soft); color: var(--ink); }
.search-result strong { font-size: 15px; }
.search-result span { color: var(--muted); font-size: 11px; }
.search-result em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--red); font-style: normal; }
.breadcrumbs ol { display: flex; gap: 10px; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; gap: 10px; min-width: 0; }
.breadcrumbs li:not(:last-child)::after { content: "→"; color: var(--red); }
.breadcrumbs li:last-child { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.publication-meta { row-gap: 2px; }
.publication-meta > span + span::before { content: "·"; margin-right: 14px; }
.trending-section { margin-block: var(--space-6); }
.trending-list { counter-reset: trending; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.trending-list li { counter-increment: trending; display: grid; grid-template-columns: auto 1fr; gap: 14px; min-width: 0; padding: 24px; border-inline-end: 1px solid var(--line); }
.trending-list li::before { content: counter(trending, decimal-leading-zero); color: var(--red); font-size: 12px; font-weight: 800; }
.trending-list h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.author-profile { display: grid; grid-template-columns: auto minmax(0, 740px); align-items: start; gap: 28px; margin: 48px 0; padding-bottom: 38px; border-bottom: 2px solid var(--ink); }
.author-profile .avatar { width: 112px; height: 112px; }
.author-profile h1 { margin-bottom: 8px; }
.author-role { color: var(--red); font-size: 13px; font-weight: 700; }
.author-profile-link { max-width: 160px; }
.archive-header { min-height: 180px; border-bottom: 2px solid var(--ink); }
.archive-header h1 { font-size: clamp(34px, 5vw, 58px); }
.archive-grid { margin-top: 34px; }
.wire-item.is-new { animation: aferomat-new-item .5s var(--ease-out); }
@keyframes aferomat-new-item { from { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--red) 8%, var(--paper)); } }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .35s; }

@media (max-width: 900px) {
 .search-trigger kbd { display: none; }
 .trending-list { grid-template-columns: 1fr 1fr; }
 .trending-list li:nth-child(2) { border-inline-end: 0; }
 .trending-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
 .trending-list { grid-template-columns: 1fr; }
 .trending-list li { border-inline-end: 0; border-bottom: 1px solid var(--line); }
 .trending-list li:last-child { border-bottom: 0; }
 .author-profile { grid-template-columns: 72px 1fr; gap: 18px; }
 .author-profile .avatar { width: 72px; height: 72px; }
 .publication-meta { flex-direction: column; gap: 1px; }
 .publication-meta > span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
 ::view-transition-group(*), .wire-item.is-new { animation: none !important; }
}

@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) .latest-button .status-dot { background: var(--color-on-action); }
}

@media print {
 .search-dialog, .theme-toggle, .search-trigger { display: none !important; }
}

/* Navigation and reading remain usable without scripting. */
html:not(.js) .navigation { display: block; }
html:not(.js) .menu-toggle, html:not(.js) .theme-toggle { display: none; }
.navigation .menu li:focus-within > .sub-menu { display: block; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; color: var(--ink); }
.article-content, .article-header h1, .news-card :is(h2,h3), .hero-copy h2 { overflow-wrap: anywhere; }
.article-content a { text-decoration: underline; text-underline-offset: .18em; }
.article-content pre { max-width: 100%; overflow-x: auto; }
.article-content .wp-block-table { overflow-x: auto; }
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; background: transparent; }
.pagination a.page-numbers, .pagination span.page-numbers { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.menu-toggle, .share-button { color: var(--ink); }
.wire-item:hover { background: var(--soft); }
@media(max-width:780px) { .search-trigger { display: inline-grid; place-items: center; min-width: 36px; min-height: 44px; } .search-trigger span:first-child { display: inline; font-size: 28px; } .header-actions { gap: 4px; } .brand-logo { width: clamp(150px, 48vw, 210px); height: auto; } }
@media print { .site-header, .topline, .breaking, .site-footer, .search-section, .share-button, .comments-area, .category-section { display: none !important; } body { color: #000; background: #fff; } .container, .article-body { width: 100%; max-width: none; } .article-content a { color: #000; } }

.article-lead { color: var(--muted); }
:root[data-theme="dark"] .article-content a { color: #ff8e98; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) .article-content a { color: #ff8e98; } }
/* Above-the-fold content paints immediately instead of waiting for entrance effects. */
.masthead, .navigation, .breaking, .homepage > .section-heading, .archive-main > .section-heading,
.hero-story, .hero-image img, .hero-copy > .eyebrow, .hero-copy > h2, .hero-copy > p, .hero-copy > .meta,
.wire-heading, .article-header, .article-cover { animation: none; }

.hero-copy .eyebrow { background: #b82132; color: #fff; }
:root[data-theme="dark"] :focus-visible { outline-color: #8bb8ff; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) :focus-visible { outline-color: #8bb8ff; } }
@media(max-width:360px) {
 .brand-logo, .site-header.is-compact .brand-logo { width: 130px; height: auto; }
 .masthead { gap: 6px; }
 .header-actions { gap: 2px; }
 .search-trigger { min-width: 32px; }
 .theme-toggle { min-width: 36px; width: 36px; }
 .menu-toggle { width: 38px; padding: 7px; }
}

/* Clear account actions in navigation and the comment sign-in prompt. */
.navigation { flex-wrap: wrap; }
.navigation > .menu { flex: 1 1 650px; }
.navigation-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.account-button--primary { background: var(--color-action); color: var(--color-on-action); border-color: var(--color-action); }
.account-button:hover { color: var(--ink); border-color: var(--ink); background: var(--soft); }
.account-button--primary:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); color: var(--color-on-action); }
.comment-login { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
.comment-login > p { margin: 0 0 16px; line-height: 1.6; }
@media(max-width:780px) { .navigation-tools { margin: 8px 0 0; padding: 12px 0; border-top: 1px solid var(--line); } }
@media(max-width:480px) { .comment-login { padding: 18px; } }
@media(max-width:780px) {
 .breadcrumbs { min-width: 0; }
 .breadcrumbs ol { flex-wrap: wrap; max-width: 100%; }
 .breadcrumbs li:last-child { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; }
 .breadcrumbs li:last-child span { min-width: 0; }
}
@media(max-width:360px) { .brand-wrap { min-width: 0; } .site-header.is-compact .brand-logo { max-width: 130px; } }

/* Compact navigation shares its horizontal rules with the account buttons. */
.site-header.is-compact .navigation .account-button { border-top: 0; border-bottom: 0; border-radius: 0; }
.account-main { padding-block: 56px; min-height: 55vh; }
.account-panel { max-width: 520px; margin-inline: auto; padding: clamp(22px,4vw,36px); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.account-panel h1 { font-size: clamp(28px,4vw,38px); }
.account-panel > p { line-height: 1.7; }
.account-panel #loginform label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.account-panel #loginform input[type=text], .account-panel #loginform input[type=password] { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.account-panel .login-remember label { display: flex; gap: 8px; align-items: center; }
.account-panel #wp-submit { min-height: 44px; padding: 12px 22px; border: 0; border-radius: var(--radius-sm); background: var(--color-action); color: var(--color-on-action); font-weight: 700; }
.account-panel #wp-submit:hover { background: var(--color-action-hover); }
.account-help a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Small featured previews keep these sections focused on headlines. */
.wire-item { display: flex; align-items: flex-start; gap: 12px; }
.wire-copy { flex: 1; min-width: 0; }
.wire-thumbnail, .trending-thumbnail { display: block; flex: 0 0 auto; overflow: hidden; border-radius: 3px; background: var(--soft); }
.wire-thumbnail { width: 64px; height: 64px; margin-top: 3px; }
.wire-thumbnail img, .trending-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trending-copy { min-width: 0; }
.trending-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.trending-meta .eyebrow { margin-bottom: 0; }
.trending-thumbnail { width: 56px; height: 42px; }
@media (max-width: 600px) { .wire-list { grid-template-columns: 1fr; gap: 0; } }

.lead-stories { display: flex; flex-direction: column; }
.lead-stories > .hero-story, .lead-stories > .secondary-grid { flex-shrink: 0; }
.lead-stories > .hero-story--secondary { margin-top: 26px; min-height: 360px; flex: 1; }
.hero-story--secondary .hero-copy h2 { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 780px) { .lead-stories > .hero-story--secondary { flex: none; min-height: 340px; } }
@media (max-width: 480px) { .hero-story--secondary .hero-copy h2 { font-size: 26px; } }
