/* New Ross responsive enhancement — original desktop presentation retained. */
html { scroll-behavior: smooth; }
body { min-width: 0; }
.newross-pagination { clear: both; padding: 15px 0; }
.newross-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.newross-pagination li { list-style: none !important; margin: 0 !important; }
.newross-pagination a, .newross-pagination span { display: inline-block; border: 1px solid #d7d7d7; padding: 6px 11px; }
#wrapper { width: min(100%, 970px); max-width: 970px; box-sizing: border-box; }
#main, #container, #content, #main-column, #main-column-front, .entry-content,
#homepage-blocks, .entry-summary { min-width: 0; }
#content img, #content video, #content iframe, #content embed, #content object,
.wp-block-image img, .wp-caption { max-width: 100%; }
#content img { height: auto; }
#content iframe { max-width: 100%; }
#content table { max-width: 100%; }
.newross-header-home { position: absolute; left: 6%; width: 25%; height: 64%; top: 5%; z-index: 2; }
#header .newross-header-art { display: block; width: 100%; height: auto; }
.newross-header-facebook { position: absolute; right: 0; top: 5px; z-index: 3; }
#header .newross-header-facebook img { width: 30px !important; height: 30px; border: 0; }
.newross-desktop-nav-bg { background: #2f69ab; display: flow-root; }
#navigation { float: none; }
#navigation ul { overflow: visible; }
#navigation ul li:focus-within > ul { opacity: 1; position: absolute; top: 99%; left: 0; }
#navigation ul ul li:focus-within > ul { top: 5px; left: 100%; }
#navigation a:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible { outline: 2px solid #0065aa; outline-offset: 3px; }
.newross-skip-link { position: absolute; left: 8px; top: -100px; z-index: 100000; padding: 12px 16px; background: #fff; color: #00112d; }
.newross-skip-link:focus { top: 8px; }
.navigation-container, .mobile-nav, .newross-menu-backdrop, .responsive-menu { display: none; }
.newross-home-slideshow { position: relative; }
#quickbuttonbar .quickbutton { box-sizing: border-box; }
#quickbuttonbar .quickbutton a { display: block; }
/* Three fixed homepage widget columns on desktop and tablet; one column on phones. */
#homepage-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  width: 100%;
  text-align: left;
}
#homepage-blocks .homepage-box-widget-area {
  display: block;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
}
#homepage-blocks .homepage-box-widget-area .widget-container,
#homepage-blocks .homepage-box-widget-area.left .widget-container {
  display: block;
  float: none;
  width: auto;
  max-width: none;
  margin: 0 28px 20px;
}
/* Custom header on interior pages must never exceed the content container. */
.staticheader {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.staticheader img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 0;
}
#homepage-blocks img { max-width: 100%; height: auto; }
#footer img { max-width: 100%; height: auto; }
.acf-map .marker { display: none; }
/* Calendar styles are isolated to the municipal plugin; these only align typography. */
.mcc-calendar-wrap, .mcc-upcoming-events { max-width: 100%; }

