@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: local('Open Sans Light'), local('OpenSans-Light'), url(/_assets/_fonts/opensans/opensans-light.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-light.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: local('Open Sans Semibold'), local('OpenSans-semibold'), url(/_assets/_fonts/opensans/opensans-semibold.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-semibold.woff) format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: local('Open Sans Regular'), local('OpenSans-Regular'), url(/_assets/_fonts/opensans/opensans-regular.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-regular.woff) format('woff'); }

/*****************

Te Poutama Maori CSS

*****************/

body {
    background: url(gfx/inner-background.png) 0px 0px repeat-x;
    font-display: swap;
}
#wrapper {
    background: url(gfx/inner-banner.jpg) right 0px no-repeat;
}
#title h1 {
    background: url(gfx/title.png) 22px 90px no-repeat;
    color: #647d78;
    font-size: 37px;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    line-height: 1.25;
    margin-top: 3px;
    max-width: 627px;
    padding: 290px 0px 21px 23px;
    position: static;
    opacity: 1;
    text-rendering: optimizeLegibility;
}
.titleinner {
    background: url(gfx/tessellations.png) 186px -101px no-repeat;
    padding-top: 3px;
    padding-bottom: 0px;
}
.titleinner img {
    display: none;
}
.titleinner h1 {
    margin-top: 0px;
}
#content h2 {
    padding-bottom: 7px;
    font-size: 28px;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    line-height: 1.3;
    margin-top: 28px;
    border-bottom: none;
}
#content h2:first-of-type {
    margin-top: 0;
}
#content p + h2:first-of-type {
	margin-top: 28px;
}
#content p,
#content ul,
#content ol,
#content li,
#content table,
#content dl,
#content form fieldset label,
#content form fieldset input,
#content form fieldset textarea,
#right p,
#right li {
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-display: swap;
  font-size: 15px;
  text-rendering: optimizeLegibility;
}
#content table td,
#content table td p {
  font-size: 15px;
  line-height: 1.6;
}
#content th,
#content td,
#right p,
#right li {
  font-size: 13px;
}
#right p,
#right ul {
  margin-bottom: 14px;
}
#content a {
  transition: all 0.3s ease-out;
}
#content p img {
    max-width: 100%;
    box-sizing: border-box;
}
#content .grid1 {
    width: 28.6%;
    margin-right: 7.1%;
}
#content .grid1:nth-of-type(3n) {
    margin-right: 0;
}
#content .grid1 img {
    margin-left: 0;
    margin-bottom: 0;
}
#content .gridhalf {
    width: 46.5%;
    float: left;
    margin-right: 7%;
}
#content .gridhalf:nth-of-type(2n+1) {
    margin-right: 0;
}
#content .gridhalf a {
    border-bottom: none;
}
#content .gridhalf p:nth-of-type(1) {
    margin-bottom: 0;
}
#content .gridhalf img {
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 0;
}
#content .grid-third {
  border: 1px solid #dddddd;
  border-radius: 3px;
  /*box-shadow: 0 0 14px #e4e4e4;
  -webkit-box-shadow: 0 0 14px #e4e4e4;*/
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  margin-bottom: 46px;
  margin-right: 5.3%;
  -webkit-transition: -webkit-box-shadow 0.3s ease-out;
  transition: -webkit-box-shadow 0.3s ease-out;
  transition: box-shadow 0.3s ease-out;
  transition: box-shadow 0.3s ease-out, -webkit-box-shadow 0.3s ease-out;
  width: 29.8%;
}
#content .grid-third img {
    border: 0;
    box-sizing: border-box;
    border-radius: 2px 2px 0 0;
    margin: 0;
    padding: 0;
    width: 100%;
}
#content .grid-third:empty {
    border: 0;
    box-shadow: none;
}
#content .grid-third:nth-of-type(3n) {
    margin-right: 0;
}

.OTAGO075682 #content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.OTAGO075682 #content h2 {
    width: 100%;
}
.OTAGO075682 #content .grid-third h3 {
    margin: 0 14px;
}
.OTAGO075682 #content .grid-third .smalltag {
    color: #888888;
    font-style: normal;
    letter-spacing: 0.01em;
    margin: 0 14px 14px 14px;
}
.OTAGO075682 #content .gridhalf {
    width: 46.4%;
    margin-right: 7.2%;
}
.OTAGO075682 #content .gridhalf:nth-of-type(2n) {
    margin-right: 0;
}

