@charset "utf-8";

/* site specific color variables */

:root {
  --nav-bg-color: #23537b;
}
:root {
  --nav-color: #ffffff;
}
:root {
  --nav-bg-hover-color: #236287;
}
:root {
  --nav-hover-color: #ffffff;
}
:root {
  --panel-bg-color: #f3f2f1;
}
:root {
  --panel-color: #000000;
}
:root {
  --table-border-color: #b1b4b6;
}
:root {
  --button-color: #ffffff;
}
:root {
  --button-bg-color: #555658;
}
:root {
  --button-bg-hover-color: #747576;
}
:root {
  --link-color: #1d70b8;
}

/* single use colors */
body {
  background-color: #ffffff;
  color: #000000;
}
footer {
  background-color: #555658;
  color: #ffffff;
}
footer a {
  color: #ffffff;
}
a {
  color: rgb(0, 0, 238);
}

/* IE11 workarounds */
aside,
#news,
#panel0,
#panel1,
#panel2,
#panel3,
summary,
main form {
  background-color: #f3f2f1;
  color: #000000;
}
#navbar,
#menu li,
#menu li a,
ul li:hover ul.subNav,
ul li:focus ul.subNav {
  background-color: #23537b;
  color: #ffffff;
}
#mobile-main-menu,
.chevron {
  background-color: #23537b;
  color: #ffffff;
  margin-left: 0 !important;
}
details {
  border: 2px solid #f3f2f1;
}
th,
td {
  border-bottom: 1px solid #b1b4b6;
}
main#container a:hover {
  color: #4c2c92 !important;
}
#submitButton,
#submit {
  background-color: #555658;
  color: #ffffff;
}
#submitButton:hover,
#submit:hover {
  background-color: #747576;
  color: #ffffff;
}
/* end of site specific colors */

.logo {
  background-image: url(https://www.dgsafetyadvisers.org.uk/images/DGSA/DGSA-logo.jpg);
  background-repeat: no-repeat;
  text-indent: -300%;
  height: 48px;
  width: 527px;
  display: block;
}

aside {
  background-color: var(--panel-bg-color);
}
aside div {
  padding-right: 20px;
  padding-left: 10px;
  padding-bottom: 10px;
}
#small-print {
  float: left;
}
#logos {
  float: right;
}
#logos li {
  display: inline;
}
footer {
  padding: 0;
  clear: both;
}

h1 {
  font-size: 1.5em;
  font-weight: bold;
}
h2 {
  font-size: 1.2em;
  font-weight: bold;
}
h3 {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0;
}
h4 {
  font-size: 1em;
  font-weight: bold;
}
header {
  max-width: 1140px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
footer {
  font-size: 16px;
  line-height: 1.5;
  max-width: 1110px;
  width: 100%;
  padding: 15px;
  margin: 0px;
  min-height: 180px;
}
a.downloadXls,
a.downloadXlsx,
a.downloadPps,
a.downloadPpt,
a.downloadPptx,
a.downloadDoc,
a.downloadDocx,
a.downloadPdf,
a.downloadMsAccess {
  background: none;
  position: relative;
  cursor: pointer;
  display: inline;
  height: 16px;
  width: 16px;
  margin-bottom: -2px;
  margin-left: 4px;
  margin-top: 0;
  padding-left: 20px;
}
a.downloadPdf {
  background: rgba(0, 0, 0, 0)
    url("https://www2.sqa.org.uk/images/2016/icon8/PDF-16.png") no-repeat scroll
    0 0;
}
a.downloadDoc,
a.downloadDocx {
  background: rgba(0, 0, 0, 0)
    url("https://www2.sqa.org.uk/images/2016/icon8/MS-Word-16.png") no-repeat
    scroll 0 0;
}
a.downloadXlsx,
a.downloadXls {
  background: rgba(0, 0, 0, 0)
    url("https://www2.sqa.org.uk/images/2016/icon8/MS-Excel-16.png") no-repeat
    scroll 0 0;
}
#logo {
  width: 150px;
  height: 85px;
}
.skiplink {
  display: inline-block;
  margin: 10px 0 0 0;
  left: -9999em;
  z-index: -1;
  position: absolute;
}
.skiplink:focus {
  left: 0;
  z-index: 1;
  position: static;
}
main form {
  border: 1px solid #999;
  background-color: var(--panel-bg-color);
  padding: 10px;
}
fieldset {
  border: none;
}
textarea,
select,
input[type="text"],
input[type="email"] {
  padding: 10px;
  width: 80%;
}
select {
  padding: 10px;
  width: 83%;
}
#submitButton {
  font-size: 1.2em;
  padding: 10px;
  color: var(--button-color);
  background-color: var(--button-bg-color);
  border: 0;
}
#submitButton:hover {
  background-color: var(--button-bg-hover-color);
  color: var(--button-color);
}
#submitLabel {
  display: none;
}
.error-summary {
  border: 5px solid #d4351c;
  padding: 10px;
  margin-bottom: 25px;
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
  margin: 0 auto;
  width: 1140px;
}
#grid section {
  padding: 1px 0 1px 0;
  margin-bottom: 10px;
  background-color: var(--panel-bg-color);
  color: var(--panel-color);
}
#grid section div {
  padding: 0 15px;
}
#grid section ul {
  padding-left: 2px;
}
#grid section li {
  margin-bottom: 10px;
}
#grid #news li {
  list-style: none;
}

