:root {
  /* ── LiveJudge brand: charcoal (logo mark) + gold (wordmark) ── */
  --charcoal: #24262c;        /* logo mark charcoal — number badges, fills */
  --charcoal-dark: #16171b;
  --gold: #f4a621;            /* brand gold — buttons, bullets, highlights */
  --gold-deep: #d1860d;       /* hover / deeper gold */
  --gold-text: #98690a;       /* accessible gold for small text + links on white */
  --gold-tint: #fdf3da;       /* soft gold wash */
  --gold-border: #f0dca6;

  /* --accent = charcoal fills; --accent text usages resolve to gold via overrides below */
  --accent: #98690a;          /* text accent (eyebrows, links) = gold-text */
  --accent-dark: #d1860d;     /* hover */
  --accent-tint: #fdf3da;     /* gold wash for small chips */

  --ink: #23252b;
  --ink-soft: #3b3e46;
  --muted: #6b7078;
  --page-bg: #f7f7f4;         /* warm off-white */
  --card-bg: #ffffff;
  --card-border: #e8e6e0;     /* warm gray */
  --chip-bg: #f0efe9;
  --tip: #0f9d6b;   --tip-bg: #e9f8f1;   --tip-border: #bfe9d7;
  --warn: #c26016;  --warn-bg: #fdf1e6;  --warn-border: #f3d6b3;   /* orange — distinct from brand gold */
  --note: #b07d0d;  --note-bg: #fdf3da;  --note-border: #f0dca6;   /* brand-gold note callout */
  --maxw: 780px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ── brand overrides: charcoal fills, gold buttons/bullets ──
   (kept in one place so the palette above stays the single source of truth) */
.section-badge, .stepcard__num, .flow__n, .shot__tag { background: var(--charcoal) !important; }
.blk-list li::before { background: var(--gold); }
.btn, .topnav__print { background: var(--gold); color: var(--charcoal) !important; }
.btn:hover, .topnav__print:hover { background: var(--gold-deep); color: var(--charcoal) !important; }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page-bg); color: var(--ink);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ── top nav ── */
.topnav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--card-border);
  position: sticky; top: 0; z-index: 10;
}
.topnav__brand { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }
.topnav__logo { height: 30px; width: auto; display: block; }
.topnav__pkg { justify-self: center; font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 20px; letter-spacing: -.01em; }
.topnav__print { justify-self: end; background: var(--gold); color: var(--charcoal) !important; font-weight: 700; padding: 8px 15px; border-radius: 9px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.topnav__print:hover { background: var(--gold-deep); color: var(--charcoal) !important; }
@media (max-width: 560px) {
  .topnav { padding: 10px 14px; gap: 8px; }
  .topnav__logo { height: 24px; }
  .topnav__pkg { font-size: 17px; }
  .topnav__print { padding: 7px 12px; font-size: 12px; }
}

.page { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 88px; }

/* ── cover ── */
.cover { text-align: center; padding: 56px 0 28px; }
.cover__kicker { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0; }
.cover__title { font-size: 52px; font-weight: 850; margin: 12px 0 12px; letter-spacing: -.03em; line-height: 1.03; }
.cover__tagline { color: var(--ink-soft); font-size: 19px; max-width: 34ch; margin: 0 auto 14px; }
.cover__version { color: var(--muted); font-size: 14px; margin: 0; }

/* ── welcome letter ── */
.letter { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 32px 36px; margin: 16px 0 36px; box-shadow: 0 1px 3px rgba(30,34,51,.04); }
.letter__eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
.letter p { margin: 0 0 16px; }
.letter__name { font-weight: 700; margin-top: 22px; }
.letter__name span { font-weight: 400; color: var(--muted); }

/* ── table of contents ── */
.toc { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(30,34,51,.04); }
.toc__head { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.toc__head--2 { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--card-border); }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__list li { margin: 0 0 4px; }
.toc__list a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; align-items: baseline; gap: 12px; padding: 7px 0; }
.toc__list a:hover { color: var(--accent); }
.toc__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.toc__list--verticals li { padding: 10px 0; border-bottom: 1px dashed var(--card-border); }
.toc__list--verticals li:last-child { border-bottom: 0; }
.toc__list--verticals a { font-weight: 700; padding: 0; }
.toc__blurb { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.toc__print { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--card-border); }
.toc__print a { font-weight: 700; text-decoration: none; }

/* ── page kicker / intro (guide + vertical pages) ── */
.page-kicker { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 4px 0 0; }
.page-kicker a { text-decoration: none; }
.page-intro { color: var(--muted); font-size: 17px; margin: 8px 0 8px; max-width: 60ch; }

