/* 32557220.dk, restored from the web archive. The BeTheme 9.4 pages relied on the theme's script for the header, the
   drop-down menus and the sidebar heights; the archive build removes scripts, so each rule below does that script's
   job in CSS. Breakpoints 768px and 1240px are the theme's own (responsive.css, responsive-1240.css). */

/* ---------- Header ---------- */

/* responsive-1240.css hides "#Top_bar .top_bar_left.loading" from 1240px up until the script has measured the header
   and removed the class. Without the script the class stays, so the logo and the whole menu were never shown. */
@media only screen and (min-width: 1240px) {
  body #Top_bar .top_bar_left.loading {
    display: block;
  }
}

/* The script stretched .top_bar_left to the full header width (this header has no right-hand block). The CSS
   defaults (990px, 729px, 501px) left the tablet "Menu" button in the middle of the header. */
@media only screen and (min-width: 768px) {
  body #Top_bar .top_bar_left {
    width: 100%;
  }
}

/* ---------- Desktop menu: submenus on hover or keyboard focus ---------- */

@media only screen and (min-width: 1240px) {
  /* The script added class "hover" and faded the submenu in; :focus-within keeps a branch open while a link in it
     has keyboard focus. */
  #Top_bar .menu li:hover > ul,
  #Top_bar .menu li:focus-within > ul {
    display: block;
  }

  /* Same highlight the theme gives li.hover (layout.css, style-colors.php.css). */
  .menu-highlight #Top_bar #menu > ul > li:hover > a,
  .menu-highlight #Top_bar #menu > ul > li:focus-within > a {
    background: #30b397;
    color: #fff;
  }

  #Top_bar .menu > li ul li:hover > a,
  #Top_bar .menu > li ul li:focus-within > a {
    background: rgba(0, 0, 0, 0.06);
    color: #2e2e2e;
    text-decoration: none;
  }

  /* The script put an arrow icon (icon-right-open) into items that open a third level. style-colors.php.css paints
     every "#Top_bar .menu > li a:after" green (meant for the top-level underline), hence background: none. */
  #Top_bar .menu li ul li.menu-item-has-children > a {
    position: relative;
  }

  #Top_bar .menu li ul li.menu-item-has-children > a::after {
    content: "\e876";
    position: absolute;
    right: 7px;
    top: 11px;
    font-family: "mfn-icons";
    font-size: 12px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.35);
    background: none;
  }
}

/* ---------- Tablet menu (768-1239px) ---------- */

/* Below 1240px the theme hides #menu behind the "Menu" button. The archive build opens it with :target only up to
   767px; between 768px and 1239px the button led nowhere. The panel keeps the theme's own drop-down place and look. */
@media only screen and (min-width: 768px) and (max-width: 1239px) {
  html body #Top_bar #menu[data-restored-nav-panel]:target {
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  html body #Top_bar #menu[data-restored-nav-panel]:target ul {
    display: block;
  }

  html body #Top_bar #menu[data-restored-nav-panel]:target [data-restored-nav-close] {
    display: block !important;
    float: right;
    padding: 0 20px;
    font-size: 24px;
    line-height: 48px;
    color: #16171e;
  }
}

/* ---------- Sidebars as tall as the page ---------- */

/* The script gave both sidebars' .widget-area the height of the tallest column, so their grey background and divider
   line ran down to the footer. A grid with the theme's own proportions (grid.css: left 1-19%, content 20-80%,
   right 81-99%) stretches the columns to one height without it. Below 768px the theme stacks the columns. */
@media only screen and (min-width: 768px) {
  body.with_aside.aside_both .content_wrapper {
    display: grid;
    grid-template-columns: 1% 18% 1% 60% 1% 18% 1%;
    align-items: stretch;
  }

  body.with_aside.aside_both .content_wrapper::before,
  body.with_aside.aside_both .content_wrapper::after {
    content: none;
  }

  body.with_aside.aside_both .content_wrapper > .sections_group {
    grid-column: 4;
    grid-row: 1;
    width: auto;
    margin: 0;
    float: none;
  }

  body.with_aside.aside_both .content_wrapper > .sidebar-1 {
    grid-column: 2;
    grid-row: 1;
  }

  body.with_aside.aside_both .content_wrapper > .sidebar-2 {
    grid-column: 6;
    grid-row: 1;
  }

  body.with_aside.aside_both .content_wrapper > .sidebar.columns {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
  }

  body.with_aside.aside_both .content_wrapper > .sidebar.columns > .widget-area {
    flex: 1 0 auto;
  }
}
