/**
 * Minimal WordPress Compatibility Layer for Sikhs United (Astra Child Theme)
 *
 * Keeps the Sikhs United design stylesheet (assets/css/style.css) 100% untouched
 * and only handles WordPress Admin Bar offsets, screen-reader skip links,
 * and standard Gutenberg content cards (page.php / single.php).
 */

/* Hide Astra scroll-to-top fallback if ever rendered */
#ast-scroll-top {
  display: none !important;
}

/* WordPress screen-reader-only utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  clip: auto !important;
  clip-path: none;
  color: #0c1b33;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 12px;
  width: auto;
  z-index: 100000;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* WordPress Admin Bar offset for sticky/fixed header & mobile drawer */
body.admin-bar .main-nav-header {
  top: 32px;
}

body.admin-bar .mobile-drawer {
  top: 108px;
  height: calc(100vh - 108px);
}

@media (max-width: 782px) {
  body.admin-bar .main-nav-header {
    top: 46px;
  }

  body.admin-bar .mobile-drawer {
    top: 110px;
    height: calc(100vh - 110px);
  }
}

@media (max-width: 680px) {
  body.admin-bar .main-nav-header {
    top: 46px !important;
  }

  body.admin-bar .mobile-drawer {
    top: 110px !important;
    height: calc(100vh - 110px) !important;
  }
}

@media (max-width: 600px) {
  body.admin-bar .main-nav-header {
    top: 0 !important;
  }

  body.admin-bar .mobile-drawer {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
  }
}

/* Standard WordPress content card styling (page.php & single.php) */
.su-wp-content-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
}

.su-wp-content-card p {
  margin-bottom: 1.25rem;
}

.su-wp-content-card h2,
.su-wp-content-card h3,
.su-wp-content-card h4 {
  color: var(--text-heading);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.su-wp-content-card ul,
.su-wp-content-card ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.su-wp-content-card a {
  color: var(--saffron-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .su-wp-content-card {
    padding: 24px 20px;
  }
}
