@charset "UTF-8";

body#ytnd {
  background-image: url(YTN-tapetti.png);
  background-size: contain;
  background-repeat: repeat-y;
  background-position: 0 100px;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body#ytnd * {
  font-family: new-hero, sans-serif;
  color: #212121;
  box-sizing: border-box;
}

nav#ytnd-top-bar {
  position: fixed;
  width: 100vw;
  margin: 0;
  top: 0;
  z-index: 9999;
  background-color: #0081c7;
  color: #ffffff;
  font-size: 12pt;
}

div#ytnd-menu-wrapper {
  max-width: 1120px;
  margin: 0 auto 0 auto;
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  flex-direction: row;
  transition: padding-top 1.2s, padding-bottom 1.2s;
}

img#ytnd-logo {
  height: 70px;
  margin-top: 0;
  transition: height 1.2s, margin-top 1.2s;
}

ul#ytnd-main-menu {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin-top: 1.7em;
}

ul#ytnd-main-menu li a {
  text-decoration: none;
  color: #ffffff;
  padding-right: 2.5em;
}

ul#ytnd-main-menu li a:hover, ul#ytnd-main-menu li.ytnd-current a {
  text-decoration: underline;
}

nav#ytnd-bottom-bar {
  width: 100vw;
  margin: 0;
  top: 0;
  z-index: 9999;
  background-color: #0081c7;
  color: #ffffff;
  font-size: 10pt;
  line-height: 1.8em;
  padding: 15px 0 60px 0;
}

img#ytnd-logo-large {
  height: 180px;
  margin: 0 30px 0 0;
}

nav#ytnd-bottom-bar * {
  color: #ffffff;
}

div.ytnd-subpage-marker:not(.ytnd-subpage-marker-0) { 
  margin-top: calc(100vh - 150px); 
  margin-bottom: calc(-100vh + 150px) 
}

nav#ytnd-top-bar.ytnd-scrolled div#ytnd-menu-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo {
  height: 50px;
  margin-top: 13px;
}

main#ytnd-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 160px auto 180px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.18);
  background-color: #ffffff;
  padding-bottom: 60px;
  margin-bottom: 180px;
}

main#ytnd-main h1, main#ytnd-main h2 {
  font-size: 24pt;
  font-weight: 300;
  margin-top: -2pt;
  margin-bottom: 1.8em;
  line-height: 28pt;
}

main#ytnd-main section > h3 {
  font-size: 21pt;
  font-weight: 300;
  padding-bottom: 1em;
  line-height: 23pt;
}

main#ytnd-main section#ytnd-intro-numbers > h3 {
  font-size: 14.5pt;
}

main#ytnd-main h4, span.ytnd-paragraphs h3 {
  font-size: 14.5pt;
  font-weight: 700;
  padding-bottom: 0;
  line-height: auto;
}

main#ytnd-main h1::after, main#ytnd-main h2::after, main#ytnd-main section > h3::after {
  content: "\A \00a0\00a0\00a0\00a0\00a0\00a0";
  white-space: pre;
  border-bottom: 5px solid #0081c7;
}

main#ytnd-main strong {
  font-weight: 700;
}

main#ytnd-main a:hover {
  text-decoration: none;
}

section.ytnd-text {
  font-size: 11pt;
  line-height: 1.8em;
  padding: 60px 65px 30px 65px;
  max-width: 66%;
  min-width: 50%;
  flex-basis: 50%;
  flex-grow: 2;
}

section#ytnd-lead {
  max-width: 66%;
  min-width: 50%;
  flex-basis: 50%;
  flex-grow: 2;
  padding-bottom: 6em;
}

section#ytnd-intro-numbers {
  background-color: #f3f4f7;
}

section.ytnd-text-wide {
  max-width: 100%;
  min-width: 50%;
  flex-basis: 66%;
  flex-grow: 3;
}

section.ytnd-text-halfwide {
  max-width: 50%;
  min-width: 45%;
  flex-basis: 50%;
  flex-grow: 1.5;
  padding: 60px 65px 30px 65px;
  font-size: 11pt;
  line-height: 1.8em;
}

section.ytnd-text-headline-only {
  padding: 60px 65px 0 65px;
  margin-bottom: -75px;
}

section#ytnd-position-bar {
  background-color: #cbf2e5;
}

section#ytnd-position-bar div.ytnd-intro-chart-wrapper {
  height: 100%;
}

section#ytnd-median-pay-bar {
  background-color: #ec6d69;
}

