/* Блоки расширенного контента (kc-*): факт-панель, таблица, врезка, шаги, сноски, фото с подписью.
   Подключается только на страницах, где в тексте есть class="kc-" (functions.php, kedo_enqueue_assets).
   Всё под .entry-content.city-content: общие шаблоны и чужие страницы не затрагиваются. */
.entry-content.city-content .kc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.8rem 0 2.2rem; padding: 0; list-style: none; }
.entry-content.city-content .kc-facts > li { margin: 0; padding: 1rem 1.05rem; border: 1px solid #ded8c6; border-radius: 16px; background: #fffcf4; color: #263c32; }
.entry-content.city-content .kc-facts b { display: block; font: 600 1.7rem/1.1 'Cormorant Garamond', Georgia, serif; color: #164c3a; margin-bottom: .3rem; }
.entry-content.city-content .kc-facts span { display: block; font: 500 .8rem/1.45 Inter, sans-serif; color: #5c655f; }
.entry-content.city-content .kc-table-wrap { margin: 1.6rem 0 2.2rem; overflow-x: auto; border: 1px solid #ded8c6; border-radius: 16px; background: #fffcf4; }
.entry-content.city-content .kc-table-wrap table { width: 100%; min-width: 34rem; margin: 0; border: 0; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.entry-content.city-content .kc-table-wrap caption { caption-side: top; text-align: left; padding: .9rem 1.1rem .2rem; font: 600 .72rem/1.4 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #956022; }
.entry-content.city-content .kc-table-wrap th { text-align: left; padding: .75rem 1.1rem; background: #164c3a; color: #f7f0da; font: 600 .78rem/1.4 Inter, sans-serif; letter-spacing: .04em; border: 0; }
.entry-content.city-content .kc-table-wrap td { padding: .8rem 1.1rem; border: 0; border-top: 1px solid #e7e1cf; vertical-align: top; color: #263c32; background: transparent; }
.entry-content.city-content .kc-table-wrap tbody tr:nth-child(even) td { background: #f8f3e4; }
.entry-content.city-content .kc-table-wrap td:first-child { font-weight: 600; color: #164c3a; }
.entry-content.city-content .kc-note { margin: 1.8rem 0 2.2rem; padding: 1.15rem 1.3rem 1.15rem 1.4rem; border-left: 4px solid #c9a85b; border-radius: 0 16px 16px 0; background: #f7f4ed; color: #263c32; }
.entry-content.city-content .kc-note > :first-child { margin-top: 0; }
.entry-content.city-content .kc-note > :last-child { margin-bottom: 0; }
.entry-content.city-content .kc-note__label { display: block; margin: 0 0 .4rem; font: 600 .72rem/1.4 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #956022; }
.entry-content.city-content .kc-note--warn { border-left-color: #a4432c; background: #fbf0ea; }
.entry-content.city-content .kc-note--warn .kc-note__label { color: #a4432c; }
.entry-content.city-content .kc-steps { counter-reset: kc-step; list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; }
.entry-content.city-content .kc-steps > li { counter-increment: kc-step; position: relative; margin: 0; padding: 0 0 1.3rem 2.6rem; border: 0; color: #263c32; }
.entry-content.city-content .kc-steps > li::before { content: counter(kc-step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #164c3a; color: #f7f0da; font: 600 .8rem/1 Inter, sans-serif; }
.entry-content.city-content .kc-steps > li:not(:last-child)::after { content: ''; position: absolute; left: .87rem; top: 2rem; bottom: .2rem; width: 1px; background: #b9bcaa; }
.entry-content.city-content .kc-steps strong { display: block; color: #164c3a; margin-bottom: .2rem; }
.entry-content.city-content .kc-fig { margin: 2rem 0 2.4rem; }
.entry-content.city-content .kc-fig img { display: block; width: 100%; height: auto; border-radius: 18px; }
.entry-content.city-content .kc-fig figcaption { margin-top: .6rem; font: 400 .82rem/1.5 Inter, sans-serif; color: #6b736d; }
.entry-content.city-content .kc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 1.6rem 0 2.2rem; }
.entry-content.city-content .kc-two > div { padding: 1.1rem 1.25rem; border: 1px solid #ded8c6; border-radius: 16px; background: #fffcf4; color: #263c32; }
.entry-content.city-content .kc-two h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.entry-content.city-content .kc-two p:last-child, .entry-content.city-content .kc-two ul:last-child { margin-bottom: 0; }
.entry-content.city-content .kc-src { margin: 2.4rem 0 1rem; padding-top: 1.1rem; border-top: 1px solid #ded8c6; font: 400 .85rem/1.6 Inter, sans-serif; color: #5c655f; }
.entry-content.city-content .kc-src h2, .entry-content.city-content .kc-src h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.entry-content.city-content .kc-src ol { margin: 0; padding-left: 1.3rem; }
.entry-content.city-content .kc-src li { margin: 0 0 .35rem; }
.entry-content.city-content .kc-src a { color: #164c3a; }
.entry-content.city-content sup.kc-fn a { color: #956022; text-decoration: none; font-weight: 600; padding: 0 .1em; }
@media (max-width: 640px) {
  /* таблицы на телефоне — карточками: первая ячейка заголовок строки, остальные идут ниже */
  .entry-content.city-content .kc-table-wrap { overflow: visible; border: 0; background: none; margin-left: 0; margin-right: 0; }
  .entry-content.city-content .kc-table-wrap table { min-width: 0; display: block; }
  .entry-content.city-content .kc-table-wrap thead { display: none; }
  .entry-content.city-content .kc-table-wrap tbody, .entry-content.city-content .kc-table-wrap tr, .entry-content.city-content .kc-table-wrap td { display: block; }
  .entry-content.city-content .kc-table-wrap caption { display: block; padding: 0 0 .6rem; }
  .entry-content.city-content .kc-table-wrap tr { margin: 0 0 .8rem; border: 1px solid #ded8c6; border-radius: 14px; background: #fffcf4; overflow: hidden; }
  .entry-content.city-content .kc-table-wrap td { padding: .4rem 1rem; border: 0; background: transparent; }
  .entry-content.city-content .kc-table-wrap tbody tr:nth-child(even) td { background: transparent; }
  .entry-content.city-content .kc-table-wrap td:first-child { padding: .6rem 1rem; background: #164c3a; color: #f7f0da; }
  .entry-content.city-content .kc-table-wrap tbody tr:nth-child(even) td:first-child { background: #164c3a; }
  .entry-content.city-content .kc-table-wrap td:first-child a { color: #f7f0da; }
  .entry-content.city-content .kc-table-wrap td:last-child { padding-bottom: .7rem; }
  .entry-content.city-content .kc-two { grid-template-columns: 1fr; }
  .entry-content.city-content .kc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
