/* Gaya bersama untuk halaman publik Peluang Uang. */

:root {
  --forest: #0b3d2e;
  --forest-deep: #07281e;
  --forest-light: #13543f;
  --leaf: #4caf2f;
  --gold: #f5a623;
  --text: #16221d;
  --text-muted: #5c6f66;
  --surface: #ffffff;
  --page: #f4f7f4;
  --border: #e0e8e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8f0ea;
    --text-muted: #9fb3a8;
    --surface: #10231b;
    --page: #0a1712;
    --border: #1f3a2e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

header.site {
  background: linear-gradient(135deg, var(--forest-light), var(--forest-deep));
  color: #fff;
  padding: 32px 20px;
}

header.site .inner {
  max-width: 760px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand .glyph {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--forest-light), var(--forest-deep));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
}

.brand .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand .tagline {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

header.site h1 {
  margin: 24px 0 6px;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.25;
}

header.site .updated {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.card.highlight {
  border-color: rgba(245, 166, 35, 0.45);
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.08),
    rgba(245, 166, 35, 0.02)
  );
}

h2 {
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.35;
}

h3 {
  font-size: 15px;
  margin: 18px 0 6px;
}

p {
  margin: 0 0 12px;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--leaf);
}

strong {
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: rgba(11, 61, 46, 0.05);
}

@media (prefers-color-scheme: dark) {
  th {
    background: rgba(255, 255, 255, 0.04);
  }
}

tr:last-child td {
  border-bottom: none;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

footer.site a {
  margin: 0 8px;
}

.toc {
  font-size: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

/* Tombol ajakan unduh di halaman utama. Tinggi 48px: batas minimum target sentuh. */
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--gold);
  color: #1a1204;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.06);
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}