section#ytnd-gender-donut {
  background-color: #726aaf;
}

section.ytnd-chart {
  min-width: 65%;
  max-width: 100%;
  flex-basis: 67%;
  flex-grow: 2;
  align-items: flex-start;
  padding: 0 65px 30px 65px;
  margin-top: 90px;
  transition: min-width 0.6s, max-width 0.6s, flex-basis 0.6s, flex-grow 0.6s, margin-top 0.6s;
}

section.ytnd-chart-halfwide {
  max-width: 50%;
  min-width: 45%;
  flex-basis: 50%;
  flex-grow: 1.5;
  padding: 0 65px 30px 65px;
}

section.ytnd-chart-halfwide.ytnd-chart-left {
  padding: 0 20px 30px 65px;
  z-index: 999;
}

section.ytnd-chart-halfwide.ytnd-chart-right{
  padding: 0 65px 30px 20px;
}

section.ytnd-explanation {
  min-width: 20%;
  max-width: 50%;
  flex-basis: 25%;
  flex-grow: 1;
  padding: 0 0 30px 0;
  margin: 80px 60px 30px 0;
  max-height: 590px;
  overflow: hidden;
  transition: min-width 0.6s, flex-basis 0.6s, flex-grow 0.6s, margin-bottom 0.6s;
}

section.ytnd-explanation p {
  font-size: 10pt;
  line-height: 15.2pt;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}


section.ytnd-intro-chart {
  min-width: 45%;
  max-width: 50%;
  flex-basis: 33%;
  flex-grow: 1;
  padding: 60px 65px 20px 65px;
  margin-top: 0;
}

section.ytnd-intro-chart.ytnd-intro-chart-narrow {
  min-width: 25%;
  max-width: 40%;
  flex-basis: 28%;
}

section.ytnd-vertical-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  max-width: 40%;
  min-width: 33%;
  max-height: 100vh;
  flex-basis: 37%;
  flex-grow: 1;
}

section.ytnd-vertical-wrapper div.ytnd-intro-chart-wrapper {
  padding: 60px 65px 15px 65px;
  margin-top: 0;
}

section.ytnd-vertical-wrapper div.ytnd-intro-chart-wrapper svg.ytnd-kuvio {
  max-height: 40vw;
}

div#ytnd-average-pay-bar {
  background-color: #91c5e3;
  padding-right: 20px;
}

div#ytnd-travel-donut {
  background-color: #cbf2e5;
}

div#ytnd-average-age-bar {
  background-color: #99cce9;
}

div#ytnd-employment-type-donut {
  background-color: #ed6c66;
}

div#ytnd-region-donut {
  background-color: #cbf2e5;
}

div#ytnd-employer-size-bar {
  background-color: #7268b0;
}

div.ytnd-kuvio-tooltip {
  margin-top: -10px;
  max-width: 220px;
  background-color: #ffffff;
  font-size: 1.125rem;
  padding: 0.2em 0.5em;
  box-shadow: 3px 3px 1.5px rgba(0, 0, 0, 0.25);
}

div.ytnd-kuvio-tooltip p {
  line-height: 1.2em;
  margin: 0.2em 0 0.2em 0;
}

div.ytnd-kuvio-tooltip p.emphasis {
  font-weight: 700;
}

div.ytnd-kuvio-tooltip p.main-value {
  font-size: 16pt;
  font-weight: 900;
  margin: 0.1em 0 0.1em 0;
}

div.ytnd-filter-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: calc(945px + 0.5em);
  margin-top: 30px;
}

button.ytnd-filter-button, ul.ytnd-filter-dropdown-list {
  background-color: #ffffff;
  margin: 0 0.5em 0.5em 0;
  width: calc(945px / 3 - 0.333em);
  transition: color 150ms ease 0s;
  appearance: none;
}

button.ytnd-filter-button {
  border: 2px solid #542c8c;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0 2px 16px;
}

button.ytnd-filter-button.ytnd-filter-button-time {
  border-color: #246854;
  background-color: #e7f2ed;
}

button.ytnd-filter-button span {
  font-size: 1.125rem;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  padding: 0;
  width: calc(945px / 3 - 0.5em - 55px);
}

button.ytnd-filter-button svg.ytnd-filter-caret {
  position: relative;
  top: -10px;
  right: -10px;
}

button.ytnd-filter-button svg.ytnd-filter-caret path {
  transition: 0.15s transform;
  transition-timing-function: ease-out;
  transform-origin: center;
}

