/* =========================================================
   ProDnepr - HTML prototype v2
   Left-sidebar layout (shotam-based) + light/dark.
   All chrome lives in /partials, theme-able tokens for WP.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@300;400;500;700&display=swap');

/* ---------- Tokens: light ---------- */
:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef1f6;
  --text: #14171f;
  --text-2: #5b6472;
  --text-3: #8a93a3;
  --brand: #0b57d0;
  --brand-dark: #08409c;
  --accent: #e63946;
  --accent-dark: #c52b38;
  --border: #e6e9ef;
  --sidebar-bg: #ffffff;
  --invert-bg: #14171f;
  --invert-text: #b8c0cf;

  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:64px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20,23,31,.06);
  --shadow-md: 0 6px 24px rgba(20,23,31,.10);
  --ease: 200ms ease;
  --sidebar-w: 268px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  transition: background var(--ease), color var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* =========================================================
   App shell: sidebar + main
   ========================================================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); max-width: 1520px; margin: 0 auto; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto;
  background: var(--sidebar-bg); border-right: 1px solid var(--border); z-index: 90;
}
.sidebar__inner { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--sp-5) var(--sp-6); min-height: 100%; }

.logo { display: flex; align-items: baseline; gap: 1px; font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--text); }
.logo .pro { color: var(--accent); }
.logo__slogan { font-size: 12px; color: var(--text-3); margin: -16px 0 0; letter-spacing: .02em; }

.side-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--text-2); transition: var(--ease); }
.lang a.is-active { background: var(--brand); color: #fff; }
.lang a:hover:not(.is-active) { background: var(--surface); }

.side-nav { display: flex; flex-direction: column; }
.side-nav__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: var(--sp-2); padding-left: var(--sp-3); }
.side-nav a { display: flex; align-items: center; padding: 9px var(--sp-3); border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--text); transition: var(--ease); }
.side-nav a:hover { background: var(--surface); color: var(--brand); }
.side-nav a.is-active { background: var(--brand); color: #fff; }

.side-tags .tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-left: var(--sp-3); }
.tag { font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); transition: var(--ease); }
.tag:hover { border-color: var(--brand); color: var(--brand); }

.subscribe { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 46px; padding: 0 20px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; transition: var(--ease); }
.subscribe:hover { background: var(--accent-dark); }
.subscribe svg { width: 17px; height: 17px; }

.socials { display: flex; gap: var(--sp-2); }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--text-2); transition: var(--ease); }
.socials a:hover { background: var(--brand); color: #fff; }
.socials svg { width: 16px; height: 16px; }

.drawer-close { display: none; }

/* =========================================================
   Main column
   ========================================================= */
.main { min-width: 0; padding: 0 var(--sp-6) var(--sp-8); }

/* top strip */
.topstrip { display: flex; align-items: center; gap: var(--sp-4); height: 70px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); z-index: 80; margin-bottom: var(--sp-6); }
.topstrip__meta { display: flex; align-items: center; gap: var(--sp-3); font-size: 13px; color: var(--text-2); }
.topstrip__meta .dot { color: var(--text-3); }
.rates b { color: var(--text); font-weight: 600; }
.burger { display: none; background: transparent; border: 0; padding: 6px; }
.burger svg { width: 26px; height: 26px; }

/* Scoped to form.search so the WP body.search class does not catch every button/svg */
form.search { margin-left: auto; position: relative; flex: 0 1 300px; }
form.search input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 999px; padding: 0 44px 0 16px; font-size: 14px; color: var(--text); background: var(--surface); transition: var(--ease); }
form.search input::placeholder { color: var(--text-3); }
form.search input:focus { background: var(--bg); border-color: var(--brand); }
form.search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; transition: var(--ease); }
form.search button:hover { background: var(--brand-dark); }
form.search button svg { width: 17px; height: 17px; }

/* =========================================================
   Shared bits
   ========================================================= */
.cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); padding: 3px 8px; background: color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 4px; }
.cat--hot { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cat--solid { color: #fff; background: var(--brand); }
.cat--solid.cat--hot { background: var(--accent); }
.time { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; }
.time svg { width: 13px; height: 13px; }
.meta-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

.page-title { font-size: 30px; margin-bottom: var(--sp-5); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--text); }
.section-head h2 { font-size: 23px; }
.section-head .more { font-size: 14px; color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more svg { width: 16px; height: 16px; }
a.headline { transition: color var(--ease); }
a.headline:hover { color: var(--brand); }

/* =========================================================
   Hero
   ========================================================= */
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.lead { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(8,12,20,.92) 0%, rgba(8,12,20,.45) 45%, rgba(8,12,20,0) 75%); }
.lead__body { position: relative; z-index: 1; padding: var(--sp-6); color: #fff; }
.lead__body h1, .lead__body h2 { font-size: clamp(26px, 1.6vw, 38px); color: #fff; margin: var(--sp-4) 0 var(--sp-3); }
.lead__body p { color: #dfe4ec; font-size: 16px; margin: 0 0 var(--sp-3); max-width: 58ch; }
.lead .time { color: #b9c1d0; }

.lead-side { display: grid; grid-template-rows: repeat(3,1fr); gap: var(--sp-4); }
.mini { display: grid; grid-template-columns: 104px 1fr; gap: var(--sp-3); align-items: start; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.mini:last-child { border-bottom: 0; padding-bottom: 0; }
.mini img { width: 104px; height: 74px; object-fit: cover; border-radius: var(--radius); }
.mini h3 { font-size: 16px; font-weight: 600; margin: var(--sp-1) 0 var(--sp-2); }

/* =========================================================
   Feed + rail
   ========================================================= */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--sp-7); align-items: start; }
.feed article { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--border); }
.feed article:first-child { padding-top: 0; }
.feed__thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.feed__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.feed article:hover .feed__thumb img { transform: scale(1.05); }
.feed h3 { font-size: 20px; font-weight: 600; margin: var(--sp-2) 0; }
.feed p { color: var(--text-2); font-size: 15px; margin: 0 0 var(--sp-3); }
.loadmore { margin-top: var(--sp-5); display: inline-flex; align-items: center; gap: var(--sp-2); padding: 12px 28px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-weight: 500; font-size: 15px; transition: var(--ease); }
.loadmore:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.rail > * + * { margin-top: var(--sp-6); }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.widget__title { font-size: 18px; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--accent); display: inline-block; }
.popular li { display: grid; grid-template-columns: 34px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.popular li:last-child { border-bottom: 0; }
.popular .num { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1; }
.popular h4 { font-size: 15px; font-weight: 600; font-family: var(--font-body); line-height: 1.35; }
.popular h4:hover { color: var(--brand); }
.popular .time { margin-top: 4px; }

.breaking { background: var(--accent); color: #fff; border: 0; }
.breaking .widget__title { color: #fff; border-color: rgba(255,255,255,.5); }
.breaking li { padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.breaking li:last-child { border-bottom: 0; }
.breaking a { display: block; font-weight: 500; font-size: 15px; }
.breaking a:hover { text-decoration: underline; }
.breaking .time { margin-top: 3px; color: rgba(255,255,255,.78); }

.ad { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; min-height: 250px; }

/* =========================================================
   Category cards
   ========================================================= */
.cat-section { margin-top: var(--sp-7); }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }
.card { display: flex; flex-direction: column; }
.card__thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; margin-bottom: var(--sp-3); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__thumb img { transform: scale(1.05); }
.card h3 { font-size: 17px; font-weight: 600; margin: var(--sp-2) 0; }
.card .meta-row { margin-top: auto; }

/* =========================================================
   Breadcrumb / category intro / pagination
   ========================================================= */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .6; }

.cat-intro { margin-bottom: var(--sp-6); }
.cat-intro p { color: var(--text-2); max-width: 72ch; margin: var(--sp-2) 0 0; }

.pagination { display: flex; gap: 6px; margin-top: var(--sp-6); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; font-size: 14px; color: var(--text); transition: var(--ease); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .ellipsis { border: 0; }

/* =========================================================
   Article (single)
   ========================================================= */
.article { max-width: 760px; }
.article__title { font-size: clamp(28px, 3.4vw, 40px); margin: var(--sp-3) 0; }
.article__meta { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; color: var(--text-2); font-size: 14px; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.article__meta .author { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.article__meta .author img { width: 32px; height: 32px; border-radius: 50%; }
.article__meta .time svg { width: 14px; height: 14px; }
.article__lead-img { margin: 0 0 var(--sp-5); }
.article__lead-img img { border-radius: var(--radius-lg); max-width: 100%; width: auto; height: auto; margin: 0 auto; }
.article__body img { height: auto; }
.article__lead-img figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }

.article__body { font-size: 18px; line-height: 1.7; }
.article__body p { margin: 0 0 var(--sp-4); }
.article__body h2 { font-size: 26px; margin: var(--sp-6) 0 var(--sp-3); }
.article__body h3 { font-size: 21px; margin: var(--sp-5) 0 var(--sp-2); }
.article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article__body ul, .article__body ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
.article__body li { margin-bottom: var(--sp-2); }
.article__body figure { margin: var(--sp-5) 0; }
.article__body figure img { border-radius: var(--radius); width: 100%; }
.article__body figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.article__body blockquote { margin: var(--sp-5) 0; padding: var(--sp-1) var(--sp-5); border-left: 4px solid var(--accent); font-family: var(--font-head); font-size: 22px; line-height: 1.4; font-style: italic; }

.article__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.article__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.share { display: flex; align-items: center; gap: var(--sp-2); }
.share > span { font-size: 14px; color: var(--text-2); }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: var(--ease); }
.share a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.share svg { width: 17px; height: 17px; }

.related { margin-top: var(--sp-7); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--invert-bg); color: var(--invert-text); margin-top: var(--sp-8); padding: var(--sp-7) var(--sp-6) var(--sp-5); font-size: 14px;}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,.1); max-width: 1200px; margin: 0 auto; }
.footer .logo { color: #fff; font-size: 26px; margin-bottom: var(--sp-3); }
.footer .logo span:not(.pro) { color: #fff; }
.footer p { margin: 0 0 var(--sp-4); max-width: 34ch; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 14px; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: .03em; }
.footer li { margin-bottom: var(--sp-2); }
.footer li a:hover { color: #fff; }
.footer .socials a { background: rgba(255,255,255,.1); color: #cfd6e2; }
.footer .socials a:hover { background: var(--brand); color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-5); flex-wrap: wrap; color: var(--text-3); font-size: 13px; max-width: 1200px; margin: 0 auto; }
.footer__bottom a:hover { color: #fff; }

/* scrim for mobile drawer (glass blur, not a dark block) */
.scrim { display: none; position: fixed; inset: 0; background: rgba(15,18,23,.12); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); z-index: 100; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .rail > * + * { margin-top: 0; }
  .cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100dvh; transform: translateX(-100%); transition: transform 260ms ease; box-shadow: var(--shadow-md); z-index: 110; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; }
  .drawer-close { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--surface); border-radius: 50%; }
  .drawer-close svg { width: 20px; height: 20px; }
  .burger { display: grid; place-items: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .lead { min-height: 340px; }
  .main { padding: 0 var(--sp-4) var(--sp-7); }
  .topstrip__meta .rates { display: none; }
}
@media (max-width: 600px) {
  .rail { grid-template-columns: 1fr; }
  .feed article { grid-template-columns: 1fr; }
  .feed__thumb { aspect-ratio: 16/9; }
  .cards { grid-template-columns: 1fr; }
  .footer { padding: var(--sp-6) var(--sp-4); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); text-align: center; justify-items: center; }
  .footer__grid > div { width: 100%; }
  .footer .logo { justify-content: center; }
  .footer p { margin-left: auto; margin-right: auto; }
  .footer .socials { justify-content: center; }
  .footer h4 { text-align: center; }
  .footer__grid ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; width: 240px; max-width: 100%; margin: 0 auto; text-align: left; }
  .footer__grid ul li { margin-bottom: 0; min-width: 0; overflow-wrap: anywhere; }
  .footer__bottom { justify-content: center; text-align: center; }
  .lead__body { padding: var(--sp-4); }
  .topstrip__meta span:not(.rates):first-child { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   WordPress integration (added for the theme)
   ========================================================= */
.side-nav .current-menu-item > a,
.side-nav .current-menu-parent > a,
.side-nav .current-cat > a { background: var(--brand); color: #fff; }

.navigation.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-6); }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; font-size: 14px; color: var(--text); transition: var(--ease); text-decoration: none; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; }

/* Vertical list item without a featured image collapses to one column */
.feed article.is-noimg { grid-template-columns: 1fr; }

/* Newsletter / generic modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--sp-4); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,18,23,.5); backdrop-filter: blur(4px); }
.modal__box { position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--bg); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-md); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: var(--surface); border-radius: 50%; cursor: pointer; }
.modal__close svg { width: 20px; height: 20px; }
body.modal-open { overflow: hidden; }

/* Author page */
.author-hero { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-5) 0 var(--sp-6); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.author-hero__photo img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.author-hero__bio { color: var(--text-2); max-width: 70ch; margin: 0 0 var(--sp-3); }
.author-hero__contacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: 14px; }
.author-hero__contacts a { color: var(--brand); }
.author-hero__contacts a:hover { color: var(--brand-dark); }

/* Author avatar inside article meta */
.article__meta .author a { display: inline-flex; align-items: center; gap: 8px; }
.article__meta .author img { width: 32px; height: 32px; border-radius: 50%; }

/* Card without image: excerpt */
.card--noimg p { color: var(--text-2); font-size: 14px; margin: var(--sp-1) 0 var(--sp-2); }

/* Ad banner (real) */
.ad-banner { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.ad-banner img { width: 100%; height: auto; display: block; }

/* Empty state / 404 / search-no-results */
.empty-state { max-width: 640px; margin: var(--sp-6) auto var(--sp-8); text-align: center; }
.empty-state .search { margin: var(--sp-5) auto; flex-basis: auto; max-width: 460px; }
.empty-state .search--wide { position: relative; }
.error-404__code { font-family: var(--font-head); font-size: clamp(72px, 14vw, 140px); font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -0.03em; }
.sections-nav { margin-top: var(--sp-5); }
.sections-nav .tags { justify-content: center; }

/* Search results */
.search-group { margin-bottom: var(--sp-6); }
.search-pages li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.search-pages .headline { font-weight: 500; }

/* Search field variant on empty pages */
.search--wide input { height: 48px; }

/* Hero without a featured image */
.lead--noimg { background: linear-gradient(135deg, #16264a 0%, #0b1a3a 100%); }
.mini__thumb { display: block; }
.mini--noimg { grid-template-columns: 1fr; }

/* =========================================================
   Contact Form 7 (styled to match the theme)
   ========================================================= */
.wpcf7 { max-width: 560px; }
.wpcf7-form p { margin: 0 0 var(--sp-4); }
.wpcf7-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel], .wpcf7-form textarea, .wpcf7-form select {
	width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); transition: var(--ease);
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus { background: var(--bg); border-color: var(--brand); outline: none; }
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form .wpcf7-submit { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 26px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; width: auto; transition: var(--ease); }
.wpcf7-form .wpcf7-submit:hover { background: var(--accent-dark); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--accent); font-size: 13px; margin-top: 4px; }
.wpcf7-response-output { border-radius: var(--radius); padding: 12px 14px !important; font-size: 14px; margin: var(--sp-3) 0 0 !important; }

/* MailPoet form inside the newsletter modal */
.modal__box .mailpoet_form input[type=email], .modal__box .mailpoet_form input[type=text] {
	width: 100%; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px; font: inherit; margin-bottom: var(--sp-2); background: var(--surface);
}
.modal__box .mailpoet_form input[type=submit] { width: 100%; height: 46px; border: 0; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.modal__box h2, .modal__box h3 { margin-bottom: var(--sp-3); }

/* Sidebar menus rendered via wp_nav_menu (ul.menu) */
.side-nav ul.menu { display: flex; flex-direction: column; }
.side-tags .tags { display: block; }
.side-tags .tags ul.menu { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Hard guard: mobile-only chrome must never appear on desktop */
@media (min-width: 981px) {
	.burger,
	.drawer-close,
	.scrim { display: none !important; }
}

/* "Показати ще" on a single line */
.loadmore { white-space: nowrap; }

/* Author contact icons (circular, horizontal, hidden when empty) */
.author-socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.author-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: var(--ease); }
.author-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.author-socials svg { width: 18px; height: 18px; }

/* Author bio (WYSIWYG) */
.author-hero__bio { color: var(--text-2); max-width: 70ch; margin: 0 0 var(--sp-2); }
.author-hero__bio p { margin: 0 0 var(--sp-2); }
.author-hero__bio p:last-child { margin-bottom: 0; }

/* Authors archive list */
.author-list { display: grid; gap: 0; max-width: 820px; margin-top: var(--sp-2); }
.author-card { display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5) 0; border-bottom: 1px solid var(--border); }
.author-card:first-child { padding-top: var(--sp-2); }
.author-card__photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-card__body h2 { font-size: 20px; margin-bottom: 6px; }
.author-card__body h2 a:hover { color: var(--brand); }
.author-card__body p { color: var(--text-2); font-size: 15px; margin: 0 0 var(--sp-2); }
@media (max-width: 600px) {
	.author-card { grid-template-columns: 72px 1fr; gap: var(--sp-3); }
	.author-card__photo img { width: 72px; height: 72px; }
}

/* "Показати ще" chevron icon size (was missing) */
.loadmore svg { width: 18px; height: 18px; }

/* "Посилання скопійовано" toast next to the copy-link share button */
.copied-toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--text); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; z-index: 10; }
.copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copied-toast::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--text); }
