/*
=========================================================
GREEN CSS
=========================================================
 * Innehåller styling för grönt färgschema
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


/*
---------------------------------------------------------
Variabler
---------------------------------------------------------*/

:root {
  --blekinge-color-aspo: #98c21d;
  --blekinge-color-betong: #b2b2b2;
  --blekinge-color-hallabro: #2d934f;
  --blekinge-color-hallabro-10-perc-shade: #298447;
  --blekinge-color-shiffer: #706f6f;
  --lp-color-light-background: #f2f2f2;
  --lp-light-theme-color: rgba(152,194,29, 0.1);/* Aspö med 0.1 opacitet */
  --lp-primary-theme-color: var(--blekinge-color-aspo);
  --lp-secondary-theme-color: var(--blekinge-color-hallabro-10-perc-shade);/* Måste kontrastera mot vitt */
  --lp-theme-font-color: #404040;
}
.lp-link-boxes,
.lp-bildpuffar {
  --bildpuff-background-color-1: rgb(27, 88, 47, 0.9);
  --bildpuff-background-color-2: rgb(204, 225, 142, 0.9);
  --bildpuff-background-color-3: rgba(152,194,29,0.9);
  --bildpuff-background-color-4: rgba(45, 147, 79, 0.9);
  --bildpuff-background-color-5: rgb(214, 231, 165,0.9);
  --bildpuff-font-color-1: #fff;
  --bildpuff-font-color-2: var(--lp-theme-font-color);
  --bildpuff-font-color-3: var(--lp-theme-font-color);
  --bildpuff-font-color-4: #fff;
  --bildpuff-font-color-5: var(--lp-theme-font-color);
  --link-box-hover-filter-1: var(--link-box-hover-filter-dark);
  --link-box-hover-filter-2: var(--link-box-hover-filter-dark);
  --link-box-hover-filter-3: var(--link-box-hover-filter-light);
  --link-box-hover-filter-4: var(--link-box-hover-filter-dark);
  --link-box-hover-filter-5: var(--link-box-hover-filter-light);
  --link-box-hover-filter-dark: rgba(0,0,0,0.2);
  --link-box-hover-filter-light: rgba(255,255,255,0.5);
  --link-box-icon-1: var(--link-box-icon-light);
  --link-box-icon-2: var(--link-box-icon-dark);
  --link-box-icon-3: var(--link-box-icon-dark);
  --link-box-icon-4: var(--link-box-icon-light);
  --link-box-icon-5: var(--link-box-icon-dark);
  --link-box-icon-dark: url('data:image/svg+xml,%3Csvg%20viewBox=\'0%200%2024%2024\'%20xmlns=\'http://www.w3.org/2000/svg\'%20fill=\'%23404040\'%3E%3Cpath%20d=\'M6.9.4c-.7%200-1.3.6-1.3%201.3%200%20.3.1.7.4.9l9.5%209.5L6%2021.6c-.5.5-.5%201.3%200%201.8s1.3.5%201.8%200L18.2%2013c.5-.5.5-1.3%200-1.8L7.8.8C7.6.5%207.2.4%206.9.4z\'%3E%3C/path%3E%3C/svg%3E');
  --link-box-icon-light: url('data:image/svg+xml,%3Csvg%20viewBox=\'0%200%2024%2024\'%20xmlns=\'http://www.w3.org/2000/svg\'%20fill=\'%23fff\'%3E%3Cpath%20d=\'M6.9.4c-.7%200-1.3.6-1.3%201.3%200%20.3.1.7.4.9l9.5%209.5L6%2021.6c-.5.5-.5%201.3%200%201.8s1.3.5%201.8%200L18.2%2013c.5-.5.5-1.3%200-1.8L7.8.8C7.6.5%207.2.4%206.9.4z\'%3E%3C/path%3E%3C/svg%3E');
}


body,
.lp-skip-to-menu-mobile:active,
.lp-skip-to-menu-mobile:hover,
.lp-skip-to-menu-mobile:focus,
.lp-js .lp-menu {
  background: var(--lp-primary-theme-color);
  outline-color: #222;
}

.lp-header {
  border-color: var(--lp-primary-theme-color);
}

.lp-logo a:focus,
.lp-secondary-logo a:focus {
  background-color: var(--lp-light-theme-color);
  border-color: var(--lp-primary-theme-color);
}

/* Justering av textfärger */
.sv-font-cta-button a,
a.apply-for-job-link {
  color: #fff;
}

.lp-menu .lp-close-button {
  color: #000;
}

/* Tar bort första nivåni brödsmulor */
.sv-multilevellink-portlet li:first-child,
.sv-multilevellink-portlet li:nth-child(2) .lp-icon {
  display: none;
}

/* Bakgrund - solid */
body .lp-page-feedback .lp-feedback-buttons button,
body .lp-page-feedback .lp-feedback-form-submit,
header .sv-searchform-portlet button:focus,
.lp-expandable-content .lp-expandable-content__toggler:focus,
.sv-font-cta-button a,
a.apply-for-job-link {
  background-color: var(--lp-secondary-theme-color);
}

