/* Strict, official look on top of the original "meliekei" theme.
   Palette: black text, white background, one accent (the theme's gold). */
:root {
    --ink: #0B0B0B;
    --muted: #5B5B5B;
    --line: #E4E0D8;
    --accent: #BD9C58;
    --accent-dark: #8C7035;
    --paper: #FFFFFF;
    --soft: #FAF8F4;
}

body { color: var(--ink); background: var(--paper); }
a { color: inherit; }
a:hover { color: var(--accent-dark); }

/* cards: same proportions everywhere, no broken images */
.news__item { height: 100%; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }
.news__item--img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.news__item--img a, .news__item--img img { display: block; width: 100%; height: 100%; }
.news__item--img img { object-fit: cover; height: 100% !important; transition: transform .4s ease; }
.news__item:hover .news__item--img img { transform: scale(1.03); }
/* placeholders for entries without a photo: theme art + dark veil + label */
.cover--ph { position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; gap: 4px;
    width: 100%; height: 100%; padding: 18px 20px; background: #2b2118 center / cover no-repeat; color: #fff;
    transition: transform .4s ease; }
.cover--ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); }
.news__item:hover .cover--ph { transform: scale(1.03); }
.cover--ph > span { position: relative; }
.ph__label { font-family: Lora, serif; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.ph__src { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.cover--ph-tech { background: radial-gradient(circle at 85% 15%, #3a5b8c 0, transparent 45%), linear-gradient(135deg, #0f1c2e, #1d3557); }
.cover--ph-anticorruption { background: radial-gradient(circle at 85% 15%, #8c7035 0, transparent 45%), linear-gradient(135deg, #141414, #2d2416); }
.cover--ph-tech::before, .cover--ph-anticorruption::before { background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.cover--ph-anticorruption .ph__label { color: #e6cf98; }
.news__item--data { font-size: 14px; color: var(--muted); letter-spacing: .02em; text-transform: none; }
.news__item--title, .news__item--title a { font-size: 19px; line-height: 1.35; font-weight: 600; text-decoration: none; }
.news__rubric { color: var(--accent-dark); font-weight: 600; }
.news__item--external .news__item--title a::after { content: " ↗"; color: var(--muted); font-weight: 400; }

/* section titles */
.section__title { font-size: 30px; margin-bottom: 30px; }
.section__title--row { display: flex; align-items: center; gap: 0; }
.section__title--row > span { flex: 1; }
.section__title--row a { font-size: 15px; font-family: Commissioner, sans-serif; text-decoration: none; color: var(--accent-dark); white-space: nowrap; }

/* lead news on the home page */
.home__lead .page__news--img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: 18px; }
.home__lead .page__news--img a { display: block; height: 100%; }
.home__lead .page__news--img img { width: 100%; height: 100%; object-fit: cover; }
.home__lead .ph__label { font-size: 30px; }
.home__lead .page__news--title a { text-decoration: none; }
.home__lead--text { color: var(--muted); font-size: 17px; line-height: 1.6; }
.news__list { list-style: none; padding: 0; margin: 0 0 20px; }
.news__list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news__list li .news__item--data { display: block; margin-bottom: 4px; }
.news__list li a { font-weight: 600; text-decoration: none; line-height: 1.4; }

/* rubric tabs */
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.rubrics__item { padding: 8px 16px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.rubrics__item--active, .rubrics__item:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* buttons */
.btn-strict { display: inline-block; padding: 10px 22px; background: var(--ink); color: #fff !important; text-decoration: none;
    border: 1px solid var(--ink); font-size: 15px; letter-spacing: .02em; }
.btn-strict:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-strict--ghost { background: transparent; color: var(--ink) !important; }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 40px; }
.pager__item { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); text-decoration: none; }
.pager__item--active { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* article */
.page__news--desc { font-size: 18px; line-height: 1.7; }
.page__news--desc img { max-width: 100%; height: auto; }
.page__news--desc iframe { max-width: 100%; }
.page__news--lead { font-size: 20px; line-height: 1.6; }
.page__news--img img { width: 100%; height: auto; }
.page__news--social { display: flex; align-items: center; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.news__social--wrap { display: flex; gap: 8px; }
.share { padding: 6px 12px; border: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.notice { padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--accent); margin-bottom: 20px; color: var(--muted); }
.block__title { font-size: 22px; margin: 36px 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.files { padding-left: 18px; }
.files li { margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.videos { display: grid; gap: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* search */
.search__big { display: flex; gap: 8px; margin-bottom: 30px; }
.search__big input { flex: 1; padding: 10px 14px; border: 1px solid var(--ink); font-size: 17px; }
.search__total, .empty { color: var(--muted); font-size: 17px; }

.footer__copy { margin-top: 24px; font-size: 13px; opacity: .7; }

@media (max-width: 991px) {
    .section__title { font-size: 24px; }
    .page__news--social { flex-wrap: wrap; }
}

.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto;
    display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(0,0,0,.12); font-size: 14px; }
.cookie-notice[hidden] { display: none; }

/* main menu "support" button */
.menu__support a { color: #fff !important; background: var(--accent-dark); padding: 6px 14px; }
.menu__support a:hover { background: var(--ink); }

/* notes catalog */
.notes__lead { font-size: 18px; color: var(--muted); max-width: 760px; margin-bottom: 24px; }
.notes__filter { display: flex; gap: 8px; margin-bottom: 14px; max-width: 640px; }
.notes__filter input { flex: 1; padding: 10px 14px; border: 1px solid var(--ink); font-size: 16px; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-bottom: 30px; }
.work { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 20px 22px; background: #fff; }
.work__title { font-size: 24px; margin: 0 0 4px; }
.work__title a { text-decoration: none; }
.work__author { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.work__author--big { font-size: 17px; margin-bottom: 20px; }
.work__files { list-style: none; padding: 0; margin: 0; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.file__name { flex: 1 1 200px; font-weight: 600; text-decoration: none; }
.file--pdf .file__name::before { content: "PDF"; display: inline-block; margin-right: 8px; padding: 1px 6px; font-size: 11px;
    font-weight: 700; color: #fff; background: #a3342b; vertical-align: 2px; }
.file__meta { font-size: 13px; color: var(--muted); }
.file__btn { padding: 4px 12px; border: 1px solid var(--ink); font-size: 14px; text-decoration: none; }
.file__btn:hover { background: var(--ink); color: #fff !important; }
.file audio { width: 100%; height: 36px; }
.notes__terms { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 20px 0; }

/* support */
.support-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    margin: 30px 0; padding: 22px 26px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.support-cta span { color: var(--muted); font-size: 15px; }
.btn-strict--gold { background: var(--accent-dark); border-color: var(--accent-dark); white-space: nowrap; }
.btn-strict--gold:hover { background: var(--ink); border-color: var(--ink); }
.support__lead { font-size: 20px; line-height: 1.6; }
.goal { margin: 26px 0; padding: 20px; border: 1px solid var(--line); }
.goal__bar { height: 12px; background: var(--soft); border: 1px solid var(--line); margin: 12px 0 8px; }
.goal__bar span { display: block; height: 100%; background: var(--accent); }
.goal__nums { color: var(--muted); }
.requisites { white-space: pre-wrap; font-family: inherit; font-size: 16px; padding: 16px 18px; background: var(--soft); border: 1px solid var(--line); }
.qr { position: sticky; top: 20px; text-align: center; padding: 22px; border: 1px solid var(--line); border-top: 3px solid #f14635; }
.qr__title { font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.qr img { width: 100%; max-width: 280px; }
.qr p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.patrons { columns: 2; padding-left: 18px; }
.support__thanks { font-family: Lora, serif; font-size: 22px; margin-top: 30px; }
@media (max-width: 575px) { .works { grid-template-columns: 1fr; } .patrons { columns: 1; } }

/* footer section menu: more items than the theme expected */
.footer__bottom .menu { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; list-style: none; }
.footer__bottom .menu li { margin: 0 !important; }
.footer__bottom .menu a { white-space: nowrap; }

/* texts of other media read on our site */
.credit { font-weight: 600; }
.credit a { color: var(--accent-dark); }
.source-line { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.source-line a { color: var(--ink); font-weight: 600; }

/* players from WordPress shortcodes and YouTube links */
.media-audio { display: block; width: 100%; max-width: 560px; margin: 8px 0 18px; }
.media-video { display: block; width: 100%; max-height: 520px; background: #000; margin: 8px 0 18px; }
.page__news--desc .video { margin: 8px 0 22px; max-width: 760px; }

/* videos in the catalog */
.work__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-bottom: 10px; }
.work__video { margin: 0; }
.work__video figcaption { font-size: 15px; margin-top: 8px; }
.work__video figcaption a { color: var(--accent-dark); white-space: nowrap; }
.work__more { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent-dark); text-decoration: none; }

.admin-edit { display: inline-block; margin-bottom: 14px; padding: 5px 12px; background: #fff3cd; border: 1px solid #e0c36a;
    color: #5c4500 !important; font-size: 14px; text-decoration: none; }

/* client-side search */
.search__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search__title { display: block; font-size: 19px; font-weight: 600; text-decoration: none; margin: 4px 0; }
.search__item p { color: var(--muted); margin: 0; }
.work[hidden] { display: none; }
