/*
Theme Name: Ulasan Ekonomi
Theme URI: https://ulasanekonomi.id
Author: Ulasan Ekonomi
Description: Custom theme for Ulasan Ekonomi — an Indonesian-language economy portal covering Ekonomi, Ekonomi Dunia, and Berita Forex. Simple but elegant visual language: forest green, gold, and slate-blue on warm off-white, with clean Source Serif 4 headlines and generous whitespace — deliberately restrained compared to the more ornamented themes in this portfolio. No comments. Logo/favicon are built into the theme code directly, no Customizer setup required. Fully responsive for desktop and mobile.
Version: 1.0.0
Text Domain: ulasanekonomi
*/

/* =========================================================
   0. DESIGN TOKENS — simple, clean, restrained palette
   ========================================================= */
:root{
  --ink:        #1C1E1B;
  --ink-soft:   #3A3D37;
  --paper:      #FAF9F5;
  --card:       #FFFFFF;
  --line:       #E4E1D8;
  --slate:      #56594F;
  --slate-dim:  #8B8E82;

  --forest:       #1F5C4C;
  --forest-deep:  #163F35;
  --forest-tint:  #E6F0EC;
  --gold:         #B8862E;
  --gold-deep:    #8C6620;
  --gold-tint:    #F6EFDF;
  --slateblue:      #3D5468;
  --slateblue-deep: #2B3D4D;
  --slateblue-tint: #EAEEF1;

  --accent:      var(--forest);
  --accent-deep: var(--forest-deep);
  --accent-tint: var(--forest-tint);

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label:   "Archivo", sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(28,30,27,0.04), 0 10px 22px -16px rgba(28,30,27,0.16);
  --max-width: 1140px;
}

