/* Homepage-only additions; article layouts continue to use site.css unchanged. */
.home-steps { margin: 0; padding: 20px 24px 20px 42px; color: var(--code-ink); }
.home-steps li { padding-left: 4px; margin-bottom: 12px; }
.home-steps li:last-child { margin-bottom: 0; }
.home-steps a { color: #c4b5fd; text-decoration: underline; }

.site-header .header-inner { gap: 16px; }
.site-header .brand, .site-header .header-actions { flex-shrink: 0; }
.site-header .nav { gap: 18px; margin-left: 0; }
.site-header .nav a { white-space: nowrap; }
.site-header .header-actions { gap: 10px; }
.site-header .header-actions > a { flex: 0 0 auto; justify-content: center; white-space: nowrap; }
.site-header .header-actions .btn, .site-header .lang-link { height: 40px; min-height: 40px; padding: 6px 12px; line-height: 1.2; }
.site-header .lang-link { min-width: 50px; }
.site-header .nav-toggle { flex-shrink: 0; width: 36px; height: 40px; align-items: center; justify-content: center; }

@media (max-width: 1120px) {
  .site-header .nav { display: none; }
  .site-header .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .site-header .nav.open a { padding: 14px 24px; border-top: 1px solid var(--border-2); }
  .site-header .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .site-header .header-inner { gap: 8px; padding-inline: 16px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions .btn, .site-header .lang-link { padding-inline: 10px; font-size: .82rem; }
  .site-header .lang-link { min-width: 44px; }
  .site-header .nav-toggle { width: 32px; padding: 6px; }
  .site-header .brand-logo { height: 24px; }
}

/* language menu: every homepage language, as plain links (works without JS) */
.lang-menu { position: relative; flex: 0 0 auto; }
.lang-menu > summary { list-style: none; cursor: pointer; justify-content: center; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] > summary { border-color: var(--indigo); color: var(--indigo); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); }
.lang-pop a { padding: 8px 12px; border-radius: 7px; color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.lang-pop a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.lang-pop a[aria-current="true"] { color: var(--indigo); font-weight: 600; }
.roadmap .rm-tag a, .roadmap p a { color: var(--indigo); text-decoration: underline; }
.qs-grid > * { min-width: 0; } /* a long code line scrolls inside its block instead of widening the page */
/* phones: long endpoint names and stack chips wrap instead of widening the page */
.arch-k { overflow-wrap: anywhere; }
.chips li { flex-wrap: wrap; max-width: 100%; }
