/* Guide layout (tools/help/guide.py): a help article in the ipsion.page look. Phone first; loaded after help.css. */
.help-guide { --ink: #101014; --sub: #3F3F46; --muted: #71717A; --border: #ECECF2; --soft: #FAFAFB; --dark: #101014;
  --brand: #FE6B35; --link: #C03E00; --grad: linear-gradient(90deg, #FE6B35, #F43F5E, #8B5CF6);
  --body: Inter, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: 'Space Grotesk', Inter, system-ui, 'PingFang SC', sans-serif; --ease: cubic-bezier(.22, 1, .36, 1);
  max-width: none; margin: 0; padding: 0; font-family: var(--body); counter-reset: sec; -webkit-font-smoothing: antialiased; }
.help-guide a { color: var(--link); text-underline-offset: 2px; }
.help-guide code { overflow-wrap: anywhere; }

/* Hero: dark, the title, the intro, jump chips, then the clip's poster in a browser frame. */
.g-hero { background: var(--dark); color: #EDEDF2; padding: 32px 20px 56px; overflow: hidden; }
.g-in { max-width: 1080px; margin: 0 auto; display: grid; gap: 40px; }
.g-copy { min-width: 0; }
.g-copy, .g-art { animation: g-rise .8s var(--ease) both; }
.g-art { animation-delay: .12s; }
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.g-hero .help-top { margin: 0 0 28px; }
.g-hero .help-crumb, .g-hero .help-crumb a { color: #FF9A6E; font-size: .95rem; font-weight: 500; text-decoration: none; }
.g-hero .help-lang { border-color: rgba(255, 255, 255, .24); }
.g-hero .help-lang a { color: #C4C4CC !important; min-height: 36px; }
.g-hero .help-lang a[aria-current] { background: #fff; color: var(--ink) !important; }
.help-guide h1 { font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em;
  color: #fff; margin: 0 0 18px; }
.g-copy > p { color: #C4C4CC; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.65; max-width: 560px; margin: 0 0 28px; }
.g-toc { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; margin: 0 -20px; padding: 2px 20px 6px;
  scrollbar-width: none; }
.g-toc::-webkit-scrollbar { display: none; }
.g-toc a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; color: #fff; text-decoration: none; font-size: .92rem;
  font-weight: 500; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.g-toc a::after { content: attr(aria-label); }  /* guide.py: the words stay out of the indexed text */
.g-toc a:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.g-art { position: relative; display: block; text-decoration: none; }
.g-art::before { content: ""; position: absolute; inset: -14% -8%; z-index: 0; pointer-events: none; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(254, 107, 53, .30), rgba(139, 92, 246, .16) 60%, transparent); }
.g-frame { position: relative; z-index: 1; display: block; border: 1px solid #2A2A33; border-radius: 16px; overflow: hidden;
  background: #16161D; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.g-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #2A2A33; }
.g-bar i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #3A3A44; }
.g-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.g-art::after { content: ""; position: absolute; z-index: 2; right: 18px; bottom: 18px; width: 60px; height: 60px;
  border-radius: 50%; box-shadow: 0 10px 30px rgba(254, 107, 53, .45); transition: transform .25s var(--ease);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") no-repeat 56% 50% / 26px; }
.g-art:hover::after { transform: scale(1.08); }

/* Sections: one per bold heading, numbered, alternating white and soft grey. */
.g-sec { padding: 56px 20px; border-top: 1px solid var(--border); counter-increment: sec; scroll-margin-top: 60px; }
.g-sec:nth-of-type(odd) { background: var(--soft); }
.g-wrap { max-width: 760px; margin: 0 auto; }
.g-sec .g-wrap > p:first-child { margin: 0 0 14px; }
.g-sec .g-wrap > p:first-child::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 10px;
  color: var(--link); font: 600 .8rem/1 var(--body); letter-spacing: .12em; }
.g-sec .g-wrap > p:first-child strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 4.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.g-sec p, .g-sec li { color: var(--sub); font-size: 1.02rem; line-height: 1.7; }
.g-sec strong { color: var(--ink); }
.help-guide .g-sec ul { list-style: none; margin: 20px 0; padding: 4px 18px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; }
.help-guide .g-sec ul > li { position: relative; margin: 0; padding: 12px 0 12px 22px; border-top: 1px solid var(--border); }
.help-guide .g-sec ul > li:first-child { border-top: 0; }
.help-guide .g-sec ul > li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--grad); }
.help-guide .g-sec ol { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 20px 0; padding: 0; }
.help-guide .g-sec ol > li { counter-increment: step; position: relative; margin: 0; padding: 16px 18px 16px 62px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.help-guide .g-sec ol > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; display: grid;
  place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 .9rem/1 var(--display);
  background: linear-gradient(135deg, #FE6B35, #B24FC0); }

/* Pictures (guide.py _frame): every picture sits centred in the same tray, so frames line up whatever the
   screenshot's shape. One picture: a tray as wide as the column. A run: a grid of equal 16:10 trays, 2 across
   (3 when there are 3), one per row on a phone. Captions start with a numbered badge for "Step N:". */
.help-guide .help-shot, .help-guide .help-clip, .g-shots { margin: 28px 0; }
.g-tray { position: relative; display: block; padding: 20px; background: #F1F1F5; border: 1px solid var(--border);
  border-radius: 18px; transition: border-color .2s; }
.g-tray:hover { border-color: #D4D4DC; }
.help-guide .g-tray > img { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; margin: 0 auto;
  border: 1px solid #E2E2E8; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(16, 16, 20, .10); }
.g-shots { display: grid; grid-template-columns: 1fr; gap: 24px 20px; }
.g-shots .help-shot { margin: 0; min-width: 0; }
.g-shots .g-tray { aspect-ratio: 16 / 10; padding: 0; }
.g-shots:has(.is-phone) .g-tray { aspect-ratio: 4 / 3; }  /* a grid with phone pictures: taller trays, all alike */
.help-guide .g-shots .g-tray > img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 32px);
  max-height: calc(100% - 32px); }
.help-guide .help-shot figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--sub);
  font-size: .95rem; line-height: 1.5; }
.g-step { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%;
  color: #fff; font: 700 .78rem/1 var(--display); background: linear-gradient(135deg, #FE6B35, #B24FC0); }
.help-guide .help-clip video { border-color: #2A2A33; border-radius: 18px; box-shadow: 0 30px 70px rgba(16, 16, 20, .22); }
.help-guide .help-clip figcaption { font-size: .95rem; }
.help-guide #clip { scroll-margin-top: 80px; }

/* End band: the "Didn't answer your question?" line and the pager as pill buttons. */
.g-end { background: var(--dark); color: #EDEDF2; padding: 56px 20px 64px; }
.g-end .help-more { margin: 0 0 28px; padding: 0; background: none; border-radius: 0; color: #C4C4CC; font-size: 1.12rem; }
.g-end .help-more a { color: #FF9A6E; }
.g-end .help-pager { display: grid; justify-content: stretch; gap: 12px; margin: 0; }
.g-end .help-pager span { display: none; }
.g-end .help-pager a { display: flex; align-items: center; min-height: 52px; padding: 8px 22px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; color: #fff; font-weight: 600; line-height: 1.35; text-decoration: none; transition: border-color .2s; }
.g-end .help-pager a:hover { border-color: #fff; color: #fff; }

@media (min-width: 700px) {
  .g-sec { padding: 80px 24px; }
  .g-shots { grid-template-columns: 1fr 1fr; }
  .g-end { padding: 72px 24px 80px; }
  .g-end .help-pager { grid-template-columns: 1fr 1fr; }
  .g-end .help-pager a:last-child { justify-content: flex-end; text-align: right; }
}
@media (min-width: 900px) {
  .g-hero { padding: 56px 24px 96px; }
  .g-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
  .g-hero .help-top { margin-bottom: 40px; }
  .g-toc { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .g-toc a { min-height: 36px; padding: 0 14px; font-size: .86rem; }
}
@media (min-width: 900px) {  /* pictures and clips run past the text column, up to 960px wide */
  .g-sec .help-shot, .g-sec .help-clip, .g-sec .g-shots { margin-inline: calc((100% - min(960px, 100vw - 64px)) / 2); }
  .g-sec .g-shots .help-shot { margin: 0; }
  .g-shots.n3 { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .g-copy, .g-art { animation: none; } .help-guide * { transition: none !important; } }

/* help-lookA-1121: the guide page (Deploy) in Look A: the same tokens as help.css (--la-*), warm bands, 24px cards, Nunito Sans 800.
   Same rise as g-rise; the sections also rise as they scroll in where the browser supports it (view timeline), never under reduced motion. */
.help-guide { --ink: #1B2340; --sub: #4A5068; --muted: #6B6F86; --border: #EADBC8; --soft: #FBEEDD; --dark: #1B2340;
  --brand: #FE6B35; --link: #B5410F; --grad: linear-gradient(135deg, #FE6B35, #FF9A6E);
  --display: 'Space Grotesk', Inter, system-ui, -apple-system, sans-serif; }
/* help-lookA2-1122: headings are the ipsion.ai Space Grotesk 700 (was Nunito Sans 800). */
.help-guide h1, .g-sec .g-wrap > p:first-child strong { font-weight: 700; }
.g-sec { background: #FFF6EC; border-top-color: #EADBC8; }
.g-sec:nth-of-type(odd) { background: #FBEEDD; }
.g-hero .help-crumb, .g-hero .help-crumb a, .g-end .help-more a { color: #FFB38F; }
.g-art::before { background: radial-gradient(closest-side, rgba(254, 107, 53, .32), rgba(255, 190, 140, .16) 60%, transparent); }
.g-frame { border-color: #2E3760; border-radius: 24px; background: #232B4D; }
.g-bar { border-bottom-color: #2E3760; }
.g-bar i { background: #4A5380; }
.help-guide .g-sec ul, .help-guide .g-sec ol > li { background: #FFFDF9; border-radius: 24px; box-shadow: 0 10px 30px rgba(27, 35, 64, .07); }
.help-guide .g-sec ol > li::before, .g-step { background: #FE6B35; }
.g-tray { background: #F3E3CF; border-radius: 24px; }
.help-guide .g-tray > img { border-color: #EADBC8; border-radius: 16px; box-shadow: 0 8px 24px rgba(27, 35, 64, .12); }
.help-guide .help-clip video { border-color: #2E3760; border-radius: 24px; }
.g-toc a:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .g-sec .g-wrap { animation: g-rise both linear; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
