/*
Theme Name: HerbyGmin
Theme URI: https://herbygmin.pl/
Author: Digital Projects
Description: Lekki motyw katalogu herbów przygotowany dla HerbyGmin Core.
Version: 0.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: herbygmin
*/
:root{--hg-ink:#17202b;--hg-muted:#66717d;--hg-line:#e2e7ec;--hg-paper:#fff;--hg-bg:#f4f6f8;--hg-red:#941f36;--hg-red-dark:#741327;--hg-navy:#142e4a;--hg-radius:16px;--hg-shadow:0 10px 30px rgba(20,46,74,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--hg-bg);color:var(--hg-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}img{max-width:100%;height:auto}a{color:var(--hg-red);text-decoration-thickness:1px;text-underline-offset:3px}.hg-container{width:min(1160px,calc(100% - 32px));margin-inline:auto}.hg-skip{position:absolute;left:-9999px}.hg-skip:focus{left:16px;top:16px;z-index:99;background:#fff;padding:10px}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--hg-line);backdrop-filter:blur(10px)}.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;color:var(--hg-navy);font-weight:800;font-size:21px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:38px;height:44px;color:#fff;background:var(--hg-red);border-radius:18px 18px 22px 22px;font-size:17px}.site-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0}.site-nav a{color:var(--hg-ink);font-weight:650;text-decoration:none}.site-main{min-height:65vh}.hero{padding:76px 0 66px;background:linear-gradient(145deg,#fff 0%,#f3f5f8 55%,#edf0f5 100%);border-bottom:1px solid var(--hg-line)}.hero-inner{text-align:center;max-width:820px}.eyebrow{color:var(--hg-red);font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:800}.hero h1{font-size:clamp(36px,6vw,66px);line-height:1.06;letter-spacing:-.045em;margin:13px 0 18px}.hero p{font-size:19px;color:var(--hg-muted);max-width:660px;margin:0 auto 30px}.hg-search{position:relative;max-width:680px;margin:auto}.hg-search input{width:100%;height:62px;border:1px solid #cfd6dd;border-radius:14px;padding:0 58px 0 20px;font:inherit;font-size:17px;background:#fff;box-shadow:var(--hg-shadow)}.hg-search button{position:absolute;right:7px;top:7px;width:48px;height:48px;border:0;border-radius:10px;background:var(--hg-red);color:#fff;font-size:19px}.hg-results{position:absolute;top:68px;left:0;right:0;z-index:30;background:#fff;border:1px solid var(--hg-line);border-radius:12px;box-shadow:var(--hg-shadow);text-align:left;overflow:hidden}.hg-results:empty{display:none}.hg-result{display:flex;align-items:center;gap:12px;padding:11px 14px;color:var(--hg-ink);text-decoration:none;border-bottom:1px solid var(--hg-line)}.hg-result:last-child{border:0}.hg-result:hover{background:#f8f9fb}.hg-result img{width:34px;height:40px;object-fit:contain}.section{padding:58px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-heading h2{font-size:30px;line-height:1.2;margin:0}.section-heading p{color:var(--hg-muted);margin:5px 0 0}.hg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.hg-card{display:block;background:#fff;border:1px solid var(--hg-line);border-radius:var(--hg-radius);padding:22px;color:var(--hg-ink);text-decoration:none;box-shadow:0 4px 18px rgba(20,46,74,.035);transition:.18s}.hg-card:hover{transform:translateY(-2px);border-color:#c8b2b8;box-shadow:var(--hg-shadow)}.hg-card h3{font-size:18px;margin:0 0 4px}.hg-card p{color:var(--hg-muted);margin:0;font-size:14px}.hg-card-image{height:140px;display:grid;place-items:center;margin-bottom:16px}.hg-card-image img{max-height:130px;width:auto}.hg-crest-placeholder{display:grid;place-items:center;min-height:240px;border:1px dashed #cbd2da;border-radius:14px;background:#f8f9fa;color:var(--hg-muted)}.single-hero{padding:38px 0 22px}.breadcrumbs{font-size:14px;color:var(--hg-muted);margin-bottom:20px}.breadcrumbs a{color:var(--hg-muted)}.unit-layout{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:46px;align-items:start}.crest-panel,.content-panel{background:#fff;border:1px solid var(--hg-line);border-radius:var(--hg-radius);padding:28px;box-shadow:var(--hg-shadow)}.crest-panel{text-align:center}.crest-panel .hg-crest-image{max-height:360px;width:auto}.status{display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:7px 11px;border-radius:99px;background:#eef1f4;color:#52606d;font-size:13px;font-weight:700}.status.official,.status.verified{background:#e5f5e9;color:#207139}.unit-title{font-size:clamp(32px,5vw,52px);line-height:1.08;letter-spacing:-.035em;margin:0 0 18px}.unit-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.unit-meta div{padding:13px 15px;background:#f7f8fa;border-radius:10px}.unit-meta span{display:block;color:var(--hg-muted);font-size:12px;text-transform:uppercase;letter-spacing:.07em}.unit-meta strong{display:block;margin-top:3px}.hg-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:10px;background:var(--hg-red);color:#fff;text-decoration:none;font-weight:750}.hg-button:hover{background:var(--hg-red-dark)}.hg-button.secondary{background:#eef1f4;color:var(--hg-ink)}.notice{padding:15px 17px;border-left:4px solid #d39a28;background:#fff8e9;border-radius:8px}.cta{padding:28px;background:var(--hg-navy);color:#fff;border-radius:var(--hg-radius);display:flex;align-items:center;justify-content:space-between;gap:24px}.cta h2{margin:0 0 5px}.cta p{margin:0;color:#ced8e2}.cta .hg-button{background:#fff;color:var(--hg-navy)}.archive-header{padding:48px 0 24px}.archive-header h1{font-size:44px;margin:0}.pagination{margin-top:32px}.site-footer{margin-top:60px;padding:40px 0;background:#111e2c;color:#c9d2dc}.footer-inner{display:flex;justify-content:space-between;gap:30px}.site-footer a{color:#fff}.site-footer p{margin:4px 0}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.hg-grid{grid-template-columns:repeat(2,1fr)}.unit-layout{grid-template-columns:1fr}.site-nav{display:none}.cta{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.hero{padding:52px 0}.hero p{font-size:17px}.hg-grid{grid-template-columns:1fr}.unit-meta{grid-template-columns:1fr}.crest-panel,.content-panel{padding:20px}.footer-inner{flex-direction:column}.header-inner{min-height:64px}}
.download-box{margin-top:22px;padding-top:20px;border-top:1px solid var(--hg-line)}.download-box h2{font-size:20px;margin:0 0 12px}.download-actions{display:flex;flex-wrap:wrap;gap:10px}.source-box{margin-top:22px;padding:16px;background:#f7f8fa;border-radius:10px}.source-box p{margin:4px 0}.source-box small{color:var(--hg-muted)}
.hg-region-card{display:flex;align-items:center;gap:15px;padding:20px;background:#fff;border:1px solid var(--hg-line);border-radius:var(--hg-radius);color:var(--hg-ink);text-decoration:none;box-shadow:0 4px 18px rgba(20,46,74,.035)}.hg-region-card:hover{border-color:#c8b2b8;box-shadow:var(--hg-shadow)}.hg-region-card .brand-mark{flex:0 0 auto}.hg-region-card h3{margin:0;font-size:17px}.hg-region-card p{margin:3px 0 0;color:var(--hg-muted);font-size:13px}.hg-region-units{margin-top:42px}