button.ytnd-filter-button[aria-expanded="true"] svg.ytnd-filter-caret path {
  transform: rotate(180deg);
}

button.ytnd-filter-button.ytnd-option-selected:not(.ytnd-filter-button-time) {
  background-color: #90ce9c;
}

button.ytnd-filter-button.ytnd-option-selected:focus:not(.ytnd-filter-button-time) {
  background-color: #ffffff;
}

ul.ytnd-filter-dropdown-list {
  position: absolute;
  display: none;
  list-style-type: none;
  border: 1px solid #bbbbbb;
  border-top: none;;
  margin-top: -5px;
  padding: 5px 0;
  line-height: 2em;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

ul.ytnd-filter-dropdown-list-time {
  background-color: #e7f2ed;
  color: #246854;
}

ul.ytnd-filter-dropdown-list[aria-hidden="false"] {
  display: block;
}

ul.ytnd-filter-dropdown-list li.ytnd-filter-option {
  padding: 10px 12px;
  line-height: 1.2em;
}

ul.ytnd-filter-dropdown-list li.ytnd-filter-option[aria-selected="true"]  {
  background-color: #f37b76;
  font-weight: bold;
}

ul.ytnd-filter-dropdown-list:hover li.ytnd-filter-option[aria-selected="true"]  {
  background-color: #ffffff;
  font-weight: normal;
}

ul.ytnd-filter-dropdown-list li.ytnd-filter-option:hover, ul.ytnd-filter-dropdown-list:hover li.ytnd-filter-option:hover  {
  background-color: #f37b76;
  font-weight: bold;
}

button.ytnd-filter-reset {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  padding: 4px 8px 8px 8px;
  border: 2px solid transparent;
  background-color: transparent;
  height: 3rem;
}

button.filter-reset svg.ytnd-reset-button-icon path {
  fill: #542c8c;
}

button.ytnd-filter-reset:disabled svg.ytnd-reset-button-icon path {
  fill: #949494;
}

button.ytnd-filter-reset span {
  border: none;
  border-bottom: 2px solid;
  margin-left: 0.5em;
  color: #542c8c;
  border-color: #542c8c;
}

button.ytnd-filter-reset span:hover {
  border-color:#ffffff;
  cursor: pointer;
}

button.ytnd-filter-reset:disabled span {
  color: #949494 !important;
  border-color: #949494;
  cursor: default;
}

button:focus {
  border-color: #f37b76;
  outline: 2px solid #f37b76;
}

div.ytnd-filter-note {
  font-size: 0.85em;
  line-height: 1.5em;
  font-style: italic;
  margin-top: 0.6em;
}

div.ytnd-not-enough-data {
  font-size: 1.4em;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(220, 220, 220, 0.6);
  padding: 30px;
  z-index: 999;
}

div.ytnd-download-buttons {
  padding-top: 2px;
  font-size: 14.5pt;
}

div.ytnd-download-buttons button {
  border: 2px solid #542c8c;
  background-color: #ffffff;
  padding: 0.2em 0.6em 0.15em 0.6em;
  margin: 0 0 0.5em 0.75em;
  font-size: 12.5pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  cursor: pointer;
}

button.ytnd-explanation-expand-button, button.ytnd-more-about-method-button {
  border: 2px solid #542c8c;
  background-color: #ffffff;
  padding: 0.2em 0.6em 0.15em 0.6em;
  font-size: 12.5pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  transition: margin-top 0.6s;
}

div.ytnd-download-buttons button:hover, div.ytnd-download-buttons button:focus, button.ytnd-explanation-expand-button:hover, button.ytnd-explanation-expand-button:focus, button.ytnd-more-about-method-button:hover, button.ytnd-more-about-method-button:focus {
  border-color: #f37b76;
  background-color: #f37b76;
}

button.ytnd-more-about-method-button {
  margin-top: 0.75em;
}

section#ytnd-about-method {
  height: 0;
  overflow: hidden;
  min-width: 100%;
  flex-basis: 100%;
  padding-top: 0;
  padding-bottom: 0;
  transition: padding-top 0.6s, margin-bottom 0.6s, height 0.6s;
}

section#ytnd-about-method.ytnd-expanded {
  height: 600px;
  padding-top: 30px;
  margin-bottom: 30px;
}

section.ytnd-chart.ytnd-compressed {
  min-width: 40%;
  max-width: 50%;
  flex-basis: 50%;
  flex-grow: 1.5;
  margin-top: -105px;
}

