/*
Theme Name: TALAS89 Midnight Atlas UafshBuW
Theme URI: https://talas89login.asia/
Author: Panduan TALAS89 Indonesia
Description: Tema editorial independen untuk Panduan TALAS89 Indonesia.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: talas89-atlas
*/

:root {
  --bg: #07111f;
  --surface: #0e1d31;
  --panel: #132842;
  --panel-hi: #183552;
  --cyan: #58d5f6;
  --violet: #9a9cff;
  --coral: #ff9278;
  --text: #f5f8fc;
  --muted: #b7c7d9;
  --line: #52769b;
  --focus: #b2edff;
  --warning: #f4c36a;
  --radius: 18px;
  --wide: 1220px;
  --read: 800px;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(88,213,246,.10), transparent 28rem),
    radial-gradient(circle at 5% 36%, rgba(154,156,255,.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
a { color: var(--cyan); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: #8fe8ff; }
a:visited { color: #c0b8ff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - clamp(32px, 6vw, 96px)), var(--wide)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(7,17,31,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand .custom-logo-link { display: flex; min-height: 48px; align-items: center; }
.brand .custom-logo { width: 228px; height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-text { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.nav-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 48px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.2; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--panel); color: var(--cyan); }

.site-main { min-height: 60vh; }
.entry-article { padding: clamp(40px, 7vw, 92px) 0 clamp(72px, 9vw, 112px); }
.entry-header, .entry-content > :not(.wide-block):not(figure):not(table) { width: min(100%, var(--read)); margin-inline: auto; }
.entry-header { margin-bottom: 34px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; scroll-margin-top: 106px; }
h1 { margin: 0 0 22px; font-size: clamp(2.35rem, 5.2vw, 4.1rem); max-width: 1050px; }
h2 { margin-top: clamp(58px, 7vw, 88px); margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 2.65rem); }
h3 { margin-top: 38px; font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
p { margin-top: 0; margin-bottom: 1.35em; }
.entry-content > p:first-of-type { font-size: 1.18em; color: #e8f0f8; }
.entry-content strong { color: #fff; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .65em; }
.entry-content blockquote { padding: 22px 26px; margin: 32px auto; border-left: 4px solid var(--coral); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

.editorial-figure { width: min(100%, 1120px); margin: clamp(32px, 5vw, 62px) auto; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.editorial-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-figure.is-hero img { aspect-ratio: 16 / 9; }
.editorial-figure figcaption { padding: 12px 18px 15px; color: var(--muted); font-size: .84rem; }

.entry-content table { width: min(1120px, 100%); margin: 32px auto; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.entry-content th, .entry-content td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--panel-hi); color: #fff; }
.entry-content tr:nth-child(even) td { background: rgba(19,40,66,.56); }

.entry-content h2::before { content: ""; display: block; width: 52px; height: 4px; margin-bottom: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral)); }
.entry-content > h2:nth-of-type(3n+1) { color: #fff; }
.entry-content > h2:nth-of-type(3n+2) { color: #dff7ff; }
.entry-content > h2:nth-of-type(3n) { color: #eceaff; }

.faq-section { width: min(100%, 900px); margin: 82px auto 0; }
.faq-section details { margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.faq-section summary { cursor: pointer; min-height: 58px; padding: 17px 54px 17px 20px; font-weight: 700; list-style: none; position: relative; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--cyan); }
.faq-section details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); background: #050d18; padding: 54px 0 34px; }
.footer-statement { max-width: 760px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); }
.footer-meta { color: var(--muted); font-size: .88rem; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; justify-content: center; align-items: center; }
  .primary-nav { display: none; position: absolute; inset: 72px 0 auto 0; padding: 14px clamp(16px, 5vw, 36px) 24px; background: #07111f; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding-inline: 14px; font-size: 16px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.7; }
  .site-shell { width: min(calc(100% - 32px), var(--wide)); }
  .header-inner { min-height: 68px; }
  .brand .custom-logo { width: 196px; max-height: 50px; }
  .primary-nav { inset-block-start: 68px; }
  .entry-article { padding-top: 34px; }
  h1 { font-size: clamp(2rem, 10.5vw, 2.7rem); }
  h2 { margin-top: 50px; font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .editorial-figure { border-radius: 14px; margin-block: 30px; }
  .editorial-figure img, .editorial-figure.is-hero img { aspect-ratio: 5 / 4; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; white-space: normal; font-size: .9rem; }
  .entry-content th, .entry-content td { min-width: 160px; padding: 12px; }
  .faq-section { margin-top: 58px; }
}

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