:root{
  --ink:#111;
  --muted:#686868;
  --paper:#fff;
  --soft:#f6f6f6;
  --yellow:#ffd400;
  --line:#e7e7e7;
  --max:1240px;
}

*{box-sizing:border-box}
html{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper);
  scroll-behavior:smooth;
}
body{margin:0;line-height:1.55;background:var(--paper)}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}

.shell{
  width:min(calc(100% - 32px),var(--max));
  margin-inline:auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:#111;
  color:#fff;
  border-bottom:1px solid #242424;
}

.header-row{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  font-weight:900;
  letter-spacing:.04em;
  font-size:1.2rem;
}

.brand em{
  font-family:Georgia,serif;
  font-weight:800;
  font-style:italic;
  color:var(--yellow);
  letter-spacing:-.02em;
}

.header-actions{
  display:flex;
  gap:8px;
}

.icon-button,
.menu-button{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid #333;
  background:#181818;
  color:#fff;
  font-size:1.2rem;
}

.menu-button{
  background:var(--yellow);
  color:#111;
  border-color:var(--yellow);
}

.category-nav{
  display:flex;
  gap:22px;
  overflow-x:auto;
  padding-block:0 14px;
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  scrollbar-width:none;
}

.category-nav::-webkit-scrollbar{display:none}
.category-nav a{white-space:nowrap}
.category-nav a:hover{color:var(--yellow)}

/* Shared headings */
.eyebrow,
.hero-kicker,
.kicker,
.article-kicker{
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.hero-kicker,
.article-kicker,
.eyebrow{
  color:#705f00;
}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.section-heading h1,
.section-heading h2{
  margin:.1rem 0;
  line-height:1.05;
  letter-spacing:-.025em;
}

.section-heading h1{font-size:clamp(2rem,6vw,3.4rem)}
.section-heading h2{font-size:1.5rem}

.section-heading p{
  margin:.45rem 0 0;
  max-width:760px;
  color:var(--muted);
}

/* Hero */
.hero{
  padding:38px 0 34px;
  border-bottom:1px solid var(--line);
}

.hero h1{
  font-size:clamp(2.15rem,8vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
  margin:.45rem 0 1rem;
  max-width:980px;
}

.hero p{
  font-size:1.1rem;
  color:#404040;
  max-width:760px;
}

.placeholder-hero{
  background:linear-gradient(180deg,#fff,#fbfbfb);
}

.hero-media{
  margin-top:24px;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:14px;
  background:#ececec;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.meta{
  font-size:.78rem;
  color:var(--muted);
}

.dev-notice{
  margin-top:22px;
  padding:16px;
  border:1px solid #ead777;
  background:#fff9d9;
  border-radius:12px;
}

.dev-notice p{margin:.25rem 0}

/* Generic sections */
.section{padding:34px 0}

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:4px solid #111;
  padding-top:12px;
  margin-bottom:18px;
}

.section-title h2{
  font-size:1.35rem;
  margin:0;
}

/* News cards */
.news-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
}

.news-card{
  border-bottom:1px solid var(--line);
  padding-bottom:22px;
  min-width:0;
}

.news-card a{display:block}

.thumb{
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
  margin-bottom:12px;
  overflow:hidden;
  background:#ededed;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.placeholder-thumb{
  background:linear-gradient(135deg,#ededed,#dcdcdc);
}

.news-card h3{
  font-size:1.25rem;
  line-height:1.2;
  margin:.35rem 0 .65rem;
  overflow-wrap:anywhere;
}

.news-card h3 a:hover{text-decoration:underline}

.news-card p{
  margin:.4rem 0;
  color:#444;
}

.kicker{
  font-size:.7rem;
  color:#6c5b00;
}

.empty,
.empty-state-public{
  color:var(--muted);
  background:var(--soft);
  padding:18px;
  border-radius:10px;
}

.empty-state-public{
  border:1px solid var(--line);
}

.empty-state-public strong{
  display:block;
  color:var(--ink);
  margin-bottom:4px;
}

.empty-state-public p{margin:0}

/* Popular + homepage viral */
.split{
  display:grid;
  gap:36px;
  padding:10px 0 36px;
}

.popular-list{
  list-style:none;
  counter-reset:popular;
  margin:0;
  padding:0;
}

.popular-list li{
  counter-increment:popular;
  display:grid;
  grid-template-columns:38px 1fr;
  gap:8px;
  border-bottom:1px solid var(--line);
  padding:14px 0;
  font-weight:800;
  line-height:1.25;
}

.popular-list li:before{
  content:counter(popular,decimal-leading-zero);
  font-size:.82rem;
  color:#8a7300;
}

.viral-list{display:grid}

.viral-list>a{
  display:grid;
  gap:4px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.viral-list span{
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
}

.viral-list b{
  font-size:.72rem;
  color:#7a6500;
  text-transform:uppercase;
}

/* Dedicated Viral page */
.viral-page{
  padding:42px 0 64px;
}

.viral-page .section-heading{
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
}

.viral-list{
  display:grid;
  gap:0;
}

.viral-item{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:18px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}

.viral-item:first-child{padding-top:0}

.viral-item-thumb{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:#ededed;
}

.viral-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.viral-item-body{
  min-width:0;
  align-self:center;
}

.viral-item-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  color:#766300;
}

.viral-item h2{
  margin:.35rem 0 .55rem;
  font-size:1.35rem;
  line-height:1.18;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
}

.viral-item h2 a:hover{text-decoration:underline}

.viral-item p{
  margin:.35rem 0 .8rem;
  color:#494949;
}

.viral-item-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:.78rem;
}

.viral-source-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 11px;
  border-radius:8px;
  background:#111;
  color:#fff;
  font-weight:800;
}

