/* =====================================================================
   PupMiles — auxiliary page styles (support, contact, 404)
   Loaded in addition to /assets/styles.css
   ===================================================================== */

/* --- Shared FAQ-item pattern (used on support page) ----------------- */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
  margin-bottom: var(--sp-3);
}
.faq-item[open] { border-color: var(--border-accent); background: var(--bg-surface-2); }
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  list-style: none;
  padding: 1.05rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary .chev {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t-slow), color var(--t);
}
.faq-item[open] summary .chev { transform: rotate(45deg); color: var(--brand-lime); }
.faq-item .body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}
.faq-item .body p { max-width: 62ch; margin-bottom: .6rem; }
.faq-item .body p:last-child { margin-bottom: 0; }
.faq-item .body a {
  color: var(--brand-lime);
  border-bottom: 1px solid rgba(159, 232, 112, .32);
}
.faq-item .body em { font-style: normal; color: var(--text); font-weight: 500; }
.faq-item .body strong { color: var(--text); font-weight: 600; }

/* --- Support page --------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-16));
  align-items: start;
}

.support-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--sp-6);
  align-self: start;
}
.support-aside .card { padding: var(--sp-5); }
.support-aside .card .btn { font-size: .85rem; }

.support-toc {
  padding: var(--sp-5);
  border-left: 1px solid var(--border);
}
.support-toc ul { display: grid; gap: .75rem; }
.support-toc a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--t);
  display: block;
  padding: .15rem 0;
}
.support-toc a:hover { color: var(--text); }

.support-content > section {
  padding-bottom: var(--sp-12);
}
.support-content > section + section {
  border-top: 1px solid var(--divider);
  padding-top: var(--sp-12);
}
.support-content h2.h-section {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-6);
  scroll-margin-top: 96px;
}
.support-content section > p {
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  max-width: 62ch;
}

@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }
  .support-toc { border-left: 0; border-top: 1px solid var(--border); padding: var(--sp-5) 0 0; }
}
@media (max-width: 600px) {
  .support-aside { grid-template-columns: 1fr; }
}

/* --- Contact page --------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-12));
  align-items: start;
}

.contact-bullets {
  margin-top: var(--sp-8);
  display: grid;
  gap: var(--sp-5);
}
.contact-bullets li {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  display: grid;
  gap: .3rem;
}
.contact-bullets li strong {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 700;
}
.contact-bullets li span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.contact-bullets li a {
  color: var(--brand-lime);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-top: .25rem;
}
.contact-bullets li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}

/* --- 404 page ------------------------------------------------------- */
.nf {
  min-height: calc(100dvh - 72px - 320px);
  display: grid;
  place-items: center;
  padding-block: clamp(var(--sp-16), 10vw, var(--sp-32));
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(0,139,139,.16), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(159,232,112,.08), transparent 60%);
}
.nf-inner {
  max-width: 720px;
  text-align: left;
}
.nf h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -.045em;
  line-height: 1;
}
.nf .lede { max-width: 52ch; }
.nf-actions {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: var(--sp-8);
}
.nf-links {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--divider);
}
.nf-links .label { margin-bottom: var(--sp-3); }
.nf-links ul {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
}
.nf-links li a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--t);
}
.nf-links li a:hover { color: var(--brand-lime); }
