:root {
  --brand: #1e63d0;
  --brand-dark: #174ea6;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #e5e7eb;
  --warn-bg: #fff7ed;
  --warn-line: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #171a21;
    --text: #e6e8ec;
    --muted: #a3abb8;
    --line: #262b34;
    --warn-bg: #241c10;
    --warn-line: #b45309;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* --- masthead ----------------------------------------------------------- */
.masthead {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 34px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  font-weight: 700; color: var(--brand); margin: 0 0 6px;
}
.masthead h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
.masthead h1 span { display: block; font-size: 17px; font-weight: 500; color: var(--muted); }
.lede { margin: 0; max-width: 60ch; color: var(--muted); }

/* --- layout ------------------------------------------------------------- */
.layout { display: block; padding-top: 8px; padding-bottom: 40px; }

@media (min-width: 860px) {
  .layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
  .toc { position: sticky; top: 24px; }
}

.toc {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 28px 0;
  background: var(--bg-soft);
}
.toc-title {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.toc li { margin: 5px 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

main { min-width: 0; }

section { margin: 0 0 44px; scroll-margin-top: 20px; }
h2 {
  font-size: 22px; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
h3 { font-size: 16px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin: 0 0 12px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 0 0 18px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); border-left-color: var(--warn-line); }

.faq {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.faq h3 { margin-top: 0; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer nav { display: flex; gap: 10px; justify-content: center; margin-bottom: 6px; }
.site-footer p { margin: 0; }

/* --- brand + landing ----------------------------------------------------- */
/* The IndoHRM mark is a wide wordmark: size by width, let the height follow. */
.wordmark { width: 190px; max-width: 60vw; height: auto; display: block; margin: 0 0 16px; }
.home-link { display: inline-block; }

.layout-single { padding: 28px 20px 40px; max-width: 760px; }

.cards { list-style: none; padding: 0; margin: 0; }
.cards li { margin: 0 0 12px; }
.cards a, .cards > li > span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
}
.cards a:hover { border-color: var(--brand); background: var(--bg-soft); }
.cards strong { display: block; font-size: 16px; color: var(--brand); }
.cards a:hover strong { color: var(--brand-dark); }
.cards .desc { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Unreleased platforms are listed on purpose — knowing a guide is coming beats
   wondering whether you missed it — but they must not look clickable. */
.cards .soon > span { opacity: .62; }
.cards .soon strong { color: var(--text); }

.badge {
  display: inline-block; margin-top: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand); color: #fff;
  padding: 2px 8px; border-radius: 999px;
}
.badge-muted { background: var(--muted); }
