/* Load after languages.css so the public navigation owns its breakpoints. */
.header-auth { flex-shrink: 0; min-height: 44px; white-space: nowrap; }
.auth-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--forest); }
.auth-dialog::backdrop { background: rgb(16 35 68 / 55%); }
.auth-dialog h2 { margin-top: 0; }
.auth-dialog p { line-height: 1.6; }
.auth-dialog form { display: grid; gap: 12px; margin-block: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-dialog input { width: 100%; min-width: 0; }
.auth-dialog [data-auth-error] { color: #a52a2a; }
.auth-dialog :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
body:not(.dashboard-client) .site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); }
body:not(.dashboard-client) .site-header .header-inner { position: relative; display: flex; flex-wrap: nowrap; gap: 24px; min-height: 84px; padding-block: 12px; }
.site-navigation { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
body:not(.dashboard-client) .site-header .primary-nav { width: auto; gap: 24px; margin-inline: auto; }
.site-header .primary-nav a { font-size: 15px; white-space: nowrap; }
.site-menu-secondary { display: flex; align-items: center; gap: 18px; }
.site-newsletter-link { font-size: 14px; text-decoration: none; white-space: nowrap; }
body:not(.dashboard-client) .site-header .header-publish { flex-shrink: 0; min-height: 44px; margin: 0; padding: 11px 18px; border-radius: 9px; font-size: 14px; line-height: 1.4; }
.site-header .site-menu-toggle { display: none; }
body:not(.dashboard-client) .map-panel { top: 108px; }
.how-it-works { max-width: 1200px; }
.contact-page { padding-block: clamp(32px, 7vw, 90px); min-height: 65vh; }
.contact-panel { max-width: 850px; margin-inline: auto; padding: clamp(24px, 5vw, 64px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.contact-panel h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; }
.contact-description { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 20px; margin-block: 24px 32px; border-block: 1px solid var(--line); color: var(--forest); font-size: clamp(20px, 3vw, 32px); letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--orange-hover); }
.contact-nostr { display: grid; gap: 12px; margin-bottom: 32px; }
.contact-nostr code { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.how-it-works .guides-heading { max-width: 850px; padding-block: 24px; }
.how-it-works .guides-heading h1 { max-width: 780px; }
.how-it-works .guides-heading .actions { margin-top: 28px; gap: 24px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0 0 64px; padding: 32px 0 0; border-top: 1px solid var(--line); list-style: none; }
.how-steps li { min-width: 0; }
.how-steps h2 { margin-top: 20px; font-size: 2rem; }
.how-steps p, .how-network > p:not(.eyebrow), .how-faq p { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.how-network { padding: clamp(24px, 5vw, 56px); background: var(--sage); }
.how-network > p { max-width: 720px; }
.how-network { scroll-margin-top: 176px; }
.how-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 32px; }
.how-endpoints > div { min-width: 0; padding: 24px; border: 1px solid var(--forest); border-radius: 8px; background: var(--surface); }
.how-endpoints dt { color: var(--forest); font-weight: 600; }
.how-endpoints dd { margin: 12px 0 0; overflow-wrap: anywhere; }
.how-endpoints dd:last-child { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.how-endpoints code { font-size: .95rem; overflow-wrap: anywhere; }
.how-network .actions { flex-wrap: wrap; gap: 24px; }
.how-faq { max-width: 820px; margin-block: 64px; }
.how-faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.how-faq summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.how-faq details p { margin-top: 16px; }
body:not(.dashboard-client) .how-it-works > .newsletter-section.page-shell { width: 100%; margin-bottom: 64px; scroll-margin-top: 176px; }
.how-it-works :is(h1, h2, p, summary, a) { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  body:not(.dashboard-client) .site-header .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .site-header .wordmark { justify-self: start; }
  .site-header .site-menu-toggle:not([hidden]) { display: inline-flex; gap: 8px; min-height: 44px; padding: 9px 12px; border-color: var(--line); background: transparent; color: var(--forest); }
  .site-header .site-menu-toggle svg { flex-shrink: 0; }
  body:not(.dashboard-client) .site-header .header-publish { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; white-space: normal; }
  .site-navigation { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
  .navigation-ready .site-navigation { display: none; }
  .site-menu-open .navigation-ready .site-navigation { display: flex; }
  body:not(.dashboard-client) .site-header .primary-nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 4px; width: 100%; margin: 0; }
  .site-header .primary-nav a { min-height: 44px; padding: 10px 12px; border-radius: var(--radius); font-size: .95rem; white-space: normal; overflow-wrap: anywhere; }
  .site-header .primary-nav a[aria-current="page"] { background: var(--sage); }
  .site-header .primary-nav a[aria-current="page"]::after { display: none; }
  .site-menu-secondary { justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
  .site-newsletter-link { display: inline-flex; align-items: center; min-height: 44px; }
  body:not(.dashboard-client) .site-header .language-label select { max-width: 145px; min-height: 44px; font-size: 12px; }
  body:not(.dashboard-client) .map-panel { top: 150px; }
  .publisher-card { top: 160px; }
}
@media (max-width: 700px) {
  .how-endpoints { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .how-steps h2 { margin-top: 10px; }
  .how-it-works .guides-heading { margin-bottom: 32px; }
  .how-faq { margin-block: 40px; }
  .site-menu-open .site-header { max-height: 100dvh; overflow-y: auto; }
}
