/*
Theme Name: WP FAST AI Foundation
Theme URI: https://huntertechsolutions.com
Author: Hunter Tech Solutions
Author URI: https://huntertechsolutions.com
Description: Gutenberg-first foundation theme for WP FAST AI / Gutenberg AI Importer. Full block editor support, shortcodes, wide/full alignments. No default menus — header/footer come from the plugin Site Chrome. Logo via Customize → Site Identity or [gutai_logo].
Version: 1.0.4
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: wp-fast-ai-foundation
Tags: full-site-editing, block-styles, wide-blocks, custom-logo, translation-ready
*/

/* Shell only — page design comes from imported assets + plugin chrome */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: #0f172a;
  background: #fff;
}

.wp-fast-ai-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}
.wp-fast-ai-skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wp-fast-ai-main {
  min-height: 50vh;
  width: 100%;
}

/* Full-bleed imported layouts — kill WP constrained-layout squeeze */
.wp-fast-ai-main > .entry-content,
.wp-fast-ai-main .entry-content,
.wp-fast-ai-main .is-layout-constrained,
.wp-fast-ai-main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-fast-ai-main .wp-block-post-content {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* Gutenberg alignment helpers */
.wp-fast-ai-main .alignwide,
.wp-fast-ai-main .alignfull {
  width: 100%;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Custom HTML blocks must not be boxed */
.wp-fast-ai-main .wp-block-html {
  max-width: none;
  margin: 0;
}

/* Block editor front-end parity for core blocks mixed with Custom HTML */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.custom-logo-link img,
.gutai-logo img,
.gutai-logo-img {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

/* Ensure shortcodes and HTML blocks aren't clipped */
.entry-content > * {
  max-width: 100%;
}

/* Blog reading type — Easy Mode clients do not get Gutenberg font-size.
   Plugin CSS variables win when Gutenberg AI / HTS Fields are active. */
.hts-post .post-body p,
.hts-post .post-body li,
.wp-fast-ai-entry.hts-post-view .entry-content p,
.wp-fast-ai-entry.hts-post-view .entry-content li {
  color: var(--gutai-blog-color, var(--gutai-text, #1B262C));
  font-size: var(--gutai-blog-size, 18px);
  font-weight: var(--gutai-blog-weight, 400);
  line-height: 1.75;
}