@media (max-width: 1194px) {
  *, *::before, *::after { box-sizing: border-box; }
  #wrapper { margin-top: 0; }
  body { background-attachment: scroll; }
  .navigation-container {
    display: block;
    position: sticky;
    top: 0;
    z-index: 10000;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    width: 100%;
    padding-right: 18px;
    color: #fff;
    background: #2f69ab;
    box-shadow: 0 2px 9px rgb(0 0 0 / 12%);
  }
  .newross-mobile-brand {
    color: #fff;
    font-family: Abel, Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .025em;
  }
  .newross-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border: 0;
    padding: 10px 18px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }
  .newross-menu-toggle:focus-visible,
  .newross-menu-close:focus-visible,
  .newross-submenu-toggle:focus-visible { outline: 3px solid #81b8ff; outline-offset: -3px; }
  .newross-hamburger { display: grid; gap: 5px; }
  .newross-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
  }
  .newross-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgb(4 23 43 / 58%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility 0s linear .28s;
  }
  .responsive-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    width: min(88vw, 370px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: #fff;
    color: #152c3d;
    box-shadow: 10px 0 45px rgb(0 0 0 / 18%);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s;
  }
  .navigation-container.is-open .newross-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .28s ease, visibility 0s;
  }
  .navigation-container.is-open .responsive-menu {
    visibility: visible;
    transform: translateX(0);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }
  body.newross-menu-open { overflow: hidden; }
  .newross-drawer-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 16px 18px 23px;
    border-bottom: 1px solid #e8edf1;
    background: #f6f9fc;
  }
  .newross-drawer-heading > div { display: flex; flex-direction: column; gap: 1px; }
  .newross-drawer-eyebrow { color: #5b7384; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .newross-drawer-title { color: #173d65; font-size: 23px; font-weight: 700; line-height: 1.15; }
  .newross-menu-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    background: #fff;
    color: #243d51;
    cursor: pointer;
  }
  .newross-menu-close span { font-size: 28px; line-height: 1; }
  .newross-drawer-nav { padding: 12px 13px 8px; }
  .newross-drawer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
  }
  .newross-drawer-nav li {
    list-style: none;
    margin: 2px 0;
    padding: 0;
    position: relative;
  }
  .newross-drawer-nav li > a {
    display: block;
    padding: 12px 49px 12px 13px;
    border-radius: 9px;
    color: #203f56;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
  }
  .newross-drawer-nav li > a:hover,
  .newross-drawer-nav li > a:focus-visible { color: #155d9b; background: #eef5fa; }
  .newross-drawer-nav .current-menu-item > a,
  .newross-drawer-nav .current_page_item > a { color: #12538b; background: #e8f2fb; }
  .newross-drawer-nav .sub-menu,
  .newross-drawer-nav .children { padding: 4px 0 4px 10px; margin: 0 0 6px 12px; border-left: 2px solid #dce8f1; }
  .newross-drawer-nav .sub-menu > li > a,
  .newross-drawer-nav .children > li > a { padding-left: 12px; font-size: 15px; font-weight: 500; }
  .responsive-menu ul[hidden] { display: none !important; }
  .newross-submenu-toggle {
    position: absolute;
    top: 3px;
    right: 2px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #44677f;
    cursor: pointer;
  }
  .newross-submenu-toggle:hover { background: #eaf2f8; }
  .newross-submenu-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
  }
  .newross-submenu-toggle[aria-expanded="true"] .newross-submenu-chevron { transform: translateY(2px) rotate(225deg); }
  .newross-mobile-search { margin-top: auto; padding: 18px 22px 26px; border-top: 1px solid #e8edf1; }
  .newross-mobile-search label { display: block; margin-bottom: 9px; color: #35566d; font-size: 14px; font-weight: 600; }
  .newross-mobile-search div { display: flex; gap: 8px; }
  .newross-mobile-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #aebfcb;
    border-radius: 9px;
    background: #fff;
    color: #152c3d;
    font: inherit;
    font-size: 15px;
  }
  .newross-mobile-search button {
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: #2f69ab;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  #header .navigation, #header .newross-desktop-nav-bg, #navigation, #quickmenu { display: none !important; }
  #header { margin-bottom: 0; float: none; }
  #sitesearch-narrow { display: none; }
  #main-column, #left-column { box-sizing: border-box; }
  #homepage-blocks .homepage-box-widget-area .widget-container,
  #homepage-blocks .homepage-box-widget-area.left .widget-container { margin-left: 14px; margin-right: 14px; }
  #quickbuttonbar { bottom: 7px; }
  #quickbuttonbar .quickbutton { height: auto; line-height: 1.25; min-height: 42px; vertical-align: middle; }
  #quickbuttonbar .quickbutton a { font-size: 14px; padding: 9px 3px; }
}
@media (max-width: 680px) {
  #wrapper { padding-left: 8px; padding-right: 8px; }
  #header .newross-header-facebook { right: 3px; top: 3px; }
  #header .newross-header-facebook img { width: 24px !important; height: 24px; }
  #content { word-break: normal; overflow-wrap: anywhere; }
  .entry-content { float: none; }
  .acf-map { width: 100%; }
  #left-column, #main-column { float: none; width: 100%; }
  #left-column { padding-top: 0; }
  #left-column .widget-area { display: block; }
  #left-column .widget-area .widget-container { margin: 12px 15px; }
  #main-column .entry-content .inner { margin: 17px; }
  #homepage-blocks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #homepage-blocks .homepage-box-widget-area { width: 100%; max-width: 500px; margin: 0 auto; }
  #homepage-blocks .homepage-box-widget-area .widget-container,
  #homepage-blocks .homepage-box-widget-area.left .widget-container { width: 100%; margin: 0 0 18px; max-width: none; float: none; }
  #homepage-blocks .widget-container .widget-title { text-align: left; }
  .business-listing, .organization { max-width: 100%; }
  .business-listing > div { max-width: 100% !important; }
  #main-column-front > div[style], #main-column-front .entry-content { max-width: 100%; }
  .weather, .logos { float: none; width: 100%; max-width: 100%; margin: 10px 0; }
  .logos { text-align: center; }
  #quickbuttonbar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px; padding: 4px 0 0; }
  #quickbuttonbar .quickbutton { width: auto; margin: 0; min-height: 44px; }
  .header-overlay { display: none; }
  #content p { text-align: left; }
  .linkbox, .linkbox.right { max-width: 100%; float: none; }
  #content table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
  #header .newross-header-facebook { top: 1px; right: 1px; }
  .entry-content .inner { margin: 12px; }
  .business-logo { float: none !important; margin: 0 0 8px !important; }
  .business-logo img { width: auto !important; max-width: 100% !important; height: auto !important; }
  #content img { max-width: 100% !important; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.newross-calendar-page .entry-content .inner { padding: 20px 12px; }
.newross-calendar-page .entry-content { width: 100%; }

/* 2.0.2 — deliberately designed mobile presentation, preserving desktop theme. */
@media (max-width: 1194px) {
  /* The original 950px banner is used as the mobile brand artwork instead of
     rendering a tiny duplicate underneath a generic blue toolbar. */
  #header { display: none !important; }
  .navigation-container { position: relative; z-index: 10000; }
  .mobile-nav {
    position: relative;
    display: flex;
    height: 104px;
    min-height: 104px;
    justify-content: flex-end;
    align-items: center;
    padding: 0 15px;
    background-color: #45b70b;
    background-image: url('images/header.gif');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 3px 13px rgb(18 49 18 / 10%);
  }
  .newross-mobile-brand {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(65%, 320px);
    display: block;
    z-index: 1;
  }
  .newross-mobile-brand:focus-visible { outline: 3px solid #173d65; outline-offset: -5px; }
  .newross-menu-toggle {
    position: relative;
    z-index: 2;
    min-height: 44px;
    padding: 10px 13px;
    gap: 9px;
    background: rgb(255 255 255 / 96%);
    color: #173d65;
    border: 1px solid rgb(20 65 30 / 12%);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: background-color .2s ease;
  }
  .newross-menu-toggle:hover { background: #f0f6fa; }
  .newross-hamburger span { height: 2px; }
  .newross-drawer-nav li > a { border-radius: 8px; }
  .newross-mobile-search { background: #f8fafc; }
  .staticheader { border-top-width: 5px; }
}
@media (max-width: 680px) {
  .mobile-nav {
    height: 95px;
    min-height: 95px;
    padding: 0 12px;
    /* Keep the original wordmark readable: show its left side at a useful size. */
    background-position: left top;
    background-size: auto 95px;
  }
  #wrapper { width: 100%; padding: 0; margin: 0 auto; }
  #main { display: block; width: 100%; }
  #container { width: 100%; max-width: 100%; }
  #content {
    padding: 18px 16px 0;
    font-size: 16px;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
  }
  #content p { text-align: left; line-height: 1.55; }
  #content h1 { font-size: 26px; line-height: 1.2; }
  #content h2 { font-size: 21px; line-height: 1.25; }
  #content h3 { line-height: 1.3; }
  #main-column-front > div[style] { margin: 20px 0 !important; display: block !important; }
  #main-column-front .entry-content { display: block; float: none; margin: 0; }
  /* Mobile homepage needs distinct content sections rather than 3 squeezed columns. */
  #homepage-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: left;
  }
  #homepage-blocks .homepage-box-widget-area {
    width: 100%;
    max-width: none;
    padding: 14px 0 18px;
    border-bottom: 1px solid #e3e8ec;
  }
  #homepage-blocks .homepage-box-widget-area:first-child { padding-top: 0; }
  #homepage-blocks .homepage-box-widget-area .widget-container,
  #homepage-blocks .homepage-box-widget-area.left .widget-container {
    width: 100%;
    max-width: none;
    margin: 0 0 19px;
    padding: 0;
  }
  #homepage-blocks .homepage-box-widget-area .widget-container:last-child { margin-bottom: 0; }
  #homepage-blocks .widget-container .widget-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
  }
  #homepage-blocks iframe[src*="youtube"],
  #homepage-blocks iframe[src*="vimeo"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* Make the four existing coloured links look intentional on a phone. */
  #quickbuttonbar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 4px;
    margin: 0;
    width: 100%;
    background: #fff;
  }
  #quickbuttonbar .quickbutton {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 64px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
    overflow: hidden;
  }
  #quickbuttonbar .quickbutton a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 10px;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }
  #quickbuttonbar .quickbutton a:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
  .slideshow, .newross-home-slideshow { width: 100%; max-width: 100%; }
  .newross-home-slideshow img { max-width: 100%; height: auto; }
  /* Interior-page content should come before lengthy sidebar links on phones. */
  #content:has(> #left-column) { display: flex; flex-direction: column; }
  #content > #main-column { order: 1; width: 100%; }
  #content > #left-column { order: 2; width: 100%; border-top: 1px solid #e3e8ec; margin-top: 14px; padding-top: 14px; }
  #left-column .widget-area { display: block; }
  #main-column .entry-content .inner { margin: 0 0 16px; }
  .staticheader { max-height: 195px; overflow: hidden; }
  .staticheader img { max-height: 190px; object-fit: cover; object-position: center; }
  #footer { margin-top: 22px; }
  #footer .inner { padding: 18px 16px; line-height: 1.45; }
  #footer .inner p { line-height: 1.5; }
}
@media (max-width: 380px) {
  .mobile-nav { height: 88px; min-height: 88px; background-size: auto 88px; }
  .newross-menu-toggle { padding: 10px; }
  #content { padding-right: 14px; padding-left: 14px; }
  #quickbuttonbar { gap: 8px; padding: 10px 10px 2px; }
  #quickbuttonbar .quickbutton a { font-size: 14px; }
}

@media (min-width: 681px) and (max-width: 1194px) {
  /* Tablet layout: avoid compressing event lists and video into 3 narrow columns. */
  #homepage-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #homepage-blocks .homepage-box-widget-area:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Keep the control above, rather than on top of, the original header slogan. */
  .newross-menu-toggle { align-self: flex-start; margin-top: 7px; }
}

/* 2.0.3: solid green mobile header with original New Ross logo. */
@media (max-width: 1194px) {
  .mobile-nav {
    min-height: 100px;
    height: auto;
    padding: 6px 12px;
    justify-content: space-between;
    gap: 8px;
    background: #46b70f;
    background-image: none;
  }
  .newross-mobile-brand {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    width: min(50vw, 210px);
    height: auto;
    min-width: 0;
  }
  .newross-mobile-brand picture { display: block; width: 100%; }
  .newross-mobile-logo { display: block; width: 100%; height: auto; }
  .newross-menu-toggle { flex: 0 0 auto; margin: 0; align-self: center; }
  /* All widths using the mobile navigation show quick links in two columns. */
  #quickbuttonbar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 4px;
    margin: 0;
    width: 100%;
    background: #fff;
  }
  #quickbuttonbar .quickbutton {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 64px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
    overflow: hidden;
    line-height: 1.3;
  }
  #quickbuttonbar .quickbutton a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }
  .header-overlay { display: none; }
  .newross-mobile-spotlight { display: block; margin: 0 0 22px; }
  .newross-mobile-spotlight .widget-title { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.2; color: #530707; text-align: left; }
  .newross-mobile-spotlight .widget-title a { color: #530707; text-decoration: none; }
  .newross-mobile-spotlight-entry h4 { margin-bottom: 8px; font-size: 19px; line-height: 1.3; }
  .newross-mobile-spotlight-date { color: #526170; font-size: 13px; margin-bottom: 11px; }
  .newross-mobile-spotlight-excerpt { margin-bottom: 0; line-height: 1.6; }
  #homepage-blocks .homepage-box-widget-area .newross-original-spotlight-widget { display: none; }
}
/* Extended Spotlight now appears on desktop and tablet as well as mobile. */
@media (max-width: 380px) {
  .mobile-nav { min-height: 90px; }
  .newross-mobile-brand { width: min(50vw, 180px); }
  #quickbuttonbar { gap: 8px; padding: 10px 10px 2px; }
  #quickbuttonbar .quickbutton a { font-size: 14px; }
}

/* 2.0.4 — sharp images without upscaling low-resolution thumbnails. */
/* The originals are used at their intended display size; WP picks 2x/3x
   srcset candidates whenever high-resolution uploads exist. */
#content img.newross-listing-photo,
#content img.newross-tile-photo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}
#content img.newross-detail-photo {
  display: block;
  width: auto;
  max-width: min(300px, 100%);
  height: auto;
}
#content .organization img.newross-tile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
}
@media (max-width: 680px) {
  /* Respect natural image width, never enlarge a 150px thumbnail to 350px. */
  #content .entry-content img:not(.newross-acf-image) {
    width: auto;
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 430px) {
  /* Override old high-specificity rules for tiny screens. */
  #content img.newross-listing-photo,
  #content img.newross-tile-photo { width: 150px !important; max-width: 100% !important; height: auto !important; }
  #content .organization img.newross-tile-photo { height: 150px !important; }
  #content img.newross-detail-photo { width: auto !important; max-width: min(300px, 100%) !important; height: auto !important; }
}