/* News page */
body.OTAGO075685 #box2,
body.OTAGO075685 #box6,
body.OTAGO075685 #box10 {
    clear: both;
}
body.OTAGO075685 article,
body.OTAGO075685 #content .grid1 {
/*     width: 28.6%;
    margin-right: 7.1%;
    float: left; */
    padding-bottom: 20px;
}
body.OTAGO075685 #content h3 {
    font-size: 20px;
    line-height: 1.3;
}
body.OTAGO075685 #content a {
    border-bottom: none;
}
body.OTAGO075685 article:nth-of-type(3n),
body.OTAGO075685 #content .grid1:nth-of-type(5),
body.OTAGO075685 #content .grid1:nth-of-type(9) {
    margin-right: 0;
}
#content .grid1 img {
    max-width: 100%;
    width: 100%;
}
body.OTAGO075685 #content article img,
body.OTAGO075685 #content .grid1 img,
body.OTAGO075682 #content .grid1 img {
    margin-left: 0;
    margin-right: 0;
    border: none;
    padding: 0;
    max-width: 100%;
}

/* Banner page */

#content p.whakaaraara {
    margin-bottom: 28px;
    box-shadow: 0 0 10px #e4e4e4;
    border-radius: 4px;
    border: 1px solid #dddddd;
    padding: 3%;
    font-family: 'Open sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
}
#content p.whakaaraara span {
    width: 47%;
    display: inline-block;
    float: left;
}
#content p.whakaaraara span.smalltag {
    font-style: italic;
    color: #888888;
    float: right;
    width: 47%;
    margin-left: 3%;
    font-size: 16px;
    line-height: 1.5;
}

/* Research */
body.OTAGO075680 #content .grid1,
body.OTAGO075682 #content .grid1 {
    margin-bottom: 21px;
    width: 28.6%;
    margin-right: 7.1%;
}
body.OTAGO075680 #content .grid1 a {
    border-bottom: none;
}
body.OTAGO075680 #content .grid1:nth-of-type(3n),
body.OTAGO075682 #content .grid1:nth-of-type(3n) {
    margin-right: 0;
}
body.OTAGO075680 #content .grid1:nth-of-type(3n+1),
body.OTAGO075682 #content .grid1:nth-of-type(3n+1) {
    clear: left;
}
#right {
    background-size: 26px 100%;
}
nav#global_nav a span.english-hover {
	display: none;
}
nav#global_nav a:hover span.maori-hover {
	display: none;
}
nav#global_nav a:hover span.english-hover {
	display: block;
}

/*  FRONTPAGE  */

body.frontpage {
    background: url(gfx/frontpage-background.png) 0px 0px repeat-x;
}
body.frontpage #wrapper {
    background: url(gfx/banner-frontpage.jpg) right 0px no-repeat;
}
body.frontpage .titleinner {
    padding-top: 14px;
    padding-bottom: 21px;
    background: url(gfx/tessellations.png) 186px -42px no-repeat;
}
body.frontpage #title h1 {
    padding: 350px 0px 0px 23px;
    font-size: 32px;
    line-height: 1.2;
    background: url(gfx/title.png) 23px 108px no-repeat;
    opacity: 1;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    max-width: 882px;
}
.no-flexbox body.frontpage #content.otgx {
    width: 100%;
    max-width: 882px;
}
.no-flexbox body.frontpage #content.otgx .gridhalf,
.no-flexbox body.frontpage #content .profile-box article,
.no-flexbox body.frontpage #content .news-box article {
    width: 47.5%;
    float: left;
    margin-right: 5%;
}
.no-flexbox body.frontpage #content .news-box article:nth-of-type(2n),
.no-flexbox body.frontpage #content .profile-box article:nth-of-type(2n) {
    margin-right: 0;
}
body.frontpage #content.otgx,
body.frontpage #content .news-box,
body.frontpage #content .profile-box {
    width: 100%;
    max-width: 882px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
