/* Registration guide additions. Original shared styles remain unchanged. */
.register-guide-main {
  --guide-ink: #172b47;
  --guide-muted: #5a6b80;
  background: #fff;
  color: var(--guide-ink);
  overflow-wrap: anywhere;
}
.guide-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.guide-hero { background: #0b1d38; color: #fff; padding: 22px 0 44px; }
.guide-hero .guide-shell { max-width: 1160px; }
.guide-breadcrumb { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #b5c5dd; font-size: 14px; }
.guide-breadcrumb a { color: #d3e2f8; display: inline-flex; align-items: center; min-height: 44px; }
.guide-breadcrumb a:hover { color: #fff; }
.guide-eyebrow { font-size: 13px; letter-spacing: .06em; color: #9ebcde; margin: 14px 0 12px; }
.guide-hero h1 { color: #fff; font-size: clamp(28px, 3vw, 42px); line-height: 1.4; font-weight: 750; max-width: 880px; letter-spacing: -.03em; margin: 0; }
.guide-lead { font-size: 16px; line-height: 1.9; max-width: 800px; color: #c9d7e8; margin: 17px 0 23px; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.guide-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 21px; gap: 20px; border-radius: 6px; font-size: 15px; font-weight: 650; text-decoration: none; transition: background-color 150ms, transform 150ms; }
.guide-action-primary { background: var(--primary, #2563eb); color: #fff; }
.guide-action-primary:hover { background: #3674f2; color: #fff; transform: translateY(-1px); }
.guide-action-secondary { color: #e5effb; background: transparent; border: 1px solid #60738c; }
.guide-action-secondary:hover { color: #fff; background: #183455; }
.guide-source-note { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: #a8bbd1; margin: 17px 0 0; }
.guide-source-note a { color: #bcd5f5; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 272px); gap: 64px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.guide-article { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; }
.guide-toc-wrap { grid-column: 2; grid-row: 1; min-width: 0; position: sticky; top: 105px; }
.guide-toc { border-top: 2px solid #193d6f; }
.guide-toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; color: #1f3551; }
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc summary span { font-size: 18px; transition: transform 150ms; }
.guide-toc[open] summary span { transform: rotate(180deg); }
.guide-toc nav { display: flex; flex-direction: column; padding-bottom: 12px; border-bottom: 1px solid #dae2ec; }
.guide-toc nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: #5d6e83; font-size: 13px; line-height: 1.65; text-decoration: none; transition: color 150ms; }
.guide-toc nav a:hover { color: var(--primary, #2563eb); }
.guide-registration-entry { border-left: 3px solid var(--primary, #2563eb); background: #f2f6fc; padding: 19px 22px; margin: 0 0 32px; }
.guide-entry-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #18375c; }
.guide-register-url { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.8; color: #1d5cc2; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.guide-entry-code { font-size: 13px; line-height: 1.8; color: #586b82; margin-top: 6px; }
.guide-entry-code code { background: transparent; padding: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
.guide-article-body { font-size: 16px; line-height: 1.95; color: #34445a; }
.guide-article-body p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 19px; }
.guide-article-body h2 { font-size: 25px; line-height: 1.6; font-weight: 750; color: #172d4c; margin: 48px 0 20px; padding-top: 29px; border-top: 1px solid #dde4ed; scroll-margin-top: 106px; }
.guide-article-body h3 { font-size: 19px; font-weight: 700; line-height: 1.7; color: #223a5a; margin: 30px 0 12px; scroll-margin-top: 106px; }
.guide-article-body strong { color: #1c3455; font-weight: 700; }
.guide-article-body ol, .guide-article-body ul { padding-left: 25px; margin: 17px 0 22px; list-style-position: outside; }
.guide-article-body ol { list-style-type: decimal; }
.guide-article-body ul { list-style-type: disc; }
.guide-article-body li { margin: 5px 0; padding-left: 4px; }
.guide-article-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; border-radius: 3px; background: #eef3fa; padding: 2px 5px; overflow-wrap: anywhere; }
.guide-article-body a:not(.guide-image-link) { display: inline-flex; align-items: center; min-height: 44px; color: #1557b6; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.guide-step-figure { margin: 26px 0 28px; width: 100%; }
.guide-image-link { display: block; overflow: hidden; border: 1px solid #dce4ef; border-radius: 5px; background: #f7f9fc; cursor: zoom-in; transition: border-color 160ms, box-shadow 160ms; }
.guide-image-link:hover { border-color: #8eb3e9; box-shadow: 0 3px 12px rgba(24, 56, 98, .09); }
.guide-image-link img { width: 100%; height: auto; display: block; margin: 0; }
.guide-step-figure figcaption { font-size: 13px; line-height: 1.8; color: #687a90; margin: 9px 0 0; }
.guide-step-figure figcaption em { font-style: normal; }
.guide-bottom-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #dce4ed; padding-top: 18px; margin-top: 40px; }
.guide-bottom-nav a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: #1d5cc2; font-size: 15px; }
.register-guide-main a:focus-visible, .register-guide-main button:focus-visible, .register-guide-main summary:focus-visible { outline: 3px solid #e09a13; outline-offset: 4px; }
html.guide-lightbox-open { overflow: hidden; }
.guide-image-dialog { color: #fff; background: #101b2b; width: min(1500px, calc(100vw - 40px)); max-width: none; height: min(930px, calc(100dvh - 40px)); max-height: none; border: 1px solid #4e617a; border-radius: 8px; padding: 0; margin: auto; overflow: hidden; }
.guide-image-dialog[open] { display: flex; flex-direction: column; }
.guide-image-dialog::backdrop { background: rgba(2, 8, 18, .85); }
.guide-image-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid #3c4d66; flex-shrink: 0; }
.guide-image-toolbar > p { font-size: 14px; color: #d4e2f3; margin: 0; }
.guide-image-toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.guide-image-toolbar button, .guide-image-toolbar a { appearance: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #5b7190; border-radius: 4px; background: #1a2c46; color: #fff; padding: 7px 14px; min-width: 44px; min-height: 44px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.guide-image-toolbar button:hover, .guide-image-toolbar a:hover { background: #2a466a; }
.guide-image-viewport { flex: 1; display: flex; min-height: 0; overflow: auto; padding: 18px; align-items: center; justify-content: center; overscroll-behavior: contain; }
.guide-image-viewport img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; flex-shrink: 0; }
.guide-image-dialog.is-zoomed .guide-image-viewport { align-items: flex-start; justify-content: flex-start; }
.guide-image-dialog.is-zoomed .guide-image-viewport img { max-width: none; max-height: none; width: auto; height: auto; }
.guide-image-description { flex-shrink: 0; font-size: 13px; color: #bacbe1; line-height: 1.7; padding: 10px 18px; margin: 0; border-top: 1px solid #3c4d66; }
@media (max-width: 1120px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 36px; }
}
@media (max-width: 980px) {
  .guide-shell { width: min(820px, calc(100% - 40px)); }
  .guide-layout { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
  .guide-toc-wrap { position: static; width: 100%; }
  .guide-toc nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .guide-toc nav a { font-size: 14px; }
  .guide-hero { padding-bottom: 30px; }
}
@media (max-width: 600px) {
  .guide-shell { width: calc(100% - 32px); }
  .guide-hero { padding-top: 13px; padding-bottom: 24px; }
  .guide-eyebrow { font-size: 12px; margin-top: 13px; }
  .guide-hero h1 { font-size: 28px; line-height: 1.45; }
  .guide-lead { font-size: 14px; line-height: 1.9; margin-top: 14px; margin-bottom: 19px; }
  .guide-hero-actions { gap: 10px; }
  .guide-action { min-height: 48px; padding: 9px 14px; gap: 12px; font-size: 14px; }
  .guide-source-note { margin-top: 11px; }
  .guide-toc nav { grid-template-columns: 1fr; }
  .guide-layout { gap: 23px; padding-top: 23px; padding-bottom: 42px; }
  .guide-registration-entry { padding: 15px 16px; margin-bottom: 25px; }
  .guide-register-url { font-size: 13px; }
  .guide-entry-code { font-size: 12px; }
  .guide-article-body { font-size: 15px; line-height: 1.95; }
  .guide-article-body h2 { font-size: 21px; line-height: 1.65; margin-top: 36px; padding-top: 24px; scroll-margin-top: 90px; }
  .guide-article-body h3 { font-size: 18px; }
  .guide-article-body p { margin-bottom: 17px; }
  .guide-article-body ol, .guide-article-body ul { padding-left: 21px; }
  .guide-step-figure { margin: 22px 0; }
  .guide-step-figure figcaption { font-size: 12px; }
  .guide-image-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .guide-image-toolbar { gap: 8px; padding: 8px; }
  .guide-image-toolbar > p { display: none; }
  .guide-image-toolbar > div { justify-content: space-between; width: 100%; gap: 6px; }
  .guide-image-toolbar button, .guide-image-toolbar a { padding-inline: 10px; font-size: 13px; }
  .guide-image-viewport { padding: 8px; }
  .guide-image-description { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .register-guide-main * { scroll-behavior: auto !important; transition: none !important; }
}