/* ── Part 1 / Part 2 toggle tiles (follow the nav) ── */
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 26px; }
.part-tile { text-align: left; cursor: pointer; font-family: inherit; background: #fff; border: 1.5px solid var(--card-border); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; transition: border-color .12s, box-shadow .12s, transform .12s; }
.part-tile:hover { border-color: var(--gold); }
.part-tile.is-active { border-color: var(--charcoal); box-shadow: 0 3px 12px rgba(36,38,44,.12); }
.part-tile__num { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-text); }
.part-tile__title { font-size: 21px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.part-tile__sub { font-size: 13px; color: var(--muted); }
.part-tile:not(.is-active) { opacity: .82; }
@media (max-width: 480px) {
  .part-tile { padding: 13px 15px; }
  .part-tile__title { font-size: 17px; }
  .part-tile__sub { display: none; }
}

/* ── accordion (collapsible sections on /guide/, single-open) ── */
.acc { border: 1px solid var(--card-border); border-radius: 16px; background: #fff; margin: 14px 0; box-shadow: 0 1px 3px rgba(30,34,51,.04); overflow: hidden; }
.acc__sum { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; scroll-margin-top: 100px; }
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover .section-title { color: var(--accent); }
.acc__sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.acc__sum .section-badge { width: 46px; height: 46px; font-size: 21px; }
.acc__sum .section-eyebrow { margin: 0 0 3px; }
.acc__sum .section-title { margin: 0 0 5px; font-size: 22px; transition: color .12s; }
.acc__sum .section-subtitle { font-size: 15px; }
.acc__chev { flex: 0 0 auto; width: 11px; height: 11px; margin: 9px 2px 0 0; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .18s; }
.acc[open] .acc__chev { transform: rotate(-135deg); margin-top: 14px; }
.acc[open] .acc__sum { border-bottom: 1px solid var(--card-border); }
.acc__body { padding: 22px; }
.acc__body > :first-child { margin-top: 0; }
.acc__body > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .acc__sum { padding: 16px; gap: 14px; }
  .acc__sum .section-badge { width: 40px; height: 40px; font-size: 18px; }
  .acc__sum .section-title { font-size: 19px; }
  .acc__body { padding: 18px; }
}

/* ── section header ── */
.section-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--card-border); margin: 48px 0 26px; scroll-margin-top: 130px; }
.section-badge {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 850; font-size: 26px;
  display: grid; place-items: center; letter-spacing: -.02em; box-shadow: 0 4px 12px rgba(36,38,44,.22);
}
.section-eyebrow { margin: 2px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-title { margin: 0 0 8px; font-size: 30px; font-weight: 850; letter-spacing: -.02em; line-height: 1.14; }
.section-subtitle { margin: 0; color: var(--muted); max-width: 62ch; font-size: 16px; }

/* ── content blocks ── */
.blk-lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 20px; }
.blk-p { margin: 0 0 16px; }
.blk-h { font-size: 18px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.01em; }
.blk-list, .blk-steps { margin: 0 0 18px; padding-left: 22px; }
.blk-list li, .blk-steps li { margin: 0 0 8px; }
.blk-list { list-style: none; padding-left: 0; }
.blk-list li { position: relative; padding-left: 26px; }
.blk-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── callouts ── */
.callout { border: 1px solid var(--note-border); background: var(--note-bg); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.callout__title { margin: 0 0 5px; font-weight: 800; font-size: 15px; }
.callout__text { margin: 0; color: var(--ink-soft); }
.callout--tip { background: var(--tip-bg); border-color: var(--tip-border); }
.callout--tip .callout__title { color: var(--tip); }
.callout--warning { background: var(--warn-bg); border-color: var(--warn-border); }
.callout--warning .callout__title { color: var(--warn); }
.callout--note { background: var(--note-bg); border-color: var(--note-border); }
.callout--note .callout__title { color: var(--note); }

/* ── checklist ── */
.checklist { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 18px 22px; margin: 24px 0; box-shadow: 0 1px 3px rgba(30,34,51,.04); }
.checklist__title { margin: 0 0 12px; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.checklist__items { margin: 0; padding: 0; list-style: none; }
.checklist__items li { position: relative; padding: 6px 0 6px 32px; }
.checklist__items li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d6b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── overview stepper (the "path to launch") ── */
.flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 20px; padding: 16px 20px; background: var(--accent-tint); border: 1px solid var(--note-border); border-radius: 14px; }
.flow__node { display: inline-flex; align-items: center; gap: 9px; }
.flow__n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.flow__label { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.flow__node:not(:last-child)::after { content: "\2192"; margin-left: 10px; color: var(--accent); font-weight: 800; }

/* ── rich step card ── */
.stepcard { display: flex; gap: 18px; background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px; margin: 16px 0; box-shadow: 0 1px 3px rgba(30,34,51,.04); }
.stepcard__num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 850; font-size: 19px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(36,38,44,.22); }
.stepcard__body { flex: 1; min-width: 0; }
.stepcard__title { margin: 4px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.stepcard__what { margin: 0 0 14px; color: var(--muted); }
.stepcard__how { margin: 0 0 14px; padding-left: 20px; }
.stepcard__how li { margin: 0 0 7px; }
.stepcard__note { margin: 0 0 14px; font-size: 14px; color: var(--muted); background: var(--page-bg); border-left: 3px solid var(--card-border); padding: 9px 13px; border-radius: 0 8px 8px 0; }
.stepcard__done { display: inline-flex; align-items: center; gap: 9px; margin: 4px 0 0; font-size: 14px; color: var(--tip); font-weight: 600; }
.stepcard__done span { background: var(--tip-bg); border: 1px solid var(--tip-border); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

/* ── screenshot slot (real image, or a placeholder until you drop one in) ── */
.shot { margin: 2px 0 16px; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--card-border); border-radius: 12px; }
.shot__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 28px 16px; border: 2px dashed #cdd2e6; border-radius: 12px; color: #8a90a2; background: repeating-linear-gradient(-45deg, #f6f7fb, #f6f7fb 10px, #eff1f8 10px, #eff1f8 20px); }
.shot__tag { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.shot__ph code { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.shot__ph em { font-size: 12px; }

@media (max-width: 600px) {
  .stepcard { padding: 18px; gap: 14px; }
  .stepcard__num { width: 34px; height: 34px; font-size: 16px; }
}

/* ── scenario / Q&A card ── */
.qa { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 18px 22px; margin: 14px 0; box-shadow: 0 1px 3px rgba(30,34,51,.04); }
.qa__q { display: flex; align-items: baseline; gap: 11px; margin: 0 0 9px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.qa__mark { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 800; display: grid; place-items: center; transform: translateY(2px); }
.qa__qt { flex: 1; }
.qa__flag { flex: 0 0 auto; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; align-self: flex-start; }
.qa__a { margin: 0; color: var(--ink-soft); padding-left: 35px; }
.qa__a p { margin: 0 0 10px; }
.qa__a p:last-child { margin-bottom: 0; }
.qa__tip { display: flex; align-items: baseline; gap: 9px; margin: 12px 0 0 35px; font-size: 14px; color: var(--tip); }
.qa__tip span { flex: 0 0 auto; background: var(--tip-bg); border: 1px solid var(--tip-border); color: var(--tip); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.qa--pending { background: #fffdf8; border-color: var(--warn-border); }
.qa--pending .qa__a { color: var(--muted); font-style: italic; }
@media (max-width: 600px) {
  .qa__a, .qa__tip { padding-left: 0; margin-left: 0; }
}

/* ── "to write" placeholder (screen only) ── */
.todo { display: flex; gap: 10px; align-items: baseline; background: repeating-linear-gradient(-45deg, #fbfaf5, #fbfaf5 8px, #f5f3ea 8px, #f5f3ea 16px); border: 1px dashed #d9cfa6; border-radius: 10px; padding: 12px 16px; margin: 16px 0; color: #7a6a2f; font-size: 14px; }
.todo__tag { flex: 0 0 auto; background: #b4690e; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }

/* ── guide section spacing ── */
.guide-section:first-of-type .section-head { margin-top: 20px; }

/* ── vertical index (bottom of guide + home) ── */
.vertical-index { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.vertical-index__item a { display: block; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 20px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(30,34,51,.04); transition: border-color .12s, transform .12s; }
.vertical-index__item a:hover { border-color: var(--accent); transform: translateY(-1px); }
.vertical-index__title { display: block; font-weight: 800; font-size: 17px; }
.vertical-index__blurb { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* ── buttons + bottom nav ── */
.btn { display: inline-block; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 10px; }
.btn:hover { background: var(--accent-dark); }
.page-print { margin-top: 44px; text-align: center; }
.vertical-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--card-border); }
.vertical-nav > a:first-child { font-weight: 700; text-decoration: none; }

/* ── footer ── */
.pagefoot { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 48px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.pagefoot__brand { font-weight: 800; color: var(--ink); }
.brand-accent { color: var(--accent); }

@media (max-width: 600px) {
  .cover__title { font-size: 38px; }
  .letter, .toc { padding: 24px 22px; }
  .section-title { font-size: 25px; }
}
