/* How-to page styles (uses /css/index.css tokens + components) */

/* Allow dropdown to escape header */
.site-header.glass-panel { overflow: visible; }

/* Layout */
.howto-main {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.howto-wrap {
  width: min(960px, 100% - 2.75rem);
  margin-inline: auto;
}

.howto-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.howto-grid-2 {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.howto-card h1,
.howto-card h2,
.howto-card h3 { margin-top: 0; }

.howto-title {
  margin: 0.8rem 0 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  letter-spacing: -0.02em;
}

.howto-lead {
  margin: 0.75rem 0 0;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.howto-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.howto-subhead {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.howto-steps {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.howto-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.howto-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(15,23,42,0.06);
  padding: 0.25rem 0.45rem;
  border-radius: 0.5rem;
}

.howto-callout {
  border-left: 3px solid var(--color-accent-blue);
  padding-left: 0.85rem;
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* Footer */
.howto-footer {
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------
   Header: align far-right
-------------------------- */
.nav-cta-group { margin-left: auto; }
.nav-inner { position: relative; }

/* Make "btn" links inside nav-list not get underline effect */
.nav-list a.btn::after { display: none !important; }

/* Menu button styling (modern palette) */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 999px;

  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-pink));
  opacity: 0.95;
}

/* Desktop: show inline nav, hide menu-only items, hide hamburger */
.menu-only { display: none; }
.nav-toggle { display: none; }

/* Ensure nav-list layout is clean with buttons */
.menu-btn {
  white-space: nowrap;
}

/* Mobile/iPad: hamburger appears, dropdown appears BELOW header, far right */
@media (max-width: 900px) {
  .howto-grid-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .topbar-signup { display: none; } /* move Create account into dropdown */

  .site-nav {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    z-index: 80;
  }

  .nav-list {
    display: none; /* closed by default */
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    min-width: 240px;
    padding: 12px;
    border-radius: 16px;

    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: var(--shadow-soft);
  }

  .site-header.nav-open .nav-list { display: flex; }

  .menu-only { display: block; }
  .nav-list li { width: 100%; }

  .menu-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 0.9rem;
  }
}

/* --------------------------
   Gallery (shots)
-------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.shot {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}


.shot img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  display: block;
}

.shots.shots-5 {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------
   Lightbox
-------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 27, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.lightbox.active { display: flex; }

.lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  border-radius: 0.75rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f8fafc;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
#lightbox-prev { left: 0.75rem; }
#lightbox-next { right: 0.75rem; }

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  text-align: center;
  color: rgba(248,250,252,0.85);
  font-size: 0.95rem;
  padding: 0 0.75rem;
}

img.zoomable { cursor: zoom-in; }
body.lb-lock { overflow: hidden; }

/* Tight phones */
@media (max-width: 480px) {
  .shots { grid-template-columns: 1fr; }
  .shot { aspect-ratio: auto; }
  .shot--landscape { aspect-ratio: auto; }
  .shot img { max-height: 280px; }
}

.landing-visual { padding: clamp(1.1rem, 2vw, 1.6rem); }