/*
Theme Name: ThanksToChart
Description: Single-page, fully editable block theme for the ThanksToChart Crude Oil indicator. Edit every section visually in the WordPress block editor / Site Editor (requires WordPress 6.5+).
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: thankstochart
*/
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{overflow-x:hidden}
@supports (overflow:clip){body{overflow-x:clip}}
html{scroll-padding-top:84px}
.tc-header{position:relative;z-index:50;background:rgba(11,18,32,.93);backdrop-filter:blur(10px);border-bottom:1px solid var(--wp--preset--color--line);padding:10px 20px}
.admin-bar .tc-header{top:32px}
.tc-header .wp-block-site-title{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:1.25rem;margin:0}
.tc-header .wp-block-site-title a{color:#fff;text-decoration:none}
.tc-header .wp-block-navigation a{color:var(--wp--preset--color--muted);text-decoration:none}
.tc-header .wp-block-navigation a:hover{color:#fff}
.tc-header .tc-nav-cta a{background:var(--wp--preset--color--blue);color:#fff;border-radius:8px;padding:8px 16px;font-weight:600}
.tc-section{padding-top:88px!important;padding-bottom:88px!important;border-top:1px solid var(--wp--preset--color--line)}
.tc-hero{padding-top:72px!important;border-top:0}
.tc-section p{color:var(--wp--preset--color--muted);max-width:62ch}
.tc-section .wp-block-buttons p,.tc-sub{max-width:none}
.tc-sub{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:clamp(1.1rem,2.5vw,1.5rem);color:var(--wp--preset--color--blue-soft)!important}
.tc-card{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:12px;padding:20px}
.tc-card h3{margin-top:0}
.tc-card p{font-size:.96rem}
.tc-shot{aspect-ratio:16/10;border:1px dashed #3a4c70;border-radius:12px;background:linear-gradient(180deg,#0f1930,#0b1220);display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;overflow:hidden}
.tc-shot img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.tc-shot p,.tc-video p{margin:0;font-size:.9rem;max-width:30ch}
/* Video cards: the old flex-centred .tc-shot box shrank embeds to 0 width, so YouTube/Vimeo never showed. */
.tc-video{display:grid;align-items:center;justify-items:stretch;aspect-ratio:16/9;padding:0;border:1px solid var(--wp--preset--color--line);background:#000;overflow:hidden;position:relative}
.tc-video>p{padding:20px;text-align:center;justify-self:center}
.tc-video>.wp-block-embed,.tc-video>figure,.tc-video>.wp-block-video{width:100%!important;max-width:none!important;margin:0!important;min-width:0}
.tc-video .wp-block-embed__wrapper{width:100%;position:relative}
.tc-video iframe{display:block;width:100%;max-width:100%;border:0}
/* Embeds anywhere on the site */
.wp-block-embed{max-width:100%}
.wp-block-embed iframe{max-width:100%;border:0}
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper{width:100%}
.tc-steps{border:1px solid var(--wp--preset--color--line);border-radius:12px;margin-top:36px;gap:0!important}
.tc-steps>.wp-block-column{padding:28px;border-right:1px solid var(--wp--preset--color--line)}
.tc-steps>.wp-block-column:last-child{border-right:0}
.tc-steps .tc-stepn{color:var(--wp--preset--color--red);font-size:.9rem;margin:0}
@media(max-width:781px){.tc-steps>.wp-block-column{border-right:0;border-bottom:1px solid var(--wp--preset--color--line)}}
.tc-offer{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-left:4px solid var(--wp--preset--color--red);border-radius:12px;padding:36px}
.tc-why{border-left:2px solid var(--wp--preset--color--blue);padding-left:18px}
.tc-why p{margin:0;font-size:.96rem}
.tc-why h3{margin:0 0 4px}
.wp-block-details{border-bottom:1px solid var(--wp--preset--color--line);max-width:820px}
.wp-block-details summary{cursor:pointer;padding:20px 0;font-weight:600;min-height:48px}
.wp-block-details p{padding-bottom:16px;margin:0}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;border:1px solid var(--wp--preset--color--line);color:#fff}
.wp-block-button.is-style-outline .wp-block-button__link:hover{border-color:var(--wp--preset--color--blue-soft)}
.tc-footer{border-top:1px solid var(--wp--preset--color--line);padding:48px 20px 60px;font-size:.88rem;color:var(--wp--preset--color--muted)}
.tc-footer p{font-size:.88rem}
:focus-visible{outline:3px solid var(--wp--preset--color--blue-soft);outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* Fixed header: the sticky element must be the template-part wrapper, otherwise it has no room to stick */
.wp-site-blocks>header.wp-block-template-part{position:sticky;top:0;z-index:100}
.admin-bar .wp-site-blocks>header.wp-block-template-part{top:32px}
@media(max-width:782px){.admin-bar .wp-site-blocks>header.wp-block-template-part{top:46px}}
body.ttc-no-sticky .wp-site-blocks>header.wp-block-template-part{position:static}
.tc-brand{display:flex;align-items:center;gap:10px}
.tc-brand-icon{width:36px;height:36px;border-radius:9px;background:#fff;object-fit:contain;display:block;flex:none}
@media(max-width:600px){.tc-brand-icon{width:30px;height:30px}}