/* category accent overrides */
body.category-ekonomi, body.cat-accent-forest { --accent: var(--forest); --accent-deep: var(--forest-deep); --accent-tint: var(--forest-tint); }
body.category-ekonomi-dunia, body.cat-accent-gold { --accent: var(--gold-deep); --accent-deep: var(--gold-deep); --accent-tint: var(--gold-tint); }
body.category-berita-forex, body.cat-accent-slateblue { --accent: var(--slateblue); --accent-deep: var(--slateblue-deep); --accent-tint: var(--slateblue-tint); }

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p{ margin: 0 0 1em; }
button{ font-family: inherit; cursor: pointer; }
:focus-visible{ outline: 2px solid var(--forest); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container{ max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap: 16px; margin-bottom: 24px; padding-bottom:14px; border-bottom: 2px solid var(--ink); }
.section-head h2{ font-size: 24px; margin: 0; }
.section-head a{ font-family: var(--font-label); font-size: 12.5px; font-weight:600; color: var(--accent); }
.badge{
  display:inline-block; font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; color: #fff; background: var(--accent);
  padding: 4px 11px; border-radius: var(--radius-sm);
}
.badge.outline{ color: var(--accent); background: transparent; border: 1px solid var(--accent); }
.meta{ font-family: var(--font-label); font-size: 12px; color: var(--slate-dim); display:flex; gap:14px; flex-wrap: wrap; align-items:center; }
.meta span{ display:inline-flex; align-items:center; gap:5px; }

/* =========================================================
   2. HEADER + NAV — simple, no dropdown flourish, no glow
   ========================================================= */
.topbar{ background: var(--ink); color: rgba(255,255,255,.7); }
.topbar .container{ display:flex; align-items:center; justify-content:space-between; height: 34px; font-family: var(--font-label); font-size: 12px; }

.brand-bar{ padding: 22px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.brand-bar .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand-logo{ display:flex; align-items:center; gap: 12px; }
.brand-logo .mark{ width:44px; height:44px; flex-shrink:0; }
.brand-logo .wordmark{ font-family: var(--font-display); font-size: 24px; font-weight:600; color: var(--ink); }
.brand-logo .word-ekonomi{ color: var(--forest); }
.brand-tagline{ font-family: var(--font-label); font-size: 12px; color: var(--slate-dim); text-align:right; max-width:260px; }

.navbar{ background: var(--forest); position: sticky; top:0; z-index: 50; }
.navbar .container{ display:flex; align-items:center; height: 48px; }
.nav-home{ width:32px; height:32px; border-radius: var(--radius-sm); background: rgba(255,255,255,.14); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-right:10px; font-size:14px; }
.nav-home:hover{ background: var(--gold); color: var(--ink); }
.primary-menu{ display:flex; align-items:center; gap: 2px; flex:1; }
.primary-menu li a{ display:block; padding: 9px 16px; font-family: var(--font-label); font-size: 14px; font-weight:600; color: rgba(255,255,255,.85); border-radius: var(--radius-sm); }
.primary-menu li a:hover{ background: rgba(255,255,255,.1); color:#fff; }
.primary-menu li.current-menu-item > a{ background: var(--gold); color: var(--ink); }
.nav-tools{ display:flex; align-items:center; gap: 8px; }
.nav-tools button{ background: transparent; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.85); width: 32px; height: 32px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; }
.nav-tools button:hover{ border-color: var(--gold); color: var(--gold); }
.menu-toggle{ display:none; }
.search-panel{ display:none; background: var(--forest-deep); }
.search-panel.is-open{ display:block; }
.search-panel .container{ padding: 14px 24px; }
.search-panel form{ display:flex; gap:8px; }
.search-panel input[type="search"]{ flex:1; background: #fff; border:1px solid var(--line); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); }
.search-panel button{ background: var(--gold); border:none; color: var(--ink); font-weight:700; padding: 0 20px; border-radius: var(--radius-sm); }

/* =========================================================
   3. HOME — lead story + latest rail, then 3 category desks
   ========================================================= */
.home-lead{ padding: 32px 0 0; display:grid; grid-template-columns: 1fr 320px; gap: 30px; }
.lead-story{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); }
.lead-story .thumb img{ width:100%; height:360px; object-fit:cover; }
.lead-story .body{ padding: 24px; }
.lead-story h1{ font-size: 28px; margin: 12px 0 12px; }
.lead-story h1 a:hover{ color: var(--accent); }
.lead-story p.excerpt{ color: var(--slate); font-size:15.5px; }

.latest-rail{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.latest-rail .rail-title{ font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing:.05em; font-weight:700; color: var(--forest); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.rail-item{ display:flex; gap:12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-item:last-child{ border-bottom: none; }
.rail-item img{ width:64px; height:52px; object-fit:cover; border-radius: var(--radius-sm); flex-shrink:0; }
.rail-item h4{ font-family: var(--font-display); font-size: 15px; font-weight:600; margin: 0 0 6px; line-height:1.3; }
.rail-item h4 a:hover{ color: var(--accent); }

.desk-section{ padding: 48px 0 6px; }
.desk-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.desk-col{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px; border-top: 3px solid var(--card-accent, var(--forest)); }
.desk-col .col-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.desk-col .col-head h3{ font-size: 17px; margin:0; }
.desk-col .col-head a{ font-family: var(--font-label); font-size: 11px; font-weight:600; color: var(--card-accent, var(--forest)); }
.desk-item{ padding: 13px 0; border-bottom: 1px solid var(--line); }
.desk-item:first-child{ padding-top:0; }
.desk-item:last-child{ border-bottom:none; }
.desk-item h4{ font-family: var(--font-display); font-size: 15px; font-weight:600; margin: 0 0 6px; line-height:1.35; }
.desk-item h4 a:hover{ color: var(--card-accent, var(--forest)); }
.desk-item .date{ font-family: var(--font-label); font-size: 11px; color: var(--slate-dim); }

/* =========================================================
   4. GENERIC ARTICLE CARDS
   ========================================================= */
.section-block{ margin-top: 34px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.article-card{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); display:flex; flex-direction:column; }
.article-card .thumb{ position:relative; }
.article-card .thumb img{ width:100%; height:160px; object-fit:cover; }
.article-card .thumb .badge{ position:absolute; top:12px; left:12px; }
.article-card .body{ padding: 16px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.article-card h3{ font-size: 16.5px; margin:0; }
.article-card h3 a:hover{ color: var(--accent); }
.article-card p{ font-size: 13.5px; color: var(--slate); margin:0; flex:1; }

/* =========================================================
   5. CATEGORY DESK HEADER (category.php)
   ========================================================= */
.cat-hero{ background: var(--accent-tint); border-bottom: 1px solid var(--line); padding: 38px 0 26px; }
.cat-hero h1{ font-size: 30px; margin: 8px 0 8px; }
.cat-hero p{ color: var(--slate); max-width: 620px; margin:0; }
.cat-hero .count{ font-family: var(--font-label); font-size:12px; color: var(--accent-deep); margin-top:12px; display:block; font-weight:600; }

.cat-layout{ display:grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; padding: 34px 0; }
.post-list-card{ display:flex; gap:18px; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 18px; }
.post-list-card img{ width: 210px; height:145px; object-fit:cover; border-radius: var(--radius-sm); flex-shrink:0; }
.post-list-card h2{ font-size: 19px; margin:0 0 8px; }
.post-list-card h2 a:hover{ color: var(--accent); }
.post-list-card p{ color: var(--slate); font-size:14px; margin:0; }

.sidebar-widget{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.sidebar-widget h4{ font-family: var(--font-label); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color: var(--slate-dim); margin-bottom:14px; }
.sidebar-widget ul li{ padding: 10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.sidebar-widget ul li:last-child{ border-bottom:none; }
.sidebar-widget ul li a:hover{ color: var(--accent); }
.pill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.pill-tags a{ font-family: var(--font-label); font-size: 11px; padding: 5px 11px; background: var(--paper); border:1px solid var(--line); color: var(--slate); border-radius: 20px; }
.pill-tags a:hover{ border-color: var(--accent); color: var(--accent); }

.pagination{ display:flex; gap:8px; justify-content:center; padding: 20px 0 0; }
.pagination a, .pagination span{ padding: 8px 14px; border:1px solid var(--line); font-family: var(--font-label); font-size:12.5px; background: var(--card); border-radius: var(--radius-sm); }
.pagination .current{ background: var(--forest); color:#fff; border-color: var(--forest); }
.pagination a:hover{ border-color: var(--forest); color: var(--forest); }

/* =========================================================
   6. SINGLE POST
   ========================================================= */
.single-wrap{ display:grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; padding: 30px 0 70px; }
.single-header{ margin-bottom: 22px; }
.single-header h1{ font-size: 30px; margin: 12px 0 14px; }
.single-featured{ border-radius: var(--radius); overflow:hidden; margin-bottom: 26px; }
.single-featured img{ width:100%; max-height: 440px; object-fit:cover; }
.entry-content{ font-size: 17.5px; line-height: 1.8; color: #24261F; }
.entry-content h2{ font-size: 23px; margin-top: 1.6em; }
.entry-content h3{ font-size: 19px; margin-top: 1.4em; }
.entry-content blockquote{ border-left: 3px solid var(--accent); margin: 1.6em 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--slate); }
.entry-content a{ color: var(--forest-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 28px; padding-top: 22px; border-top:1px solid var(--line); }
.entry-tags a{ font-family: var(--font-label); font-size:11px; padding: 5px 11px; background: var(--paper); color: var(--slate); border-radius: 20px; }
.author-box{ display:flex; gap:16px; align-items:center; margin-top: 28px; padding: 20px; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); }
.author-box img{ width:52px; height:52px; border-radius:50%; }
.author-box .name{ font-weight:700; font-size:15px; }
.author-box .role{ font-family: var(--font-label); font-size:11px; color: var(--slate-dim); }
.related-posts{ margin-top: 40px; }
.toc-box{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px; }
.toc-box h4{ font-family: var(--font-label); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; margin:0 0 10px; }
.toc-box ol{ margin:0; padding-left: 20px; }
.toc-box li{ padding: 4px 0; font-size: 14.5px; }
.toc-box a{ color: var(--forest-deep); }

/* =========================================================
   7. PAGE (page.php)
   ========================================================= */
.page-wrap{ max-width: 800px; margin: 0 auto; padding: 40px 24px 76px; }
.page-wrap h1{ font-size: 30px; }

/* =========================================================
   8. ABOUT PAGE
   ========================================================= */
.about-hero{ background: var(--forest); color:#fff; padding: 52px 0 40px; text-align:center; }
.about-hero .eyebrow{ color: var(--gold); justify-content:center; }
.about-hero h1{ color:#fff; font-size: 36px; margin: 12px 0 10px; }
.about-hero p{ color: rgba(255,255,255,.85); max-width: 560px; margin:0 auto; }
.about-stats{ background: var(--card); border-bottom:1px solid var(--line); }
.stats-row{ display:grid; grid-template-columns: repeat(4,1fr); }
.stat-item{ text-align:center; padding: 24px 12px; border-left: 1px solid var(--line); }
.stat-item:first-child{ border-left:none; }
.stat-num{ font-family: var(--font-display); font-size: 24px; font-weight:700; color: var(--forest); display:block; }
.stat-label{ font-size: 11px; color: var(--slate-dim); margin-top:4px; font-family: var(--font-label); text-transform: uppercase; letter-spacing:.04em; }
.about-body{ max-width: 720px; margin: 0 auto; padding: 44px 24px 10px; }
.channel-section{ padding: 10px 0 46px; }
.channel-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; max-width: 720px; margin: 0 auto; }
.channel-card{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align:center; border-top: 3px solid var(--card-accent, var(--forest)); }
.channel-icon{ font-size: 22px; margin-bottom: 10px; }
.channel-card h3{ font-size:14px; margin: 0 0 6px; }
.channel-card .count{ font-family: var(--font-label); font-size: 11px; color: var(--slate-dim); }
.disclaimer-box{ max-width: 720px; margin: 10px auto 60px; background: var(--card); border-left: 3px solid var(--gold-deep); border-radius: var(--radius-sm); padding: 20px 24px; }
.disclaimer-box h4{ font-family: var(--font-label); font-size:11px; text-transform:uppercase; letter-spacing:.05em; color: var(--gold-deep); margin: 0 0 10px; }
.disclaimer-box p{ font-size: 14px; color: var(--slate); margin:0; }

/* =========================================================
   9. LEGAL PAGE (Kebijakan Privasi) — sectioned, simple treatment
   ========================================================= */
.legal-hero{ background: var(--ink); color:#fff; padding: 50px 0 38px; text-align:center; }
.legal-hero .icon{ width:52px; height:52px; border-radius:50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:22px; margin: 0 auto 16px; }
.legal-hero .eyebrow{ color: var(--gold); justify-content:center; }
.legal-hero h1{ color:#fff; font-size: 30px; margin: 10px 0 8px; }
.legal-hero .updated{ font-family: var(--font-label); font-size: 12px; color: rgba(255,255,255,.6); }
.legal-layout{ display:grid; grid-template-columns: 240px 1fr; gap: 36px; max-width: 980px; margin: 0 auto; padding: 40px 24px 70px; align-items:start; }
.legal-toc{ position: sticky; top: 66px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.legal-toc h4{ font-family: var(--font-label); font-size:11px; text-transform:uppercase; letter-spacing:.05em; color: var(--slate-dim); margin: 0 0 12px; }
.legal-toc ul li{ padding: 6px 0; }
.legal-toc a{ font-size: 13.5px; color: var(--ink-soft); }
.legal-toc a:hover{ color: var(--forest); }
.legal-content-wrap{ display:flex; flex-direction:column; gap: 18px; }
.legal-intro{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; font-size: 16px; color: var(--ink-soft); }
.legal-intro p em{ display:inline-block; font-family: var(--font-label); font-size: 12px; color: var(--slate-dim); font-style: normal; background: var(--paper); padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.legal-section{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px 24px 24px; display:flex; gap: 18px; border-left: 3px solid var(--gold); scroll-margin-top: 66px; }
.legal-section-num{ font-family: var(--font-display); font-size: 22px; font-weight:700; color: rgba(31,92,76,0.15); flex-shrink:0; width: 38px; line-height:1; }
.legal-section-body h2{ font-size: 19px; margin: 0 0 10px; }
.legal-section-body{ font-size: 15.5px; color: var(--ink-soft); }
.legal-cta{ margin-top: 16px; padding: 24px; background: var(--forest-tint); border-radius: var(--radius-sm); text-align:center; }
.legal-cta p{ margin: 0 0 12px; color: var(--slate); }
.legal-cta a{ font-family: var(--font-label); font-size: 12.5px; font-weight:700; color: var(--forest-deep); }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.72); margin-top: 46px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 0 26px; }
.footer-brand p{ color: rgba(255,255,255,.5); font-size: 14px; margin-top: 14px; }
.footer-col h4{ font-family: var(--font-label); font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:#fff; margin-bottom:14px; }
.footer-col ul li{ padding: 6px 0; }
.footer-col a{ color: rgba(255,255,255,.68); font-size:14px; }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display:flex; justify-content:space-between; font-size:12px; color: rgba(255,255,255,.45); flex-wrap:wrap; gap:10px; font-family: var(--font-label); }
.footer-bottom a{ color: rgba(255,255,255,.68); }

/* =========================================================
   11. RESPONSIVE — mobile-first considerations throughout
   ========================================================= */
@media (max-width: 1080px){
  .home-lead{ grid-template-columns: 1fr; }
  .desk-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cat-layout, .single-wrap{ grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: repeat(2,1fr); }
  .legal-layout{ grid-template-columns: 1fr; }
  .legal-toc{ position: static; }
  .channel-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .grid-3{ grid-template-columns: 1fr; }
  .primary-menu{ display:none; }
  .menu-toggle{ display:flex; }
  .brand-logo .wordmark{ font-size: 19px; }
  .brand-tagline{ display:none; }
  .lead-story .thumb img{ height: 220px; }
  .lead-story h1{ font-size: 22px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .post-list-card{ flex-direction:column; }
  .post-list-card img{ width:100%; height:190px; }
  .about-hero h1{ font-size: 26px; }
  .stats-row{ grid-template-columns: 1fr 1fr; }
  .channel-grid{ grid-template-columns: 1fr; }
  .legal-hero h1{ font-size: 24px; }
  .legal-section{ flex-direction:column; gap:8px; padding: 20px 18px; }
  .legal-section-num{ width:auto; font-size: 18px; }
  .legal-intro{ padding: 18px 16px; }
}