/* 2.0.6 replaces the broad 2.0.5 sidebar hiding rule. */

/* 2.0.6 — phone images, navigation and wrap behaviour. */
@media (max-width: 1194px) {
  /* Keep the left-column widgets, but place them after the main content. */
  #content:has(> #left-column) {
    display: flex;
    flex-direction: column;
  }
  #content > #main-column {
    float: none;
    flex: 0 0 auto;
    order: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  #content > #left-column {
    display: block !important;
    flex: 0 0 auto;
    float: none;
    order: 2;
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
    margin-top: 0;
  }
  #left-column .widget-area { display: block !important; }

  /* Hide *navigation widgets* only, not weather, notices, images, text, etc.
     Also cover classic page menus and Gutenberg navigation blocks. */
  #content:not(.newross-main-content-empty) #left-column .widget-container:is(.widget_nav_menu,.widget_pages,.widget_subpages,.widget_page_menu),
  #content:not(.newross-main-content-empty) #left-column .widget-container:has(> .menu-main-menu-container),
  #content:not(.newross-main-content-empty) #left-column .widget-container:has(> ul.side-menu),
  #content:not(.newross-main-content-empty) #left-column .widget_block:has(.wp-block-navigation),
  #content:not(.newross-main-content-empty) #left-column .widget-area > nav,
  #content:not(.newross-main-content-empty) #left-column .widget-area > ul.side-menu {
    display: none !important;
  }
  /* Mixed-purpose widgets keep their other content visible. */
  #content:not(.newross-main-content-empty) #left-column .widget-container ul.side-menu,
  #content:not(.newross-main-content-empty) #left-column .widget-container .menu-main-menu-container {
    display: none !important;
  }
  /* The menu remains available on empty landing pages after the page heading. */
  #content.newross-main-content-empty #left-column .widget-container:is(.widget_nav_menu,.widget_pages,.widget_subpages,.widget_page_menu),
  #content.newross-main-content-empty #left-column .widget-container:has(> ul.side-menu),
  #content.newross-main-content-empty #left-column .widget-container ul.side-menu,
  #content.newross-main-content-empty #left-column .widget-container .menu-main-menu-container {
    display: block !important;
  }
}

