/* 中華兒童暨家庭守護者協會 — 原站風格增強層
 * 不覆蓋 Weebly 主題色彩，僅做可及性與響應式微調 */

/* ── Skip link ── */
.gnacf-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gnacf-skip:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10001;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #484848;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}

/* ── Responsive images ── */
#wsite-content img,
.wsite-image img,
.galleryImage img {
  max-width: 100%;
  height: auto;
}

/* ── Mobile navigation (原站 hamburger 增強) ── */
@media (max-width: 1023px) {
  #navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #navigation ul.wsite-menu-default {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  #navigation li.wsite-menu-item-wrap {
    flex: 0 0 auto;
  }

  #navigation a.wsite-menu-item {
    font-size: 16px !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 767px) {
  #header {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  #sitename .wsite-logo img {
    max-height: 56px;
    width: auto;
  }

  #navigation:before,
  #navigation:after {
    display: none;
  }

  #navigation {
    width: 100%;
    padding-bottom: 1rem;
    display: none;
  }

  #navigation.gnacf-nav-open {
    display: block;
  }

  .nav-trigger.hamburger {
    cursor: pointer;
  }

  .container,
  #footer-content {
    width: 100% !important;
    padding: 2rem 1rem !important;
  }

  #banner h2,
  .wsite-content-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }
}

/* ── Focus states (原站 teal) ── */
a:focus-visible,
button:focus-visible,
.wsite-menu-item:focus-visible {
  outline: 2px solid #5199a8;
  outline-offset: 2px;
}

/* ── Blog / news readability ── */
.blog-post .blog-header h2 a {
  line-height: 1.4;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
