/*
Theme Name: Arcade Monthly
Theme URI: https://arcademonthly.com/
Author: Arcade Monthly
Description: Custom magazine theme for Arcade Monthly: gaming news, scored reviews, retro culture, hardware, esports and guides. Light by default with an optional dark mode, uniform 16:9 image slots, built-in SEO that yields to SEO plugins, and ad slots that stay hidden until switched on.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcade-monthly
Update URI: false
*/
:root{
  --bg:#FFFFFF;--soft:#F5F5F5;--surface:#FFFFFF;--ink:#111111;--muted:#5F6368;--line:#E5E5E5;
  --brand:#E4002B;--brand-ink:#FFFFFF;--mast:#FFFFFF;--good:#1F8A4C;--ok:#C77D0A;--low:#9A3B2E;
  --display:"Archivo","Arial Narrow",Arial,sans-serif;--body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --wrap:1240px;--r:6px;
}
:root[data-theme="dark"]{
  --bg:#121212;--soft:#1C1C1C;--surface:#1C1C1C;--ink:#F2F2F2;--muted:#A3A3A3;--line:#2E2E2E;
  --brand:#FF4D5E;--brand-ink:#FFFFFF;--mast:#121212;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--display);font-weight:700;line-height:1.14;margin:0;letter-spacing:-.015em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.masthead{background:var(--mast);color:#fff;position:sticky;top:0;z-index:50}
.masthead .wrap{display:flex;align-items:center;gap:26px;min-height:64px}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.logo:hover{color:#fff}
.logo svg{width:34px;height:34px;flex:none}
.logo em{font-style:normal;font-weight:500;color:#B9BEC7}
.mainnav{display:flex;gap:2px;height:64px}
.mainnav a{display:flex;align-items:center;padding:0 12px;font-family:var(--display);font-weight:600;font-size:15px;color:#D9DCE1;border-bottom:3px solid transparent;border-top:3px solid transparent}
.mainnav a:hover{color:#fff}
.mainnav a.on{color:#fff;border-bottom-color:var(--brand)}
.utils{display:flex;gap:6px;align-items:center;margin-left:auto}
.iconbtn{width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center}
.iconbtn:hover{background:rgba(255,255,255,.12)}
.iconbtn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:var(--brand-ink);border:0;border-radius:4px;padding:10px 18px;font-family:var(--display);font-weight:700;font-size:15px}
.btn:hover{filter:brightness(1.08);color:var(--brand-ink)}
.btn.ghost{background:transparent;border:1.5px solid var(--ink);color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:var(--bg)}
#burger{display:none}
.trend{background:var(--soft);border-bottom:1px solid var(--line);font-size:14.5px}
.trend .wrap{display:flex;gap:22px;align-items:center;min-height:42px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.trend .wrap::-webkit-scrollbar{display:none}
.trend b{font-family:var(--display);color:var(--brand)}
.trend a{color:var(--ink);font-weight:500}
.trend a:hover{color:var(--brand)}
.trend .trend-date{margin-left:auto;color:var(--muted)}
@media(max-width:1100px){
  #burger{display:inline-flex}
  .mainnav{position:fixed;inset:64px 0 auto 0;height:auto;background:var(--mast);flex-direction:column;padding:8px 24px 20px;display:none;max-height:calc(100vh - 64px);overflow:auto}
  .mainnav.open{display:flex}
  .mainnav a{padding:14px 0;font-size:17px;border:0;border-bottom:1px solid rgba(255,255,255,.1)}
  .mainnav a.on{color:#fff;box-shadow:inset 3px 0 0 var(--brand);padding-left:12px}
  .trend .trend-date{display:none}
}
@media(max-width:560px){.wrap{padding:0 16px}.utils .btn{display:none}.masthead .wrap{gap:8px}.logo{font-size:18px}.logo svg{width:30px;height:30px}.utils{gap:0}.mainnav{padding:8px 16px 20px}}

/* shared */
.view{display:none;padding:26px 0 64px}
.view.show{display:block}
.stub{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:0 0 20px;padding-bottom:10px;border-bottom:1px solid var(--line);position:relative}
.stub::before{content:"";position:absolute;left:0;bottom:-1px;width:56px;height:3px;background:var(--brand)}
.stub h2{font-size:24px}
.stub a.more{font-family:var(--display);font-weight:600;font-size:14.5px;color:var(--muted);white-space:nowrap}
.stub a.more:hover{color:var(--brand)}
.chip{display:inline-block;font-family:var(--display);font-size:13px;font-weight:700;color:var(--brand)}
.chip:hover{text-decoration:underline}
.meta{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:13.5px;color:var(--muted);margin-top:8px}
.meta>*+*{padding-left:10px;border-left:1px solid var(--line)}
.meta a{font-weight:600;color:var(--ink)}
.thumb{position:relative;display:block;overflow:hidden;background:#E9E9E9;aspect-ratio:16/9;border-radius:var(--r)}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
a.thumb:hover img{transform:scale(1.03)}
.thumb.failed,.tile.failed{background:linear-gradient(135deg,#DCDCDC,#C8C8C8)}
.thumb.failed::after,.tile.failed::before{content:attr(data-label);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#6B6B6B;font-family:var(--display);font-weight:700;font-size:17px}
.score{position:absolute;left:10px;bottom:10px;min-width:42px;height:42px;padding:0 6px;border-radius:5px;background:var(--good);color:#fff;font-family:var(--display);font-weight:800;font-size:19px;display:flex;align-items:center;justify-content:center}
.score.t2,.scores b.t2,.verdict .big.t2{background:var(--ok)}
.score.t3,.scores b.t3,.verdict .big.t3{background:var(--low)}
.card h3{font-size:19px;margin-top:6px}
.card p{margin:6px 0 0;color:var(--muted);font-size:15.5px}
.card .card-b{padding-top:12px}
.grid5{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.grid5 .card h3{font-size:16px}
@media(max-width:1000px){.grid5{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:230px;overflow-x:auto;padding-bottom:8px}}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 24px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 24px}
.row-card{display:grid;grid-template-columns:132px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.row-card:first-child{padding-top:0}
.row-card:last-child{border-bottom:0}
.row-card h3{font-size:17px;margin-top:4px}
.row-card .thumb{aspect-ratio:4/3}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start}
.block{margin-top:52px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.side>*+*{margin-top:24px}
.side h3{font-size:18px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.center{text-align:center;margin-top:28px}
.avatar{border-radius:50%;overflow:hidden;flex:none;background:var(--soft);display:block}
.avatar svg{display:block;width:100%;height:100%}
.ad-slot{display:none;align-items:center;justify-content:center;border:1px dashed var(--line);color:var(--muted);font-size:13px;border-radius:var(--r);background:var(--soft)}
body.show-ads .ad-slot{display:flex}
.ad-lb{height:90px;max-width:728px;margin:32px auto 0}
.ad-mpu{height:250px}
@media(max-width:1000px){.layout{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.grid4,.grid3,.grid2{grid-template-columns:1fr}.row-card{grid-template-columns:108px 1fr}}

/* hero mosaic */
.mosaic{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:232px 232px;gap:8px}
.tile{position:relative;overflow:hidden;border-radius:var(--r);background:#E9E9E9;display:flex;align-items:flex-end;color:#fff}
.tile:first-child{grid-row:1/3}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tile:hover img{transform:scale(1.03)}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(8,9,11,.92) 0%,rgba(8,9,11,.5) 42%,rgba(8,9,11,0) 72%)}
.tile-b{position:relative;z-index:2;padding:16px}
.tile-b .lab{font-family:var(--display);font-weight:700;font-size:12.5px;background:var(--brand);color:#fff;padding:3px 8px;border-radius:3px;display:inline-block}
.tile-b h2,.tile-b h1{font-size:17.5px;margin-top:8px;line-height:1.2}
.tile-b a{color:#fff}
.tile-b a::before{content:"";position:absolute;inset:0}
.tile:hover h1 a,.tile:hover h2 a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.tile:first-child .tile-b{padding:28px;max-width:640px}
.tile:first-child .tile-lead{font-size:clamp(26px,3vw,38px);font-weight:800}
.tile-b p{margin:10px 0 0;color:#D5D8DD;font-size:17px}
.tile-b .by{font-size:13.5px;color:#C3C7CE;margin-top:10px}
.tile .score{left:auto;right:12px;top:12px;bottom:auto;z-index:2}
@media(max-width:1000px){.mosaic{grid-template-columns:1fr 1fr;grid-template-rows:380px 200px 200px}.tile:first-child{grid-row:auto;grid-column:1/3}}
@media(max-width:620px){.mosaic{grid-template-columns:1fr;grid-template-rows:none}.tile{min-height:200px}.tile:first-child{grid-column:auto;min-height:380px}.tile:first-child .tile-b{padding:18px}}

/* bands */
.tint{background:var(--soft);padding:44px 0;margin-top:52px}
.tint .block{margin-top:0}
.video-band{background:var(--mast);color:#fff;padding:44px 0;margin-top:52px}
.video-band .stub{border-color:rgba(255,255,255,.16)}
.video{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px}
.play{position:absolute;left:20px;bottom:20px;width:60px;height:60px;border-radius:50%;border:0;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center}
.play svg{width:24px;height:24px;fill:currentColor;margin-left:3px}
.video h3{font-size:23px;margin-top:14px}
.vlist button{display:grid;grid-template-columns:120px 1fr;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.12);color:#fff;padding:12px 8px;align-items:center}
.vlist button:hover,.vlist button.on{background:rgba(255,255,255,.07)}
.vlist button.on{box-shadow:inset 3px 0 0 var(--brand)}
.vlist b{font-family:var(--display);font-size:15px;line-height:1.3;display:block}
.vlist span{font-size:13px;color:#A9AEB7}
@media(max-width:860px){.video{grid-template-columns:1fr}}
.deskcol .lead-t{font-size:20px;margin-top:6px}
.deskcol ul{list-style:none;margin:14px 0 0;padding:0}
.deskcol li{padding:12px 0;border-top:1px solid var(--line);font-family:var(--display);font-weight:600;font-size:16px;line-height:1.3}
.deskcol li span{display:block;font-family:var(--body);font-weight:400;font-size:13.5px;color:var(--muted);margin-top:3px}

/* widgets */
.newsbox{background:var(--soft);border:0}
.newsbox h3{border:0;padding:0;margin-bottom:6px}
.newsbox p{margin:0 0 14px;font-size:15.5px;color:var(--muted)}
.most{list-style:none;margin:0;padding:0;counter-reset:m}
.most li{display:grid;grid-template-columns:34px 1fr;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font-family:var(--display);font-weight:600;font-size:15.5px;line-height:1.3}
.most li:last-child{border:0;padding-bottom:0}
.most li::before{counter-increment:m;content:counter(m);font-weight:800;font-size:24px;color:var(--brand);line-height:1}
.scores,.cal{list-style:none;margin:0;padding:0}
.scores li,.cal li{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:15.5px}
.scores li:last-child,.cal li:last-child{border:0;padding-bottom:0}
.scores b{font-family:var(--display);background:var(--good);color:#fff;min-width:38px;text-align:center;border-radius:4px;padding:3px 0}
.scores a{font-weight:600;line-height:1.3}
.cal time{font-family:var(--display);font-weight:700;min-width:56px;color:var(--muted)}
.band{background:var(--mast);color:#fff;border-radius:var(--r);padding:40px;display:flex;gap:24px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:56px}
.band h2{font-size:28px}
.band p{margin:6px 0 0;color:#B9BEC7;max-width:54ch}

/* page heads / prose */
.phead{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:32px}
.phead h1{font-size:clamp(30px,4.2vw,46px);font-weight:800}
.phead p{color:var(--muted);max-width:68ch;margin:10px 0 0;font-size:19px}
.crumbs{font-size:13.5px;color:var(--muted);margin-bottom:12px}
.crumbs a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.crumbs a:hover{color:var(--brand)}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.filters a{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:6px 16px;font-family:var(--display);font-weight:600;font-size:14.5px}
.filters a.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.prose{max-width:70ch}
.prose h2{font-size:25px;margin:34px 0 10px}
.prose h3{font-size:19px;margin:24px 0 8px}
.prose p,.prose li{font-size:18.5px;line-height:1.65}
.prose a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.prose blockquote{margin:28px 0;padding:4px 0 4px 20px;border-left:4px solid var(--brand);font-family:var(--display);font-weight:600;font-size:23px;line-height:1.3}

/* article */
.art{display:grid;grid-template-columns:48px minmax(0,1fr) 320px;gap:36px;align-items:start}
.art-h h1{font-size:clamp(29px,4vw,46px);font-weight:800;margin:10px 0 14px}
.art-h .dek{font-size:21px;color:var(--muted);margin:0 0 20px;max-width:64ch}
.byline{display:flex;gap:12px;align-items:center}
.byline .avatar{width:48px;height:48px}
.byline .meta{margin:2px 0 0}
.art-hero{margin:22px 0 28px}
.art-hero figcaption{font-size:13px;color:var(--muted);margin-top:8px}
.share-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:8px}
.share-rail a,.share-rail button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center}
.share-rail a:hover,.share-rail button:hover{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.share-rail svg{width:17px;height:17px;fill:currentColor}
.verdict{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center;margin:34px 0;background:var(--soft);border:0;border-left:4px solid var(--brand)}
.verdict .big{width:92px;height:92px;border-radius:8px;background:var(--good);color:#fff;font-family:var(--display);font-weight:800;font-size:40px;display:flex;align-items:center;justify-content:center}
.verdict h3{font-size:21px}
.verdict ul{margin:8px 0 0;padding-left:18px;font-size:16px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0}
.tags a,.tags span{background:var(--soft);border-radius:4px;padding:4px 12px;font-size:14px;color:var(--muted)}
.authorbox{display:grid;grid-template-columns:84px 1fr;gap:18px;margin-top:30px}
.authorbox .avatar{width:84px;height:84px}
.authorbox p{margin:6px 0 10px;font-size:16px;color:var(--muted)}
.authorbox a.lnk,.team a.lnk{color:var(--brand);font-family:var(--display);font-weight:600;font-size:14.5px}
@media(max-width:1100px){.art{grid-template-columns:48px minmax(0,1fr)}.art>.side{grid-column:1/-1}}
@media(max-width:700px){
  .art{grid-template-columns:1fr}
  .share-rail{position:fixed;top:auto;bottom:0;left:0;right:0;flex-direction:row;justify-content:center;background:var(--surface);border-top:1px solid var(--line);padding:8px;z-index:40}
  body.on-article{padding-bottom:60px}
  .verdict{grid-template-columns:1fr;justify-items:start}
  .authorbox{grid-template-columns:60px 1fr}.authorbox .avatar{width:60px;height:60px}
}

/* team / author */
.team{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.team .panel{display:flex;flex-direction:column;align-items:flex-start}
.team .avatar{width:92px;height:92px;margin-bottom:14px}
.team h3{font-size:20px}
.team .role{color:var(--brand);font-family:var(--display);font-weight:600;font-size:14.5px;margin-top:2px}
.team p{font-size:15.5px;color:var(--muted);margin:8px 0 12px}
.auth-h{display:grid;grid-template-columns:150px 1fr;gap:32px;align-items:start}
.auth-h .avatar{width:150px;height:150px}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 0;max-width:70ch}
.facts div{border-top:2px solid var(--ink);padding-top:8px;font-size:14.5px;color:var(--muted)}
.facts b{display:block;color:var(--ink);font-family:var(--display);font-size:16.5px}
@media(max-width:900px){.team{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.team{grid-template-columns:1fr}.auth-h{grid-template-columns:1fr}.auth-h .avatar{width:110px;height:110px}.facts{grid-template-columns:1fr}}

/* forms */
.form label{display:block;font-weight:600;font-size:15px;margin:14px 0 5px}
.form label:first-child{margin-top:0}
.form input,.form select,.form textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink);font:inherit}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--ink);outline:0}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:8px 0 30px;border:1px solid var(--line);border-radius:var(--r)}
.stats div{padding:22px;border-right:1px solid var(--line)}
.stats div:last-child{border-right:0}
.stats b{font-family:var(--display);font-weight:800;font-size:34px;display:block}
.stats span{font-size:15px;color:var(--muted)}
@media(max-width:760px){.stats{grid-template-columns:repeat(2,1fr)}.stats div:nth-child(2){border-right:0}.stats div:nth-child(-n+2){border-bottom:1px solid var(--line)}}

/* footer */
.site-foot{background:var(--mast);color:#A9AEB7;margin-top:20px}
.fgrid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:36px;padding:52px 0 36px}
.site-foot h4{color:#fff;font-size:15.5px;margin-bottom:12px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin:7px 0;font-size:15.5px}
.site-foot a:hover{color:#fff}
.socials{display:flex;gap:10px;margin-top:16px}
.socials a{width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.socials a:hover{background:#fff;color:#14161A;border-color:#fff}
.socials svg{width:16px;height:16px;fill:currentColor}
.fbar{border-top:1px solid rgba(255,255,255,.12);padding:18px 0;font-size:13.5px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fbar button{background:transparent;border:1px dashed rgba(255,255,255,.3);color:#A9AEB7;border-radius:4px;padding:3px 10px;font-size:12.5px}
@media(max-width:860px){.fgrid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.fgrid{grid-template-columns:1fr}}

/* overlays */
#search{position:fixed;inset:0;background:rgba(7,11,20,.97);z-index:80;display:none;padding:12vh 20px 20px;overflow:auto}
#search.open{display:block}
#search .inner{max-width:720px;margin:0 auto}
#search input{width:100%;font:700 26px var(--display);padding:14px 4px;border:0;border-bottom:3px solid var(--brand);background:transparent;color:#fff;outline:0}
#search input::placeholder{color:#7C828C}
#search .res a{display:block;color:#fff;padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.14);font-family:var(--display);font-weight:600}
#search .res a:hover{color:var(--brand)}
#search .res small{display:block;color:#A9AEB7;font-family:var(--body);font-weight:400}
#search .x{position:absolute;top:14px;right:18px}
#totop{position:fixed;right:18px;bottom:18px;z-index:45;width:46px;height:46px;border-radius:50%;border:0;background:var(--ink);color:var(--bg);display:none;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25)}
#totop.show{display:flex}
#totop svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
body.on-article #totop{bottom:76px}
#toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:4px;font-weight:600;font-size:15px;z-index:90;display:none;max-width:90vw;text-align:center}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* light chrome: no dark sections unless the reader switches to dark mode */
.masthead{color:var(--ink);border-bottom:1px solid var(--line)}
.logo,.logo:hover{color:var(--ink)}
.logo em{color:var(--muted)}
.mainnav{background:var(--mast)}
.mainnav a{color:var(--ink)}
.mainnav a:hover{color:var(--brand)}
.mainnav a.on{color:var(--brand)}
.iconbtn{color:var(--ink)}
.iconbtn:hover{background:var(--soft)}
@media(max-width:1100px){.mainnav{border-bottom:1px solid var(--line)}.mainnav a{border-bottom:1px solid var(--line)}.mainnav a.on{color:var(--brand)}}
.video-band{background:var(--soft);color:var(--ink)}
.video-band .stub{border-color:var(--line)}
.vlist button{color:var(--ink);border-bottom-color:var(--line)}
.vlist button:hover,.vlist button.on{background:var(--bg)}
.vlist span{color:var(--muted)}
.vlist b{color:var(--ink)}
.band{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.band p{color:var(--muted)}
.tile.failed .tile-b a,.tile.failed .tile-b p,.tile.failed .by{color:#111}
.tile.failed::after{display:none}
.site-foot{background:var(--soft);color:var(--muted);border-top:1px solid var(--line)}
.site-foot h4{color:var(--ink)}
.site-foot a:hover{color:var(--brand)}
.socials a{border-color:var(--line);color:var(--ink)}
.socials a:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.fbar{border-top-color:var(--line)}
.fbar button{border-color:var(--line);color:var(--muted)}
#search{background:var(--bg)}
#search input{color:var(--ink)}
#search .res a{color:var(--ink);border-bottom-color:var(--line)}
#search .res small{color:var(--muted)}
#search .x{color:var(--ink)}

/* latest river */
.wide-card{grid-template-columns:240px 1fr;gap:20px;padding:18px 0}
.wide-card h3{font-size:20px}
.wide-card p{margin:6px 0 0;color:var(--muted);font-size:15.5px}
.wide-card .thumb{aspect-ratio:16/10}
/* phone layout: compact story rows, swipe rows, larger tap targets */
@media(max-width:620px){
  body{font-size:16px}
  .view{padding:16px 0 48px}
  .block{margin-top:38px}
  .tint,.video-band{padding:32px 0;margin-top:38px}
  .stub h2{font-size:21px}
  .mosaic{gap:6px}
  .tile{min-height:170px}
  .tile:first-child{min-height:340px}
  .tile:first-child .tile-lead{font-size:25px}
  .tile-b p{font-size:15.5px}
  .tile-b h2{font-size:16.5px}
  .trend a,.trend b{padding:10px 0}
  .wide-card,.grid3>.card:not(:first-child),.grid2>.card:not(:first-child){display:grid;grid-template-columns:116px 1fr;gap:12px;align-items:start}
  .wide-card{padding:14px 0}
  .wide-card p,.grid3>.card:not(:first-child) p,.grid2>.card:not(:first-child) p{display:none}
  .wide-card h3,.grid3>.card:not(:first-child) h3,.grid2>.card:not(:first-child) h3,.row-card h3{font-size:16.5px;margin-top:2px}
  .wide-card .thumb,.grid3>.card:not(:first-child) .thumb,.grid2>.card:not(:first-child) .thumb{aspect-ratio:4/3}
  .grid3>.card:not(:first-child) .card-b,.grid2>.card:not(:first-child) .card-b{padding-top:0}
  .grid3,.grid2{gap:18px}
  .grid3.block,.grid2.block{gap:38px}
  .wide-card .score,.card:not(:first-child) .score,.row-card .score{min-width:30px;height:30px;font-size:14px;left:6px;bottom:6px}
  .grid5 .card .score,.grid4 .card .score{min-width:36px;height:36px;font-size:16px}
  .meta{font-size:13px}
  .wide-card .meta span:last-child,.card:not(:first-child) .meta span:last-child,.row-card .meta span:last-child{display:none}
  .grid4,.grid5{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:72%;overflow-x:auto;gap:14px;padding-bottom:10px;scroll-snap-type:x mandatory;margin-right:-16px;padding-right:16px;scrollbar-width:none}
  .grid4::-webkit-scrollbar,.grid5::-webkit-scrollbar{display:none}
  .grid4>.card,.grid5>.card{scroll-snap-align:start}
  .grid4 .card p{display:none}
  .filters{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .filters a{white-space:nowrap;padding:9px 16px}
  .btn{padding:13px 20px}
  .center .btn{width:100%}
  .phead{padding-bottom:18px;margin-bottom:22px}
  .phead p,.art-h .dek{font-size:17px}
  .prose p,.prose li{font-size:17.5px}
  .prose blockquote{font-size:20px}
  .band{padding:26px 20px}
  .band h2{font-size:23px}
  .band .btn{width:100%}
  .panel{padding:16px}
  .video h3{font-size:19px}
  .vlist button{grid-template-columns:96px 1fr}
  footer li{margin:0}
  footer li a{display:block;padding:9px 0}
  .fgrid{gap:26px;padding:36px 0 26px}
  .socials a{width:44px;height:44px}
  .iconbtn{width:44px;height:44px}
  .form input,.form select,.form textarea{font-size:16px}
  #search input{font-size:21px}
}

/* uniform 16:9 image boxes everywhere: one 1200x675 featured image fits every slot uncropped */
.thumb{aspect-ratio:16/9!important}
.thumb img,.tile img{object-position:center}
.mosaic{grid-template-columns:repeat(4,1fr);grid-template-rows:none;gap:8px}
.tile{aspect-ratio:16/9;min-height:0!important}
.tile:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.row-card{grid-template-columns:150px 1fr}
@media(max-width:1000px){
  .mosaic{grid-template-columns:1fr 1fr}
  .tile:first-child{grid-column:1/3;grid-row:auto;aspect-ratio:16/9}
}
@media(max-width:620px){
  .mosaic{grid-template-columns:1fr}
  .tile:first-child{grid-column:auto}
  .tile:first-child .tile-b{padding:14px}
  .tile:first-child .tile-lead{font-size:20px}
  .tile-b p,.tile-b .by{display:none}
  .tile-b h2{font-size:16px}
  .row-card,.wide-card,.grid3>.card:not(:first-child),.grid2>.card:not(:first-child){grid-template-columns:136px 1fr}
}

/* ---------- WordPress additions ---------- */
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.admin-bar .masthead{top:32px}
@media(max-width:782px){.admin-bar .masthead{top:46px}}
@media(max-width:600px){.admin-bar .masthead{top:0}}
.logo img,.custom-logo-link img{max-height:38px;width:auto}
.custom-logo-link{display:flex;align-items:center}
.tile:first-child .tile-lead{font-weight:800}
.filters a{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:6px 16px;font-family:var(--display);font-weight:600;font-size:14.5px;white-space:nowrap}
.by-name{font-weight:700}
.by-role{color:var(--muted);font-size:14.5px}
.authorbox h3{font-size:19px}
.authorbox .role{color:var(--brand);font-family:var(--display);font-weight:600;font-size:14.5px}
.auth-role{color:var(--brand);font-family:var(--display);font-weight:700;font-size:17px;margin:10px 0 0}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar-initials{display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:800;color:var(--muted);font-size:1.1em}
.foot-about{font-size:15.5px;max-width:38ch;margin:14px 0 0}
.foot-news{font-size:15px;margin:0 0 14px}
.site-foot .logo{display:inline-flex}
.form-send{margin:16px 0 0}
.news-form{max-width:620px}
.news-form .prose{margin-top:22px}
.contact-side .prose h2{font-size:19px;margin:0 0 6px}
.contact-side .prose h2:not(:first-child){margin-top:22px}
.contact-side .prose p{font-size:16px;color:var(--muted);margin:0}
.am-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.notice{padding:12px 16px;border-radius:4px;font-weight:600;margin:0 0 16px}
.notice.ok{background:#E7F5EC;color:#14532D}
.notice.err{background:#FDECEC;color:#7F1D1D}
.searchform{display:flex;gap:8px;max-width:520px;margin-top:16px}
.searchform input{flex:1}
.empty h2{font-size:22px}
.empty p{color:var(--muted)}
.ad-live{display:flex;justify-content:center;overflow:hidden}
.ad-live.ad-lb{margin:32px auto 0;height:auto}
.ad-live.ad-mpu{height:auto}
.popular{margin-top:36px}
a.btn.ghost{text-decoration:none}
.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:36px}
.pager .page-numbers{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:4px;font-family:var(--display);font-weight:600}
.pager .page-numbers.current{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.side .widget ul{list-style:none;margin:0;padding:0}
.side .widget li{padding:9px 0;border-bottom:1px solid var(--line);font-size:15.5px}
.side .widget li:last-child{border:0}
.side .widget select,.side .widget input[type=search],.side .widget input[type=text]{width:100%;padding:10px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink);font:inherit}
.prose img{height:auto;border-radius:var(--r)}
.prose figure{margin:28px 0}
.prose figcaption,.wp-caption-text{font-size:13.5px;color:var(--muted);margin-top:8px}
.prose table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;font-size:16px}
.prose th,.prose td{border:1px solid var(--line);padding:9px 12px;text-align:left}
.prose pre{overflow-x:auto;background:var(--soft);padding:16px;border-radius:var(--r);font-size:15px}
.prose iframe,.prose video,.prose embed{max-width:100%}
.prose .stats{max-width:none}
.prose .stats b{color:var(--ink)}
.prose .btn{color:var(--brand-ink);text-decoration:none}
.wp-caption{max-width:100%}
.alignleft{float:left;margin:6px 24px 16px 0}
.alignright{float:right;margin:6px 0 16px 24px}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignwide,.alignfull{max-width:100%}
@media(max-width:620px){.alignleft,.alignright{float:none;margin:16px 0}}
.gallery-caption,.bypostauthor{display:block}
.jobs{list-style:none;margin:20px 0;padding:0}
.jobs li{border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;margin-bottom:14px}
.jobs h3{margin:0 0 4px}
.jobs .where{color:var(--brand);font-family:var(--display);font-weight:600;font-size:14.5px}
.jobs p{margin:8px 0 0;font-size:16.5px}
.comments{max-width:70ch}
.comment-list,.comment-list .children{list-style:none;margin:0;padding:0}
.comment-list .children{padding-left:22px;border-left:2px solid var(--line)}
.comment-body{padding:16px 0;border-bottom:1px solid var(--line)}
.comment-meta{font-size:14px;color:var(--muted);background:none;border:0;margin:0 0 6px}
.comment-meta .fn{font-family:var(--display);font-weight:700;color:var(--ink);font-style:normal}
.comment-content p{margin:6px 0}
.comment-reply-link{font-family:var(--display);font-weight:600;font-size:14px;color:var(--brand)}
.comment-reply-title{font-size:21px;margin:28px 0 8px}
.comment-form p{margin:0 0 6px}
.comment-form .form-submit{margin-top:14px}
.comment-form-cookies-consent{display:flex;gap:8px;align-items:flex-start;font-size:14.5px;margin-top:10px!important}
.comment-form-cookies-consent input{width:auto;margin-top:4px}
.comment-form-cookies-consent label{margin:0;font-weight:400}
.vstage-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
.phead .auth-role{color:var(--brand)}
@media(min-width:621px){.row-card.wide-card{grid-template-columns:240px 1fr}}

/* v1.0.1: stories have no sidebar; the reading column is centred and wider */
.art{grid-template-columns:48px minmax(0,860px) 48px;justify-content:center}
.art .prose,.art .comments{max-width:none}
@media(max-width:1100px){.art{grid-template-columns:48px minmax(0,860px)}}
@media(max-width:700px){.art{grid-template-columns:minmax(0,1fr)}}

/* v1.0.2: logo mark (since 1.0.3 an arcade cabinet) with the full site name in one weight */
.logo em{font-weight:inherit;color:inherit}

/* v1.0.4: header matches the mockup regardless of menu settings */
.mainnav a{white-space:nowrap}
.trend a,.trend b,.trend .trend-date{flex:none}
.trend a{max-width:260px;overflow:hidden;text-overflow:ellipsis}
@media(min-width:1101px) and (max-width:1280px){.mainnav a{padding:0 9px;font-size:14.5px}.masthead .wrap{gap:18px}}
