/* Loaded only for viewports ≤900px — desktop uses style.css alone */

@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.header-inner {
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
}

.header-nav-shell {
  display: block;
  flex: 0 0 auto;
}

.header-nav-shell[open] {
  flex: 1 1 100%;
}

.header-nav-shell > summary.header-nav-toggle.nav-top-link {
  margin-left: auto;
  cursor: pointer;
  font-family: inherit;
  list-style: none;
}

.header-nav-shell > summary.header-nav-toggle.nav-top-link::-webkit-details-marker {
  display: none;
}

.header-nav-shell:not([open]) .nav {
  display: none;
}

.header-nav-shell .nav {
  flex: 1 1 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.header-nav-shell .nav a:not(.nav-top-link) {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-align: center;
}

.header-nav-shell .nav a:not(.nav-top-link):hover {
  background: rgba(255, 255, 255, 0.06);
}

.header-nav-shell .nav .nav-top-link {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.2rem;
  text-align: center;
}

.header-nav-shell .nav .nav-top-link:hover {
  background: #f2f2f7;
}

.logo-text {
  font-size: 1rem;
}

.section {
  padding: 2.25rem 0;
}

.section-title {
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-actions {
  flex-direction: column;
}

.hero-actions .btn {
  width: 100%;
  min-height: 2.75rem;
}

.cta-box {
  padding: 1.5rem 1.25rem;
}

.cta-box .btn-lg {
  width: 100%;
  min-height: 2.75rem;
}

.card-grid,
.pricing-grid {
  grid-template-columns: 1fr;
}

/* Overview proxy apps: readable grid on small screens (desktop stays 6-up in style.css) */
#services .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 600px) {
  #services .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#services .service-card {
  padding: 1rem 0.85rem;
}

#services .service-card h3 {
  font-size: 1rem;
  line-height: 1.25;
}

#services .service-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.purchase-billing-grid {
  grid-template-columns: 1fr;
  max-width: none;
}

.dashboard-header {
  flex-direction: column;
  align-items: stretch;
}

.dashboard-header .inline-form .btn {
  width: 100%;
  min-height: 2.75rem;
}

.dashboard-header .muted {
  word-break: break-word;
}

.spot-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.spot-card {
  padding: 1rem 1.1rem;
}

.spot-meta {
  grid-template-columns: 1fr;
}

.spot-meta dt {
  margin-top: 0.65rem;
}

.spot-meta dt:first-child {
  margin-top: 0;
}

.spot-meta dd {
  margin: 0;
  word-break: break-word;
}

.auth-section {
  padding: 1.5rem 0 2.5rem;
}

.auth-card {
  width: 100%;
  max-width: none;
  padding: 1.35rem 1.15rem;
}

.form input,
.form select,
.form textarea,
.form button[type="submit"] {
  min-height: 2.75rem;
  font-size: 16px;
}

.form textarea {
  min-height: 14rem;
}

.turnstile-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-footer {
  text-align: center;
  font-size: 0.85rem;
}

.btn:hover {
  transform: none;
}