section.ytnd-chart.ytnd-compressed div.ytnd-filter-controls {
  display: none;
}

section.ytnd-explanation.ytnd-expanded {
  min-width: 40%;
  flex-basis: 40%;
  flex-grow: 1.5;
  margin-bottom: 50px;
}

h2#ytnd-h2-background {
  padding-top: 60px;
}

section#ytnd-gross-pay-distribution-explanation em {
  display: inline-block;
  font-size: 8.8pt;
  line-height: 1.45em;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

section#ytnd-gross-pay-distribution-explanation em::after {
  content: "\A \00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0";
  white-space: pre;
  border-bottom: 3px solid #0081c7;
}

/* Responsive styles */

@media screen and (max-width: 1050px) {
  div.ytnd-filter-controls { width: calc(100vw - 150px + 1em); }
  button.ytnd-filter-button, ul.ytnd-filter-dropdown-list { width: calc(33.3vw - 50px - 0.333em); white-space: nowrap; overflow: hidden; }
  button.ytnd-filter-button span { width: calc(33.3vw - 0.5em - 105px); }
}

@media screen and (max-width: 1010px)  {
  section#ytnd-lead, section.ytnd-intro-chart, section.ytnd-intro-chart.ytnd-intro-chart-narrow { min-width: 45%; max-width: 50%; flex-basis: 45%; flex-grow: 1;  }
}

@media screen and (max-width: 900px) {
  section.ytnd-intro-chart, section.ytnd-vertical-wrapper div.ytnd-intro-chart-wrapper { padding: 30px 30px 15px 30px; }
  section.ytnd-intro-chart.ytnd-intro-chart-narrow { padding-top: 60px; }
  section.ytnd-explanation { min-width: 100%; max-width: 100%; flex-basis: 100%; padding: 30px 65px; margin: 0 60px 0 0; max-height: auto; overflow: visible; }
  button.ytnd-explanation-expand-button { display: none; }
}

@media screen and (max-width: 875px) {
  button.ytnd-filter-button, ul.ytnd-filter-dropdown-list { width: calc(50vw - 75px - 0.333em); }
  button.ytnd-filter-button span { width: calc(50vw - 0.5em - 130px); }
  section.ytnd-chart-halfwide, section.ytnd-chart-halfwide.ytnd-chart-left, section.ytnd-chart-halfwide.ytnd-chart-right { min-width: 100%; max-width: 100%; flex-basis: 100%; padding: 30px 65px; margin: 0 60px 0 0; }
}

@media screen and (max-width: 875px) and (min-width: 471px) {
  nav#ytnd-top-bar div#ytnd-menu-wrapper { font-size: 10.5pt }
  ul#ytnd-main-menu li a { padding-right: 1em; }
}

@media screen and (max-width: 785px) {
  nav#ytnd-top-bar div#ytnd-menu-wrapper { padding-top: 0; padding-bottom: 0; transition: none; }
  main#ytnd-main { margin-top: 65px; box-shadow: none; }
  body#ytnd { background-image: none; }
  nav#ytnd-top-bar img#ytnd-logo { margin-top: 13px; transition: none; }
}

@media screen and (max-width: 785px) and (min-width: 525px) {
  nav#ytnd-top-bar img#ytnd-logo { height: 50px; }
}

@media screen and (max-width: 767px) {
  section#ytnd-lead, section#ytnd-intro-numbers, section#ytnd-long-intro { min-width: 100%; max-width: 100%; flex-basis: 100%; padding: 45px 30px; margin: 0 0 45px 0; }
  section#ytnd-lead { order: -3; }
  section#ytnd-about-method { order: -2; padding: 0 30px }
  section#ytnd-about-method.ytnd-expanded { padding-top: 0; margin-top: -60px; }
  section#ytnd-intro-numbers { margin-bottom: -90px; }
  section.ytnd-intro-chart.ytnd-intro-chart-narrow { padding: 30px 0 0 0; order: -1; }
  section.ytnd-intro-chart.ytnd-intro-chart-narrow svg.ytnd-kuvio { margin-left: -30px; }
  section.ytnd-chart:not(.ytnd-intro-chart) { padding: 45px 30px; }
  section.ytnd-vertical-wrapper { max-width: 50%; }
  section#ytnd-long-intro-sidebar { flex-direction: row; max-width: 100%; min-width: 100%; max-height: auto; margin: -60px 0; }section#ytnd-long-intro-sidebar div { max-width: 50%; min-width: 45%; flex-basis: 50%; }
  section.ytnd-text { padding: 30px 30px 30px 30px; }
  div#ytnd-travel-donut, div#ytnd-employment-type-donut { display: none; }
  div#ytnd-average-pay-bar { padding: 30px 0 15px 30px; min-height: 100%; }
  div.ytnd-filter-controls { width: calc(100vw - 90px + 1em); }
  button.ytnd-filter-button, ul.ytnd-filter-dropdown-list { width: calc(50vw - 45px - 0.333em); }
  button.ytnd-filter-button span { width: calc(50vw - 0.5em - 100px); }
  h2.ytnd-subpage-header { padding-top: 2.5em; }
  h2#ytnd-h2-background { padding-top: 4em; }
  div.ytnd-subpage-marker:not(.ytnd-subpage-marker-0) { margin-top: calc(100vh - 250px);  margin-bottom: calc(-100vh + 250px) }
}

