/*! HTML5 Boilerplate v5.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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.
 */

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

html {
  color: #fff;
  font-size: 1em;
  line-height: 1;
}

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

::-moz-selection {
  background: #007ebd;
  color: #aee2fa;
  text-shadow: none;
}

::selection {
  background: #007ebd;
  color: #aee2fa;
  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;
}

/* ==========================================================================
   Atkins Physio
   ========================================================================== */

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #fff;
}

a {
  text-decoration: none;
  color: #134b95;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/*

  "azo-sans-web" 300 400 700
  "raleway" 400 700

*/

html {
  -webkit-font-smoothing: antialiased;
}

body, input, textarea {
  font-family: "azo-sans-web", sans-serif;
  font-weight: 400;
  font-style: normal;
}

strong {
  font-weight: 700;
}

em {
  font-style: normal;
}

ul, li, p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

ul {
  list-style: none;
}

body {
  width: 100%;
  height: 100%;
}

.slideout-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 320px;
  min-height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 0;
  display: none;
  background-color: #134b95;
  padding: 40px 20px 20px;
}

.slideout-menu ul {
  margin-bottom: 20px;
}

.slideout-menu li a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
}

.slideout-menu .social a:last-of-type {
  border-right: 0;
}

.slideout-menu ul ul {
  margin-bottom: 0;
}

.slideout-menu ul ul a:before {
  content: '\2014';
  padding-right: 8px;
}

.slideout-menu-left {
  left: 0;
}

.slideout-menu-right {
  right: 0;
}

.slideout-panel {
  position: relative;
  z-index: 1;
  will-change: transform;
  background-color: #fff;
  min-height: 100vh;
}

.slideout-open,
.slideout-open body,
.slideout-open .slideout-panel {
  overflow: hidden;
}

.slideout-open .slideout-menu {
  display: block;
}

.wrapper {
  position: relative;
}

.open-nav {
  position: absolute;
  right: 20px;
  top: 20px;
  display: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  background-position: 8px center;
  background-repeat: no-repeat;
  background-image: url(/img/nav.svg);
  background-size: 16px 16px;
  padding: 6px 8px 6px 32px;
  border: 1px solid #fff;
  border-radius: 4px;
}

.close-nav {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-image: url(/img/close.svg);
  background-size: 16px 16px;
  padding: 6px 32px 6px 8px;
  border: 1px solid #fff;
  border-radius: 4px;
}

.container {
  margin: 0 auto;
  max-width: 1100px; /* 1060px */
  padding: 0 20px;
}

.container:before,
.container:after {
  content: "";
  display: table;
  clear: both;
}

header {
  background-color: #134b95;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(/img/header-bg.png);
  background-size: cover;
}

header .logo {
  float: left;
  width: 130px;
  height: 82px;
  margin-top: 20px;
}

header .contact {
  float: right;
}

header .contact a,
header .contact span {
  float: left;
  font-size: 14px;
  color: #fff;
  padding: 14px 0;
  margin-right: 12px;
  font-weight: 700;
}

header .contact :last-child {
  margin-right: 0;
}

header .contact a.social,
.footer a.social {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 20px auto;
  width: 20px;
}

a.youtube {
  background-image: url(/img/youtube.svg);
}

a.facebook {
  background-image: url(/img/facebook.svg);
  background-size: 16px auto;
  width: 16px;
}

a.twitter {
  background-image: url(/img/twitter.svg);
  background-size: 18px auto;
  width: 18px;
}

header .search {
  float: right;
  clear: right;
  width: 21.69811320754717%; /* 230px */
  margin-bottom: 24px;
}

header .search__box {
  background-color: #fff;
  border-radius: 4px;
  height: 29px;
  padding: 7px 9px 8px;
}

header .search__box:before,
header .search__box:after {
  content: "";
  display: table;
  clear: both;
}

header .search__box input {
  display: block;
  float: left;
  width: calc(100% - 16px);
  height: 14px;
  font-size: 14px;
  border: 0;
  outline: 0;
  color: #134b95;
  padding: 0;
}

header .search__box button {
  display: block;
  float: left;
  width: 14px;
  height: 14px;
  border: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(/img/search.svg);
  background-size: 14px 14px;
  background-color: #fff;
}

header nav {
  float: right;
  clear: right;
  width: 100%;
  margin-top: 20px;
}

