/*
Theme Name: Candoru Tech
Theme URI: https://candoru.ru/
Author: Codex
Description: Современная адаптивная тема для технологического журнала Candoru.
Version: 1.5.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: candoru-tech
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{--ink:#0a0a0a;--muted:#666;--accent:#ff5a1f;--line:#e8e8e8;--max:1380px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.48;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}img{display:block;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.04;letter-spacing:-.045em}h1,h2{font-weight:900}h3{font-weight:800}.container{width:min(calc(100% - 56px),var(--max));margin-inline:auto}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);overflow:hidden;width:1px;height:1px}.skip-link:focus{clip:auto;width:auto;height:auto;z-index:10000;padding:12px 18px;background:#fff;left:12px;top:12px}.accent-dot{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.empty-state{padding:48px;border:1px dashed #bdbdbd;text-align:center;color:var(--muted)}

/* Header */
.site-header{background:#fff;position:relative;z-index:50}.site-header__inner{min-height:92px;display:grid;grid-template-columns:240px 1fr 132px;align-items:center;gap:24px}.site-brand__wordmark,.site-footer__brand{display:inline-block;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:41px;font-weight:900;line-height:1;letter-spacing:-.035em;transform:scaleX(.84);transform-origin:left center}.custom-logo{max-height:68px;width:auto}.site-nav__list{list-style:none;display:flex;justify-content:center;align-items:center;gap:clamp(16px,2.4vw,42px);padding:0;margin:0}.site-nav__list a{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}.site-header__actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:#0a0a0a;padding:5px;border-radius:50%}.icon-button:hover{background:rgba(0,0,0,.06)}.icon-button svg{width:21px;height:21px;grid-area:1/1}.theme-toggle__sun,.site-brand__logo-dark{display:none}.menu-toggle{display:none}.header-search{position:absolute;top:100%;left:0;right:0;padding:18px 0 22px;background:#fff;box-shadow:0 15px 30px rgba(0,0,0,.1)}.header-search[hidden]{display:none}.search-form{display:flex;gap:10px}.search-form label{flex:1}.search-field{width:100%;padding:14px 16px;border:1px solid #bbb;border-radius:3px}.search-submit{border:0;background:var(--ink);color:#fff;padding:0 24px;font-weight:700}

/* Hero */
.hero{position:relative;isolation:isolate;overflow:hidden;background:#f5f5f4}.hero__backdrop{position:absolute;z-index:-1;top:0;left:39%;width:26%;height:100%;background:var(--accent);clip-path:polygon(30% 0,100% 0,62% 31%,100% 46%,45% 100%,0 100%,45% 54%,0 41%)}.hero__inner{position:relative;display:grid;grid-template-columns:46% 54%;min-height:590px;align-items:center}.hero__copy{position:relative;z-index:2;padding:52px 0 58px}.hero__eyebrow,.eyebrow{display:block;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.hero h1{max-width:690px;margin:22px 0 22px;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(76px,8.4vw,148px);line-height:.83;letter-spacing:-.035em;font-weight:900;transform:scaleX(.88);transform-origin:left center}.hero p{max-width:390px;margin:0 0 28px;font-size:20px;font-weight:500;line-height:1.35;letter-spacing:-.025em}.button{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:53px;padding:0 25px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;border-radius:3px;transition:transform .2s ease,background .2s ease}.button:hover{transform:translateY(-2px)}.button--dark{color:#fff;background:#070707}.button--dark:hover{color:#fff;background:#333}.button--light{color:#0a0a0a;background:#fff}.button--light:hover{color:#0a0a0a;background:#ececec}.button span{font-size:20px;font-weight:400}.hero__image-wrap{position:relative;align-self:stretch;overflow:visible}.hero__image{position:absolute;z-index:1;inset:0 auto 0 -8%;width:113%;height:100%;object-fit:cover;object-position:54% center;mix-blend-mode:multiply}

/* Shared sections */
.section-pad{padding:78px 0 88px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:30px}.section-heading h2{margin:0;font-size:clamp(32px,3.1vw,48px)}.text-link{font-size:13px;font-weight:800;white-space:nowrap}.text-link span{margin-left:10px;font-size:20px;font-weight:400}.section-heading--light{color:#fff}.section-heading--light a{color:#fff}

/* Three top cards */
.top-stories{padding-top:33px;padding-bottom:64px}.top-stories__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.story-card__image-link{position:relative;display:block;overflow:hidden;border-radius:7px;background:#ddd;aspect-ratio:1.62}.story-card__image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.story-card__image-link:hover .story-card__image{transform:scale(1.045)}.story-card__number{position:absolute;left:12px;bottom:-16px;color:var(--accent);font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:65px;line-height:1;letter-spacing:-.04em;text-shadow:0 1px 3px rgba(0,0,0,.1)}.story-card__body{padding:25px 4px 0}.story-card h2{font-size:clamp(21px,2vw,31px);line-height:1.09;margin:9px 0}.story-card p{max-width:330px;margin:0;font-size:15px;line-height:1.42;color:#585858}

/* News */
.news-section{border-top:1px solid var(--line)}.news-layout{display:grid;grid-template-columns:1.02fr .98fr;gap:52px}.lead-story__image-link{display:block;overflow:hidden;border-radius:6px;aspect-ratio:1.6;background:#ececec}.lead-story__image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.lead-story__image-link:hover .lead-story__image{transform:scale(1.035)}.lead-story__meta{display:flex;gap:18px;align-items:center;margin:18px 0 9px;color:#999;font-size:12px}.lead-story__meta span{color:var(--accent);font-weight:900;text-decoration:underline;text-underline-offset:4px;text-transform:uppercase}.lead-story h3{max-width:720px;font-size:clamp(28px,3vw,45px);margin:0 0 9px}.lead-story p{max-width:620px;margin:0;color:#555;font-size:17px}.news-list{display:grid;align-content:start;gap:19px}.news-list__item{display:grid;grid-template-columns:144px 1fr;gap:22px;align-items:start}.news-list__thumb{display:block;overflow:hidden;border-radius:5px;aspect-ratio:1.25;background:#eee}.news-list__image{width:100%;height:100%;object-fit:cover}.news-list h3{font-size:clamp(17px,1.5vw,22px);line-height:1.22;letter-spacing:-.025em;margin:2px 0 8px}.news-list time{font-size:12px;color:#999}

/* Editor picks */
.editors-section{background:#101010}.editors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.editor-card{min-width:0}.editor-card a{position:relative;display:block;overflow:hidden;border-radius:6px;color:#fff;aspect-ratio:.89;background:#242424}.editor-card__image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.editor-card a:hover .editor-card__image{transform:scale(1.05)}.editor-card__shade{position:absolute;inset:20% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.35) 42%,rgba(0,0,0,.93) 100%)}.editor-card__content{position:absolute;inset:auto 20px 21px;display:grid;gap:12px}.editor-card__category{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.11em;color:#ff8a61}.editor-card__title{font-size:clamp(24px,2.25vw,36px);font-weight:900;line-height:1.03;letter-spacing:-.04em;text-transform:uppercase}.editor-card__bottom{display:flex;align-items:end;justify-content:space-between;gap:15px;font-size:13px;line-height:1.35;color:#eee}.editor-card__bottom>span:first-child{max-width:230px}.circle-arrow{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;background:#fff;color:#101010;font-size:22px}

/* Categories */
.categories-section{padding-top:76px;padding-bottom:79px}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.category-tile{position:relative;display:block;min-height:155px;padding:25px 28px;border-radius:9px;overflow:hidden;isolation:isolate;color:#171717;transition:transform .25s ease}.category-tile:hover{transform:translateY(-4px);color:#171717}.category-tile__name{display:block;max-width:65%;font-size:21px;font-weight:900;letter-spacing:-.04em}.category-tile__description{display:block;max-width:64%;margin-top:5px;font-size:13px;line-height:1.3}.category-tile__icon{position:absolute;right:18px;bottom:-35px;z-index:-1;font-family:Arial,sans-serif;font-size:145px;line-height:1;color:rgba(7,24,67,.22);font-weight:900;transform:rotate(-15deg);filter:drop-shadow(5px 12px 7px rgba(0,0,0,.1))}.tile--coral{background:linear-gradient(110deg,#ff9f8f,#ffb9a2)}.tile--yellow{background:linear-gradient(110deg,#ffe874,#a5d7a3)}.tile--lilac{background:linear-gradient(110deg,#b9a4ff,#f4a4df)}.tile--violet{background:linear-gradient(110deg,#a995ff,#c5c6ff)}.tile--sky{background:linear-gradient(110deg,#8cdbef,#96bdf5)}.tile--blue{background:linear-gradient(110deg,#89aee0,#afc7ed)}

/* Video */
.video-section{position:relative;min-height:340px;display:flex;align-items:center;isolation:isolate;color:#fff;background:#111;overflow:hidden}.video-section__image,.video-section__photo{position:absolute;inset:0;width:100%;height:100%}.video-section__image{z-index:-2}.video-section__photo{object-fit:cover;object-position:center 45%;filter:brightness(.65)}.video-section::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.64) 43%,transparent)}.video-section__content{padding:46px 0}.eyebrow--light{color:#ff9a76}.video-section h2{font-size:clamp(37px,4vw,59px);margin:12px 0 8px}.video-section p{max-width:430px;font-size:17px;line-height:1.35;margin:0 0 24px}

/* Black footer */
.site-footer{background:#050505;color:#fff}.site-footer__top{display:flex;justify-content:space-between;gap:50px;padding:70px 0 60px}.site-footer__brand{font-size:50px;color:#fff}.site-footer__brand:hover{color:#fff}.site-footer__intro p{max-width:290px;margin:17px 0 0;color:#a5a5a5;font-size:15px}.site-footer__nav{list-style:none;display:flex;flex-wrap:wrap;gap:16px 30px;justify-content:flex-end;padding:0;margin:7px 0}.site-footer__nav a{font-size:13px;font-weight:700}.site-footer__bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #272727;padding:22px 0 28px;color:#898989;font-size:12px}.site-footer__bottom a{color:#fff}
.site-footer .site-nav__list{list-style:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:16px 30px;padding:0;margin:7px 0}.site-footer .site-nav__list a{font-size:13px;color:#fff;text-transform:none;letter-spacing:normal}

/* Archives, search, pages and posts */
.inner-page{padding:70px 0 100px}.page-heading{max-width:900px;margin-bottom:36px}.page-heading h1{font-size:clamp(44px,5vw,76px);margin:0 0 12px}.page-heading p{font-size:17px;color:var(--muted)}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 24px}.pagination{margin-top:55px}.nav-links{display:flex;gap:8px;flex-wrap:wrap}.page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 11px;border:1px solid #ddd;font-weight:700}.page-numbers.current,.page-numbers:hover{background:#0a0a0a;border-color:#0a0a0a;color:#fff}.article-header{max-width:920px;margin:0 auto 34px}.article-header .eyebrow{margin-bottom:13px}.article-header h1{font-size:clamp(42px,5.5vw,82px);margin:0 0 18px}.article-meta{color:#777;font-size:13px}.article-featured{max-width:1100px;margin:0 auto 45px}.article-featured img{width:100%;max-height:630px;object-fit:cover;border-radius:7px}.article-content{max-width:790px;margin:0 auto;font-size:19px;line-height:1.72}.article-content>p:first-child{font-size:22px}.article-content a{color:var(--accent);text-decoration:underline}.article-content h2{margin:1.7em 0 .5em;font-size:35px}.article-content h3{margin:1.5em 0 .5em;font-size:27px}.article-content img{border-radius:5px}.article-content figure{max-width:100%}.article-content blockquote{border-left:4px solid var(--accent);margin:30px 0;padding:5px 0 5px 26px;font-weight:700}.article-content iframe{max-width:100%}.article-content table{display:block;max-width:100%;overflow:auto}.article-footer{max-width:790px;margin:46px auto 0;padding-top:23px;border-top:1px solid var(--line)}.article-footer a{font-weight:700}.not-found{text-align:center;padding:100px 0 120px}.not-found h1{font-size:clamp(50px,7vw,110px);margin:0 0 15px}.not-found p{font-size:18px;color:var(--muted)}.not-found .search-form{max-width:520px;margin:30px auto 0}

/* WordPress alignment and content basics */
.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}.alignfull{width:100vw;margin-left:calc(50% - 50vw)}.aligncenter{margin-left:auto;margin-right:auto}.wp-block-image img{height:auto}.wp-caption{max-width:100%}.wp-caption-text,.blocks-gallery-caption{font-size:13px;color:#777}.sticky{scroll-margin-top:30px}

@media(max-width:1100px){.site-header__inner{grid-template-columns:210px 1fr 126px;min-height:78px}.site-brand__wordmark{font-size:36px}.site-nav__list{gap:16px}.site-nav__list a{font-size:11px}.hero__inner{min-height:510px}.hero h1{font-size:clamp(67px,8vw,112px)}.hero p{font-size:17px}.news-layout{gap:34px}.news-list__item{grid-template-columns:105px 1fr;gap:14px}.editor-card__content{inset:auto 15px 16px}}
@media(max-width:800px){.container{width:min(calc(100% - 32px),var(--max))}.site-header__inner{grid-template-columns:1fr auto;gap:12px;min-height:68px}.site-brand__wordmark{font-size:35px}.site-nav{position:absolute;top:100%;left:0;right:0;background:#fff;box-shadow:0 16px 25px rgba(0,0,0,.1);display:none;padding:20px 16px 24px}.site-nav.is-open{display:block}.site-nav__list{display:grid;justify-content:stretch;gap:0}.site-nav__list li{border-bottom:1px solid #eee}.site-nav__list a{display:block;padding:11px 0;font-size:14px}.menu-toggle{display:grid}.hero__inner{grid-template-columns:1fr;min-height:600px;align-items:start}.hero__copy{padding:54px 0 0}.hero h1{max-width:610px;font-size:clamp(75px,12vw,115px)}.hero p{max-width:390px}.hero__image-wrap{position:absolute;inset:25% -25% 0 35%;pointer-events:none}.hero__image{inset:0;width:100%;object-position:58% center}.hero__backdrop{left:35%;width:37%}.top-stories__grid,.editors-grid,.category-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-card:nth-child(3){display:none}.news-layout{grid-template-columns:1fr}.news-list{grid-template-columns:repeat(2,minmax(0,1fr))}.news-list__item{grid-template-columns:94px 1fr}.editor-card:last-child{display:none}.section-pad{padding:62px 0}.site-footer__top{padding:58px 0 48px}}
@media(max-width:600px){body{font-size:15px}.hero__inner{min-height:630px}.hero__copy{padding-top:43px}.hero__eyebrow{font-size:9px}.hero h1{font-size:clamp(67px,15vw,99px);max-width:430px;margin:20px 0 16px}.hero p{max-width:260px;font-size:16px}.hero__image-wrap{inset:29% -65% 0 12%;opacity:.88}.hero__image{object-position:56% 50%;mix-blend-mode:multiply}.hero__backdrop{left:27%;width:67%;opacity:.94}.button{min-height:48px;padding:0 19px;font-size:11px}.top-stories{padding-top:19px;padding-bottom:45px}.top-stories__grid{grid-template-columns:1fr;gap:30px}.story-card:nth-child(3){display:block}.story-card__image-link{aspect-ratio:1.48}.story-card__body{padding-top:21px}.story-card h2{font-size:25px}.story-card__number{font-size:57px;bottom:-13px}.section-heading{align-items:center;margin-bottom:22px}.section-heading h2{font-size:31px}.text-link{font-size:11px}.text-link span{margin-left:4px}.section-pad{padding:50px 0 57px}.news-layout{gap:28px}.lead-story h3{font-size:30px}.lead-story p{font-size:15px}.news-list{grid-template-columns:1fr;gap:17px}.news-list__item{grid-template-columns:100px 1fr;gap:14px}.news-list h3{font-size:17px}.editors-grid{grid-template-columns:1fr;gap:16px}.editor-card:last-child{display:block}.editor-card a{aspect-ratio:1.25}.editor-card__title{font-size:29px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-tile{min-height:135px;padding:17px}.category-tile__name{font-size:17px;max-width:100%}.category-tile__description{font-size:11px;max-width:82%}.category-tile__icon{right:5px;bottom:-23px;font-size:105px}.video-section{min-height:340px}.video-section h2{font-size:38px}.video-section p{font-size:15px;max-width:280px}.site-footer__top{display:block;padding:53px 0 40px}.site-footer__brand{font-size:44px}.site-footer__nav{justify-content:flex-start;margin-top:32px;gap:10px 20px}.site-footer__bottom{display:grid;gap:7px}.archive-grid{grid-template-columns:1fr}.inner-page{padding:45px 0 70px}.page-heading h1{font-size:44px}.article-header h1{font-size:43px}.article-content{font-size:17px}.article-content>p:first-child{font-size:19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Production refinements: consistent media, existing site features and usable mobile layout. */
.story-card__number{bottom:8px}
.category-tile__icon{width:122px;height:116px;bottom:5px;right:8px;transform:rotate(-10deg);color:rgba(15,36,94,.42)}
.category-tile__icon svg{display:block;width:100%;height:100%}
.campaign-banner{display:block;width:min(calc(100% - 56px),var(--max));margin:0 auto 20px;overflow:hidden;border-radius:8px;line-height:0}
.campaign-banner__video{display:block;width:100%;height:auto}
.yandex-rtb-slot{grid-column:1/-1;min-width:0;width:100%;max-width:100%;margin:24px auto;overflow:hidden;overflow:clip}
.yandex-rtb-slot--home{width:min(calc(100% - 56px),var(--max))}
.yandex-rtb-slot:has(>div:empty){margin-block:0}
.article-recommendations{width:100%;max-width:980px;margin:40px auto;min-width:0;overflow:hidden;overflow:clip}
.recommendations-viewport{width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:8px}
.recommendations-hint{font-size:12px;color:#666;margin:0 0 8px}
.recommendations-hint[hidden]{display:none}
[id^="yandex_rtb_"]{max-width:100%;min-width:0}
.article-featured{max-width:980px;margin-bottom:40px}
.article-featured img{max-height:none;height:auto;object-fit:contain;border-radius:16px}
.article-content{overflow-wrap:anywhere}
.article-content figure{margin:32px auto}
.article-content :is(.wp-block-image,.wp-caption){width:100%!important;max-width:980px}
.article-content :is(.wp-block-image img,.wp-caption img,p>img){width:100%;height:auto;border-radius:16px}
.article-content :is(.alignwide,.alignfull){width:100%;max-width:100%;margin-inline:0}
.article-content .wp-block-gallery img{height:100%;object-fit:cover}
.article-tags{display:flex;gap:8px;flex-wrap:wrap}
.article-tags a{background:#f2f2f2;padding:8px 14px;border-radius:8px;font-size:13px}
.article-footer:empty{display:none}
.article-byline,.article-comments{width:100%;max-width:790px;margin:30px auto}
.article-byline{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#f6f6f6;border:1px solid var(--line);border-radius:16px;padding:20px}
.article-byline__author{display:flex;align-items:center;gap:12px;font-weight:700;min-width:0}
.article-byline__author img{width:48px;height:48px;flex:none;border-radius:50%;object-fit:cover}
.article-byline__details{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 14px;color:#555;font-size:13px;text-align:right}
.article-byline__details>span{padding-left:14px;border-left:1px solid #ccc}
.article-comments h2{font-size:28px}
.article-post-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:790px;margin:40px auto 0}
.article-post-nav a{border:1px solid var(--line);border-radius:12px;padding:20px;font-weight:700}
.article-post-nav span{display:block;color:#777;font-size:11px;text-transform:uppercase;margin-bottom:8px}
.footer-socials,.footer-legal{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;margin-top:24px}
.footer-legal{flex-direction:column;margin-top:7px;max-width:220px;color:#aaa}
.site-footer__top{gap:30px}
.archive-grid>.story-card:nth-child(3){display:block}
.latest-section .pagination{margin-top:40px}
.comment-list{list-style:none;padding:0}.comment-body{padding:20px 0;border-bottom:1px solid var(--line)}
.comment-form textarea,.comment-form input:not([type="checkbox"]){width:100%;max-width:100%;border:1px solid #bbb;border-radius:8px;padding:12px}
.comment-form .submit{background:var(--ink);color:white;border:0;cursor:pointer}
@media(min-width:1080px){
  .article-content :is(.wp-block-image,.wp-caption){width:980px!important;max-width:980px;margin-left:calc((790px - 980px)/2);margin-right:calc((790px - 980px)/2)}
  .article-content p:has(>img:only-child){width:980px;margin-inline:calc((790px - 980px)/2)}
}
@media(max-width:800px){
  .top-stories__grid,.editors-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .story-card:nth-child(3),.editor-card:last-child{display:block}
  .story-card h2{font-size:21px}.editor-card__title{font-size:22px}
  .site-nav{display:block;position:static;grid-column:1/-1;box-shadow:none;padding:0}
  .js .site-nav{display:none;position:absolute;padding:20px 16px 24px;box-shadow:0 16px 25px rgba(0,0,0,.1)}
  .js .site-nav.is-open{display:block}
  .icon-button{width:44px;height:44px}
  .campaign-banner,.yandex-rtb-slot--home{width:calc(100% - 32px)}
  .hero__inner{min-height:480px;grid-template-columns:48% 52%;align-items:center}
  .hero__copy{padding:40px 0}.hero h1{font-size:clamp(58px,9vw,80px)}
  .hero__image-wrap{position:relative;inset:auto;align-self:stretch}
  .hero__image{inset:0 0 0 -30%;width:130%;object-position:75% center}
  .hero__backdrop{left:33%;width:36%}
}
@media(max-width:600px){
  .hero__inner{display:flex;flex-direction:column;align-items:stretch;min-height:0}
  .hero__copy{padding:34px 0 24px}.hero h1{font-size:clamp(58px,16vw,86px);max-width:100%;line-height:.95;transform:none}
  .hero p{max-width:330px}.hero__image-wrap{position:relative;inset:auto;aspect-ratio:1.5;margin-inline:-16px;opacity:1}
  .hero__image{inset:0;width:100%;object-position:80% center;mix-blend-mode:normal}
  .hero__backdrop{top:auto;bottom:0;height:47%;left:0;width:100%}
  .top-stories__grid,.editors-grid{grid-template-columns:1fr;gap:28px}
  .story-card h2{font-size:25px}.editor-card__title{font-size:29px}
  .story-card__number{bottom:8px}.section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}
  .section-heading h2{font-size:29px}.article-header h1{font-size:clamp(32px,8.4vw,43px);line-height:1.08}
  .article-byline{flex-direction:column;align-items:flex-start;padding:18px;gap:16px}
  .article-byline__details{justify-content:flex-start;text-align:left;font-size:12px}
  .article-post-nav{grid-template-columns:1fr}
  .site-footer .site-nav__list{justify-content:flex-start}
  .footer-legal{margin-top:26px}.search-submit{padding-inline:15px}
  .category-tile__icon{width:90px;height:84px;bottom:-5px;right:0;opacity:.65}
}
.hero--article h1{max-width:700px;font-family:Arial,Helvetica,sans-serif;font-size:clamp(38px,4.1vw,64px);line-height:1.02;letter-spacing:-.055em;transform:none;overflow-wrap:anywhere}
.hero--article .hero__image{mix-blend-mode:normal}
@media(max-width:800px){.hero--article h1{font-size:clamp(36px,5.5vw,52px)}}
@media(max-width:600px){.hero--article h1{font-size:clamp(32px,8vw,43px);line-height:1.06}.hero--article .hero__image{object-position:center}}
.site-brand__logo,.site-footer__logo{display:inline-block;line-height:0}
.site-brand__logo img{display:block;width:220px;max-width:100%;height:auto}
.site-footer__logo img{display:block;width:280px;max-width:100%;height:auto}
@media(max-width:1100px){.site-brand__logo img{width:195px}}
@media(max-width:800px){.site-brand__logo img{width:180px}.site-footer__logo img{width:250px}}
@media(max-width:600px){.site-brand__logo img{width:170px}.site-footer__logo img{width:230px}}

/* Article and news pages: readable text with a distinct editorial sidebar. */
.inner-page--story{padding-top:56px}
.story-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:clamp(34px,4vw,64px)}
.story-layout__main,.story-sidebar{min-width:0}
.story-layout .article-header{max-width:none;margin:0 0 30px}
.story-layout .article-header h1{font-size:clamp(42px,4.7vw,72px);line-height:1.04}
.story-layout .article-featured{width:100%;max-width:none;margin:0 0 38px}
.story-layout .article-featured img{width:100%;height:auto;max-height:none;object-fit:contain;border-radius:16px}
.story-layout .article-content{width:100%;max-width:none;margin:0;font-size:19px}
.story-layout .article-content>:is(p,h2,h3,h4,ul,ol,blockquote){max-width:760px;margin-left:auto;margin-right:auto}
.story-layout .article-content>p:has(>img:only-child){width:100%;max-width:none;margin-inline:0}
.story-layout .article-content :is(.wp-block-image,.wp-caption){width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
.story-layout .article-content figure.candoru-inline-image{transform:none!important}
.story-layout .article-content :is(.wp-block-image img,.wp-caption img,p>img){width:100%;height:auto;border-radius:16px}
.article-content figure.wp-block-table{width:100%;max-width:760px!important;margin:36px auto!important;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.045)}
.article-content figure.wp-block-table table{display:table;width:100%;max-width:none;margin:0;border:0;border-collapse:collapse;border-spacing:0;table-layout:auto;font-size:16px;line-height:1.45;background:transparent}
.article-content figure.wp-block-table table.has-fixed-layout{table-layout:fixed}
.article-content figure.wp-block-table th,.article-content figure.wp-block-table td{padding:15px 18px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border:0;border-bottom:1px solid var(--line)}
.article-content figure.wp-block-table th{background:#f3f3f1;font-size:13px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.article-content figure.wp-block-table tbody tr:nth-child(even){background:#fafaf9}
.article-content figure.wp-block-table tbody tr:last-child td{border-bottom:0}
.article-content figure.wp-block-table :is(th,td):first-child{width:39%;font-weight:700}
.article-content figure.wp-block-table figcaption{margin:10px 4px 0;color:var(--muted);font-size:13px;text-align:left}
.story-layout .article-footer,.story-layout .article-byline,.story-layout .article-comments,.story-layout .article-post-nav{max-width:760px}
.story-layout .article-recommendations{max-width:100%}
.story-sidebar{display:grid;gap:30px}
.story-sidebar__section{min-width:0}
.story-sidebar__heading{border-top:4px solid var(--ink);padding-top:16px;margin-bottom:16px}
.story-sidebar__heading .eyebrow{font-size:10px}
.story-sidebar__heading h2{font-size:28px;line-height:1.1;margin:8px 0 0}
.story-sidebar__news-list{list-style:none;padding:0;margin:0}
.story-sidebar__news-list li{border-bottom:1px solid var(--line)}
.story-sidebar__news-link{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;padding:16px 0}
.story-sidebar__number{color:var(--accent);font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:29px;line-height:1}
.story-sidebar__news-copy{display:grid;gap:7px;min-width:0}
.story-sidebar__news-copy strong{font-size:16px;line-height:1.25;letter-spacing:-.025em}
.story-sidebar__news-copy time{color:#888;font-size:11px;text-transform:uppercase}
.story-sidebar__all{display:inline-flex;align-items:center;gap:12px;margin-top:16px;font-size:12px;font-weight:800;text-transform:uppercase}
.story-sidebar__all span{font-size:19px;font-weight:400}
.story-sidebar__ad{border:1px solid var(--line);border-radius:10px;padding:12px;overflow:hidden}
.story-sidebar__ad-label{display:block;margin-bottom:8px;color:#999;font-size:10px;text-align:right;text-transform:uppercase;letter-spacing:.08em}
.story-sidebar__ad .yandex-rtb-slot{width:100%;margin:0;min-height:0;overflow:hidden}
.story-sidebar__editor{background:#111;color:#fff;border-radius:10px;padding:21px}
.story-sidebar__editor .story-sidebar__heading{border-top-color:var(--accent);padding-top:14px}
.story-sidebar__editor .eyebrow{color:#ff9872}
.story-sidebar__editor-list{display:grid}
.story-sidebar__editor-link{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:start;padding:13px 0;color:#fff;border-bottom:1px solid #363636}
.story-sidebar__editor-link:first-child{padding-top:2px}
.story-sidebar__editor-link:last-child{border-bottom:0;padding-bottom:0}
.story-sidebar__editor-link:hover{color:#ff9872}
.story-sidebar__editor-image{display:block;overflow:hidden;border-radius:5px;aspect-ratio:1.1;background:#292929}
.story-sidebar__editor-photo{width:100%;height:100%;object-fit:cover}
.story-sidebar__editor-copy{display:grid;gap:5px;min-width:0}
.story-sidebar__editor-copy>span{color:#ff9872;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.story-sidebar__editor-copy strong{font-size:14px;line-height:1.25;letter-spacing:-.02em}
@media(max-width:1020px){.story-layout{grid-template-columns:minmax(0,1fr);gap:55px}.story-layout__main{width:100%;max-width:980px;margin-inline:auto}.story-sidebar{width:100%;max-width:980px;margin-inline:auto;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.story-sidebar__ad{grid-column:1/-1;grid-row:2}.story-sidebar__editor{grid-column:2;grid-row:1}.story-sidebar__news{grid-column:1;grid-row:1}}
@media(max-width:600px){.inner-page--story{padding-top:38px}.story-layout{gap:45px}.story-layout .article-header h1{font-size:clamp(34px,8.5vw,46px)}.story-layout .article-content{font-size:17px}.story-sidebar{grid-template-columns:1fr;gap:28px}.story-sidebar__news,.story-sidebar__ad,.story-sidebar__editor{grid-column:auto;grid-row:auto}}
@media(max-width:600px){.article-content figure.wp-block-table{margin:28px auto!important;border-radius:11px}.article-content figure.wp-block-table table{font-size:14px}.article-content figure.wp-block-table th,.article-content figure.wp-block-table td{padding:12px 11px}.article-content figure.wp-block-table :is(th,td):first-child{width:42%}.article-content figure.wp-block-table th{font-size:11px;letter-spacing:.035em}}

/* User-selectable dark theme. */
html[data-theme="dark"]{color-scheme:dark;--ink:#f5f5f5;--muted:#aaa;--line:#303030}
html[data-theme="dark"] body{background:#0f0f0f;color:var(--ink)}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .header-search,
html[data-theme="dark"] .site-nav{background:#111}
html[data-theme="dark"] .site-brand__logo-light{display:none}
html[data-theme="dark"] .site-brand__logo-dark{display:block}
html[data-theme="dark"] .theme-toggle__moon{display:none}
html[data-theme="dark"] .theme-toggle__sun{display:block}
html[data-theme="dark"] .icon-button{color:#f5f5f5}
html[data-theme="dark"] .icon-button:hover{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .header-search{box-shadow:0 15px 30px rgba(0,0,0,.45)}
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .comment-form input:not([type="checkbox"]){background:#1b1b1b;border-color:#555;color:#f5f5f5}
html[data-theme="dark"] .search-submit,
html[data-theme="dark"] .comment-form .submit{background:#f5f5f5;color:#111}
html[data-theme="dark"] .hero{background:#181818}
html[data-theme="dark"] .hero__image{mix-blend-mode:normal;filter:brightness(.72)}
html[data-theme="dark"] .story-card__image-link,
html[data-theme="dark"] .lead-story__image-link,
html[data-theme="dark"] .news-list__thumb{background:#262626}
html[data-theme="dark"] .story-card p,
html[data-theme="dark"] .lead-story p,
html[data-theme="dark"] .article-byline__details{color:#b9b9b9}
html[data-theme="dark"] .lead-story__meta,
html[data-theme="dark"] .news-list time,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .wp-caption-text,
html[data-theme="dark"] .blocks-gallery-caption,
html[data-theme="dark"] .article-post-nav span,
html[data-theme="dark"] .story-sidebar__news-copy time{color:#999}
html[data-theme="dark"] .article-tags a,
html[data-theme="dark"] .article-byline{background:#1a1a1a}
html[data-theme="dark"] .article-byline__details>span{border-color:#555}
html[data-theme="dark"] .page-numbers{border-color:#444}
html[data-theme="dark"] .page-numbers.current,
html[data-theme="dark"] .page-numbers:hover{background:#f5f5f5;border-color:#f5f5f5;color:#111}
html[data-theme="dark"] .story-sidebar__editor{background:#181818;border:1px solid #333}
html[data-theme="dark"] .story-sidebar__ad{border-color:#383838;background:#151515}
html[data-theme="dark"] .article-content figure.wp-block-table{background:#171717;box-shadow:none}
html[data-theme="dark"] .article-content figure.wp-block-table th{background:#262626}
html[data-theme="dark"] .article-content figure.wp-block-table tbody tr:nth-child(even){background:#1e1e1e}
html[data-theme="dark"] .button--dark{background:#f5f5f5;color:#111}
html[data-theme="dark"] .button--dark:hover{background:#ddd;color:#111}
html[data-theme="dark"] .skip-link:focus{background:#111;color:#fff}
html[data-theme="dark"] .empty-state{border-color:#555}
html[data-theme="dark"] .category-tile,
html[data-theme="dark"] .category-tile:hover{color:#171717}
@media(max-width:800px){html[data-theme="dark"] .site-nav__list li{border-color:#333}}
.site-brand__logo img.site-brand__logo-dark{display:none}
html[data-theme="dark"] .site-brand__logo img.site-brand__logo-light{display:none}
html[data-theme="dark"] .site-brand__logo img.site-brand__logo-dark{display:block}
.editor-card__content>.circle-arrow{justify-self:end}
@media(min-width:601px) and (max-width:1024px){
  .hero__inner{grid-template-columns:minmax(0,54%) minmax(0,46%);min-height:620px;align-items:stretch}
  .hero__copy{align-self:center;min-width:0;padding:46px 0}
  .hero h1{max-width:100%;font-size:clamp(48px,5.9vw,60px);line-height:.95;transform:none}
  .hero p{max-width:390px;font-size:16px}
  .hero__image-wrap{position:relative;inset:auto;min-width:0;overflow:hidden;align-self:stretch}
  .hero__image{inset:0;width:100%;height:100%;object-position:62% center}
  .hero__backdrop{left:52%;width:48%}
}
.site-footer__intro{flex:1 1 520px;max-width:590px}
.site-footer__description{margin-top:22px}
.site-footer__description strong{display:block;max-width:520px;font-size:17px;line-height:1.35}
.site-footer__description p{max-width:540px;margin:10px 0 0;color:#a5a5a5;font-size:14px;line-height:1.55}
@media(max-width:900px){.site-footer__top{flex-wrap:wrap}.site-footer__intro{flex-basis:100%;max-width:720px}.site-footer__top>nav{flex:1 1 220px}}
