/*
Theme Name: CBDC Maidan
Theme URI: https://cbdc.com.ua
Description: Ukrainian CBDC tracker — Concept C «Майдан» (bright civic design). Custom theme for cbdc.com.ua.
Author: Artem Ilchenko
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cbdc-maidan
*/

/* ===== WP overrides / design fixes (2026-10-03) ===== */
:root {
  --color-status-research: #7C3AED; /* violet instead of grey */
}

.hero { padding: 34px 0 14px; }
.map-section { padding-top: 10px; padding-bottom: 10px; }
.map-container { height: 440px; aspect-ratio: auto; }
@media (max-width: 768px) { .map-container { height: 300px; aspect-ratio: auto; } }
.section { padding: 44px 0; }
.map-legend [data-status] { cursor: pointer; user-select: none; }
.map-legend [data-status] i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* homepage info blocks (What is CBDC + e-hryvnia) */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; gap: 24px; } }
.info-grid h2 { margin-bottom: 14px; }
.info-grid h3 { margin-bottom: 10px; }
.info-grid p { margin-bottom: 12px; }
.link-arrow { font-weight: 600; color: #0057B8; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.check-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #16A34A; font-weight: 700; }
.timeline--compact { margin: 8px 0 16px; }
.tracker-empty { text-align: center; padding: 24px; color: #6B7280; }

/* news list page */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.pagination { margin-top: 28px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #E5E7EB; border-radius: 6px; margin: 0 3px; text-decoration: none; color: #1A1A2E; }
.pagination .page-numbers.current { background: #0057B8; color: #fff; border-color: #0057B8; }

/* author byline */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 8px; padding: 16px 18px; background: var(--color-surface, #F8FAFC); border: 1px solid var(--color-border, #E5E7EB); border-radius: 12px; }
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; background: #E5E7EB; }
.author-box__name { font-weight: 700; font-size: 16px; }
.author-box__name a { color: var(--color-text, #1A1A2E); text-decoration: none; }
.author-box__name a:hover { color: #0057B8; }
.author-box__role { display: block; font-weight: 500; font-size: 13px; color: #6B7280; margin-top: 2px; }
.author-box__dates { font-size: 13px; color: #6B7280; margin-top: 6px; }
.author-box__bio { font-size: 14px; color: #374151; margin-top: 8px; }
/* category cards (база знань hub) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { display: block; padding: 20px; border: 1px solid var(--color-border, #E5E7EB); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.cat-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cat-card__name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.cat-card__count { font-size: 13px; color: #6B7280; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.cat-chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--color-border, #E5E7EB); font-size: 14px; text-decoration: none; color: #374151; }
.cat-chips a.current { background: #0057B8; color: #fff; border-color: #0057B8; }
/* author archive + authors page */
.author-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.author-hero__avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: #E5E7EB; }
.author-hero__role { color: #6B7280; font-size: 15px; margin-top: 4px; }
.author-hero__bio { margin-top: 10px; color: #374151; max-width: 640px; }
.authors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .authors-grid { grid-template-columns: 1fr; } }
.author-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--color-border, #E5E7EB); border-radius: 12px; background: #fff; }
.author-card__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; background: #E5E7EB; }
.author-card__name { font-weight: 700; font-size: 17px; }
.author-card__name a { color: inherit; text-decoration: none; }
.author-card__name a:hover { color: #0057B8; }
.author-card__role { font-size: 13px; color: #6B7280; margin: 2px 0 8px; }
.author-card__bio { font-size: 14px; color: #374151; }
.author-card__count { font-size: 13px; color: #0057B8; margin-top: 8px; display: block; text-decoration: none; }

/* history slider + embed link */
.hero__meta { font-size: 14px; color: #6B7280; margin-top: 10px; }
.map-history { margin: 14px auto 0; max-width: 760px; background: #fff; border: 1px solid var(--color-border, #E5E7EB); border-radius: 12px; padding: 14px 18px; }
.map-history__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #6B7280; margin-bottom: 8px; }
.map-history__head strong { color: #0057B8; font-size: 15px; }
.map-history input[type=range] { width: 100%; accent-color: #0057B8; }
.map-history__only { display: block; margin-top: 8px; font-size: 14px; color: #374151; cursor: pointer; }
.map-history__note { font-size: 12px; color: #9CA3AF; margin-top: 8px; }
.map-embed-link { text-align: center; margin-top: 10px; font-size: 14px; }
.map-embed-link a { color: #0057B8; text-decoration: none; }
.map-embed-link a:hover { text-decoration: underline; }
.embed-code { width: 100%; min-height: 120px; font-family: monospace; font-size: 13px; padding: 12px; border: 1px solid var(--color-border, #E5E7EB); border-radius: 8px; background: #F8FAFC; }
.embed-actions { margin: 12px 0; display: flex; gap: 12px; align-items: center; }
.embed-actions button { padding: 10px 18px; border: 0; border-radius: 8px; background: #0057B8; color: #fff; font-weight: 600; cursor: pointer; }

/* misc */
.map-tip-card strong { display: block; margin-bottom: 4px; font-size: 14px; }
.map-tip-cur { font-size: 12px; color: #6B7280; margin-top: 4px; }
.map-tip-more { font-size: 12px; color: #0057B8; margin-top: 4px; font-weight: 600; }
.leaflet-tooltip.map-tip { border-radius: 8px; border: 1px solid #E5E7EB; box-shadow: 0 4px 12px rgba(0,0,0,.12); padding: 8px 12px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
a.news-card, a.guide-card { text-decoration: none; color: inherit; }
.filter-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-right: 14px; font-size: 14px; }
.filter-label input { accent-color: #0057B8; width: 16px; height: 16px; cursor: pointer; }
.news-card__date { font-size: 13px; color: #6B7280; margin-bottom: 6px; }
/* nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a .nav-dropdown__caret { font-size: 10px; }
.nav-dropdown__menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 8px; min-width: 280px; z-index: 60; flex-direction: column; }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a { padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; white-space: nowrap; }
.nav-dropdown__menu a:hover { background: #EFF6FF; color: #0057B8; }
@media (max-width: 768px) {
  .nav-dropdown__menu { position: static; box-shadow: none; border: 0; min-width: 0; padding-left: 16px; }
  .site-nav.open .nav-dropdown__menu { display: flex; }
}
.article-hero-img { margin: 20px 0 8px; border-radius: 12px; overflow: hidden; }
.article-hero-img img { width: 100%; display: block; aspect-ratio: 1200/630; object-fit: cover; }
.news-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.answer-box { background: #EFF6FF; border-left: 4px solid #0057B8; border-radius: 8px; padding: 18px 22px; margin: 0 0 28px; }
.answer-box h2 { font-size: 20px; margin-bottom: 8px; }
.answer-box p { margin-bottom: 8px; }
.compare-table { width: 100%; border-collapse: collapse; margin: 12px 0 28px; font-size: 15px; }
.compare-table th, .compare-table td { border: 1px solid #E5E7EB; padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table thead th { background: #F8FAFC; }
@media (max-width: 768px) { .compare-table { font-size: 13px; } .compare-table th, .compare-table td { padding: 6px 8px; } }
/* full-width reading area (no phantom sidebar) */
.guide-body { max-width: 100%; }
.guide-body dl { margin: 0 0 28px; }
.guide-body dt { font-weight: 700; font-size: 17px; margin-top: 18px; color: #1A1A2E; }
.guide-body dd { margin: 6px 0 0; color: #374151; }
/* subscribe box */
.subscribe-box { margin: 32px 0; padding: 22px 26px; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; }
.subscribe-box h3 { margin-bottom: 6px; }
.subscribe-box p { font-size: 14px; color: #374151; margin-bottom: 14px; }
.subscribe-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-box input[type=email] { flex: 1 1 240px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 15px; }
.subscribe-box button { padding: 12px 22px; border: 0; border-radius: 8px; background: #0057B8; color: #fff; font-weight: 600; cursor: pointer; }
.subscribe-msg { margin-top: 10px; font-size: 14px; color: #16A34A; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag-chips a { padding: 5px 12px; border-radius: 999px; background: #F1F5F9; border: 1px solid #E2E8F0; font-size: 13px; color: #475569; text-decoration: none; }
.tag-chips a:hover { background: #EFF6FF; color: #0057B8; border-color: #BFDBFE; }
.toc-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.toc-bar a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; font-size: 13px; font-weight: 600; color: #374151; text-decoration: none; }
.toc-bar a:hover { border-color: #0057B8; color: #0057B8; }
.key-facts[id], .guide-body[id], h3[id], .sources-block[id] { scroll-margin-top: 84px; }
.hub-link { margin: 28px 0 8px; padding: 14px 18px; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 10px; }
.hub-link a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #0057B8; font-weight: 600; font-size: 15px; }
.hub-link a:hover { text-decoration: underline; }
.hub-link em { margin-left: auto; font-style: normal; }
.admin-bar .site-header { top: 32px; }
.breadcrumbs { font-size: 14px; margin-bottom: 20px; color: #6B7280; }
.breadcrumbs a { color: #0057B8; text-decoration: none; }
.breadcrumbs span { margin: 0 8px; }
