/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/**/

@font-face {
    font-family: 'SuisseIntl-Light-WebS';
    src: url('../webfont/SuisseIntl-Light-WebS.eot');
    src: url('../webfont/SuisseIntl-Light-WebS.eot?#iefix') format('embedded-opentype'),
         url('../webfont/SuisseIntl-Light-WebS.woff2') format('woff2'),
         url('../webfont/SuisseIntl-Light-WebS.woff') format('woff'),
         url('../webfont/SuisseIntl-Light-WebS.ttf') format('truetype'),
         url('../webfont/SuisseIntl-Light-WebS.svg#SuisseIntl-Light-WebS') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl-Regular-WebM';
    src: url('../webfont/SuisseIntl-Regular-WebM.eot');
    src: url('../webfont/SuisseIntl-Regular-WebM.eot?#iefix') format('embedded-opentype'),
         url('../webfont/SuisseIntl-Regular-WebM.woff2') format('woff2'),
         url('../webfont/SuisseIntl-Regular-WebM.woff') format('woff'),
         url('../webfont/SuisseIntl-Regular-WebM.ttf') format('truetype'),
         url('../webfont/SuisseIntl-Regular-WebM.svg#SuisseIntl-Regular-WebM') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl-Medium-WebM';
    src: url('../webfont/SuisseIntl-Medium-WebM.eot');
    src: url('../webfont/SuisseIntl-Medium-WebM.eot?#iefix') format('embedded-opentype'),
         url('../webfont/SuisseIntl-Medium-WebM.woff2') format('woff2'),
         url('../webfont/SuisseIntl-Medium-WebM.woff') format('woff'),
         url('../webfont/SuisseIntl-Medium-WebM.ttf') format('truetype'),
         url('../webfont/SuisseIntl-Medium-WebM.svg#SuisseIntl-Medium-WebM') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl-Bold-WebM';
    src: url('../webfont/SuisseIntl-Bold-WebM.eot');
    src: url('../webfont/SuisseIntl-Bold-WebM.eot?#iefix') format('embedded-opentype'),
         url('../webfont/SuisseIntl-Bold-WebM.woff2') format('woff2'),
         url('../webfont/SuisseIntl-Bold-WebM.woff') format('woff'),
         url('../webfont/SuisseIntl-Bold-WebM.ttf') format('truetype'),
         url('../webfont/SuisseIntl-Bold-WebM.svg#SuisseIntl-Bold-WebM') format('svg');
    font-weight: normal;
    font-style: normal;
}


/**/

:root {

 /* sovrascrivo classi Bootstrap */

--black: #000000;
--black-rgb: 0, 0, 0;

--dark: #545F71;
--dark-rgb: 84,95,113;

--medium: #9BA5B7;
--medium-rgb: 155,165,183;

--light: #EEF1F4;
--light-rgb: 238,241,244;

--white: #ffffff;
--white-rgb: 255,255,255;

--text-default: #545F71;
--text-default-rgb: 84,95,113;

--primary: #e32119;
--primary-rgb: 227,33,25;

--grand_seiko: #00104a;
--grand_seiko-rgb: 0,16,74;
}

.bg-black { background-color: var(--black) }
.text-black { color: var(--black) }

.bg-primary { background-color: var(--primary) }
.text-primary { color: var(--primary) }


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  background-color: var(--bs-light);
  color: var(--text-default);
  font-family: 'SuisseIntl-Regular-WebM', Arial, sans-serif;
  text-rendering: geometricPrecision;
  line-height: 1.36;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}


input,
button,
textarea { border-radius: .2em; }

::placeholder {
  color: var(--medium);
}

.form-group { position: relative; margin-bottom: 1.5em; }