@media (max-width: 680px) {
  /* Remove traditional floated illustrations and captions on phone screens.
     Full-width images get their own row and text resumes below them. */
  #main-column .entry-content :is(.alignleft,.alignright,.aligncenter,.alignnone,.wp-caption,.wp-block-image),
  #main-column-front .entry-content :is(.alignleft,.alignright,.aligncenter,.alignnone,.wp-caption,.wp-block-image),
  #content .business-listing .business-logo {
    float: none !important;
    clear: both !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
  }
  /* Leaflet tiles need their own exact 128px/256px sizing: do not stretch
     them with the general mobile content-image rule at 680px and below. */
  #main-column .entry-content img:not(.business-icon):not(.emoji):not(.wp-smiley):not(.avatar):not(.leaflet-tile),
  #main-column-front .entry-content img:not(.business-icon):not(.emoji):not(.wp-smiley):not(.avatar):not(.leaflet-tile),
  #content img.newross-listing-photo,
  #content img.newross-tile-photo,
  #content img.newross-detail-photo {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain;
  }
  #main-column .entry-content .wp-caption,
  #main-column .entry-content figure,
  #main-column-front .entry-content .wp-caption,
  #main-column-front .entry-content figure {
    max-width: 100% !important;
  }
  /* Preserve tiny social/media icons at their native resolution. */
  #content .business-listing img.business-icon,
  #content img.emoji,
  #content img.wp-smiley,
  #content img.avatar {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  /* Inline floated wrappers in legacy directory templates. */
  #content .business-listing { display: block; overflow: visible; }
  #content .business-listing::after { content: ''; display: table; clear: both; }
  #content .business-listing .newross-listing-image-area,
  #content .business-listing .newross-listing-details {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }
  #content .business-listing .newross-listing-image-area:empty { display: none !important; }
  #content .organization { display: block; width: 100% !important; margin: 0 0 20px; }
  #content .organization .object { display: block; width: 100%; }
  #content .organization img.newross-tile-photo { height: auto !important; }
  /* Content typography is no longer squeezed alongside floated images. */
  #main-column .entry-content p,
  #main-column-front .entry-content p { clear: none; }
}

/* v2.0.7 — mobile-only contextual navigation on blank landing pages. */
.newross-mobile-subpages { display: none; }
@media (max-width: 1194px) {
  /* Replace only the redundant sidebar menu. All other left-column widgets stay visible. */
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-container:is(.widget_nav_menu,.widget_pages,.widget_subpages,.widget_page_menu),
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-container:has(> .menu-main-menu-container),
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-container:has(> ul.side-menu),
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget_block:has(.wp-block-navigation),
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-area > nav,
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-area > ul.side-menu,
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-container ul.side-menu,
  #content.newross-main-content-empty.newross-has-mobile-subnav #left-column .widget-container .menu-main-menu-container {
    display: none !important;
  }
  #main-column .entry-content .newross-mobile-subpages {
    display: block;
    clear: both;
    background: #f7faf5;
    border: 1px solid #dce8d6;
    border-radius: 16px;
    padding: 19px 16px 18px;
    margin: 18px 0 24px;
    box-shadow: 0 5px 22px rgba(25, 48, 19, .055);
  }
  #main-column .newross-mobile-subpages-eyebrow {
    font: 700 11px/1.3 Arial, sans-serif;
    letter-spacing: .13em;
    color: #377927;
    margin-bottom: 5px;
  }
  #main-column .newross-mobile-subpages-heading {
    color: #233e26;
    font: 600 clamp(20px, 4.3vw, 25px)/1.25 Arial, sans-serif;
    margin: 0 0 15px;
    padding: 0;
  }
  #main-column .entry-content .newross-mobile-subpages-list {
    list-style: none !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 0 !important;
    margin: 0 !important;
  }
  #main-column .newross-mobile-subpages-list li {
    list-style: none !important;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
  }
  #main-column .newross-mobile-subpages-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    color: #1b3d29;
    font: 600 15px/1.35 Arial, sans-serif;
    background: #fff;
    border: 1px solid #e0e8dd;
    border-left: 4px solid #3f9523;
    border-radius: 11px;
    text-decoration: none;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(12, 36, 16, .04);
    overflow-wrap: anywhere;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  #main-column .newross-mobile-subpages-list a:hover,
  #main-column .newross-mobile-subpages-list a:focus-visible {
    border-color: #3f9523;
    box-shadow: 0 4px 13px rgba(19, 80, 29, .12);
    transform: translateY(-1px);
  }
  #main-column .newross-mobile-subpages-arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #28762b;
    background: #edf6e9;
    font: 700 18px/1 Arial, sans-serif;
  }
}
@media (min-width: 550px) and (max-width: 1194px) {
  #main-column .entry-content .newross-mobile-subpages-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #main-column .newross-mobile-subpages-list a { transition: none; }
}

