.rk-quick-guide {

      /* Brand tokens — see marketing/brand/brand-identity.md */
      --brand-primary: #1F6FB8;
      --brand-primary-100: #DDE9F4;
      --brand-primary-300: #6FA3D0;
      --brand-primary-700: #155080;
      --brand-secondary: #D08A2B;
      --brand-secondary-700: #A66816;

      --ink-900: #1A1F2A;
      --ink-700: #3D4655;
      --ink-500: #6B7280;
      --ink-300: #B4BAC4;
      --surface-50: #F7F8FA;
      --surface-0: #FFFFFF;
      --dark-900: #161B22;

      /* Feature palette (matches the AutoCAD ribbon concept colors) */
      --c-tag: #1F6FB8;
      --c-number: #2D8881;
      --c-connector: #C77036;
      --c-data: #6850B0;
      --c-sync: #2C9A5C;
      --c-weld: #B7472A;
      --c-energy: #D08A2B;
      --c-danger: #C53636;
      --c-neutral: #5D6B7E;

      /* Guide-local aliases (kept so existing markup below still resolves) */
      --bg: var(--surface-50);
      --surface: var(--surface-0);
      --line: #dfe4eb;
      --line-strong: var(--ink-300);
      --text: var(--ink-900);
      --muted: var(--ink-500);
      --blue: var(--brand-primary);
      --green: var(--c-sync);
      --amber: var(--brand-secondary);
      --red: var(--c-danger);
      --nav: var(--ink-700);
      --nav-active: var(--brand-primary-100);
      --shadow: 0 8px 24px rgba(26, 31, 42, 0.08);
      --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
    

      margin: 0;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    
}

/* The shared theme styles `pre, code` as a dark code block. Quick Guide uses
   `<code>` for short inline values, so reset every inherited block-style
   property with a more specific, unscoped rule. */
