/*
Theme Name: Common Ground Stories Preview
Theme URI: https://common-ground-stories.drashraf83.chatgpt.site
Author: Common Ground Stories
Description: A documentary-style WordPress theme matching the Common Ground Stories concept preview. Includes page templates, responsive navigation, demo intake flow, and integration points for Forminator, Paid Memberships Pro, MailPoet, and The Events Calendar.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: common-ground-stories
*/

/* WordPress-specific compatibility layered over assets/site.css. */
.nav-menu,
.nav-menu > li {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--accent);
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 170px;
  max-height: 48px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #090a0b;
}

.entry-content > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide {
  max-width: 1240px;
}

.entry-content > .alignfull {
  max-width: none;
}

.generic-article {
  min-height: 65vh;
}

.generic-article .entry-content {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.cgs-live-form,
.cgs-live-account {
  width: 100%;
}

.cgs-book-hero {
  padding-top: 11rem;
}

.cgs-intake-main {
  min-height: 100svh;
  padding-top: 9.5rem;
}

.cgs-fine-print,
.cgs-demo-note {
  color: #737679;
  font-size: 0.78rem;
}

.cgs-demo-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.cgs-small-lead {
  font-size: 1rem;
}

.cgs-help-note {
  font-size: 0.92rem;
}

.cgs-book-signup {
  display: none;
}

.cgs-book-signup.active {
  display: inline-flex;
}

.video-stage.video-embed {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.video-stage.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cgs-live-intake .form-main {
  min-width: 0;
}

.cgs-live-account {
  min-height: 650px;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
}

.cgs-live-account h1 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cgs-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgs-post-list .value-card h2 {
  margin-top: 3rem;
}

.cgs-post-list .value-card h2 a {
  text-decoration: none;
}

.cgs-featured-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.cgs-live-form .forminator-ui,
.cgs-live-account #pmpro_account {
  font-family: var(--sans);
}

.cgs-plugin-note {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(244, 170, 25, 0.12);
  font-size: 0.9rem;
}

.page-content-extension {
  border-top: 1px solid var(--line-dark);
}

.page-content-extension:empty {
  display: none;
}

.page-numbers {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  margin: 0.2rem;
  border: 1px solid var(--line-dark);
}

.page-numbers.current {
  background: var(--ink);
  color: var(--white);
}

body.admin-bar .site-header {
  top: 32px;
}

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

@media (max-width: 1050px) {
  .nav-menu,
  .nav-menu > li {
    display: block;
  }

  .cgs-post-list {
    grid-template-columns: 1fr;
  }
}