/* v2.0.8 — mobile home: introduction first, icon links in two columns,
   and only the longer Spotlight excerpt (keep the original desktop widget). */
@media (max-width: 1194px) {
  /* The original short Spotlight widget may come from a nonstandard plugin;
     match the WP widget title as well as the server-added class. */
  #homepage-blocks .widget-container.newross-original-spotlight-widget,
  #homepage-blocks .widget-container:has(> .widget-title a[href*="spotlight" i]),
  #homepage-blocks .widget-container:has(> .widget-title + .spotlight) {
    display: none !important;
  }
}
@media (max-width: 1194px) {
  /* Bring the Welcome / main page post above the three widget areas. */
  #main-column-front {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  #main-column-front > .newross-homepage-intro {
    order: -1;
    width: 100%;
    min-width: 0;
    margin: 0 0 22px !important;
    padding: 0;
    display: block !important;
  }
  #main-column-front > #homepage-blocks { order: 0; }

  /* "Quick Links" is the icon list in the right-hand homepage widget,
     not the four coloured slideshow buttons. */
  #homepage-blocks .widget-container ul.links_with_icons,
  #homepage-blocks ul.links_with_icons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  #homepage-blocks .widget-container ul.links_with_icons > li,
  #homepage-blocks ul.links_with_icons > li {
    display: flex !important;
    align-items: center !important;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 9px 7px !important;
    list-style: none !important;
    border: 1px solid #e2e9e0;
    border-radius: 10px;
    background: #f8faf7;
    line-height: 1.3;
  }
  #homepage-blocks .widget-container ul.links_with_icons > li a,
  #homepage-blocks ul.links_with_icons > li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    color: #245a7d;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  #homepage-blocks .widget-container ul.links_with_icons > li a:hover,
  #homepage-blocks ul.links_with_icons > li a:hover { text-decoration: underline; }
  #homepage-blocks .widget-container ul.links_with_icons li img,
  #homepage-blocks ul.links_with_icons li img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    flex: 0 0 32px;
    display: block;
    object-fit: contain;
    margin: 0 6px 0 0 !important;
    border: 0;
  }
  #homepage-blocks ul.links_with_icons > li a img { margin-right: 0 !important; }
}
@media (max-width: 359px) {
  #homepage-blocks ul.links_with_icons { column-gap: 6px; row-gap: 7px; }
  #homepage-blocks ul.links_with_icons > li { padding: 7px 5px !important; }
  #homepage-blocks ul.links_with_icons > li a { font-size: 12.5px; }
  #homepage-blocks ul.links_with_icons li img { width: 28px !important; height: 28px !important; max-width: 28px !important; flex-basis: 28px; }
}


/* v2.0.11 — fix full-width mobile homepage bands without 100vw/negative margins.
   The containing #content box must be viewport-wide FIRST; the backgrounds
   then use ordinary width:100%, avoiding viewport units inside padded flex
   children (which caused the horizontal scrollbar in 2.0.10). */
@media (max-width: 680px) {
  body.home #content,
  body.home #container > #content,
  body.home #main-column-front {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.home #container > #content {
    padding: 18px 0 0 !important;
  }
  body.home #main-column-front {
    margin: 0;
    padding: 0;
  }
  body.home #main-column-front > .newross-homepage-intro {
    align-self: stretch;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 25px 18px 27px !important;
    border: 0;
    border-bottom: 1px solid #edf1ed;
    border-radius: 0;
    background: #f8faf8;
    box-shadow: none;
  }
  body.home #main-column-front > #homepage-blocks {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 18px !important;
    padding: 0;
  }
  body.home #homepage-blocks > .homepage-box-widget-area {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
  }
  body.home #homepage-blocks .homepage-box-widget-area > .newross-mobile-spotlight,
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container,
  body.home #homepage-blocks .homepage-box-widget-area.left > .widget-container {
    box-sizing: border-box;
    align-self: stretch;
    display: block;
    float: none;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 25px 18px 27px !important;
    border: 0;
    border-bottom: 1px solid #edf1ed;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container:nth-child(even),
  body.home #homepage-blocks .homepage-box-widget-area:nth-child(even) > .widget-container:nth-child(odd) {
    background: #f8faf9;
  }
  body.home #homepage-blocks .homepage-box-widget-area > .newross-mobile-spotlight {
    background: #fff;
  }
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container.newross-original-spotlight-widget,
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container:has(> .widget-title a[href*="spotlight" i]),
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container:has(> .widget-title + .spotlight) {
    display: none !important;
  }
  body.home #homepage-blocks .homepage-box-widget-area .widget-title,
  body.home #homepage-blocks .newross-mobile-spotlight .widget-title {
    margin-top: 0;
    margin-bottom: 12px;
  }
  body.home #homepage-blocks .homepage-box-widget-area .widget-container > :last-child,
  body.home #homepage-blocks .newross-mobile-spotlight > :last-child,
  body.home #main-column-front > .newross-homepage-intro .entry-content > :last-child {
    margin-bottom: 0;
  }
}