body.frontpage #content.otgx .gridhalf.shadow-box {
    -webkit-box-flex: 0;
    -webkit-flex: 0 47.5%;
    -ms-flex: 0 47.5%;
    flex: 0 47.5%;
    padding: 28px 28px 14px 28px;
    box-sizing: border-box;
    box-shadow: 0 0 10px #e4e4e4;
    border: 1px solid #dddddd;
    border-radius: 4px;
    margin-bottom: 35px;
}
body.frontpage #content .profile-box article,
body.frontpage #content .news-box article {
    -webkit-box-flex: 0;
    -webkit-flex: 0 47.5%;
    -ms-flex: 0 47.5%;
    flex: 0 47.5%;
    padding: 21px 14px 21px 21px;
    box-sizing: border-box;
    box-shadow: 0 0 10px #e4e4e4;
    border: 1px solid #dddddd;
    border-radius: 4px;
    margin-bottom: 35px;
}
body.frontpage #content .news-box > a:nth-child(1),
body.frontpage #content .profile-box > a:nth-child(1) {
    display: none;
}
body.frontpage #content .news-box img,
body.frontpage #content .profile-box img {
    float: left;
    width: 50%;
}
body.frontpage #content .news-box h3,
body.frontpage #content .profile-box h3 {
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    font-size: 18px;
}
body.frontpage #content .profile-box h3,
body.frontpage #content .profile-box p,
body.frontpage #content .news-box h3,
body.frontpage #content .news-box p {
    float: right;
    width: 45%;
}
body.frontpage #content .news-box p {
    margin-bottom: 0;
}
body.frontpage #content .profile-box p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}
body.frontpage #content.otgx .gridhalf:nth-of-type(2) {
    margin-right: 0;
}
body.frontpage #content.otgx h2 {
    position: relative;
    border-bottom: none;
    padding-bottom: 21px;
    margin-bottom: 28px;
}
body.frontpage #content.otgx h2:after {
    display: block;
    content: '';
    width: 60px;
    height: 3px;
    bottom: 0;
    position: absolute;
    background: #a9cdc1;
}
body.frontpage #content h2 span {
    color: #a9cdc1;
}
body.frontpage #content h2 em {
    color: #888888;
    font-size: 16px;
}
body.frontpage #content.otgx h2 span {
    -webkit-transform: scaleX(0) translateX(-100px);
    -ms-transform: scaleX(0) translateX(-100px);
    transform: scaleX(0) translateX(-100px);
    opacity: 0;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    overflow: hidden;
    display: inline-block;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    line-height: 1.02;
    vertical-align: middle;
    padding-bottom: 9px;
}
body.frontpage #content h2:hover span {
    -webkit-animation: slidein 0.5s forwards;
    animation: slidein 0.5s forwards;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
body.frontpage #content .gridhalf p:nth-of-type(1) {
    margin-bottom: 14px;
}
@-webkit-keyframes slidein {
  0% {
    -webkit-transform: scaleX(0) translateX(-100px);
    transform: scaleX(0) translateX(-100px);
      opacity: 0
  }
  100% {
    -webkit-transform: scaleX(1) translateX(0px);
    transform: scaleX(1) translateX(0px);
      opacity: 1;
  }
}
@keyframes slidein {
  0% {
    -webkit-transform: scaleX(0) translateX(-100px);
    transform: scaleX(0) translateX(-100px);
      opacity: 0
  }
  100% {
    -webkit-transform: scaleX(1) translateX(0px);
    transform: scaleX(1) translateX(0px);
      opacity: 1;
  }
}
body.frontpage #right {
    padding-left: 0;
    margin-top: -400px;
    background: none;
}


/* Hi res */

@media (-webkit-min-device-pixel-ratio: 1.8),
       (min--moz-device-pixel-ratio: 1.8),
       (min-resolution: 1.8dppx),
       (min-resolution: 192dpi) {
           #title h1 {
               background: url(gfx/title@2x.png) 22px 90px no-repeat;
               background-size: 311px;
           }
           body.frontpage #title h1 {
               background: url(gfx/title@2x.png) 23px 108px no-repeat;
               background-size: 311px;
           }
}


/* IE 11 flexbox fix */

