.client-guide-link { margin: 15px 0 0; }
.client-guide-link a, .client-guide-next a { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 12px; }
.client-guide-link .icon { width: 16px; height: 16px; }
.client-guide-next { padding: 12px; margin: 10px 0; border-radius: 10px; background: var(--brand-soft); }
.client-guide-next a { flex-wrap: wrap; font-weight: 600; }
.subscription-help { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 18px 22px; border: 1px solid #dce2f2; border-radius: 14px; background: linear-gradient(110deg, #edf1fc, #f3f0fa); }
.subscription-help > span:nth-child(2) { flex: 1; min-width: 0; }
.subscription-help strong { display: block; font-size: 14px; }
.subscription-help small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.subscription-help:hover { border-color: var(--focus); }
.shop-footer a:hover { color: var(--brand); text-decoration: underline; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.guide-heading h1 { margin: 9px 0 14px; font-size: clamp(27px, 3.2vw, 38px); font-weight: 650; line-height: 1.4; letter-spacing: -1px; }
.guide-heading p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.guide-heading > .button { flex-shrink: 0; }
.guide-mobile-break { display: none; }
.guide-clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-client { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 19px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); transition: border-color .15s, background .15s; }
.guide-client:hover { border-color: var(--focus); }
.guide-client[aria-current] { border-color: var(--brand); background: #edf0fc; box-shadow: 0 0 0 1px var(--brand); }
.guide-client .client-logo { flex-shrink: 0; }
.guide-client > span:nth-child(2) { min-width: 0; flex: 1; }
.guide-client strong { display: block; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.guide-client small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.guide-choice-mark { display: flex; color: var(--brand); }
.guide-choice-mark .icon { width: 15px; height: 15px; }
.guide-prerequisite { display: flex; gap: 10px; align-items: flex-start; padding: 20px 0 30px; color: var(--muted); }
.guide-prerequisite > .icon { margin-top: 3px; }
.guide-prerequisite p { font-size: 12px; line-height: 1.9; margin: 0; }
.guide-prerequisite a, .guide-sources a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.guide-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 32px; align-items: start; }
.guide-sidebar { position: sticky; top: 24px; padding-top: 18px; }
.guide-sidebar nav { display: grid; gap: 6px; }
.guide-sidebar .eyebrow { padding: 0 13px 12px; }
.guide-sidebar button { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 13px; text-align: left; }
.guide-sidebar button:hover { background: #e9edf9; color: var(--brand); }
.guide-sidebar button > span { width: 22px; color: var(--brand); font-size: 11px; font-variant-numeric: tabular-nums; }
.guide-sidebar p { border-top: 1px solid var(--line); margin: 22px 13px 14px; padding-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.guide-reviewed { padding: 0 13px; color: var(--muted); font-size: 10px; }
.guide-article { min-width: 0; }
.guide-section { padding: 30px 32px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); scroll-margin-top: 24px; }
.guide-section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.guide-section-heading > span { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 48px; border: 1px solid #dce1f3; border-radius: 13px; background: #edf0fb; color: var(--brand); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.guide-section-heading small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.guide-section h2 { font-size: 21px; font-weight: 650; line-height: 1.5; margin: 0; }
.guide-section h3 { font-size: 14px; margin: 0 0 12px; }
.guide-section p { font-size: 13px; color: var(--muted); line-height: 1.95; }
.guide-download { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f9faff; }
.guide-download > img { border-radius: 12px; object-fit: contain; background: white; }
.guide-download > div { flex: 1; min-width: 120px; }
.guide-download strong { display: block; font-size: 15px; }
.guide-download > div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.guide-download .button { font-size: 12px; }
.guide-table-wrap { margin: 24px 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; table-layout: fixed; }
.guide-table caption { text-align: left; font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.guide-table th { font-weight: 500; color: var(--muted); background: #f6f7fb; }
.guide-table td, .guide-table th { border-bottom: 1px solid var(--line); padding: 12px; overflow-wrap: anywhere; }
.guide-table th:first-child { width: 40%; }
.guide-table code { font-family: inherit; color: var(--brand); font-size: 12px; }
.guide-steps { padding-left: 23px; margin: 24px 0; }
.guide-steps li { padding-left: 5px; margin-bottom: 18px; font-size: 14px; }
.guide-steps li::marker { color: var(--brand); font-weight: 600; }
.guide-steps li > strong { font-weight: 600; }
.guide-steps p { margin: 6px 0 0; }
.guide-section .guide-note { padding-left: 13px; border-left: 2px solid #cbd3ec; font-size: 12px; margin: 22px 0 0; }
.guide-note + .button { margin-top: 22px; }
.guide-figure { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin: 20px 0 26px; background: #f6f7fb; }
.guide-figure > a { display: block; position: relative; cursor: zoom-in; }
.guide-figure img { display: block; width: 100%; height: auto; max-height: 590px; object-fit: contain; object-position: top; }
.guide-figure > a:focus-visible { outline-offset: -4px; }
.guide-zoom { display: block; position: absolute; bottom: 12px; right: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand); border-radius: 7px; padding: 5px 9px; font-size: 10px; box-shadow: var(--shadow); }
.guide-figure figcaption { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 14px 17px; background: #fafbfe; }
.guide-figure figcaption strong { font-size: 12px; font-weight: 600; }
.guide-figure figcaption > span { font-size: 11px; color: var(--muted); }
.guide-callout { margin: 22px 0; padding: 16px 19px; background: #eff2fc; border-radius: 12px; }
.guide-callout strong { font-size: 13px; color: var(--brand); }
.guide-callout p { margin: 5px 0 0; font-size: 12px; }
.guide-fields { border: 1px solid var(--line); border-radius: 13px; padding: 20px; margin-top: 24px; }
.guide-fields dl { margin: 0; }
.guide-fields dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.guide-fields dt { color: var(--muted); }
.guide-fields dd { margin: 0; overflow-wrap: anywhere; }
.guide-success { display: flex; gap: 14px; padding: 22px; margin: 24px 0; border: 1px solid #d5e7e4; border-radius: 14px; background: #f2f8f7; }
.guide-success .section-icon { background: #e2efec; color: #35746a; flex-shrink: 0; }
.guide-success > div { min-width: 0; }
.guide-success ul { padding-left: 18px; margin: 0; font-size: 12px; color: var(--muted); }
.guide-success li { margin: 8px 0; }
.guide-details { padding: 17px 0; border-top: 1px solid var(--line); }
.guide-details summary { cursor: pointer; font-size: 13px; font-weight: 600; padding-right: 8px; }
.guide-details summary::marker { color: var(--brand); }
.guide-details > p { margin: 12px 0 0; }
.guide-details .guide-figure { margin-bottom: 0; }
.guide-support { margin-top: 18px; padding: 20px; background: #f7f7fc; border-radius: 13px; }
.guide-support strong { font-size: 13px; }
.guide-support p { margin: 6px 0 0; font-size: 12px; }
.guide-sources { padding: 8px 4px 0; font-size: 12px; }
.guide-sources > strong { font-weight: 600; }
.guide-sources > div { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0; }
.guide-sources > p { color: var(--muted); font-size: 11px; }
.guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.guide-image-dialog { width: min(1120px, calc(100% - 32px)); max-height: 94dvh; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--paper); }
.guide-image-dialog::backdrop { background: #1b233aba; }
body:has(.guide-image-dialog[open]) { overflow: hidden; }
.guide-image-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.guide-image-toolbar h2 { font-size: 15px; margin: 0; }
.guide-image-toolbar button { flex-shrink: 0; }
.guide-image-canvas { overflow: auto; max-height: 72dvh; background: var(--surface); border-radius: 8px; }
.guide-image-canvas img { display: block; width: 100%; min-width: 640px; height: auto; }
.guide-image-dialog > p { font-size: 11px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 1100px) {
  .guide-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .guide-section { padding: 26px; }
}
@media (max-width: 800px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-sidebar { position: static; padding: 0; }
  .guide-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .guide-sidebar .eyebrow, .guide-sidebar p, .guide-reviewed { display: none; }
  .guide-sidebar button { padding: 10px; gap: 6px; font-size: 12px; background: #e9edf7; }
  .guide-sidebar button > span { width: auto; font-size: 10px; }
}
@media (max-width: 600px) {
  .shop-header nav { width: 100%; justify-content: space-between; }
  .shop-header nav a, .shop-header nav button { font-size: 12px; }
  .shop-header nav .nav-login { margin-left: 0; }
  .guide-heading { align-items: flex-start; gap: 16px; flex-direction: column; margin-bottom: 24px; }
  .guide-heading h1 { font-size: 28px; }
  .guide-heading p { font-size: 12px; }
  .guide-mobile-break { display: inline; }
  .guide-clients { gap: 10px; }
  .guide-client { padding: 14px 12px; gap: 10px; flex-wrap: wrap; }
  .guide-client > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .guide-client small { font-size: 10px; }
  .guide-choice-mark { margin-left: auto; }
  .guide-prerequisite { padding-bottom: 18px; }
  .guide-section { padding: 22px 18px; border-radius: 15px; }
  .guide-section h2 { font-size: 18px; }
  .guide-section-heading { gap: 12px; }
  .guide-section-heading > span { width: 38px; height: 44px; font-size: 16px; }
  .guide-download { padding: 16px; }
  .guide-download .button { width: 100%; }
  .guide-table th, .guide-table td { padding: 10px 7px; font-size: 11px; }
  .guide-table code { font-size: 11px; }
  .guide-steps li { font-size: 13px; }
  .guide-fields { padding: 16px; }
  .guide-fields dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .guide-success { padding: 17px; gap: 10px; }
  .guide-success > .section-icon { display: none; }
  .guide-zoom { bottom: 7px; right: 7px; font-size: 9px; padding: 3px 6px; }
  .guide-image-dialog { width: calc(100% - 20px); padding: 14px; }
  .guide-image-toolbar h2 { font-size: 13px; }
  .subscription-help { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .guide-client { transition: none; } }
