/* Removed links left bare list items without the spacing applied to anchors. */
#top-menu > li:not(:has(> a)) {
  font-size: 17px;
  line-height: 1em;
  letter-spacing: 1px;
  padding-bottom: 19px;
}

.site-fix-menu-open,
.site-fix-menu-close {
  display: none;
}

/* This row retained a 268px manual offset even on narrow screens. */
.page-id-59 .et_pb_row_1.et_pb_row {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Divi created its phone navigation with a removed script; reuse the real menu. */
@media (max-width: 980px) {
  .mobile_menu_bar_toggle { position: relative; }
  .site-fix-menu-open {
    display: block;
    position: absolute;
    inset: -8px;
  }
  #main-header #top-menu-nav:target {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    background: #f7f7f7;
    border-top: 2px solid #d80027;
    box-shadow: 0 8px 12px rgba(0,0,0,.15);
    padding: 12px 20px 20px;
    scroll-margin-top: 80px;
  }
  #main-header #top-menu-nav:target #top-menu {
    display: block;
    float: none;
  }
  #top-menu-nav:target .site-fix-menu-close {
    display: block;
    text-align: right;
    font-size: 32px;
    line-height: 1;
    color: #d80027;
    padding: 4px 0 10px;
  }
  #top-menu-nav:target #top-menu > li {
    display: block;
    padding: 0;
    margin-bottom: 0 !important;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 1px;
  }
  #top-menu-nav:target #top-menu > li > a,
  #top-menu-nav:target #top-menu > li:not(:has(> a)) {
    display: block;
    padding: 8px 0;
  }
  /* The longer phone text falls over the dark trees in the existing photo. */
  .page-id-327 #main-content .et_pb_text_1 {
    background-color: rgba(255,255,255,.94);
    padding: 12px;
  }
}

/* Home blocks: links from the capture's et_link_options_data (the Divi script was removed). */
.et_clickable { position: relative; }
.site-fix-block-link { position: absolute; inset: 0; z-index: 2; }

/* The archive did not return /grill-arrangement/ or /slagtning-af-svin/, so these items lead nowhere. */
#top-menu li#menu-item-44:not(:has(> a)),
#top-menu li#menu-item-51:not(:has(> a)) { display: none !important; }

/* Restore removed the inputs; field labels without fields are hidden, the forms' HTML notes stay. */
.gform_wrapper li.gfield:not(.gfield_html) { display: none; }
