/*!
Theme Name: Middle Community
Author: Middle
Description: Independent community theme for WordPress. Built from scratch for user profiles, publishing and community features provided by Middle Core.
Version: 0.5.21
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: middle-community
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, community, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
/* 0.5.21 — Golden Archive archive page now groups cards by period with adaptive period chips and cleaner internal navigation */
/* 0.5.19 — Golden Archive alignment + complete mobile adaptation for homepage and archive cards */
/* 0.5.18 — compact Golden Archive width and proportions on wide desktop screens */
/* 0.5.15 — Golden Archive: seeded historical photo rubric, homepage showcase and dedicated archive treatment matching the current photo page */
*/
/* 0.3.80 — hero photo lifted, service overlap restored, 5-card reader and app-style mobile tab bar */
/* 0.3.79 — full panorama hero without side photos, fixed service label wrapping and rebuilt mobile layout/navigation */
/* 0.3.78 — hero photo rail, stable 1+4 city news, redesigned attention and populated footer */


/* 0.3.77 — full hero photo, stable city news, redesigned reader block, large regional news and homepage footer */
/* 0.3.76 — larger animated homepage, improved hero/weather/opportunity cards and sticky header/menu */
/* 0.3.75 — approved mockup geometry rebuilt: full-bleed hero, adaptive 1180-1760px portal canvas, larger cards and typography */
/* 0.3.74 — exact mockup proportions: fixed portal width, corrected news grid and density */
/* 0.3.73 — exact homepage rebuild against approved mockup: full-width shell, 8 service tiles, news/sidebar grid, compact sections */
/* 0.3.72 — homepage rebuilt to closely follow the approved city-portal mockup; header icon/logo preserved */
/* 0.3.70 — user-submitted organizations in the publication modal */
/* 0.3.68 — header drawer categories now mirror Appearance → Main and categories */
/* 0.3.67 — cookie notice updated for Yandex Metrica + Middle Analytics */
/* 0.3.66 — custom dimensional service icons and smaller floating circles */
/* 0.3.65 — floating circular quick actions with animated orbit dots */
/* 0.3.61 — reader section is displayed consistently as «Чепецк без прикрас» on the homepage */
/* 0.3.63 — calmer dark “Чепецк без прикрас”, new utility icons and custom no-photo state */
/* 0.3.62 — dark “Чепецк без прикрас” showcase and colorful “Полезно знать” icons */
/* 0.3.60 — reader quick link replaces homepage outages card; featured reader block styling refresh */
/* 0.3.55 — publication uses the modal everywhere; standalone page retired */
/* 0.3.54 — quick advert sections fill the homepage card */
/* 0.3.53 — system notifications replace private chat */
/* 0.3.52 — informational Metrica notice with profile-only analytics controls */
/* 0.3.51 — reset legacy “Только необходимые” choice; preserve new explicit opt-outs */
/* 0.3.50 — Yandex Metrica immediate counting with informed opt-out */
/* 0.3.49 — separate mandatory publication consents and category-aware dissemination consent */
/* 0.3.48 — admin-controlled publication rubrics, field labels, hints and optional fields */
/* 0.3.42 — public account nicknames and live message badges */
/* 0.3.41 — chat-based private phone flow and UI cleanup */
/* 0.3.35 — privacy/legal pages integration, explicit consents and cookie controls */

/* 0.3.34 — featured transport block + compact header weather */

/* 0.3.33 — integration point for the Middle transport and weather widget */


/* 0.3.32 — editorial rubrics: useful, home/garden/recipes, regional leisure */
.middle-home-editorial-rubrics{
    margin:34px 0 0;
    padding:28px;
    border:1px solid var(--middle-border, #e7e9ee);
    border-radius:28px;
    background:var(--middle-surface, #fff);
    box-shadow:0 18px 45px rgba(28,35,48,.06);
}
.middle-home-editorial-rubrics__head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}
.middle-home-editorial-rubrics__head h2{margin:4px 0 0;font-size:clamp(1.65rem,3vw,2.45rem);line-height:1.08}
.middle-home-editorial-rubrics__head p{max-width:620px;margin:0;color:var(--middle-muted, #697386);font-size:.98rem;line-height:1.55}
.middle-home-editorial-rubrics__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.middle-home-rubric-card{
    min-width:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--middle-border, #e7e9ee);
    border-radius:22px;
    background:var(--middle-bg, #fff);
}
.middle-home-rubric-card__top{padding:20px 20px 16px;background:linear-gradient(135deg,rgba(32,96,255,.08),rgba(255,255,255,0))}
.middle-home-rubric-card__icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:14px;border-radius:15px;background:var(--middle-accent, #2867f0);color:#fff;font-size:1.35rem;box-shadow:0 10px 24px rgba(40,103,240,.22)}
.middle-home-rubric-card__eyebrow{display:block;margin-bottom:6px;color:var(--middle-accent, #2867f0);font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.middle-home-rubric-card h3{margin:0;font-size:1.25rem;line-height:1.18}
.middle-home-rubric-card__items{display:grid;gap:0;padding:0 20px}
.middle-home-rubric-card__item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:15px 0;border-top:1px solid var(--middle-border, #eceef2);color:inherit;text-decoration:none}
.middle-home-rubric-card__item:first-child{border-top:0}
.middle-home-rubric-card__item strong{display:block;font-size:.95rem;line-height:1.35}
.middle-home-rubric-card__item time{display:block;margin-top:5px;color:var(--middle-muted, #7a8494);font-size:.78rem}
.middle-home-rubric-card__item span:last-child{font-size:1.1rem;transition:transform .2s ease}
.middle-home-rubric-card__item:hover span:last-child{transform:translateX(4px)}
.middle-home-rubric-card__empty{padding:18px 20px;color:var(--middle-muted, #7a8494);font-size:.9rem}
.middle-home-rubric-card__footer{margin-top:auto;padding:15px 20px;border-top:1px solid var(--middle-border, #eceef2)}
.middle-home-rubric-card__footer a{display:inline-flex;align-items:center;gap:8px;color:var(--middle-accent, #2867f0);font-weight:800;text-decoration:none}
@media (max-width:900px){.middle-home-editorial-rubrics__grid{grid-template-columns:1fr}.middle-home-editorial-rubrics__head{align-items:flex-start;flex-direction:column}}
@media (max-width:640px){.middle-home-editorial-rubrics{margin-top:24px;padding:18px;border-radius:22px}.middle-home-rubric-card{border-radius:18px}}

/* 0.3.45 — public phone reveal choice */
.middle-publish-phone-public-choice{display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding:11px 12px;border:1px solid var(--middle-border,#e1e5ea);border-radius:12px;background:var(--middle-bg-soft,#f8f6f2);font-size:12px;line-height:1.45}
.middle-publish-phone-public-choice input{margin-top:2px;flex:0 0 auto}
.middle-publish-phone-public-choice span{display:block}


/* 0.3.46 — publication form spacing around public-phone choice */
.middle-publish-phone-public-choice{
    margin:2px 0 20px;
}
.middle-publish-phone-public-choice + .middle-publish-ad-properties{
    margin-top:2px;
    padding-top:2px;
}
.middle-publish-ad-properties .middle-publish-field{
    margin-bottom:16px;
}
@media (max-width:560px){
    .middle-publish-phone-public-choice{margin-bottom:18px;padding:12px 13px}
    .middle-publish-phone-public-choice + .middle-publish-ad-properties{margin-top:0}
}

/* 0.3.47 — compact publication modal; all publication confirmations are presented under one visible checkbox. */