/* Local-only differences. The original visual system is preserved in minified.css. */
:root {
  color-scheme: light;
  --pernik-yellow: #ffcc00;
  --pernik-ink: #172c40;
  --pernik-accent-ink: #806300;
  --bg: #f7f7f4;
  --line: #e7e5da;
  --sofia-yellow: var(--pernik-yellow);
  --sofia-flag: #fff0a6;
  --sofia-blue: var(--pernik-accent-ink);
}
main, .hero.hero-scrolled::before {
  background: linear-gradient(180deg, #fff9df 0%, var(--bg) 100%);
}
.site-coa-bg { top: -65px; left: -75px; width: 355px; opacity: .11; }
.hero.hero-scrolled::after {
  background: url('/img/brand/pernik-crest.svg') -75px -65px / 355px auto no-repeat;
  opacity: .11;
}
.hero-statue { width: 64px; height: 70px; object-fit: contain; }
.logo h1 span {
  color: var(--pernik-ink);
  background: var(--pernik-yellow);
  border-radius: 5px;
  padding: 0 5px 2px;
}
.statue-tool-img { height: auto; max-width: 540px; display: block; margin: 24px auto 0; }
.statue-row-col .feature-body a { color: var(--pernik-accent-ink); }
.statue-row-col .feature-body a:hover { color: var(--pernik-ink); }
.statue-row-col .feature-body .author-portrait { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.author-portrait-link { display: block; }
.author-name { margin: 20px 0 12px; font-size: 1.4rem; color: var(--pernik-ink); }
.author-website { display: inline-flex; gap: 8px; align-items: center; }
.community-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 36px; margin: 28px 0 0; padding: 32px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.community-logo { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 130px; box-sizing: border-box; background: var(--pernik-ink); border-radius: 12px; }
.community-logo img { display: block; width: 100%; height: auto; }
.community-eyebrow { color: var(--pernik-accent-ink); font-size: 14px; font-weight: 700; }
.community-copy h3 { font-size: 26px; margin: 6px 0 16px; color: var(--pernik-ink); }
.community-copy p { margin: 10px 0; line-height: 1.55; max-width: 900px; }
.community-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.community-links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; }
.community-links a:first-child { background: var(--pernik-yellow); border-color: var(--pernik-yellow); color: var(--pernik-ink); }
.community-links a:hover { background: #fff3bd; border-color: var(--pernik-yellow); }
@media (max-width: 600px) {
  .community-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .community-logo { width: 220px; min-height: 110px; }
  .community-copy h3 { font-size: 24px; }
}
.hero-chips a:hover { border-color: var(--pernik-yellow); background: #fff9df; }
.hero-chips a.is-active { background: var(--pernik-yellow); border-color: var(--pernik-yellow); color: var(--pernik-ink); }
.bg-linear, .feature-card.bg-white, .feature-card.bg-linear { background: linear-gradient(135deg, #fff, #fffbeb); }
.bg-linear2, .feature-card.bg-linear2 { background: linear-gradient(180deg, #fff, #fffdf6); }
.bg-linear3, .feature-card.bg-linear3, .feature-card.feature-blue-light { background: linear-gradient(180deg, #fff5ca, #fff); }
.bg-sofia-blue, .bg-sofia-yellow { background: linear-gradient(180deg, var(--pernik-yellow), #ffe680); }
.feature-card.bg-sofia-blue {
  color: var(--pernik-ink);
  --text-dark: var(--pernik-ink);
  --text-primary: var(--pernik-ink);
  --text-muted: #5f5639;
  --text-secondary: #5f5639;
  --border-color: #c9a526;
  --row-border: #ddbd4d;
  --row-hover: #ffffff40;
}
.feature-card.bg-sofia-blue .feature-title { color: var(--pernik-ink); }
.bg-sofia-sky { background: linear-gradient(145deg, #fff8d8, #fff); }
.gtfs-alert-card { border-left-color: var(--pernik-yellow); }
.sb-locate-btn { color: var(--pernik-ink); border-color: #dfd5ac; }
.sb-locate-btn:hover { background: #fff3bd; border-color: var(--pernik-yellow); }
.site-stripe > span { background: var(--pernik-yellow); }
.charging-row-pernik { grid-template-columns: 1fr; }
@media (min-width: 901px) {
  .top-rows > .transport-row-pernik .tools { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
.pernik-transit { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 140px; }
.pernik-transit .feature-title { margin-top: 0; }
.pernik-transit-copy p { margin: 8px 0; }
.pernik-transit-copy p:last-child { color: #68717c; font-size: 16px; }
.pernik-transit-image { flex: none; width: 140px; height: 140px; object-fit: contain; }
@media (max-width: 600px) {
  .pernik-transit { gap: 12px; min-height: 150px; }
  .pernik-transit-image { width: 80px; height: 80px; }
}
[hidden] { display: none !important; }
#offline-badge {
  position: fixed; z-index: 1100; right: 18px; bottom: 18px;
  display: flex; gap: 8px; align-items: center; padding: 10px 15px;
  background: #fff; color: #344b6a; border: 1px solid #cbd9e9; border-radius: 24px;
  box-shadow: 0 3px 16px #26466f15; font-size: 14px; cursor: pointer;
}
#offline-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pernik-yellow); }
#offline-badge:hover { background: #fff9df; }
#offline-info { width: min(480px, calc(100vw - 40px)); box-sizing: border-box; padding: 30px; border: 1px solid #d6e1ee; border-radius: 20px; color: #1d2d3d; box-shadow: 0 20px 100px #20395244; }
#offline-info::backdrop { background: #182a4055; backdrop-filter: blur(3px); }
#offline-info h2 { margin-top: 0; font-size: 26px; }
#offline-info p { line-height: 1.5; }
#offline-info button { padding: 10px 18px; border: 0; border-radius: 9px; background: var(--pernik-yellow); color: var(--pernik-ink); cursor: pointer; font-weight: 600; }
.offline-section-note { color: #61738a; font-size: 13px; line-height: 1.4; margin: 0 0 12px; }
.offline-project-copy { line-height: 1.6; }
:focus-visible { outline: 3px solid var(--pernik-accent-ink); outline-offset: 3px; }
@media (max-width: 900px) { .hero-statue { width: 48px; height: 62px; } }
@media (max-width: 600px) { #offline-badge { right: 10px; bottom: 12px; padding: 8px 12px; font-size: 12px; } }

/* Local modules replace the reference dashboard's fixed-size panels. */
.tools.split-row-reverse:has(> #e-services[data-pernik="true"]) { grid-template-columns: 1fr; }
.tools.split-row-reverse > #e-services[data-pernik="true"] { order: -1; }
.pernik-section { margin: 28px 0; }
.pernik-site-search { margin: 28px 0; }
.pernik-site-search > input { margin-top: 8px; max-width: 100%; }
.pernik-site-results { display: grid; gap: 0; max-height: 400px; overflow-y: auto; margin-top: 18px; }
.pernik-site-results > a { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--pernik-ink); }
.pernik-site-results > a:hover { background: #fff7d5; }
.pernik-gas-icon { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; font-size: 48px; color: #bd7100; background: #fff3ca; border-radius: 14px; }
.offline-section-note { background: #fffae8; border: 1px solid #eadca5; padding: 8px 12px; border-radius: 8px; }

/* Footer: author and project, Krakra and sources, then Rotary Pernik. */
.statue-row.pernik-footer-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 30px; }
.pernik-footer-panels > .footer-panel { min-width: 0; }
.pernik-footer-panels .statue-row-col h3 { margin: 24px 0 14px; }
.pernik-footer-panels .statue-row-author > h3 { margin-top: 0; }
.pernik-footer-panels .statue-row-col .feature-body { font-size: 16px; line-height: 1.6; }
.pernik-footer-panels .feature-body p { margin: 0 0 16px; }
.pernik-footer-panels .statue-row-project, .pernik-footer-panels .statue-row-feedback { margin-top: 30px; }
.pernik-footer-panels .statue-tool-img { width: min(100%, 270px); height: auto; margin: 0 auto 18px; }
.pernik-footer-panels .statue-row-sources > h3 { margin-top: 0; }
.pernik-footer-panels .statue-row-col .feature-body .author-portrait { max-width: 280px; }
#rotary-pernik.footer-rotary { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin: 0; padding: 24px; background: #fffdf5; border-radius: 14px; }
.footer-rotary .community-logo { width: 100%; min-height: 120px; padding: 22px; }
.footer-rotary .community-logo img { max-width: 240px; }
.footer-rotary .community-copy h3 { font-size: 25px; }
.footer-rotary .community-copy p { font-size: 16px; line-height: 1.6; }
.footer-rotary .community-links { flex-direction: column; gap: 10px; }
.footer-rotary .community-links a { text-align: center; padding: 11px; }
.pernik-footer-panels a { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .statue-row.pernik-footer-panels { gap: 24px; padding: 24px; }
  #rotary-pernik.footer-rotary { padding: 18px; }
}
@media (max-width: 900px) {
  .statue-row.pernik-footer-panels { grid-template-columns: 1fr; gap: 36px; }
  .pernik-footer-panels .statue-tool-img { margin-left: 0; }
  #rotary-pernik.footer-rotary { max-width: 100%; }
  .footer-rotary .community-logo { max-width: 300px; }
}
