/*
Theme Name:   AIStock.money (Kadence Child)
Theme URI:    https://aistock.money/
Description:  Child theme for AIStock.money: ad slots, comparison tables, trust components, schema fallback.
Author:       AIStock.money
Template:     kadence
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  aistock
*/

/* ---------- Base reading experience ---------- */
.single-content, .entry-content { font-size: 1.125rem; line-height: 1.7; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content h2 { margin-top: 2.25rem; }

/* ---------- Comparison tables ---------- */
.wp-block-table.ais-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2rem 0; }
.wp-block-table.ais-compare table { min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table.ais-compare th,
.wp-block-table.ais-compare td { padding: 0.75rem; border: 1px solid var(--global-palette6, #D1D5DB); text-align: left; vertical-align: top; }
.wp-block-table.ais-compare thead th { background: var(--global-palette3, #0B2545); color: #fff; }
.wp-block-table.ais-compare tbody tr:nth-child(even) td { background: var(--global-palette8, #F8FAFC); }
.wp-block-table.ais-compare tbody td:first-child { position: sticky; left: 0; background: #fff; font-weight: 600; z-index: 1; }
.wp-block-table.ais-compare tbody tr:nth-child(even) td:first-child { background: var(--global-palette8, #F8FAFC); }
.wp-block-table.ais-compare figcaption,
.wp-block-table.ais-compare .wp-element-caption { font-size: 0.85rem; color: var(--global-palette5, #4B5563); margin-top: 0.5rem; text-align: left; }

/* ---------- Ad slots: reserved space + label ---------- */
.ais-ad { display: block; margin: 2rem auto; text-align: center; min-height: 280px; clear: both; }
.ais-ad::before { content: "Advertisement"; display: block; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--global-palette5, #4B5563); margin-bottom: 0.35rem; }
@media (min-width: 768px) { .ais-ad { min-height: 250px; } }
.ais-ad__placeholder { display: flex; align-items: center; justify-content: center; min-height: inherit; height: 250px; border: 2px dashed var(--global-palette6, #D1D5DB); border-radius: 8px; color: var(--global-palette5, #4B5563); font-size: 0.85rem; background: var(--global-palette8, #F8FAFC); }
.ais-ad--archive { grid-column: 1 / -1; }

/* ---------- Callouts ---------- */
.ais-takeaways { background: #ECFDF5; border-left: 4px solid var(--global-palette1, #0F766E); padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0; }
.ais-takeaways > :first-child { margin-top: 0; }
.ais-takeaways ul { margin-bottom: 0; }
.ais-disclaimer { background: var(--global-palette7, #F1F5F9); font-size: 0.9rem; line-height: 1.5; padding: 0.75rem 1rem; border-radius: 8px; color: var(--global-palette4, #1F2937); margin: 0 0 1.5rem; }
.ais-asof { border: 1px solid var(--global-palette6, #D1D5DB); font-size: 0.9rem; padding: 0.6rem 1rem; border-radius: 8px; margin: 1rem 0; }
.ais-related { border: 1px solid var(--global-palette6, #D1D5DB); border-radius: 8px; padding: 1rem 1.25rem; margin: 2rem 0; }
.ais-related > :first-child { margin-top: 0; }
.ais-sources { font-size: 0.95rem; }
.ais-holdings { font-size: 0.9rem; color: var(--global-palette5, #4B5563); font-style: italic; }

/* ---------- Homepage ---------- */
.ais-hero { padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.ais-hero .ais-eyebrow { letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: #5EEAD4; margin-bottom: 0.75rem; }
.ais-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; max-width: 18ch; margin-top: 0; }
.ais-hero p.ais-sub { color: #E2E8F0; font-size: 1.15rem; max-width: 60ch; }
.ais-btn-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border: 2px solid #fff; }
.ais-trust .wp-block-column { border-top: 3px solid var(--global-palette1, #0F766E); padding-top: 0.75rem; }
.ais-trust h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.ais-trust p { font-size: 0.95rem; margin: 0; }
.ais-card { border: 1px solid var(--global-palette6, #D1D5DB); border-radius: 8px; padding: 1.25rem; height: 100%; background: #fff; }
.ais-card h3 { font-size: 1.1rem; margin: 0.25rem 0 0.5rem; }
.ais-card h3 a { text-decoration: none; color: var(--global-palette3, #0B2545); }
.ais-card h3 a:hover, .ais-card h3 a:focus { text-decoration: underline; }
.ais-card p { font-size: 0.95rem; margin: 0; }
.ais-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--global-palette1, #0F766E); }
.ais-recent .wp-block-post { border: 1px solid var(--global-palette6, #D1D5DB); border-radius: 8px; padding: 1.25rem; background: #fff; }
.ais-recent .wp-block-post-title { font-size: 1.1rem; margin: 0.35rem 0; }
.ais-recent .wp-block-post-title a { text-decoration: none; }
.ais-recent .wp-block-post-terms a { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.ais-recent .wp-block-post-date, .ais-recent .wp-block-post-author-name { font-size: 0.85rem; color: var(--global-palette5, #4B5563); }
.ais-steps li { margin-bottom: 0.75rem; }
.ais-section { padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.ais-section-alt { background: var(--global-palette7, #F1F5F9); }
.home .content-container.site-container, .home .entry-content-wrap { padding-left: 0; padding-right: 0; }
.home .entry.single-entry { box-shadow: none; background: transparent; }

/* ---------- Footer ---------- */
.site-footer .widget-title, .site-footer .widget h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--global-palette3, #0B2545); }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { text-decoration: underline; }
.site-footer .footer-html { font-size: 0.85rem; line-height: 1.55; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin: 0.35rem 0; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .menu-toggle-open:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Footer + mobile spacing */
.ais-trust { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Left-align hero text with the 1100px content column */
.ais-hero > .wp-block-group__inner-container { max-width: 1100px; margin-left: auto; margin-right: auto; }
body .ais-hero > .wp-block-group__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
body .wp-block-group.ais-hero.is-layout-constrained > * { margin-left: max(0px, calc((100% - 1100px) / 2)) !important; margin-right: auto !important; }
