/* LIFE IS EXPENSIVE — editorial stylesheet
   Palet diturunkan dari halaman BotherBass + Annoyance Atlas:
   charcoal ink, paper, lime neon, amber, flame. */

:root {
  --ink: #140b1b;
  --ink-2: #1b0f24;
  --ink-3: #251533;
  --ink-4: #322043;
  --paper: #f6f2e7;
  --paper-2: #e7e0cf;
  --paper-3: #cfc5b0;
  --lime: #c6ff3d;
  --lime-deep: #9fe000;
  --amber: #f9c80e;
  --flame: #f86624;
  --red: #ea3546;
  --blue: #43bccd;
  --muted: #b8abc9;
  --muted-2: #8e80a3;
  --line: rgba(246, 242, 231, .14);
  --line-strong: rgba(246, 242, 231, .28);
  --display: "Arial Black", "Arial Bold", "Segoe UI Black", Impact, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(920px 560px at 84% -10%, rgba(198, 255, 61, .07), transparent 68%),
    radial-gradient(760px 520px at 2% 14%, rgba(102, 46, 155, .20), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 50;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 11, 27, .88);
  backdrop-filter: blur(10px);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  font-family: var(--display);
  letter-spacing: -.5px;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand b { color: var(--lime); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15);
}
/* Menu tunggal ada di bb-sitebar; masthead hanya brand + pemilih bahasa. */
.masthead .lang-switch { margin-left: auto; }
.masthead nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.masthead nav a {
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover, .masthead nav a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--lime);
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.lang-switch button,
.lang-switch a {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 720px) {
  .lang-switch { width: 100%; }
  .lang-switch button,
  .lang-switch a { flex: 1; padding: 6px 2px; font-size: 10px; text-align: center; }
}

/* ---------- language links row ---------- */
/* Baris tautan bahasa di atas konten: setiap bahasa punya URL sendiri dan
   saling tertaut, jadi mesin pencari dan pembaca sama-sama bisa berpindah. */
.lang-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 16px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}
.lang-links-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--muted);
}
.lang-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
  padding-bottom: 1px;
}
.lang-links a:hover,
.lang-links a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- language visibility ---------- */
html[data-lang="en"] span[class^="t-"]:not(.t-en),
html[data-lang="id"] span[class^="t-"]:not(.t-id),
html[data-lang="zh-Hans"] span[class^="t-"]:not(.t-zh-Hans),
html[data-lang="zh-Hant"] span[class^="t-"]:not(.t-zh-Hant),
html[data-lang="ru"] span[class^="t-"]:not(.t-ru),
html[data-lang="nl"] span[class^="t-"]:not(.t-nl),
html[data-lang="de"] span[class^="t-"]:not(.t-de) { display: none !important; }

/* Catatan kecil saat artikel hanya tersedia dalam bahasa Inggris/Indonesia. */
.fallback-note {
  margin: 0;
  padding: 10px 18px;
  background: rgba(249, 200, 14, .12);
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
}
html[data-lang="en"] .fallback-note,
html[data-lang="id"] .fallback-note { display: none; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); line-height: .98; margin: 0; letter-spacing: -1px; }
h1 { font-size: clamp(38px, 6.2vw, 78px); text-transform: uppercase; }
h2 { font-size: clamp(24px, 3.2vw, 40px); text-transform: uppercase; letter-spacing: -.5px; }
h3 { font-size: clamp(18px, 2vw, 23px); line-height: 1.14; letter-spacing: -.2px; }
.serif { font-family: var(--serif); }
.lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.62;
  color: var(--paper-2);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 7vw, 96px) 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--lime); }
.hero .stamp {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
  font-size: clamp(17px, 2vw, 22px);
  margin-top: 20px;
}
.hero-aside {
  border-left: 2px solid var(--line-strong);
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}
.hero-aside strong { color: var(--paper); display: block; margin-bottom: 6px; font-size: 15px; }
.hero-aside .figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.hero-aside .figures div { border-top: 1px solid var(--line); padding-top: 10px; }
.hero-aside .figures b {
  display: block;
  font-family: var(--display);
  color: var(--lime);
  font-size: 26px;
  letter-spacing: -.5px;
}

/* ---------- marquee strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(198,255,61,.06), transparent 60%);
  overflow: hidden;
  padding: 12px 0;
}
.strip .wrap {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip span { display: inline-flex; align-items: center; gap: 9px; }
.strip span::before { content: ""; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }

/* ---------- sections ---------- */
section { padding: clamp(44px, 6vw, 76px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head p { margin: 10px 0 0; max-width: 56ch; color: var(--muted); }

/* ---------- country selector ---------- */
.selector {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.selector-top {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.selector input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
}
.selector input[type="search"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.region-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.region-tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
}
.region-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 700; }
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}
.country-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--paper-2);
}
.country-grid a:hover, .country-grid a:focus-visible { background: var(--ink-3); border-color: var(--line-strong); color: var(--paper); }
.country-grid .flag { font-size: 18px; line-height: 1; }
.country-grid .code { margin-left: auto; font-size: 11px; color: var(--muted-2); letter-spacing: .1em; }
.no-result { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(198,255,61,.55); }
.card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .num {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--lime);
}
.card h3 { font-size: 18px; line-height: 1.2; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card .tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
.tag {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------- article page ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); padding: 22px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--lime); }
.crumbs span[aria-hidden] { opacity: .5; }

