/* Gaya bersama halaman AI Hardware Sizer dan glosariumnya. Token warna sama dengan halaman lain di elhashif.net. */
:root {
  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #eef2f7; --text: #0f172a; --muted: #526077;
  --border: #dde3ec; --accent: #0369a1; --accent-ink: #ffffff; --accent-soft: #e0f2fe; --ok: #15803d;
  --warn: #a16207; --bad: #b91c1c; --ok-soft: #dcfce7; --warn-soft: #fef3c7; --bad-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06); --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2c; --surface-2: #17223a; --text: #e6edf7; --muted: #93a3bd;
    --border: #23304a; --accent: #38bdf8; --accent-ink: #04121f; --accent-soft: #0c2a40; --ok: #4ade80;
    --warn: #facc15; --bad: #f87171; --ok-soft: #0f2e1d; --warn-soft: #2e2608; --bad-soft: #3a1414;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2c; --surface-2: #17223a; --text: #e6edf7; --muted: #93a3bd;
  --border: #23304a; --accent: #38bdf8; --accent-ink: #04121f; --accent-soft: #0c2a40; --ok: #4ade80;
  --warn: #facc15; --bad: #f87171; --ok-soft: #0f2e1d; --warn-soft: #2e2608; --bad-soft: #3a1414;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
html[lang="en"] [lang="id"], html[lang="id"] [lang="en"] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.brand { font-weight: 700; color: var(--text); }
.brand span { color: var(--accent); }
.ctrl { display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 12px/1 Inter, system-ui, sans-serif; padding: 0 10px; height: 32px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 16px; }

header.hero { padding: 40px 0 8px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.025em; }
.sub { font-size: 18px; color: var(--muted); margin: 0 0 16px; max-width: 64ch; }
h2 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--border); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font: 600 15px Inter, system-ui, sans-serif; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { text-decoration: underline; text-underline-offset: 2px; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.term { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--accent); }
@media print {
  .topbar, .noprint, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; }
}

/* ---------- Komponen bersama semua tool (form, hasil, catatan) ---------- */
.why-ask { font-size: 14px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; line-height: 1.5; }
.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.why ul { margin: 6px 0 0; padding-left: 20px; font-size: 14.5px; }
.why li + li { margin-top: 6px; }
.why h3 { margin: 0; }
fieldset { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; font-size: 15px; }
legend .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; margin-right: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.f { display: grid; gap: 4px; font-size: 13.5px; align-content: start; }
.f > span { font-weight: 600; }
.f small { color: var(--muted); font-size: 12px; line-height: 1.35; }
input[type=number], select { font: 15px Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sub-h { font-size: 13px; font-weight: 700; margin: 14px 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sub-h:first-of-type { margin-top: 0; }
/* Segmented control untuk pilihan pendek */
.radios { display: inline-flex; justify-self: start; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 3px; gap: 3px; max-width: 100%; }
.radios label { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; line-height: 1.3; }
.radios label:hover { color: var(--text); }
.radios input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.radios label:has(input:checked) { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.radios label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Daftar vertikal untuk pilihan dengan teks panjang */
.radios.stack { display: grid; justify-self: stretch; padding: 0; gap: 0; overflow: hidden; }
.radios.stack label { justify-content: flex-start; gap: 10px; padding: 9px 12px; border-radius: 0; white-space: normal; color: var(--text); border-top: 1px solid var(--border); }
.radios.stack label:first-child { border-top: 0; }
.radios.stack label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); flex: none; box-sizing: border-box; }
.radios.stack label:has(input:checked) { background: var(--accent-soft); color: var(--text); }
.radios.stack label:has(input:checked)::before { border: 4px solid var(--accent); }
.sum { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.sum h2 { font-size: 19px; margin: 0 0 4px; line-height: 1.3; }
.sum p { margin: 0; }
ul.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
ul.kv li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
ul.kv li span { color: var(--muted); }
@media (max-width: 420px) { ul.kv li { grid-template-columns: 1fr; gap: 0; } }
.rh { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 -4px; }
.card.flush { padding: 0; overflow-x: auto; }
tr.hl td { background: var(--accent-soft); font-weight: 600; }
tr.dim td { color: var(--muted); font-size: 13px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
ul.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt { font-size: 14px; padding: 9px 12px 9px 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); position: relative; line-height: 1.45; }
.nt::before { content: "i"; position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 700 11px Inter, sans-serif; background: var(--accent-soft); color: var(--accent); }
.nt.ok::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.nt.warn::before { content: "!"; background: var(--warn-soft); color: var(--warn); }
.nt.bad::before { content: "!"; background: var(--bad-soft); color: var(--bad); }
.nt.bad { border-color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { flex: 1 1 auto; justify-content: center; }
section.more { padding: 36px 0 0; }
details.how { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
details.how summary { cursor: pointer; font-weight: 700; }
details.how ul { padding-left: 20px; margin: 10px 0 0; font-size: 14.5px; }
details.how li + li { margin-top: 6px; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.cta-box { margin: 36px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.author { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.author b { display: block; }
.author span { font-size: 14px; color: var(--muted); }
.author a { text-decoration: underline; text-underline-offset: 2px; }
