/*
Theme Name:   ALF theme
Description:  Cindy child theme for ALF
Author:       ITS
Template:     cindy
Version: 1.12
Text domain:  ALF
*/

/* Put your custom CSS styles below... */

/*
Färger:
Umu: #2A4765
Reg V: #004F9E
ALF: #245687
*/

/* COLOR VARIABLES */
:root {
  --color_primary: #245687;
  --color_primary_light: #3875b3;
  --color_accent: var(--color_primary_light);
  --color_text: #000;
  --color_navigation_link: var(--color_primary);
  --color_footer_link: #fff;
  --color_footer_background: var(--color_primary);
  --color_footer_headings: var(--color_content_headings);
  --color_footer_text: #fff;
  --color_footer_1_link: #245687;
  --color_footer_1_background_secondary: #dedede;
  --color_footer_1_background: #dedede;
  --color_footer_1_headings: #000;
  --color_footer_1_text: #000;
  --color_button_background: var(--color_primary);
  --color_button_text: #fff;
  --color_button_hover_background: var(--color_primary_light);
  --color_sidebar_background: #fff;
  --color_sidebar_text: var(--color_text);
  --color_sidebar_link: var(--color_primary);
  --color_sidebar_border: var(--color_primary);
  --color_site_title_background: var(--color_primary);
  --color_site_title_text: #fff;
  --color_nav_background: #fff;
  --color_nav_text: var(--color_primary);
}

/* HEADER STYLING */

.site-header-section,
.site-header .site-branding {
  background: var(--color_site_title_background);
  color: var(--color_site_title_text);
}

.site-header-section .site-branding-text {
  color: var(--color_site_title_text);
  border: var(--color_site_title_text) double 10px;
  margin: 10px;
  padding: 28px;
  max-width: 360px;
}

.site-header-section .site-title {
  text-wrap: pretty;
  text-align: center;
}

.site-header-section .header-widgets .widget:first-child {
  margin-left: auto;
  margin-right: 0;
}

/* MENU STYLING */

.main-navigation-section {
  background: var(--color_nav_background);
  color: var(--color_nav_text);
  border-bottom: var(--color_primary) solid 2px;
}

.header-widgets button {
  background: #fff;
  color: var(--color_primary);
}

.menu-primary > li > a {
  color: var(--color_primary);
  text-transform: uppercase;
  font-weight: 600;
}

.menu-item a:hover {
  box-shadow: inset 0 -4px 0 var(--color_primary);
}

.menu-item a:before {
  display: none;
}

/* BREADCRUMB */

.site-header + .breadcrumbs-container {
  padding: 1rem 6vw;
  background: var(--color_content_background);
  color: var(--color_content_text);
}

.breadcrumbs {
  font-size: 0.9rem;
}

/* CONTENT STYLING */

main.site-main header h1 {
  font-size: 2.75rem;
}

.last-updated-date {
  text-transform: uppercase;
  margin-top: 5rem;
  font-weight: bold;
}

/* FOOTER STYLING */


.site-footer .site-branding {
  display: none;
}

footer  {
  border-top: 1px solid;
  border-color: var(--color_footer_border);
}

footer p {
  margin-bottom: 12px;
}

.footer-2-widgets-content section .wp-block-columns .wp-block-column  {
  align-content: center;
  padding: 0 10px;
}

.footer-2-widgets-content .wp-block-column.wp-block-column:first-child {
  padding-left: 0;
}

.footer-2-widgets-content .wp-block-column.wp-block-column:last-child {
  padding-right: 0;
}

@media (min-width: 782px) {
  .footer-2-widgets-content .wp-block-column.wp-block-column:last-child {
    margin-bottom: 0;
  }
}

/* MISC STYLING */

.button,
.page-numbers:not(.current):not(.dots),
.post-page-numbers:not(.current):not(.dots),
.wp-block-button__link,
[type="button"],
[type="reset"],
[type="submit"],
button {
  background: var(--color_button_background);
  color: var(--color_button_text);
}

.button:not(.has-background):active,
.button:not(.has-background):focus,
.button:not(.has-background):hover,
.page-numbers:not(.current):not(.dots):not(.has-background):active,
.page-numbers:not(.current):not(.dots):not(.has-background):focus,
.page-numbers:not(.current):not(.dots):not(.has-background):hover,
.post-page-numbers:not(.current):not(.dots):not(.has-background):active,
.post-page-numbers:not(.current):not(.dots):not(.has-background):focus,
.post-page-numbers:not(.current):not(.dots):not(.has-background):hover,
.wp-block-button__link:not(.has-background):active,
.wp-block-button__link:not(.has-background):focus,
.wp-block-button__link:not(.has-background):hover,
[type="button"]:not(.has-background):active,
[type="button"]:not(.has-background):focus,
[type="button"]:not(.has-background):hover,
[type="reset"]:not(.has-background):active,
[type="reset"]:not(.has-background):focus,
[type="reset"]:not(.has-background):hover,
[type="submit"]:not(.has-background):active,
[type="submit"]:not(.has-background):focus,
[type="submit"]:not(.has-background):hover,
button:not(.has-background):active,
button:not(.has-background):focus,
button:not(.has-background):hover {
  background: var(--color_button_hover_background);
  box-shadow: none;
}

.header-widgets .wp-block-search .wp-block-search__input {
  border: #fff solid 1px;
}

/* SIDEBAR STYLING */

.has-widgets-in-sidebar-2 .sidebar-2 .widget {
  background: var(--color_sidebar_background);
  color: var(--color_sidebar_text);
  border: var(--color_sidebar_border) solid 2px;
  padding: 1rem 1.5rem;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul {
  list-style: none;
  margin-left: 0;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul li#parent-page a {
  font-size: 1.25rem;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul li {
  border-bottom: #d1d1d1 solid 1px;
  line-height: 1.5rem;
  font-size: 1rem;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul li:not(:last-child) {
  margin-bottom: 15px;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul li a {
  text-decoration: none;
  text-transform: uppercase;
}

.has-widgets-in-sidebar-2 .sidebar-2 ul li a:hover {
  text-decoration: underline;
}

@media (min-width: 880px) {
  .has-widgets-in-sidebar-2 .site-main {
    float: left;
    width: calc(100% - 100% * var(--sidebar_width));
    max-width: none;
    margin: 0;
  }

  .has-widgets-in-sidebar-2 .page-media {
    margin-left: calc(
      1 / (1 - var(--sidebar_width)) / 2 * 100% - 50vw + var(--scrollbar_width) /
        2
    );
  }
  .has-widgets-in-sidebar-2 .page-header:before {
    margin-left: calc(
      1 / (1 - var(--sidebar_width)) / 2 * 100% - 50vw + var(--scrollbar_width) /
        2
    );
  }
}