/*
Theme Name: ANDARA88 Organic Editorial run-5bVw8xyO
Theme URI: https://andara88login.asia/
Author: Panduan ANDARA88 Indonesia
Description: Tema editorial organik khusus Panduan ANDARA88 Indonesia.
Version: 1.0.0
Text Domain: andara88-organic
*/

:root {
  --bg: #f7f0e5;
  --surface: #fffdf8;
  --surface-soft: #efe1d2;
  --forest: #29443c;
  --terracotta: #a94f38;
  --terracotta-dark: #853825;
  --sage: #557566;
  --ochre: #a96e12;
  --ink: #302a26;
  --muted: #665e58;
  --border: #d6c5b3;
  --focus: #174f3d;
  --reading: 760px;
  --wide: 1180px;
  --shadow: 0 16px 38px rgba(80,50,35,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.74;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta-dark); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%); padding: .7rem 1rem; background: var(--forest); color: #fff; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 50; background: rgba(255,253,248,.98); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--wide); min-height: 76px; margin: 0 auto; padding: 10px clamp(18px,4vw,54px); display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 1 330px; min-width: 210px; }
.brand .custom-logo-link { display: inline-flex; align-items: center; min-height: 52px; }
.brand .custom-logo { width: min(310px, 100%); max-height: 64px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--forest); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--forest); font: inherit; cursor: pointer; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 5px 2px; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--terracotta-dark); border-color: var(--terracotta); }

.site-main { min-height: 70vh; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(46px,7vw,92px) clamp(18px,4vw,54px) clamp(38px,6vw,76px); background: var(--surface-soft); }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 360px; right: -130px; top: -170px; z-index: -1; border-radius: 50%; background: rgba(169,79,56,.20); transform: rotate(-12deg); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 210px; left: -90px; bottom: -160px; z-index: -1; border-radius: 50%; background: rgba(85,117,102,.22); }
.hero-inner { max-width: var(--wide); margin: 0 auto; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--terracotta-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest); line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 950px; margin: 0; font-size: clamp(2.2rem,5.2vw,4.15rem); }
.hero-summary { max-width: 940px; margin: 22px 0 0; color: #3c342f; font-size: 1.08rem; line-height: 1.65; }
h2 { margin: 0 0 22px; font-size: clamp(1.72rem,3.4vw,2.6rem); }
h3 { margin: 34px 0 14px; font-size: clamp(1.25rem,2.2vw,1.7rem); }
.breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--forest); }

.article-shell { max-width: var(--wide); margin: 0 auto; padding: clamp(30px,5vw,62px) clamp(18px,4vw,54px) clamp(70px,9vw,112px); }
.article-content { max-width: var(--reading); margin: 0 auto; }
.home-content { max-width: 940px; }
.article-content > p:first-of-type { font-size: 1.12em; color: #3c342f; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2 { position: relative; margin-top: clamp(56px,8vw,94px); padding-top: 8px; }
.article-content h2::before { content: ""; display: block; width: 58px; height: 6px; margin-bottom: 18px; border-radius: 99px; background: var(--terracotta); }
.article-content h2:nth-of-type(even)::before { background: var(--sage); }
.article-content ul, .article-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.article-content li + li { margin-top: .55em; }
.article-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 5px solid var(--terracotta); border-radius: 0 18px 18px 0; background: var(--surface-soft); }

.editorial-figure { margin: clamp(32px,5vw,58px) 0; padding: 0; }
.home-content .editorial-figure { margin-inline: 0; }
.editorial-figure img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 32px 10px 32px 10px; box-shadow: var(--shadow); background: var(--surface-soft); }
.editorial-figure.hero-image img { aspect-ratio: 16 / 9; object-position: center; }
.editorial-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.asset-box { margin: 30px 0; padding: clamp(20px,3vw,32px); border: 1px solid var(--border); border-radius: 12px 32px 12px 32px; background: var(--surface); box-shadow: var(--shadow); }
.asset-box > p:last-child, .asset-box > ol:last-child, .asset-box > ul:last-child { margin-bottom: 0; }
.table-scroll { width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .88rem; line-height: 1.52; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: #fff; background: var(--forest); font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8f0e7; }

.source-notes { margin: 26px 0; padding: 20px 24px; border-left: 5px solid var(--sage); border-radius: 0 18px 18px 0; background: #e8f0ea; font-size: .9rem; }
.source-notes strong { display: block; margin-bottom: 8px; color: var(--forest); }
.source-notes ul { margin-bottom: 0; }
.topic-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 38px 0; padding: 0; list-style: none; }
.topic-links a { display: flex; min-height: 64px; align-items: center; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--forest); font-weight: 700; text-decoration: none; }
.topic-links a:hover { border-color: var(--terracotta); box-shadow: var(--shadow); }

.faq-list { margin-top: 28px; }
.faq-list details { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq-list summary { display: flex; min-height: 54px; align-items: center; padding: 14px 18px; color: var(--forest); font-weight: 800; cursor: pointer; }
.faq-list .faq-answer { padding: 0 18px 18px; }
.faq-list .faq-answer p:last-child { margin-bottom: 0; }

.trust-nav { margin-top: 50px; padding: 24px; border-radius: 24px; background: var(--surface-soft); }
.trust-nav strong { display: block; margin-bottom: 10px; color: var(--forest); }
.trust-nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }

.site-footer { color: #f9f4ec; background: var(--forest); }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 58px clamp(18px,4vw,54px) 34px; display: grid; grid-template-columns: minmax(240px,.8fr) minmax(320px,1.2fr); gap: 44px; }
.footer-brand { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
.footer-note { max-width: 520px; margin: 0 0 12px; color: #efe5da; }
.site-footer a { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.copyright { max-width: var(--wide); margin: 0 auto; padding: 22px clamp(18px,4vw,54px); border-top: 1px solid rgba(255,255,255,.18); color: #d8cec4; font-size: .8rem; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .brand { flex-basis: calc(100% - 72px); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; flex-basis: 100%; width: 100%; margin: 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 14px; }
  .primary-nav a { min-height: 48px; padding: 8px 10px; border: 0; border-radius: 8px; }
  .primary-nav a:hover { background: var(--surface-soft); }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.7; }
  .header-inner { min-height: 68px; padding-inline: 16px; }
  .brand .custom-logo { max-height: 52px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .page-hero { padding-inline: 18px; }
  .home .page-hero { padding-block: 28px 32px; }
  h1 { font-size: clamp(2rem,10vw,2.7rem); }
  .home .page-hero h1 { font-size: clamp(1.9rem,9vw,2.45rem); line-height: 1.08; }
  .home .hero-summary { margin-top: 16px; font-size: .98rem; line-height: 1.55; }
  .article-shell { padding-inline: 18px; }
  .article-content h2 { margin-top: 52px; }
  .editorial-figure, .home-content .editorial-figure { margin-inline: 0; }
  .editorial-figure img { max-height: 480px; border-radius: 22px 8px 22px 8px; }
  .editorial-figure.hero-image img { aspect-ratio: 4 / 5; }
  .topic-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