/* v2.0.11 / 2.0.13 — compact stacked Upcoming Events on tablet and desktop homepages.
   The municipal calendar plugin is left untouched. Force a genuine vertical
   layout, because its default carousel sets important flex-basis and overflow.
   Keep the original date badge; hide large photographs, cards, carousel
   navigation and ornamental badges only within this homepage widget. */
@media (min-width: 681px) {
  #homepage-blocks .mcc-events-carousel {
    overflow: visible !important;
    contain: none !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-events-carousel-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-events-carousel-list > .mcc-event-card {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e6ebe5 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-link {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 11px !important;
    height: auto !important;
    padding: 12px 0 !important;
    text-decoration: none !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-image-wrap {
    position: static !important;
    width: 48px !important;
    height: 51px !important;
    min-height: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-picture,
  #homepage-blocks .mcc-events-carousel .mcc-event-card-image,
  #homepage-blocks .mcc-events-carousel .mcc-event-card-placeholder,
  #homepage-blocks .mcc-events-carousel .mcc-event-card-categories,
  #homepage-blocks .mcc-events-carousel .mcc-event-promoted-badge,
  #homepage-blocks .mcc-events-carousel .mcc-events-carousel-footer {
    display: none !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-date {
    position: static !important;
    display: flex !important;
    width: 48px !important;
    min-width: 0 !important;
    min-height: 51px !important;
    height: auto !important;
    padding: 6px 3px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #f0f5ec !important;
    color: #28592d !important;
    box-shadow: none !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-month {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-day {
    margin-top: 3px !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-content {
    padding: 0 !important;
    min-width: 0;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-title {
    margin: 0 0 4px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.32 !important;
    color: #193d57 !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-event-card-location,
  #homepage-blocks .mcc-events-carousel .mcc-event-card-time {
    margin: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #4e5b62 !important;
  }
  #homepage-blocks .mcc-events-carousel .mcc-view-calendar {
    margin: 12px 0 0 !important;
    font-size: 13px !important;
  }
}


/* v2.0.12 — make desktop Upcoming Events use the available widget column.
   Black Studio TinyMCE wraps the shortcode in a generic WordPress widget.
   Target ONLY those widgets containing the municipal calendar, so other
   homepage text widgets and all phone/tablet styling remain unchanged. */
@media (min-width: 681px) {
  #homepage-blocks .homepage-box-widget-area > .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel),
  #homepage-blocks .homepage-box-widget-area.left > .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel) {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 8px;
    margin-right: 8px;
    padding: 0;
  }
  #homepage-blocks .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel) .textwidget {
    margin: 0;
    padding: 0;
  }
  #homepage-blocks .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel) .textwidget > p:has(.mcc-events-carousel) {
    margin: 0;
    padding: 0;
  }
  #homepage-blocks .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel) .mcc-events-carousel-header {
    margin-bottom: 8px;
  }
  #homepage-blocks .widget-container.widget_black_studio_tinymce:has(.mcc-events-carousel) .mcc-events-carousel-header:empty {
    display: none;
  }
}


/* v2.0.28 — fix the slideshow's fixed 950px inner width when the browser is
   resized across the 1194/1195px breakpoint. The legacy table layout and slider
   image dimensions can otherwise expose an empty strip on the right. Constrain
   the whole slide chain to its containing slideshow without changing the
   desktop site's established centred layout. */
@media (max-width: 1194px) {
  body.home .newross-home-slideshow {
    display: flow-root;
    overflow: hidden;
    box-sizing: border-box;
  }
  body.home .newross-home-slideshow :is(.rslides_container, #slider, .rslides) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  body.home .newross-home-slideshow .rslides > li {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.home .newross-home-slideshow .rslides img {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Keep the v2.0.27 edge-to-edge iPad slide treatment; only the slideshow
   bleeds beyond the tablet wrapper, not the body content. */
@media (min-width: 681px) and (max-width: 1194px) {
  body.home .newross-home-slideshow {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* v2.0.13 — iPad / tablet layout improvements (681–1194px).
   The menu breakpoint now matches the available horizontal room for the legacy
   desktop navigation. Two deliberate widget columns prevent narrow text,
   calendar clipping and inconsistent old-widget margins. */
@media (min-width: 681px) and (max-width: 1194px) {
  #wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 970px;
    padding-inline: clamp(12px, 2.2vw, 20px);
    margin-inline: auto;
  }
  #main, #container, #content, #main-column-front { box-sizing: border-box; min-width: 0; max-width: 100%; }
  #content { width: 100%; }
  .mobile-nav {
    box-sizing: border-box;
    min-height: 102px;
    padding: 10px clamp(18px, 3vw, 32px);
  }
  .newross-mobile-brand { width: min(42vw, 238px); }
  .newross-menu-toggle { min-height: 46px; padding: 11px 18px; }

  /* Welcome comes first, with a light band instead of the old 40px margins. */
  body.home #main-column-front > .newross-homepage-intro {
    box-sizing: border-box;
    align-self: stretch;
    display: flow-root !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 18px !important;
    padding: 20px clamp(14px, 2.5vw, 24px) 18px !important;
    border-bottom: 1px solid #e5ece5;
    background: #f8faf8;
  }
  body.home .newross-homepage-intro .entry-content { display: block; float: none; width: 100%; min-width: 0; margin: 0; }
  body.home .newross-homepage-intro :last-child { margin-bottom: 0; }

  #homepage-blocks {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 0;
    row-gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 24px;
    padding: 0;
  }
  #homepage-blocks > .homepage-box-widget-area {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 clamp(8px, 2vw, 18px);
  }
  #homepage-blocks > .homepage-box-widget-area:first-child:not(:last-child) {
    border-right: 1px solid #e8ede8;
  }
  /* The third widget area spans the row rather than becoming a very narrow column. */
  #homepage-blocks > .homepage-box-widget-area:last-child:nth-child(odd):not(:first-child) {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid #e8ede8;
  }
  #homepage-blocks .homepage-box-widget-area > .widget-container,
  #homepage-blocks .homepage-box-widget-area.left > .widget-container {
    box-sizing: border-box;
    display: block;
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
  }
  #homepage-blocks .homepage-box-widget-area .widget-title {
    margin: 0 0 13px;
    line-height: 1.22;
    text-align: left;
  }
  #homepage-blocks .homepage-box-widget-area > .newross-mobile-spotlight {
    margin: 0 0 22px;
    padding: 0;
  }
  #homepage-blocks .widget-container ul.links_with_icons > li,
  #homepage-blocks ul.links_with_icons > li { padding: 10px !important; }
  #homepage-blocks .widget-container ul.links_with_icons > li a,
  #homepage-blocks ul.links_with_icons > li a { font-size: 14px; }

  /* Single-column interior content on tablets; no squeezed 21% sidebar. */
  body:not(.home) #container > #content { padding: 17px clamp(10px, 2vw, 22px) 8px; }
  #main-column .entry-content .inner { margin: 12px 0 18px; }
  #left-column { padding: 12px 0 0; }
  #left-column .widget-area .widget-container { margin: 0 0 20px; }
  #content :is(iframe, video, embed, object) { max-width: 100%; }
  #content .wp-block-table { max-width: 100%; overflow-x: auto; }

  /* Footer widgets remain in a tidy, predictable second column on iPad. */
  #footer .inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 230px);
    column-gap: 22px;
    row-gap: 10px;
    padding: 20px clamp(12px, 2.4vw, 24px);
  }
  #footer #site-info { grid-column: 1; grid-row: 1 / span 2; min-width: 0; overflow-wrap: anywhere; }
  #footer .weather { grid-column: 2; float: none; width: 100%; max-width: 100%; margin: 0; }
  #footer .logos { grid-column: 2; float: none; width: 100%; max-width: 100%; margin: 0; }
  #footer .logos img { max-width: 100%; height: auto; }
}
@media (min-width: 880px) and (max-width: 1194px) {
  #quickbuttonbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #quickbuttonbar .quickbutton, #quickbuttonbar .quickbutton a { min-height: 58px; }
  #homepage-blocks .widget-container ul.links_with_icons,
  #homepage-blocks ul.links_with_icons { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}


/* v2.0.16 — vertically centre homepage Quick Link text beside its icon.
   Supports icon images inside the link or as a sibling of the link. */
@media (min-width: 681px) {
  #homepage-blocks ul.links_with_icons > li,
  #homepage-blocks .widget-container ul.links_with_icons > li {
    display: flex;
    align-items: center;
    min-width: 0;
  }
  #homepage-blocks ul.links_with_icons > li > a,
  #homepage-blocks .widget-container ul.links_with_icons > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 100%;
    min-width: 0;
    line-height: 1.35;
  }
  #homepage-blocks ul.links_with_icons > li img,
  #homepage-blocks .widget-container ul.links_with_icons > li img {
    display: block;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    flex: 0 0 30px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 10px 0 0 !important;
    border: 0;
  }
}