.viral-source-link:hover{opacity:.88}

/* Category / location listing pages */
.listing-page{
  padding:42px 0 64px;
}

.listing-header{
  border-bottom:1px solid var(--line);
  padding-bottom:20px;
  margin-bottom:26px;
}

.listing-header h1{
  margin:.25rem 0 .6rem;
  font-size:clamp(2rem,6vw,3.4rem);
  line-height:1.05;
  letter-spacing:-.035em;
}

.listing-header p{
  margin:0;
  max-width:760px;
  color:var(--muted);
}

.article-list{
  display:grid;
  gap:0;
}

.article-list-item{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:20px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}

.article-list-thumb{
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:#eee;
}

.article-list-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.article-list-body h2{
  margin:.25rem 0 .55rem;
  font-size:1.4rem;
  line-height:1.18;
  letter-spacing:-.02em;
}

.article-list-body p{
  margin:.4rem 0;
  color:#444;
}

/* Breaking News */
.breaking-section{
  padding:18px 0 22px;
}

.breaking-section .section-title{
  border-top:0;
  padding-top:0;
  margin-bottom:0;
}

.breaking-section .section-title h2{
  display:inline-flex;
  align-items:center;
  background:var(--yellow);
  color:var(--ink);
  padding:7px 11px;
  font-size:.76rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-radius:5px 5px 0 0;
}

.breaking-list{
  background:var(--ink);
  border-radius:0 8px 8px 8px;
  overflow:hidden;
}

.breaking-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:13px 15px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.breaking-item:last-child{border-bottom:0}

.breaking-item strong{
  font-size:.98rem;
  line-height:1.35;
  font-weight:800;
}

.breaking-item span{
  color:#cfcfcf;
  font-size:.76rem;
  line-height:1.2;
  white-space:nowrap;
}

