/*
Theme Name: Harfiah Berita Terkini Premium
Description: Desain A untuk portal Harfiah dengan berita utama, kanal daerah, dan edisi seluler.
Version: 3.0.2
Author: Harfiah
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: harfiah-terkini
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--ink:#121523;--red:#af0d23;--soft:#686976;--line:#d9d9df;--wash:#faf4f3;--body:system-ui,-apple-system,"Segoe UI",sans-serif;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}
html{scroll-padding-top:1rem}
body{margin:0;font:1rem/1.5 var(--body);background:#fff;color:var(--ink);overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #247cb4;outline-offset:3px}
img,iframe,video{max-width:100%}
img{height:auto}
button,input,textarea{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.wrap{width:min(1184px,calc(100% - 3rem));margin-inline:auto}
.screen-reader-text,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:10px;left:10px;padding:.6rem;background:#fff;z-index:20}
.utility{display:flex;justify-content:space-between;gap:1rem;color:var(--soft);font-size:.82rem;border-bottom:1px solid var(--line);padding:.45rem 0}
.utility span{font-weight:750;color:var(--ink)}
.mast-inner{position:relative;display:flex;align-items:center;justify-content:center;padding:1.6rem 3rem 1.3rem}
.identity{text-align:center}
.identity p{margin:.25rem 0 0;line-height:1.3}
.wordmark,.custom-logo-link{display:inline-block;vertical-align:top}
.wordmark img,.custom-logo{display:block;width:clamp(244px,34vw,465px);height:auto;max-height:105px;object-fit:contain}
.icon-button,.ticker-controls button{border:0;background:transparent;color:var(--ink);width:44px;height:44px;display:grid;place-items:center}
.icon-button:hover,.ticker-controls button:hover{color:var(--red);background:var(--wash)}
.search-toggle,.menu-toggle{display:none;position:absolute}
.search-toggle{right:0}
.menu-toggle{left:0}
.has-news-js .search-toggle{display:grid}
.search-icon{display:block;position:relative;width:18px;height:18px;border:2px solid currentColor;border-radius:50%}
.search-icon:after{content:"";position:absolute;width:9px;height:2px;bottom:-3px;right:-7px;background:currentColor;transform:rotate(48deg)}
.menu-icon,.menu-icon:after,.menu-icon:before{display:block;width:22px;height:2px;background:currentColor}
.menu-icon{position:relative}
.menu-icon:after,.menu-icon:before{content:"";position:absolute;left:0;top:-6px}
.menu-icon:after{top:6px}
.search-panel{padding:0 0 1rem}
.searchform{max-width:620px;display:flex;margin-inline:auto;gap:.4rem}
.searchform label{flex:1;min-width:0}
.searchform input{width:100%;border:1px solid #a6a7ad;padding:.65rem .8rem}
.searchform button,.comment-form input[type=submit]{background:var(--red);color:white;border:0;padding:.65rem 1.3rem;font-weight:700}
.primary{border-block:1px solid var(--line)}
.nav-list{list-style:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0;margin:0;gap:.1rem 1.85rem}
.nav-list a{display:block}
.primary a{padding:.7rem .2rem;border-bottom:3px solid transparent;font-weight:750}
.primary a[aria-current],.primary .current-menu-item>a,.primary a:hover{border-color:var(--red)}
.secondary{border-bottom:1px solid var(--line)}
.secondary .nav-list{gap:.3rem .9rem}
.secondary a{font-size:.92rem;padding:.5rem 0}
.secondary li{display:flex;align-items:center}
.secondary li+li:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--red);margin-right:.9rem}
.front,.listing,.reading{padding-top:1.4rem}
.ticker{display:flex;align-items:stretch;background:var(--wash);margin:0 0 1rem;min-height:44px;border-bottom:1px solid #edd7d8}
.ticker>strong{background:var(--red);color:white;display:flex;align-items:center;padding:0 1rem;white-space:nowrap}
.ticker-items{min-width:0;flex:1;align-content:center;padding:.5rem 1rem}
.ticker-items a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:.95rem}
.ticker-controls{display:none;align-items:center}
.has-news-js .ticker-controls{display:flex}
.ticker-controls button{font-weight:bold;font-size:1.25rem;color:var(--red)}
h1,h2,h3{font-family:var(--serif);letter-spacing:-.032em;line-height:1.09;margin:0}
h1{font-size:clamp(2.2rem,4.8vw,4rem)}
h2{font-size:clamp(1.55rem,3.2vw,2.25rem)}
h3{font-size:clamp(1.23rem,2vw,1.7rem)}
.photo{display:block;overflow:hidden;background:#eee}
.photo img{width:100%;height:100%;display:block;object-fit:cover}
.lead .photo{aspect-ratio:2.65/1;margin:0 0 .85rem}
.lead h1{max-width:35ch;margin:.2rem 0 .4rem}
.lead .summary{max-width:82ch;margin:.25rem 0;color:#444653;font-size:1.08rem}
.stamp,.eyebrow,.sample-label{font-size:.82rem;font-weight:750;color:var(--red)}
.stamp{font-variant-numeric:tabular-nums}
.section{margin:2rem 0 0}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding:1.05rem 0}
.section-title h2,.section-title h1{border-left:5px solid var(--red);padding-left:.65rem}
.section-title>a{color:var(--red);white-space:nowrap;font-size:.9rem;font-weight:700}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}
.news-card{min-width:0;border-left:1px solid var(--line);padding-left:1.15rem}
.news-card:nth-child(3n+1){border-left:0;padding-left:0}
.news-card h3{margin:.35rem 0 .7rem}
.news-card .photo{aspect-ratio:2/1}
.rank,.related{padding-left:1.5rem}
.rank li,.related li{padding:.35rem 0}
.rank li::marker{font-weight:750;color:var(--red)}
.note,.byline,.article-photo figcaption,.foot p{color:var(--soft)}
.note{margin:0}
.foot{margin-top:3rem;border-top:3px solid var(--ink);padding:1.7rem 0 2.4rem;background:#f9f9fa}
.foot .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.foot strong{font:700 1.75rem/1 var(--serif);letter-spacing:-.045em}
.foot strong span{color:var(--red)}
.foot p{margin:.35rem 0 0;font-size:.88rem}
.foot a{font-size:.95rem}
.home-extra{margin-top:2rem}
.listing,.empty{min-height:40vh}
.listing h1,.reading h1,.empty h1{margin:0}
.listing .cards{row-gap:1.65rem}
.pagination,.nav-links,.page-links{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:1.5rem}
.page-numbers{border:1px solid var(--line);padding:.35rem .7rem}
.page-numbers.current{background:var(--ink);color:white}
.reading{max-width:860px}
.reading h1{margin:.4rem 0 .8rem}
.byline,.sample-label{font-size:.9rem}
.article-photo{margin:1.2rem 0}
.article-photo img{display:block;width:100%;height:auto}
.article-photo figcaption{font-size:.88rem;margin-top:.35rem}
.prose{max-width:72ch;margin:1.25rem auto;font-family:var(--serif);font-size:1.16rem;line-height:1.75}
.prose a,.byline a,.empty a,.related a,.tags a{text-decoration:underline;text-underline-offset:3px}
.prose p{margin:0 0 1.15rem}
.prose h2,.prose h3{margin:1.3rem 0 .6rem}
.prose figure{max-width:100%;margin-inline:0}
.prose table{display:block;overflow:auto;max-width:100%}
.prose pre{overflow:auto}
.prose blockquote{margin:1.3rem 0;padding-left:1rem;border-left:4px solid var(--red)}
.aligncenter{display:block;margin-inline:auto!important}
.alignleft{float:left;margin:0 1rem 1rem 0}
.alignright{float:right;margin:0 0 1rem 1rem}
.prose:after{content:"";display:block;clear:both}
.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font:normal .9rem var(--body)}
.comments{border-top:1px solid var(--line);margin-top:2rem;padding-top:1rem}
.comment-list,.comments ol{padding-left:1.2rem}
.comments input,.comments textarea{max-width:100%}
.comments textarea{width:100%}
.empty{padding-block:3rem}
@media(max-width:700px){
 .wrap{width:calc(100% - 1.6rem)}
 .utility{font-size:.76rem}
 .mast-inner{padding:.95rem 2.8rem}
 .identity img{width:min(53vw,295px)}
 .identity p{font-size:.78rem}
 .has-news-js .menu-toggle{display:grid}
 .primary .nav-list,.secondary .nav-list{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;gap:.9rem}
 .primary li,.secondary li{flex:none}
 .primary a{font-size:.88rem;padding:.64rem 0}
 .primary.expanded .nav-list{flex-wrap:wrap;gap:.2rem 1.1rem}
 .secondary .nav-list{gap:.55rem}
 .secondary li+li:before{margin-right:.55rem}
 .secondary a{font-size:.83rem}
 .ticker>strong{font-size:.8rem;padding:0 .55rem}
 .ticker-items{padding:.45rem .5rem}
 .ticker-items a{font-size:.85rem}
 .ticker-controls button{width:32px}
 .front,.listing,.reading{padding-top:.8rem}
 .lead .photo{aspect-ratio:1.58}
 .lead .summary{font-size:1rem}
 .cards{grid-template-columns:1fr;gap:0}
 .news-card,.news-card:nth-child(3n+1){border:0;border-bottom:1px solid var(--line);padding:.9rem 0;display:grid;grid-template-columns:1fr auto;gap:.12rem .65rem;align-content:start}
 .news-card .stamp,.news-card h3{grid-column:1}
 .news-card h3{margin:.1rem 0}
 .news-card .photo{grid-column:2;grid-row:1/3;width:clamp(84px,28vw,145px);aspect-ratio:1.5;align-self:center}
 .section{margin-top:1.4rem}
 .section-title{padding:.85rem 0 .4rem}
 .foot{margin-top:2rem}
}
@media(prefers-reduced-motion:no-preference){a,button{transition:color .12s,background-color .12s}}

/* Beranda edisi nasional */
.edition-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(265px,1fr);gap:clamp(1.25rem,3vw,2.8rem);align-items:start}
.edition-lead .lead .photo{aspect-ratio:1.95; border-radius:2px}
.edition-lead h1{font-size:clamp(2.2rem,4.4vw,3.9rem)}
.edition-grid>.section{margin:0;padding-left:1.3rem;border-left:1px solid var(--line)}
.edition-grid .section-title{padding:.18rem 0 .7rem;border:0}
.edition-grid .section-title h2{font-size:1.6rem}
.edition-grid .cards{display:block}
.edition-grid .news-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:.22rem .65rem;padding:.9rem 0;border:0;border-top:1px solid var(--line)}
.edition-grid .news-card .stamp,.edition-grid .news-card h3{grid-column:1}
.edition-grid .news-card h3{margin:0;font-size:clamp(1.08rem,1.65vw,1.4rem)}
.edition-grid .news-card .photo{grid-column:2;grid-row:1/3;align-self:center;width:clamp(76px,7.6vw,112px);aspect-ratio:1.22}
.article-trail{display:flex;flex-wrap:wrap;gap:.55rem;font-size:.88rem;font-weight:700;color:var(--red);margin:.4rem 0 .8rem}
.article-trail a+a:before{content:"/";color:var(--soft);margin-right:.55rem}
.prose{overflow-wrap:anywhere}
.prose .wp-block-table{overflow:auto}
@media(max-width:800px){
 .edition-grid{grid-template-columns:minmax(0,1fr);gap:1.4rem}
 .edition-grid>.section{border:0;padding-left:0}
 .edition-grid .news-card .photo{width:clamp(90px,26vw,144px);aspect-ratio:1.5}
 .edition-lead .lead .photo{aspect-ratio:1.68}
}
@media print{
 .utility,.primary,.secondary,.icon-button,.search-panel,.ticker,.comments,.related,.foot nav{display:none!important}
 .wrap{width:100%}.reading{max-width:none}.reading .prose{max-width:none;font-size:11pt}
}
.read-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:1rem 0;color:var(--soft);font-size:.9rem}
.read-tools button{min-height:40px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:3px;padding:.35rem .8rem}
.read-tools button:hover,.read-tools button[aria-pressed=true]{color:var(--red);border-color:var(--red)}
.large-reading .reading .prose{font-size:1.43rem;line-height:1.72}
@media print{.read-tools{display:none!important}}