#grid section a {
  background-color: var(--panel-bg-color);
  color: var(--link-color);
}
.newsItem p span {
  font-size: 16px !important;
}
.menu-item a,
.spanMenu {
  cursor: pointer;
  text-decoration: none;
}
#menu li {
  list-style: none;
  text-align: left;
  background-color: var(--nav-bg-color);
  color: var(--nav-color);
  margin: 0;
  padding: 15px;
  cursor: pointer;
}
ul ul {
  margin-top: 20px;
}
li {
  margin-bottom: 20px;
}
#navbar {
  clear: right;
}
.visuallyhidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: fixed;
  width: 1px;
}
.subNav {
  display: none;
}
#q {
  padding: 8px;
}
#submit {
  padding: 10px;
  border: 0;
  color: var(--button-color);
  background-color: var(--button-bg-color);
}
#submit:hover {
  color: var(--button-color);
  background-color: var(--button-bg-hover-color);
}
#topleft a,
#topright a {
  text-decoration: none;
}
#topleft a:hover,
#topright a:hover {
  text-decoration: underline;
}

/**** media query ****/
@media only screen and (min-width: 1021px) {
  ul li ul.subNav.opened {
    display: block !important;
  }
  #menu {
    height: 50px;
  }
  #menu li {
    z-index: 999;
  }
  #menu > li {
    height: 20px !important;
  }
  #menu > li a {
    font-size: 18px !important;
  }
  section {
    width: 75%;
    float: left;
  }
  #grid {
    width: 100%;
    margin: 20px 0;
  }
  aside {
    width: 23%;
    float: right;
    margin-left: 1%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  #container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    z-index: 0;
    position: relative;
  }
  .general #container {
    max-width: 1140px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
    position: relative;
  }
  #searchform {
    display: inline;
  }
  #topleft {
    width: 50%;
    float: left;
    padding: 10px 0;
  }
  #topright {
    width: 50%;
    float: right;
    padding: 15px 0;
  }
  #mobile-main-menu {
    display: none;
  }
  #navbar,
  #top {
    clear: both;
  }
  #navbar {
    background-color: var(--nav-bg-color);
  }
  nav {
    flex-direction: column;
  }
  nav ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
    font-size: 18px;
    margin: 0;
  }
  .spanMenu {
    width: 100%;
  }
  .showSubNav {
    z-index: 1;
  }
  .showSubNav li {
    font-size: 16px;
    text-align: left;
  }
  ul li ul.subNav {
    display: none;
  }
  .menu-item {
    padding: 10px;
  }

  #menu li:hover,
  #menu li:hover a {
    background-color: var(--nav-bg-hover-color);
    height: 100%;
  }
  #menu li a,
  #menu li:hover .subNav a {
    color: var(--nav-color);
    background-color: var(--nav-bg-color);
    text-decoration: none;
  }
  #menu li:hover .subNav a:hover,
  #menu li:hover .subNav li:hover a {
    background-color: var(--nav-bg-hover-color) !important;
    text-decoration: underline;
  }
  #menu li span a:hover {
    color: var(--nav-hover-color) !important;
    background-color: var(--nav-bg-hover-color) !important;
    text-decoration: underline;
  }
  #menu .current {
    background-color: var(--nav-bg-hover-color) !important;
    color: var(--nav-hover-color) !important;
    margin: 0;
  }
  #menu .subNav li:hover {
    height: 100%;
  }

  ul li:hover ul.subNav,
  ul li:focus ul.subNav {
    display: block;
    background-color: var(--nav-bg-color);
    z-index: 1;
    position: absolute;
    padding-right: 10px;
  }
  .notcurrent {
    padding: 8px;
  }
  #grid {
    display: flex;
    flex-wrap: wrap;
  }
  #grid h1 {
    margin-top: 10px;
  }
  #news,
  #panel0,
  #panel1,
  #panel2 {
    flex: 1;
    border-right: 15px solid #ffffff;
  }
  #panel3 {
    flex: 1;
  }
  details {
    border: 2px solid var(--panel-bg-color);
    border-radius: 2px;
    margin-bottom: 10px;
  }
  details > p,
  details > li,
  details > div {
    padding: 10px;
  }
  details > li {
    margin-left: 10px;
  }
  summary {
    padding: 10px;
    background-color: var(--panel-bg-color);
    cursor: pointer;
  }
  th,
  td {
    border-bottom: 1px solid var(--table-border-color);
    padding: 10px 20px 10px 0;
    text-align: left;
    vertical-align: top;
  }
  table {
    width: 100%;
  }
}

