/* Guide-only reading surfaces;
shared site navigation and brand assets stay intact. */
@font-face {
  font-family:Guide Encore;
  src:url('homepage/fonts/exo2-bold-latin.woff2') format('woff2');
  font-weight:700;
  font-display:swap;
}
body.guide-body {
  --guide-primary:#6349d1;
  --guide-cyan:#acf4f0;
  --guide-bg:#09090d;
  --guide-nav-height:88px;
  background:radial-gradient(ellipse at 0 0,#6349d12e,transparent 55rem),radial-gradient(ellipse at 100% 18rem,#f0319b12,transparent 45rem),var(--guide-bg);
  background-attachment:scroll;
  color:var(--text);
}
body.guide-body::before {
  display:none;
}
.guide-body .container {
  width:min(1440px,calc(100% - 80px));
  padding:36px 0 0;
}
.guide-body .riff-navigation {
  background:#0b0a14f5;
}
.guide-body .guide-page {
  max-width:none;
  margin:0;
  overflow:visible;
}
.guide-page [hidden] {
  display:none!important;
}
.guide-page {
  font-size:16px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.guide-page * {
  box-sizing:border-box;
}
.guide-page :is(a,button,input,summary):focus-visible {
  outline:2px solid var(--guide-cyan);
  outline-offset:4px;
}
.guide-page button {
  font:inherit;
  cursor:pointer;
}
.guide-page a {
  transition:color .16s,border-color .16s,background .16s;
}
.guide-page a:hover {
  color:white;
}
.guide-page .eyebrow {
  font:11px/1.6 monospace;
  letter-spacing:.15em;
  color:#bfb4d5;
  text-transform:uppercase;
}
.guide-skip {
  position:fixed;
  top:12px;
  left:12px;
  z-index:11000;
  transform:translateY(-200%);
  padding:12px 20px;
  background:#161320;
  color:white;
}
.guide-skip:focus {
  transform:none;
}
.guide-page .guide-hero {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  align-items:center;
  gap:32px;
  padding:36px 40px 40px;
  background:radial-gradient(ellipse at 86% 25%,#6349d133,transparent 55%),linear-gradient(110deg,#12101ce6,#17102180);
  border:1px solid #b9a0ec26;
  border-radius:4px;
  box-shadow:none;
  overflow:hidden;
  margin:0 0 28px;
  animation:guide-enter .35s ease-out;
}
.guide-hero-copy {
  position:relative;
  z-index:1;
}
.guide-page .guide-hero h1 {
  font-family:Guide Encore,Arial,sans-serif;
  font-weight:700;
  font-size:clamp(36px,4.1vw,62px);
  line-height:1.06;
  letter-spacing:-.035em;
  margin:16px 0 20px;
  max-width:1000px;
}
.guide-hero h1 span {
  background:linear-gradient(100deg,#d5c5ff,#f5a5d4 80%);
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.guide-page.staff-guide .guide-hero h1 {
  font-size:clamp(32px,3.6vw,52px);
}
.guide-page .guide-hero p:not(.eyebrow) {
  max-width:620px;
  color:#c6c2d2;
  margin:0 0 24px;
  line-height:1.7;
}
.guide-hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.guide-hero-actions a {
  display:inline-flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  padding:10px 16px;
  border:1px solid #a899ce4d;
  border-radius:4px;
  color:#efe7ff;
  text-decoration:none;
  font-size:14px;
}
.guide-hero-actions a:first-child {
  background:#6349d133;
}
.guide-hero-actions a:hover {
  background:#6349d15c;
  border-color:#c8b3f5;
}
.guide-hero-art {
  position:relative;
  display:grid;
  place-items:center;
  min-width:0;
  height:240px;
}
.guide-hero-art img {
  width:174px;
  height:174px;
  object-fit:contain;
  filter:drop-shadow(0 8px 28px #0008);
}
.guide-orbit {
  position:absolute;
  inset:28px -25px;
  border:1px solid #bc9be339;
  border-radius:50%;
  transform:rotate(-28deg);
  pointer-events:none;
}
.guide-orbit:after {
  content:'';
  position:absolute;
  inset:20px -8px;
  border:1px solid #bc9be31a;
  border-radius:50%;
}
.guide-note {
  position:absolute;
  right:12px;
  top:4px;
  color:var(--warning);
  font-size:28px;
}
.guide-art-caption {
  font:9px/1.6 monospace;
  letter-spacing:.17em;
  color:#bfb4d5;
  text-align:center;
}
.guide-start {
  margin:0 0 28px;
}
.guide-start h2 {
  font-size:17px;
  margin:0 0 12px;
}
.guide-start>div {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.guide-start a {
  display:flex;
  gap:12px;
  align-items:center;
  min-height:58px;
  padding:12px 16px;
  border:1px solid #9b89be33;
  background:#13101d;
  color:#e5ddef;
  text-decoration:none;
  border-radius:4px;
  font-size:14px;
}
.guide-start a span {
  color:#a49bb8;
  font:11px monospace;
}
.guide-start a:hover {
  border-color:var(--guide-cyan);
  background:#19182a;
}
.guide-search {
  margin:0 0 36px;
  padding:24px 0;
  border-top:1px solid #a899ce26;
  border-bottom:1px solid #a899ce26;
}
.guide-search label {
  font-weight:700;
  display:block;
  margin-bottom:10px;
}
.guide-search-field {
  display:flex;
  align-items:center;
  gap:12px;
  background:#15121f;
  border:1px solid #a899ce50;
  border-radius:5px;
  padding:0 14px;
  max-width:780px;
}
.guide-search-field>span {
  font-size:28px;
  color:var(--guide-cyan);
}
.guide-search input {
  min-width:0;
  flex:1;
  width:100%;
  height:52px;
  background:transparent;
  border:0;
  color:#f4f4f7;
  padding:10px 0;
  font:inherit;
  box-shadow:none;
}
.guide-search input::placeholder {
  color:#aaa2ba;
}
.guide-search-clear {
  background:transparent;
  border:0;
  color:var(--guide-cyan);
  min-height:44px;
  min-width:44px;
}
.guide-search #guide-search-hint {
  font-size:13px;
  color:#b0a9bf;
  margin:10px 0 0;
}
.guide-search-count:empty {
  display:none;
}
.guide-search-count {
  font-size:14px;
  margin:14px 0 0;
  color:#d8cdef;
}
#guide-search-results {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
#guide-search-results a {
  display:block;
  padding:14px 18px;
  background:#15121f;
  border:1px solid #a899ce30;
  border-radius:4px;
  text-decoration:none;
  color:#e3dcea;
  min-width:0;
}
#guide-search-results strong {
  display:block;
  color:var(--guide-cyan);
  font-size:14px;
}
#guide-search-results span {
  display:block;
  font-size:13px;
  margin-top:4px;
  line-height:1.6;
}
#guide-search-results a:hover {
  border-color:var(--guide-cyan);
}
.guide-page .guide-layout {
  grid-template-columns:230px minmax(0,1fr);
  gap:40px;
}
.guide-page .guide-toc {
  top:calc(var(--guide-nav-height) + 20px);
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  max-height:calc(100dvh - var(--guide-nav-height) - 40px);
  overflow:auto;
  scrollbar-width:thin;
}
.guide-toc nav {
  display:grid;
  gap:2px;
  padding:2px 6px 8px 2px;
}
.guide-toc strong {
  display:block;
  color:#a9a0bb;
  text-transform:uppercase;
  font:11px/1.6 monospace;
  letter-spacing:.16em;
  padding:0 12px 12px;
}
.guide-page .guide-toc a {
  min-height:44px;
  display:flex;
  align-items:center;
  border-left:2px solid transparent;
  border-radius:0;
  padding:10px 12px;
  font-size:13px;
  color:#b9b1c7;
}
.guide-page .guide-toc a[aria-current="location"] {
  background:#6349d122;
  color:#f0eaff;
  border-left-color:#c29aff;
}
.guide-topic-toggle {
  width:100%;
  min-height:48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  background:#181322;
  color:white;
  border:1px solid #86769e55;
  border-radius:4px;
}
.guide-page .guide-content {
  gap:28px;
}
.guide-page .guide-section {
  padding:32px 36px;
  border-radius:5px;
  background:linear-gradient(115deg,#17132080,#111017c9);
  border:1px solid #a899ce26;
  scroll-margin-top:calc(var(--guide-nav-height) + 24px);
}
.guide-page .guide-section-heading {
  align-items:flex-start;
  gap:18px;
  margin-bottom:28px;
}
.guide-page .guide-section-heading>span {
  background:transparent;
  border:1px solid #9a87bf55;
  border-radius:50%;
  color:#cfb7ff;
  font:13px monospace;
  flex-basis:40px;
  width:40px;
  height:40px;
}
.guide-page .guide-section-heading h2 {
  font-family:Guide Encore,Arial,sans-serif;
  font-size:clamp(23px,2vw,30px);
  line-height:1.25;
  margin:5px 0 0;
  letter-spacing:-.025em;
}
.guide-page .guide-section h3 {
  font-size:18px;
  line-height:1.5;
  margin:30px 0 14px;
}
.guide-page .guide-section p,.guide-page .guide-section li {
  color:#cdc7d8;
  line-height:1.8;
}
.guide-page .guide-section strong {
  color:#f0eaf7;
}
.guide-page .guide-section a {
  color:var(--guide-cyan);
  text-underline-offset:4px;
}
.guide-page .guide-section li+li {
  margin-top:10px;
}
.guide-page code {
  color:#dec4ff;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:.88em;
  line-height:1.7;
}
.guide-page .guide-callout {
  border:0;
  border-left:2px solid var(--guide-cyan);
  background:#acf4f008;
  border-radius:0;
  padding:16px 20px;
  margin:18px 0;
  color:#d4d0df;
}
.guide-page .guide-callout.accent {
  border-left-color:#c29aff;
  background:#6349d110;
}
.guide-page .guide-card-grid,.guide-page .guide-workflow-grid {
  gap:14px;
}
.guide-page .guide-card-grid article,.guide-page .guide-workflow-grid article {
  background:#17131f;
  border:1px solid #a899ce26;
  border-radius:4px;
  padding:20px;
}
.guide-page .guide-card-grid article>strong {
  font-size:15px;
}
.guide-page .guide-card-grid p {
  font-size:15px;
}
.guide-page .guide-workflow-grid h3 {
  margin-top:0;
}
.guide-page ol:not(.guide-steps) {
  padding-left:26px;
}
.guide-page ol:not(.guide-steps)>li {
  padding-left:8px;
}
.guide-page ol:not(.guide-steps)>li::marker {
  color:#c9a8ff;
  font-weight:700;
}
.guide-page .guide-steps {
  padding:0;
  gap:0;
}
.guide-page .guide-steps li {
  background:transparent;
  border:0;
  border-bottom:1px solid #a899ce26;
  border-radius:0;
  padding:18px 0;
  gap:16px;
  margin:0;
}
.guide-page .guide-steps li>span {
  color:var(--guide-cyan);
  background:#acf4f00b;
  border:1px solid #acf4f035;
  border-radius:50%;
  font-size:12px;
}
.guide-page .guide-example {
  border:1px solid #9b81bc66;
  border-left:3px solid #c29aff;
  background:#0c0a12;
  border-radius:4px;
  padding:20px;
}
.guide-page .guide-example>strong {
  font:11px monospace;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#b9adc9;
}
.guide-page .command-table-wrap {
  border:1px solid #a899ce30;
  border-radius:4px;
  overflow:visible;
}
.guide-page .command-table {
  table-layout:fixed;
  background:#0d0c13;
  font-size:14px;
}
.guide-page .command-table th,.guide-page .command-table td {
  padding:16px;
  white-space:normal;
  overflow-wrap:anywhere;
  border-color:#a899ce26;
  min-width:0;
  line-height:1.7;
}
.guide-page .command-table th {
  background:#1e182a;
  color:#bcb1d0;
  font-size:10px;
}
.guide-page .command-table tr:hover td {
  background:#b59add05;
}
.guide-page .command-table td code {
  font-size:13px;
}
.guide-page .access-badge {
  max-width:100%;
  width:fit-content;
  white-space:normal;
  line-height:1.6;
  border-radius:3px;
  padding:4px 8px;
  font-size:10px;
  border:1px solid currentColor;
}
.guide-page .access-badge.staff {
  color:#acf4f0;
  background:#acf4f010;
}
.guide-page .access-badge.owner {
  color:#f8c975;
  background:#f8c97510;
}
.guide-page .access-badge.optional {
  color:#d4beff;
  background:#d4beff10;
}
.guide-page .guide-badge-row {
  max-width:none;
  margin:0 0 28px;
  font-size:13px;
  gap:10px 16px;
  color:#c3bacf;
}
.guide-page .guide-danger td {
  background:#f8c97508;
}
.guide-page .guide-danger td:last-child {
  border-left:2px solid #e5b16b;
}
.guide-command {
  display:inline;
  white-space:normal;
}
.guide-page .guide-copy {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  min-width:44px;
  min-height:44px;
  padding:4px 8px;
  margin:2px 0 2px 8px;
  font-size:11px;
  color:#bcb0ce;
  background:transparent;
  border:1px solid #a899ce30;
  border-radius:4px;
}
.guide-page .guide-copy:hover {
  color:var(--guide-cyan);
  border-color:var(--guide-cyan);
}
.guide-copy-status {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 32px);
  z-index:10003;
  border:1px solid #b89acf;
  background:#20172e;
  color:white;
  padding:12px 20px;
  border-radius:5px;
  box-shadow:0 8px 35px #0008;
}
.guide-copy-status:empty {
  display:none;
}
.guide-page .guide-faq details {
  border:1px solid #a899ce30;
  border-radius:4px;
  background:#15121d;
  padding:0;
}
.guide-page .guide-faq summary {
  padding:18px 20px;
  min-height:58px;
  font-size:15px;
  color:#eee7f5;
}
.guide-page .guide-faq details[open] {
  border-color:#9b81bc88;
}
.guide-page .guide-faq details[open] summary {
  color:var(--guide-cyan);
  border-bottom:1px solid #a899ce26;
}
.guide-page .guide-faq p {
  padding:4px 20px 18px;
  margin:12px 0 0;
}
.guide-page [id] {
  scroll-margin-top:calc(var(--guide-nav-height) + 24px);
}
.guide-page .guide-end {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #a899ce30;
  margin-top:44px;
  padding:28px 0;
  color:#b1a5c1;
  font-size:14px;
}
.guide-end a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--guide-cyan);
}
.guide-body .site-legal-footer {
  border-top:1px solid #a899ce20;
  background:#09090d;
  margin:0;
  padding:24px 20px 32px;
  gap:12px;
}
.guide-body .site-legal-footer a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#bcb2ca;
  font-size:13px;
}
@keyframes guide-enter {
  from {
    transform:translateY(5px);
  }
  to {
    transform:translateY(0);
  }
}
@media(min-width:1600px) {
  .guide-page .guide-layout {
    grid-template-columns:250px minmax(0,1fr);
    gap:56px;
  }
  .guide-page .guide-section {
    padding:40px 48px;
  }
}
@media(max-width:1050px) {
  .guide-body .container {
    width:calc(100% - 40px);
    padding-top:24px;
  }
  .guide-page .guide-layout {
    grid-template-columns:1fr;
    gap:20px;
  }
  .guide-page .guide-toc {
    position:static;
    max-height:none;
    overflow:visible;
  }
  .guide-toc nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:10px;
  }
  .guide-toc strong {
    grid-column:1/-1;
  }
  .guide-page.guide-enhanced .guide-topic-toggle {
    display:flex;
  }
  .guide-page.guide-enhanced .guide-toc nav:not(.is-open) {
    display:none;
  }
  .guide-page .guide-hero {
    grid-template-columns:minmax(0,1fr) 160px;
    padding:28px;
    gap:20px;
  }
  .guide-hero-art {
    height:180px;
  }
  .guide-hero-art img {
    width:130px;
    height:130px;
  }
  .guide-art-caption {
    font-size:8px;
  }
  .guide-start>div {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .guide-page .guide-section {
    padding:28px;
  }
  .guide-page .guide-card-grid,.guide-page .guide-workflow-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px) {
  .guide-body .container {
    width:calc(100% - 28px);
    padding-top:16px;
  }
  .guide-page .guide-hero {
    display:block;
    padding:24px 20px;
  }
  .guide-hero-art {
    display:none;
  }
  .guide-page .guide-hero h1 {
    font-size:36px;
  }
  .guide-page.staff-guide .guide-hero h1 {
    font-size:32px;
  }
  .guide-hero-actions {
    display:grid;
  }
  .guide-hero-actions a {
    font-size:13px;
  }
  .guide-start>div {
    gap:8px;
  }
  .guide-start a {
    padding:12px;
    font-size:13px;
  }
  .guide-start a span {
    display:none;
  }
  .guide-page .guide-section {
    padding:24px 18px;
  }
  .guide-page .guide-section-heading {
    gap:12px;
  }
  .guide-page .guide-section-heading>span {
    flex-basis:32px;
    width:32px;
    height:32px;
    font-size:11px;
  }
  .guide-page .eyebrow {
    font-size:10px;
  }
  .guide-page .guide-section-heading h2 {
    font-size:23px;
  }
  .guide-page .guide-card-grid,.guide-page .guide-workflow-grid {
    grid-template-columns:1fr;
  }
  .guide-toc nav {
    grid-template-columns:1fr;
  }
  .guide-page .guide-callout {
    padding:14px;
  }
  .guide-page .command-table,.guide-page .command-table tbody,.guide-page .command-table tr,.guide-page .command-table td {
    display:block;
    width:100%;
  }
  .guide-page .command-table thead {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  .guide-page .command-table tr {
    padding:10px 0;
    border-bottom:1px solid #a899ce44;
  }
  .guide-page .command-table tr:last-child {
    border:0;
  }
  .guide-page .command-table td {
    padding:8px 16px;
    border:0;
  }
  .guide-page .command-table td::before {
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    font:10px/1.6 monospace;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:#a99abf;
  }
  .guide-page .command-table td:last-child {
    padding-bottom:14px;
  }
  .guide-page .guide-badge-row {
    font-size:12px;
    align-items:start;
  }
  .guide-search-field {
    gap:8px;
    padding:0 10px;
  }
  .guide-search input {
    font-size:14px;
  }
  #guide-search-results {
    grid-template-columns:1fr;
  }
  .guide-page .guide-end {
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .guide-body .site-legal-footer {
    flex-wrap:wrap;
  }
  .guide-page .guide-copy {
    margin-left:4px;
  }
  .guide-page .guide-faq summary {
    padding:16px;
  }
  .guide-page .guide-faq p {
    padding:0 16px 18px;
  }
}
/* Five live metadata columns need cards sooner than two-column references. */
@media(min-width:701px) and (max-width:1050px) {
  .guide-page .target-command-guide-table,
  .guide-page .target-command-guide-table tbody,
  .guide-page .target-command-guide-table tr,
  .guide-page .target-command-guide-table td {
    display:block;
    width:100%;
  }
  .guide-page .target-command-guide-table thead {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  .guide-page .target-command-guide-table tr {
    padding:12px 0;
    border-bottom:1px solid #a899ce44;
  }
  .guide-page .target-command-guide-table td {
    padding:8px 20px;
    border:0;
  }
  .guide-page .target-command-guide-table td::before {
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    font:10px/1.6 monospace;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:#a99abf;
  }
}
@media(prefers-reduced-motion:reduce) {
  .guide-page * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
@media print {
  .guide-body .riff-navigation,.guide-toc,.guide-search,.guide-copy,.guide-skip,.guide-hero-art {
    display:none!important;
  }
  .guide-page .guide-layout {
    display:block;
  }
  .guide-body .container {
    width:100%;
  }
  .guide-page .guide-section {
    break-inside:avoid;
  }
}
body.guide-body {
  animation:none;
  background-size:auto;
}
.guide-body .guide-page {
  width:100%;
  padding-top:0;
}
