/* Optimal Access — global page chrome.
   Makes every ordinary WordPress page/post (Privacy Policy, Thank You, etc.)
   adopt the Optimal Access theme without needing Beaver Builder or oa-section
   markup. Front end only. */

body.oa-styles-site {
  --oa-ground:      #11151b;
  --oa-ground-2:    #171d25;
  --oa-ground-3:    #1e2630;
  --oa-rule:        rgba(255,255,255,.10);
  --oa-text:        #e8ecf1;
  --oa-text-dim:    #9aa6b4;
  --oa-text-faint:  #6a7686;
  --oa-human:       #4fd1c5;
  --oa-accent:      #e05a47;
  --oa-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --oa-body:    "Newsreader", Georgia, serif;
  --oa-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* Dark ground on every page so no white band shows anywhere. */
body.oa-styles-site,
body.oa-styles-site #page,
body.oa-styles-site #content,
body.oa-styles-site .site-content,
body.oa-styles-site .ast-container,
body.oa-styles-site .site-primary-footer-wrap,
body.oa-styles-site .site-below-footer-wrap {
  background-color: var(--oa-ground) !important;
  color: var(--oa-text);
}

/* ---------- generic content pages (Privacy Policy & friends) ---------- */
/* Applied only when the page has no oa-section markup of its own and is not
   owned by the blog / docs / hub plugins. */
body.oa-generic-page .site-main,
body.oa-generic-page #primary {
  background: transparent !important;
}

body.oa-generic-page .entry-content,
body.oa-generic-page .entry-header,
body.oa-generic-page .ast-article-single,
body.oa-generic-page .ast-article-post {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--oa-text);
  max-width: 860px;
  margin-inline: auto;
}

body.oa-generic-page .entry-content {
  font-family: var(--oa-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--oa-text);
}

body.oa-generic-page .entry-title,
body.oa-generic-page .entry-content h1,
body.oa-generic-page .entry-content h2,
body.oa-generic-page .entry-content h3,
body.oa-generic-page .entry-content h4,
body.oa-generic-page h1.page-title {
  font-family: var(--oa-display) !important;
  color: #ffffff !important;
  letter-spacing: -.01em;
  line-height: 1.15;
}
body.oa-generic-page .entry-title,
body.oa-generic-page h1.page-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: .4em;
}
body.oa-generic-page .entry-content h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
body.oa-generic-page .entry-content h3 { font-size: clamp(19px, 2.4vw, 24px); margin-top: 1.4em; }

body.oa-generic-page .entry-content p,
body.oa-generic-page .entry-content li,
body.oa-generic-page .entry-content td { color: var(--oa-text); }

