/* Recovery overrides kept separate from the compiled theme stylesheet. */

/* Editorial design evolution: shared type, rhythm and restrained accents. */
:root {
  --obk-ink: #202d31;
  --obk-muted: #637378;
  --obk-line: #dfe8e8;
  --obk-accent: #226f79;
}

body {
  color: var(--obk-ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--obk-accent);
  outline-offset: 4px;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--obk-line);
}

.header-top__nav li a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  gap: 8px;
}

.main-news {
  column-gap: 24px;
  row-gap: 36px;
}

.main-news .main-new .main-new__title,
.category-news .category-new .category-new__title,
.feed-items .feed-item .similar-news .similar-new .similar-new__title {
  color: var(--obk-ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.25px;
}

.main-news .main-new .main-new__image-container,
.category-news .category-new .category-new__image-container {
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
}

.main-news .main-new:hover,
.feed-items .feed-item .similar-news .similar-new:hover {
  transform: none;
}

.main-news .main-new .main-new__date,
.category-news .category-new .category-new__date,
.feed-items .feed-item .similar-news .similar-new .similar-new__date {
  color: var(--obk-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.topical-block .topical-block__link,
.feed-items .similar-block .similar-block__title {
  color: var(--obk-ink);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
}

.topical-block .topical-block__link::after {
  background: var(--obk-line);
  margin-left: 20px;
}

.topical-block .topical-news .topical-new .topical-new__title {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--obk-ink);
}

.main-sidebar .lenta-block,
.sidebar .lenta-block {
  border: 1px solid var(--obk-line);
  border-radius: 10px;
  background: #f7fafa;
  overflow: hidden;
}

.main-sidebar .lenta-block .lenta-block__title,
.sidebar .lenta-block .lenta-block__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  padding: 18px 20px;
  border-bottom: 1px solid var(--obk-line);
}

.main-sidebar .lenta-block .lenta-new,
.sidebar .lenta-block .lenta-new {
  padding: 16px 0;
  border-bottom: 1px solid var(--obk-line);
}

.main-sidebar .lenta-block .lenta-news,
.sidebar .lenta-block .lenta-news {
  padding: 0 18px;
}

.wrap__article-theme {
  padding-top: 20px;
}

.main-sidebar .lenta-block .lenta-new .lenta-new__title,
.sidebar .lenta-block .lenta-new .lenta-new__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.main-sidebar .lenta-block .lenta-new .lenta-new__date,
.sidebar .lenta-block .lenta-new .lenta-new__date {
  font-size: 12px;
  color: var(--obk-muted);
  margin-top: 8px;
}

.feed-items .feed-item .feed-item__title {
  color: var(--obk-ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.7px;
  margin-bottom: 28px;
  text-wrap: balance;
}

.feed-items .feed-item .feed-item__content {
  font-size: 19px;
  line-height: 1.7;
}

.feed-items .feed-item .feed-item__content p {
  font-size: inherit;
  line-height: inherit;
  color: var(--obk-ink);
  margin-bottom: 24px;
  letter-spacing: normal;
}

.feed-items .feed-item .feed-item__content h2,
.feed-items .feed-item .feed-item__content h3 {
  color: var(--obk-ink);
  line-height: 1.25;
  margin: 36px 0 16px;
}

.feed-items .feed-item .feed-item__content h2 { font-size: 28px; }
.feed-items .feed-item .feed-item__content h3 { font-size: 23px; }

.feed-items .feed-item .feed-item__content blockquote:not(.instagram-media) {
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 3px solid var(--obk-accent);
  background: #f3f8f8;
  font-size: 21px;
  line-height: 1.6;
}

.feed-items .feed-item .feed-item__content blockquote:not(.instagram-media)::before {
  content: none;
}

.feed-items .feed-item figcaption {
  color: var(--obk-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 24px;
}

.feed-items .feed-item {
  border-bottom-color: var(--obk-line);
}

footer { margin-top: 48px; }
footer .copyright { line-height: 1.6; }

@media (max-width: 599px) {
  .main-news .main-new { margin-bottom: 28px; }
  .main-news .main-new .main-new__title { font-size: 22px; }
  .feed-items .feed-item .feed-item__title { margin-bottom: 20px; }
  .feed-items .feed-item .feed-item__content { font-size: 18px; line-height: 1.65; }
  .feed-items .feed-item .feed-item__content blockquote:not(.instagram-media) { padding: 16px; }
  .topical-block .topical-block__link { font-size: 25px; }
  footer { margin-top: 32px; }
}

/* Category icons must not inherit the global full-width image rule. */
.header-top__nav li a img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.header-top__nav li a {
  align-items: center;
  white-space: nowrap;
}

/* Article media must preserve its natural aspect ratio. */
.feed-items .feed-item .feed-item__image-container {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.feed-items .feed-item .feed-item__image-container img,
.feed-items .feed-item .feed-item__content img,
.feed-items .feed-item .feed-item__content picture,
.feed-items .feed-item .feed-item__content figure img,
.feed-items .feed-item .feed-item__content .wp-caption img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* WordPress may save a pixel width inline on legacy caption wrappers. */
.feed-items .feed-item .feed-item__content figure,
.feed-items .feed-item .feed-item__content .wp-caption,
.feed-items .feed-item .feed-item__content .wp-block-image {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  clear: both;
  overflow: visible;
}

.feed-items .feed-item .feed-item__content figcaption,
.feed-items .feed-item .feed-item__content .wp-caption-text {
  display: block;
  width: 100%;
  margin: 8px 0 25px;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.4;
}

/* Keep card crops predictable without stretching the source image. */
.main-news > .main-new,
.feed-item__wrapper-right {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feed-items .feed-item .feed-item__content .wp-caption {
  float: none;
}

.main-news .main-new .main-new__image-container img,
.category-news .category-new .category-new__image-container img,
.similar-news .similar-new .similar-new__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 599px) {
  footer .footer-top__info-page-list {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .header-top__nav {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .header-top__nav > li {
    flex-shrink: 0;
  }

  .feed-items .feed-item .feed-item__image-container,
  .feed-items .feed-item .feed-item__content img {
    height: auto;
  }
}
