/* Shared responsive adjustments; original branding and page content are retained. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { overflow-wrap: break-word; }
img, video, canvas, svg { max-width: 100%; }
video, .entry-content img, .widget img { height: auto; }
iframe, object, embed { max-width: 100%; }
iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.panel-grid-cell, .so-panel, .panel-widget-style, .content-area, .widget-area { min-width: 0; }
.entry-content a, .contact-email, .title-post, .sow-headline { overflow-wrap: anywhere; }
.roll-button, .ow-button-base a { max-width: 100%; white-space: normal; }
button, input, select, textarea { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #099cd6; outline-offset: 4px;
}
.container { max-width: 100%; }
@media (min-width: 1440px) {
  .container { width: min(88%, 1440px); }
  .single-post .entry-content { max-width: 85ch; }
}

/* The legacy menu only supported mouse clicks; this menu supports touch and keys. */
#masthead .header-wrap .col-md-8 { position: static; }
#tss-navigation { display: block; float: none; padding-top: 24px; }
#tss-navigation ul { list-style: none; margin: 0; padding: 0; }
#tss-navigation .menu { display: flex; justify-content: center; align-items: center; gap: 6px 24px; flex-wrap: wrap; }
#tss-navigation li { position: relative; }
#tss-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; font-family: "Open Sans",sans-serif; font-size: 14px; line-height: 1.5; text-decoration: none; }
#tss-navigation a:hover { color: #099cd6; }
#tss-navigation .menu-item-has-children > a { padding-right: 24px; }
#tss-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 220px; max-width: calc(100vw - 32px); background: #1c1c1c; z-index: 1001; box-shadow: 0 8px 20px #0003; }
#tss-navigation .menu > li:last-child .sub-menu { left: auto; right: 0; }
#tss-navigation .sub-menu a { justify-content: flex-start; text-align: left; padding: 12px 18px; border-top: 1px solid #303030; }
#tss-navigation li.tss-submenu-open > .sub-menu { display: block; }
.tss-submenu-toggle { position: absolute; top: 0; right: -6px; width: 30px; min-height: 44px; padding: 0; border: 0; background: transparent; color: white; line-height: 1; }
.tss-submenu-toggle:hover, .tss-submenu-toggle:focus { background: #ffffff16; color: white; }
.tss-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.tss-menu-toggle { display: none; }
@media (hover: hover) and (min-width: 1025px) {
  #tss-navigation li:hover > .sub-menu { display: block; }
}
#tss-navigation li:focus-within > .sub-menu { display: block; }

/* Bound hero height and text so short laptop screens and tall phones both fit. */
#slideshow.header-slider { height: clamp(620px, 100svh, 1000px) !important; }
#slideshow .slides-control, #slideshow .slides-container, #slideshow .slide-item { height: 100% !important; }
#slideshow .text-slider-section { top: 54%; bottom: auto; min-height: 0; padding: 0 24px; transform: translateY(-40%); }
#slideshow .maintitle { font-size: clamp(30px, 4.3vw, 62px); line-height: 1.15; }
#slideshow .subtitle { max-width: 1100px; margin: 0 auto; font-size: clamp(18px, 2.25vw, 32px); line-height: 1.4; padding: 20px 0 36px; }

/* A booking calendar must never be squeezed into a narrow column. */
.tss-demo-booking, .tss-demo-booking .calendly-inline-widget { min-width: 0 !important; width: 100%; max-width: 100%; }
.tss-demo-booking .calendly-inline-widget { height: 780px !important; }
.tss-demo-booking { scroll-margin-top: 24px; }
.tss-booking-fallback a { display: inline-block; padding: 8px; }
.tss-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tss-table-scroll:focus-visible { outline: 3px solid #099cd6; }
.tss-pdf-document iframe { width: 100%; height: min(80vh, 900px); min-height: 420px; border: 1px solid #ddd; }
.tss-pdf-download { display: inline-block; padding: 12px 0; overflow-wrap: anywhere; }
#product_listing .classic-grid.archive-listing { width: calc(25% - 16px); margin: 8px; vertical-align: top; }
#product_listing .classic-grid.archive-listing h3 { overflow-wrap: anywhere; }
#cookie-notice .cookie-notice-container { max-width: 1440px; margin-inline: auto; padding: 12px 24px; line-height: 1.5; }
#cookie-notice .cn-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 8px; }

@media (max-width: 1024px) {
  #masthead.site-header, #masthead.site-header.float-header { position: absolute; padding: 16px 0; }
  #masthead .header-wrap .row { display: flex; align-items: center; justify-content: space-between; margin: 0; }
  #masthead .header-wrap .col-md-4 { width: auto; flex: 1; margin: 0; padding: 0; text-align: left; }
  #masthead .header-wrap .col-md-8 { width: auto; flex: 0 0 52px; padding: 0; }
  #masthead .site-logo { max-height: 70px; width: auto; max-width: min(65vw, 260px); margin: 0; }
  .tss-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff60; background: #1c1c1c; color: white; font-size: 28px; line-height: 1; }
  #tss-navigation { position: absolute; top: 100%; left: 0; right: 0; padding: 0; width: 100%; background: #1c1c1c; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
  .tss-nav-ready #tss-navigation { display: none; }
  .tss-nav-ready #tss-navigation.tss-menu-open { display: block; }
  #tss-navigation .menu { display: block; }
  #tss-navigation a { justify-content: flex-start; text-align: left; min-height: 48px; padding: 12px 24px; border-top: 1px solid #303030; }
  #tss-navigation .menu-item-has-children > a { padding-right: 72px; }
  #tss-navigation .sub-menu, #tss-navigation .menu > li:last-child .sub-menu { position: static; width: 100%; max-width: none; box-shadow: none; background: #252525; }
  #tss-navigation .sub-menu a { padding: 12px 36px; }
  #tss-navigation li:focus-within > .sub-menu { display: none; }
  #tss-navigation li.tss-submenu-open > .sub-menu { display: block; }
  .tss-submenu-toggle { right: 12px; width: 48px; min-height: 48px; }
  .header-image { height: 110px !important; }
  #slideshow.header-slider { height: clamp(520px, 90svh, 820px) !important; }
  #slideshow .text-slider-section { top: 50%; transform: translateY(-30%); }
  .tss-booking-row { flex-direction: column !important; }
  .tss-booking-row > .panel-grid-cell { width: 100% !important; max-width: 100%; margin-bottom: 28px !important; }
  .tss-booking-row .panel-widget-style { padding-left: 0 !important; padding-right: 0 !important; }
  .menu-footer-menu-container { margin-left: 0; }
  #product_listing .classic-grid.archive-listing { width: calc(33.333% - 16px); }
}

@media (min-width: 641px) and (max-width: 980px) {
  .tss-columns-3, .tss-columns-4 { flex-direction: row !important; flex-wrap: wrap; }
  .tss-columns-3 > .panel-grid-cell, .tss-columns-4 > .panel-grid-cell { width: calc(50% - 15px) !important; margin-bottom: 30px !important; }
}
@media (max-width: 780px) {
  .container { width: 100%; padding-left: 20px; padding-right: 20px; }
  .panel-grid .panel-grid-cell { padding-left: 0 !important; padding-right: 0 !important; }
  .panel-grid > .panel-row-style { padding-top: 40px !important; padding-bottom: 40px !important; }
  .panel-row-style.mob-pad-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  .panel-grid-cell .panel-widget-style { padding-left: 0 !important; padding-right: 0 !important; }
  .panel-grid-cell .widget-title, .entry-title { font-size: clamp(25px, 5vw, 32px); line-height: 1.25; }
  h1.sow-headline, h2.sow-headline { font-size: clamp(26px, 6vw, 36px) !important; line-height: 1.25 !important; }
  .siteorigin-widget-tinymce { overflow-wrap: anywhere; }
  .roll-button, .ow-button-base a { min-height: 44px; font-size: 14px; }
  input, select, textarea { font-size: 16px; }
  .tss-demo-booking .calendly-inline-widget { height: 860px !important; }
  .content-area .post-wrap { padding-right: 0; }
  .footer-widgets { padding-top: 36px !important; }
  .footer-widgets .widget { margin-bottom: 28px; }
  .footer-widgets .widget-title, .footer-widgets .widget, .footer-widgets .contact-address, .footer-widgets .contact-phone, .footer-widgets .contact-email { text-align: left; }
  .footer-widgets a { display: inline-block; padding-block: 5px; }
  #product_listing .classic-grid.archive-listing { width: calc(50% - 16px); }
  #tribe-events-content table.tribe-events-calendar { min-width: 650px; }
}
@media (max-width: 640px) {
  .tss-columns-2, .tss-columns-3, .tss-columns-4, .tss-columns-5 { flex-direction: column !important; }
  .panel-grid .panel-grid-cell { width: 100% !important; margin-bottom: 24px !important; }
  .panel-grid .panel-grid-cell:last-child { margin-bottom: 0 !important; }
  #masthead .site-logo { max-height: 58px; }
  #slideshow .text-slider-section { padding: 0 20px; }
  #slideshow .subtitle { padding: 18px 0 28px; }
  #slideshow .text-slider { margin-bottom: 12px; }
  .entry-content img.alignleft, .entry-content img.alignright { float: none; display: block; margin: 0 auto 20px; }
  #cookie-notice .cookie-notice-container { padding: 12px 18px; }
  #cookie-notice #cn-notice-text { display: block; }
  #cookie-notice { max-height: 45dvh; overflow-y: auto; }
}
@media (max-width: 380px) {
  .container { padding-left: 16px; padding-right: 16px; }
  #product_listing .classic-grid.archive-listing { width: calc(100% - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orches-animation { animation: none !important; opacity: 1 !important; }
  .slide-item, .panel-row-style { background-attachment: scroll !important; }
}