@media screen and (max-width: 660px) {
  ul#ytnd-main-menu { display: inline; padding-bottom: 15px; padding-left: 0; }
  ul#ytnd-main-menu li { display: inline-block; height: 2em; max-width: 10vw; vertical-align: top; margin-right: 1.7em; }
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { margin-right: 15px; }
  main#ytnd-main h1 { margin-top: 30px; }
}

@media screen and (max-width: 630px) {
  section.ytnd-intro-chart, section.ytnd-intro-chart.ytnd-intro-chart-narrow, section.ytnd-vertical-wrapper, section#ytnd-long-intro-sidebar, section#ytnd-long-intro-sidebar div { min-width: 100%; max-width: 100%; flex-basis: 100%;  margin: 0; flex-direction: column; min-height: 0; }
  section#ytnd-long-intro-sidebar div.ytnd-intro-chart-wrapper { min-height: 50vh; max-height: 100vh; }
  section#ytnd-long-intro-sidebar div.ytnd-intro-chart-wrapper svg.ytnd-kuvio { min-height: calc(50vh - 45px); }
}

@media screen and (max-width: 630px) and (min-width: 546px) {
  section#ytnd-position-bar svg.ytnd-kuvio { margin-left: -140px }
}

@media screen and (max-width: 575px) {
  button.ytnd-filter-button, ul.ytnd-filter-dropdown-list { width: calc(100vw - 90px); }
  button.ytnd-filter-button span { width: calc(100vw - 0.5em - 145px); }
}

@media screen and (max-width: 545px) {
  section.ytnd-intro-chart.ytnd-intro-chart-narrow svg.ytnd-kuvio { margin-left: 30px; width: 75vw }
}

@media screen and (max-width: 525px) {
  ul#ytnd-main-menu li { font-size: 9.5pt; height: 2em; max-width: 9.5vw; vertical-align: top; margin-right: 1.7em; }
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { margin-right: 15px; }
}

@media screen and (max-width: 490px) {
  img#ytnd-logo-large { height: 150px; margin-right: 15px; }
}

@media screen and (max-width: 470px) {
  main#ytnd-main h1 { margin-top: 140px; }
  ul#ytnd-main-menu { flex-direction: column; padding-bottom: 10px; }
  ul#ytnd-main-menu li { font-size: 11pt; display: list-item; height: auto; max-width: none; padding-bottom: 0.5em; white-space: nowrap; }
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { height: 70px; margin-right: 1em; }
}

@media screen and (max-width: 415px) {
  img#ytnd-logo-large { height: 120px; }
  nav#ytnd-bottom-bar { font-size: 9pt; }
}

@media screen and (max-width: 400px) {
  main#ytnd-main h1 { margin-top: 110px; }
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { margin-top: 5px !important; }
  ul#ytnd-main-menu { margin-top: 23px; margin-bottom: 10px }
  ul#ytnd-main-menu li { font-size: 10pt; line-height: 1.2em; }
}

@media screen and (max-width: 360px) {
  img#ytnd-logo-large { display: none; }
  nav#ytnd-bottom-bar { font-size: 10pt; }
  div#ytnd-contact-info { padding-left: 30px; }
}

@media screen and (max-width: 320px) {
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { margin-right: 10px; }
  ul#ytnd-main-menu li { font-size: 10.5pt; }
}

@media screen and (max-width: 285px) {
  img#ytnd-logo, nav#ytnd-top-bar.ytnd-scrolled img#ytnd-logo { height: 23vw; margin-right: 0; }
}