body.oa-generic-page .entry-content a { color: var(--oa-human); text-underline-offset: 3px; }
body.oa-generic-page .entry-content a:hover { color: #ffffff; }

body.oa-generic-page .entry-content blockquote {
  border-left: 2px solid var(--oa-rule);
  padding-left: 18px;
  color: var(--oa-text-dim);
  font-style: italic;
}
body.oa-generic-page .entry-content code,
body.oa-generic-page .entry-content pre {
  font-family: var(--oa-mono);
  background: var(--oa-ground-2);
  color: var(--oa-text);
  border: 1px solid var(--oa-rule);
  border-radius: 6px;
}
body.oa-generic-page .entry-content pre { padding: 16px; overflow: auto; }
body.oa-generic-page .entry-content hr { border-color: var(--oa-rule); }
body.oa-generic-page .entry-content table { border-color: var(--oa-rule); }
body.oa-generic-page .entry-content th,
body.oa-generic-page .entry-content td { border-color: var(--oa-rule) !important; }

body.oa-generic-page .entry-meta,
body.oa-generic-page .post-meta,
body.oa-generic-page .ast-single-post-order { color: var(--oa-text-faint) !important; }

/* Widgets / sidebars on generic pages */
body.oa-generic-page .widget,
body.oa-generic-page .sidebar-main {
  background: transparent !important;
  color: var(--oa-text-dim);
}

/* Forms (contact, login prompts) */
body.oa-styles-site input[type="text"],
body.oa-styles-site input[type="email"],
body.oa-styles-site input[type="password"],
body.oa-styles-site input[type="search"],
body.oa-styles-site textarea,
body.oa-styles-site select {
  background: var(--oa-ground-2) !important;
  border: 1px solid var(--oa-rule) !important;
  color: var(--oa-text) !important;
  border-radius: 8px;
}

/* ---------- Optimal Access footer ---------- */
/* Our footer replaces whatever the theme / Beaver Builder rendered. */
body.oa-has-footer .site-footer,
body.oa-has-footer footer.ast-custom-footer,
body.oa-has-footer .site-primary-footer-wrap,
body.oa-has-footer .site-below-footer-wrap,
body.oa-has-footer .ast-small-footer {
  display: none !important;
}

.oa-footer {
  background: var(--oa-ground, #11151b);
  border-top: 1px solid var(--oa-rule, rgba(255,255,255,.10));
  color: var(--oa-text-dim, #9aa6b4);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  width: 100%;
  overflow-x: clip;
}
.oa-footer * { box-sizing: border-box; }
.oa-footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 40px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
.oa-footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.oa-footer-brand img { height: 34px; width: auto !important; max-width: none !important; display: block; }
.oa-footer-name {
  display: block;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}
.oa-footer-tagline {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--oa-text-faint, #6a7686);
}
.oa-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.oa-footer-links li { margin: 0; }
.oa-footer-links a {
  color: var(--oa-text-dim, #9aa6b4);
  text-decoration: none;
  letter-spacing: .04em;
}
.oa-footer-links a:hover { color: var(--oa-human, #4fd1c5); }
.oa-footer-links .oa-footer-cta {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--oa-rule, rgba(255,255,255,.20));
  border-radius: 999px;
  color: #ffffff;
}
.oa-footer-links .oa-footer-cta:hover {
  border-color: var(--oa-human, #4fd1c5);
  color: var(--oa-human, #4fd1c5);
}
.oa-footer-note {
  width: 100%;
  border-top: 1px solid var(--oa-rule, rgba(255,255,255,.10));
  margin-top: 4px;
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--oa-text-faint, #6a7686);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

@media (max-width: 780px) {
  .oa-footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 32px; }
  .oa-footer-links { gap: 12px 20px; }
  body.oa-generic-page .entry-content { font-size: 17px; }
}

/* ---------- tag clouds anywhere on the site (v4.2) ---------- */
body.oa-styles-site .tag-cloud-link,
body.oa-styles-site .tagcloud a,
body.oa-styles-site .wp-block-tag-cloud a,
body.oa-styles-site .widget_tag_cloud a,
body.oa-styles-site .blog-tags a,
body.oa-styles-site .entry-tags a,
body.oa-styles-site .post-tags a {
  display: inline-block !important;
  padding: 7px 12px !important;
  margin: 0 !important;
  background: var(--oa-ground-3) !important;
  border: 1px solid var(--oa-rule) !important;
  border-radius: 2px !important;
  color: var(--oa-text-dim) !important;
  font-family: var(--oa-mono) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
body.oa-styles-site .tag-cloud-link:hover,
body.oa-styles-site .tagcloud a:hover,
body.oa-styles-site .wp-block-tag-cloud a:hover,
body.oa-styles-site .widget_tag_cloud a:hover,
body.oa-styles-site .blog-tags a:hover,
body.oa-styles-site .entry-tags a:hover,
body.oa-styles-site .post-tags a:hover,
body.oa-styles-site .tag-cloud-link.active-tag,
body.oa-styles-site .tagcloud a.active-tag,
body.oa-styles-site .tag-cloud-link.current-tag {
  background: rgba(79,209,197,.14) !important;
  border-color: rgba(79,209,197,.4) !important;
  color: var(--oa-human) !important;
}
body.oa-styles-site .tagcloud,
body.oa-styles-site .wp-block-tag-cloud,
body.oa-styles-site .blog-tags,
body.oa-styles-site .widget_tag_cloud > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  background: transparent !important;
}
body.oa-styles-site .primary-sidebar,
body.oa-styles-site .widget-area .widget,
body.oa-styles-site .sidebar-main {
  background: transparent !important;
  color: var(--oa-text) !important;
}
body.oa-styles-site .widget-area .widget-title,
body.oa-styles-site .widget-area h2,
body.oa-styles-site .widget-area h3 {
  font-family: var(--oa-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
  color: var(--oa-text) !important;
}