.breaking-item:hover strong{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* Ads */
.ad-placeholder{
  display:grid;
  place-items:center;
  min-height:120px;
  margin:4px 0 42px;
  border:1px dashed #c5c5c5;
  background:#fafafa;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
  color:#888;
}

/* Article */
.article-shell{max-width:820px}

.article-page{
  padding:42px 0 64px;
}

.article-page h1{
  font-size:clamp(2rem,8vw,3.7rem);
  line-height:1.04;
  letter-spacing:-.04em;
  margin:.5rem 0 1rem;
}

.standfirst,
.article-lead{
  font-size:1.15rem;
  color:#3e3e3e;
}

.article-meta{
  border-block:1px solid var(--line);
  padding:14px 0;
  margin:20px 0 28px;
  color:var(--muted);
  font-size:.86rem;
}

.article-featured-image{
  margin:0 0 26px;
}

.article-featured-image img{
  width:100%;
  max-height:680px;
  object-fit:cover;
  border-radius:14px;
}

.article-featured-image figcaption{
  margin-top:8px;
  color:var(--muted);
  font-size:.78rem;
}

.article-body{
  font-family:Georgia,serif;
  font-size:1.17rem;
  line-height:1.78;
  overflow-wrap:anywhere;
}

.article-body p{margin:0 0 1.35em}
.article-body h2,
.article-body h3{
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.2;
  margin:1.7em 0 .7em;
}

.article-body img{
  max-width:100%;
  border-radius:10px;
}

.article-body a{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.source-box{
  margin-top:36px;
  padding:16px;
  background:var(--soft);
  border-radius:10px;
  overflow-wrap:anywhere;
}

/* Footer */
.site-footer{
  background:#111;
  color:#fff;
  padding:38px 0;
}

.footer-brand{font-size:1.1rem}

.site-footer p{
  color:#bdbdbd;
  max-width:520px;
}

.site-footer small{color:#888}

/* Utility pages */
.error-page,
.setup-page{
  padding:64px 0 96px;
}

.error-page h1{font-size:2.2rem}

.button{
  display:inline-block;
  border:0;
  background:#111;
  color:#fff;
  padding:12px 18px;
  border-radius:8px;
  font-weight:800;
}

.setup-card{
  max-width:560px;
  margin:auto;
  border:1px solid var(--line);
  padding:24px;
  border-radius:16px;
}

.setup-card h1{font-size:1.8rem}

.setup-card form{
  display:grid;
  gap:14px;
}

.setup-card label{
  display:grid;
  gap:6px;
  font-weight:700;
}

.setup-card input{
  width:100%;
  border:1px solid #ccc;
  border-radius:8px;
  padding:12px;
  font:inherit;
}

.alert{
  padding:12px;
  border-radius:8px;
  margin:12px 0;
}

.alert.error{background:#ffe7e7}
.alert.success{background:#e7faed}

/* Responsive */
@media(min-width:720px){
  .header-row{height:82px}
  .brand{font-size:1.45rem}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr 1fr}
  .hero{padding-block:58px}
}

@media(min-width:1024px){
  .news-grid{grid-template-columns:repeat(4,1fr)}
  .hero p{font-size:1.25rem}
  .article-body{font-size:1.22rem}
}

@media(max-width:760px){
  .section-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .viral-page,
  .listing-page,
  .article-page{
    padding-top:30px;
  }

  .viral-item{
    grid-template-columns:120px minmax(0,1fr);
    gap:14px;
  }

  .viral-item h2{
    font-size:1.08rem;
  }

  .viral-item p{
    font-size:.9rem;
  }

  .article-list-item{
    grid-template-columns:130px minmax(0,1fr);
    gap:14px;
  }

  .article-list-body h2{
    font-size:1.08rem;
  }
}

@media(max-width:640px){
  .breaking-section{
    padding:14px 0 18px;
  }

  .breaking-section .section-title h2{
    padding:7px 10px;
    font-size:.72rem;
  }

  .breaking-item{
    grid-template-columns:1fr;
    gap:5px;
    padding:12px 13px;
  }

  .breaking-item strong{
    font-size:.96rem;
  }

  .breaking-item span{
    font-size:.73rem;
    white-space:normal;
  }

  .viral-item{
    grid-template-columns:1fr;
  }

  .viral-item-thumb{
    width:100%;
  }

  .article-list-item{
    grid-template-columns:1fr;
  }

  .article-list-thumb{
    width:100%;
  }
}

/* Search */
.search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin-bottom:24px;
}

.search-form input{
  width:100%;
  min-height:48px;
  border:1px solid #cfcfcf;
  border-radius:10px;
  padding:11px 14px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}

.search-form input:focus{
  outline:2px solid rgba(255,212,0,.45);
  border-color:#a99100;
}

.search-form button{
  border:0;
  border-radius:10px;
  padding:0 20px;
  background:#111;
  color:#fff;
  font-weight:900;
}

.search-summary{
  margin:0 0 18px;
  color:var(--muted);
}

@media(max-width:520px){
  .search-form{
    grid-template-columns:1fr;
  }

  .search-form button{
    min-height:46px;
  }
}

/* Public ad slots */
.public-ad{
  width:100%;
  margin:26px 0;
  text-align:center;
  overflow:hidden;
}

.public-ad-label{
  margin:0 0 6px;
  font-size:.66rem;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#777;
}

.public-ad-body{
  width:100%;
  overflow:hidden;
}

.public-ad-body>a{
  display:block;
}

.public-ad-body img{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  margin:0 auto;
  border-radius:10px;
}

.public-ad-body iframe,
.public-ad-body ins{
  max-width:100%;
}

@media(max-width:719px){
  .ad-device-desktop{
    display:none!important;
  }
}

@media(min-width:720px){
  .ad-device-mobile{
    display:none!important;
  }
}

/* Final header navigation v5 */
.site-header{
  position:relative;
}

.category-nav{
  display:flex !important;
}

.menu-button{
  display:grid !important;
  position:relative;
  z-index:6;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

.mobile-menu{
  display:none;
}

.mobile-menu.is-open{
  display:flex !important;
}

/* iPhone: pertahankan tampilan yang sudah benar */
@media(max-width:599px){
  .mobile-menu{
    width:min(calc(100% - 32px),var(--max));
    margin-inline:auto;
    padding:0 0 16px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }

  .mobile-menu a{
    display:block;
    width:100%;
    padding:11px 0;
    border-top:1px solid #2b2b2b;
  }
}

/* MacBook/tablet: hamburger membuka dropdown, bukan baris menu kedua */
@media(min-width:600px){
  .mobile-menu{
    position:absolute;
    z-index:20;
    top:calc(100% + 8px);
    right:max(16px,calc((100vw - var(--max))/2));
    width:min(260px,calc(100vw - 32px));
    margin:0;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    background:#111;
    border:1px solid #2d2d2d;
    border-radius:14px;
    box-shadow:0 14px 32px rgba(0,0,0,.28);
  }

  .mobile-menu a{
    display:block;
    width:100%;
    padding:10px 12px;
    border-radius:9px;
    font-size:.82rem;
    font-weight:800;
    text-transform:uppercase;
  }

  .mobile-menu a:hover{
    background:#202020;
    color:var(--yellow);
  }
}