.article-head { padding: 26px 0 8px; max-width: 900px; }
.article-head h1 { font-size: clamp(32px, 5vw, 60px); }
.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.badge.documented { border-color: rgba(198,255,61,.5); color: var(--lime); }
.badge.mixed { border-color: rgba(249,200,14,.5); color: var(--amber); }
.badge.illustrative { border-color: rgba(67,188,205,.5); color: var(--blue); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(28px, 5vw, 64px);
  padding: 30px 0 60px;
  align-items: start;
}
.article-body { max-width: 68ch; }
.article-body p { font-family: var(--serif); font-size: 18px; line-height: 1.72; color: var(--paper-2); margin: 0 0 20px; }
.article-body h2 { font-size: 20px; margin: 34px 0 10px; color: var(--lime); letter-spacing: .02em; }
.article-body .lede { color: var(--paper); }
.pull {
  border-left: 3px solid var(--amber);
  padding: 6px 0 6px 20px;
  margin: 26px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
}
.figure { margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { padding: 10px 14px; font-size: 12px; color: var(--muted-2); }

.aside-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 20px;
  margin-bottom: 16px;
}
.aside-box h2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.aside-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.aside-box li { margin-bottom: 8px; }
.aside-box a { color: var(--paper-2); text-decoration: underline; text-decoration-color: rgba(198,255,61,.5); text-underline-offset: 3px; }
.data-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.data-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.data-list li:last-child { border-bottom: 0; }
.data-list b { color: var(--lime); font-family: var(--display); }
.sources-list { list-style: none; padding: 0; margin: 0; }
.sources-list li { font-size: 12.5px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.sources-list li:last-child { border-bottom: 0; }
.sources-list .meta { color: var(--muted-2); font-size: 11.5px; }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.pager a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--ink-2);
  display: block;
}
.pager a:hover, .pager a:focus-visible { border-color: rgba(198,255,61,.5); }
.pager .dir { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 6px; }
.pager .next { text-align: right; }

/* ---------- country page ---------- */
.country-hero { padding: clamp(36px, 5vw, 64px) 0 10px; }
.country-hero .flag-big { font-size: clamp(40px, 6vw, 64px); line-height: 1; display: block; margin-bottom: 14px; }
.country-hero h1 { font-size: clamp(34px, 5.2vw, 62px); }
.country-hero .lede { margin-top: 18px; }
.country-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.fact {
  border-top: 2px solid var(--line-strong);
  padding-top: 12px;
}
.fact b { display: block; font-family: var(--display); font-size: 24px; color: var(--lime); letter-spacing: -.5px; }
.fact span { font-size: 12px; color: var(--muted); }

/* ---------- compare ---------- */
.compare-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.field label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.field select, .field input {
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-strong); }
.btn:hover, .btn:focus-visible { filter: brightness(1.06); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 22px; }
.compare-card h3 { font-size: 20px; margin-bottom: 4px; }
.compare-card .region { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 14px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
table.compare td.num { font-family: var(--display); color: var(--lime); white-space: nowrap; }
.compare-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); max-width: 78ch; }
.warn { color: var(--amber); }

/* ---------- search ---------- */
.search-box { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.search-box input {
  flex: 1 1 320px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper);
  padding: 14px 20px;
  font-size: 16px;
}
.results { display: grid; gap: 10px; }
.result {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--ink-2);
}
.result:hover, .result:focus-visible { border-color: rgba(198,255,61,.5); }
.result .where { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.result h3 { font-size: 16.5px; margin: 6px 0 4px; line-height: 1.25; }
.result p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
}
footer.site h2 { font-size: 12px; letter-spacing: .16em; color: var(--paper); margin-bottom: 12px; }
footer.site a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--lime); }
footer.site .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); max-width: 80ch; }

/* ---------- misc ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 12px;
  background: var(--ink-2);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--muted);
}
.callout strong { color: var(--paper); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.stat-row .stat { border-top: 2px solid var(--line-strong); padding-top: 12px; }
.stat-row .stat b { display: block; font-family: var(--display); font-size: 30px; color: var(--lime); }
.stat-row .stat span { font-size: 12px; color: var(--muted); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-body { max-width: none; }
  footer.site .cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  .country-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 300px; }
  .compare-grid, .grid-2, .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; }
  .article-body p { font-size: 17px; }
  .masthead nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
