/*! 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: #585857;
  font-size: 16px;
  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;
}

/* ==========================================================================
   Strachans
   ========================================================================== */

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

html {
  color: #172849;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #172849;
}

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

ul {
  list-style: none;
}

* {
  font-variant-ligatures: none;
}

body, input, textarea {
  font-family: 'Inter', sans-serif;
  font-weight: normal; /* normal, 600, 900 */
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

em {
  font-style: normal;
}

strong {
  font-weight: normal;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
}

ul {
  list-style: none;
}

.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 20px;
  font-size: 1rem;
  height: 60px;
  display: block;
  -webkit-box-shadow: none;
          box-shadow: none;
  width: 100%;
  vertical-align: middle;
  border: 1px solid #9c7f36;
  background-color: transparent;
  margin-bottom: 0;
  border-radius: 0;
  -webkit-appearance: none;
  font-size: 1rem;
}

.pure-form textarea {
  padding: 20px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.pure-form label {
  font-size: 1rem;
  letter-spacing: 0.025em;
  display: block;
  margin-bottom: 12px;
  text-align: left;
  text-transform: uppercase;
  font-size: 1.125rem;
  color: #002d4b;
}

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

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

.pure-form .error-message {
  color: #F5A800;
}

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

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

.pure-form button {
  border: 1px solid #9c7f36;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 0;
  letter-spacing: 0.025em;
  background-color: transparent;
  transition: all 0.25s;
  border-radius: 0;
  font-size: 1.125rem;
  color: #002d4b;
  font-family: 'Tautz', sans-serif;
  font-weight: 500;
  border-radius: 26px;
}

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

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

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

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

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

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

.container {
  max-width: 1484px; /* 1404px */
  padding: 0 40px;
  margin: 0 auto;
}

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

.slick-slide > div > div {
  display: block !important;
}

.mask {
  display: none;
  mix-blend-mode: multiply;
  background-color: rgba(0,0,0,.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 7000;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  width: auto;
  height: 104px;
}

.header nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.header nav > ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: 68px;
}

.header nav > ul > li {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.025em;
  margin-right: 68px;
  height: 196px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header nav > ul > li:last-of-type {
  margin-right: 0;
}

.header nav > ul > li > a {
  display: block;
  transition: all 0.25s;
}

.header nav > ul > li > a:hover {
  color: #998641;
}

.header nav > ul > li.hasDrop > a {
  background-position: right center;
  background-repeat: no-repeat;
  background-image: url(/img/drop.svg);
  padding-right: 20px;
}

.header nav > ul > li.contactUs > a {
  padding: 20px 40px;
  border: 1px solid #172849;
}

.header nav > ul > li.contactUs > a:hover {
  color: #fff;
  background-color: #172849;
}

.header nav > ul > li.hasDrop {
  position: relative;
}

.header nav > ul > li.hasDrop ul {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 100%;
  left: -68px;
  background-color: #fff;
  padding: 0 52px 32px;
  min-width: 420px;
}

.header nav > ul > li.hasDrop ul li {
  display: block;
  font-size: 0.875rem;
  background-position: right center;
  background-repeat: no-repeat;
  background-image: url(/img/circle-arrow-up-right-no-border.svg);
  padding: 12px 16px;
}

.header nav > ul > li.hasDrop ul li:nth-of-type(even) {
  background-color: rgba(223,223,223,.2);
}

.header nav > ul > li.hasDrop:hover ul {
  display: block;
  cursor: pointer;
}

.social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.social a {
  display: block;
  margin-right: 16px;
}

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

.banners {
  position: relative;
}

.banners__banner {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.banners__banner img {
  display: none;
}

.banners__wrist {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #172849;
  z-index: 9000;
}

.banners__wrist > img {
  margin-right: 40px;
}

.banners__wrist > p {
  margin-right: 40px;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.025em;
  line-height: 1.75;
}

.banners__wrist > a.button {
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.025em;
  font-weight: 900;
  border: 1px solid #998641;
  text-transform: uppercase;
  padding: 16px 20px;
  transition: all 0.25s;
}

.banners__wrist > a.button:hover {
  color: #fff;
  background-color: #998641;
}

.banners__banner__text {
  min-height: calc(100vh - 196px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.body--centre {
  text-align: center;
}

.banners__banner__text h4,
.home__summary h4,
.body h4,
.home__banner h4 {
  color: #998641;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.home__banner h3 {
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
}

.banners__banner__text h2 {
  font-size: 4.5rem;
  color: #fff;
  line-height: 1.125;
  margin-bottom: 28px;
}

.banners__banner__text a.button,
.home__summary a.button,
.home__banner a.button,
.text a.button {
  font-weight: 900;
  letter-spacing: 0.025em;
  font-size: 1.625rem;
  color: #998641;
  display: inline-block;
  background-position: right 2px center;
  background-repeat: no-repeat;
  background-image: url(/img/circle-arrow-up-right.svg);
  padding: 8px 56px 8px 0;
}

.text a.button {
  color: #172849;
}

.banners__banner__text a.button em,
.home__summary a.button em,
.home__banner a.button em {
  color: #fff;
}

.home__summary {
  background-color: #172849;
  padding: 100px 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-position: center top 40px;
  background-repeat: no-repeat;
  background-image: url(/img/map.png);
  background-size: 100% auto;
}

.home__summary h1,
.body h1 {
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 36px;
}

.home__banner {
  min-height: 760px;
  background-position: center top;
  background-repeat: no-repeat;
  background-image: url(/img/home-banner-2.jpg);
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 200px;
  text-align: center;
}

.home__services {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -84px 0;
}

.home__services__image {
  width: calc(30.22988505747126% + 308px);
  margin-right: -308px;
  position: relative;
}

.home__services__text {
  width: 69.77011494252874%;
  background-color: #fff;
  padding: 100px 48px 100px 448px;
}

.home__services__text > div {
  width: 100%;
  max-width: 460px;
}

.home__services__text .body h2 {
  color: #998641;
  font-size: 3.25rem;
  margin-bottom: 12px;
}

.home__services__text .body p {
  font-size: 1.125rem;
  line-height: 1.5;
}

.home__services__text > div > ul li {
  font-size: 1.75rem;
  font-weight: 900;
  border-bottom: 1px solid rgba(23,40,73,.2);
}

.home__services__text > div > ul li a {
  display: block;
  color: #172849;
  padding: 20px 24px;
  background-position: right 24px center;
  background-repeat: no-repeat;
  background-image: url(/img/circle-arrow-up-right-no-border.svg);
}

.home__services__text > div > ul li a:hover {
  background-image: url(/img/circle-arrow-up-right.svg);
}

.summary {
  background-color: #172849;
  padding: 100px 0 160px;
  background-position: center bottom -2px, center center;
  background-repeat: no-repeat, repeat;
  background-image: url(/img/footer.png), url(/img/lines.png);
  background-size: 100% 132px, auto 900px;
  margin-bottom: 64px;
}

.summary__columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.summary__columns > div:first-of-type {
  width: 44.15954415954416%; /* 620px */
}

.summary__columns > div:last-of-type {
  width: 55.84045584045584%; /* 784px */
  padding-top: 18px;
}

.body h2 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 28px;
}

.body p {
  font-size: 1.25rem;
  line-height: 1.625;
  letter-spacing: 0.025em;
  margin-bottom: 28px;
}

.body p a,
.body li a {
  color: #998641;
  text-decoration: underline;
}

.body p strong {
  color: #998641;
  font-weight: 900;
}

.text.body p strong {
  color: #172849;
}

.summary__columns .body h3 {
  color: #fff;
}

.summary__columns .body p {
  color: #fff;
}

.summary__columns .body h4 {
  margin-bottom: 4px;
  font-weight: 900;
}

.summary__columns > div:last-of-type h4 {
  margin-bottom: 12px;
}

.text.body p + ul {
  margin-top: -12px;
  border-top: 1px dashed #998641;
}

.text--summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.text--summary > img {
  margin-bottom: 40px;
}

.text--summary.body h3 {
  font-weight: normal;
  font-size: 2rem;
  line-height: 1.5;
}

.text__video {
  margin-bottom: 48px;
}

.cta {
  background-color: #172849;
  padding: 100px 0 160px;
  background-position: center bottom -2px, center center;
  background-repeat: no-repeat, repeat;
  background-image: url(/img/footer.png), url(/img/lines.png);
  background-size: 100% 132px, auto 900px;
}

.home .cta {
  padding: 200px 0 100px;
  background-position: center center;
  background-repeat: repeat;
  background-image: url(/img/lines.png);
  background-size: auto 900px;
}

.cta__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.cta__grid__item {
  display: block;
}

.cta__grid__item__text {
  background-color: #fff;
  padding: 40px 28px;
}

.blocks__block {
  margin-bottom: 100px;
}

.blocks__block .body :last-child {
  margin-bottom: 0;
}

.blocks__block--imageCollage {
  margin-bottom: 0;
}

.text {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.text--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.gallery {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
}

.gallerySlider .slickArrow {
  position: absolute;
  bottom: 0;
  z-index: 9000;
}

.gallerySlider .slickArrow--prev {
  right: 55px;
}

.gallerySlider .slickArrow--next {
  right: 0;
}

.body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.5;
}

.body ul,
.body ol {
  margin: 0 0 32px;
}

.body li {
  padding: 20px 0 20px 32px;
  font-size: 1.25rem;
  line-height: 1.625;
  letter-spacing: 0.025em;
  border-bottom: 1px dashed #998641;
  background-position: left 32px;
  background-repeat: no-repeat;
  background-image: url(/img/arrow-up-right.svg);
  background-size: auto 8px;
}

.body li.iconAddress,
.body li.iconPhone,
.body li.iconTime,
.body li.iconEmail {
  background-position: left center;
  background-size: 36px 36px;
  padding: 20px 0 20px 52px;
}

.body li.iconAddress {
  background-image: url(/img/address.svg);
}

.body li.iconPhone {
  background-image: url(/img/phone.svg);
}

.body li.iconTime {
  background-image: url(/img/ooh.svg);
}

.body li.iconEmail {
  background-image: url(/img/email.svg);
}

.textImage {
  width: 100%;
  max-width: 1188px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.textImage__text {
  width: calc(50% + 96px);
  margin-right: -96px;
  background-color: #172849;
  padding: 72px 96px;
  position: relative;
  background-position: center center;
  background-repeat: repeat;
  background-image: url(/img/lines.png);
  background-size: auto 900px;
}

.textImage__text.body h3 {
  color: #fff;
}

.textImage__text.body p {
  color: #fff;
  font-size: 1.125rem;
}

.textImage__image {
  width: 50%; /* 594px */
}

.text--accreditations {
  margin-bottom: 80px;
}

.logos {
  width: 100%;
  max-width: 1336px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-gap: 36px;
  margin: 0 auto;
}

.logos__logo {
  border: 1px solid #e1e1e1;
  background-color: #fff;
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.logos__logo img {
  max-width: 80%;
  max-height: 100px;
}

.imageCollage {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.imageCollage__col {
  width: 50%;
}

.imageCollage__col > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.imageCollage__col > div img {
  width: 50%;
}

.location {
  display: none;
}

.location .gallery {
  margin-bottom: 100px;
}

#location-peterhead {
  display: block;
}

.locationSelector {
  margin-bottom: 100px;
  text-align: center;
}

.locationSelector .text {
  margin-bottom: 64px;
}

.locationSelector ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.locationSelector ul li {
  display: block;
  margin-right: 20px;
}

.locationSelector ul li:last-of-type {
  margin-right: 0;
}

.locationSelector ul li a {
  display: block;
  padding: 20px 28px;
  font-size: 1.5rem;
  color: #cdcdcd;
  border: 1px solid #cdcdcd;
  font-weight: 900;
  transition: all 0.25s;
}

.locationSelector ul li a.active,
.locationSelector ul li a:hover {
  color: #998641;
  border-color: #998641;
}

.text--people {
  text-align: center;
  margin-bottom: 64px;
}

.people {
  width: 100%;
  max-width: 1244px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-gap: 36px;
  margin: 0 auto;
}

.people__person {
  background-color: #fff;
}

.people__person h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.people__person h3 strong {
  font-weight: 900;
}

.people__person h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #998641;
  margin-bottom: 20px;
}

.people__person p {
  font-size: 0.875rem;
  line-height: 1.75;
}

.people__person p a[href^="mailto:"] {
  color: #998641;
  text-decoration: underline;
}

.people__person > img {
  margin-bottom: 20px;
}



footer {
  position: relative;
  margin-top: -132px;
}

.footer__bg {
  background-position: center bottom -2px;
  background-repeat: no-repeat;
  background-image: url(/img/footer.png);
  background-size: 100% 132px;
  height: 132px;
}

.footer__nav {
  padding: 120px 0 80px;
}

.footer__nav__cols {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer__nav__cols > div {
  margin-right: 84px;
}

.footer__nav__cols .icon {
  height: 108px;
}

.footer__nav__cols h3 {
  text-transform: uppercase;
  color: #998641;
  margin-bottom: 28px;
  letter-spacing: 0.025em;
}

.footer__nav__cols nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__nav__cols nav ul {
  margin-right: 40px;
}

.footer__nav__cols nav ul:last-of-type {
  margin-right: 0;
}

.footer__nav__cols nav ul li {
  font-size: 1.125rem;
  line-height: 1.75;
  letter-spacing: 0.025em;
}

.footer__nav__cols nav ul li:last-of-type {
  margin-bottom: 0;
}

.footer__nav__cols p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 20px;
  letter-spacing: 0.025em;
}

.footer__nav__cols p a.email {
  color: #998641;
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 80px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__legal span {
  padding: 0 4px;
}

.footer__legal a {
  color: #998641;
  text-decoration: underline;
}

.msds {
  width: 100%;
  max-width: 1194px;
  margin: 0 auto;
}

.msds__search {
  margin-bottom: 64px;
}

.msds__search .pure-form input[type=text] {
  font-size: 1.5rem;
  font-weight: 900;
  height: 62px;
  border: 1px solid #cdcdcd;
}

.msds__results__headings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.msds__results__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px dashed #998641;
}

.msds__results__headings > div,
.msds__results__result > div {
  font-size: 1.25rem;
  letter-spacing: 0.025em;
}

.msds__results__headings > div {
  color: #998641;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.msds__results__headings > div:nth-of-type(1),
.msds__results__result > div:nth-of-type(1) {
  width: 180px;
}

.msds__results__headings > div:nth-of-type(2),
.msds__results__result > div:nth-of-type(2) {
  flex-grow: 1;
}

.msds__results__result > div:nth-of-type(2) {
  font-size: 1.5rem;
  letter-spacing: 0;
  font-weight: 900;
}

.msds__results__headings > div:nth-of-type(3),
.msds__results__result > div:nth-of-type(3) {
  width: 132px;
}

.msds__results__headings > div:nth-of-type(4),
.msds__results__result > div:nth-of-type(4) {
  width: 180px;
}

.msds__results__headings > div:nth-of-type(5),
.msds__results__result > div:nth-of-type(5) {
  width: 52px;
}

.openNav {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  z-index: 9600;
  background-color: #172849;
  border-radius: 16px;
  padding: 9px;
}

.openNav img {
  width: 14px;
  height: 14px;
}

.closeNav {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  z-index: 9600;
  background-color: #fff;
  border-radius: 16px;
  padding: 9px;
  z-index: 9800;
}

.mobileNav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #172849;
  z-index: 9700;
  padding: 20px 40px 20px 20px;
}

.mobileNav > ul {
  margin-bottom: 20px;
}

.mobileNav li {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.5;
}

.mobileNav li a {
  color: #fff;
}

.mobileNav li ul {
  margin-left: 20px;
}

.mobileNav .social a svg {
  width: 32px;
  height: 32px;
}

.ribbon {
  background-color: #172849;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.ribbon > div {
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.625;
  text-transform: uppercase;
  margin-right: 20px;
}

.ribbon > div strong {
  font-weight: 900;
  color: #998641;
}

.ribbon > a {
  display: block;
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.025em;
  font-weight: 900;
  border: 1px solid #998641;
  text-transform: uppercase;
  padding: 16px 20px;
  transition: all 0.25s;
}

.ribbon > a:hover {
  color: #fff;
  background-color: #998641;
}

/* ==========================================================================
   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),
     (-o-min-device-pixel-ratio: 5/4),
     (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 */
    -webkit-box-shadow: none !important;
            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;
  }
}
