/* Public guide shell. Article typography lives in guide-content.css. */
:root {
  color-scheme: dark;
  --guide-ink: #f6eef3;
  --guide-muted: #a898a8;
  --guide-line: #ffffff12;
  --guide-pink: #efacc9;
  --guide-surface: #141018;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body.guide-page {
  margin: 0;
  background: #0c0b11;
  color: var(--guide-ink);
  font: 400 15px/1.65 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.guide-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 92% -8%, #69254118, transparent 70%);
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--guide-pink); outline-offset: 4px; }
::selection { color: #fff; background: #7c3155; }

.guide-skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #21111c;
}
.guide-skip:focus { top: 12px; }

.guide-container { width: min(1080px, calc(100% - 56px)); margin: auto; }

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  color: #9a8b9c;
  font-size: 11px;
}
.guide-breadcrumb a { text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--guide-pink); }
.guide-breadcrumb span[aria-hidden] { color: #5f5360; }
.guide-breadcrumb span:last-child { color: #d8cad6; }

/* Open editorial hero — no heavy card chrome */
.guide-hero {
  display: grid;
  gap: 20px;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--guide-line);
}
.guide-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--guide-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.guide-eyebrow svg { width: 16px; height: 16px; opacity: .9; }
.guide-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.guide-description {
  max-width: 420px;
  margin: 0 0 16px;
  color: #b5a4b5;
  font-size: 13px;
  line-height: 1.65;
}
.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.guide-hero-actions > span { display: none; }
.guide-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #ffb8d330;
  border-radius: 10px;
  background: #d82e77;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 24px #c4266720;
  transition: background .15s ease, transform .15s ease;
}
.guide-primary > span { font-size: 15px; font-weight: 500; line-height: 1; }
.guide-primary:hover { background: #ec438d; transform: translateY(-1px); }

/* Compact process strip */
.guide-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 4px 0 18px;
  list-style: none;
}
.guide-journey li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 16px 0 0;
  position: relative;
}
.guide-journey li + li { padding-left: 16px; }
.guide-journey li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 22px;
  transform: translateY(-50%);
  background: #ffffff14;
}
.guide-journey-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #f5a5c50c;
  color: #eda3c2;
}
.guide-journey-icon svg { width: 15px; height: 15px; }
.guide-journey li > div { display: grid; gap: 1px; min-width: 0; }
.guide-journey li > div > span {
  color: #9a8799;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
.guide-journey strong {
  color: #ebe0e9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  padding: 28px 0 32px;
}

.guide-aside { position: sticky; top: 24px; padding-top: 4px; }
.guide-aside h2 {
  margin: 0 0 12px;
  color: #c9bbc9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.guide-toc {
  display: grid;
  gap: 2px;
  counter-reset: guide-toc;
  padding: 0;
  border-left: 1px solid #ffffff10;
}
.guide-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 8px 0 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: #a898a8;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .15s ease, border-color .15s ease;
  counter-increment: guide-toc;
}
.guide-toc a::before {
  content: counter(guide-toc, decimal-leading-zero);
  color: #7d6e7e;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.guide-toc a:hover { color: #f0dce8; }
.guide-toc a[aria-current] {
  border-left-color: var(--guide-pink);
  color: #ffc3dc;
  font-weight: 700;
}
.guide-toc a[aria-current]::before { color: var(--guide-pink); }

.guide-meta {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--guide-line);
  color: #968697;
  font-size: 11px;
}
#guideReadTime { display: flex; align-items: center; gap: 7px; }
#guideReadTime::before {
  content: '';
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) 5px 2px / 1px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 5px / 3px 1px no-repeat;
  opacity: .7;
}
#guideUpdated:empty { display: none; }

.guide-help {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #f5a5c516;
  border-radius: 12px;
  background: #15121b;
}
.guide-help > svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 8px;
  color: #efa5c5;
  background: #f5a5c50a;
  border: 1px solid #f5a5c516;
}
.guide-help h3 {
  margin: 10px 0 4px;
  color: #eee3ec;
  font-size: 13px;
  font-weight: 800;
}
.guide-help p {
  margin: 0 0 12px;
  color: #a898a8;
  font-size: 12px;
  line-height: 1.55;
}
.guide-help a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #f5a5c528;
  border-radius: 8px;
  color: #f5b8d2;
  background: #f5a5c507;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.guide-help a:hover { background: #f5a5c512; }

.guide-reader { min-width: 0; }
.guide-reader iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: transparent;
  color-scheme: dark;
}
.guide-status {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #ed9bbb22;
  border-radius: 10px;
  color: #cbb7c4;
  font-size: 13px;
}
.guide-status:empty { display: none; }
.guide-status button {
  min-height: 36px;
  border: 0;
  padding: 4px 12px;
  margin-left: 8px;
  border-radius: 6px;
  color: #ffcee0;
  background: #ffffff10;
  cursor: pointer;
}

.guide-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 8px;
  padding: 20px 24px;
  border: 1px solid #f5a5c516;
  border-radius: 14px;
  background: linear-gradient(115deg, #1f1520, #141018);
}
.guide-bottom p {
  margin: 0;
  color: #ebd9e6;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.guide-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: #f5b4d0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.guide-bottom a:hover { color: #fff; }

.guide-page .lemy-footer { margin-top: 40px; }

@media (max-width: 1050px) {
  .guide-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .guide-journey li { padding-right: 10px; }
  .guide-journey li + li { padding-left: 10px; }
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 22px;
  }
  .guide-aside {
    position: static;
    padding: 16px;
    border: 1px solid var(--guide-line);
    border-radius: 14px;
    background: #131017;
  }
  .guide-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    border: 0;
  }
  .guide-toc a {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #ffffff0c;
    border-radius: 8px;
    border-left-width: 1px;
    font-size: 11px;
  }
  .guide-toc a:first-child { grid-column: 1 / -1; }
  .guide-toc a[aria-current] {
    border-color: #f5a5c530;
    background: #f5a5c508;
  }
  .guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .guide-help { display: none; }
}

@media (max-width: 600px) {
  .guide-container { width: calc(100% - 28px); }
  .guide-breadcrumb { margin: 16px 0 14px; font-size: 11px; }
  .guide-eyebrow { margin-bottom: 10px; font-size: 9px; }
  .guide-hero h1 {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -.035em;
  }
  .guide-description { font-size: 12px; line-height: 1.65; }
  .guide-primary { min-height: 44px; font-size: 12px; width: 100%; }
  .guide-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
    padding: 16px 0 18px;
  }
  .guide-journey li,
  .guide-journey li + li {
    padding: 0;
  }
  .guide-journey li + li::before { display: none; }
  .guide-journey-icon {
    flex-basis: 26px;
    height: 26px;
    background: transparent;
  }
  .guide-journey strong { font-size: 11px; white-space: normal; }
  .guide-aside { padding: 14px; }
  .guide-toc a { font-size: 11px; padding: 8px; }
  .guide-layout { padding-bottom: 20px; }
  .guide-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px;
  }
  .guide-bottom p { font-size: 14px; }
  .guide-bottom a { font-size: 12px; }
  .guide-page .lemy-footer { margin-top: 28px; }
}

@media (min-width: 901px) and (max-height: 650px) {
  .guide-aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 600px) {
  .guide-toc a { display: flex; align-items: center; min-height: 44px; font-size: 12px; }
  .guide-status button,
  .guide-bottom a { min-height: 44px; }
  .guide-description { font-size: 14px; }
}
