/**
 * OSCMPS theme extras — header/mobile-menu state styles (driven by main.js),
 * article typography and WordPress core classes.
 * The Tailwind design system itself lives in tailwind-compiled.css.
 */

/* ---------- Header states (mirrors the React Navbar scroll behaviour) ---------- */
#oscmps-topbar {
  transform: translateY(0);
  opacity: 1;
}
body.oscmps-scrolled #oscmps-topbar {
  transform: translateY(-100%);
  opacity: 0;
}

#oscmps-header {
  top: 0;
  background: transparent;
}
@media (min-width: 1024px) {
  #oscmps-header {
    top: 37px;
  }
}
body.oscmps-scrolled #oscmps-header {
  top: 0;
  background: rgba(2, 11, 31, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px -10px rgba(2, 11, 31, 0.7);
}
body.oscmps-scrolled .oscmps-logo-box,
body.oscmps-menu-open .oscmps-logo-box {
  background: #ffffff;
}

/* ---------- Mobile menu states ---------- */
body.oscmps-menu-open {
  overflow: hidden;
}
body.oscmps-menu-open #oscmps-mobile-menu {
  opacity: 1;
  visibility: visible;
}
body.oscmps-menu-open .oscmps-mobile-link {
  transform: translateY(0);
  opacity: 1;
}
body.oscmps-menu-open .oscmps-mobile-cta {
  opacity: 1;
}
body.oscmps-menu-open .oscmps-icon-open {
  display: none;
}
body.oscmps-menu-open .oscmps-icon-close {
  display: inline-flex;
}

/* ---------- WordPress admin bar offsets ---------- */
body.admin-bar #oscmps-topbar {
  top: 32px;
}
body.admin-bar #oscmps-header {
  top: 32px;
}
@media (min-width: 1024px) {
  body.admin-bar #oscmps-header {
    top: 69px;
  }
  body.admin-bar.oscmps-scrolled #oscmps-header {
    top: 32px;
  }
}
@media (max-width: 782px) {
  body.admin-bar #oscmps-topbar {
    top: 46px;
  }
  body.admin-bar #oscmps-header {
    top: 46px;
  }
}
body.admin-bar .preloader {
  top: 32px;
}

/* ---------- Article / page content typography ---------- */
.entry-content {
  font-family: 'Inter', sans-serif;
}
.entry-content p {
  color: rgba(7, 29, 78, 0.7);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.entry-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: #071d4e;
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}
.entry-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #071d4e;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #071d4e;
  margin: 1.75rem 0 0.75rem;
}
.entry-content blockquote {
  position: relative;
  background: #020b1f;
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  overflow: hidden;
}
.entry-content blockquote p {
  color: #7fb45f;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
}
.entry-content a {
  color: #225020;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover {
  color: #003623;
}
.entry-content ul,
.entry-content ol {
  color: rgba(7, 29, 78, 0.7);
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content ul {
  list-style: disc;
}
.entry-content ol {
  list-style: decimal;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.entry-content figure {
  margin: 2rem 0;
}
.entry-content figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: rgba(7, 29, 78, 0.5);
  text-align: center;
  margin-top: 0.5rem;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid #d8e3f7;
  padding: 0.75rem 1rem;
  text-align: left;
}
.entry-content th {
  background: #eef3fc;
  font-family: 'Outfit', sans-serif;
}

/* ---------- WordPress core alignment ---------- */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}
.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Pagination (custom classes used in templates) ---------- */
.oscmps-page-link > a,
.oscmps-page-link > .current {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  background: #eef3fc;
  color: rgba(7, 29, 78, 0.7);
  display: inline-block;
}
.oscmps-page-link > a:hover {
  background: #d8e3f7;
}
.oscmps-page-link > .current {
  background: #071d4e;
  color: #7fb45f;
}

/* ---------- Gutenberg block gaps inside content ---------- */
.entry-content > *:first-child {
  margin-top: 0;
}
