/* PulsedMC guides (/forums/), in the main site's look. The header and footer come
   from v2/shell.js + v2/theme.css, which nginx adds; this file styles what is
   between them. Built by public/pages/forums/build-site.mjs. */
:root {
  --bg: #15151c; --bg-2: #1b1b24; --card: #20202b; --card-2: #262634; --line: #2e2e3d;
  --text: #e9e9f1; --text-2: #b8b8c8; --muted: #8a8a9c;
  --yellow: #f5c518; --yellow-2: #c79c00; --red: #f87171;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
body.gd { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.gd a { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.gd-wrap { max-width: 1180px; margin: 0 auto; padding: 48px 24px 80px; box-sizing: border-box; }
.gd h1 { font: 900 clamp(34px, 5vw, 52px)/1.08 var(--head); color: #fff; margin: 0 0 14px; letter-spacing: -.01em; }

/* ── index ─────────────────────────────────────────────── */
.gd-search { display: block; max-width: 520px; margin: 22px 0 8px; }
.gd-search input {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); border: 2px solid var(--line); color: #fff; font: 500 16px var(--body);
}
.gd-search input:focus { outline: none; border-color: var(--yellow); }
.gd-group { margin-top: 44px; }
.gd-group h2, .gd-more h2 { font: 800 22px/1.2 var(--head); color: #fff; margin: 0 0 16px; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.gd-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 18px 20px;
  transition: border-color .15s, transform .15s;
}
.gd-card:hover, .gd-card:focus-visible { border-color: var(--yellow); transform: translateY(-2px); outline: none; }
.gd-card-t { font: 700 18px/1.3 var(--head); color: #fff; }
.gd-card-d { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.gd-card.has-art { padding: 0 0 18px; overflow: hidden; }
.gd-card.has-art img { width: 100%; height: auto; aspect-ratio: 616 / 300; object-fit: cover; display: block; margin-bottom: 10px; }
.gd-card.has-art .gd-card-t, .gd-card.has-art .gd-card-d { padding: 0 20px; }
.gd-none { margin-top: 30px; color: var(--text-2); }

/* ── a guide ───────────────────────────────────────────── */
.gd-crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.gd-crumbs a { color: var(--text-2); text-decoration: none; }
.gd-crumbs a:hover { color: var(--yellow); }
.gd-crumbs span { margin: 0 6px; }
.gd-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 56px; align-items: start; }
.gd-meta { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.gd-article { min-width: 0; }
.gd-sec { padding-top: 22px; scroll-margin-top: 90px; }
.gd-article h2 { font: 800 26px/1.25 var(--head); color: #fff; margin: 22px 0 12px; }
.gd-article h3 { font: 700 19px/1.3 var(--head); color: #fff; margin: 26px 0 8px; }
.gd-article p { margin: 0 0 16px; color: var(--text); }
.gd-article ul, .gd-article ol { margin: 0 0 16px; padding-left: 22px; }
.gd-article li { margin-bottom: 6px; }
.gd-article b, .gd-article strong { color: #fff; }
.gd-article a { text-decoration: underline; text-underline-offset: 3px; }
.gd-article code { font: 500 .88em var(--mono); background: var(--card-2); border-radius: 6px; padding: 2px 6px; color: #fff; overflow-wrap: anywhere; }
.gd-article .ui { font-weight: 700; color: #fff; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .92em; white-space: nowrap; }

/* code blocks */
.gd-article .code { position: relative; margin: 0 0 18px; background: #0f0f15; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gd-article .code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gd-article .code-bar .name { font-weight: 600; }
.gd-article pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 14px/1.6 var(--mono); color: #e6e6ee; }
.gd-article pre .y { color: var(--yellow); } .gd-article pre .g { color: #6ee7a0; }
.gd-article pre .r { color: var(--red); } .gd-article pre .c { color: var(--muted); } .gd-article pre .b { color: #8ab4ff; }
.gd-copy { background: var(--card-2); border: 0; color: var(--text-2); font: 600 12.5px var(--body); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.gd-copy:hover { color: #fff; }

/* notes and warnings: a plain box with a coloured edge */
.gd-article .note, .gd-article .warn { margin: 0 0 18px; padding: 14px 18px; border-radius: 10px; background: var(--card); border-left: 4px solid var(--yellow); }
.gd-article .warn { border-left-color: var(--red); }
.gd-article .note .lbl, .gd-article .warn .lbl { display: block; font-weight: 700; color: #fff; margin-bottom: 4px; }
.gd-article .note p:last-child, .gd-article .warn p:last-child { margin-bottom: 0; }

/* tables */
.gd-article .table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.gd-article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gd-article th { text-align: left; font-weight: 700; color: #fff; background: var(--card); padding: 10px 14px; }
.gd-article td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }

/* questions */
.gd-article .faq { margin: 0 0 18px; display: grid; gap: 8px; }
.gd-article details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.gd-article summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: #fff; list-style: none; position: relative; padding-right: 44px; }
.gd-article summary::-webkit-details-marker { display: none; }
.gd-article summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--yellow); font-size: 22px; font-weight: 600; }
.gd-article details[open] summary::after { content: "\2212"; }
.gd-article details .body { padding: 0 18px 14px; }

/* "still stuck" */
.gd-article .support-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 0; padding: 18px 20px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; }
.gd-article .support-strip .txt { display: grid; gap: 2px; flex: 1 1 260px; }
.gd-article .support-strip b { font-size: 17px; }
.gd-article .support-strip span { color: var(--text-2); font-size: 15px; }
.gd-article .support-strip .btn {
  display: inline-block; text-decoration: none; background: var(--yellow); color: #17130a; font-weight: 800; font-size: 15px;
  padding: 11px 18px; border-radius: 10px; box-shadow: 0 4px 0 var(--yellow-2);
}

/* table of contents */
.gd-toc { position: sticky; top: 100px; font-size: 14.5px; }
.gd-toc p { font-weight: 700; color: #fff; margin: 0 0 10px; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.gd-toc li { margin: 0; }
.gd-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.gd-toc a:hover { color: #fff; }
.gd-toc a.is-on { color: var(--yellow); border-left-color: var(--yellow); }

.gd-more { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

@media (max-width: 1060px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .gd-toc { display: none; }
}
@media (max-width: 640px) {
  .gd-wrap { padding: 32px 16px 60px; }
  body.gd { font-size: 16px; }
  .gd-article h2 { font-size: 22px; }
}