/* Harfiah v3 · newsroom layout */
:root{--ink:#171d2b;--red:#b11529;--line:#dce0e6;--wash:#f6f7f9;--soft:#5e6875}
.mast{border-top:5px solid var(--red);box-shadow:0 2px 16px #1118270a}
.utility{font-variant-numeric:tabular-nums;text-transform:uppercase;letter-spacing:.045em}
.primary{border-top:2px solid var(--ink)}
.primary .nav-list{gap:.1rem 1.35rem}
.primary a{font-size:.92rem}
.edition-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;border-bottom:1px solid var(--line);padding:.35rem 0 1rem;margin-bottom:1rem}
.edition-heading p{margin:.1rem 0 0;font:1.2rem/1.35 var(--serif);color:#394150}
.edition-heading>span{font-size:.83rem;color:var(--soft);text-align:right}
.edition-eyebrow{font-size:.76rem;letter-spacing:.15em;font-weight:850;color:var(--red)}
.newsroom-hero{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,.9fr);gap:clamp(1.25rem,3vw,2.6rem);border-bottom:3px solid var(--ink);padding:1rem 0 1.8rem}
.hero-topline{display:flex;align-items:center;justify-content:space-between;gap:.6rem;border-bottom:2px solid var(--ink);padding-bottom:.6rem;margin-bottom:1rem}
.hero-topline h2,.hero-side>h2{font:800 .87rem/1.3 var(--body);text-transform:uppercase;letter-spacing:.1em}
.hero-topline>span{font-size:.78rem;color:var(--soft)}
.newsroom-hero .lead .photo{aspect-ratio:1.82;margin-bottom:.8rem}
.newsroom-hero .lead h1{font-size:clamp(2.1rem,4vw,3.65rem);line-height:1.07}
.newsroom-hero .lead .summary{font:1.05rem/1.55 var(--body);max-width:62ch}
.hero-side>h2{padding:.6rem 0;border-bottom:2px solid var(--ink)}
.hero-side .news-card{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:.35rem .7rem;padding:1rem 0;border-left:0;border-bottom:1px solid var(--line)}
.hero-side .news-card .stamp,.hero-side .news-card h3{grid-column:1}
.hero-side .news-card h3{font-size:1.22rem;line-height:1.16;margin:0}
.hero-side .news-card .photo{grid-column:2;grid-row:1/3;align-self:center;width:96px;aspect-ratio:1.3}
.hero-side .news-card:last-child{border-bottom:0}
.hero-placeholder{background:var(--wash);min-height:290px;padding:clamp(1.3rem,4vw,3rem);display:flex;flex-direction:column;justify-content:center;border-left:6px solid var(--red)}
.hero-placeholder h3{font-size:2rem;max-width:22ch}
.hero-placeholder p{color:var(--soft)}
.stamp{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .55rem;font-size:.75rem}
.stamp .card-channel{color:var(--red);text-transform:uppercase;letter-spacing:.055em}
.stamp time{color:var(--soft)}
.story-label{display:inline-block;background:var(--ink);color:#fff;font:800 .7rem/1.2 var(--body);letter-spacing:.05em;text-transform:uppercase;padding:.22rem .48rem}
.story-breaking{background:var(--red)}
.story-laporan{background:#264864}
.story-analisis{background:#525170}
.article-label{margin:.6rem 0 .8rem;font-size:.8rem}
.newsroom-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.83fr);gap:clamp(1.5rem,3vw,2.6rem);align-items:start}
.newsroom-columns--rail-only{grid-template-columns:minmax(0,1fr)}
.newsroom-sections{min-width:0}
.newsroom-sections .section{margin-top:2.2rem}
.newsroom-sections .section-title{border-top:3px solid var(--ink);padding:.75rem 0 1.15rem}
.newsroom-sections .section-title h2{border:0;padding:0;font-size:1.8rem}
.newsroom-sections .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem}
.newsroom-sections .news-card,.newsroom-sections .news-card:nth-child(3n+1){border:0;padding:0;display:flex;flex-direction:column}
.newsroom-sections .news-card .photo{order:-1;aspect-ratio:1.7;margin-bottom:.45rem}
.newsroom-sections .news-card h3{font-size:clamp(1.2rem,2vw,1.5rem);margin:.3rem 0 0}
.newsroom-wide .section{margin-top:2rem}
.newsroom-wide .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.1rem}
.newsroom-wide .news-card .photo{aspect-ratio:1.6}
.newsroom-wide .news-card h3{font-size:clamp(1.08rem,1.5vw,1.32rem)}
.latest-rail{margin-top:2.2rem;background:#f5f6f8;padding:0 1.1rem 1.1rem}
.latest-rail .section-title{border-top:3px solid var(--red);padding:.9rem 0}
.latest-rail .section-title h2{border:0;padding:0;font-size:1.6rem}
.latest-rail ol{margin:0;padding:0;list-style:none;counter-reset:newsrank}
.latest-rail li{position:relative;counter-increment:newsrank;padding:1rem 0 1rem 2.1rem;border-top:1px solid var(--line)}
.latest-rail li:before{content:counter(newsrank,decimal-leading-zero);position:absolute;left:0;top:1.1rem;font-weight:800;color:var(--red);font-size:.83rem}
.latest-rail li a{display:block;font:700 1.08rem/1.25 var(--serif);margin-top:.3rem}
.reading .byline{line-height:1.7;border-bottom:1px solid var(--line);padding-bottom:.8rem}
.reading .author-label{font-weight:700;color:var(--ink)}
.story-sources,.story-correction{margin:2rem 0;padding:1.2rem 1.4rem;border-left:4px solid var(--red);background:var(--wash)}
.story-sources h2,.story-correction h2{font-size:1.35rem;margin-bottom:.65rem}
.story-sources ul{margin:0;padding-left:1.2rem}
.story-sources li{margin:.35rem 0}
.story-sources a{text-decoration:underline;text-underline-offset:3px}
.story-correction p{white-space:pre-line;margin:.3rem 0 0}
@media(max-width:900px){
 .newsroom-hero{grid-template-columns:minmax(0,1fr)}
 .hero-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.2rem}
 .hero-side>h2{grid-column:1/-1}
 .newsroom-columns{grid-template-columns:minmax(0,1fr)}
 .latest-rail{margin-top:1rem}
 .latest-rail ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.5rem}
 .newsroom-wide .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .edition-heading{align-items:start;flex-direction:column;gap:.25rem}
 .edition-heading>span{text-align:left}
 .edition-heading p{font-size:1.05rem}
 .newsroom-hero{gap:.9rem;padding-top:.3rem}
 .newsroom-hero .lead .photo{aspect-ratio:auto}
 .newsroom-hero .lead .photo img{width:100%;height:auto;object-fit:contain}
 .newsroom-hero .lead h1{font-size:clamp(1.95rem,8vw,2.65rem)}
 .hero-side{display:block}
 .hero-side .news-card{grid-template-columns:minmax(0,1fr) 86px;padding:.9rem 0}
 .hero-side .news-card .photo{width:86px}
 .newsroom-sections .cards,.newsroom-wide .cards,.latest-rail ol{grid-template-columns:minmax(0,1fr)}
 .newsroom-sections .news-card,.newsroom-sections .news-card:nth-child(3n+1){display:grid;grid-template-columns:minmax(0,1fr) 106px;border-bottom:1px solid var(--line);padding:.85rem 0;gap:.2rem .7rem}
 .newsroom-sections .news-card .photo{grid-column:2;grid-row:1/3;width:106px;aspect-ratio:1.4;margin:0}
 .newsroom-wide .news-card .photo{aspect-ratio:1.4}
 .newsroom-sections .news-card .stamp,.newsroom-sections .news-card h3{grid-column:1}
 .newsroom-sections .news-card h3{font-size:1.2rem}
 .latest-rail{padding:0 .9rem .8rem}
 .reading .article-photo img{object-fit:contain}
}
@media print{.latest-rail,.hero-side{display:none!important}}
