/*
Theme Name: Space Today Editorial
Theme URI: https://spacetoday.com.br/
Author: Space Today
Description: Tema editorial responsivo para notícias, ciência e vídeos do Space Today.
Version: 1.1.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: space-today
*/
:root{--navy:#111337;--ink:#171b2b;--muted:#647088;--line:#e3e7ef;--blue:#365ce5;--pale:#f4f6fa;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;line-height:1.55}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button,input{font:inherit}button{cursor:pointer}.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}.skip-link{position:absolute;top:-100px;left:12px;padding:10px;background:#fff;z-index:100}.skip-link:focus{top:10px}.site-header{background:var(--navy);color:#fff}.header-inner{display:flex;align-items:center;gap:32px;min-height:92px}.brand{display:block;flex:none;width:156px}.brand img{display:block;width:100%;height:auto}.primary-navigation{margin-left:auto}.menu{display:flex;list-style:none;align-items:center;gap:28px;margin:0;padding:0}.menu a{font-size:.82rem;letter-spacing:.11em;font-weight:750;text-transform:uppercase}.menu a:hover,.menu a:focus-visible{color:#a9bbff}.header-search{display:flex;align-items:center;border:1px solid #616789;border-radius:3px;min-width:160px}.header-search input{background:none;border:0;color:#fff;width:120px;padding:9px 3px 9px 12px;font-size:.82rem;outline:0}.header-search input::placeholder{color:#c0c3d3}.header-search button{border:0;background:none;color:#fff;padding:8px 10px}.menu-toggle{display:none;border:1px solid #667095;background:none;color:#fff;padding:7px 11px}.masthead-rule{height:4px;background:linear-gradient(90deg,#4059d8,#5d51c3 55%,#1c305d)}.eyebrow,.card-category{color:var(--blue);text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:800}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:22px}.section-heading h2{margin:0 0 12px;font-size:1.3rem;letter-spacing:-.025em}.section-heading a{font-size:.82rem;color:var(--blue);font-weight:700}.page-title{font-size:clamp(2rem,4.6vw,3.3rem);letter-spacing:-.055em;line-height:1.1;margin:8px 0 16px}.intro{padding:38px 0 23px}.intro .eyebrow{margin:0 0 10px}.lead-grid{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:18px}.lead-grid .post-card:first-child{grid-row:span 2}.lead-grid .post-card:first-child .card-media{height:100%;min-height:490px}.post-card{position:relative;min-width:0}.card-media{display:block;position:relative;overflow:hidden;background:#171d37;aspect-ratio:16/10}.card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.post-card:hover .card-media img{transform:scale(1.035)}.card-media.placeholder{background:radial-gradient(circle at 72% 30%,#4a56b1,transparent 24%),linear-gradient(145deg,#131634,#303b72)}.play-mark{position:absolute;left:14px;bottom:14px;background:#fff;color:var(--navy);border-radius:50%;display:grid;place-items:center;width:34px;height:34px;font-size:13px;padding-left:2px}.lead-grid .post-card{display:flex;flex-direction:column}.lead-grid .post-card:first-child .card-copy{position:absolute;inset:auto 0 0;padding:75px 30px 24px;color:#fff;background:linear-gradient(transparent,rgba(6,9,28,.94))}.lead-grid .post-card:first-child .card-category{color:#9db6ff}.lead-grid .post-card:first-child .card-title{font-size:clamp(1.5rem,2.3vw,2.3rem);line-height:1.1}.lead-grid .post-card:not(:first-child) .card-media{aspect-ratio:16/9}.card-copy{padding:10px 0}.card-title{font-size:1rem;line-height:1.25;letter-spacing:-.025em;margin:6px 0 8px}.card-title a:hover{text-decoration:underline;text-decoration-thickness:1px}.card-meta{color:var(--muted);font-size:.76rem}.home-section{padding:38px 0}.home-section.tinted{background:var(--pale);margin-top:42px;padding:42px 0}.story-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.story-grid .card-media{aspect-ratio:16/10}.story-grid .card-title{font-size:1.05rem}.content-split{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:55px}.stack-list{display:grid;gap:22px}.stack-list .post-card{display:grid;grid-template-columns:210px 1fr;gap:18px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line)}.stack-list .card-copy{padding:0}.stack-list .card-title{font-size:1.13rem}.sidebar{border-top:3px solid var(--navy);padding-top:20px}.sidebar h2{font-size:1rem;text-transform:uppercase;letter-spacing:.09em;margin:0 0 16px}.sidebar ul{list-style:none;padding:0;margin:0}.sidebar li{border-bottom:1px solid var(--line);padding:9px 0}.sidebar li a{font-size:.9rem}.footer{background:#11142d;color:#cdd3e5;margin-top:72px;padding:46px 0 24px}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:start}.footer .brand{width:170px}.footer p{font-size:.85rem;max-width:400px}.footer .menu{flex-wrap:wrap;justify-content:flex-end;gap:18px}.footer .menu a{font-size:.75rem}.footer-bottom{border-top:1px solid #383d58;margin-top:32px;padding-top:18px;color:#9da6c3;font-size:.76rem}.archive-head{padding:48px 0 22px;border-bottom:1px solid var(--line);margin-bottom:34px}.archive-head p{color:var(--muted);max-width:700px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 22px}.pagination{margin:48px 0;display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.pagination .page-numbers{padding:8px 13px;border:1px solid var(--line)}.pagination .current,.pagination a:hover{background:var(--navy);color:#fff}.single-layout{display:grid;grid-template-columns:minmax(0,800px) 280px;gap:60px;padding-top:46px}.breadcrumbs{font-size:.78rem;color:var(--muted);margin-bottom:16px}.single-head h1{font-size:clamp(2.15rem,5vw,4rem);line-height:1.08;letter-spacing:-.055em;margin:10px 0 17px}.single-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:.83rem;margin:0 0 28px}.single-meta a{color:var(--ink);font-weight:700}.single-feature{margin:0 0 28px}.single-feature img{width:100%;display:block}.video-frame{position:relative;aspect-ratio:16/9;background:#090d1e;margin:0 0 30px}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-poster{display:block;position:relative;width:100%;aspect-ratio:16/9;border:0;background:#0b0f22;color:#fff;padding:0}.video-poster img{width:100%;height:100%;object-fit:cover;display:block}.video-poster:after{content:'▶';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:68px;height:48px;border-radius:12px;background:#ed232a;color:#fff;display:grid;place-items:center;font-size:23px;padding-left:3px}.article-body{font-size:1.08rem;line-height:1.82;overflow-wrap:anywhere}.article-body p{margin:0 0 1.35em}.article-body h2,.article-body h3{line-height:1.2;letter-spacing:-.03em;margin:1.5em 0 .55em}.article-body img{height:auto}.article-body iframe{max-width:100%}.article-body blockquote{border-left:4px solid var(--blue);padding-left:20px;margin-left:0;color:#424d66}.article-body a{text-decoration:underline;color:var(--blue)}.article-body figure{max-width:100%}.article-body .wp-block-embed__wrapper{max-width:100%;overflow:hidden}.post-tax{font-size:.85rem;border-top:1px solid var(--line);padding:20px 0;margin-top:30px}.post-tax a{color:var(--blue)}.author-box{background:var(--pale);padding:24px;margin-top:20px}.author-box h2{font-size:1.05rem;margin:0 0 8px}.author-box p{margin:0}.search-form{display:flex;gap:8px;max-width:560px}.search-form label{flex:1}.search-form input{width:100%;border:1px solid #bdc4d4;padding:12px 14px}.search-form button{border:0;background:var(--navy);color:#fff;padding:12px 18px}.empty-state{padding:40px 0}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}.screen-reader-text:focus{position:static;clip:auto;height:auto;width:auto}@media(max-width:1050px){.header-inner{gap:18px}.menu{gap:14px}.header-search{min-width:110px}.header-search input{width:78px}.lead-grid{grid-template-columns:1.25fr 1fr}.lead-grid .post-card:first-child{grid-row:span 2}.lead-grid .post-card:first-child .card-media{min-height:450px}.story-grid{grid-template-columns:repeat(2,1fr)}.single-layout{gap:28px;grid-template-columns:minmax(0,1fr) 230px}}@media(max-width:760px){.container{width:min(calc(100% - 32px),var(--max))}.header-inner{min-height:70px;flex-wrap:wrap;gap:12px}.brand{width:120px}.menu-toggle{display:block;margin-left:auto}.primary-navigation{display:none;order:3;width:100%;margin:0;padding:0 0 16px}.primary-navigation.is-open{display:block}.primary-navigation .menu{display:flex;align-items:stretch;flex-direction:column;gap:0}.primary-navigation .menu li{border-top:1px solid #3b4064}.primary-navigation .menu a{display:block;padding:12px 0}.header-search{width:100%;order:4;margin:0 0 15px}.header-search input{width:100%}.intro{padding:26px 0 16px}.lead-grid{display:block}.lead-grid .post-card{margin-bottom:22px}.lead-grid .post-card:first-child .card-media{min-height:0;aspect-ratio:4/3}.lead-grid .post-card:first-child .card-copy{padding:55px 18px 16px}.lead-grid .post-card:not(:first-child) .card-media{aspect-ratio:16/9}.home-section,.home-section.tinted{padding:28px 0}.story-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.content-split,.single-layout{display:block}.sidebar{margin-top:42px}.stack-list .post-card{grid-template-columns:145px 1fr;gap:13px}.single-layout{padding-top:28px}.article-body{font-size:1rem}.footer-grid{display:block}.footer .menu{justify-content:flex-start;margin-top:25px}}@media(max-width:480px){.story-grid,.archive-grid{grid-template-columns:1fr}.story-grid .card-media,.archive-grid .card-media{aspect-ratio:16/9}.stack-list .post-card{grid-template-columns:112px 1fr}.stack-list .card-media{aspect-ratio:1}.stack-list .card-title{font-size:.96rem}.stack-list .card-meta{font-size:.7rem}.lead-grid .post-card:first-child .card-title{font-size:1.5rem}.single-head h1{font-size:2.15rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card-media img{transition:none}}

/* 1.1 — Refinamento editorial */
.featured-section{padding:0 0 8px}.featured-section .lead-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.featured-section .lead-grid .post-card:first-child{grid-column:1/-1;grid-row:auto;width:100vw;margin-left:calc(50% - 50vw);overflow:hidden;background:#0b1026}.featured-section .lead-grid .post-card:first-child .card-media{width:100%;height:auto;min-height:0;max-height:640px;aspect-ratio:16/9}.featured-section .lead-grid .post-card:first-child .card-media img{width:100%;height:100%;object-fit:cover;object-position:center}.featured-section .lead-grid .post-card:first-child .card-copy{left:max(24px,calc((100vw - var(--max))/2));right:auto;bottom:0;width:min(780px,calc(100vw - 48px));padding:100px 0 40px;background:none;z-index:2}.featured-section .lead-grid .post-card:first-child:after{content:'';pointer-events:none;position:absolute;inset:25% 0 0;background:linear-gradient(transparent,rgba(4,8,24,.86));z-index:1}.featured-section .lead-grid .post-card:first-child .card-title{font-size:clamp(2rem,4vw,3.65rem);max-width:760px;line-height:1.04;letter-spacing:-.045em;text-wrap:balance}.featured-section .lead-grid .post-card:first-child .card-meta{color:#cbd4ed}.featured-section .lead-grid .post-card:not(:first-child) .card-media{aspect-ratio:16/9}.featured-section .lead-grid .post-card:not(:first-child) .card-title{font-size:1.08rem}.featured-section .lead-grid .post-card:not(:first-child) .card-copy{padding-top:13px}.featured-section .lead-grid .post-card:not(:first-child) .card-category{font-size:.7rem}
.video-section{margin:48px 0 0;padding:54px 0 62px;background:#111630;color:#fff}.video-section .section-heading{border-bottom-color:#39415f;margin-bottom:28px}.video-section .section-heading h2{font-size:clamp(1.55rem,2.4vw,2.15rem);letter-spacing:-.04em}.video-label{display:inline-grid;place-items:center;width:42px;height:29px;border-radius:8px;background:#ed2634;color:white;font-size:14px;vertical-align:3px;margin-right:10px;padding-left:2px}.video-section-kicker{color:#aab5d2;font-size:.84rem}.video-section .story-grid{gap:22px}.video-section .card-media{aspect-ratio:16/9;border:1px solid #323b5d}.video-section .play-mark{left:50%;bottom:50%;transform:translate(-50%,50%);width:48px;height:36px;border-radius:10px;background:#ed2634;color:#fff;font-size:16px;box-shadow:0 7px 25px #0008}.video-section .card-copy{padding-top:15px}.video-section .card-category{color:#aabfff}.video-section .card-title{font-size:1.08rem;line-height:1.27}.video-section .card-meta{color:#aab5d2}
.single-layout{padding-top:54px}.breadcrumbs{margin-bottom:29px;letter-spacing:.02em}.breadcrumbs a:hover{text-decoration:underline}.single-head .eyebrow{display:inline-block;border-left:3px solid var(--blue);padding-left:10px}.single-head h1{font-size:clamp(2.4rem,4.5vw,3.9rem);line-height:1.075;letter-spacing:-.05em;font-weight:800;text-wrap:balance;margin:14px 0 23px}.single-meta{align-items:center;border-top:1px solid var(--line);padding-top:17px;margin-bottom:26px;color:#566079;font-size:.88rem}.single-meta a{color:var(--ink)}.single-meta .meta-divider{color:#a1aabd}.video-frame,.single-feature{margin-bottom:38px}.single-feature figcaption{font-size:.8rem;color:var(--muted);margin-top:8px}.article-body{font-size:1.125rem;line-height:1.85;color:#272d3c}.article-body p{margin-bottom:1.45em}.article-body h2{font-size:1.65rem;margin-top:1.8em}.article-body h3{font-size:1.3rem;margin-top:1.6em}.article-body ul,.article-body ol{padding-left:1.5em;margin-bottom:1.5em}.article-body li{margin-bottom:.4em}.article-body blockquote{background:#f5f7fc;padding:17px 24px;margin:28px 0}.article-body figcaption{font-size:.78rem;line-height:1.5;color:var(--muted)}.article-body a{text-underline-offset:3px}.post-tax{margin-top:40px}.author-box{border-left:4px solid var(--blue);padding:25px 28px;margin-top:24px}.author-box h2{font-size:1.12rem}.author-box p{font-size:.92rem;color:#4e5a70}.author-box a{font-weight:700;color:var(--blue)}
.single-layout .sidebar{border:1px solid var(--line);border-top:4px solid var(--navy);padding:24px 22px 12px;align-self:start;background:#fafbfe}.single-layout .sidebar h2{font-size:.9rem;letter-spacing:.11em;margin-bottom:13px}.single-layout .sidebar li{padding:0;border-color:#e4e8f1}.single-layout .sidebar li a{display:block;padding:12px 3px;font-size:.91rem;line-height:1.3;transition:padding .2s,color .2s}.single-layout .sidebar li a:hover{padding-left:9px;color:var(--blue)}.single-layout .sidebar li:last-child{border:0}
.related-posts{margin-top:58px;padding-top:13px;border-top:3px solid var(--navy)}.related-posts .section-heading{border:0;margin-bottom:17px}.related-posts .section-heading h2{font-size:1.4rem;margin:0}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.related-grid .card-media{aspect-ratio:16/9}.related-grid .card-title{font-size:.95rem}.related-grid .card-copy{padding-top:10px}.related-grid .card-category{font-size:.65rem}
@media(max-width:1050px){.featured-section .lead-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-section .lead-grid .post-card:first-child .card-media{max-height:580px}.featured-section .lead-grid .post-card:first-child .card-copy{left:24px}.related-grid{gap:12px}}
@media(max-width:760px){.featured-section .lead-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.featured-section .lead-grid .post-card:first-child{margin-bottom:4px}.featured-section .lead-grid .post-card:first-child .card-media{aspect-ratio:16/9;min-height:0;max-height:none}.featured-section .lead-grid .post-card:first-child .card-copy{left:16px;width:calc(100vw - 32px);padding:45px 0 17px}.featured-section .lead-grid .post-card:first-child .card-title{font-size:clamp(1.25rem,5vw,2.1rem);line-height:1.12;margin:4px 0}.featured-section .lead-grid .post-card:first-child .card-category{font-size:.65rem}.featured-section .lead-grid .post-card:first-child .card-meta{font-size:.68rem}.featured-section .lead-grid .post-card:not(:first-child) .card-title{font-size:.94rem}.video-section{padding:37px 0 43px;margin-top:28px}.video-section-kicker{display:none}.single-layout{padding-top:28px}.single-head h1{font-size:clamp(2.2rem,7vw,3.3rem)}.single-layout .sidebar{margin-top:44px}.related-posts{margin-top:45px}.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.featured-section .lead-grid .post-card:first-child .card-media{aspect-ratio:4/3}.featured-section .lead-grid .post-card:first-child .card-title{font-size:clamp(1.45rem,6vw,2rem)}.featured-section .lead-grid .post-card:first-child .card-copy{padding-bottom:19px}.featured-section .lead-grid .post-card:not(:first-child) .card-meta{font-size:.7rem}.featured-section .lead-grid .post-card:not(:first-child) .card-category{font-size:.61rem}.video-section .story-grid{grid-template-columns:1fr 1fr}.video-section .card-title{font-size:.92rem}.video-section .section-heading h2{font-size:1.5rem}.related-grid{grid-template-columns:1fr}.related-grid .post-card{display:grid;grid-template-columns:115px minmax(0,1fr);gap:12px}.related-grid .card-media{aspect-ratio:1}.related-grid .card-title{margin-top:2px}.related-grid .card-meta{font-size:.7rem}.article-body{font-size:1.04rem;line-height:1.78}}

/* 1.1.1 — Foto do autor */
.author-box{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:22px;align-items:start}.author-photo{width:96px;height:96px;overflow:hidden;border-radius:50%;background:#e7ebf3}.author-photo .author-avatar-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.author-details h2{margin-top:0}.author-details p{margin:0 0 10px}.author-details>a{font-size:.9rem}
@media(max-width:480px){.author-box{grid-template-columns:72px minmax(0,1fr);column-gap:15px;padding:20px}.author-photo{width:72px;height:72px}}

/* 1.1.2 — Ajustes de contraste e identidade */
.featured-section .lead-grid .post-card:first-child:after{inset:0;background:linear-gradient(180deg,rgba(5,8,24,.28) 0%,rgba(5,8,24,.5) 52%,rgba(5,8,24,.94) 100%)}
.featured-section .lead-grid .post-card:first-child .card-title a:hover,.featured-section .lead-grid .post-card:first-child .card-title a:focus-visible{color:#ffdc5d}
.video-section{background:#f0f2f5;color:var(--ink)}.video-section .section-heading{border-bottom-color:#d4dbe7}.video-section-kicker,.video-section .card-meta{color:#58657a}.video-section .card-category{color:var(--blue)}.video-section .card-media{border-color:#d5dbe6}
.footer .brand{width:127.5px}

/* 1.1.3 — Menus nativos do WordPress */
.site-header__menu,.site-footer__menu{display:flex;list-style:none;align-items:center;gap:28px;margin:0;padding:0}.site-header__menu a,.site-footer__menu a{font-size:.82rem;letter-spacing:.11em;font-weight:750;text-transform:uppercase}.site-header__menu a:hover,.site-header__menu a:focus-visible{color:#a9bbff}.site-header__menu li,.site-footer__menu li{position:relative}.site-header__menu .sub-menu{display:none;position:absolute;z-index:20;top:100%;left:0;min-width:225px;margin:0;padding:9px 0;list-style:none;background:var(--navy);border:1px solid #454a70;box-shadow:0 14px 30px #0003}.site-header__menu .sub-menu .sub-menu{top:-10px;left:100%}.site-header__menu .sub-menu a{display:block;padding:10px 16px;line-height:1.4;white-space:normal}.site-header__menu li:hover>.sub-menu,.site-header__menu li:focus-within>.sub-menu{display:block}.site-header__menu>li.menu-item-has-children>a:after{content:'⌄';display:inline-block;margin-left:7px;font-size:1rem;line-height:0}.header-search{margin-left:auto}.primary-navigation+.header-search{margin-left:0}.site-footer__menu{flex-wrap:wrap;justify-content:flex-end;gap:18px}.site-footer__menu a{font-size:.75rem}.site-footer__menu .sub-menu{list-style:none;margin:8px 0 0;padding:0}.site-footer__menu .sub-menu li{margin:5px 0}.site-footer__menu .sub-menu a{font-size:.7rem}
@media(max-width:1050px){.site-header__menu{gap:14px}}
@media(max-width:760px){.site-header__menu{display:flex;align-items:stretch;flex-direction:column;gap:0}.site-header__menu>li{border-top:1px solid #3b4064}.site-header__menu>li>a{display:block;padding:12px 0}.site-header__menu .sub-menu,.site-header__menu .sub-menu .sub-menu{display:block;position:static;min-width:0;border:0;box-shadow:none;margin:0 0 7px 16px;padding:0 0 0 12px;border-left:1px solid #555b81}.site-header__menu .sub-menu a{padding:8px 0}.site-footer__menu{justify-content:flex-start;margin-top:25px}}

/* 1.1.4 — Busca dentro do menu mobile */
.mobile-search{display:none}
@media(max-width:760px){.header-inner{padding-top:10px;padding-bottom:10px}.desktop-search{display:none}.primary-navigation .mobile-search{display:flex;width:100%;margin:14px 0 0}.primary-navigation .mobile-search input{width:100%}}
