:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; background: #0b0b0f; color: #e8e8ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: #7cc7ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }

header.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid #1c1c24;
  position: sticky; top: 0; background: #0b0b0fee; backdrop-filter: blur(6px);
}
header.nav .logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
header.nav .brand { font-weight: 700; letter-spacing: .3px; }
header.nav .brand small { color: #6b6b76; font-weight: 400; }
header.nav .spacer { flex: 1; }
header.nav a.navlink { color: #b9b9c4; font-size: 14px; font-weight: 600; margin-left: 16px; }
header.nav a.navlink:hover { color: #fff; text-decoration: none; }

.hero { text-align: center; padding: 40px 0 16px; }
.hero img.mark { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; }
.hero p { color: #9a9aa6; margin: 0; }

.card {
  background: #14141b; border: 1px solid #23232e; border-radius: 14px;
  padding: 20px 22px; margin: 18px 0;
}
.card h2 { margin: 0 0 12px; font-size: 18px; }

ol.steps { padding-left: 20px; margin: 0; }
ol.steps li { margin: 8px 0; }
code, .mono { font-family: ui-monospace, Menlo, monospace; background: #0f0f16; padding: 2px 6px; border-radius: 5px; font-size: 13px; color: #c9d6e5; }

.btn {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 12px 20px; color: #fff;
  background: #2563eb; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.pink { background: #db2777; }
.btn.ghost { background: transparent; border: 1px solid #33333f; color: #cfcfda; }
.btn.coffee { background: #f5c518; color: #1a1a1a; }
/* Support section: smaller text + smaller amount buttons */
.support h2 { font-size: 16px; }
.support p { font-size: 13px; }
.support .btn.coffee { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { font-size: 13px; color: #9a9aa6; font-weight: 600; }
input, textarea {
  width: 100%; background: #0f0f16; border: 1px solid #2a2a36; border-radius: 9px;
  color: #eee; padding: 11px 12px; font-size: 15px;
}
textarea { min-height: 72px; resize: vertical; }

.flash { background: #1e293b; border: 1px solid #33415a; color: #cfe0ff; padding: 10px 14px; border-radius: 9px; margin: 12px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #23232e; vertical-align: top; }
th { color: #8a8a96; font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.pill.pending { background: #3f3410; color: #f5c518; }
.pill.issued  { background: #12331e; color: #4ade80; }
.pill.rejected{ background: #3a1620; color: #f87171; }
.muted { color: #6b6b76; }
.footer { text-align: center; color: #4d4d57; font-size: 13px; padding: 30px 0 10px; }
.footer img.bc { height: 22px; opacity: .8; vertical-align: middle; margin-left: 8px; }

/* Prerequisites: text left, parts thumbnails right */
.prereq { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.prereq-text { flex: 1 1 320px; min-width: 0; }
.prereq-text ul { margin: 0 0 4px; padding-left: 18px; }
.prereq-text li { margin: 7px 0; }
.parts { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 78px); gap: 10px; }
.parts figure { margin: 0; }
.parts img {
  width: 78px; height: 78px; object-fit: contain; background: #f5f5f7;
  border: 1px solid #23232e; border-radius: 10px; padding: 5px; display: block;
}
.parts figcaption { font-size: 10px; color: #6b6b76; text-align: center; margin-top: 3px; line-height: 1.15; }
@media (max-width: 560px) {
  .parts { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .parts img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* Prerequisites: embedded setup tutorial (small responsive 16:9 player) */
.prereq-video { margin-top: 18px; }
.yt-embed { position: relative; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
