/**
 * Content-page layout (from Midtpunktet skeleton).
 * Used on non-front pages via .row-no-flex in page.html.twig.
 */

/* Hide node meta (author/date) on content pages. */
.page-container-not-front .node__meta,
.page-container-not-front .entity-full .node__meta {
  display: none !important;
}

/*
 * Reset ALL heading styles on content pages.
 * Fredericia sets margin-top: 30px on h1–h6 / .h1–.h6 globally,
 * plus negative side margins on page titles — clear all of that.
 */
.page-container-not-front h1,
.page-container-not-front h2,
.page-container-not-front h3,
.page-container-not-front h4,
.page-container-not-front h5,
.page-container-not-front h6,
.page-container-not-front .h1,
.page-container-not-front .h2,
.page-container-not-front .h3,
.page-container-not-front .h4,
.page-container-not-front .h5,
.page-container-not-front .h6 {
  margin: 0 !important;
  padding: 0 !important;
}

.page-container-not-front .field--name-field-os2web-page-heading h1,
.page-container-not-front .field--name-field-os2web-news-heading h1 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* Group / node content: headline + body. */
.page-container-not-front .node__content .field--name-field-headline {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0 0.85rem;
  color: #00335b;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  border-bottom: 3px solid #00335b;
}

@media (min-width: 768px) {
  .page-container-not-front .node__content .field--name-field-headline {
    font-size: 2.5rem;
    padding: 0.75rem 0 1rem;
  }
}

.page-container-not-front .node__content .field--name-body {
  margin: 0;
  padding: 1rem 0 1.5rem;
  color: #333;
  line-height: 1.6;
}

