/*
Theme Name: Wikinarkilogiya Atlas
Author: Argokov
Description: Редактируемая блочная тема справочника narkologiyainfo.ru.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: narkologiyainfo-atlas
*/
:root{--ink:#172b55;--blue:#b88b26;--muted:#65797c;--line:#d8e4e2;--paper:#f8f6ef}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}a{text-underline-offset:4px}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #eaa64d;outline-offset:4px}
.site-header{border-bottom:1px solid var(--line);padding:25px 0;background:white}.header-inner{gap:28px!important}.brand{gap:12px!important}.wp-block-site-title{font-size:25px!important;font-weight:750;letter-spacing:-1px;white-space:nowrap}.wp-block-site-logo img{max-height:64px;width:auto}.header-search{width:245px}.wp-block-search__inside-wrapper{border:1px solid var(--line)!important;border-radius:7px;padding:4px!important;background:var(--paper)}.wp-block-search__input{min-width:0;background:transparent;border:0!important;padding:7px 10px!important;font-size:14px}.wp-block-search__button{border:0!important;border-radius:5px;padding:7px 10px!important;background:transparent!important;color:var(--ink)!important}.wp-block-navigation{font-size:14px;font-weight:600}.wp-block-navigation a:hover{color:var(--blue)}
.hero{padding:68px 0 56px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#e5f5f1,#f8fafc)}.eyebrow{font-size:11px!important;font-weight:750;text-transform:uppercase;letter-spacing:2px;color:var(--blue);margin-bottom:22px!important}.hero h1{font-size:clamp(38px,4.6vw,64px)!important;line-height:1.08!important;letter-spacing:-2.4px;max-width:780px;margin:0!important}.hero-description{max-width:550px;color:var(--muted);font-size:18px;line-height:1.65;margin-top:22px!important}.hero .wp-block-columns{margin:0;gap:50px;align-items:center!important}.hero-art{height:260px;background:url('assets/editorial.svg') center/contain no-repeat}.hero .wp-block-button__link{font-size:14px;padding:13px 22px;margin-top:12px}
.articles-section{padding:48px 0 80px}.section-heading{margin-bottom:28px!important;align-items:baseline!important}.section-heading h2{font-size:28px;letter-spacing:-.8px}.section-heading p{font-size:13px;color:var(--muted)}.wp-block-post-template{gap:28px!important}.article-card{height:100%;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff;transition:box-shadow .2s,transform .2s}.article-card:hover{box-shadow:0 12px 35px #172b550b;transform:translateY(-3px)}.article-card .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;overflow:hidden;background:#d9eee9}.article-card .wp-block-post-featured-image img{height:100%;width:100%;object-fit:cover}.card-body{padding:23px!important}.card-body .wp-block-post-date{font-size:12px;color:var(--muted);margin-top:0}.card-body .wp-block-post-title{font-size:23px;line-height:1.3;letter-spacing:-.5px;margin-top:12px}.card-body .wp-block-post-title a{text-decoration:none}.card-body .wp-block-post-excerpt{font-size:14px;color:var(--muted);line-height:1.7;margin-top:14px}.wp-block-post-excerpt__more-link{font-size:13px;font-weight:700;color:var(--blue);text-decoration:none}.wp-block-query-pagination{margin-top:40px;gap:16px}.wp-block-query-pagination a,.wp-block-query-pagination .current{padding:8px 13px;border:1px solid var(--line);border-radius:5px;text-decoration:none}.wp-block-query-pagination .current{background:var(--ink);color:white}
.site-footer{border-top:1px solid var(--line);padding:25px 0;color:var(--muted);font-size:13px;background:var(--paper)}.site-footer p{margin:0}.article-main{padding:38px 0 75px}.back-link{font-size:13px;color:var(--muted)}.article-heading{padding:25px 0 32px}.article-heading h1{font-size:clamp(34px,4vw,52px);line-height:1.15;letter-spacing:-1.5px;margin:14px 0 22px}.article-heading .wp-block-post-date{font-size:13px;color:var(--muted)}.article-cover{border-radius:10px;overflow:hidden;margin-bottom:35px!important}.article-cover img{max-height:480px;object-fit:cover}.wp-block-post-content{line-height:1.85;display:flow-root}.wp-block-post-content h2{font-size:30px;line-height:1.3;margin-top:44px}.wp-block-post-content h3{font-size:25px}.wp-block-post-content h4{font-size:22px}.wp-block-post-content h5{font-size:19px}.wp-block-post-content h6{font-size:17px}.wp-block-post-content blockquote{margin:32px 0;border-left:3px solid var(--blue);padding:18px 25px;background:#e5f5f1;border-radius:0 8px 8px 0}.wp-block-post-content blockquote p{margin:0}.wp-block-post-content cite{font-size:13px;color:var(--muted)}.wp-block-post-content li{padding-left:5px;margin:6px 0}.wp-block-post-content .alignleft{float:left;margin:8px 28px 16px 0;max-width:44%}.wp-block-post-content .alignright{float:right;margin:8px 0 16px 28px;max-width:44%}.wp-block-post-content figure img{border-radius:7px}.wp-block-post-content figcaption{font-size:12px;color:var(--muted)}.wp-block-table{overflow-x:auto;clear:both}.wp-block-table table{width:100%;border-collapse:collapse;font-size:15px}.wp-block-table th{background:#eef3fa;text-align:left}.wp-block-table td,.wp-block-table th{padding:13px 16px;border:1px solid var(--line)}.post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);padding-top:25px;margin-top:45px}.post-navigation a{text-decoration:none;font-size:16px;font-weight:650}.post-navigation small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-bottom:8px}.post-navigation .next{text-align:right;grid-column:2}.related-section{clear:both;border-top:1px solid var(--line);padding-top:35px;margin-top:45px}.related-section h2{font-size:27px}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.related-grid article{border:1px solid var(--line);border-radius:8px;overflow:hidden}.related-grid img{width:100%;aspect-ratio:16/10;object-fit:cover}.related-grid .related-copy{padding:17px}.related-grid h3{font-size:18px;line-height:1.4;margin:8px 0}.related-grid a{text-decoration:none}.related-grid time{font-size:12px;color:var(--muted)}.related-empty{font-size:14px;color:var(--muted)}.not-found{min-height:60vh;padding:80px 0;text-align:center}.not-found .error-number{font-size:100px;line-height:1;font-weight:750;letter-spacing:-6px;color:#c1d2ed;margin:0}.not-found h1{font-size:40px}.not-found p{color:var(--muted)}.search-heading{padding:45px 0 25px}.search-heading h1{font-size:36px}.wp-block-query-no-results{padding:30px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}
@media(min-width:782px){.hero-copy{flex-basis:70%!important}.hero-visual{flex-basis:30%!important}}@media(max-width:1000px){.header-search{width:190px}.header-inner{gap:16px!important}.wp-block-site-title{font-size:22px!important}.hero-art{height:220px}}@media(max-width:781px){.site-header{padding:18px 0}.header-inner{flex-wrap:wrap!important}.brand{flex:1}.header-search{width:100%;order:3}.hero{padding:40px 0}.hero h1{letter-spacing:-1.3px}.hero-description{font-size:16px}.hero-visual{display:none}.articles-section{padding:30px 0 50px}.wp-block-post-template.columns-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.section-heading p{display:none}.related-grid{grid-template-columns:1fr 1fr}.article-heading{padding-top:15px}.article-main{padding-top:24px}}@media(max-width:520px){.wp-block-post-template.columns-3{grid-template-columns:1fr!important}.section-heading h2{font-size:25px}.related-grid{grid-template-columns:1fr}.wp-block-post-content .alignleft,.wp-block-post-content .alignright{float:none;max-width:100%;width:100%;margin:20px 0}.post-navigation{gap:14px}.not-found h1{font-size:30px}.card-body .wp-block-post-title{font-size:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.article-card{transition:none}.article-card:hover{transform:none}}

.home-page-content:has(.wp-block-post-content:empty){display:none}.home-page-content:has(.wp-block-post-content:not(:empty)){padding-top:32px;padding-bottom:12px}.site-header .wp-block-site-title{margin:0}.site-header .brand{align-items:center}.site-header .header-inner{align-items:center}

/* Atlas composition: graphite masthead and reversed image-bottom tiles. */
body{background:#f8f6ef}.site-header{background:#172b55;border:0;padding:23px 0}.site-header .wp-block-site-title a{color:white}.wp-block-site-title{font-size:24px!important;letter-spacing:-1px}.site-header .wp-block-navigation{color:#fff;font-size:13px}.site-header .wp-block-navigation a:hover{color:#f0c86a}.site-header .wp-block-navigation__responsive-container.is-menu-open{color:#172b55;background:#f8f6ef}.site-header .wp-block-search__inside-wrapper{background:#263e42;border-color:#425b5e!important;border-radius:30px}.site-header .wp-block-search__input{color:#fff}.site-header .wp-block-search__input::placeholder{color:#b5c9c8}.site-header .wp-block-search__button{color:white!important}.hero{background:#fff;border:0;padding:65px 0 60px}.hero .wp-block-columns{gap:60px!important}.hero .eyebrow{font-size:10px!important;letter-spacing:2.5px;color:#b88b26}.hero h1{font-size:clamp(38px,4.7vw,65px)!important;line-height:1.05!important;letter-spacing:-2.5px;max-width:750px}.hero-copy{flex-basis:64%!important;border-left:5px solid #f0c86a;padding-left:30px}.hero-visual{flex-basis:36%!important}.hero-art{height:280px}.hero-description{font-size:17px;max-width:520px;color:#65797c}.hero .wp-block-button__link{border-radius:30px;background:#b88b26!important;font-size:13px;padding:14px 25px}.articles-section{padding:42px 0 75px}.section-heading h2{font-size:25px;letter-spacing:-.7px}.section-heading p{font-size:11px;text-transform:uppercase;letter-spacing:1.5px}.wp-block-post-template{gap:24px!important}.article-card{display:flex;flex-direction:column-reverse;border:0;border-radius:22px;background:white;padding:0;overflow:hidden;box-shadow:0 7px 25px #172b5506}.article-card:hover{box-shadow:0 10px 30px #172b5510;transform:translateY(-2px)}.article-card .wp-block-post-featured-image{aspect-ratio:16/10;width:100%;border-top:1px solid #edf3f1;margin:0!important}.card-body{padding:26px!important;flex:1;border-top:4px solid #f0c86a;border-radius:22px 22px 0 0}.card-body .wp-block-post-date{font-size:10px;font-weight:700;letter-spacing:1px;color:#b88b26;text-transform:uppercase}.card-body .wp-block-post-title{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin-top:16px}.card-body .wp-block-post-title a{color:#172b55}.card-body .wp-block-post-excerpt{font-size:14px;line-height:1.65}.wp-block-post-excerpt__more-link{font-size:12px;font-weight:700}.site-footer{background:#172b55;color:#dae2f1;border:0;padding:29px 0;font-size:12px}.article-main{padding-top:32px}.article-heading{background:#fff;border-radius:20px;padding:30px!important;border-top:4px solid #f0c86a;margin-top:25px;margin-bottom:28px}.article-heading .wp-block-post-date{font-size:11px;color:#b88b26;font-weight:700}.article-heading h1{font-size:clamp(34px,4vw,53px);line-height:1.1;margin-bottom:0;letter-spacing:-1.8px}.article-cover{border-radius:22px}.wp-block-post-content blockquote{background:#dff1ea;border-left:0;border-radius:18px;padding:26px 30px}.wp-block-table th{background:#dff1ea}.related-grid article{background:#fff;border:0;border-radius:18px;overflow:hidden}.related-grid h3 a{color:#172b55}.related-section{border-color:#cbdcd6}.wp-block-button__link{border-radius:30px}.wp-block-query-pagination a,.wp-block-query-pagination .current{border-radius:30px}.wp-block-query-pagination .current{background:#b88b26}.not-found{background:#fff;border-radius:25px;margin-top:35px;margin-bottom:35px}.not-found .error-number{color:#c4e9de}
@media(max-width:1000px){.wp-block-site-title{font-size:21px!important}.hero-art{height:230px}.hero-copy{padding-left:23px}.hero .wp-block-columns{gap:30px!important}.card-body{padding:22px!important}}
@media(max-width:781px){.site-header{padding:20px 0}.hero{padding:42px 0}.hero h1{font-size:43px!important;letter-spacing:-1.5px}.hero-description{font-size:16px}.hero-copy{padding-left:20px}.hero-visual{display:none!important}.article-heading{padding:23px!important}.card-body .wp-block-post-title{font-size:25px}}
@media(max-width:520px){.wp-block-site-title{font-size:21px!important}.hero h1{font-size:38px!important;letter-spacing:-1.3px}.hero-copy{padding-left:17px}.section-heading h2{font-size:24px}.article-card{border-radius:18px}.card-body{padding:23px!important}.article-heading h1{font-size:34px}}

/* Atlas: golden split introduction, two-column navy article panels. */
.hero{background:#f8edc7;padding:65px 0}.hero-copy{border-left:0;padding-left:0;flex-basis:61%!important}.hero-visual{flex-basis:39%!important}.hero h1{font-size:clamp(40px,5vw,68px)!important;font-weight:650!important;letter-spacing:-2.8px}.hero .eyebrow{color:#765d1e;letter-spacing:2px}.hero-description{color:#746b50}.hero .wp-block-button__link{background:#172b55!important;color:#fff!important;border-radius:5px;padding:14px 25px}.hero-art{height:290px}.wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px!important}.article-card{flex-direction:column;border-radius:6px;background:#172b55;box-shadow:none}.article-card .wp-block-post-featured-image{aspect-ratio:16/8;border:0}.card-body{border-top:0;border-radius:0;padding:30px!important;width:100%}.card-body .wp-block-post-date{color:#f0c86a;font-size:10px}.card-body .wp-block-post-title{font-size:31px;letter-spacing:-.8px}.card-body .wp-block-post-title a{color:#fff}.card-body .wp-block-post-excerpt{color:#cbd5e8;font-size:15px}.wp-block-post-excerpt__more-link{color:#f0c86a}.section-heading{border-bottom:1px solid #d9d1b9;padding-bottom:22px}.section-heading h2{font-size:28px}.section-heading p{color:#8b7b4e}.site-header{border-bottom:3px solid #f0c86a}.site-header .wp-block-navigation a:hover{color:#f0c86a}.site-header .wp-block-navigation__responsive-container.is-menu-open{background:#f8f6ef;color:#172b55}.site-header .wp-block-search__inside-wrapper{background:#24385c;border-color:#4d5d7a!important;border-radius:5px}.site-header .wp-block-search__input{color:white}.site-header .wp-block-search__input::placeholder{color:#d0d8e7}.site-footer{border-top:3px solid #f0c86a}.article-heading{background:#f8edc7;border-top:0;border-left:5px solid #b88b26;border-radius:0}.article-heading .wp-block-post-date{color:#80631a}.article-cover{border-radius:6px}.wp-block-post-content blockquote{background:#f8edc7;border-left:4px solid #b88b26;border-radius:0}.wp-block-table th{background:#f8edc7}.related-grid article{border-radius:6px;background:#fff}.related-grid h3 a{color:#172b55}.not-found .error-number{color:#dec780}.not-found{border-radius:6px}.wp-block-button__link{border-radius:5px}
@media(max-width:1000px){.hero-art{height:250px}.card-body{padding:25px!important}.card-body .wp-block-post-title{font-size:28px}}
@media(max-width:781px){.hero{padding:43px 0}.hero h1{font-size:45px!important;letter-spacing:-1.7px}.hero-copy{padding-left:0}.wp-block-post-template.columns-3,.wp-block-post-template{grid-template-columns:minmax(0,1fr)!important}.card-body .wp-block-post-title{font-size:29px}}
@media(max-width:520px){.wp-block-site-title{font-size:20px!important}.hero h1{font-size:40px!important}.hero-copy{padding-left:0}.card-body{padding:24px!important}.card-body .wp-block-post-title{font-size:28px}.section-heading h2{font-size:25px}}
