@layer mw-berat-layout {
  #country-app[data-ready-view="region"] :is(.region-unified-hero,.classic-place-context) h1 {
    zoom: .8;
  }

  #country-app[data-ready-view="region"] .mw-de-branch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  @media (max-width: 860px) {
    #country-app[data-ready-view="region"] .mw-de-branch-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 600px) {
    #country-app[data-ready-view="region"] .mw-de-branch-grid {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }

  #country-app[data-ready-view="region"] .mw-de-branch-grid > .region-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  #country-app[data-ready-view="region"] .region-tile > .mw-daylight-caption {
    margin: auto 0 0 !important;
    box-sizing: border-box !important;
    inline-size: 100% !important;
    padding: .42rem .58rem !important;
    border-radius: .55rem !important;
    color: #172c44 !important;
    background: rgb(255 248 231 / 92%) !important;
  }

  #country-app[data-ready-view="region"] .region-tile > .mw-daylight-caption strong {
    font: 700 clamp(1rem, 1.35vw, 1.2rem)/1.15 system-ui, sans-serif !important;
  }

  #country-app[data-ready-view="region"] .region-tile > .mw-daylight-caption small {
    margin-block-start: .18rem !important;
    font: 400 clamp(.8rem, 1vw, .94rem)/1.25 system-ui, sans-serif !important;
  }

  #country-app[data-ready-view="region"] .region-tile > .mw-daylight-caption em {
    display: none !important;
  }

  #country-app[data-ready-view="region"] .region-tile > .mw-regional-landmark {
    display: none !important;
  }

  #country-app[data-ready-view="region"] .region-tile > .region-tile-icon {
    align-self: flex-start;
  }

  #country-app[data-ready-view="region"] .region-tile-pulse > .pulse-preparing {
    position: relative !important;
    align-self: flex-start;
    margin: .25rem 0 0 !important;
    padding: .2rem .55rem;
    border-radius: .35rem;
    color: #172c44 !important;
    background: rgb(255 248 231 / 92%);
    font: 500 .8rem/1.2 system-ui, sans-serif !important;
  }
}


@layer mw-berat-layout {
  body[data-country="DE"][data-mw-country-backdrop]::before {
    opacity: .23 !important;
    filter: saturate(.60) !important;
  }

  #country-app[data-ready-view="region"] > :is(.country-compact-nav--region,#main) {
    inline-size: min(calc(100% - 2rem), 1440px) !important;
    box-sizing: border-box;
    margin-inline: auto !important;
  }

  #country-app[data-ready-view="region"] .country-region-hero h1 {
    zoom: .8;
  }

  #country-app[data-ready-view="region"] .country-region-hero {
    background-color: #dce7eb !important;
    margin-inline: 0 !important;
    inline-size: 100% !important;
    max-inline-size: none !important;
    border-radius: 1rem !important;
    overflow: hidden;
  }

  #country-app[data-ready-view="region"] .country-region-hero > img.canonical-scenery {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  #country-app[data-ready-view="region"] .country-region-hero:has(> img[src$="/region-rheinland-pfalz.webp"]) {
    background: #dce7eb url('/assets/region-berat-burg-eltz-56d4de32c3a6a7dd.webp') 74% 22% / cover no-repeat !important;
  }

  #country-app[data-ready-view="region"] .country-region-hero > img[src$="/region-rheinland-pfalz.webp"] {
    visibility: hidden;
  }

  #mw-rheinland-photo-credit {
    display: none !important;
  }

  body:has(#country-app[data-ready-view="region"] .country-region-hero > img[src$="/region-rheinland-pfalz.webp"]) #mw-rheinland-photo-credit {
    display: table !important;
    margin: .7rem auto 1.2rem;
    padding: .3rem .55rem;
    border-radius: .4rem;
    background: #fff8e9;
    color: #172c44;
    font: 500 .8rem/1.4 system-ui, sans-serif;
  }

  #country-app[data-ready-view="region"] .canonical-regional-entrances {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    max-inline-size: none !important;
    inline-size: 100% !important;
    padding-inline: 0 !important;
  }

  #country-app[data-ready-view="region"] .canonical-regional-entrances > .region-tile {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-block-size: clamp(13rem,19vw,15.5rem) !important;
  }

  #country-app[data-ready-view="region"] .canonical-regional-entrances .region-tile-open {
    display: none !important;
  }

  #country-app[data-ready-view="region"] .canonical-regional-entrances .region-tile-pulse > strong {
    font: 700 clamp(1rem,1.35vw,1.2rem)/1.15 system-ui,sans-serif !important;
  }

  @media (max-width: 860px) {
    #country-app[data-ready-view="region"] .canonical-regional-entrances {
      grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
  }

  @media (max-width: 600px) {
    #country-app[data-ready-view="region"] .canonical-regional-entrances {
      grid-template-columns: minmax(0,1fr) !important;
    }
  }
}