.page-container-not-front .box__heading,
.page-container-not-front .box__heading .h4,
.page-container-not-front .box__heading h1,
.page-container-not-front .box__heading h2,
.page-container-not-front .box__heading h3,
.page-container-not-front .box__heading h4,
.page-container-not-front .box__heading h5,
.page-container-not-front .box__heading h6 {
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset Fredericia sidebar spacing that fights Midtpunktet proportions. */
.page-container-not-front .layout-sidebar-left,
.page-container-not-front .layout-sidebar-right {
  padding: 0 !important;
}

.page-container-not-front .layout-sidebar-left .box,
.page-container-not-front .layout-sidebar-right .box,
.page-container-not-front .layout-sidebar-left .box__body,
.page-container-not-front .layout-sidebar-right .box__body,
.page-container-not-front .layout-sidebar-left .box__heading,
.page-container-not-front .layout-sidebar-right .box__heading {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0;
  background-color: transparent;
  box-shadow: none;
}

/* Kill first/last-child padding injected by main theme. */
.page-container-not-front .layout-sidebar-right > .box > .box__body > .region > *:first-child,
.page-container-not-front .layout-sidebar-right > .box > .box__body > .region > *:last-child,
.page-container-not-front .layout-sidebar-right .box__body > *:first-child,
.page-container-not-front .layout-sidebar-right .box__body > *:last-child,
.page-container-not-front .layout-sidebar-left .box__body > *:first-child,
.page-container-not-front .layout-sidebar-left .box__body > *:last-child {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-container-not-front .layout-sidebar-left ul,
.page-container-not-front .layout-sidebar-right ul {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.page-container-not-front .layout-sidebar-left li,
.page-container-not-front .layout-sidebar-right li,
.page-container-not-front .item-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* "Tilføj indhold" create-content block — white card, dark text, blue dividers. */
.page-container-not-front .block-bc-og-create-content-block,
.page-container-not-front .block-bc-og-extension {
  margin-bottom: 1.5rem;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.page-container-not-front .block-bc-og-create-content-block > h2,
.page-container-not-front .block-bc-og-create-content-block > .h4,
.page-container-not-front .block-bc-og-extension > h2,
.page-container-not-front .block-bc-og-extension > .h4 {
  background-color: #fff !important;
  color: #000 !important;
  margin: 0 !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  text-transform: none;
  border-bottom: 2px solid #00335b;
}

.page-container-not-front .block-bc-og-create-content-block > ul,
.page-container-not-front .block-bc-og-extension > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.page-container-not-front .block-bc-og-create-content-block > ul > li,
.page-container-not-front .block-bc-og-extension > ul > li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #00335b;
}

.page-container-not-front .block-bc-og-create-content-block > ul > li:last-child,
.page-container-not-front .block-bc-og-extension > ul > li:last-child {
  border-bottom: 0;
}

.page-container-not-front .block-bc-og-create-content-block > ul > li > a,
.page-container-not-front .block-bc-og-extension > ul > li > a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.page-container-not-front .block-bc-og-create-content-block > ul > li > a:hover,
.page-container-not-front .block-bc-og-extension > ul > li > a:hover {
  background-color: rgba(0, 51, 91, 0.06);
  color: #00335b;
  text-decoration: underline;
}

/* OG recent group blocks (Filer, Links, etc.) — Fredericia look. */
.page-container-not-front .block-og-recent-group-content {
  margin-bottom: 1.5rem;
  background-color: #f3f8fc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.page-container-not-front .block-og-recent-group-content > h2,
.page-container-not-front .block-og-recent-group-content > .h4 {
  background-color: #00335b !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-align: left;
}

.page-container-not-front .block-og-recent-group-content .item-list {
  margin: 0;
  padding: 0.5rem 0;
}

.page-container-not-front .block-og-recent-group-content .item-list ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.page-container-not-front .block-og-recent-group-content .item-list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(0, 51, 91, 0.12);
}

.page-container-not-front .block-og-recent-group-content .item-list li:last-child {
  border-bottom: 0;
}

.page-container-not-front .block-og-recent-group-content .item-list li::before {
  display: none !important;
  content: none !important;
}

.page-container-not-front .block-og-recent-group-content .item-list a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #00335b;
  text-decoration: none;
  font-weight: 500;
}

.page-container-not-front .block-og-recent-group-content .item-list a:hover {
  background-color: rgba(0, 51, 91, 0.06);
  text-decoration: underline;
}

.page-container-not-front .block-og-recent-group-content .go-to-all-selfservice:empty {
  display: none;
}

/* Sidenav: Fredericia primary (#00335b) + white text. */
.page-container-not-front .sidenav-list {
  border: 0;
}

.page-container-not-front .sidenav-list > li {
  background-color: #00335b !important;
  border-top: 1px solid #2a4f75 !important;
  border-left: 0 !important;
  color: #fff !important;
}

.page-container-not-front .sidenav-list > li:first-child {
  border-top: 0 !important;
}

.page-container-not-front .sidenav-list > li > a,
.page-container-not-front .sidenav-list > li.active > a,
.page-container-not-front .sidenav-list > li.current > a {
  color: #fff !important;
  background-color: transparent !important;
}

.page-container-not-front .sidenav-list > li:hover,
.page-container-not-front .sidenav-list > li.active,
.page-container-not-front .sidenav-list > li.current {
  background-color: #2a4f75 !important;
}

.page-container-not-front .sidenav-list > li > a:hover,
.page-container-not-front .sidenav-list > li > a:focus {
  color: #fff !important;
  background-color: transparent !important;
}

.page-container-not-front .sidenav-list > li > a:before {
  display: none !important;
  content: none !important;
}

.page-container-not-front .sidenav-sub_list {
  background-color: #002744 !important;
}

.page-container-not-front .sidenav-sub_list > li {
  background-color: transparent !important;
  border-top: 0 !important;
}

.page-container-not-front .sidenav-sub_list > li > a {
  color: #fff !important;
}

.row-no-flex {
  margin: 0;
  width: 100%;
}

.row-no-flex::after {
  content: "";
  display: table;
  clear: both;
}

.row-no-flex .sideblock-venstre,
.row-no-flex .hovedindhold-hojre,
.row-no-flex .hovedindhold-venstre,
.row-no-flex .sideblock-hojre {
  width: 100%;
  float: none;
  display: block;
}

.page-container-not-front .content-main {
  padding: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .row-no-flex .sideblock-venstre {
    width: 32.45%;
    float: left;
    margin-left: 0;
    margin-right: 0;
    display: inline;
  }

  .row-no-flex .hovedindhold-hojre {
    width: 58.94%;
    float: right;
    margin-left: 1.52905%;
    margin-right: 0;
    display: inline;
  }

  .row-no-flex .hovedindhold-venstre {
    width: 58.94%;
    float: left;
    margin-left: 0;
    margin-right: 1.52905%;
    display: inline;
  }

  .row-no-flex .sideblock-hojre {
    min-width: 320px;
    width: 58.94%;
    float: left;
    margin-left: 0;
    margin-right: 0;
    display: inline;
  }
}

@media (min-width: 1200px) {
  .row-no-flex .sideblock-hojre {
    min-width: 320px;
    width: 32.45%;
    float: right;
    margin-left: auto;
    margin-right: 0;
    display: inline;
  }
}

@media print {
  .row-no-flex .hovedindhold-venstre,
  .row-no-flex .hovedindhold-hojre {
    width: 100% !important;
    float: none !important;
  }
}
