/* Scoped compact tiles and equal-height service card layout. */
.awm-service-hero-main-row { border-bottom: 0 !important; }

/* The React header preserves selectedCategory while its route changes. The
   companion controller stamps the active item from location.pathname so a
   previously visited provider category cannot remain highlighted. */
header a[data-awm-provider-nav-state="active"] {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #fff !important;
}
header a[data-awm-provider-nav-state="inactive"] {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
header a[data-awm-provider-nav-state="inactive"]:hover,
header a[data-awm-provider-nav-state="inactive"]:focus-visible {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.dark header a[data-awm-provider-nav-state="inactive"],
html[data-awariomierz-theme="dark"] header a[data-awm-provider-nav-state="inactive"],
body.dark header a[data-awm-provider-nav-state="inactive"],
#root > .min-h-screen.dark header a[data-awm-provider-nav-state="inactive"] {
  background: #020617 !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}
html.dark header a[data-awm-provider-nav-state="inactive"]:hover,
html[data-awariomierz-theme="dark"] header a[data-awm-provider-nav-state="inactive"]:hover,
body.dark header a[data-awm-provider-nav-state="inactive"]:hover,
#root > .min-h-screen.dark header a[data-awm-provider-nav-state="inactive"]:hover,
html.dark header a[data-awm-provider-nav-state="inactive"]:focus-visible,
html[data-awariomierz-theme="dark"] header a[data-awm-provider-nav-state="inactive"]:focus-visible,
body.dark header a[data-awm-provider-nav-state="inactive"]:focus-visible,
#root > .min-h-screen.dark header a[data-awm-provider-nav-state="inactive"]:focus-visible {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #fff !important;
}
.service-peer-section .service-peer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:10px}
.service-peer-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:58px;padding:13px 15px!important;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a!important;text-decoration:none!important;overflow:hidden}
.service-peer-card:hover,.service-peer-card:focus{border-color:#dc2626;background:#fff1f2;outline:none}
.service-peer-card__name{min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:900;line-height:1.2;text-transform:uppercase}
.service-peer-card__reports{font-size:11px;font-weight:800;white-space:nowrap;color:#64748b}
.service-peer-card .peer-sparkline,.service-peer-card>p,.service-peer-card>a{display:none!important}
.awariomierz-peer-section>div{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:10px!important}
.awariomierz-peer-tile{min-width:0;min-height:58px!important;padding:13px 15px!important;cursor:pointer!important;overflow:hidden}
.awariomierz-peer-tile>div:nth-child(2),.awariomierz-peer-tile .peer-sparkline,.awariomierz-peer-tile>a{display:none!important}
.awariomierz-peer-tile>div:first-child{min-width:0;margin:0!important;display:flex;align-items:center;justify-content:flex-start;gap:12px}
.awariomierz-peer-tile>div:first-child>strong{min-width:0;overflow-wrap:anywhere;word-break:normal;line-height:1.2}
.awariomierz-peer-tile:focus{outline:2px solid #dc2626;outline-offset:2px}
.category-service-grid{align-items:stretch}.category-service-card{height:100%}.category-service-card header{min-height:76px}.category-service-card h3{min-height:42px}.category-service-card header p{min-height:32px}
.awariomierz-home-service-card,.awariomierz-service-card{height:100%;display:flex!important;flex-direction:column!important;align-self:stretch}
.awariomierz-home-service-card>div:first-child,.awariomierz-service-card>div:first-child{display:flex;flex:1 1 auto;flex-direction:column}
.awariomierz-home-service-card>div:first-child>div:first-child{min-height:88px}
.awariomierz-service-card>div:first-child{min-height:84px}
.awariomierz-service-card>p{min-height:44px}
.awariomierz-home-service-card>div:last-child,.awariomierz-service-card>div:last-child{margin-top:auto}
.awariomierz-home-service-card h3,.awariomierz-service-card h3{overflow-wrap:anywhere}
.awariomierz-service-grid{align-items:stretch}
.awariomierz-category-service-grid .awariomierz-service-card>div:first-child{height:110px;min-height:110px}
.awariomierz-category-service-grid .awariomierz-service-card>p{height:58px;min-height:58px}
.awariomierz-national-badge-stable{font-size:0!important;min-width:0!important;width:max-content!important;padding-inline:14px!important}
.awariomierz-national-badge-stable:after{content:'STABILNIE';font-size:10px;font-weight:900;letter-spacing:.14em}
.regional-top-cities-label{margin:12px 0 2px!important;color:#94a3b8;font-size:10px!important;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.regional-more-cities{padding:6px 7px;color:#94a3b8;font-size:11px;font-weight:800}
@media (max-width:640px){.service-peer-section .service-peer-grid,.awariomierz-peer-section>div{grid-template-columns:1fr!important}.category-service-card header{min-height:0}.category-service-card h3,.category-service-card header p{min-height:0}}

/* Category provider cards use a fixed internal rhythm so long names,
   descriptions, and optional operator announcements do not shift the charts
   and action buttons from tile to tile. Local/regional cards keep their own
   compact layout. */
.awariomierz-category-service-grid .awariomierz-service-card{min-height:660px;height:100%;justify-content:flex-start!important;gap:0!important}
.awariomierz-category-service-grid .awariomierz-service-card>div:first-child{box-sizing:border-box;display:flex!important;flex:1 1 auto;flex-direction:column!important;height:auto!important;min-height:0!important;padding:18px!important}
.awariomierz-category-service-grid .awariomierz-service-card>div:first-child>*+*{margin-top:0!important}
.awariomierz-category-service-grid .awm-category-card-heading{box-sizing:border-box;display:flex!important;flex:0 0 112px;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between;gap:12px;min-height:112px;height:112px;margin:0 0 12px!important;overflow:hidden}
.awariomierz-category-service-grid .awm-category-card-heading>div:first-child{display:flex!important;flex:1 1 auto;align-items:center!important;gap:12px;min-width:0}
.awariomierz-category-service-grid .awm-category-card-heading>div:first-child>div:first-child{box-sizing:border-box;display:flex;flex:0 0 100px;align-items:center;justify-content:flex-start;width:100px!important;max-width:100px!important;height:48px;overflow:hidden}
.awariomierz-category-service-grid .awm-category-card-heading>div:first-child>div:first-child img{max-width:100%!important;max-height:48px;object-fit:contain}
.awariomierz-category-service-grid .awm-category-card-heading h3{display:-webkit-box;min-width:0;overflow:hidden;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2}
.awariomierz-category-service-grid .awm-category-card-heading p{display:-webkit-box;min-height:0!important;overflow:hidden;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35}
.awariomierz-category-service-grid .awm-category-card-heading>span{flex:0 0 auto;margin-top:0!important}
.awariomierz-category-service-grid .awm-category-card-announcement{box-sizing:border-box;display:flex;flex:0 0 48px;align-items:center;min-height:48px;height:48px;margin:0 0 12px!important;overflow:hidden}
.awariomierz-category-service-grid .awm-category-card-announcement>p{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.awariomierz-category-service-grid .awm-category-card-metrics{box-sizing:border-box;display:flex;flex:0 0 58px;align-items:center;height:58px;margin:0 0 10px!important}
.awariomierz-category-service-grid .awm-category-card-content:not(.awm-has-category-announcement)>.awm-category-card-metrics{margin-top:60px!important}
.awariomierz-category-service-grid .awm-category-card-chart{box-sizing:border-box;flex:0 0 160px;height:160px;min-height:160px;margin:0!important;overflow:hidden}
.awariomierz-category-service-grid .awm-category-card-chart>div{height:100%}
.awariomierz-category-service-grid .awm-category-card-actions{flex:0 0 auto;margin-top:auto!important}
@media(max-width:720px){.awariomierz-category-service-grid .awariomierz-service-card{min-height:620px}.awariomierz-category-service-grid .awm-category-card-heading{flex-basis:120px;height:120px;min-height:120px}.awariomierz-category-service-grid .awm-category-card-heading>div:first-child>div:first-child{flex-basis:76px;width:76px!important;max-width:76px!important}}
