/* Shared public guide navigation. Identity is verified by guide-navigation.js. */
body.guide-page {
  --guide-surface: #fffefa;
  --guide-background: #f7f3ea;
  --guide-ink: #182b28;
  --guide-muted: #52615d;
  --guide-border: #d8dfd7;
  --guide-accent: #075c48;
  --guide-tint: #e8f2eb;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b211f;
  --ink: #f0f5f1;
  --muted: #b1c0b8;
  --line: #46524b;
  --green: #97e4bd;
  --green-soft: #293f33;
  --blue: #293d49;
  --rose: #4b302d;
}
:root[data-theme="dark"] body.guide-page {
  --guide-surface: #242b29;
  --guide-background: #1b211f;
  --guide-ink: #f0f5f1;
  --guide-muted: #b1c0b8;
  --guide-border: #46524b;
  --guide-accent: #97e4bd;
  --guide-tint: #293f33;
}
.guide-page .guide-header-shell { width: 100%; max-width: none; }
.guide-page nav.guide-nav {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 64px), 1320px);
  min-height: 88px;
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--guide-border);
  color: var(--guide-ink);
  z-index: 45;
  font: 600 .9rem/1.4 ui-sans-serif, system-ui, sans-serif;
}
.guide-nav [hidden] { display: none !important; }
.guide-nav a { color: inherit; font: inherit; text-decoration: none; }
.guide-nav a:hover { color: var(--guide-accent); }
.guide-nav button, .guide-nav summary { font: inherit; cursor: pointer; }
.guide-nav .guide-brand { flex: 0 0 auto; color: var(--guide-accent); font-size: 1.1rem; font-weight: 750; }
.guide-links { display: flex; gap: 24px; margin-left: auto; }
.guide-links a { color: var(--guide-muted); padding: 12px 0; white-space: nowrap; }
.guide-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.guide-nav .guide-sign-in { padding: 12px 8px; white-space: nowrap; }
.guide-nav .guide-get-started { padding: 12px 18px; min-height: 44px; color: var(--guide-surface); background: var(--guide-ink); border: 1px solid var(--guide-ink); border-radius: 9px; white-space: nowrap; }
.guide-nav :is(.guide-theme-toggle,.guide-menu-toggle) { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 44px; border: 1px solid var(--guide-border); border-radius: 8px; padding: 9px; color: var(--guide-ink); background: var(--guide-surface); }
.guide-nav .guide-theme-toggle { height: 40px; border-radius: 50%; }
.guide-nav .guide-menu-toggle { display: none; }
.guide-nav svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.guide-nav .guide-sun, :root[data-theme="dark"] .guide-nav .guide-moon { display: none; }
:root[data-theme="dark"] .guide-nav .guide-sun { display: block; }
.guide-nav .guide-account { position: relative; min-width: 0; }
.guide-account summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px 4px 4px; border-radius: 24px; border: 1px solid var(--guide-border); background: var(--guide-surface); }
.guide-account summary::-webkit-details-marker { display: none; }
.guide-account:not([open]) > .guide-account-dropdown { display: none; }
.guide-account-label { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--guide-accent); color: var(--guide-surface); font-size: .875rem; }
.guide-account-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: 290px; max-width: calc(100vw - 32px); display: grid; gap: 4px; padding: 10px; border: 1px solid var(--guide-border); border-radius: 14px; background: var(--guide-surface); box-shadow: 0 18px 50px #0002; color: var(--guide-ink); }
.guide-account-identity { display: grid; gap: 4px; padding: 10px 10px 16px; border-bottom: 1px solid var(--guide-border); margin-bottom: 5px; overflow-wrap: anywhere; }
.guide-account-identity :is(small,span) { font-size: .8125rem; color: var(--guide-muted); }
.guide-account-identity strong { font: 600 .9375rem/1.4 ui-sans-serif, system-ui, sans-serif; }
.guide-account-dropdown :is(a,button) { display: block; padding: 11px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--guide-ink); text-align: left; }
.guide-account-dropdown :is(a,button):hover { background: var(--guide-tint); }
.guide-nav :is(a,button,summary):focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 3px; }
:root[data-theme="dark"] .guide-page :is(.grid li,.steps li,.facts li,.answers li,.copy-block,.troubleshooting li,.protocol-table,.setting,.warning,figure,.card,.table-wrap) { background: var(--guide-surface); }
:root[data-theme="dark"] .guide-page :is(.notice,.warning) { background: var(--green-soft); color: var(--ink); }
@media (max-width: 1000px) {
  .guide-page nav.guide-nav { gap: 16px; }
  .guide-nav .guide-menu-toggle { display: grid; }
  .guide-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 14px; border: 1px solid var(--guide-border); border-radius: 12px; background: var(--guide-surface); box-shadow: 0 18px 50px #0002; }
  .guide-links[data-expanded="true"] { display: grid; gap: 2px; }
  .guide-links a { padding: 12px 10px; }
}
@media (max-width: 540px) {
  .guide-page nav.guide-nav { width: calc(100% - 32px); min-height: 76px; padding: 16px 0; gap: 10px; }
  .guide-nav .guide-brand { font-size: .875rem; }
  .guide-actions { gap: 8px; }
  .guide-nav .guide-get-started { display: none; }
  .guide-account-label { max-width: 82px; }
  .guide-nav .guide-account { position: static; }
  .guide-account-dropdown { top: calc(100% + 8px); right: 0; }
}
