/* Доповнення до збережених стилів теми з вебархіву (style-1…6 лежать поруч без змін).
   Колір, шрифти й розміри — з inline-стилю теми на знімку головної; нижче лише те, чого в архіві не було:
   меню, сітка без float, статті паразиток. */
:root { --accent: #4992e5; --ink: #444; --text: #555; }
body { background: #eee; color: #666; font-family: "Roboto Slab", Rockwell, "Rockwell Nova", Georgia, serif; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { font-family: "Roboto Slab", Rockwell, "Rockwell Nova", Georgia, serif; color: var(--ink); }
a, a:hover { color: var(--accent); }
img { height: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }

/* Шапка: назва домену замість назви колишнього сайту */
.main-header { float: none; padding-bottom: 8px; }
#header { display: block; margin-top: 0; padding-top: 20px; }
.logo-wrap { display: block; margin: 0 0 12px; width: 100%; }
#logo { float: none; margin: 0; padding: 0; font-size: 48px; line-height: 1; text-align: center; }
#logo a { float: none; display: inline-block; font-size: clamp(22px, 7vw, 48px); font-weight: 700; color: #444; overflow-wrap: anywhere; }
.site-description { text-align: center; color: #777; padding-top: 6px; }
.site-nav { background: #fff; border-top: 1px solid #e4e4e4; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin: 0 auto; padding: 0; list-style: none; max-width: 1200px; }
.site-nav li { margin: 0; list-style: none; }
.site-nav a { display: block; padding: 14px 16px; color: #444; font-weight: 700; font-size: 15px; text-transform: uppercase; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Макет: колонка статей і бічна колонка без float */
#page { clear: none; overflow: visible; padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
#page .article { float: none; width: auto; max-width: none; }
#content_box { float: none; }
.sidebar.c-4-12 { float: none; width: auto; max-width: none; }
.sidebar .widget { float: none; background: #fff; padding: 22px 22px 8px; margin-bottom: 24px; overflow: visible; }
.sidebar .widget h3 { font-size: 20px; margin-bottom: 18px; line-height: 1.3; }
.widget li { margin-bottom: 9px; line-height: 1.4; }
.widget li a { overflow-wrap: anywhere; }

/* Одна стаття або текст головної */
.single_post { float: none; width: auto; margin-top: 0; }
.single_post header { padding-left: 30px; padding-right: 30px; }
.single-title { float: none; display: block; font-size: clamp(24px, 4.2vw, 32px); line-height: 1.25; text-transform: none; overflow-wrap: break-word; }
.post-single-content { padding-left: 30px; padding-right: 30px; overflow-wrap: break-word; }
.post-single-content p { line-height: 1.75; margin-bottom: 1.1em; }
.post-single-content h2 { font-size: 24px; line-height: 1.3; margin: 1.7em 0 .6em; text-transform: none; }
.post-single-content h3 { font-size: 19px; line-height: 1.35; margin: 1.4em 0 .5em; text-transform: none; }
.post-single-content ul, .post-single-content ol { margin: 0 0 1.2em 1.4em; }
.post-single-content ul { list-style: square; }
.post-single-content ol { list-style: decimal; }
.post-single-content li { margin-bottom: .45em; line-height: 1.65; }
.post-single-content a { text-decoration: underline; }
.vw-kicker { margin: 0 0 .9em; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.vw-lede { font-size: 1.12em; color: #444; font-weight: 700; line-height: 1.6; }
.vw-intro, .vw-conclusion, .vw-faq, .vw-sections { display: block; }
.vw-conclusion, .vw-faq { margin-top: 2em; padding-top: .4em; border-top: 1px solid #e4e4e4; }
.vw-photo { margin: 1.8em 0; }
.vw-photo img { display: block; width: 100%; height: auto !important; background: #ddd; }
.lede { font-size: 1.12em; color: #444; font-weight: 700; line-height: 1.6; }

/* Картки статей на головній: як у блоці random-posts архіву, але без float */
.featured-category-title { float: none; margin: 8px 0 24px; font-size: 28px; line-height: 1.3; text-transform: none; }
.random-posts.latestpost { float: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; overflow: visible; }
.latestpost .latestPost { float: none; width: auto; max-width: none; margin: 0; display: flex; background: #fff; }
.latestPost > a.post-image { float: none; display: block; width: 100%; color: inherit; }
.latestPost .featured-thumbnail { float: none; display: block; max-width: none; }
.latestPost .featured-thumbnail img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; height: auto !important; background: #ccc; }
.random-posts .latestPost header { padding: 0 16px 14px; bottom: 0; }
.latestpost .latestPost .title { font-size: 15px; line-height: 1.3; text-transform: none; overflow-wrap: anywhere; }
.random-post-overlay { height: 70%; }
.latestpost .latestPost .post-info { display: block; padding: 14px 16px 16px; font-size: 13px; line-height: 1.55; text-transform: none; color: #666; }
.latestPost .post-info p { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Підвал */
.footer { position: relative; clear: both; float: none; width: 100%; background: #fff; margin-top: 48px; padding-top: 36px; }
.footer .container { float: none; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-bottom: 20px; }
.footer-links h2 { font-size: 18px; margin-bottom: 14px; text-transform: none; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 8px; font-size: 14px; line-height: 1.4; list-style: none; }
.footer-links .wide { grid-column: span 2; }
.footer-links .wide ul { columns: 2; column-gap: 28px; }
.footer-links .wide li { break-inside: avoid; }
.footer-links p { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.copyrights { float: none; width: 100%; border-top: 1px solid #e4e4e4; padding: 14px 0; color: #222; }
#copyright-note { font-size: 14px; }
#copyright-note::after { content: ""; display: block; clear: both; }
#footer-to-top { top: -20px; }
.age { display: inline-block; margin-right: 8px; padding: 1px 7px; border: 2px solid #444; border-radius: 4px; font-weight: 700; font-size: 13px; color: #444; }

@media (max-width: 900px) {
  #page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .single_post header, .post-single-content { padding-left: 18px; padding-right: 18px; }
  .site-nav a { padding: 11px 10px; font-size: 14px; }
}
@media (max-width: 640px) {
  .footer-links .wide { grid-column: auto; }
  .footer-links .wide ul { columns: 1; }
}
@media (max-width: 480px) {
  .random-posts.latestpost { grid-template-columns: 1fr; }
  .featured-category-title { font-size: 22px; }
}

/* Ширина разом з відступами: у темі width: 100% + padding давало горизонтальну прокрутку на 390 px */
.sidebar .widget, .single_post header, .post-single-content, .single_post, .latestPost { box-sizing: border-box; }
.footer > .container, .copyrights .container { position: static; }

/* Тема на вузьких екранах робить .main-container absolute заради бічного меню, якого тут немає: без цього висота body 0 */
.main-container { position: static; }