figure { margin-block-start: 0; margin-block-end: 0; margin-inline-start: 0; margin-inline-end: 0; }
blockquote { margin-block-start: 0; margin-block-end: 0; margin-inline-start: 0; margin-inline-end: 0; }

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position:absolute!important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media only screen and (max-width: 767px) {
  .no-mobile { display: none; }
}
@media only screen and (min-width: 768px) {
  .no-desktop { display: none; }
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*
*
GRID
*
*/
body { position: relative; }
main { position: relative; }
section { position: relative; z-index: 2; /*background: var(--bs-light);*/ }

body:before { content:""; display: block; position: absolute; top: 0; left: 0; height:100%; width: 1vw; background: var(--primary); z-index: 3; }


.container {
  overflow: hidden;
  padding-left: 10vw;
  padding-right: 10vw;
}
.container.no-padding {
  padding-left: 0;
  padding-right: 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.row-reverse {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

@media only screen and (min-width: 992px) {
  .row-md-reverse {
    flex-direction: row-reverse;
  }
}
@media only screen and (max-width: 535px) {
  body::before { display: none; }
  .container { padding-left: 5vw; padding-right: 5vw; }
}

.img-holder {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.img-holder .img {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 400ms ease-out;
}

.prop2by3 { padding-bottom: 150%; }
.prop1by1 { padding-bottom: 100%; }
.prop4by3 { padding-bottom: 75%; }
.prop16by9{ padding-bottom: 56.25%; }
.prop2by1 { padding-bottom: 50%; }

/*
*
TYPOGRAPHY
*
*/

html {
  font-size: 1.3vw;
}

h1, .h1 { font-family: 'SuisseIntl-Medium-WebM'; font-weight: normal; margin-top: 0; margin-bottom: 0; font-size: 2.72rem; line-height: 1em; }
h2, .h2 { font-family: 'SuisseIntl-Medium-WebM'; font-weight: normal; margin-top: 0; margin-bottom: 0; font-size: 2.18rem; }
h3, .h3 { font-family: 'SuisseIntl-Medium-WebM'; font-weight: normal; margin-top: 0; margin-bottom: 0; font-size: 1.81rem; }
h4, .h4 { font-family: 'SuisseIntl-Medium-WebM'; font-weight: normal; margin-top: 0; margin-bottom: 0; font-size: 1.36em; }
h5, .h5 { font-family: 'SuisseIntl-Medium-WebM'; font-weight: normal; margin-top: 0; margin-bottom: 0; font-size: 1.25em; }

p { margin-top: 0; font-size: 1em; }

a { color: inherit; }

a.view-more {
  font-size: .75em;
  text-transform: uppercase;
}

h1.bigger { font-size: 4rem; line-height: 1em; }

@media only screen and (max-width: 1200px) {
  html { }
}
@media only screen and (max-width: 991px) {
  html {  }
  p { }
}
@media only screen and (max-width: 767px) {
  html { font-size: 2.5vw; }
  h1.bigger { font-size: 3rem; line-height: 1em; }
}
@media only screen and (max-width: 535px) {
  html { font-size:4vw; }
  h1 { font-size:2.4rem; }
  h2 { font-size:1.7rem; }
  h3 { font-size:1.5rem; }
  h1.bigger { font-size: 2.4rem; }
}


/*
BUTTONS
*/

input {
  display: block;
  padding: .5em;
  background: var(--light);
  border: 1px solid var(--medium);
  /* border-color: transparent transparent rgba( var(--text-default-rgb), 1) transparent; */
}

button, input[type='button'] {
  display: block;
  padding: .5em;
  background: rgba( var(--text-default-rgb), 1);
  color: var(--white);
  /* border: 1px solid transparent;
  /* border-color: transparent transparent rgba( var(--text-default-rgb), 1) transparent; */
}


.btn {
  display: inline-block;
  font-family: 'SuisseIntl-Medium-WebM';
  line-height: 1em;
  text-decoration: none;
  padding: .75em 1.5em;
  transition: all 100ms ease;
  border:.1em solid;
  border-radius: 1.5em;
  margin: 0 .5em .5em 0;
  cursor: pointer;
}


.btn-outline, .btn-outline-light {
  border: .1em solid;
}

.btn-black {
  color: var(--white);
  border-color: var(--black);
  background-color: var(--black);
}
.btn-outline-black {
  color: var(--black);
  border-color: var(--black);
}
.btn-black:hover,.btn-outline-black:hover {
  color: var(--light);
  border-color: var(--black);
  background-color: var(--black);
}

.btn-primary {
  color: var(--light);
  border-color: var(--primary);
  background-color: var(--primary);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,.btn-outline-primary:hover {
  color: var(--light);
  border-color: var(--primary);
  background-color: var(--primary);
}

@media only screen and (max-width: 535px) {
  .btn { border-width: .15em; }
}


/*
CUSTOM SELECT
*/

/*the container must be positioned relative:*/
.custom-select { position: relative; width: 100%; }
.custom-select select { display: none; /*hide original SELECT element:*/ }

.select-selected {
  width: 100%;
  padding: .5em 1.5em .5em 0;
  border: 1px solid transparent;
  border-color: transparent transparent rgba( var(--text-default-rgb), 1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: .5em;
  right: 0;
  width: 1em;
  height: 1.25em;
  background-image: url(../img/scrolldown-dark.svg);
  background-repeat: no-repeat;
  background-position: center bottom;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after { top: .5em; }

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: var(--bs-light);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}
.select-items div {
  padding: .5em .25em;
  border: 1px solid transparent;
  border-color: transparent transparent rgba( var(--text-default-rgb), .15) transparent;
  cursor: pointer;
  user-select: none;
}


/*hide the items when the select box is closed:*/
.select-hide { display: none; }

.select-items div:hover, .same-as-selected {
  background-color: rgba( var(--text-default-rgb), .1)
}



/*
*
HEADER
*
*/
header { position:relative; top: 0; z-index: 900; width: 100%; padding: 0; background: var(--bs-light); transition: all 200ms ease; }
header nav { display: flex; flex-wrap: wrap; }
header nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; margin-top: auto; }
header nav ul li { font-size: .8em; /*text-transform: uppercase;*/ }
header nav ul li a { position: relative; color: var(--black); }

header nav ul li a:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--text-default);
  transition: all 200ms ease-out;
  width: 0;
}

header nav ul li:hover a:after,
header nav ul li.active a:after {
  width: 100%;
}

header nav .logo { font-family: 'SuisseIntl-Medium-WebM'; font-size: 1.1em; line-height: 1.2em; height: 8.5rem; background: var(--primary); }
header nav .logo img { height: 100%; transform: translateY(-0.15em); margin-right: 0.15em; }
header nav .logo svg { height: 100%; transform: translateY(-0.15em); margin-right: 0.15em; }

header.bg-transparent { background: transparent; color: var(--bs-light); }
header.bg-transparent nav ul li a:after { background: var(--bs-light); }

.menu-mobile-button { display: none; }
.menu-main { margin-left: auto; }
.menu-lang { margin-left: auto; }

.menu-main li { margin-right: 1.5em; }

@media only screen and (max-width: 1200px) {
  header nav .logo { font-size: 1.4em; }
  header nav ul li { font-size: .9em; }
  .menu-lang { margin-left: 4vw; }
}
@media only screen and (max-width: 991px) {
  header nav .logo { font-size: 1.5em; }
  header nav ul li { font-size: 1em; }
  .menu-lang { margin-left: auto; }
}
@media only screen and (max-width: 767px) {
  .menu-mobile-button { display: flex; margin-left: auto; margin-top: auto; font-size: 1em; text-transform: uppercase; }
  .menu-main { display: none; position: fixed; top: 4em; width: 100%; overflow: hidden; flex-direction: column; z-index: 800; }
  .menu-lang { margin-left: auto; }
}


/*
*
COMMON
*
*/
.comparsa { transition: all 1s ease; position:relative; top:0; opacity:1; }
.comparsa.infade { top: 4em; opacity: 0.1; }

.page_intro {
  padding-top: 3.5vw;
  padding-bottom: 8vw;
}
.page_intro h3 {
  font-weight: normal;
  max-width: 32.4em;
  margin: 0;
}
.page_section {
  padding-top: 3.5vw;
  padding-bottom: 3.5vw;
}
section.border-top .container:first-child::before {
  content: ""; display: block; position: absolute; top: 0; left: 3.5vw; right:3.5vw; height: 1px; background: var(--text-default);
}


.image-text {
  margin-left:  -1.75vw;
  margin-right:  -1.75vw;
}
.image-text .col-image {
  display: block;
  width: 50%;
  padding-left: 1.75vw;
  padding-right: 1.75vw;
}
.image-text .col-text {
  display: block;
  width: 50%;
  padding-left: 1.75vw;
  padding-right: 1.75vw;
}
.image-text h2 { margin-top: 1em; }

@media only screen and (max-width: 1200px) {
  .image-text .col-text { width: 66%; }
  .image-text .col-image { width: 34%; }
}
@media only screen and (max-width: 991px) {
  .image-text .col-text { width: 100%; margin-bottom: 2.5vw; }
  .image-text .col-image { width: 100%; margin-bottom: 7vw; }
}
@media only screen and (max-width: 767px) {
}


/*
*
SPLASH
*
*/
#splash-intro { padding-top: 5vw; padding-bottom: 10vw; }
#splash-intro h1 .text-light { font-family: 'SuisseIntl-Light-WebS'; }
#splash-intro .row { margin-top: 5vw; }
#splash-intro .col-1 { padding-right: 5vw; flex: 1; }
#splash-intro .col-2 { width: 36%; color: var(--grand_seiko); }

.format:before  { content: ""; display:block; position: absolute; top: 0; left: 10vw;  right:0; height: 1px; background: var(--black); }
.format .container { padding-top: 1em; }
.format .block { width: 66%; padding-bottom: 10vw; }
.format .row { margin-left: -5vw; margin-right: -5vw; padding-bottom: 10vw; }
.format .col-pack { width: 50%; padding-left:5vw; padding-right: 0;  margin-bottom: 5vw; }
.format .col-pack h3 { font-size: 1.4em; }
.format .col-pack p { font-size: .9em; }


.pack-grid { display: flex; flex-wrap: wrap; flex-direction:row; margin-bottom: 1.5em; }
.card-pack { color: var(--primary); width: 33.33%; border-left: 3px solid var(--primary); padding: 0 .5em; }
.card-pack p { margin-bottom: 0; }

.update-tag{  display: inline-block; font-size: .6rem; line-height: 1em; background: var(--primary); color: var(--white); padding: .6em 1em; text-transform: uppercase; letter-spacing: 0.03em; font-family: 'SuisseIntl-Medium-WebM'; margin: 0.5em 0; }
p.update { font-size: .8em; padding: 1em 1.5em 2em; background: #fff3d2; color: rgba(var(--black-rgb),.7) }

@media only screen and (max-width: 767px) {
  #splash-intro { padding-top: 10vw; padding-bottom: 10vw; }
  #splash-intro .col-1 { width: 100%; margin-bottom: 5vw; }
  #splash-intro .col-2 { width: 100%; }
  .format:before { display: none; }
  .format .block { width: 100%; padding-bottom: 10vw; }
  .format .col-pack { width: 100%; margin-bottom: 10vw; }
}
@media only screen and (max-width: 575px) {
  #splash-intro .btn { width: 100%; text-align: center; }
  .format .btn { width: 100%; text-align: center; }
  .card-pack { width: 100%; border-left:0; border-top: 2px solid var(--primary); padding: .5em 0; margin-top: 1em; display: flex; justify-content: space-between; }
  .card-pack p { margin-top: .3em; }
}


/*
LOGIN
*/
#login-section { }
#login-section .row { margin-right: -10vw; }
.login-info { width:calc(66% - 10vw); padding-right: 10vw; }
.login-info h3 { margin-bottom: 1em; }

.login-form-holder {
  position: relative;
  width: calc(34% + 10vw);
}
#login_form { background-color: var(--primary); color: var(--white); padding: 1em 10vw 1.5em 1.5em; border-radius: 1em 0 0 1em; }

#login_form .h3 { margin-bottom: 1.3rem; }
#login_form label { width: 100%; font-size: .8em; }
#login_form input:not([type='button']) { width: 100%; background: var(--white); }
#login_form input[type='button'] { background-color: #B81A0D; border-color: #B81A0D; color: var(--white); padding-left: 1em; padding-right: 1em; }

#login_form a.password-recover { font-size: .8em; position: absolute; right: 0; top: .2em; opacity: .8; text-decoration: underline; }
#login_form a.password-recover:hover { opacity: 1; }

.form-group-submit { margin-right: 1.5em; }
.form-group-register { display: flex; flex-direction: column; font-size: .8em; }
.form-group-register a { text-transform: uppercase; }

#login-section .container > .row:last-of-type { padding-top: 5vw; padding-bottom: 5vw; }

@media only screen and (max-width: 767px) {
  #login-section .row { margin-left:-10vw; }
  .login-info { width: 100%; padding:0 10vw 10vw; }
  .login-form-holder { width: 100%; }
  #login_form { padding: 1.5em 10vw; border-radius: 0; }
  #login_form .h3 { text-align: center; }
  #login_form .row { margin-left: 0; margin-right: 0; }
  #login_form a.password-recover { display: block; position: relative; margin: .75em 0 1em; text-align: center; }
  #login_form input[type='button'] { width: 100%; }
  .form-group-submit { width: 100%; margin: 0 0 .5em; }
  .form-group-register { width: 100%; text-align: center; margin: .75em 0 1em; }

  #login-section .container > .row:last-of-type {  padding: 10vw 5vw; margin: 0; }
  #login-section .container > .row:last-of-type br {  display: none; }
}


/*
REGISTRATION
*/
#registration-section { padding-bottom: 10vw; }
.registration-info { width: 32%; padding-right: 10vw; font-size: .8em; }
.registration-info .btn { margin-top: .5em; }

#registration-form { width: 50%; }
#registration-form label { font-size: .8em; color: var(--medium); }
#registration-form input:not([type='checkbox']) { width: 100%; }
#registration-form input[type='checkbox'] { float: left; width: 1.5em; height: 1.5em; margin-right: 0.5em; }

#registration-form input[type='button'] { background-color: var(--primary); border-color: var(--primary); color: var(--white); }

@media only screen and (max-width: 767px) {
  .registration-info { width: 100%; margin-bottom: 10vw; font-size: 1em; }
  #registration-form  { width: 100%; padding-bottom: 10vw; }
}


/* COUNTDOWN */
#timekeeper_logo { display:flex; position:relative; width:100%; padding:15px 0; text-align:center; }
#timekeeper_logo img { height: 35px; }
.is-countdown { display:block; position:relative; width:100%; padding:0; overflow: hidden; border-bottom:1px solid #00104a; font-family: 'SuisseIntl-Regular-WebM'; }
#timekeeper_text { display:block; position:relative; padding-top:10px; font-size:14px; line-height:1.2em; width:100%; text-align:center; color:#00104a; border-top:1px solid #DDDDDD; margin-top:4px; }

/* Countdown in home */

.countdown-section {display: flex; flex-direction: column; }

a.home_timekeeper { display: flex; flex-wrap: wrap; border: 1px solid #00104a; margin: 0 auto 30px; max-width: 360px; text-decoration: none; }
/*a.home_timekeeper .is-countdown { margin:0 auto; }*/
a.home_timekeeper #timekeeper_logo { display: flex; flex-direction: column; justify-content: center; width: auto; padding:15px 5px 15px 20px; }
a.home_timekeeper #timekeeper_text { display: flex; flex-direction: column; justify-content: center; width: auto; padding:15px 20px 15px 5px; border:none; margin: 0 0 0 auto; }

a.home_timekeeper:hover { text-decoration: none; }
@media only screen and (max-width: 160px) {
  .home_timekeeper #timekeeper_text br { display: none; }
}

/*
OFFCANVAS
*/

.offcanvas { position: fixed; background: var(--bs-light); transition: all 400ms ease; z-index: 990; }

.offcanvas_bottom { position: fixed; bottom: -100%; left: 0; width:100%; padding: 3em 0; background: var(--bs-light); border-top: 1px solid var(--text-default); transition: all 400ms ease; z-index: 990; }
.offcanvas_bottom.show { bottom: 0; }
.offcanvas h5 { margin-bottom: 1em; }
.offcanvas .project { }

.offcanvas_close { position: absolute; top: 1em; right: 3.3vw; font-family: 'SuisseIntl-Light-WebS'; font-size: 2em; line-height: .6em; height: .7em; width: .7em; text-align: center; cursor: pointer;  }


.offcanvas_right { top: 0; height: 100vh; right: -100%; width:34%; padding: 7vw 3.5vw; border-left: 1px solid var(--text-default); }
.offcanvas_right.show { right: 0; }

.job-title { margin-top: 0.2em; font-size: 1em; text-transform: uppercase; }
.job-description { margin-bottom: .5em; }

.backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba( var(--bs-light-rgb),.5);
  z-index: 900;
  backdrop-filter: blur(5px);
}
body.offcanvas_active { }
body.offcanvas_active .backdrop { }


/*
footer
*/

footer, .footer {
  position: relative;
  padding-top: 5vw;
  padding-bottom: 5vw;
  background: var(--dark);
  color: var(--light);
  font-size: .8em;
  z-index: 4;
}


@media only screen and (max-width: 991px) {
}
@media only screen and (max-width: 767px) {
}
@media only screen and (max-width: 575px) {
}

#shape_1 { display: block; position: absolute; width: 46vw; height: auto; top: 0; right: 0;  }
#shape_2 { display: block; position: absolute; width: 35vw; height: auto; left: 0; top: 5vw; }
#shape_3 { display: block; position: absolute; width: 46vw; height: auto; bottom:0; right: 0; }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
