/* Guide pages. Same tokens as the rest of opbs.rhitcs.com; shared so the
   task pages stay consistent as more of them are added. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0c1220; color: #d0d7e3; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #61d0ff; text-decoration: none; transition: color .15s; }
a:hover { color: #9be2ff; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: #152238; border-radius: 4px; padding: 1px 6px; font-size: 0.88em;
}

.wrapper { max-width: 880px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: #fff; font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 18px; }
h3 { font-size: 1.05rem; margin-bottom: 6px; }

p { margin-bottom: 14px; }
p.lead { font-size: 1.08rem; color: #8fa5c0; max-width: 660px; }

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 18, 32, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e2d44;
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.15rem; color: #fff;
}
.logo img { height: 34px; border-radius: 6px; }
nav ul { list-style: none; display: flex; gap: 26px; }
nav ul li a { color: #a3b1c6; font-size: 0.92rem; font-weight: 500; }
nav ul li a:hover, nav ul li a.active { color: #fff; }

.hero { padding: 72px 0 48px; }
.hero-badge {
  display: inline-block; background: #1a2d4a; border: 1px solid #2a4467;
  border-radius: 24px; padding: 6px 16px; font-size: 0.82rem;
  color: #61d0ff; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 14px; }

section { padding: 40px 0; }
section.alt { background: #111b2c; }

/* Numbered steps: the whole point of a guide is that order matters. */
ol.steps { list-style: none; counter-reset: step; margin-top: 24px; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 32px 58px; max-width: 760px;
}
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #1a2d4a; border: 1px solid #2a4467; color: #61d0ff;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
ol.steps h3 { margin-bottom: 6px; font-size: 1.12rem; }
ol.steps p { color: #8fa5c0; font-size: 0.97rem; margin-bottom: 10px; }

pre {
  background: #111b2c; border: 1px solid #1e2d44; border-radius: 8px;
  padding: 14px 16px; white-space: pre-wrap; word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem; color: #a3b1c6; margin: 10px 0 0;
}

/* Callouts. `do` is something to do, `warn` is a way to lose data,
   `note` is context. */
.callout {
  background: #0f1929; border: 1px solid #1e2d44; border-left: 3px solid #1d8cf8;
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 18px 0;
  font-size: 0.94rem; color: #8fa5c0; max-width: 780px;
}
.callout strong { color: #d0d7e3; }
.callout.warn { border-left-color: #e0a030; }
.callout.do { border-left-color: #3ecf8e; }
.callout p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; margin-top: 8px; max-width: 760px; }
ul.plain li {
  position: relative; padding: 6px 0 6px 28px; color: #a3b1c6; font-size: 0.96rem;
}
ul.plain li::before { content: "✓"; position: absolute; left: 0; color: #3ecf8e; font-weight: 700; }
ul.plain.limit li::before { content: "—"; color: #e0a030; }

table.guide {
  width: 100%; max-width: 780px; border-collapse: collapse;
  margin: 18px 0; font-size: 0.95rem;
}
table.guide th, table.guide td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid #1e2d44;
}
table.guide th {
  color: #d0d7e3; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; background: #131c2e;
}
table.guide td { color: #a3b1c6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.card {
  background: #0f1929; border: 1px solid #1e2d44; border-radius: 14px;
  padding: 24px; transition: border-color .25s;
}
.card:hover { border-color: #2a5a9a; }
.card p { font-size: 0.92rem; color: #8fa5c0; margin-bottom: 10px; }
.card .tag { font-size: 0.78rem; color: #61d0ff; text-transform: uppercase; letter-spacing: 0.05em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none; transition: background .2s;
}
.btn-primary { background: #1d8cf8; color: #fff; }
.btn-primary:hover { background: #3aa1ff; color: #fff; }

footer {
  text-align: center; padding: 44px 0; font-size: 0.82rem; color: #586a82;
  border-top: 1px solid #1e2d44;
}

@media (max-width: 720px) {
  nav ul { display: none; }
  .hero { padding-top: 48px; }
  ol.steps > li { padding-left: 48px; }
}
