/*
 * Modus visual preset.
 * Source of truth: Joomla yoo_chester / styles/dark.
 * The approved homepage news grid is intentionally not overridden here.
 */
:root{
  --container:1190px;
  --pad:15px;
  --border:#d8d8d8;
  --text:#000;
  --muted:#666;
  --link:#2d5a71;
  --modus-brand:#31859d;
  --modus-link-hover:#102028;
}

html{
  font-size:16px;
  scroll-behavior:smooth;
}
body.sad337-preset-modus{
  margin:0;
  color:#000;
  background:#fff url("../images/volna.jpg") no-repeat fixed 50% 0/1920px 1000px;
  font:400 16px/20px "Open Sans",Arial,sans-serif;
  -webkit-text-size-adjust:100%;
}
body.sad337-preset-modus a{
  color:#2d5a71;
  text-decoration:none;
}
body.sad337-preset-modus a:hover,
body.sad337-preset-modus a:focus{
  color:#102028;
  text-decoration:underline;
}
body.sad337-preset-modus :focus-visible{
  outline:2px solid #31859d;
  outline-offset:2px;
}
body.sad337-preset-modus h1,
body.sad337-preset-modus h2,
body.sad337-preset-modus h3,
body.sad337-preset-modus h4,
body.sad337-preset-modus h5,
body.sad337-preset-modus h6{
  margin:0 0 10px;
  color:#444;
  font-family:"Play","Open Sans",sans-serif;
  font-weight:300;
  text-transform:none;
}
body.sad337-preset-modus h1{
  color:#182657;
  font-size:30px;
  line-height:32px;
  font-weight:400;
  padding-bottom:10px;
}
body.sad337-preset-modus h2{
  font-size:26px;
  line-height:32px;
  padding-bottom:10px;
}
body.sad337-preset-modus h3{
  font-size:24px;
  line-height:28px;
  padding-bottom:4px;
}
body.sad337-preset-modus h4{
  font-size:20px;
  line-height:22px;
  font-weight:600;
  padding-bottom:4px;
}
body.sad337-preset-modus h5{
  font-size:14px;
  line-height:16px;
  font-weight:600;
  padding-bottom:4px;
}
body.sad337-preset-modus h6{
  font-size:12px;
  line-height:14px;
  font-weight:600;
  padding-bottom:4px;
}
body.sad337-preset-modus p,
body.sad337-preset-modus ul,
body.sad337-preset-modus ol{margin-top:0}
body.sad337-preset-modus img{vertical-align:middle}

body.sad337-preset-modus .site-container{
  max-width:1190px;
  width:calc(100% - 30px);
}

