/*
Theme Name: Miasto Portal
Theme URI: https://example.org/miasto-portal
Author: Miasto Portal
Description: Responsywny motyw lokalnego portalu informacyjnego dla WordPress Multisite.
Version: 1.4.3
Requires PHP: 8.0
Text Domain: miasto-portal-theme
*/
:root{--navy:#14233d;--navy2:#223e66;--blue:#1460dc;--red:#e52b39;--text:#202938;--muted:#647184;--border:#e7eaf0;--bg:#f6f8fb;--card:#fff;--radius:13px}*{box-sizing:border-box}body{margin:0;font:16px/1.65 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.container{max-width:1220px;margin:auto;padding:0 20px}.mpc-topline{background:var(--navy);color:#fff;font-size:12px}.mpc-topline .container{display:flex;align-items:center;gap:20px;min-height:36px;flex-wrap:wrap}.mpc-topline a{color:#fff}.mpc-weather{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:7px 0}.mpc-weather-metric{white-space:nowrap}.mpc-weather-metric>span{color:#bdd0f4}.mpc-weather-metric strong{margin-left:3px;color:white}.mpc-city{white-space:nowrap}.mpc-date{margin-left:auto}.site-header{background:#fff;border-bottom:1px solid var(--border)}.header-inner{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:23px 20px}.branding h1,.branding p{margin:0}.brand-name{font-size:36px;line-height:1.1;letter-spacing:-1.5px;font-weight:850;color:var(--navy)}.brand-name span{color:var(--red)}.tagline{color:var(--muted);font-size:13px}.header-right{font-size:14px;text-align:right}.header-right strong{display:block;color:var(--navy)}.site-nav{background:var(--navy2)}.nav-inner{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.site-nav a{display:inline-flex;align-items:center;color:white;padding:12px 17px;font-size:14px;font-weight:650}.site-nav a:hover{background:#ffffff22;text-decoration:none}.top-ad-wrap{margin-top:24px;margin-bottom:24px}.mpc-ad{text-align:center}.mpc-ad img{display:block;width:100%;height:auto;max-height:270px;object-fit:contain;border-radius:9px}.mpc-ad-label{display:block;font-size:10px;text-align:right;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.mpc-ad-empty{border:1px dashed #cbd6e8;border-radius:12px;display:grid;place-items:center;min-height:95px;background:#fff;color:#7689a5;font-size:13px}.mpc-ad-empty a{color:#546988}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 16px}.section-head h2{font-size:23px;margin:0;color:var(--navy)}.section-head h2:before{content:'';display:inline-block;background:var(--red);height:23px;width:5px;margin-right:10px;border-radius:3px;vertical-align:-4px}.section-head a{font-size:13px}.hero-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-top:24px}.hero-main{min-height:390px}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:16px}.news-feature{position:relative;display:flex;align-items:flex-end;min-height:190px;background:#1c2940;border-radius:var(--radius);overflow:hidden;color:#fff}.news-feature img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.news-feature:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(1,14,33,.88))}.news-feature-content{position:relative;z-index:1;padding:25px}.news-feature h2,.news-feature h3{font-size:27px;line-height:1.2;margin:8px 0;color:#fff}.hero-side .news-feature h3{font-size:19px}.news-feature a{color:#fff}.category-pill{display:inline-block;background:var(--red);border-radius:4px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:3px 9px}.news-feature small{color:#e4e8ee}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:28px;align-items:start}.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.news-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.news-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.news-card-body{padding:18px}.news-card h3{font-size:19px;line-height:1.35;margin:9px 0}.news-card h3 a{color:var(--navy)}.news-card p{color:var(--muted);font-size:14px;margin:0}.post-meta{color:var(--muted);font-size:12px}.sidebar-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:20px}.sidebar-section h3{margin:0 0 14px;font-size:18px;color:var(--navy)}.sidebar-section ul{list-style:none;padding:0;margin:0}.sidebar-section li{padding:11px 0;border-bottom:1px solid var(--border)}.sidebar-section li:last-child{border:0}.sidebar-section a{color:var(--text)}.single-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;margin-top:30px}.article{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px}.article h1{font-size:clamp(29px,3.8vw,43px);line-height:1.18;color:var(--navy);margin:12px 0}.article .lead{font-size:19px;color:#4d5d70}.article .featured{width:100%;object-fit:cover;aspect-ratio:16/9;border-radius:10px;margin:20px 0}.article .entry-content{font-size:17px}.article .entry-content p{margin-bottom:21px}.article .entry-content h2{line-height:1.2;font-size:25px}.article .entry-content a{text-decoration:underline}.figure-caption{color:var(--muted);font-size:12px;margin-top:-12px}.single-related{margin-top:28px}.pagination{display:flex;justify-content:center;padding:30px;gap:10px}.pagination a,.pagination span{border:1px solid var(--border);background:#fff;padding:6px 13px;border-radius:6px}.site-footer{background:var(--navy);margin-top:54px;color:#c5d4e8}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px;padding:45px 20px}.site-footer h3{color:white;margin:0 0 8px}.site-footer a{color:#e1eaf6}.site-footer ul{list-style:none;padding:0;margin:0}.footer-bottom{border-top:1px solid #ffffff26;padding:15px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px}.mpc-ai-badge img{max-width:250px}.mpc-ad-form{display:grid;gap:14px;max-width:600px}.mpc-ad-form label{display:grid;gap:5px;font-size:14px;font-weight:650}.mpc-ad-form input,.mpc-ad-form select,.mpc-ad-form textarea{font:inherit;padding:12px;border:1px solid #ccd6e2;border-radius:8px;width:100%}.mpc-ad-form .mpc-check{display:block;font-weight:400}.mpc-ad-form .mpc-check input{width:auto}.mpc-ad-form button{background:var(--blue);color:white;border:0;border-radius:8px;padding:13px;font-weight:800;cursor:pointer}.mpc-success{padding:12px;border:1px solid #a4d5b3;border-radius:8px;background:#e4fae8}.footer-links{display:flex;flex-wrap:wrap;gap:16px}.entry-content blockquote{border-left:4px solid var(--blue);padding-left:18px;color:#53627a}.archive-title{margin:28px 0 18px;color:var(--navy)}.empty-news{padding:24px;background:#fff;border-radius:var(--radius)}.skip-link{position:absolute;left:-9999px;top:0}.skip-link:focus{left:15px;top:10px;background:white;z-index:99;padding:10px}
@media(max-width:900px){.hero-layout,.content-grid,.single-wrap{grid-template-columns:1fr}.hero-main{min-height:300px}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sidebar-section{margin:0}.mpc-date{margin-left:0}.header-right{display:none}}
@media(max-width:600px){.container{padding:0 14px}.header-inner{padding:18px 14px}.brand-name{font-size:28px}.hero-layout{margin-top:12px}.hero-side,.news-grid,.footer-grid,.sidebar{grid-template-columns:1fr}.news-feature{min-height:230px}.hero-side .news-feature{min-height:180px}.news-feature h2{font-size:23px}.site-nav a{padding:10px;font-size:12px}.mpc-topline .container{overflow-x:auto;flex-wrap:nowrap}.mpc-weather{flex-wrap:nowrap;min-width:max-content;font-size:11px}.article{padding:19px}.footer-grid{padding:30px 14px}.footer-bottom{align-items:flex-start}.section-head h2{font-size:19px}}

/* Logo przesłane w Personalizacja > Tożsamość witryny */
.site-header .custom-logo-link{display:inline-flex;align-items:center;max-width:100%}.site-header .custom-logo{display:block;width:auto;height:auto;max-height:92px;max-width:min(100%,360px);object-fit:contain}@media(max-width:640px){.site-header .custom-logo{max-height:64px;max-width:240px}}

/* Events and parties: mobile-first cards, filters and links */
.mpc-home-events{margin-top:36px}.mpc-events h2{font-size:25px;color:var(--navy)}
.mpc-event-filters{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 22px}
.mpc-event-filters a{border-radius:999px;background:white;border:1px solid #d8e0ea;color:#203550;padding:9px 18px;font-weight:700;font-size:14px}
.mpc-event-filters a.active,.mpc-event-filters a:hover{background:var(--navy2);border-color:var(--navy2);color:#fff;text-decoration:none}
.mpc-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mpc-event-card{overflow:hidden;background:white;border:1px solid var(--border);border-radius:12px}
.mpc-event-card img,.mpc-event-image-placeholder{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.mpc-event-image-placeholder{background:linear-gradient(120deg,#284568,#5079a6);color:white;display:grid;place-items:center;font-weight:700}
.mpc-event-card-content{padding:16px}.mpc-event-date{font-size:13px;font-weight:800;color:#ba3341}
.mpc-event-card h3{font-size:18px;line-height:1.35;margin:8px 0}.mpc-event-card h3 a{color:var(--navy)}.mpc-event-card p{font-size:13px;color:var(--muted)}
.mpc-event-empty{grid-column:1/-1;padding:25px;border-radius:12px;background:white}
.mpc-ticket-link{display:inline-block;background:var(--blue);padding:12px 24px;color:white;border-radius:8px;font-weight:700}
@media(max-width:900px){.mpc-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mpc-event-grid{grid-template-columns:1fr}}

/* Navigation: collapsed additional categories, supports native WordPress dropdowns. */
.site-nav .nav-inner{position:relative}.mpc-more{position:relative;color:white}.mpc-more summary{list-style:none;padding:12px 17px;cursor:pointer;font-size:14px;font-weight:650}.mpc-more summary::-webkit-details-marker{display:none}.mpc-more summary:hover,.mpc-more[open]>summary{background:#ffffff22}.mpc-more-links{position:absolute;top:100%;left:0;min-width:225px;background:var(--navy2);box-shadow:0 12px 25px #0004;z-index:30;border-radius:0 0 9px 9px;display:flex;flex-direction:column}.mpc-more-links a{padding:10px 15px;white-space:nowrap}.mpc-primary-list{display:flex;flex-wrap:wrap;gap:0;align-items:center;list-style:none;margin:0;padding:0}.mpc-primary-list li{position:relative}.mpc-primary-list .sub-menu{display:none;position:absolute;top:100%;left:0;background:var(--navy2);z-index:30;min-width:210px;padding:0;list-style:none;box-shadow:0 12px 25px #0003}.mpc-primary-list li:hover>.sub-menu,.mpc-primary-list li:focus-within>.sub-menu{display:block}.mpc-primary-list .sub-menu li a{width:100%}
@media(max-width:650px){.mpc-more-links{left:auto;right:0}.mpc-primary-list .sub-menu{position:static;box-shadow:none}}

/* v1.5 — professional single news layout */
.mpt-breadcrumb{display:flex;gap:10px;color:#77859a;font-size:13px;margin-bottom:20px;flex-wrap:wrap}.mpt-breadcrumb a{color:#53657c}
.mpt-article-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:#6b7b90;font-size:13px;margin:12px 0 18px}
.mpt-share{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0 20px;font-size:13px}.mpt-share a,.mpt-share button{background:#f0f4f9;color:#1d3857;border:1px solid #dce5f0;padding:8px 14px;border-radius:8px;font:inherit;cursor:pointer;text-decoration:none}.mpt-share a:hover,.mpt-share button:hover{background:#e5edf6}
.mpt-article-figure{margin:0 0 23px}.mpt-article-figure .featured{margin:0;width:100%;aspect-ratio:16/9;object-fit:cover}.mpt-article-figure .figure-caption{margin:6px 0 0}
.article .entry-content>p:first-child{font-size:19px;line-height:1.7;font-weight:550;color:#263951}
.mpt-article-ad{margin:25px 0}.mpt-ai-note{margin-top:24px;padding:12px 15px;border-left:3px solid #a3b4c5;background:#f4f7fa;color:#506278;font-size:13px}
.mpt-correction{margin:28px 0;border:1px solid #d9e3ef;border-radius:12px;padding:15px 18px;background:#f9fbfd}.mpt-correction summary{cursor:pointer;font-weight:750;color:#1c3d60}.mpt-correction form{display:grid;gap:12px;max-width:560px;padding:16px 0}.mpt-correction label{display:grid;gap:5px;font-size:13px}.mpt-correction textarea,.mpt-correction input{width:100%;border:1px solid #bfcddd;border-radius:8px;padding:11px;font:inherit}.mpt-correction button{background:var(--navy2);color:white;border:0;padding:12px 17px;border-radius:8px;cursor:pointer;width:max-content}.mpt-trap{display:none}.mpt-feedback-notice{color:#206a38}
.mpt-related,.mpt-article-events{margin-top:34px;border-top:1px solid #e4eaf0;padding-top:20px}.mpt-related h2,.mpt-article-events h2{color:var(--navy);font-size:23px}.mpt-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mpt-related-link{display:flex;gap:13px;align-items:center;background:#f6f9fc;border:1px solid #e1e8ee;border-radius:10px;padding:10px;font-weight:700;color:#1c344d;font-size:13px}.mpt-related-link img{width:88px;height:66px;object-fit:cover;border-radius:6px;flex-shrink:0}
.mpt-article-events .mpc-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mpt-article-events .mpc-event-filters{display:none}
@media(max-width:650px){.mpt-related-grid,.mpt-article-events .mpc-event-grid{grid-template-columns:1fr}.mpt-related-link img{width:76px;height:62px}}