/* Search suggestions are shared by desktop header, iPad drawer and search page. */
.newross-suggest-field { position: relative; display: inline-block; min-width: 0; vertical-align: middle; }
.newross-suggest-field > input[type=search] { max-width: 100%; }
.newross-suggestions[hidden] { display: none !important; }
.newross-suggestions {
  position: absolute;
  z-index: 11000;
  top: calc(100% + 5px);
  right: 0;
  width: min(370px, calc(100vw - 30px));
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d1ddd6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(23 58 40 / 18%);
  text-align: left;
  box-sizing: border-box;
}
.newross-suggestions a {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  color: #254733 !important;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}
.newross-suggestions a:hover,
.newross-suggestions a[aria-selected=true] { background: #ecf4ef; color: #194b2a !important; }
.newross-suggestions small { flex: 0 0 auto; color: #647971; font-size: 12px; font-weight: 400; }
.newross-mobile-search .newross-suggest-field { display: block; flex: 1 1 auto; }
.newross-mobile-search .newross-suggest-field > input[type=search] { width: 100%; }
.newross-mobile-search .newross-suggestions { left: 0; right: 0; width: 100%; }
#sitesearch-narrow .newross-suggestions { left: auto; right: 0; }
@media (max-width: 680px) {
  .newross-suggestions { max-height: 260px; }
}


/* v2.0.16 — one extended Spotlight across desktop, iPad and mobile. The
   original short widget is suppressed in PHP; these are defensive fallbacks
   for widget providers that bypass the standard WordPress widget callback. */
body.home #homepage-blocks .newross-mobile-spotlight {
  display: block;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
body.home #homepage-blocks .newross-mobile-spotlight .widget-title {
  margin: 0 0 13px;
  color: #530707;
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.25;
  text-align: left;
}
body.home #homepage-blocks .newross-mobile-spotlight .widget-title a {
  color: inherit;
  text-decoration: none;
}
body.home #homepage-blocks .newross-mobile-spotlight-entry h4 {
  margin: 0 0 9px;
  line-height: 1.35;
  font-size: 18px;
}
body.home #homepage-blocks .newross-mobile-spotlight-entry h4 a {
  text-decoration: none;
}
body.home #homepage-blocks .newross-mobile-spotlight-entry h4 a:hover,
body.home #homepage-blocks .newross-mobile-spotlight .widget-title a:hover { text-decoration: underline; }
body.home #homepage-blocks .newross-mobile-spotlight-date {
  color: #526170;
  font-size: 13px;
  margin: 0 0 9px;
}
body.home #homepage-blocks .newross-mobile-spotlight-excerpt {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.home #homepage-blocks .homepage-box-widget-area > .widget-container.newross-original-spotlight-widget,
body.home #homepage-blocks .homepage-box-widget-area > .widget-container:has(> .widget-title a[href*="spotlight" i]),
body.home #homepage-blocks .homepage-box-widget-area > .widget-container:has(> .widget-title + .spotlight) {
  display: none !important;
}