/* Joomla top-a / logo-box */
body.sad337-preset-modus .site-header{
  border:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .logo-box,
body.sad337-preset-modus .site-top{
  border:0;
  background:transparent;
}
body.sad337-preset-modus .site-top{
  padding:0;
}
body.sad337-preset-modus .site-top__inner{
  min-height:0;
  padding:18px 0 20px;
}
body.sad337-preset-modus .site-top-banner{
  align-items:flex-start;
  color:#818181;
  font-size:16px;
  line-height:20px;
}
body.sad337-preset-modus .site-top-banner__col{
  padding:0 15px;
}
body.sad337-preset-modus .site-top-banner__col:first-child{padding-left:0}
body.sad337-preset-modus .site-top-banner__col:last-child{padding-right:0}
body.sad337-preset-modus .site-top-banner h4{
  margin:0 0 10px;
  padding:0 0 4px;
  color:#444;
  font:600 20px/22px "Play","Open Sans",sans-serif;
}
body.sad337-preset-modus .site-top-banner a{color:#2d5a71}
body.sad337-preset-modus .site-top-banner__col--contact a img{
  width:auto;
  max-width:32px;
}
body.sad337-preset-modus .site-top-banner__extra{
  background:transparent;
}

/* Sticky Chester navbar */
body.sad337-preset-modus .tm-navbar-container{
  position:sticky;
  top:0;
  z-index:1030;
  border:0;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
body.sad337-preset-modus.admin-bar .tm-navbar-container{top:32px}
body.sad337-preset-modus .site-navbar__inner{
  position:relative;
  display:flex;
  min-height:52px;
  justify-content:center;
  padding:0;
}
body.sad337-preset-modus .primary-nav{
  width:auto;
  margin-right:96px;
}
body.sad337-preset-modus .primary-nav > ul{
  flex-wrap:nowrap;
  gap:0;
  justify-content:flex-start;
}
body.sad337-preset-modus .primary-nav > ul > li{
  position:relative;
  margin:0;
}
body.sad337-preset-modus .primary-nav > ul > li:not(:last-child){
  margin-right:8px;
}
body.sad337-preset-modus .primary-nav > ul > li > a{
  display:block;
  height:32px;
  margin:10px 0;
  padding:0 12px;
  border:1px solid #31859d;
  border-radius:12px;
  background:#fff;
  color:#444;
  font:400 14px/30px Verdana,Arial,sans-serif;
  text-transform:uppercase;
  white-space:nowrap;
  transition:background-color .2s,color .2s;
}
body.sad337-preset-modus .primary-nav > ul > li.menu-item-has-children > a::after{
  content:"";
}
body.sad337-preset-modus .primary-nav > ul > li:hover > a,
body.sad337-preset-modus .primary-nav > ul > li:focus-within > a,
body.sad337-preset-modus .primary-nav > ul > li.current-menu-item > a,
body.sad337-preset-modus .primary-nav > ul > li.current-menu-ancestor > a,
body.sad337-preset-modus .primary-nav > ul > li.current_page_item > a{
  border-color:#31859d;
  background:#31859d;
  color:#fff;
  text-decoration:none;
}
body.sad337-preset-modus .primary-nav .sub-menu{
  top:calc(100% - 1px);
  width:300px;
  min-width:300px;
  padding:10px 20px;
  border:0;
  border-radius:12px;
  background:#fff;
  box-shadow:0 0 20px 0 rgba(51,51,51,.1);
}
body.sad337-preset-modus .primary-nav .sub-menu li{margin:0}
body.sad337-preset-modus .primary-nav .sub-menu a{
  display:block;
  margin:2px 0;
  padding:5px 10px 5px 16px;
  border:1px solid #31859d;
  border-bottom-color:#006666;
  border-radius:12px;
  background:#fff;
  color:#444;
  font:400 17px/19px "Ubuntu Condensed","Open Sans",Arial,sans-serif;
  text-transform:none;
}
body.sad337-preset-modus .primary-nav .sub-menu a:hover,
body.sad337-preset-modus .primary-nav .sub-menu a:focus{
  background:#fff;
  color:#00b9b9;
  text-decoration:none;
}
body.sad337-preset-modus .primary-nav .sub-menu .current-menu-item > a{
  color:#004777;
}
body.sad337-preset-modus .tm-navbar-search{
  position:absolute;
  top:10px;
  right:0;
  width:88px;
}
body.sad337-preset-modus .tm-navbar-search .site-search__form{
  display:block;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .tm-navbar-search .site-search__field{
  width:88px;
  height:32px;
  padding:0 9px;
  border:1px solid #b8c9ce;
  border-radius:12px;
  background:#fff;
  font:400 13px/30px "Open Sans",Arial,sans-serif;
}
body.sad337-preset-modus .tm-navbar-search .site-search__submit{display:none}

/* Mobile offcanvas, visually equivalent but without Joomla overflow. */
body.sad337-preset-modus .menu-toggle{
  display:none;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2d5a71;
  font:400 15px/32px "Open Sans",Arial,sans-serif;
}
body.sad337-preset-modus .menu-toggle__icon,
body.sad337-preset-modus .menu-toggle__icon::before,
body.sad337-preset-modus .menu-toggle__icon::after{
  display:block;
  width:24px;
  height:2px;
  background:#2d5a71;
}
body.sad337-preset-modus .menu-toggle__icon{position:relative}
body.sad337-preset-modus .menu-toggle__icon::before,
body.sad337-preset-modus .menu-toggle__icon::after{
  position:absolute;
  left:0;
  content:"";
}
body.sad337-preset-modus .menu-toggle__icon::before{top:-7px}
body.sad337-preset-modus .menu-toggle__icon::after{top:7px}
body.sad337-preset-modus .site-offcanvas{
  position:fixed;
  inset:0;
  z-index:1100;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,visibility .2s;
}
body.sad337-preset-modus.nav-open{overflow:hidden}
body.sad337-preset-modus.nav-open .site-offcanvas{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
body.sad337-preset-modus .site-offcanvas__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  border:0;
  background:rgba(0,0,0,.45);
}
body.sad337-preset-modus .site-offcanvas__panel{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:min(330px,86vw);
  overflow:auto;
  padding:54px 20px 24px;
  background:#2d5a71;
  box-shadow:6px 0 20px rgba(0,0,0,.25);
  transform:translateX(-100%);
  transition:transform .25s ease;
}
body.sad337-preset-modus.nav-open .site-offcanvas__panel{transform:translateX(0)}
body.sad337-preset-modus .site-offcanvas__close{
  position:absolute;
  top:10px;
  right:14px;
  border:0;
  background:transparent;
  color:#fff;
  font:300 34px/34px Arial,sans-serif;
}
body.sad337-preset-modus .mobile-nav ul{
  margin:0;
  padding:0;
  list-style:none;
}
body.sad337-preset-modus .mobile-nav a{
  display:block;
  padding:9px 10px;
  border-bottom:1px solid rgba(255,255,255,.16);
  color:#fff;
  font-size:15px;
  line-height:21px;
}
body.sad337-preset-modus .mobile-nav a:hover,
body.sad337-preset-modus .mobile-nav a:focus{
  background:#fff;
  color:#004777;
  text-decoration:none;
}
body.sad337-preset-modus .mobile-nav .sub-menu{display:none}
body.sad337-preset-modus .mobile-nav li.is-open > .sub-menu{display:block}
body.sad337-preset-modus .mobile-nav .sub-menu a{
  padding-left:30px;
  font-size:14px;
}
body.sad337-preset-modus .mobile-nav__search{margin-top:20px}
body.sad337-preset-modus .mobile-nav__search .site-search__form{
  display:flex;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .mobile-nav__search .site-search__field{
  min-width:0;
  border-radius:4px 0 0 4px;
}
body.sad337-preset-modus .mobile-nav__search .site-search__submit{
  padding:6px 10px;
  border-radius:0 4px 4px 0;
}

/* Joomla Contactus replacement. */
body.sad337-preset-modus .modus-callback-toggle{
  position:fixed;
  top:55%;
  right:-43px;
  z-index:1020;
  padding:9px 16px;
  border:0;
  border-radius:6px 6px 0 0;
  background:#31859d;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  color:#fff;
  font:700 13px/20px "Open Sans",Arial,sans-serif;
  text-transform:uppercase;
  transform:rotate(-90deg);
  cursor:pointer;
}
body.sad337-preset-modus .modus-callback-toggle:hover,
body.sad337-preset-modus .modus-callback-toggle:focus{
  background:#2d5a71;
}
body.sad337-preset-modus .modus-callback{
  position:fixed;
  inset:0;
  z-index:1200;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,visibility .2s;
}
body.sad337-preset-modus.callback-open{
  overflow:hidden;
}
body.sad337-preset-modus.callback-open .modus-callback{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
body.sad337-preset-modus .modus-callback__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  border:0;
  background:rgba(0,0,0,.55);
}
body.sad337-preset-modus .modus-callback__dialog{
  position:relative;
  width:min(560px,calc(100% - 30px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  margin:20px auto;
  padding:25px 30px;
  border-radius:4px;
  background:#fff;
  box-shadow:0 12px 40px rgba(0,0,0,.3);
}
body.sad337-preset-modus .modus-callback__dialog h2{
  margin:0 0 20px;
  color:#31859d;
}
body.sad337-preset-modus .modus-callback__close{
  position:absolute;
  top:8px;
  right:12px;
  border:0;
  background:transparent;
  color:#777;
  font:300 32px/32px Arial,sans-serif;
  cursor:pointer;
}
body.sad337-preset-modus .modus-callback label{
  display:block;
  margin-bottom:10px;
}
body.sad337-preset-modus .modus-callback input:not([type="submit"]),
body.sad337-preset-modus .modus-callback textarea{
  width:100%;
  padding:7px 9px;
  border:1px solid #ddd;
  border-radius:3px;
}
body.sad337-preset-modus .modus-callback textarea{
  min-height:100px;
}
body.sad337-preset-modus .modus-callback input[type="submit"]{
  padding:8px 18px;
  border:1px solid #31859d;
  border-radius:4px;
  background:#31859d;
  color:#fff;
}

/* Main 7/10 + sidebar 3/10 */
body.sad337-preset-modus .site-content{
  padding:54px 0 30px;
  background:transparent;
}
body.sad337-preset-modus .breadcrumbs-wrap{
  padding:5px 0 12px;
  border:0;
  background:transparent;
}
body.sad337-preset-modus .breadcrumbs{
  color:#777;
  font-size:13px;
}
body.sad337-preset-modus .site-layout{
  grid-template-columns:minmax(250px,3fr) minmax(0,7fr);
  gap:40px;
}
body.sad337-preset-modus .site-layout > .site-sidebar{
  grid-column:1;
  grid-row:1;
}
body.sad337-preset-modus .site-layout > .site-main{
  grid-column:2;
  grid-row:1;
}
body.sad337-preset-modus .site-layout--full{
  grid-template-columns:minmax(0,1fr);
}
body.sad337-preset-modus .site-layout--full > .site-main{grid-column:1}
body.sad337-preset-modus .entry{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .entry__title{
  margin:0 0 20px;
  padding:0 0 10px;
  color:#444;
  font:400 30px/32px "Play","Open Sans",sans-serif;
}
body.sad337-preset-modus .entry__content{
  color:#000;
  font-size:16px;
  line-height:20px;
}
body.sad337-preset-modus .entry__content > h1:first-child{
  margin:0 0 10px;
  padding-bottom:10px;
  color:#444;
  font:400 30px/32px "Play","Open Sans",sans-serif;
}
body.sad337-preset-modus .entry__content h2,
body.sad337-preset-modus .entry__content h3,
body.sad337-preset-modus .entry__content h4{color:#444}
body.sad337-preset-modus .entry__content table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
body.sad337-preset-modus .entry__content th,
body.sad337-preset-modus .entry__content td{
  padding:8px;
  border:1px solid #ddd;
  vertical-align:top;
}
body.sad337-preset-modus .entry__content th{
  background:#f5f5f5;
  color:#444;
  font-weight:700;
}
body.sad337-preset-modus .entry__content input,
body.sad337-preset-modus .entry__content textarea,
body.sad337-preset-modus .entry__content select{
  max-width:100%;
  padding:7px 9px;
  border:1px solid #ddd;
  border-radius:3px;
  background:#fff;
  color:#444;
  font:400 14px/20px "Open Sans",Arial,sans-serif;
}
body.sad337-preset-modus .entry__content button,
body.sad337-preset-modus .entry__content input[type="submit"],
body.sad337-preset-modus .wpcf7-submit{
  padding:7px 14px;
  border:1px solid #31859d;
  border-radius:4px;
  background:#31859d;
  color:#fff;
  font:400 14px/20px "Open Sans",Arial,sans-serif;
  cursor:pointer;
}

/* Sidebar: Chester uk-nav-side. */
body.sad337-preset-modus .site-sidebar{
  padding-left:40px;
}
body.sad337-preset-modus .site-sidebar .sidebar-block{
  margin:0 0 15px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .site-sidebar .sidebar-block--menu .sidebar-block__title{
  display:none;
}
body.sad337-preset-modus .site-sidebar .sidebar-block__title{
  margin:0 0 8px;
  padding:0;
  border:0;
  color:#444;
  font:400 18px/24px "Play","Open Sans",sans-serif;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu,
body.sad337-preset-modus .site-sidebar .sidebar-menu ul{
  font-family:"Ubuntu Condensed","Open Sans",Arial,sans-serif;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu > li{margin:0}
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__link,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__row{
  display:flex;
  align-items:center;
  gap:0;
  margin:2px 0;
  padding:5px 0 5px 16px;
  border:1px solid #31859d;
  border-radius:12px;
  background:#fff;
  color:#222;
  font-size:17px;
  line-height:19px;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__row > .sidebar-menu__link{
  padding:0;
  color:inherit;
  font-size:inherit;
  line-height:inherit;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__link:hover,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__row:hover,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.current-menu-item > .sidebar-menu__link,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.current-menu-item > .sidebar-menu__row,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.current-menu-ancestor > .sidebar-menu__row,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.menu-item-has-children.is-open > .sidebar-menu__row{
  background:#31859d;
  color:#fff;
  text-decoration:none;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu > li > .sidebar-menu__row:hover .sidebar-menu__link,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.current-menu-item > .sidebar-menu__row .sidebar-menu__link,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.current-menu-ancestor > .sidebar-menu__row .sidebar-menu__link,
body.sad337-preset-modus .site-sidebar .sidebar-menu > li.menu-item-has-children.is-open > .sidebar-menu__row .sidebar-menu__link{
  color:#fff;
  text-decoration:none;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu__toggle{
  width:24px;
  height:19px;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu__toggle:hover{
  background:transparent;
}
body.sad337-preset-modus .site-sidebar .sidebar-menu__toggle-icon{
  width:11px;
  height:11px;
}
body.sad337-preset-modus .site-sidebar .sub-menu{
  margin:0;
  padding:5px 0 5px 15px;
}
body.sad337-preset-modus .site-sidebar .sub-menu .sidebar-menu__link{
  display:block;
  margin:2px 0;
  padding:2px 0 2px 16px;
  border:0;
  border-radius:12px;
  background:#fff;
  color:#444;
  font-size:17px;
  line-height:19px;
}
body.sad337-preset-modus .site-sidebar .sub-menu .sidebar-menu__link:hover,
body.sad337-preset-modus .site-sidebar .sub-menu .current-menu-item > .sidebar-menu__link{
  color:#008888;
  text-decoration:none;
}
body.sad337-preset-modus .site-sidebar .sidebar-block--html img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto 12px;
}
/* Joomla panels/components, excluding the approved news grid. */
body.sad337-preset-modus .uk-panel-box,
body.sad337-preset-modus .entry__content .panel-box,
body.sad337-preset-modus .entry__content [style*="border: 3px solid #31859d"]{
  padding:20px;
  border-radius:20px;
  background:#f7f8fa;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
}
body.sad337-preset-modus .sad337-gallery__item,
body.sad337-preset-modus .sad337-slideshow,
body.sad337-preset-modus details{
  border-radius:0;
}
body.sad337-preset-modus details{
  margin:0 0 10px;
  border:1px solid #ddd;
  background:rgba(255,255,255,.9);
}
body.sad337-preset-modus details > summary{
  padding:10px 15px;
  color:#2d5a71;
  font-weight:700;
  cursor:pointer;
}
body.sad337-preset-modus details > :not(summary){padding:0 15px 12px}
/* Chester .uk-slidenav: arrows appear on hover, no chrome. */
body.sad337-preset-modus .sad337-slideshow__nav{
  display:none;
  width:30px;
  height:30px;
  margin-top:-15px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:rgba(255,255,255,.7);
  font:400 30px/30px "Open Sans",Arial,sans-serif;
  text-align:center;
  text-shadow:-1px -1px 1px rgba(0,0,0,.8);
  transform:none;
}
body.sad337-preset-modus .sad337-slideshow__nav--prev{left:20px}
body.sad337-preset-modus .sad337-slideshow__nav--next{right:20px}
body.sad337-preset-modus .sad337-slideshow:hover .sad337-slideshow__nav,
body.sad337-preset-modus .sad337-slideshow:focus-within .sad337-slideshow__nav{
  display:block;
}
body.sad337-preset-modus .sad337-slideshow__nav:hover,
body.sad337-preset-modus .sad337-slideshow__nav:focus{
  background:transparent;
  color:rgba(255,255,255,.9);
}
body.sad337-preset-modus .sad337-slideshow__nav:active{color:#fff}
@media (hover:none){
  body.sad337-preset-modus .sad337-slideshow__nav{display:block}
}

/* Widgetkit grid-stack: media column + prose column. */
body.sad337-preset-modus .sad337-gridstack--panel{
  margin:10px 0;
  padding:16px;
  background:#fff;
  color:#666;
  box-shadow:0 0 20px 0 rgba(51,51,51,.1);
}
body.sad337-preset-modus .sad337-gridstack__item{
  display:grid;
  align-items:center;
  gap:0;
  grid-template-columns:1fr 1fr;
}
body.sad337-preset-modus .sad337-gridstack__item + .sad337-gridstack__item{
  margin-top:30px;
}
body.sad337-preset-modus .sad337-gridstack__item--1-3{grid-template-columns:1fr 2fr}
body.sad337-preset-modus .sad337-gridstack__item--1-4{grid-template-columns:1fr 3fr}
body.sad337-preset-modus .sad337-gridstack__item--2-5{grid-template-columns:2fr 3fr}
body.sad337-preset-modus .sad337-gridstack__item--3-5{grid-template-columns:3fr 2fr}
body.sad337-preset-modus .sad337-gridstack__item--2-3{grid-template-columns:2fr 1fr}
body.sad337-preset-modus .sad337-gridstack--media-right .sad337-gridstack__media{order:2}
body.sad337-preset-modus .sad337-gridstack__media{
  padding-left:15px;
  text-align:center;
}
body.sad337-preset-modus .sad337-gridstack__media img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
}
/* Joomla nests uk-panel-space (30px) inside the 40px grid gutter. */
body.sad337-preset-modus .sad337-gridstack__content{
  padding:0 30px 0 70px;
  color:#666;
}
body.sad337-preset-modus .sad337-gridstack__content > :last-child{
  margin-bottom:0;
}
body.sad337-preset-modus .sad337-gridstack__title{
  margin:0 0 10px;
}
/* Widgetkit breakpoint "medium": columns stack below UIkit's medium width. */
@media (max-width:767px){
  body.sad337-preset-modus .sad337-gridstack__item,
  body.sad337-preset-modus .sad337-gridstack__item[class*="--"]{
    grid-template-columns:1fr;
    gap:15px;
  }
  body.sad337-preset-modus .sad337-gridstack__media{padding-left:0}
  body.sad337-preset-modus .sad337-gridstack__content{padding:0}
  body.sad337-preset-modus .sad337-gridstack--media-right .sad337-gridstack__media{order:0}
}

/* Module headings: Chester .uk-panel-title. */
body.sad337-preset-modus .module-title,
body.sad337-preset-modus .site-bottom-c .module-title,
body.sad337-preset-modus .entry__content .module-title,
body.sad337-preset-modus .main-bottom .module-title{
  margin:0 0 15px;
  padding:0 0 4px;
  color:#182657;
  font-family:"Play","Open Sans",sans-serif;
  font-size:20px;
  line-height:27px;
  font-weight:400;
  text-transform:uppercase;
  text-align:left;
}

/* Home lower zones */
body.sad337-preset-modus .site-bottom-c{
  margin-top:0;
  padding:30px 0 0;
  background:transparent;
}
body.sad337-preset-modus .site-bottom-c > .site-container{
  padding-top:20px;
}
body.sad337-preset-modus .site-bottom-c .contacts-block{
  color:#444;
  box-shadow:0 2px 12px rgba(0,0,0,.14);
}
body.sad337-preset-modus .site-bottom-c .sad337-yandex-map{
  height:400px;
  min-height:400px;
}
body.sad337-preset-modus .site-bottom-c .sad337-slideshow{
  margin:0;
  background:transparent;
  border-radius:0;
}
body.sad337-preset-modus .site-bottom-c .sad337-slideshow__dots{display:none}
body.sad337-preset-modus .site-bottom-c .sad337-slideshow__slide,
body.sad337-preset-modus .site-bottom-c .sad337-slideshow__figure{
  height:100%;
}
body.sad337-preset-modus .site-bottom-c .sad337-slideshow__figure img{
  width:100%;
  height:var(--sad337-slideshow-min-height,630px);
  max-height:none;
  object-fit:cover;
}
body.sad337-preset-modus .site-bottom-c .sad337-cols:not(.sad337-grid){
  gap:20px;
}
body.sad337-preset-modus .site-bottom-c a:has(> img){
  display:block;
}
body.sad337-preset-modus .site-bottom-c a > img{
  display:block;
  max-width:100%;
  margin:0 auto;
}

/* Footer: fondark/fonlight equivalent + Chester column layout. */
body.sad337-preset-modus .site-footer{
  margin:0;
  padding:30px 0;
  border-top:1px solid #ccc;
  border-right:0;
  border-bottom:1px solid #ccc;
  border-left:0;
  background:rgba(255,255,255,.9);
  color:#222;
}
body.sad337-preset-modus .site-footer__inner{padding:0}
body.sad337-preset-modus .site-footer .footer-block__content{
  padding:20px 0;
}
body.sad337-preset-modus .site-footer__body{
  font-size:16px;
  line-height:20px;
  text-align:center;
}
body.sad337-preset-modus .site-footer .sad337-cols.site-footer__columns{
  display:grid;
  grid-template-columns:3fr 4fr 2fr 1fr;
  gap:0;
  align-items:start;
  margin:0 0 10px;
}
body.sad337-preset-modus .site-footer .site-footer__col{
  flex:none;
  min-width:0;
  padding-left:25px;
  line-height:20px;
}
body.sad337-preset-modus .site-footer .site-footer__col:first-child{
  padding-left:0;
}
body.sad337-preset-modus .site-footer .site-footer__col--copy{
  text-align:left;
}
body.sad337-preset-modus .site-footer .site-footer__columns > .site-footer__col:nth-child(2){
  text-align:left;
}
body.sad337-preset-modus .site-footer .site-footer__columns > .site-footer__col:nth-child(3){
  display:block;
  text-align:right !important;
}
body.sad337-preset-modus .site-footer .site-footer__col--credit{
  display:block;
}
body.sad337-preset-modus .site-footer .site-footer__columns > .site-footer__col:nth-child(3) img{
  float:right !important;
  display:block;
  margin:0 0 0 auto !important;
}
/* Override theme.css pill/#044 accordion for Chester uk-accordion-title. */
body.sad337-preset-modus .site-footer .sad337-cols details,
body.sad337-preset-modus .site-footer .sad337-cols details *{
  color:inherit !important;
}
body.sad337-preset-modus .site-footer .sad337-cols details{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  text-align:left;
  max-width:none;
}
body.sad337-preset-modus .site-footer .sad337-cols details summary{
  display:block;
  margin:5px 0 10px;
  padding:5px 20px;
  border:0;
  border-radius:0;
  background:#31859d;
  color:#fff !important;
  font:300 18px/24px "Play","Open Sans",sans-serif;
  font-weight:300;
  letter-spacing:0;
  text-align:center;
  text-transform:none;
  cursor:pointer;
  list-style:none;
}
body.sad337-preset-modus .site-footer .sad337-cols details summary::-webkit-details-marker{display:none}
body.sad337-preset-modus .site-footer .sad337-cols details[open] summary{
  margin-bottom:10px;
}
body.sad337-preset-modus .site-footer .sad337-cols details > :not(summary){
  padding:0;
  color:#222 !important;
  text-align:left;
}
body.sad337-preset-modus .site-footer .site-footer__disclaimer,
body.sad337-preset-modus .site-footer .footer-block--disclaimer .site-footer__disclaimer{
  margin:0 0 10px;
  color:#808080;
  font-size:13px;
  line-height:20px;
  text-align:center !important;
}
body.sad337-preset-modus .site-footer .box-note{
  display:block;
  margin:0 0 10px;
  color:#000;
  font-size:16px;
  line-height:20px;
  text-align:center;
}

/* News archives keep WP functionality with Chester typography. */
body.sad337-preset-modus .news-archive__item{
  border-color:#ddd;
  background:rgba(255,255,255,.86);
}
body.sad337-preset-modus .news-archive__title,
body.sad337-preset-modus .news-archive__title a{
  color:#2d5a71;
  font-family:"Play","Open Sans",sans-serif;
}
body.sad337-preset-modus .entry--archive,
body.sad337-preset-modus .news-archive__item{
  margin:0 0 20px;
  padding:0 0 20px;
  border:0;
  border-bottom:1px solid #d8d8d8;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.sad337-preset-modus .entry--archive .entry__title,
body.sad337-preset-modus .news-archive__title{
  margin:0 0 10px;
  padding:0;
  font-size:22px;
  line-height:26px;
}
body.sad337-preset-modus .news-archive__excerpt{
  font-size:15px;
  line-height:20px;
}
body.sad337-preset-modus .news-archive__more a,
body.sad337-preset-modus .entry__content .button{
  display:inline-block;
  padding:6px 13px;
  border:1px solid #31859d;
  border-radius:4px;
  background:#31859d;
  color:#fff;
  font-size:14px;
  line-height:20px;
}
body.sad337-preset-modus .news-archive__more a:hover,
body.sad337-preset-modus .entry__content .button:hover{
  background:#2d5a71;
  color:#fff;
  text-decoration:none;
}
body.sad337-preset-modus .nav-links,
body.sad337-preset-modus .news-archive__pagination{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:20px 0;
}
body.sad337-preset-modus .nav-links .page-numbers,
body.sad337-preset-modus .news-archive__pagination .page-numbers{
  display:inline-block;
  min-width:30px;
  padding:5px 8px;
  border:1px solid #ccc;
  background:#fff;
  color:#2d5a71;
  text-align:center;
}
body.sad337-preset-modus .nav-links .current,
body.sad337-preset-modus .news-archive__pagination .current{
  border-color:#31859d;
  background:#31859d;
  color:#fff;
}
body.sad337-preset-modus .search-results__list{
  margin-top:20px;
  border-top:1px solid #ddd;
}
body.sad337-preset-modus .search-results__item{
  padding:10px 0;
  border-bottom:1px solid #ddd;
}
body.sad337-preset-modus .sitemap-section__title{
  color:#444;
  font-family:"Play","Open Sans",sans-serif;
  font-weight:400;
}
body.sad337-preset-modus .sitemap-list .sitemap-list{
  border-left-color:#31859d;
}

@media (max-width:1219px){
  body.sad337-preset-modus .site-container{max-width:940px}
  body.sad337-preset-modus .primary-nav{margin-right:78px}
  body.sad337-preset-modus .primary-nav > ul > li > a{
    padding:0 8px;
    font-size:12px;
  }
  body.sad337-preset-modus .tm-navbar-search{width:74px}
  body.sad337-preset-modus .tm-navbar-search .site-search__field{width:74px}
}

@media (max-width:959px){
  body.sad337-preset-modus .site-top__inner{min-height:0}
  body.sad337-preset-modus .site-content{padding-top:30px}
  body.sad337-preset-modus .site-top-banner{
    overflow-wrap:anywhere;
  }
  body.sad337-preset-modus .site-bottom-c .sad337-slideshow,
  body.sad337-preset-modus .site-bottom-c .sad337-slideshow__viewport,
  body.sad337-preset-modus .site-bottom-c .sad337-slideshow__track{
    min-height:0;
  }
  body.sad337-preset-modus .site-bottom-c .sad337-slideshow__figure img{
    height:auto;
    aspect-ratio:1190/630;
  }
  body.sad337-preset-modus .site-navbar__inner{
    min-height:54px;
    justify-content:flex-start;
  }
  body.sad337-preset-modus .menu-toggle{display:inline-flex}
  body.sad337-preset-modus .primary-nav,
  body.sad337-preset-modus .tm-navbar-search{display:none}
  body.sad337-preset-modus .site-layout{
    grid-template-columns:minmax(0,1fr);
    gap:25px;
  }
  body.sad337-preset-modus .site-layout > .site-main{
    grid-column:1;
    grid-row:1;
  }
  body.sad337-preset-modus .site-layout > .site-sidebar{
    grid-column:1;
    grid-row:2;
    padding-left:0;
  }
  body.sad337-preset-modus .site-sidebar .sidebar-block{max-width:520px}
  body.sad337-preset-modus .site-footer .sad337-cols.site-footer__columns{
    grid-template-columns:1fr;
    text-align:center;
  }
  body.sad337-preset-modus .site-footer .site-footer__col{
    padding-left:0;
    text-align:center;
  }
  body.sad337-preset-modus .site-footer .site-footer__col--copy,
  body.sad337-preset-modus .site-footer .site-footer__col--credit,
  body.sad337-preset-modus .site-footer .site-footer__columns > .site-footer__col:nth-child(3){
    text-align:center !important;
  }
  body.sad337-preset-modus .site-footer .site-footer__col--credit img,
  body.sad337-preset-modus .site-footer .site-footer__columns > .site-footer__col:nth-child(3) img{
    float:none !important;
    margin:0 auto !important;
  }
  body.sad337-preset-modus .site-footer .site-footer__disclaimer{
    text-align:center;
  }
}

@media (max-width:767px){
  body.sad337-preset-modus{
    background-size:auto 720px;
    background-attachment:scroll;
  }
  body.sad337-preset-modus .site-top-banner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px 10px;
  }
  body.sad337-preset-modus .site-top-banner__col,
  body.sad337-preset-modus .site-top-banner__col[class*="--w-"]{
    width:auto;
    max-width:none;
    padding:0;
    text-align:center;
  }
  body.sad337-preset-modus .site-top-banner__col--title{
    align-items:center;
  }
  body.sad337-preset-modus .entry__title,
  body.sad337-preset-modus .entry__content > h1:first-child{
    font-size:25px;
    line-height:29px;
  }
  body.sad337-preset-modus .site-bottom-c .contacts-block{
    position:static;
    max-width:none;
    padding:20px;
  }
}

@media (max-width:520px){
  body.sad337-preset-modus .site-container{width:calc(100% - 30px)}
  body.sad337-preset-modus .site-top-banner{grid-template-columns:1fr}
  body.sad337-preset-modus .site-top-banner__col--contact:has(.sad337-slideshow) > div:last-child{
    margin:0;
    text-align:center;
  }
  body.sad337-preset-modus .entry__content{
    overflow-wrap:anywhere;
  }
  body.sad337-preset-modus .entry__content table{
    display:block;
    overflow-x:auto;
  }
  body.sad337-preset-modus .site-bottom-c .sad337-cols:not(.sad337-grid){
    grid-template-columns:1fr;
  }
  body.sad337-preset-modus .modus-callback-toggle{
    top:auto;
    right:15px;
    bottom:15px;
    padding:8px 12px;
    border-radius:5px;
    transform:none;
    font-size:11px;
  }
  body.sad337-preset-modus .modus-callback__dialog{
    padding:22px 18px;
  }
}

@media print{
  body.sad337-preset-modus{background:#fff}
  body.sad337-preset-modus .site-navbar,
  body.sad337-preset-modus .site-sidebar,
  body.sad337-preset-modus .site-footer{display:none}
  body.sad337-preset-modus .site-layout{display:block}
}
