/*
Theme Name: Torsås kommun
Theme URI: http://kreation.se
Author: Kreation
Author URI: http://www.kreation.se
Description: Detta tema är utvecklat unikt för Torsås kommun 2018
Text Domain: torsas_kommun
Version: 1.0
*/

/* Fix för att navigation lägger sig över Adminbar */
#navigation {
  z-index: 10;
}

/* Markerar valt alternativ i högerspalt */
.krea_selRightMenuOption a {
  color: #b60837;
}

/* Rätt formatering på tele-länkar */
a[href^="tel:"] {
  text-decoration: underline !important;
}

.email a {
  text-decoration: underline;
}

/* Döljer akut-meddelande från start */
.callout {
  display: none;
}
#navigation {
  top: 0 !important;
}

/* Rubrik i sökresultat */
#entry .layout article.main-article h2.contact-heading.contact-search-result {
  font-size: 17px !important;
  margin-bottom: 20px !important;
  font-weight: normal;
}

/* Kontakt-sök resultat */
.contact-article .phone a {
  text-decoration: none !important;
}

/* Google Translate */
.translate-wrap {
  background-color: #f9dc5a !important;
  padding: 20px !important;
  margin-bottom: 30px;
}
.goog-te-gadget,
.goog-logo-link {
  color: black !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
.goog-logo-link img {
  margin-bottom: 0rem !important;
  width: 66px;
}

/*Nyheter startsidan */
.startpage_news_group {
  display: none;
}
.startpage_news_group_id_459,
.startpage_news_group_id_460 {
  display: block;
}
.news-article .news-image {
  background-size: cover;
  background-position: center;
}
.news-article .news-meta {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Puffar utan länk på startsidan */
#static-puffs article span.krea_fix_puff {
  background-color: #fff;
  height: 100%;
  display: block;
}
#static-puffs article span.krea_fix_puff h2 {
  margin-top: 1.6rem;
}
#static-puffs article span.krea_fix_puff p {
  font-size: 18px;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Puffar i högerspalt */
aside#puffs {
  padding-top: 0;
}
aside#puffs .no-image {
  border-top: 2px solid #f5f5f5 !important;
}
aside#puffs .puff h3,
aside#puffs .puff p {
  overflow: hidden;
  text-overflow: ellipsis;
}
aside#puffs .puff h3 {
  /*Denna måste vara med annars beskärs rubriker i nederkant*/
  line-height: 34px;
}

/* Vänstermeny (beroende även av javascripts.js) */
#left-menu ul li ul,
#left-menu ul li ul li ul,
#left-menu ul li ul li ul li .drop-down {
  display: none;
}
#left-menu ul li ul li ul li a {
  padding-left: 40px;
}

/* Sökresultat (kontakt) */
.news-article.news-article-contact {
  border-bottom: 0;
}
.news-article.news-article-contact p {
  display: block;
  overflow: display;
  height: auto;
}
.news-article.news-article-contact a {
  display: inline;
  color: #b60837;
}
.news-article.news-article-contact:hover h3 {
  color: #444;
}
/* Sök-knapp */
form.search-group button {
  cursor: pointer !important;
}

/* Paginering */
.pagination li span.current {
  display: inline-block;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background-color: #b60837;
}

/* Dolda fält */
.hide,
.hidden {
  display: none !important;
}

/* Sidfot */
#footer {
  background-color: #f5f5f5;
}
.footer-frontpage #footer {
  background-color: #fff;
}