/**** media query ****/
@media only screen and (max-width: 1020px) {
  main,
  section,
  aside {
    width: 100%;
    float: none;
  }
  #searchform {
    width: 100%;
    margin: 20px 0;
  }
  #q {
    width: 74%;
  }

  #mobile-main-menu {
    background-color: var(--nav-bg-color);
    color: var(--nav-color);
    padding: 2px 0;
    display: block;
    height: 50px;
    position: relative;
    text-align: center;
    width: 100%;
    font-size: 18px;
  }

  #mobile-main-menu i {
    float: right;
    padding: 8px;
  }
  #mobile-main-menu span {
    line-height: 3;
  }
  #menu {
    display: block;
    font-size: 1.3em;
    padding: 0;
    margin: 0;
  }
  #bars {
    float: right;
    margin: 5px;
  }
  .chevron::before {
    border-style: solid;
    border-width: 0.25em 0.25em 0 0;
    content: "";
    display: inline-block;
    height: 0.45em;
    left: 0.15em;
    position: relative;
    top: 0.25em;
    vertical-align: top;
    width: 0.45em;
    transform: rotate(135deg);
    float: right;
    transition: 0.2s;
  }
  .opened.chevron::before {
    top: 0.15em;
    transform: rotate(-45deg);
    transition: 0.2s;
  }
  #menu .current {
    background-color: var(--nav-bg-color) !important;
  }
  .navHide {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.1s linear;
    display: none;
  }
  .navShow {
    opacity: 1;
    max-height: 100%;
    transition: opacity 0.5s linear;
    display: block;
  }
  .bar1,
  .bar2,
  .bar3 {
    width: 35px;
    height: 5px;
    background-color: #ffffff;
    margin: 6px 0;
    transition: 0.4s;
  }
  .close .bar1 {
    transform: rotate(-45deg) translate(-9px, 6px);
  }
  .close .bar2 {
    opacity: 0;
  }
  .close .bar3 {
    transform: rotate(45deg) translate(-8px, -8px);
  }
  #grid {
    flex-wrap: wrap;
    padding-bottom: 5px;
  }
  #grid img,
  #hero,
  #container picture {
    display: none;
  }
}