header nav li {
  display: inline;
}

header nav li a {
  display: block;
  float: left;
  position: relative;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 6px;
  border-bottom: 3px solid transparent;
  padding: 0 4px 12px;
}

header nav li:last-of-type a {
  margin-right: 0;
}

header nav li ul {
  display: none;
  width: 100%;
  z-index: 9999;
  position: absolute;
  left: 0;
  top: 151px;
  padding: 20px 0;
  background-color: #6699d8;
  background-color: rgba(102,153,216,1);
  text-align: center;
}

header nav li ul#about {
  padding-right: 0;
}

header nav li ul#physiotherapy {
  padding-right: 0;
}

header nav li ul#additional-services {
  padding-left: 0;
}

header nav li.here a,
header nav li a:hover {
  border-color: #fff;
}

header nav li ul a {
  display: block;
  float: none;
  font-weight: 400;
  margin: 0 0 16px;
  border-bottom: 0;
  padding: 0;
  text-transform: none;
}

header nav li ul li:last-of-type a {
  margin-bottom: 0;
}

.banners {
  
}

.banners__banner {
  height: 500px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.banners__banner__content {
  position: relative;
  padding: 100px 0 0 100px;
}

.banners__banner__content.right {
  padding-left: 600px;
}

.banners__banner__content:before,
.banners__banner__content:after {
  content: "";
  display: table;
  clear: both;
}

.banners__banner__content .book {
  display: inline-block;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #b4f6f5;
  padding: 12px 18px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #123461;
}

.banners__banner__content p {
  font-size: 48px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 30px;
}

.banners__banner__content.blue p {
  color: #123461;
}

.banners__banner__content.white p {
  color: #fff;
}

.banners__banner__content a.button {
  display: inline-block;
  background-color: #123461;
  color: #fff;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.main {
  background-color: #ecf3f3;
  padding: 50px 0;
}

.main--white {
  background-color: #fff;
}

.main--pb0 {
  padding-bottom: 0;
}

.body h1 {
  font-size: 32px;
  text-transform: uppercase;
  color: #2b4362;
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.body h2 {
  font-size: 28px;
  text-transform: uppercase;
  color: #2b4362;
  margin-bottom: 20px;
  font-weight: 400;
}

.body h3 {
  font-size: 24px;
  color: #2b4362;
  margin-bottom: 20px;
  font-weight: 400;
}

.body h3 em {
  color: #134b95;
}

.body h4 {
  font-size: 20px;
  color: #2b4362;
  margin-bottom: 30px;
  font-weight: 400;
  text-transform: uppercase;
}

.body h5 {
  font-size: 18px;
  color: #2b4362;
  margin-bottom: 20px;
  font-weight: 400;
}

.body h6 {
  font-size: 16px;
  color: #2b4362;
  margin-bottom: 20px;
  font-weight: 400;
}

.body hr {
  display: inline-block;
  width: 100px;
  border-color: #2b4362;
  margin: 0 0 30px;
}

.body ul {
  list-style-type: disc;
  list-style-position: inside;
  margin: 0 0 30px 30px;
}

.main--search .body ul {
  margin: 0 0 30px;
  list-style: none;
}

.body p,
.body li {
  font-family: "raleway", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #5e5e5e;
  margin: 0 auto 30px;
}

.body li {
  margin-bottom: 10px;
}

.body p em {
  color: #134b95;
  font-style: normal;
}

.active-home .body p {
  width: 72%;
}

.body p strong {
  color: #2b4362;
}

.body .button,
.body .pdf-download {
  display: inline-block;
  background-color: #134b95;
  padding: 12px 18px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.body .pdf-download {
  margin-bottom: 30px;
  background-color: #123461;
}

.body p img {
  max-width: 400px;
  margin: 0 auto 28px;
}

.homes-blocks {
  max-width: 1600px;
  margin: 0 auto;
}

.homes-blocks:before,
.homes-blocks:after {
  content: "";
  display: table;
  clear: both;
}

.homes-blocks__block {
  float: left;
  width: 33.33333333333333%; /* 400px */
}

.homes-blocks__block h3 {
  padding: 16px 0;
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  color: #505051;
  font-weight: 400;
  background-color: #b4ddf6;
}

.homes-blocks__block:nth-of-type(2) h3 {
  background-color: #d1d3d3;
}

.homes-blocks__block:nth-of-type(3) h3 {
  background-color: #b4d5d5;
}

.homes-blocks__block:nth-of-type(4) h3 {
  background-color: #cfd6e6;
}

.homes-blocks__block:nth-of-type(5) h3 {
  background-color: #95bebe;
}

.testimonials {
  text-align: center;
  padding: 50px 0;
  background-color: #f7f8f8;
}

.accreditations {
  padding: 30px 0;
  text-align: center;
  font-size: 0;
}

.accreditations__accreditation {
  display: inline-block;
  width: 11.320754716981133%; /* 120px */
  margin-right: 1.1320754716981132%; /* 12px */
  padding: 10px;
  border: 1px solid #eceaea;
}

.accreditations__accreditation:last-of-type {
  margin-right: 0;
}

.testimonial {
  background-color: #ecf3f3;
  padding: 30px 0;
  text-align: center;
}

.testimonial.even {
  background-color: #dfe8ed;
}

.testimonial p {
  color: #2d3e52;
  font-style: italic;
}

.testimonial p:last-of-type {
  margin-bottom: 0;
}

.testimonial p strong {
  font-style: normal;
}

.team {
  background-color: #ecf3f3;
}

.team .container {
  max-width: 900px;
}

.team__person {
  float: left;
  display: block;
  width: 25.581395348837212%; /* 220px */
  margin: 0 11.627906976744185% 40px 0; /* 100px */
  text-align: center;
}

.team__person:nth-of-type(3n+3) {
  margin-right: 0;
}

.team__person img {
  border: 10px solid #b8bbbb;
  margin-bottom: 16px;
}

.team__person h3 {
  font-family: "raleway", sans-serif;
  font-weight: 700;
  color: #283b53;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.2;
}

.team__person p {
  font-family: "raleway", sans-serif;
  font-weight: 400;
  color: #283b53;
  font-size: 14px;
  line-height: 1.4;
}

.pdfs {
  max-width: 900px;
  margin: 0 auto 30px;
  background-color: #bde4de;
  padding: 40px 0;
}

.pdfs:before,
.pdfs:after {
  content: "";
  display: table;
  clear: both;
}

.pdfs__pdf {
  width: 60%;
  text-align: center;
  margin: 0 auto 20px;
  border-bottom: 1px solid #fff;
}

.pdfs__pdf:before,
.pdfs__pdf:after {
  content: "";
  display: table;
  clear: both;
}

.pdfs__pdf h3 {
  float: left;
  width: 50%;
  font-size: 16px;
  margin-bottom: 16px;
  color: #25323f;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  padding-right: 20px;
}

.pdfs__pdf .pdf-download {
  display: block;
  float: right;
}

.pdfs__back {
  display: block;
  float: left;
  width: 100%;
  text-align: left;
  color: #1a2b37;
  font-family: "raleway", sans-serif;
  font-weight: 400;
  text-align: right;
}

.page-buttons {
  font-size: 0;
  margin-bottom: 30px;
}

.page-buttons li {
  display: inline;
}

.page-buttons a {
  display: inline-block;
  background-color: #00a888;
  padding: 12px 18px;
  border-radius: 4px;
  color: #fff;
  font-family: "raleway", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-right: 16px;
}

.page-buttons li.blue a {
  background-color: #134b95;
}

.page-buttons span {
  text-transform: uppercase;
}

.page-buttons li:last-of-type a {
  margin-right: 0;
}

.tab {
  position: relative;
  margin-bottom: 1px;
  width: 100%;
  color: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}

.accordions input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.accordions label {
  position: relative;
  display: block;
  padding: 0 0 0 1em;
  background: #d6dee2;
  font-size: 16px;
  line-height: 3;
  cursor: pointer;
  text-align: left;
  color: #102949;
  font-weight: 700;
  margin-bottom: 4px;
}

.accordions .tab-content {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height .35s;
  -o-transition: max-height .35s;
  transition: max-height .35s;
  background-color: #e1e9ea;
}

.accordions .tab-content__body {
  margin: 20px;
}

.accordions .tab-content__body ul {
  list-style-type: disc;
  margin: 0 0 30px 30px;
}

.accordions .tab-content__body p,
.accordions .tab-content__body li {
  color: #434447;
  font-size: 16px;
  line-height: 1.5;
  font-family: "azo-sans-web", sans-serif;
  font-weight: 400;
  text-align: left;
  margin-bottom: 20px;
}

.accordions .tab-content__body li {
  margin-bottom: 10px;
}

.accordions .tab-content__body :last-child {
  margin-bottom: 0;
}

.accordions input:checked ~ .tab-content {
  max-height: 1000px;
}

.accordions label::after {
  position: absolute;
  right: 8px;
  top: 8px;
  display: block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  -webkit-transition: all .35s;
  -o-transition: all .35s;
  transition: all .35s;
}

.accordions input[type=checkbox] + label::after {
  content: "+";
  font-size: 24px;
  background-color: #738395;
  border-radius: 50%;
  color: #fff;
}

.accordions input[type=radio] + label::after {
  content: "\25BC";
}

.accordions input[type=checkbox]:checked + label::after {
  transform: rotate(315deg);
}

.accordions input[type=radio]:checked + label::after {
  transform: rotateX(180deg);
}

.maps {
  max-width: 730px;
  padding: 0 20px;
  margin: 0 auto 30px;
}

.maps:before,
.maps:after {
  content: "";
  display: table;
  clear: both;
}

.maps__map {
  float: left;
  width: 47.82608695652174%; /* 330px */
  width: 100%;
}

.maps__map:first-of-type {
  margin-right: 4.3478260869565215%; /* 30px */
  margin-right: 0;
}

.maps__map h3 {
  color: #fff;
  font-weight: 700;
  background-color: #102949;
  padding: 12px 0;
  text-align: center;
  border-bottom: 2px solid #fff;
  font-family: "raleway", sans-serif;
}

.contact-form {
  max-width: 730px;
  padding: 0 20px;
  margin: 0 auto 30px;
}

.contact-form:before,
.contact-form:after {
  content: "";
  display: table;
  clear: both;
}

.contact-form h3 {
  text-align: left;
}

.pure-form input[type="text"],
.pure-form input[type="password"],
.pure-form input[type="email"],
.pure-form input[type="url"],
.pure-form input[type="date"],
.pure-form input[type="month"],
.pure-form input[type="time"],
.pure-form input[type="datetime"],
.pure-form input[type="datetime-local"],
.pure-form input[type="week"],
.pure-form input[type="number"],
.pure-form input[type="search"],
.pure-form input[type="tel"],
.pure-form input[type="color"],
.pure-form select,
.pure-form textarea {
  padding: 0 10px;
  font-size: 14px;
  height: 40px;
  display: block;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  vertical-align: middle;
  border: 0;
  color: #102949;
  font-weight: 700;
}

.pure-form textarea {
  padding: 14px;
}

.pure-form label {
  display: none;
}

.pure-form label.required:after {
  content: ' *';
}

.pure-form .notifications {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.pure-form .error-message {
  color: crimson;
}

.pure-form .success-message {
  color: #94c11f;
}

.pure-form textarea {
  height: 120px;
}

.pure-form button.button {
  border: 0;
  background-color: #102949;
}

.form-buttons {
  text-align: right;
}

.pure-form .field {
  margin-bottom: 20px;
}

::-webkit-input-placeholder {
  color: #bbb;
}

::-moz-placeholder {
  color: #bbb;
}

:-ms-input-placeholder {
  color: #bbb;
}

:-moz-placeholder {
  color: #bbb;
}

.full-image {
  padding: 30px 0;
}

.terms__checkbox,
.terms__text {
  display: inline-block;
}

.terms__checkbox {
  margin-right: 10px;
}

.terms-warning {
  display: none;
}

.terms-warning span {
  display: inline-block;
  padding: 12px;
  border: 2px solid darkred;
  margin-bottom: 20px;
  color: darkred;
  font-weight: bold;
}

.apos-1 {
  float: left;
  width: 40%;
  background-color: #bde4de;
  padding: 20px;
  margin-bottom: 30px;
}

.apos-2 {
  float: left;
  width: 60%;
  padding: 0 40px;
  margin-bottom: 30px;
}

.apos-2 h3 {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 6px solid #bde4de;
}

.idd-1 {
  float: left;
  width: 100%;
  margin-bottom: 30px;
}

.idd-2 {
  float: left;
  width: 100%;
  background-color: #bde4de;
  padding: 20px;
  margin-bottom: 30px;
}

.idd-2 p:last-of-type {
  margin-bottom: 0;
  font-size: 14px;
}

.idd-2 ul {
  margin-bottom: 20px;
}

.idd-2 li {
  font-size: 16px;
}

.news {
  background-color: #dfe8ed;
  background-image: linear-gradient(to right, #ecf3f3, #ecf3f3 50%, #dfe8ed 50%, #dfe8ed);
}

.news__main {
  float: left;
  width: 75.47169811320755%; /* 800px */
  background-color: #ecf3f3;
  padding: 50px 50px 50px 0;
}

.articles__article {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 4px solid #d5e1e2;
}

.articles__article:before,
.articles__article:after {
  content: "";
  display: table;
  clear: both;
}

.articles__article__image {
  float: left;
  width: 24%; /* 180px */
  margin-right: 4%; /* 30px */
}

.articles__article__text {
  float: left;
  width: 72%; /* 540px */
}

.articles__article__text h3 {
  margin-bottom: 10px;
  color: #187aa8;
  text-transform: uppercase;
  font-size: 20px;
}

.articles__article__text p {
  margin-bottom: 20px;
}

.articles__article__text p a {
  text-transform: lowercase;
}

.news__sidebar {
  float: left;
  width: 24.528301886792452%; /* 260px */
  padding: 50px 20px;
}

.news__sidebar h3 {
  padding: 12px;
  background-color: #cbd9de;
  margin-bottom: 20px;
  font-weight: 400;
  color: #2d3e52;
  text-transform: uppercase;
}

.news__sidebar ul {
  margin-bottom: 20px;
  padding: 0 12px;
}

.paginate {
  margin-bottom: 20px;
}

.paginate:before,
.paginate:after {
  content: "";
  display: table;
  clear: both;
}

.paginate__prev,
.paginate__next {
  float: left;
  width: 50%;
  font-size: 16px;
}

.reviews {
  margin-bottom: 30px;
}

.profile {
  width: 600px;
  padding: 0;
}

.profile button:focus {
  outline: none;
}

*:focus {
  outline: none;
}

.profile__details {
  padding: 40px;
}

.profile__details:before,
.profile__details:after {
  content: "";
  display: table;
  clear: both;
}

.profile__details__col {
  float: left;
}

.profile__details__col:first-of-type {
  width: 40%;
  margin-right: 4%;
}

.profile__details__col:last-of-type {
  width: 56%;
}

.profile__details__col img {
  margin-bottom: 20px;
}

.profile__details__col h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.profile__details__col h4 {
  font-size: 14px;
  color: #0085c7;
  margin-bottom: 16px;
}

.profile__details__col p {
  font-size: 13px;
  color: #575756;
  line-height: 1.4;
  margin-bottom: 20px;
}

.profile__close {
  display: block;
  height: 36px;
  text-transform: uppercase;
  font-size: 14px;
  background-color: #d1d2d4;
  color: #1d1d1b;
  text-align: center;
  padding-top: 11px;
}

footer {
  padding: 50px 0;
  background-color: #102949;
}

.footer {
  background-position: right bottom;
  background-repeat: no-repeat;
  background-image: url(/img/logo.png);
  background-size: 10.377358490566039% auto;
}

.footer p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer__contact {
  margin-bottom: 20px;
}

.footer__contact p {
  margin-bottom: 0;
}

.footer p strong {
  color: #8aafdf;
}

.footer p a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.footer__contact:before,
.footer__contact:after {
  content: "";
  display: table;
  clear: both;
}

.footer__contact__te,
.footer__contact__social {
  float: left;
}

.footer__contact__te {
  margin-right: 30px;
}

.footer a.social {
  float: left;
  padding: 10px 0;
  margin-right: 12px;
}

.footer__contact__social :last-child {
  margin-right: 0;
}

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

/*
 * Hide visually and from screen readers:
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

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

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

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

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *  `contenteditable` attribute is included anywhere else in the document.
 *  Otherwise it causes space to appear at the top and bottom of elements
 *  that receive the `clearfix` class.
 * 2. 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: " "; /* 1 */
  display: table; /* 2 */
}

.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: 120dpi) {
  /* Style adjustments for high resolution devices */
}

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

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                   http://www.sanbeiji.com/archives/953 */
    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,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * http://css-discuss.incutio.com/wiki/Printing_Tables
   */

  thead {
    display: table-header-group;
  }

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

  img {
    max-width: 100% !important;
  }

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

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