/* Final targeted repair: responsive header and category magazine templates */
@media(max-width:760px){
 body.ww-map-fixed header .header-container{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;position:relative!important}
 body.ww-map-fixed header .header-container>.logo-link{margin-right:auto!important;flex:0 1 auto!important}
 body.ww-map-fixed header .header-container>.mobile-menu-toggle{order:2!important;display:flex!important;position:static!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;align-items:center!important;justify-content:center!important;z-index:105!important}
 body.ww-map-fixed header .header-container>.ww-map-header-search{order:3!important;flex:0 0 44px!important;width:44px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:105!important;color:#194c38!important}
 body.ww-map-fixed header .header-container>.site-nav{position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:110!important;display:none!important;background:#fff!important;max-height:80vh!important;overflow:auto!important;padding:16px!important;box-shadow:0 12px 30px #0003!important}
 body.ww-map-fixed header .header-container.mobile-nav-open>.site-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important}
}
body.ww-map-fixed .ww-map-header-search{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;color:#194c38;text-decoration:none}
body.ww-map-fixed .ww-map-header-search:focus-visible{outline:3px solid #267956;outline-offset:2px}
/* Calendar grid always remains seven columns, including on mobile */
.ww-calendar-main .ww-calendar-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;width:100%!important}
.ww-calendar-main .ww-calendar-grid>.ww-weekday,.ww-calendar-main .ww-calendar-grid>.ww-calendar-day{display:block!important;min-width:0!important;box-sizing:border-box!important;float:none!important;clear:none!important;width:auto!important}
.ww-calendar-main .ww-calendar-day{min-height:70px!important;padding:7px!important;border:1px solid #e4ede5!important}
@media(max-width:700px){.ww-calendar-main .ww-calendar-day{min-height:48px!important;padding:4px!important}.ww-calendar-main .ww-weekday{font-size:10px!important}}
/* Category pages: actual hero naming follows category-name-hero */
body.ww-editorial-category section[class$="-hero"]{position:relative!important;min-height:340px!important;display:flex!important;align-items:center!important;overflow:hidden!important;background:#163c2c!important}
body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-image"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important}
body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-image"] img{width:100%!important;height:100%!important;object-fit:cover!important;filter:brightness(.5)!important}
body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-content"]{position:relative!important;z-index:1!important;max-width:1160px!important;width:100%!important;box-sizing:border-box!important;margin:0 auto!important;padding:65px 28px!important;color:#fff!important}
body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-content"] h1{font:700 clamp(44px,6vw,78px)/1.08 Georgia,serif!important;color:#fff!important;margin:12px 0!important}
body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-content"] p{color:#fff!important;max-width:680px!important;line-height:1.6!important}
body.ww-editorial-category{background:#eaf0e9!important}
@media(max-width:650px){body.ww-editorial-category section[class$="-hero"]{min-height:270px!important}body.ww-editorial-category section[class$="-hero"]>div[class$="-hero-content"]{padding:48px 20px!important}}

/* Blog Explore Scotland: readable text regardless of the background photograph */
.ww-blog-explore{position:relative;isolation:isolate}
.ww-blog-explore::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,30,21,.9),rgba(0,30,21,.65) 42%,rgba(0,30,21,.08))}
.ww-blog-explore>.mm-shell{position:relative;z-index:1}
.ww-blog-explore p,.ww-blog-explore h2,.ww-blog-explore .mm-overline{color:#fff!important;opacity:1!important;text-shadow:0 2px 6px rgba(0,0,0,.5)}



/* Map page: stronger readability update for the handwritten phrase */
.ww-map-hero .ww-handwritten{
  color:#ffffff !important;
  font-weight:700 !important;
  text-shadow:
    0 3px 10px rgba(0,0,0,.92),
    0 0 30px rgba(0,0,0,.55),
    1px 1px 0 rgba(0,0,0,.65),
    -1px -1px 0 rgba(0,0,0,.65),
    1px -1px 0 rgba(0,0,0,.65),
    -1px 1px 0 rgba(0,0,0,.65);
  background:rgba(8,34,26,.58);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(0,0,0,.30);
  border-radius:22px;
  padding:18px 22px;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black){
  .ww-map-hero .ww-handwritten{
    -webkit-text-stroke: 1px rgba(0,0,0,.55);
    text-stroke: 1px rgba(0,0,0,.55);
  }
}
@media (max-width: 900px){
  .ww-map-hero .ww-handwritten{
    padding:12px 14px;
    border-radius:16px;
    background:rgba(8,34,26,.66);
  }
}

