/* For headers */
/* Body font */
/* Main color */
/* h2, h4 header color */
/* h3, h5 header color */
/* Size of big figures in a box */
/* Size of photos in a box */
/*
    Figures
*/
/*
    Div that wrapps a figure
*/
.thumb-nail .figure-inner {
  width: 100%;
  margin: 5px auto;
}
.big-figure .figure-inner {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.big-figure.photo .figure-inner {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.interactive .figure-inner {
  width: 100%;
}

@media (max-width: 480px) {
  .figure-inner { width: 100% !important; }
}

.md-3 {
  font-size: 90%;
  padding-left: 15px;
  padding-right: 15px;
  /*margin: 20px 8.33333%;*/
  margin: 20px 0;
}

/*
@media (max-width: 1024px) {
  .md-3 {
    margin: 20px 8.3333% 20px 0;
  }
}
*/

@media (min-width: 1024px) {
  .md-3 {
    position: relative;
    float: right;
    margin: 20px 8.333333333% 20px 0;
    padding-left: 1rem;
    width: calc(2 * 8.3333333%);
  }
  .box .md-3 {
    margin-right: 0;
  }
}

.caption {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5em;
  font-family: var(--tsu-sans-serif);
  font-weight:300;
  color: var(--tsu-blue);
  line-height: 1.4;
  font-size: 16px;
  font-weight: 300;
}

.caption .intent {
  font-weight: 500;
  margin-bottom: 1em;
  margin-top: 1em;
  font-size: 18px;
}

.caption span.ordinal {
  font-weight: 500;
  text-transform: uppercase;
}

.small-figure-title {
  font-family: var(--tsu-sans-serif);
}

.caption p:last-child {
  margin-bottom: 0;
}

.small-figure .caption {
  display: none;
}

@media (max-width: 1023px) {
  .small-figure .caption {
    display: block;
  }
}

@media (max-width: 600px) {
  .caption {
    width: 100%;
    font-size: 100%;
  }
}

/*
    Small figures
*/
@media (min-width: 1024px) {
  .small-figure {
    text-align: center;
    clear: both;
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    /*
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    */
  }
}

@media (max-width: 1024px) {
  .small-figure {
    margin-bottom: 30px;
  }
}

@media (min-width: 1024px) {
  .box .small-figure h2, .small-figure h2 {
    font-size: 14px;
    text-align: left;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.4;
  }
}

@media (max-width: 1023px) {
  .small-figure h2 {
    margin-top: 20px;
    margin-bottom: 30px !important;
    font-size: 24px;
  }
}

.small-figure p {
  margin-bottom: 0;
  width: 100% !important;
}

.small-figure a {
  text-decoration: none;
}

.small-figure img {
  width: 100%;
}

@media (max-width: 1023px) {
  .small-figure img {
    padding-top: 30px;
    border-top: 1px solid #aaa;
  }
}

@media (max-width: 1023px) {
  .small-figure .caption {
    display: block;
  }
}

@media (min-width: 1024px) {
  .small-figure .figure-social-icons img {
    width: 32px;
    height: 32px;
  }
}

.small-figure.filler_photo .caption,
.small-figure.photo .caption {
  width: 100%;
  margin: 10px auto;
  padding: 10px;
  display: block;
  text-align: left;
}

.small-figure.filler_photo .caption a,
.small-figure.photo .caption a {
  -ms-word-break: break-all;
  word-break: break-all;
}

.box .small-figure.photo .caption {
  font-size: 10px;
}

@media (max-width: 1023px) {
  .box .small-figure.photo .caption {
    font-size: 80%;
  }
  .figure {
    width: 100%;
  }
}

/* Artwork */
.artwork {
  /*
  background-color: var(--tsu-opacity-blue);
  padding: 0.5em 1em 0.5em 0.5em;
  */
  background-color: #f0f0f0;
  padding: 1em;
}

.artwork-picture {
  background-color: #ddd;
  border: 8px solid #ccc;
  position: relative;
}

.artwork-winner {
  position: absolute;
  font-size: 48px;
  top: -8px;
  right: 0px;
  color: var(--tsu-orange);
  /*
  border: 1px solid #666;
  padding: 0px 8px;
  background-color: rgba(200,200,200, 0.6);
  */
}

.artwork-title {
  position: relative;
  font-family: var(--tsu-sans-serif);
  color: var(--tsu-blue);
  line-height: 1.1;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}

.artwork-medium {
  color: var(--tsu-blue);
  font-size: 14px;
  font-style: italic;
}

.artwork-title-bold {
  font-family: var(--tsu-sans-serif);
  color: var(--tsu-blue);
  line-height: 1.4;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.artwork-caption {
  position: relative;
  font-family: var(--tsu-sans-serif);
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  font-weight: 300;
  padding-top: 1em;

  /*width: 75%;*/
  /*vertical-align: middle;*/
  /*padding-bottom: 1em;*/
}

.artwork-inner {
  padding: 5px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*
    Big figures
*/
.big-figure {
  position: relative;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px 15px 30px 15px;
  /*border-top: 1px solid #046493;*/
  /*border-bottom: 1px solid #046493;*/
}

.big-figure h2, .big-figure .tsu-table h2 {
  /*color: #164468;*/
  margin-top: 0;
  margin-right: 20px;
  margin-bottom: 5px;
  padding-bottom: 20px;
  text-align: left;
}

.big-figure img {
  width: 100%;
}

.big-figure img.big-img {
  width: 100%;
  padding-top: 10px;
  /*border-top: 1px solid #ccc;*/
}

.big-figure.photo img.big-img {
  border-top: none;
  padding-top: 20px;
}

/*.big-figure + .big-figure {*/
/*  border-top: none;*/
/*  margin-top: 0;*/
/*  padding-top: 0;*/
/*}*/

.tsu-table h2 {
  padding-top: 0;
}

/*
    Figure captions
*/
@media (max-width: 600px) {
  .big-figure h2 {
    font-size: 24px;
  }
  .small-figure h2,
  .big-figure h2 {
    line-height: 1.2;
  }
}

.filler_photo .caption {
  display: block;
}

/*
    Tables
*/
.tsu_table {
  position: relative;
  width: 100%;
  padding: 30px 0;
  border-top: 1px solid #ccc;
  border-top: none;
  border-bottom: 1px solid #ccc;
}

.tsu_table + .tsu_table {
  border-top: none;
}

.tsu_table .caption {
  margin-bottom: 0;
}

.tsu_table .figure-social-icons {
  right: 10px;
  margin-left: 10px;
  padding-top: 5px;
  padding-left: 10px;
}

td ul {
  padding-left: 20px;
}

.footable p {
  width: 100% !important;
}

.footable th {
  border-bottom: none;
}

.footable td ul {
  padding-left: 20px !important;
  margin-bottom: 0;
}

.footable tr.footable-detail-row > td {
  padding: 0;
}

/* This fixes a bug in Footable v3.0.4 and colspan */
table.footable-bug tr:nth-child(2) td:nth-child(5),
table.footable-bug tr:nth-child(3) td:nth-child(5),
table.footable-bug tr:nth-child(4) td:nth-child(5),
table.footable-bug tr:nth-child(5) td:nth-child(5),
table.footable-bug tr:nth-child(6) td:nth-child(5),
table.footable-bug tr:nth-child(7) td:nth-child(5) {
  display: none !important;
}

table.footable-details > tbody > tr > td:nth-child(2) {
  word-break: normal;
}

table.footable-details tr:nth-child(odd),
table.footable-details tr:nth-child(even) {
  background-color: #f0f0fa !important;
}

table.footable-details tr th:nth-child(1) {
  padding-left: 36px;
  /* eyeball guess */
}

/*
    TSU boxes
*/
aside.box {
  padding: 0;
  background-color: #f3f3f3;
  background-color: rgba(1, 100, 140, 0.08);
  color: #333;
  margin: 40px 0;
  /*border-left: 2px solid #046493;*/
  /*border-right: 2px solid #046493;*/
  /*border-bottom: 2px solid #046493;*/
  border-top:10px solid #219DBB;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
}

aside.box .big-figure {
  background-color: #fff;
  margin: 40px 0;
}

aside.box .big-figure .caption {
  margin-bottom: 10px;
  background: #fff;
}

@media (max-width: 480px) {
  aside.box .big-figure {
    padding: 20px 10px 30px 10px;
  }
}

aside.box .small-photo .photo-caption {
  background: #f3f3f3;
}

aside.box h3 {
  color: #046493;
  margin-bottom:-0.5em;
}

aside.box h2 {
  color: #164468;
  margin-top: 0;
  margin-bottom: 20px;
}

aside.box > h2 {
  color: #fff;
  background-color: #046493;
  padding: 20px 30px;
  text-align: center;
}

aside.box p {
  font-family: var(--tsu-sans-serif);
}

aside.box .big-figure h2 {
  margin-bottom: 0;
}

aside.box .icon-share {
  margin-top: 0;
}

aside.box section.offset-lg-1.big-figure {
  margin-left: 0;
}

aside.box section.col-lg-7.big-figure {
  max-width: 100%;
}

@media (max-width: 991px) {
  aside.box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  aside.box h2 {
    font-size: 24px;
  }
}

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

aside.case-study {
  background-color: #f3f3f3;
}

aside.case-study .big-figure {
  background-color: #f3f3f3;
}

aside.case-study .small-photo .photo-caption {
  background-color: #f3f3f3;
}

aside.case-study > h2 {
  background-color: #2d5677;
}

.box-inner {
  padding: 0 30px 30px 30px;
}

@media (max-width: 480px) {
  .box-inner {
    padding: 0 10px 10px 10px;
  }
}

.float-left .big-figure, .float-right .big-figure {
  border: none;
}

.float-left .big-figure img.big-img, .float-right .big-figure img.big-img {
  border-top: none;
}

.float-left div.caption, .float-right div.caption {
  padding: 10px;
}

.float-right .big-figure {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/*
    Ugly green boxes (not in NCA4)
*/
.ugly-green {
  width: 100%;
  background-color: rgba(47, 86, 117, 0.7);
  border: 1px solid #2d5677;
  color: #fff;
  border-radius: 6px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  padding: 20px;
  vertical-align: middle;
  text-align: center;
}

.ugly-green h2 {
  color: #fff;
}

.ugly-green p {
  margin: 0;
}

.ugly-green a, .ugly-green a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
}

/*
    Photos (not in NCA4)
*/
.small-photo {
  margin-bottom: 30px;
}

.small-photo p {
  width: 100%;
}

.small-photo img {
  width: 100%;
}

.small-photo .photo-caption {
  display: inline-block;
  background: #dadee5;
  font-size: 10px;
  line-height: 1.4;
  padding: 10px;
  width: 100%;
}

.photo-copyright-owner {
  margin-top: 10px;
  text-align: center;
  display: block;
}

.standalone-photo {
  width: 400px;
  margin: 100px 35%;
  /* needs work */
}

/*
    Interactive graphics
*/
p.interactive-graphic {
  width: 100% !important;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  padding: 20px 0;
  border-top: 1px solid #7daae4;
  border-bottom: 1px solid #7daae4;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
}

/*
    Zoom/shrink an image
*/
.view-figure {
  margin-top: 10px;
  display: inline-block;
  border: 1px solid #aaa;
  padding: 8px 10px;
}

.view-figure a {
  text-decoration: none;
}

.view-figure img {
  margin: 0;
  width: 16px;
}

.small-figure .view-figure {
  padding: 4px;
}

.small-figure .view-figure a {
  font-size: 14px;
}

a.expand, a.shrink {
  width: 16px;
  height: 16px;
  xpadding-left: 20px;
  color: #345b7b;
  border-bottom: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
}

a.expand {
  background: url(/icons/maximize.svg) no-repeat 0% 50%;
  background-size: 16px 16px;
  cursor: zoom-in;
}

a.shrink {
  background: url(/icons/minimize.svg) no-repeat 0% 50%;
  background-size: 16px 16px;
  cursor: zoom-out;
}

@media (max-width: 991px) {
  span.view-figure,
  a.shrink,
  a.expand {
    display: none;
  }
  aside.box a.shrink,
  aside.box a.expand {
    display: inline;
  }
}