.rk-quick-guide code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef3f7;
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.92em;
  line-height: inherit;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@scope (.rk-quick-guide) {

    :root {
      /* Brand tokens — see marketing/brand/brand-identity.md */
      --brand-primary: #1F6FB8;
      --brand-primary-100: #DDE9F4;
      --brand-primary-300: #6FA3D0;
      --brand-primary-700: #155080;
      --brand-secondary: #D08A2B;
      --brand-secondary-700: #A66816;

      --ink-900: #1A1F2A;
      --ink-700: #3D4655;
      --ink-500: #6B7280;
      --ink-300: #B4BAC4;
      --surface-50: #F7F8FA;
      --surface-0: #FFFFFF;
      --dark-900: #161B22;

      /* Feature palette (matches the AutoCAD ribbon concept colors) */
      --c-tag: #1F6FB8;
      --c-number: #2D8881;
      --c-connector: #C77036;
      --c-data: #6850B0;
      --c-sync: #2C9A5C;
      --c-weld: #B7472A;
      --c-energy: #D08A2B;
      --c-danger: #C53636;
      --c-neutral: #5D6B7E;

      /* Guide-local aliases (kept so existing markup below still resolves) */
      --bg: var(--surface-50);
      --surface: var(--surface-0);
      --line: #dfe4eb;
      --line-strong: var(--ink-300);
      --text: var(--ink-900);
      --muted: var(--ink-500);
      --blue: var(--brand-primary);
      --green: var(--c-sync);
      --amber: var(--brand-secondary);
      --red: var(--c-danger);
      --nav: var(--ink-700);
      --nav-active: var(--brand-primary-100);
      --shadow: 0 8px 24px rgba(26, 31, 42, 0.08);
      --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    header {
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 5;
    }

    .topbar {
      max-width: 1400px;
      margin: 0 auto;
      padding: 14px 22px;
      display: grid;
      grid-template-columns: auto minmax(220px, 1fr) minmax(260px, 420px);
      gap: 18px;
      align-items: center;
    }

    /* Explicit placement, not auto-flow order — see the .layout comment
       below for why WordPress's rendering pipeline can't be trusted to
       leave exactly three children here. */
    .topbar > .brand-logo { grid-column: 1; grid-row: 1; }
    .topbar > div:not(.search) { grid-column: 2; grid-row: 1; }
    .topbar > .search { grid-column: 3; grid-row: 1; }

    .brand-logo {
      display: block;
      height: 36px;
      width: auto;
      flex: 0 0 auto;
    }

    h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    .subtitle {
      margin-top: 2px;
      color: var(--muted);
      font-size: 13px;
    }

    .search {
      display: grid;
      gap: 5px;
    }

    .search label {
      color: var(--muted);
      font-size: 12px;
    }

    input[type="search"] {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      padding: 9px 11px;
      font-size: 14px;
      background: #fff;
      color: var(--text);
    }

    input[type="search"]:focus {
      outline: 2px solid rgba(29, 95, 143, 0.18);
      border-color: var(--blue);
    }

    .layout {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 260px minmax(0, 1fr);
      gap: 18px;
      padding: 18px 22px 42px;
    }

    /* Explicit placement, not auto-flow order: WordPress's content pipeline
       (wpautop, embeds) can insert a stray whitespace-only element as a
       sibling between the nav and #content in the rendered markup. Without
       explicit grid-column values, auto-placement would push #content onto
       a second row in the nav's narrow column instead of the wide column
       beside it. */
    .layout > nav {
      grid-column: 1;
      grid-row: 1;
    }

    .layout > #content {
      grid-column: 2;
      grid-row: 1;
    }

    nav {
      position: sticky;
      top: 78px;
      align-self: start;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .nav-title {
      padding: 12px 14px;
      font-weight: 650;
      color: var(--nav);
      border-bottom: 1px solid var(--line);
      background: #fbfcfd;
    }

    .nav-link {
      display: block;
      padding: 10px 14px;
      color: var(--nav);
      text-decoration: none;
      border-bottom: 1px solid #eef1f4;
      font-size: 14px;
    }

    .nav-link:hover,
    .nav-link:focus {
      background: var(--nav-active);
      outline: none;
    }

    main {
      display: grid;
      gap: 16px;
    }

    section {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .section-head {
      padding: 16px 18px 12px;
      border-bottom: 1px solid var(--line);
      background: #fbfcfd;
    }

    .section-heading {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-icon {
      width: 28px;
      height: 28px;
      flex: 0 0 auto;
    }

    h2 {
      margin: 0;
      font-size: 21px;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    .section-note {
      margin-top: 5px;
      color: var(--muted);
      font-size: 14px;
    }

    .section-body {
      padding: 16px 18px 18px;
      display: grid;
      gap: 14px;
    }

    .workflow-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .workflow {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 13px;
      background: #fff;
      display: grid;
      gap: 9px;
    }

    .workflow h3 {
      margin: 0;
      font-size: 16px;
      font-weight: 650;
    }

    .workflow p {
      margin: 0;
      color: var(--muted);
    }

    .deep-dive-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .deep-dive-card {
      display: flex;
      flex-direction: column;
      min-height: 190px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .deep-dive-card h3,
    .deep-dive-card p {
      margin: 0;
    }

    .deep-dive-card p {
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
    }

    .deep-dive-card a {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      margin-top: auto;
      padding-top: 14px;
      color: var(--blue);
      font-weight: 650;
      font-size: 14px;
      text-decoration: none;
    }

    .deep-dive-card a:hover,
    .deep-dive-card a:focus {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    ol,
    ul {
      margin: 0;
      padding-left: 21px;
    }

    li {
      margin: 5px 0;
    }

    .command-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      background: #f7fafc;
      color: var(--text);
      font-size: 13px;
      font-family: var(--mono);
    }

    code {
      font-family: var(--mono);
    }

    .status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 27px;
      padding: 4px 8px;
      border-radius: 6px;
      border: 1px solid var(--line);
      background: #fbfcfd;
      font-size: 13px;
      color: var(--muted);
    }

    .swatch {
      width: 12px;
      height: 12px;
      border-radius: 3px;
      border: 1px solid rgba(0, 0, 0, 0.16);
      flex: 0 0 auto;
    }

    .swatch.green { background: #e5f7eb; }
    .swatch.grey { background: #e7ecf2; }
    .swatch.dark { background: #dce3eb; }
    .swatch.amber { background: #ffecbc; }
    .swatch.match { background: #cfebd5; border-color: #95c8a3; }
    .swatch.mismatch { background: #f7b7b0; border-color: #d98178; }
    .swatch.row-mismatch { background: #fff0ee; border-color: #f0c5be; }
    .swatch.row-missing { background: #fff7e6; border-color: #ecd9a8; }
    .swatch.row-duplicate { background: #f3eeff; border-color: #c8b9e8; }

    .shot {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--dark-900);
    }

    .shot img {
      display: block;
      width: 100%;
      height: auto;
    }

    .shot-caption {
      padding: 8px 12px;
      background: var(--surface-0);
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 12.5px;
    }

    .shot-placeholder {
      border: 1.5px dashed var(--line-strong);
      border-radius: 8px;
      background: var(--surface-50);
      padding: 22px 16px;
      display: grid;
      justify-items: center;
      gap: 6px;
      text-align: center;
      color: var(--muted);
    }

    .shot-placeholder .shot-placeholder-icon {
      width: 26px;
      height: 26px;
      opacity: 0.55;
    }

    .shot-placeholder strong {
      color: var(--ink-700);
      font-size: 13px;
      font-weight: 600;
    }

    .shot-placeholder span {
      font-size: 12.5px;
      max-width: 60ch;
    }

    .callout {
      border-left: 4px solid var(--blue);
      background: #f2f7fb;
      padding: 11px 13px;
      color: var(--text);
      border-radius: 6px;
    }

    .callout.warn {
      border-left-color: var(--amber);
      background: #fff8eb;
    }

    .callout.danger {
      border-left-color: var(--red);
      background: #fff2f2;
    }

    .quick-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
    }

    .quick-table th,
    .quick-table td {
      padding: 9px 10px;
      text-align: left;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
    }

    .quick-table th {
      background: #f7fafc;
      color: var(--nav);
      font-weight: 650;
    }

    .quick-table tr:last-child td {
      border-bottom: 0;
    }

    details {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    summary {
      cursor: pointer;
      padding: 11px 13px;
      font-weight: 650;
      background: #fbfcfd;
      border-bottom: 1px solid transparent;
    }

    details[open] summary {
      border-bottom-color: var(--line);
    }

    details > div {
      padding: 12px 13px 14px;
      color: var(--muted);
    }

    .hidden {
      display: none !important;
    }

    .no-results {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 18px;
      color: var(--muted);
      box-shadow: var(--shadow);
    }

    @media (max-width: 900px) {
      .topbar {
        grid-template-columns: auto 1fr;
      }

      .topbar .search {
        grid-column: 1 / -1;
        grid-row: 2;
      }

      .layout {
        grid-template-columns: 1fr;
      }

      .layout > nav {
        grid-column: 1;
        grid-row: 1;
      }

      .layout > #content {
        grid-column: 1;
        grid-row: 2;
      }

      nav {
        position: static;
      }

      .workflow-grid {
        grid-template-columns: 1fr;
      }

      .deep-dive-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 600px) {
      .topbar {
        display: block;
        padding: 16px;
      }

      .topbar > .brand-logo {
        display: none;
      }

      h1 {
        font-size: 20px;
        line-height: 1.25;
      }

      .subtitle {
        margin-top: 5px;
        font-size: 12px;
      }

      .search {
        margin-top: 14px;
      }

      input[type="search"] {
        min-height: 44px;
      }

      .layout {
        padding: 14px 16px 32px;
      }
    }
  
}

.rk-guide-template { margin-block-start: 0; }
.rk-quick-guide > header { top: 64px; }
.admin-bar .rk-quick-guide > header { top: 96px; }
.rk-guide-back { width: min(1400px, calc(100% - 44px)); margin: 18px auto 0; }
.rk-guide-back a { display: inline-flex; min-height: 40px; align-items: center; font-size: 14px; font-weight: 600; }

@media (max-width: 600px) {
  .rk-quick-guide > header { position: static; }
  .rk-guide-back { width: calc(100% - 32px); margin-top: 12px; }
}