@media all and (-ms-high-contrast:none) {
    body.frontpage #content.otgx .gridhalf.shadow-box {
        -ms-flex: 0 41%;
        flex: 0 41%;
    }
    body.frontpage #content .profile-box article,
    body.frontpage #content .news-box article {
        -ms-flex: 0 43.5%;
        flex: 0 43.5%;
    }
}

/* Tablet styles */

@media only screen and (min-width: 700px) and (max-width: 1024px) {
    body #content.otgx {
        width: 100%;
        max-width: 650px;
        box-sizing: border-box;
    }
    body.frontpage #content .news-box img,
    body.frontpage #content .profile-box img {
        float: none;
        width: 100%;
    }
    body.frontpage #content .profile-box h3,
    body.frontpage #content .profile-box p,
    body.frontpage #content .news-box h3,
    body.frontpage #content .news-box p {
       float: none;
       width: 100%;
    }
    body.frontpage #content .profile-box a,
    body.frontpage #content .news-box a {
       border-bottom: none;
    }
}



@media only screen and (max-width: 768px) {
	#title h1 {
        padding-right: 0;
    }
    body.frontpage #title h1 {
        padding-right: 0;
    }
    #right {
        border-bottom: none;
        border-top: 1px solid #e4e4e4;
    }
    body.frontpage #right {
        margin-top: 0;
    }
    #features .events {
        width: 418px;
        margin-left: 232px;
        border-left: none;
    }
    #features .events article {
        margin-top: 14px;
    }
    #features .events article:first-child {
        margin-top: 14px;
    }
}


/* Mobile styles*/

@media only screen and (max-width: 700px) {
    body.frontpage .titleinner,
    .titleinner {
        width: 92%;
    }
    #title h1 {
        padding: 280px 0px 0px 0px;
        background: url(gfx/title.png) 0px 106px no-repeat;
        background-size: 300px;
        font-size: 36px;
        margin-left: 4%;
    }
    body.frontpage #title h1 {
        padding: 260px 0px 0px 0px;
        background: url(gfx/title.png) 0px 80px no-repeat;
        background-size: 300px;
        font-size: 28px;
        margin-left: 4%;
    }
    body.frontpage .titleinner, .titleinner {
        width: 100%;
    }
    body.frontpage {
        background: none;
    }
    body.frontpage #wrapper {
        background-size: 1400px;
    }
    body.frontpage #content.otgx {
        max-width: 97%;
    }
    body.frontpage .titleinner {
        background: url(gfx/tessellations.png) 0px -42px no-repeat;
    }
    .titleinner {
        background: url(gfx/tessellations.png) 0px -101px no-repeat;
    }
    body.frontpage #content.otgx .gridhalf.shadow-box {
        -webkit-box-flex: 0;
        -webkit-flex: 0 100%;
        -ms-flex: 0 100%;
        flex: 0 100%;
    }
    body.frontpage #content .profile-box article,
    body.frontpage #content .news-box article {
        padding: 14px;
    }
    body.frontpage #content .news-box img,
    body.frontpage #content .profile-box img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    body.frontpage #content .profile-box h3,
    body.frontpage #content .profile-box p,
    body.frontpage #content .news-box h3,
    body.frontpage #content .news-box p {
       float: none;
       width: 100%;
    }
    body.frontpage #content .profile-box a,
    body.frontpage #content .news-box a {
       border-bottom: none;
    }
    .titleinner h1 {
        max-width: 95% !important;
    }
}

/* IE flexbox fix */
@media all and (-ms-high-contrast:none) and (max-width: 768px) {
    body.frontpage #content.otgx .gridhalf.shadow-box {
        -ms-flex: 0 39%;
        flex: 0 39%;
    }
    body.frontpage #content .profile-box article,
    body.frontpage #content .news-box article {
        -ms-flex: 0 42%;
        flex: 0 42%;
    }
}


@media (-webkit-min-device-pixel-ratio: 1.8) and (max-width: 700px),
       (min--moz-device-pixel-ratio: 1.8) and (max-width: 700px),
       (min-resolution: 1.8dppx) and (max-width: 700px),
       (min-resolution: 192dpi) and (max-width: 700px) {
           #title h1,
           body.frontpage #title h1 {
                background: url(gfx/title@2x.png) 0px 106px no-repeat;
                background-size: 300px;
            }
}
