/*
Theme Name: Carl Tyson Consulting 2026
Theme URI: https://carltyson.consulting
Author: Carl G. Tyson III
Author URI: https://carltyson.consulting
Description: Sister theme of Futuro Atual 2026 for CarlTyson.consulting: black background, Petty Blue, General Lee Orange, USA and Brazil flag colors, Platypi + Ysabeau Office type.
Version: 1.0.4
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carltyson-consulting
Tags: block-theme, full-site-editing, dark, consulting
*/

/* ---- Base (carried over from the Twenty Twenty-Five foundation, GPL) ---- */
a{text-decoration-thickness:1px!important;text-underline-offset:.1em}
:where(.ct-site-blocks *:focus){outline-width:2px;outline-style:solid}
.ct-block-navigation .ct-block-navigation-submenu .ct-block-navigation-item:not(:last-child){margin-bottom:3px}
.ct-block-navigation .ct-block-navigation-item .ct-block-navigation-item__content{outline-offset:4px}
.ct-block-navigation .ct-block-navigation-item ul.ct-block-navigation__submenu-container .ct-block-navigation-item__content{outline-offset:0}
h1,h2,h3,h4,h5,h6,blockquote,caption,figcaption,p{text-wrap:pretty}
.more-link{display:block}
:where(pre){overflow-x:auto}

/* ---- Futuro Atual site styles (moved from Site Editor "Additional CSS") ---- */
.ct-block-site-tagline {
  text-align: left !important;
}/* Futuro Atual – spacing fixes */
:root .ct-block-post-title { line-height: 1.2 !important; margin-top: 0; margin-bottom: var(--ct--preset--spacing--30); }
body, body p:not([class*="has-text-align"]), body li { text-align: left; }
body main.ct-block-group { margin-top: var(--ct--preset--spacing--30) !important; }
header.ct-block-template-part .ct-block-group.is-layout-flex { gap: 0.25rem 1rem; }
header.ct-block-template-part .ct-block-site-title,
header.ct-block-template-part .ct-block-site-tagline { margin: 0; line-height: 1.2; }
@media (max-width: 600px) { .ct-block-post-title, h1, h2 { overflow-wrap: break-word; hyphens: manual; } }

/* ---- Cross-device polish ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,iframe{max-width:100%}
img{height:auto}
:focus-visible{outline:3px solid var(--ct--preset--color--custom-brasil-yellow-ffdf-00);outline-offset:3px}
.ct-block-navigation__responsive-container-open,.ct-block-navigation__responsive-container-close{min-width:44px;min-height:44px;align-items:center;justify-content:center}
.ct-block-button__link{min-height:44px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---- Flag stripe (USA red/white/blue, then Brasil green/yellow/blue) at top and bottom ---- */
.fa-flagstripe{height:6px;margin:0!important;padding:0!important;
  background:linear-gradient(90deg,#B31942 0 16.66%,#FFFFFF 16.66% 33.33%,#0A3161 33.33% 50%,#009C3B 50% 66.66%,#FFDF00 66.66% 83.33%,#002776 83.33% 100%)}
.ct-site-blocks>.fa-flagstripe{margin-block-start:0!important}
.ct-site-blocks>.fa-flagstripe+*{margin-block-start:0!important}

/* ---- Carl Tyson Consulting extras ---- */
.ct-hero img{border-radius:12px}
.ct-card{border:2px solid var(--ct--preset--color--custom-petty-blue-15-b-0-f-0);border-radius:16px;padding:1.25rem;background:#0a3161}
.ct-cta .ct-block-button__link{font-weight:700;letter-spacing:.02em}
.ct-logo img{background:#fff;border-radius:50%}

/* Buttons: Brazil flag green (less bright than yellow) */
.ct-cta .ct-block-button__link,
.ct-block-button__link.has-custom-brasil-yellow-ffdf-00-background-color{background-color:#009739 !important;color:#FFFFFF !important;border:2px solid #FFDF00}
.ct-cta .ct-block-button__link:hover{background-color:#007a2e !important;color:#FFFFFF !important}

/* Header date: yellow, same pattern as the site title */
.ct-date{margin:.15rem 0 0;color:var(--ct--preset--color--custom-brasil-yellow-ffdf-00,#FFDF00);font-family:var(--ct--preset--font-family--platypi,inherit);font-size:19px;font-style:italic;letter-spacing:.06em}

/* One-page layout: smooth anchors, keep headings clear of the top stripe, never overflow on small screens. */
html{scroll-behavior:smooth}
h2[id]{scroll-margin-top:24px}
img,.ct-block-image img{max-width:100%;height:auto}
@media (max-width:600px){
  .ct-date{font-size:16px}
  .ct-cta .ct-block-button,.ct-cta .ct-block-button__link{width:100%;text-align:center}
}

/* Skip link (own copy, so the core file name is not exposed) */
.skip-link.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.skip-link.screen-reader-text:focus{background:#fff;clip-path:none;color:#000;display:block;height:auto;left:6px;padding:15px 23px 14px;top:7px;width:auto;z-index:100000}