/* Formulär (Ninja forms) */
.nf-form-cont {
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  padding-top: 1rem;
  margin-bottom: 0;
}
.nf-form-cont ::-webkit-input-placeholder {
  color: #555;
  opacity: 1;
}
.nf-form-cont :-moz-placeholder {
  color: #555;
  opacity: 1;
}
.nf-form-cont ::-moz-placeholder {
  color: #555;
  opacity: 1;
}
.nf-form-cont :-ms-input-placeholder {
  color: #555;
  opacity: 1;
}
.nf-form-cont ::-ms-input-placeholder {
  color: #555;
  opacity: 1;
}
.nf-form-cont:after {
  clear: both;
  content: "";
  display: block;
  width: 100%;
}
.nf-form-cont select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  -webkit-box-shadow: none;
  box-shadow: none;
  background: url(/wp-content/themes/torsas_kommun/assets/images/arrow-down.svg)
    no-repeat right 1.125rem center #f5f5f5;
  background-size: 1.25rem;
  height: 4rem;
  font-size: 1em;
  padding: 0.9375rem 1.2875rem;
  color: #414040;
  border-radius: 0;
  border: 0 none;
  margin-bottom: 1rem;
  background-repeat: no-repeat;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.nf-form-cont input {
  height: 4rem;
}
.nf-form-cont input,
.nf-form-cont textarea {
  width: 100%;
  font-size: 1em;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid transparent;
  padding: 0.9375rem 1.2875rem;
  margin-bottom: 1rem;
}
.nf-form-cont input[type="button"] {
  width: 100% !important;
  background-color: #ecd638 !important;
  color: #b60837 !important;
  height: 3.8rem;
  text-transform: none;
  margin-top: 0;
  font-size: 20px;
  font-weight: bold;
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}
.nf-form-cont input[type="button"]:hover {
  background-color: #b60837 !important;
  color: #ecd638 !important;
  font-weight: bold;
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

/*Instagram*/
.fa-instagram {
  color: white;
}

/* Noscript */
#noScript {
  padding: 30px;
  color: #fff;
  background-color: #000;
}

/* Till sidans innehåll */
#skiplinks {
  position: absolute;
  top: 0px;
  left: 0px;
}
#skiplinks a {
  position: absolute;
  display: block;
  background-color: #000;
  color: #fff;
  padding: 18px;
  top: -1000px;
  z-index: 1000000;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  line-height: 20px;
  outline: 0;
}
#skiplinks a:focus,
#skiplinks a:hover,
#skiplinks a:active {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  border: none;
}

/* MainContentArea */
#MainContentArea {
  display: block;
  font-size: 0;
}

/* Fix för evenemangstid som visas både på torsas.se samt turism */
.event-title .date:nth-of-type(2),
.event-article .date:nth-of-type(2) {
  position: relative;
}
.event-title .date:nth-of-type(2):before,
.event-article .date:nth-of-type(2):before {
  content: "-";
  position: absolute;
  height: 100%;
  display: flex;
  align-items: center;
  top: 1px;
  left: -10px;
}

/* Fix för vänstermenyer */
aside#left-menu ul li a {
  padding-right: 2.2rem;
  word-break: break-word;
}
ul.listing li a {
  padding: 0.464rem 1.7rem 0.464rem 0.5rem;
  position: relative;
  word-break: break-word;
}
ul.listing li a:after {
  position: absolute;
  right: 0px;
  top: 5px;
}

/* Fix för text i huvudrubrik */
#categories span.cat-item {
  font-size: 1.1875rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Roboto Slab", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: inherit;
  text-rendering: optimizeLegibility;
}
#categories a.is-active {
  color: #fff;
}

/* Fix för TAB - sök */
.search-group input:focus:not(:hover),
.search-group button:focus:not(:hover) {
  outline: solid 2px #fff;
  outline-offset: 5px;
}

/* Fix för TAB - huvudmeny */
#categories a:focus:not(:hover) {
  border: none;
  outline: solid 2px #000;
  outline-offset: -2px;
}

/* Fix för TAB - Ninja forms */
.nf-form-cont input:focus:not(:hover),
.nf-form-cont select:focus:not(:hover),
.nf-form-cont button:focus:not(:hover),
.nf-form-cont textarea:focus:not(:hover) {
  border: none;
  outline: solid 2px #000;
  outline-offset: 2px;
}

/* Fix för TAB - sök kontakt */
.puff input:focus:not(:hover),
.puff select:focus:not(:hover),
.puff button:focus:not(:hover) {
  border: none;
  outline: solid 2px #fff;
  outline-offset: 2px;
}

/* Fix för TAB - länkar i puffar */
.puff a:focus:not(:hover) {
  outline: solid 2px #fff;
  outline-offset: -2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.job-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.job-article {
  background-color: #f5f5f5;
  padding: 20px 30px;
  max-width: 900px;
  width: 100%;
}

.job-article h2 {
  text-align: left;
  margin-top: 10px;
}

.job-article p {
  font-size: 18px;
}

.job-title-link {
  background-color: transparent !important;
  text-decoration: none;
}

.job-title-link:hover {
  text-decoration: underline;
  color: #b60837;
}

.job-publish-date {
  font-size: 14px;
}

.job-meta {
  margin-bottom: 15px;
}

.job-meta p {
  margin: 0;
}
