@import url("https://cdn.jsdelivr.net/gh/frankpadams/norwoodma@906ecb4192e2825fa1d6dc7cbdb9e394e17ad954/styles.css");

/* Sitewide title casing for UI headings and labels. Preserve body copy, descriptions and form inputs. */
h1,h2,h3,h4,h5,h6,.eyebrow,.section-title,.card-title,.tile-title,.panel-title,.box-title,.outdoor-list-heading,summary b,button:not(.sentence-case),.btn,.button,.chip,.pill,.tag,.filter-label,.amenity-options label,.outdoor-quicklinks a,.text-link,.back-to-things{ text-transform:capitalize; }

/* Calendar feed availability: make usable vs unavailable choices obvious at a glance. */
.calendar-feed-option.calendar-feed-available input[type="checkbox"]{accent-color:#16803a;outline:2px solid #16803a;outline-offset:1px}
.calendar-feed-option.calendar-feed-unavailable input[type="checkbox"]{accent-color:#b42318;outline:2px solid #b42318;outline-offset:1px}
.calendar-feed-option.calendar-feed-unavailable input[type="checkbox"]:not(:checked){background:#fff}

/* Support & Contact */
.support-page .support-content{max-width:920px;margin:-22px auto 0}
.support-intro{margin:0 0 28px;padding:26px 28px;border:1px solid #dbe3ec;border-radius:18px;background:#fff}
.support-intro h2{margin:.2rem 0 .75rem}
.contact-card{padding:26px 28px;border:1px solid #dbe3ec;border-radius:18px;background:#fff;margin-bottom:28px}
.norwood-contact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-top:16px}
.norwood-contact-form label{display:flex;flex-direction:column;gap:7px;font-weight:700;min-width:0}
.norwood-contact-form .contact-name,.norwood-contact-form .contact-email{grid-column:auto}.norwood-contact-form .contact-message{grid-column:1;grid-row:2/4}.norwood-contact-form .contact-topic{grid-column:2;grid-row:2}.norwood-contact-form .contact-phone{grid-column:2;grid-row:3;max-width:none}.norwood-contact-form .contact-message textarea{height:100%;min-height:118px}
.norwood-contact-form input,.norwood-contact-form select,.norwood-contact-form textarea{box-sizing:border-box;width:100%;font:inherit;color:inherit;background:#fff;border:1px solid #aebdcb;border-radius:10px;padding:9px 11px}
.norwood-contact-form textarea{resize:vertical;min-height:105px}
.norwood-contact-form input:focus,.norwood-contact-form select:focus,.norwood-contact-form textarea:focus{outline:3px solid rgba(25,75,125,.18);border-color:#194b7d}
.norwood-contact-form .button{justify-self:start;grid-column:1/-1;margin-top:2px}
@media(max-width:680px){.support-intro,.contact-card{padding:20px 18px}.norwood-contact-form{grid-template-columns:1fr}.norwood-contact-form label,.norwood-contact-form .contact-name,.norwood-contact-form .contact-email,.norwood-contact-form .contact-phone,.norwood-contact-form .contact-topic,.norwood-contact-form .contact-message{grid-column:1;max-width:none}.norwood-contact-form .button{grid-column:1;width:100%}}

.contact-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


/* Sitewide primary navigation icons: icon above label on desktop, beside label on mobile */
#nav>a{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;line-height:1.05;text-align:center;min-width:54px}
#nav>a::before{display:block;width:18px;height:18px;margin:0;background:currentColor;content:"";-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
#nav>a[href="index.html"]::before,
#nav>a[href="https://www.norwood.ma/"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E")}
#nav>a[href="events.html"]::before,
#nav>a[href="https://www.norwood.ma/events.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h2v3h10V2h2v3h2v17H3V5h2zm14 9H5v9h14z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h2v3h10V2h2v3h2v17H3V5h2zm14 9H5v9h14z'/%3E%3C/svg%3E")}
#nav>a[href="news.html"]::before,
#nav>a[href="https://www.norwood.ma/news.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v16H3zm3 3v4h6V7zm8 0v2h4V7zm0 4v2h4v-2zM6 14v2h12v-2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v16H3zm3 3v4h6V7zm8 0v2h4V7zm0 4v2h4v-2zM6 14v2h12v-2z'/%3E%3C/svg%3E")}
#nav>a[href="explore.html"]::before,
#nav>a[href="https://www.norwood.ma/explore.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.8 6.2-2.1 5.5-5.5 2.1 2.1-5.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.8 6.2-2.1 5.5-5.5 2.1 2.1-5.5z'/%3E%3C/svg%3E")}
#nav>a[href="resources.html"]::before,
#nav>a[href="https://www.norwood.ma/resources.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8 0a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM1 21v-3c0-3.3 3.1-5.5 7-5.5s7 2.2 7 5.5v3zm15 0v-3c0-1.8-.7-3.4-2-4.6.7-.3 1.5-.4 2.3-.4 3.7 0 6.7 2.1 6.7 5v3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8 0a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM1 21v-3c0-3.3 3.1-5.5 7-5.5s7 2.2 7 5.5v3zm15 0v-3c0-1.8-.7-3.4-2-4.6.7-.3 1.5-.4 2.3-.4 3.7 0 6.7 2.1 6.7 5v3z'/%3E%3C/svg%3E")}
#nav>a[href="discover.html"]::before,
#nav>a[href="https://www.norwood.ma/discover.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E")}
#nav>a[href="contact.html"]::before,
#nav>a[href="https://www.norwood.ma/contact.html"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2 8 6 8-6v-1H4zm16 10V9.5l-8 6-8-6V17z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2 8 6 8-6v-1H4zm16 10V9.5l-8 6-8-6V17z'/%3E%3C/svg%3E")}
@media(max-width:760px){#nav>a{flex-direction:row!important;justify-content:flex-start;gap:10px;text-align:left}#nav>a::before{width:18px;height:18px;flex:0 0 18px}}

/* Unified site search treatment — exact homepage search visual language */
.directory-search-line{display:flex!important;gap:0!important;align-items:stretch;width:100%;background:#fff;border:0!important;border-radius:9px!important;padding:3px!important;box-shadow:0 5px 16px #0003!important;overflow:visible!important}
.directory-search-line input[type="search"]{min-width:0;flex:1;border:0!important;border-radius:0!important;padding:8px 10px!important;font:inherit;font-size:13px!important;color:#17384d;background:transparent!important;outline:none!important;box-shadow:none!important}
.directory-search-line button[type="submit"]{border:0!important;border-radius:7px!important;padding:0 13px!important;background:#f2c100!important;color:#102e42!important;font:inherit;font-size:12px!important;font-weight:850!important;cursor:pointer;min-height:0!important;margin:0!important}
.directory-search-line:focus-within{box-shadow:0 5px 16px #0003,0 0 0 3px rgba(242,193,0,.22)!important}
@media(max-width:600px){.directory-search-line{display:flex!important;grid-template-columns:none!important}.directory-search-line input[type="search"]{padding:8px 9px!important;font-size:12px!important}.directory-search-line button[type="submit"]{padding:0 10px!important;font-size:11px!important;min-height:0!important}}

/* Keep the full icon navigation longer before collapsing to hamburger. */
@media(min-width:821px) and (max-width:1100px){
  .top{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto auto;column-gap:4px;align-items:center;min-height:94px;padding-left:14px}
  .top>.brand.approved{grid-column:1;grid-row:1 / span 2;width:220px;max-width:220px;height:68px;min-height:68px}
  .top>.brand.approved img{width:220px;max-height:64px}
  .top>#menu{display:none!important}
  .top>nav{display:flex!important;position:static;grid-column:2;grid-row:1;margin:0;justify-self:end;align-self:end;align-items:center;flex-direction:row;gap:8px;min-height:60px;height:60px;padding:0;background:transparent;border:0;box-shadow:none;white-space:nowrap}
  .top>nav a{display:inline-flex!important;padding:0 3px;border:0;font-size:12px;min-width:48px}
  .top .happening{grid-column:2;grid-row:2;order:initial;width:100%;max-width:100%;min-height:25px;margin:0 0 3px;padding:3px 10px;display:flex;align-items:center;justify-content:center}
  .hamburger-only-support{display:none!important}
}


/* Hey, Norwood! homepage notices: two-item vertical stack with JS paging. */
.good-to-know-section .good-to-know{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
.good-to-know-section .good-to-know-label{width:100%;box-sizing:border-box}
.good-to-know-section .good-to-know-item{width:100%;box-sizing:border-box}
.good-to-know-section .good-to-know-item[hidden]{display:none!important}
.good-to-know-section .good-to-know-item + .good-to-know-item:not([hidden]){border-top:1px solid rgba(0,59,113,.14)}


/* Calendar selector: two visual columns must size independently. CSS columns avoid
   grid-row stretching when a details group is opened beside a shorter group. */
@media (min-width:760px){
  #calendarFeedChoices.calendar-feed-choices{display:block!important;column-count:2;column-gap:1rem;}
  #calendarFeedChoices .calendar-feed-group{break-inside:avoid;display:inline-block;width:100%;vertical-align:top;margin:0 0 1rem;box-sizing:border-box;}
}


/* Top alert: fixed three-column layout keeps arrows separate and message truly centered. */
.site-timely-alert{display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;grid-template-rows:35px!important;align-items:center!important;height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;overflow:hidden!important;font-size:.9rem!important}
.site-timely-track{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:35px!important;min-width:0!important;min-height:35px!important;max-height:35px!important;box-sizing:border-box!important;overflow:hidden!important;white-space:nowrap!important}
.site-timely-item:not(.is-active){display:none!important}
.site-timely-item.is-active{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;height:35px!important;min-width:0!important;min-height:35px!important;box-sizing:border-box!important;padding:0 8px!important;margin:0!important;text-align:center!important;line-height:1.25!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:inherit!important;text-decoration:none!important}
.site-timely-prev,.site-timely-next{position:static!important;top:auto!important;left:auto!important;right:auto!important;display:block!important;width:42px!important;height:35px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;font-size:1.2rem!important;line-height:35px!important;cursor:pointer!important;z-index:auto!important}
.site-timely-prev{grid-column:1!important;grid-row:1!important}
.site-timely-next{grid-column:3!important;grid-row:1!important}
.site-timely-item .watch-live{display:inline!important;padding:0!important;margin-left:.25rem!important;line-height:inherit!important;white-space:nowrap!important}
@media(max-width:700px){
 .site-timely-alert{grid-template-columns:36px minmax(0,1fr) 36px!important;grid-template-rows:33px!important;height:34px!important;min-height:34px!important;max-height:34px!important;font-size:.78rem!important}
 .site-timely-track{height:33px!important;min-height:33px!important;max-height:33px!important}
 .site-timely-item.is-active{height:33px!important;min-height:33px!important;padding:0 5px!important}
 .site-timely-prev,.site-timely-next{width:36px!important;height:33px!important;line-height:33px!important}
}

/* Hey Norwood: two equal fixed-height notice slots so every rotation occupies the same space. */
#heyNorwoodNotices{display:grid!important;grid-template-rows:76px 76px!important;height:152px!important;min-height:152px!important;max-height:152px!important;overflow:hidden!important}
#heyNorwoodNotices .hey-norwood-slot{height:76px!important;min-height:76px!important;max-height:76px!important;overflow:hidden!important;box-sizing:border-box}
#heyNorwoodNotices .hey-norwood-slot+.hey-norwood-slot{border-top:1px solid rgba(0,59,113,.14)}
#heyNorwoodNotices .good-to-know-item{height:100%!important;min-height:0!important;overflow:hidden!important}
#heyNorwoodNotices .good-to-know-item>span:nth-child(2){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:700px){
  #heyNorwoodNotices{grid-template-rows:82px 82px!important;height:164px!important;min-height:164px!important;max-height:164px!important}
  #heyNorwoodNotices .hey-norwood-slot{height:82px!important;min-height:82px!important;max-height:82px!important}
  #heyNorwoodNotices .good-to-know-item{align-items:center!important}
}


/* Expanded News: align local sources at the top of the right column, but let them scroll naturally with the page. */
@media (min-width: 801px){
  .news-page-grid{align-items:start}
  .news-page-grid .news-sources{position:static;top:auto;align-self:start}
}


/* Resource directory cards: separate individual resources from the page background. */
.resource-list .resource-item{background:#fff;padding:16px 18px;box-sizing:border-box;}

/* Trivia night cards */
.trivia-event-grid .trivia-event{background:#fff;}


/* Footer cleanup: compact, organized three-column layout with readable legal copy. */
.old-footer{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr) minmax(150px,210px);gap:24px;align-items:start;padding:26px max(22px,calc((100% - 1180px)/2));box-sizing:border-box}
.old-footer .footer-logo{display:block;align-self:start}
.old-footer .footer-logo img{display:block;max-width:180px;width:100%;height:auto}
.old-footer .footer-legal{max-width:720px;font-size:.82rem;line-height:1.45}
.old-footer .footer-legal p{margin:0 0:8px}
.old-footer .footer-legal p{margin:0 0 8px}
.old-footer .footer-legal p:first-child{font-size:.9rem;line-height:1.35}
.old-footer .footer-info-disclaimer{padding-top:9px;margin-top:9px!important;border-top:1px solid rgba(255,255,255,.2);opacity:.88;font-size:.76rem;line-height:1.45}
.old-footer .footer-support{display:inline-block;margin-right:14px!important}
.old-footer>a:last-child{justify-self:end;text-align:right;font-weight:700}
@media(max-width:760px){.old-footer{grid-template-columns:1fr;gap:16px;padding:24px 18px}.old-footer .footer-logo img{max-width:155px}.old-footer .footer-legal{max-width:none}.old-footer>a:last-child{justify-self:start;text-align:left}}


/* Footer refinement: tighter logo area and unified disclaimer typography. */
.old-footer{grid-template-columns:minmax(150px,190px) minmax(0,1fr) minmax(150px,190px);gap:18px;padding-top:22px;padding-bottom:22px}
.old-footer .footer-legal,.old-footer .footer-legal p,.old-footer .footer-legal p:first-child,.old-footer .footer-info-disclaimer{font-size:.82rem;line-height:1.45}
.old-footer .footer-info-disclaimer{padding-top:0;margin-top:0!important;border-top:0;opacity:1}
.old-footer .footer-legal p{margin-bottom:6px}
.old-footer .footer-logo{margin-bottom:0}
.old-footer .footer-logo img{margin-bottom:4px}


/* Footer: two-column desktop layout. */
.old-footer{grid-template-columns:minmax(170px,220px) minmax(0,1fr);column-gap:26px;row-gap:8px}
.old-footer .footer-legal{max-width:none}
.old-footer>a:last-child{grid-column:2;justify-self:start;text-align:left;margin-top:2px}
@media(max-width:760px){.old-footer{grid-template-columns:1fr}.old-footer>a:last-child{grid-column:1}}

.old-footer .footer-brand{grid-column:1;grid-row:1;align-self:start}
.old-footer .footer-meta{margin-top:6px;font-size:.78rem;line-height:1.4;opacity:.82}
.old-footer .footer-legal{grid-column:2;grid-row:1}
.old-footer .footer-links{display:flex;flex-wrap:wrap;gap:0 .45rem;align-items:center;margin-top:8px!important}
.old-footer .footer-links a{font-weight:700}
.old-footer>a:last-child{display:none}
@media(max-width:760px){.old-footer .footer-brand,.old-footer .footer-legal{grid-column:1;grid-row:auto}}

/* Footer typography rhythm: uniform paragraph spacing throughout legal copy. */
.old-footer .footer-legal p,
.old-footer .footer-legal p:first-child,
.old-footer .footer-info-disclaimer,
.old-footer .footer-links{margin:0 0 7px!important;padding:0!important;line-height:1.45!important}
.old-footer .footer-links{margin-bottom:0!important;margin-top:7px!important}

/* Home-screen install item uses only the Norwood.ma favicon; suppress the generic nav icon. */
#nav>a.add-home-screen-link::before{display:none!important;content:none!important}
#nav>a.add-home-screen-link .add-home-screen-icon{display:block;width:18px;height:18px;object-fit:contain;flex:0 0 18px;margin:0}

/* Crop the install-menu favicon slightly so its internal top/bottom white padding is not visible. */
#nav>a.add-home-screen-link .add-home-screen-icon{width:18px;height:18px;object-fit:cover;object-position:center;clip-path:inset(2px 0 2px 0);transform:scaleY(1.28);transform-origin:center}


/* Compact event details popup */
.event-details-dialog{width:min(92vw,560px);max-height:86vh;overflow:auto;border:0;border-radius:18px;padding:0;box-shadow:0 18px 60px rgba(0,0,0,.28);background:#fff;color:#102f46}
.event-details-dialog::backdrop{background:rgba(4,27,45,.55)}
.event-details-dialog #eventDetailsContent{padding:22px 24px 24px}
.event-details-close{position:sticky;top:10px;float:right;z-index:2;width:34px;height:34px;border:0;border-radius:50%;background:#eef3f6;color:#10354d;font-size:24px;line-height:1;cursor:pointer;margin:10px 10px 0 0}
.event-details-dialog h2{margin:.2rem 0 .8rem;line-height:1.15}
.event-popup-thumb{display:block;width:120px;height:82px;object-fit:cover;border-radius:10px;margin:0 0 12px}
.event-popup-facts p,.event-popup-notes{margin:.42rem 0;line-height:1.4}
.event-popup-notes{padding-top:.35rem}
.event-popup-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #e3e9ed}
.event-popup-actions>a,.event-popup-websites>a{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #d9e2e8;border-radius:9px;text-decoration:none;background:#fff;font-weight:700}
.event-brand-icon{width:16px;height:16px;object-fit:contain}
.event-popup-websites{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
@media(max-width:600px){.event-details-dialog{width:94vw}.event-details-dialog #eventDetailsContent{padding:18px}.event-popup-thumb{width:100%;height:120px}}

/* Homepage advertising: respond to the ad card's available width, not the viewport.
   Wide cards keep two creatives side-by-side; constrained cards stack them so banner
   artwork stays legible on mid-size desktop, tablet and mobile layouts. */
#homeAdSlot{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
  container-type:inline-size;
}
#homeAdSlot .home-ad-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  align-items:stretch;
}
#homeAdSlot .home-ad-creative{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:120px;
  box-sizing:border-box;
  overflow:hidden;
}
#homeAdSlot .home-ad-image-link{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#fff;
}
#homeAdSlot .home-ad-image-link img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  max-height:120px;
  min-width:0;
  object-fit:contain;
}

/* When the ad card itself becomes narrow, give each advertiser the full card width.
   This catches squeezed desktop columns as well as phones, regardless of screen size. */
@container (max-width:560px){
  #homeAdSlot .home-ad-pair{
    grid-template-columns:minmax(0,1fr);
    grid-auto-flow:row;
  }
  #homeAdSlot .home-ad-creative{
    min-height:0;
  }
  #homeAdSlot .home-ad-image-link{
    min-height:0;
  }
  #homeAdSlot .home-ad-image-link img{
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
  }
  #homeAdSlot .ad-placeholder{
    min-height:104px;
  }
}

/* Fallback for older browsers without container queries. */
@supports not (container-type:inline-size){
  @media(max-width:900px){
    #homeAdSlot .home-ad-pair{grid-template-columns:minmax(0,1fr)}
    #homeAdSlot .home-ad-creative{min-height:0}
    #homeAdSlot .home-ad-image-link img{height:auto;max-height:none}
    #homeAdSlot .ad-placeholder{min-height:104px}
  }
}


/* Explore page: pair compact map feature with Moving to Norwood */
.explore-feature-row{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:stretch;margin:0 0 28px}
.explore-feature-row .explore-map-card{min-height:175px;height:100%}
.explore-map-card-compact .explore-map-content{padding:18px 22px}
.explore-moving-card{display:flex;gap:16px;align-items:center;min-height:175px;padding:18px 20px;border-radius:22px;background:#fff;border:1px solid #dbe3ec;text-decoration:none;color:inherit;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.explore-moving-card>span{font-size:42px;line-height:1}
.explore-moving-card div{display:flex;flex-direction:column;gap:8px;min-width:0}
.explore-moving-card .eyebrow{margin:0}
.explore-moving-card strong{font-size:1.55rem;line-height:1.1;color:#17365d}
.explore-moving-card small{font-size:.98rem;line-height:1.45;color:#475569}
.explore-moving-card b{margin-top:6px;color:#17365d}
.explore-moving-card:hover,.explore-moving-card:focus-visible{transform:translateY(-1px);box-shadow:0 14px 32px rgba(15,23,42,.12)}
@media(max-width:760px){.explore-feature-row{grid-template-columns:1fr}.explore-feature-row .explore-map-card,.explore-moving-card{min-height:150px}.explore-moving-card{padding:16px 18px}.explore-map-card-compact .explore-map-content{padding:16px 18px}}

/* Prevent iOS Safari auto-zoom on focus; preserve responsive layouts and pinch zoom. */
@media (max-width: 760px) {
  .directory-search-line input[type="search"],
  .restaurant-tools input,
  .restaurant-tools select,
  .restaurant-tools textarea {
    font-size: 16px !important;
  }
}

/* Compact Food & Drink filters: search, cuisine and GF guidance share a desktop row. */
@media (min-width: 900px) {
  #foodSearchForm.restaurant-tools {
    display: grid !important;
    grid-template-columns: minmax(250px, 1.5fr) minmax(165px, .8fr) minmax(220px, 1.1fr) !important;
    align-items: end !important;
    gap: 12px !important;
  }
  #foodSearchForm > div { min-width: 0; }
  #foodSearchForm .restaurant-guidance { align-self: center; }
  #foodSearchForm .gf-legend { font-size: 12px; line-height: 1.35; }
}
@media (max-width: 899px) {
  #foodSearchForm.restaurant-tools { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #foodSearchForm > div { min-width: 0; }
}

/* Browse-first ordering: narrow cuisine, then search dishes or names. */
@media (min-width: 900px) {
  #foodSearchForm.restaurant-tools {
    grid-template-columns: minmax(165px, .8fr) minmax(250px, 1.5fr) minmax(220px, 1.1fr) !important;
  }
}

/* Date tile indicators: one day, continuous range, or recurring dates */
.event-date{position:relative}
.event-duration-indicator{position:absolute;top:2px;right:3px;font-size:12px;line-height:1;font-weight:700;opacity:.85;pointer-events:none}
@media(max-width:600px){.event-duration-indicator{top:2px;right:2px;font-size:11px}}

/* Responsive sitewide navigation: a compact, overlaying dropdown when links won't fit. */
.top.norwood-menu-collapsed{position:relative!important;overflow:visible!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:72px!important;padding:10px 16px!important}
.top.norwood-menu-collapsed>.brand.approved{flex:0 1 220px!important;grid-column:auto!important;grid-row:auto!important;width:min(220px,65vw)!important;max-width:65vw!important;height:auto!important;min-height:0!important}
.top.norwood-menu-collapsed>.brand.approved img{width:100%!important;max-width:100%!important;height:auto!important}
.top.norwood-menu-collapsed>#menu{display:inline-flex!important;position:relative!important;flex:0 0 44px!important;order:2!important;align-items:center!important;justify-content:center!important;width:44px!important;max-width:44px!important;min-height:44px!important;margin:0 0 0 auto!important;padding:8px!important;box-sizing:border-box!important;cursor:pointer!important}
.top.norwood-menu-collapsed>#nav{display:none!important;position:absolute!important;top:calc(100% - 1px)!important;right:12px!important;left:auto!important;bottom:auto!important;z-index:1000!important;grid-column:auto!important;grid-row:auto!important;order:initial!important;flex:none!important;width:max-content!important;min-width:210px!important;max-width:calc(100vw - 24px)!important;height:auto!important;min-height:0!important;max-height:70vh!important;overflow-y:auto!important;margin:0!important;padding:6px!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #ccd6e3!important;border-radius:12px!important;box-shadow:0 12px 28px rgba(0,24,55,.18)!important;white-space:normal!important}
.top.norwood-menu-collapsed>#nav.open{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important}
.top.norwood-menu-collapsed>#nav>a{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-width:0!important;min-height:44px!important;padding:10px 12px!important;font-size:1rem!important;text-align:left!important}
.top.norwood-menu-collapsed>#nav>a{color:#003b71!important;background:transparent!important;text-decoration:none!important;opacity:1!important;visibility:visible!important}
.top.norwood-menu-collapsed>#nav>a:hover,.top.norwood-menu-collapsed>#nav>a:focus-visible{background:#edf4fa!important}
.top.norwood-menu-collapsed>#nav>a::before{flex:0 0 18px!important;width:18px!important;height:18px!important}

/* Single sponsor placement: full-width creative and one forward arrow. */
:is(#homeAdSlot,#homeAdSlotSecondary) .ad-slot-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorNext{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;border:1px solid rgba(0,59,113,.22);border-radius:6px;background:#fff;color:#003b71;font-size:20px;line-height:1;cursor:pointer}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorNext[hidden]{display:none}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorCreative{width:100%;min-width:0}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorCreative>a{display:flex;width:100%;min-height:120px;align-items:center;justify-content:center;box-sizing:border-box;text-align:center}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorCreative img{display:block;width:100%;max-width:100%;max-height:220px;height:auto;object-fit:contain}
:is(#homeAdSlot,#homeAdSlotSecondary) #sponsorCreative .ad-placeholder{flex-direction:column;gap:8px}

#homeAdSlotSecondary[hidden]{display:none!important}
.dashboard-grid .transit-preview>.ad-slot{margin-top:16px;width:100%;box-sizing:border-box}

/* Compact, progressive-disclosure event details */
.event-details-dialog{width:min(94vw,610px);max-height:min(88dvh,800px)}
.event-details-dialog #eventDetailsContent{padding:22px 26px 26px}
.event-details-dialog .eyebrow{font-size:.75rem;letter-spacing:.1em}
.event-details-dialog h2{font-size:clamp(1.4rem,3vw,1.9rem);margin:.3rem 34px .9rem 0}
.event-popup-facts{display:grid;gap:4px;margin-bottom:14px}
.event-popup-facts p{margin:2px 0}
.event-popup-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 10px}
.event-action-menu{min-width:0;position:relative}
.event-action-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:9px 8px;border-radius:11px;border:1px solid #cddce5;background:#f1f6fa;color:#12364d;font-weight:700;cursor:pointer;font-size:.9rem}
.event-action-menu>summary::-webkit-details-marker,.event-popup-more>summary::-webkit-details-marker{display:none}
.event-action-menu[open]{grid-column:1/-1}
.event-action-menu[open]>summary{background:#123e5e;color:white}
.event-action-menu .event-popup-actions{border:0;margin:4px 0 8px;padding:8px 0;gap:8px}
.event-action-menu .event-popup-actions strong{display:none}
.event-action-menu .event-popup-actions>a,.event-action-menu .event-popup-actions>button{font:inherit;font-weight:600;font-size:.88rem;color:#12364d;background:white;border:1px solid #d6e0e7;border-radius:9px;padding:9px 11px;cursor:pointer;min-height:40px}
.event-popup-more{border-top:1px solid #e2e9ee;margin-top:12px;padding-top:12px}
.event-popup-more>summary{cursor:pointer;color:#174969;font-weight:700;padding:6px 0}
.event-popup-more .event-popup-websites{margin-top:8px}
.event-popup-more .event-popup-notes{font-size:.88rem;color:#526777;font-weight:400}
@media(max-width:600px){.event-details-dialog{width:96vw;max-height:90dvh}.event-details-dialog #eventDetailsContent{padding:18px 16px 22px}.event-popup-quick-actions{gap:5px}.event-action-menu>summary{font-size:.78rem;padding:8px 4px}.event-action-menu .event-popup-actions>a,.event-action-menu .event-popup-actions>button{flex:1 1 auto}}

/* Keep source links and the community referral visible below expandable details. */
.event-details-dialog .event-popup-websites{margin:12px 0 8px;gap:8px}
.event-details-dialog .event-popup-websites strong{font-size:.88rem}
.event-details-dialog .event-popup-referral{margin:15px 0 0;padding-top:12px;border-top:1px solid #e2e9ee;color:#526777;font-size:.84rem;line-height:1.45}

/* Boston Mobile Tire: 20% smaller creative, with natural container height. */
#homeAdSlot #sponsorCreative>a:has(img[src*="wide_rectangular_advertising_banner_for_a_mobile_t"]){min-height:0}
#homeAdSlot #sponsorCreative img[src*="wide_rectangular_advertising_banner_for_a_mobile_t"]{width:80%;max-width:80%;max-height:none;height:auto;margin-inline:auto}


/* Homepage sponsor: match the restaurant page's understated label-above-creative layout. */
#homeAdSlot{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}
#homeAdSlot .ad-slot-head{padding:0 0 5px!important;margin:0!important}
#homeAdSlot .ad-label{font-size:.72rem;font-weight:700;letter-spacing:.09em;color:#526777;text-decoration:none}
#homeAdSlot #sponsorCreative{padding:0!important;margin:0!important}
#homeAdSlot #sponsorCreative>a{padding:0!important;margin:0!important;min-height:0}

/* Give the homepage sponsor a visible, compact enclosing card. */
#homeAdSlot{padding:10px 12px 12px!important;border:1px solid #dbe3ec!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box}
#homeAdSlot .ad-slot-head{padding-bottom:7px!important}
#homeAdSlot #sponsorCreative>a{border-radius:10px;overflow:hidden}

/* Homepage: two compact 215 × 83 sponsor placements with a modest gap. */
#homeAdSlot .home-ad-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:center}
#homeAdSlot .home-ad-creative{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:215/83;min-height:0!important;width:100%;overflow:hidden;border-radius:7px}
#homeAdSlot .bmt-dual-ad img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:fill;transition:opacity .2s ease}
#homeAdSlot .bmt-dual-ad .bmt-services{opacity:0}
@media(hover:hover){#homeAdSlot .bmt-dual-ad:hover .bmt-services,#homeAdSlot .bmt-dual-ad:focus-visible .bmt-services{opacity:1}}
#homeAdSlot .home-ad-empty{border:1px dashed #b8c6d3;background:#f7f9fb;color:#536b7d;text-decoration:none;font-size:clamp(10px,1vw,13px);font-weight:600;text-align:center}
@container (max-width:560px){#homeAdSlot .home-ad-pair{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep both sponsor images proportionate and contained in their 215:83 slots. */
#homeAdSlot #sponsorCreative .home-ad-pair .home-ad-creative img{width:100%;height:100%;max-height:none;object-fit:contain}
#homeAdSlot #sponsorCreative .bmt-dual-ad img{position:absolute;inset:0}
#homeAdSlot #sponsorCreative .tcb-ad img{display:block}

/* Compact GF guidance: only the symbol occupies the search row. */
#foodSearchForm.restaurant-tools{position:relative}
@media(min-width:900px){#foodSearchForm.restaurant-tools{grid-template-columns:minmax(165px,.8fr) minmax(250px,1.5fr) 48px !important}}
#foodSearchForm .restaurant-guidance{position:relative;align-self:end;min-width:0;justify-self:center}
#foodSearchForm .gf-help-trigger{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:5px;border:1px solid #b9d3c3;border-radius:50%;background:#fff;cursor:help}
#foodSearchForm .gf-help-trigger .gf-icon{width:30px;height:30px;flex:none}
#foodSearchForm .gf-help-popover{display:none;position:absolute;z-index:100;right:0;bottom:calc(100% + 9px);width:min(320px,80vw);padding:12px 14px;border:1px solid #b9d3c3;border-radius:9px;background:#fff;color:#21362a;box-shadow:0 6px 24px #0002;font-size:13px;line-height:1.5;text-align:left}
#foodSearchForm .gf-help-trigger:hover + .gf-help-popover,#foodSearchForm .gf-help-trigger:focus + .gf-help-popover,#foodSearchForm .restaurant-guidance:focus-within .gf-help-popover{display:block}
@media(max-width:899px){#foodSearchForm .restaurant-guidance{justify-self:start}}



/* October 6-style hamburger: plain original Menu button, no injected icon. */
.top.norwood-menu-collapsed>#menu{font-size:14px!important;line-height:1.2!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:transparent!important;background-image:none!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:7px!important;box-shadow:none!important}
.top.norwood-menu-collapsed>#menu::before,.top.norwood-menu-collapsed>#menu::after{content:none!important;display:none!important}

/* Keep the approved menu button; hide only its visible word. */
.top.norwood-menu-collapsed>#menu{font-size:0!important;-webkit-text-fill-color:transparent!important}

/* Icon-only hamburger: three visible white strokes, no visible Menu text. */
.top.norwood-menu-collapsed>#menu{font-size:0!important;line-height:0!important;color:#fff!important;-webkit-text-fill-color:transparent!important}
.top.norwood-menu-collapsed>#menu::before{content:none!important;display:none!important}
.top.norwood-menu-collapsed>#menu::after{content:""!important;display:block!important;flex:none!important;width:23px!important;height:17px!important;border-top:2px solid #fff!important;border-bottom:2px solid #fff!important;background:linear-gradient(#fff,#fff) center/100% 2px no-repeat!important;box-sizing:border-box!important;box-shadow:none!important}

/* The hamburger's three strokes are supplied by the button's child span.
   Disable the older generated glyph so only one icon is visible. */
.top #menu::before,.top #menu::after{content:none!important;display:none!important}
.top #menu>span[aria-hidden="true"]{display:block!important;flex:0 0 24px!important;width:24px!important;height:18px!important}

/* Five distinct accessibility sizes; neutralize legacy root-size adjustments. */
html[data-text-size]{font-size:100%}
html[data-text-size="smallest"] body{zoom:.8}
html[data-text-size="compact"] body{zoom:.9}
html[data-text-size="standard"] body{zoom:1}
html[data-text-size="large"] body{zoom:1.25}
html[data-text-size="largest"] body{zoom:1.5}
@supports not (zoom:1){
 html[data-text-size="smallest"]{font-size:80%}
 html[data-text-size="compact"]{font-size:90%}
 html[data-text-size="standard"]{font-size:100%}
 html[data-text-size="large"]{font-size:125%}
 html[data-text-size="largest"]{font-size:150%}
 html[data-text-size] body{font-size:inherit}
}

/* Continuous, accessible top-alert ticker. Emergency messages retain their links. */
.site-timely-alert.site-timely-marquee{display:block!important;position:relative!important}
.site-timely-marquee .site-timely-track{display:flex!important;justify-content:flex-start!important;gap:0!important;width:100%!important;overflow:hidden!important}
.site-timely-marquee-group{display:flex;align-items:center;flex:none;width:max-content;animation:site-timely-scroll var(--ticker-duration,30s) linear infinite}
.site-timely-marquee .site-timely-item.is-active{display:inline-flex!important;flex:none!important;width:auto!important;max-width:none!important;padding:0 28px!important;overflow:visible!important}
.site-timely-marquee:hover .site-timely-marquee-group,
.site-timely-marquee:focus-within .site-timely-marquee-group,
.site-timely-marquee.ticker-paused .site-timely-marquee-group{animation-play-state:paused}
@keyframes site-timely-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-1 * var(--ticker-distance,600px)))}}
@media(prefers-reduced-motion:reduce){.site-timely-marquee-group{animation:none!important}}
