/*
 * SERT INFORM 3.0 — "Редакционный" skin (default). Flat, strict, newspaper-like:
 * white page, square photos, heavy black headlines, uppercase section labels, thin rules.
 * Every rule is scoped to body.sert-skin-editorial; switch in Customizer → SERT INFORM → Дизайн.
 */

/* ---------- Palette: neutral greys instead of the blue-tinted surfaces ---------- */
body.sert-skin-editorial{--sert-primary:#111;--sert-text:#1a1a1a;--sert-muted:#7a7a7a;--sert-border:#e7e7e7;--sert-surface:#f5f5f5;--sert-surface-blue:#f4f4f4;--sert-radius-sm:0;--sert-radius-md:0;color:var(--sert-text)}
.sert-skin-editorial .post-meta,.sert-skin-editorial .rank-meta,.sert-skin-editorial .story-excerpt{color:#808080}
.sert-skin-editorial .story-title a:hover{color:var(--sert-accent)}

/* ---------- Flat surfaces: no rounding, no shadows, no zoom on hover ---------- */
.sert-skin-editorial .story-visual,
.sert-skin-editorial .story-image,
.sert-skin-editorial .story--hero,
.sert-skin-editorial .story--secondary,
.sert-skin-editorial .side-box,
.sert-skin-editorial .rank-image,
.sert-skin-editorial .article-cover-zoom,
.sert-skin-editorial .article-content img,
.sert-skin-editorial .newsletter,
.sert-skin-editorial .category-tile{border-radius:0}
.sert-skin-editorial .story-visual{background:#efefef}
.sert-skin-editorial .story-visual:hover .story-image{transform:none}

/* ---------- Header ---------- */
.sert-skin-editorial .utility{background:#fff;border-bottom:1px solid var(--sert-border);color:#666}
.sert-skin-editorial .utility-local>.utility-weather{border-radius:0;box-shadow:none}
.sert-skin-editorial .site-header{border-bottom:1px solid #dedede}
.sert-skin-editorial .nav-list a{text-transform:uppercase;font-weight:700;letter-spacing:.02em;color:#111}
.sert-skin-editorial .nav-list a:hover{color:var(--sert-accent)}
.sert-skin-editorial .icon-button{border-radius:0;background:none}
@media (min-width:1051px) and (max-width:1250px){.sert-skin-editorial .nav-list a{font-size:11px}}

/* ---------- Section labels: short uppercase words, no bars or rules ---------- */
.sert-skin-editorial .section-heading{margin-bottom:14px}
.sert-skin-editorial .section-heading h2{font-size:17px;font-weight:900;text-transform:uppercase;letter-spacing:.02em;color:#111;padding-left:0}
.sert-skin-editorial .section-heading h2::before{display:none}
.sert-skin-editorial .heading-rule{display:none}
.sert-skin-editorial .section-heading>a{font-size:12px;color:#8a8a8a}
.sert-skin-editorial .section-heading>a:hover{color:var(--sert-accent)}

/* Category labels on cards are noise in this style; the hero keeps one as plain text. */
.sert-skin-editorial .story:not(.story--hero) .badge{display:none}
.sert-skin-editorial .badge{border-radius:0}

/* ---------- Lead story: photo left, big headline right ---------- */
.sert-skin-editorial .hero-grid{grid-template-columns:minmax(0,1fr);gap:0}
.sert-skin-editorial .story--hero{height:auto;background:none;overflow:visible;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start}
.sert-skin-editorial .story--hero::after{display:none}
.sert-skin-editorial .story--hero .story-visual{position:relative;inset:auto}
.sert-skin-editorial .story--hero .story-image{height:auto;aspect-ratio:1.5}
.sert-skin-editorial .story--hero .story-body{position:static;padding:4px 0 0;color:var(--sert-text);pointer-events:auto}
.sert-skin-editorial .story--hero .badge{background:none;color:var(--sert-accent);padding:0;font-size:12px;letter-spacing:.06em}
.sert-skin-editorial .story--hero .story-title{font-size:clamp(26px,2.3vw,36px);line-height:1.12;font-weight:850;letter-spacing:-.03em;color:#0b0b0b;margin-top:10px}
.sert-skin-editorial .story--hero .story-title a{-webkit-line-clamp:5}
.sert-skin-editorial .story--hero .story-title a:hover{color:var(--sert-accent);text-decoration:none}
.sert-skin-editorial .story--hero .story-excerpt{font-size:15px;line-height:1.55;color:#6b6b6b;-webkit-line-clamp:4;margin-top:14px}
.sert-skin-editorial .story--hero .post-meta{color:#8a8a8a;margin-top:16px}
/* Slider arrows sit on the photo's lower-left corner. */
.sert-skin-editorial .hero-slider .slider-controls{top:auto;bottom:14px;left:14px;right:auto;gap:6px;justify-content:flex-start}
.sert-skin-editorial .hero-slider .slider-controls button{width:36px;height:36px;border-radius:0;background:#000000a6}
.sert-skin-editorial .hero-slider .slider-controls button:hover{background:var(--sert-accent)}
.sert-skin-editorial .hero-slider .slider-prev{visibility:visible}
.sert-skin-editorial .hero-slider .slider-counter{left:96px;right:auto;bottom:14px;height:36px;padding:0 10px;display:flex;align-items:center;background:#000000a6;font-size:12px;letter-spacing:.04em}
.sert-skin-editorial .hero-slider .story--hero .post-meta{padding-right:0}

/* Secondary stories: a row of two under the lead, thumbnail + headline. */
.sert-skin-editorial .secondary-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:24px;margin-top:24px;padding-top:22px;border-top:1px solid var(--sert-border)}
.sert-skin-editorial .story--secondary{background:none;grid-template-columns:136px minmax(0,1fr);grid-template-rows:none;gap:14px;align-items:start}
.sert-skin-editorial .story--secondary .story-visual{height:auto}
.sert-skin-editorial .story--secondary .story-image{position:static;height:auto;aspect-ratio:1.45}
.sert-skin-editorial .story--secondary .story-body{padding:0}
.sert-skin-editorial .story--secondary .story-title{font-size:16px;font-weight:750;line-height:1.3;color:#111;margin-top:0}
.sert-skin-editorial .story--secondary .post-meta{display:flex;padding-top:8px;margin-top:0}

/* ---------- Rubric blocks: four equal cards in a row ---------- */
.sert-skin-editorial .home-sections{grid-template-columns:minmax(0,1fr);gap:40px}
.sert-skin-editorial .home-sections--top{margin-top:34px;padding-top:28px;border-top:1px solid var(--sert-border)}
.sert-skin-editorial .home-sections--wide{margin-top:40px}
.sert-skin-editorial .category-layout{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.sert-skin-editorial .category-small{display:contents}
.sert-skin-editorial .story--compact{display:block;border:0;padding:0}
.sert-skin-editorial .story--compact .story-image{height:auto;aspect-ratio:1.5}
.sert-skin-editorial .story--compact .story-body{padding-top:10px}
.sert-skin-editorial .category-lead .story-image{aspect-ratio:1.5}
.sert-skin-editorial .category-lead .story-title,
.sert-skin-editorial .story--compact .story-title{font-size:16px;font-weight:700;line-height:1.3;letter-spacing:-.015em;color:#111}
.sert-skin-editorial .story--compact .story-title a{min-height:0}
.sert-skin-editorial .story--compact .post-meta time{display:inline-flex}
.sert-skin-editorial .category-lead .post-meta,.sert-skin-editorial .story--compact .post-meta{font-size:12px;margin-top:8px}

/* Video and special projects follow the same flat card. */
.sert-skin-editorial .media-sections{margin-top:40px}
.sert-skin-editorial .media-grid .story-title{font-size:16px;font-weight:700;color:#111}
.sert-skin-editorial .play-overlay .icon{border-radius:0}
.sert-skin-editorial .duration{border-radius:0}

/* ---------- Sidebar news feed ---------- */
.sert-skin-editorial .news-feed{border:1px solid #d8e0e9;background:#fff;padding:0;border-radius:8px;box-shadow:0 4px 18px rgba(7,29,56,.07);overflow:hidden}
.sert-skin-editorial .news-feed-tabs{padding:12px 14px 0;gap:18px;border-bottom:1px solid #dfe6ef;background:#fff}
.sert-skin-editorial .news-feed-tab{padding:0 0 10px;text-transform:uppercase;font-size:13px;font-weight:800;letter-spacing:.01em;color:#929aa6;border-bottom:2px solid transparent}
.sert-skin-editorial .news-feed-tab.is-active{color:var(--sert-primary);border-bottom-color:var(--sert-accent)}
.sert-skin-editorial .news-feed-item{display:block;height:78px;padding:11px 13px;border-left:3px solid transparent;transition:background .16s,border-color .16s,color .16s}
/* Rows are taller here (time sits above the headline), so the visible window and the fill limits use 78px. */
.sert-skin-editorial .news-feed-scroll{max-height:calc(var(--feed-visible,7) * 78px);background:#fff}
@media (min-width:901px){
  .sert-skin-editorial .news-feed--fill{min-height:calc(4 * 78px + 92px);max-height:calc(var(--feed-total,20) * 78px + 92px)}
  .sert-skin-editorial .news-feed--fill .news-feed-scroll{max-height:none}
  .sert-skin-editorial .news-feed--fill.is-popular-active{min-height:0;max-height:none}
  .sert-skin-editorial .news-feed--fill.is-popular-active .news-feed-scroll{position:static;inset:auto;max-height:none}
}
.sert-skin-editorial .news-feed-item:hover{background:#f4f8fe;border-left-color:var(--sert-accent);color:var(--sert-primary)}
.sert-skin-editorial .news-feed-when{flex-direction:row;align-items:baseline;gap:7px;padding:0}
.sert-skin-editorial .news-feed-when time{font-size:12px;font-weight:750;color:var(--sert-accent)}
.sert-skin-editorial .news-feed-when small{margin:0;font-size:11px;color:#8c98a8}
.sert-skin-editorial .news-feed-rank{font-size:13px;font-weight:900}
.sert-skin-editorial .news-feed-title{margin-top:4px;font-size:14px;font-weight:600;line-height:1.35;color:#14253d}
.sert-skin-editorial .news-feed-item--popular{display:grid;grid-template-columns:26px 72px minmax(0,1fr);gap:10px;align-items:center;height:78px;padding:10px 12px;border-left:0}
.sert-skin-editorial .news-feed-item--popular:hover{background:#f7f9fc;border-left:0}
.sert-skin-editorial .news-feed-item--popular .news-feed-rank{font-size:20px;line-height:1;font-weight:850;color:var(--sert-accent);text-align:center;font-variant-numeric:tabular-nums}
.sert-skin-editorial .news-feed-item--popular .news-feed-title{margin:0;font-size:12.5px;font-weight:650;line-height:1.3;-webkit-line-clamp:2}
.sert-skin-editorial .news-feed-thumb{display:block;width:72px;height:54px;border-radius:4px;overflow:hidden;background:#f1f4f8}
.sert-skin-editorial .news-feed-thumb .story-image{width:100%;height:100%;object-fit:cover;aspect-ratio:auto}
.sert-skin-editorial .news-feed-popular-copy{min-width:0;display:flex;flex-direction:column;justify-content:center}
.sert-skin-editorial .news-feed-views{display:block;font-size:10px;line-height:1.15;color:#8793a3;margin-top:4px}
.sert-skin-editorial .news-feed-list li+li .news-feed-item{border-top-color:#e8edf3}
/* A thin accent scrollbar, the visual cue that the list scrolls. */
.sert-skin-editorial .news-feed-scroll{scrollbar-width:thin;scrollbar-color:var(--sert-accent) #efefef}
.sert-skin-editorial .news-feed-scroll::-webkit-scrollbar{width:3px}
.sert-skin-editorial .news-feed-scroll::-webkit-scrollbar-track{background:#efefef}
.sert-skin-editorial .news-feed-scroll::-webkit-scrollbar-thumb{background:var(--sert-accent)}
.sert-skin-editorial .news-feed-more{align-self:center;justify-content:center;width:auto;min-height:38px;margin:12px auto 14px;padding:9px 16px;border:0;border-radius:6px;background:var(--sert-accent);text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.04em;color:#fff;box-shadow:0 4px 12px #087cf026}
.sert-skin-editorial .news-feed-more:hover{background:var(--sert-accent-hover);color:#fff}

/* ---------- Hot topics row (SERT Extras) ---------- */
.sert-skin-editorial .sert-topics{padding-bottom:12px;border-bottom:1px solid var(--sert-border)}
.sert-skin-editorial .sert-topics-label{color:#111}
.sert-skin-editorial .sert-topics-list a{border-radius:0;background:none;padding:6px 4px;min-height:32px;color:#444;font-weight:600}
.sert-skin-editorial .sert-topics-list a:hover{background:none;color:var(--sert-accent)}

/* ---------- Article ---------- */
.sert-skin-editorial .article-header .badge{background:none;color:var(--sert-accent);padding:0;font-size:12px;letter-spacing:.06em}
.sert-skin-editorial .article-header h1{font-weight:850;color:#0b0b0b}
.sert-skin-editorial .article-lead{color:#444}
.sert-skin-editorial .article-content{color:#1d1d1d}
.sert-skin-editorial .article-content blockquote{border-radius:0;background:#f6f6f6;border-left:4px solid var(--sert-accent)}
.sert-skin-editorial .article-tags a{border-radius:0;background:#f2f2f2;color:#333}
.sert-skin-editorial .share-link{border-radius:0}
.sert-skin-editorial .quote-brand{border-radius:0;background:#f6f6f6}
.sert-skin-editorial .quote-brand>span{color:#d0d0d0}

/* ---------- Footer ---------- */
.sert-skin-editorial .site-footer{border-top:2px solid #111}
.sert-skin-editorial .socials a{border-radius:0;background:#f2f2f2}

/* ---------- Tablet and phone ---------- */
@media (max-width:1050px){
  .sert-skin-editorial .category-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sert-skin-editorial .home-sections--wide .category-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .sert-skin-editorial .story--hero{grid-template-columns:minmax(0,1fr);gap:14px}
  .sert-skin-editorial .story--hero .story-title{font-size:25px}
  .sert-skin-editorial .story--hero .story-excerpt{font-size:15px;-webkit-line-clamp:3}
  .sert-skin-editorial .hero-slider .slider-controls{bottom:auto;top:12px;left:12px}
  .sert-skin-editorial .hero-slider .slider-counter{left:auto;right:12px;bottom:auto;top:12px}
  .sert-skin-editorial .home-sections .category-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
  .sert-skin-editorial .category-lead .story-title,.sert-skin-editorial .story--compact .story-title{font-size:15px}
  .sert-skin-editorial .home-sections--top{margin-top:24px;padding-top:20px}
  .sert-skin-editorial .secondary-stories{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:18px;padding-top:16px}
  .sert-skin-editorial .story--secondary{grid-template-columns:118px minmax(0,1fr)}
  .sert-skin-editorial .story--secondary .story-title{font-size:15px}
}

/* Newsletter box: neutral background instead of the blue gradient. */
.sert-skin-editorial .newsletter{background:#f5f5f5}
.sert-skin-editorial .newsletter-icon{border-radius:0}
.sert-skin-editorial .input-row input,.sert-skin-editorial .button{border-radius:0}