/* Återkoppling */
body .lp-page-feedback .lp-feedback-buttons button:hover,
body .lp-page-feedback .lp-feedback-buttons button:focus,
body .lp-page-feedback .lp-feedback-form-submit:hover,
body .lp-page-feedback .lp-feedback-form-submit:focus {
  background-color: var(--lp-secondary-theme-color);
}

/* Bakgrund - transparens */
.sv-multilevellink-portlet,
.lp-page-feedback,
.lp-menu button:hover,
.lp-menu button:focus,
.lp-related,
.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler {
  background-color: var(--lp-light-theme-color);
}

/* Border color */
.lp-topmenu li > a.lp-current,
.lp-topmenu li > a:hover,
.lp-topmenu li > a:focus {
  border-color: var(--lp-primary-theme-color);
}

/* Border color - endast vänster */
.lp-level-1 > li > a {
  border-left-color: var(--lp-primary-theme-color);
}

/* Border color - tranparens */
header .sv-searchform-portlet input[type='text']:hover,
header .sv-searchform-portlet input[type='text']:hover + button {
  border-color: var(--blekinge-color-hallabro);
}

/* Textfärg/ikonfärg */
header .sv-searchform-portlet button {
  color: var(--lp-primary-theme-color);
}

/* Fokus - inputfält */
header .sv-searchform-portlet input[type='text']:focus,
header .sv-searchform-portlet input[type='text']:focus + button {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--lp-primary-theme-color);
}

/* Fokus + hover - sidverktyg */
.lp-page-share-link:hover,
.lp-page-share-link:focus,
.lp-print-link a.normal:hover,
.lp-print-link a.normal:focus,
.lp-page-contact-link:hover,
.lp-page-contact-link:focus,
.sv-readspeaker_expandingplayer-portlet > a.normal:hover,
.sv-readspeaker_expandingplayer-portlet > a.normal:focus {
  border-color: var(--lp-primary-theme-color);
  color: var(--lp-primary-theme-color);
}

/* Sektion med transparent bakgrund på startsida */
.lp-startpage .lp-lightblue-section {
  background: transparent;
}

.lp-startpage .lp-lightblue-section:after {
  background: var(--lp-light-theme-color);
}

/* Evenemangsdatum */
.lp-eventdate > div {
  background: var(--lp-secondary-theme-color);
}

/* Bildpuffar och länkpuffar */

.lp-link-boxes > .sv-text-portlet:nth-child(5n+1) a,
.lp-bildpuffar > div:nth-child(4n + 1) .sv-text-portlet-content:before {
  background-color: var(--bildpuff-background-color-1);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+1) a,
.lp-bildpuffar > div:nth-child(4n + 1) h2.subheading a {
  color: var(--bildpuff-font-color-1);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+1) a:hover:after {
  background: var(--link-box-hover-filter-1);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+1) a:before {
  background: var(--link-box-icon-1);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+2) a,
.lp-bildpuffar > div:nth-child(4n + 2) .sv-text-portlet-content:before {
  background-color: var(--bildpuff-background-color-2);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+2) a,
.lp-bildpuffar > div:nth-child(4n + 2) h2.subheading a {
  color: var(--bildpuff-font-color-2);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+2) a:hover:after {
  background: var(--link-box-hover-filter-2);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+2) a:before {
  background: var(--link-box-icon-2);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+3) a,
.lp-bildpuffar > div:nth-child(4n + 3) .sv-text-portlet-content:before {
  background-color: var(--bildpuff-background-color-3);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+3) a,
.lp-bildpuffar > div:nth-child(4n + 3) h2.subheading a {
  color: var(--bildpuff-font-color-3);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+3) a:hover:after {
  background: var(--link-box-hover-filter-3);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+3) a:before {
  background: var(--link-box-icon-3);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+4) a,
.lp-bildpuffar > div:nth-child(4n + 4) .sv-text-portlet-content:before {
  background-color: var(--bildpuff-background-color-4);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+4) a,
.lp-bildpuffar > div:nth-child(4n + 4) h2.subheading a {
  color: var(--bildpuff-font-color-4);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+4) a:hover:after {
  background: var(--link-box-hover-filter-4);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+4) a:before {
  background: var(--link-box-icon-4);
}

.lp-link-boxes > .sv-text-portlet:nth-child(5n+5) a,
.lp-bildpuffar .sv-text-portlet-content:before {
  background-color: var(--bildpuff-background-color-5);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+5) a,
.lp-bildpuffar > div h2.subheading a {
  color: var(--bildpuff-font-color-5);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+5) a:hover:after {
  background: var(--link-box-hover-filter-5);
}
.lp-link-boxes > .sv-text-portlet:nth-child(5n+5) a:before {
  background: var(--link-box-icon-5);
}
