/* CDNC CUSTOMISATION: Styles for custom region browser */

a.maplink
{
  color: #925347;
  font-family: Arial,sans-serif;  /* More standard font type */
  font-size: 13px;  /* Smaller font */
  font-weight: normal;
  line-height: 13px;
}

a.maplink:hover
{
  color: black;
}

dd.regionlink
{
  cursor: pointer;
  line-height: 13px;
  margin: 0px;
  padding: 0px;
  position: absolute;
}


/* CDNC CUSTOMISATION: Styles for the custom publication-level page */

.cdncaboutthispublication div#cdncpubinfo > div > div:first-child
{
  font-weight: bold;
  padding-left: 8px;
  padding-right: 5px;
}

.cdncaboutthispublication h3
{
  background-color: #bbb;
  font-weight: bold;
  margin: 0;
  margin-top: 0.75rem;
  padding: 4px 8px;
}

.cdncaboutthispublication h4
{
  margin: 20px 0 0 0;
  padding-left: 8px;
}

.cdncaboutthispublication hr
{
  background-color: #bbb;
  border: none;
  height: 4px;
  margin: 0 0 6px 0;
}

.cdncaboutthispublication p
{
  padding-left: 8px;
}

.cdncaboutthispublication ul.datebrowserwhitneydaysofweek
{
  background-color: #ECEEEF;
  margin-top: 3px;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* CDNC CUSTOMISATION: Wrap the months a bit earlier on the publication page, because there's only half the width available (due to the two columns) */
@media (max-width: 1200px)
{
  .cdncaboutthispublication ul.datebrowserwhitneymonthselector
  {
    -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  }

  /* Two rows of 6 months each */
  .cdncaboutthispublication ul.datebrowserwhitneymonthselector li
  {
    width: calc((100% - (5 * 0.25rem)) / 6);  /* Leave spacing of 0.25rem for each of the 5 spaces between each row of 6 months */
  }
}


/* CDNC CUSTOMISATION: One logo version of header, for <= 975px */
@media (max-width: 975px)
{
  div#bannerlogo
  {
    flex-basis: 248px;  /* Half of 486px UCR_CDNC.png width, plus 5px left padding */
    padding-left: 5px;
  }
  div#bannerlogo img#cdncbannerlogoonecbsr
  {
    display: none;
  }
  div#cdncbannerlogotwo
  {
    display: none;
  }
}

/* CDNC CUSTOMISATION: Twp logo version of header, for > 975px */
@media (min-width: 976px)
{
  div#bannerlogo
  {
    flex-basis: 207.5px;  /* Half of 405px UCR_CBSR.png width, plus 5px left padding */
    flex-grow: 1;
    padding-left: 5px;
  }
  div#bannerlogo img#cdncbannerlogoonecbsr
  {
    max-width: 405px;  /* UCR_CBSR.png width */
    width: 100%;  /* Fill the div#bannerlogo element */
  }
  div#bannerlogo img#cdncbannerlogoonecdnc
  {
    display: none;
  }
  div#cdncbannerlogotwo
  {
    flex-basis: 380px;  /* Half of 700px CDNC_CDNC.png width, plus 30px total left and right padding */
    flex-grow: 1;
    padding-left: 20px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  div#cdncbannerlogotwo.offsetbannerlogo
  {
    margin-bottom: -22px;
    padding-top: 0;
    position: relative;
    top: -22px;
  }
  div#cdncbannerlogotwo img
  {
    max-width: 700px;  /* CDNC_CDNC.png width */
    width: 100%;  /* Fill the div#cdncbannerlogo element */
  }
}

/* CDNC CUSTOMISATION: For the "donate" section on the home page */
div#cdnchomepagedonate
{
  padding-bottom: 15px;
}

/* CDNC CUSTOMISATION: Hide these because they'll be soul-destroying for the text correctors I think... */
div.completelycorrectstats > div > div.completelycorrectstatsentrytotal, div.completelycorrectstats > div > div.completelycorrectstatsentrypercentage
{
  display: none !important;
}

/* CDNC CUSTOMISATION: For the page-level table of contents for embargoed documents */
div.pagetocnodecontainer span.pagetocnodelink
{
  background-image: url(../../../../web/images/icontext.gif);
  background-position: center left;
  background-repeat: no-repeat;
  margin-left: -27px;  /* Crucial to get the background image in the right place */
  padding-left: 27px;
}

/* CDNC CUSTOMISATION: For new "JPG of this page" and "Report page problem" PanoJS menu links */
div#panojscontextmenupopup div.panojsdownloadpagejpglinkcontainer a, div#panojscontextmenupopup div.panojsreportpageproblemlinkcontainer a
{
  background-image: url(../../../../web/images/icontext_invert.gif);
}

/* CDNC CUSTOMISATION: For new "upgrade user" links on the "My Account" page */
div#useraccountpageuserinfotabcontent div#coreuserinfo a.upgradeuserlink
{
  margin-left: 15px;
}

/* CDNC CUSTOMISATION: The custom publication page takes up the full width, up to 1600px */
div.widthrestrictioncdncpublicationpage
{
  margin: auto;
  max-width: 1600px;
}

/* CDNC CUSTOMISATION: Green background for header, and white links with gold hover */
header
{
  background-color: #6F8135;
}
header div a
{
  color: white;
}
header div a:hover
{
  color: #F0AB1E;
}
/* svg elements need "fill" instead of "color", annoyingly */
header div a svg
{
  fill: white;
}
header div a:hover svg
{
  fill: #F0AB1E;
}

img.cdnchelpimage
{
  max-width: 600px;
  padding-bottom: 15px;
  width: 100%;
}

/* CDNC CUSTOMISATION: Use a light green background colour for days with 1 document, and dark green for multiple documents */
li.cdncdatebrowserwhitneydayonedoc
{
  background-color: #D7E1B7;
}
li.cdncdatebrowserwhitneydaymanydocs
{
  background-color: #9BB44B;
}