/**** media query ****/
@media only screen and (min-width: 769px) and (max-width: 1020px) {
  body {
    width: 96% !important;
    margin-top: 20px;
  }
  main,
  section,
  aside {
    width: 100%;
    float: none;
  }
  #grid {
    width: 100%;
    margin: 20px 0;
  }

  #searchform {
    float: right !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
  #menu li a {
    margin-left: 0px;
  }
  .subNav li {
    margin-left: -20px;
  }
  footer {
    min-height: 250px;
  }
  #nav,
  #top,
  #container,
  footer {
    margin: 0 auto;
    width: 100%;
  }
  #container {
    max-width: 760px;
    width: 100%;
    padding: 15px 0 15px 20px;
    margin-left: auto;
    margin-right: auto;
  }
  .chevron {
    padding-left: 10px;
    background-color: var(--nav-bg-color);
    color: var(--nav-color);
  }
  #menu .subNav li {
    padding-left: 40px;
  }
  .showSubNav {
    display: block;
    padding-left: 0;
    margin-left: 0;
  }
  #grid img,
  #hero,
  #container picture {
    display: none;
  }
}

/**** media query ****/
@media only screen and (min-width: 577px) and (max-width: 1020px) {
  body {
    width: 95% !important;
    margin-top: 20px;
  }
  main,
  section,
  aside {
    width: 100%;
    float: none;
  }
  aside {
    padding-top: 10px;
  }
  #grid {
    width: 100%;
    margin: 20px 0;
  }

  #searchform {
    float: right !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
  #menu li a {
    margin-left: 0px;
  }
  .subNav li {
    padding-left: 0;
    margin-left: -20px;
  }
  #nav,
  #top,
  #container,
  footer {
    margin: 0 auto;
    width: 95%;
  }
  footer {
    min-height: 250px;
  }
  #container {
    /*padding: 15px;*/
    margin-left: auto;
    margin-right: auto;
  }
  .showSubNav {
    display: block;
  }
  #grid img,
  #hero,
  #container picture {
    display: none;
  }
}

/**** media query ****/
@media only screen and (max-width: 576px) {
  .logo {
    background-image: url(https://www.dgsafetyadvisers.org.uk/images/DGSA/small-DGSAlogo.jpg);
    background-repeat: no-repeat;
    text-indent: -300%;
    height: 30px;
    width: 333px;
    display: block;
  }
  body {
    width: 92% !important;
    margin: 0 auto;
  }
  header {
    margin-top: 20px;
  }
  aside {
    padding-top: 10px;
  }

  #searchform {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
  }
  #q {
    width: 260px;
    padding: 8px 2px;
  }

  #menu li a {
    margin-left: -10px;
  }
  #menu li:hover {
    background-color: var(--nav-bg-color) !important;
  }

  #menu li .subNav li a {
    margin-left: -20px !important;
  }
  #nav,
  #top,
  #container {
    margin: 0 auto;
    width: 100%;
  }

  footer {
    width: 92%;
    min-height: 350px;
    margin: 20px 0;
  }
  footer ul {
    padding: 0;
  }
  #container {
    margin-left: auto;
    margin-right: auto;
  }
  #submit {
    float: right;
  }
  #menu li.menu-item.chevron {
    padding: 12px;
  }
  .menu-item a,
  .spanMenu {
    padding: 12px;
    text-decoration: none;
  }
  #grid section {
    padding: 10px 0;
    margin: 20px 0;
  }
  .showSubNav {
    display: block;
  }
  #grid img,
  #hero,
  #container picture {
    display: none;
  }
}