/* v2.0.17 — consistent Spotlight/widget gutters and restrained desktop teaser.
   On desktop, all homepage sections now align on the same column padding.
   Tablets retain their established two-column padding; phones keep their
   existing full-width section bands. */
.newross-spotlight-preview-long { display: none; }
.newross-spotlight-preview-short { display: inline; }
@media (min-width: 1195px) {
  body.home #homepage-blocks > .homepage-box-widget-area {
    box-sizing: border-box;
    padding-inline: 16px;
  }
  body.home #homepage-blocks .homepage-box-widget-area > .widget-container,
  body.home #homepage-blocks .homepage-box-widget-area.left > .widget-container,
  body.home #homepage-blocks .homepage-box-widget-area > .newross-mobile-spotlight {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
  }
  body.home #homepage-blocks .newross-mobile-spotlight-excerpt {
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
  }
  body.home #homepage-blocks .newross-mobile-spotlight-entry h4 {
    font-size: 19px;
    line-height: 1.3;
  }
  body.home #homepage-blocks .newross-mobile-spotlight-date {
    margin-bottom: 8px;
  }
}
@media (max-width: 1194px) {
  /* Extended preview remains available on iPads and phones. */
  .newross-spotlight-preview-short { display: none; }
  .newross-spotlight-preview-long { display: inline; }
}
/* Keep the complete Read more action together on narrow desktop columns. */
body.home #homepage-blocks .newross-mobile-spotlight-excerpt > a {
  display: inline-block;
  white-space: nowrap;
}
/* Avoid fixed-width embeds forcing asymmetric widget spacing or overflow. */
body.home #homepage-blocks .widget-container :is(iframe, video, embed, object) {
  max-width: 100%;
}
body.home #homepage-blocks .widget-container :is(.wp-block-embed, .wp-block-embed__wrapper, .fluid-width-video-wrapper) {
  box-sizing: border-box;
  max-width: 100%;
}


/* v2.0.20 — photo-first bulleted lists
   WordPress caption/figure markup at the start of an <li> can push the native
   marker down alongside the caption.  Keep the list semantics, suppress only
   that misplaced marker, and draw a decorative dot by the first text paragraph.
   Regular lists and lists without a following text paragraph are untouched.
   Scoped to front-end article content, never menu/widget navigation. */
@supports selector(li:has(> figure:first-child)) {
  #content .entry-content ul > li:has(> :is(figure, .wp-caption, .wp-block-image, .wp-block-gallery, img):first-child):has(> p)::marker,
  #content .entry-content ul > li:has(> a:first-child > img):has(> p)::marker,
  #content .entry-content ul > li:has(> p:first-child img):has(> p:first-child + p)::marker {
    content: '';
  }

  #content .entry-content ul > li:has(> :is(figure, .wp-caption, .wp-block-image, .wp-block-gallery, img):first-child) > p:first-of-type,
  #content .entry-content ul > li:has(> a:first-child > img) > p:first-of-type,
  #content .entry-content ul > li:has(> p:first-child img) > p:first-child + p {
    position: relative;
  }

  #content .entry-content ul > li:has(> :is(figure, .wp-caption, .wp-block-image, .wp-block-gallery, img):first-child) > p:first-of-type::before,
  #content .entry-content ul > li:has(> a:first-child > img) > p:first-of-type::before,
  #content .entry-content ul > li:has(> p:first-child img) > p:first-child + p::before {
    content: '';
    position: absolute;
    left: -1.1em;
    top: .67em;
    width: .3em;
    height: .3em;
    border-radius: 50%;
    background: currentColor;
    pointer-events: none;
  }
}

/* v2.0.29 — match the homepage content panel to the full-width slideshow.
   681–1194px includes portrait/landscape tablets and narrow desktop windows.
   Previously #wrapper retained its 970px max-width and horizontal padding,
   leaving the slideshow full bleed but inset white gutters around #main.
   Limit this to the front page; interior pages retain their reading measure. */
@media (min-width: 681px) and (max-width: 1194px) {
  body.home #wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  body.home #main,
  body.home #container,
  body.home #container > #content,
  body.home #main-column-front {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  /* The slideshow no longer requires the former negative-margin bleed. */
  body.home .newross-home-slideshow {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* v2.0.30 — the tablet header, menu logic and homepage layout now share a
   single 1194px transition. Keep the subtle Welcome background behind ALL
   the text, not just the first row of a collapsed floated content element. */
@media (min-width: 681px) and (max-width: 1194px) {
  body.home #main-column-front > .newross-homepage-intro {
    display: flow-root !important;
  }
  body.home .newross-homepage-intro .entry-content {
    display: block;
    float: none;
    margin-bottom: 0;
  }
}


/* v2.0.31 — apply the tablet width correction to EVERY interior template.
   v2.0.29 fixed only body.home, leaving sub-pages, search, calendar and
   directories in the old 970px padded wrapper while the mobile header
   already occupied the full viewport. Keep the text's own reading gutters;
   remove only the extra OUTSIDE wrapper gutters (681–1194px). */
@media (min-width: 681px) and (max-width: 1194px) {
  body:not(.home) #wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  body:not(.home) #main,
  body:not(.home) #container,
  body:not(.home) #container > #content,
  body:not(.home) #main-column-front {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  /* Preserve a comfortable inner reading margin rather than inset the
     whole white content panel. This covers normal pages and archives. */
  body:not(.home) #container > #content {
    padding: 17px clamp(14px, 2.2vw, 24px) 8px;
  }
  /* The independent interior-page header image must align with the same
     full-width content panel instead of inheriting a 970px width. */
  body:not(.home) .staticheader {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* On interior pages the original header.gif duplicates the responsive New Ross
   logo. Hide ONLY that default banner when the mobile header is active;
   independently chosen/customized header images remain visible. */
@media (max-width: 1194px) {
  .staticheader.newross-staticheader-brand { display: none; }
}
