/* vbeatner — sticky header and content pages. Loaded after styles.css and listener.css. */

/* ---------- sticky header ---------- */
html { scroll-padding-top: 108px; }
.header {
  --hh: 94px;
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--hh);
  transition: height .2s ease;
}
/* full-width backdrop: fixed to the viewport, so it never causes horizontal scrolling */
.header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hh);
  z-index: -1;
  background: rgba(245, 244, 237, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .2s ease, border-color .2s ease, box-shadow .2s ease;
  pointer-events: none;
}
.header.is-compact { --hh: 72px; }
.header.is-compact::before { border-bottom-color: var(--line); box-shadow: 0 6px 24px #1d291410; }
@media (max-width: 850px) { .header { --hh: 80px; } .header.is-compact { --hh: 64px; } html { scroll-padding-top: 92px; } }
@media (max-width: 600px) { .header { --hh: 74px; } .header.is-compact { --hh: 64px; } html { scroll-padding-top: 84px; } }
.acc-side { top: 92px; }

/* ---------- navigation: five items need the burger menu below 1380px ---------- */
.desktop-nav { flex-wrap: nowrap; }
.desktop-nav a { white-space: nowrap; }
.desktop-nav a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 1379px) {
  .desktop-nav { display: none; }
  .header { justify-content: space-between; }
  .mobile-menu-button { display: block; border: 0; background: none; padding: 4px; font-size: 21px; }
  .mobile-menu { position: absolute; top: calc(var(--hh) - 6px); left: 0; right: 0; background: #f9fbf3; border: 1px solid #d0dcc3; border-radius: 8px; box-shadow: 0 10px 20px #1d291415; padding: 12px; display: flex; flex-direction: column; z-index: 5; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 13px; font-size: 13px; border-bottom: 1px solid #e6ecde; }
  .mobile-menu a:last-child { border: 0; }
  .mobile-menu a.active { font-weight: 700; background: #f1f8dc; border-radius: 6px; }
}

/* ---------- content pages ---------- */
body.page-mode main > section:not(#page-view) { display: none; }
.page-view[hidden] { display: none; }
.page-view { padding: 24px 0 60px; }
.page-article { max-width: 760px; margin: 0 auto; }
.page-eyebrow { font: 10px/1 monospace; letter-spacing: 1.6px; color: #708361; }
.page-article h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -3px; line-height: 1; margin: 16px 0 28px; overflow-wrap: anywhere; }
.page-body { font-size: 17px; line-height: 1.7; color: #3b4234; }
.page-body h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -1.2px; line-height: 1.15; margin: 38px 0 12px; color: var(--ink); }
.page-body h3 { font-size: 18px; letter-spacing: -.5px; margin: 28px 0 8px; color: var(--ink); }
.page-body p { margin: 0 0 16px; }
.page-body ul { padding: 0; margin: 0 0 18px; list-style: none; display: grid; gap: 10px; }
.page-body li { position: relative; padding: 14px 16px 14px 42px; background: #fcfcf7; border: 1px solid var(--line); border-radius: 10px; }
.page-body li::before { content: ''; position: absolute; left: 17px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 1px solid #7ea23f; }
.page-body a { text-decoration: underline; color: #3f6428; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page-actions .button { gap: 14px; width: auto; margin: 0; }
.page-actions .button.outline { border: 1px solid #c8cbbf; background: transparent; }
@media (max-width: 600px) {
  .page-view { padding-top: 12px; }
  .page-body { font-size: 16px; }
  .page-actions .button { flex: 1 1 100%; }
  .page-body li { padding: 12px 14px 12px 38px; }
  .page-body li::before { left: 14px; top: 19px; }
}

/* ---------- studio section: link to the full page ---------- */
.studio-more { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 12px; font-weight: 600; text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.page-faq .page-body { display: block; }
.faq-item { background: #fcfcf7; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: #b9cc94; box-shadow: 0 8px 22px #24331a0d; }
.faq-item summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #1c2415; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { background: #f6f9ea; border-radius: 12px; }
.faq-item summary:focus-visible { outline: 2px solid #65842b; outline-offset: 2px; }
.faq-answer { padding: 0 20px 6px; }
.faq-answer p { margin: 0 0 14px; }

/* ---------- pictures inside pages (user guide) ---------- */
.page-body figure { margin: 18px 0 26px; }
.page-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px #24331a14; background: #fff; }
.page-body figcaption { margin-top: 8px; font-size: 12px; color: #7b8a6c; text-align: center; }
.page-guide .page-body h2 { counter-increment: none; }

/* ---------- footer links: readable and wrapping ---------- */
.footer > div { flex-wrap: wrap; gap: 10px 20px; justify-content: flex-end; }
.footer-link { font-size: 12px; color: #55683f; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer > div { justify-content: flex-start; }
  .footer-link, .footer-status { font-size: 12px; }
}
.page-body figure img[src$="/mobile.png"] { max-width: 300px; margin-inline: auto; }
