:root {
    --neics-color-primary: #635c47;
    --neics-color-link: #64b9ff;
    --neics-color-hover: #424077;
	--neics-color-blue: #64b9ff;
}

:root {
    --cassiopeia-color-primary: var(--neics-color-primary) !important;
    --cassiopeia-color-link: var(--neics-color-link) !important;
    --cassiopeia-color-hover: #424077;
}

.container-header .metismenu>li.active>a:after, .container-header .metismenu>li.active>button:before, .container-header .metismenu>li>a:hover:after, .container-header .metismenu>li>button:hover:before {
    background: #010156;
    left: 0;
    right: 0;
}
.container-header {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #ffffff 0%, #ffffff 50%);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.03) inset;
}
.container-footer {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #ffffff 0%, #ffffff 50%);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.03) inset;
}
/*change text color in header to #084c6e so that it is visible against white background*/
.container-header .navbar-brand a	{
	color: #084c6e;
}
.container-header .site-description  {
	color: #084c6e;
}
/*end header text color change*/
/*Adjust menu bar colours to match AMS site original colours */

/*now change menu text color to make it visible on white*/

.container-header .mod-menu {
    border: none;
    color: #000;

}
.container-header .navbar-toggler {
    border: 1px solid !important;
    color: #000
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.0rem;

}
/*end menu text color defs*/
/*put hover effects etc back in menu bar*/

.container-header .metismenu>li.active>a:after, .container-header .metismenu>li.active>button:before, .container-header .metismenu>li>a:hover:after, .container-header .metismenu>li>button:hover:before {
    background: #fe5b00;
	
    left: 0;
    right: 0;
}
/*end hover effects*/


/*tweak the colours in CK Mobile Menu*/
/*end menu color tweaks*/
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--cassiopeia-font-family-headings),-apple-system, BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
    font-weight: var(--cassiopeia-font-weight-headings,500);
}

body {
/*color: #084c6e;*/
}
/*change default tesc co,our in the footer*/
.footer {
	color: black;
}
/*end footer color change*/

/* Adjust phocadownload button background color*/
.btn-success {
    background-color: #084c6e;
    border-color: #084c6e;
    color: #fff;
}
/*Margin to right when image articles are set*/
figure.left.item-image {
	margin-right: 2em;
}

/*tables for committee*/
/* Variables
================================== */
/* Tables
================================== */
.Rtable {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 3em 0 !important;
  padding: 0;
}
.Rtable-cell {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;
  padding: 0.8em 1.2em;
  overflow: hidden;
  list-style: none;
  border: solid 3px white;
  background: rgba(112, 128, 144, 0.2);
}
/*additional statements for committee table*/
.Rtable-cell-txt {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;
  padding: 0.8em 1.2em;
  overflow: hidden;
  list-style: none;
  border: solid 3px white;
  background: rgba(112, 128, 144, 0.2);
}
.Rtable-cell-img {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;
  padding: 0.8em 1.2em;
  overflow: hidden;
  list-style: none;
  border: solid 3px white;
  background: rgba(112, 128, 144, 0.2);
}
/*end*/
/*additional statements for history table*/
.Rtable-cell-htxt {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;
  padding: 0.8em 1.2em;
  overflow: hidden;
  list-style: none;
  border: solid 3px white;
  background: rgba(112, 128, 144, 0.2);
}
.Rtable-cell-himg {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;
  padding: 0.8em 1.2em;
  overflow: hidden;
  list-style: none;
  border: solid 3px white;
  background: rgba(112, 128, 144, 0.2);
}
/*end*/
.Rtable-cell > h1,
.Rtable-cell > h2,
.Rtable-cell > h3,
.Rtable-cell > h4,
.Rtable-cell > h5,
.Rtable-cell > h6 {
  margin: 0;
}
/* Table column sizing
================================== */
.Rtable--2cols > .Rtable-cell {
  width: 50%;
}
/*additional statements for committee table*/
.Rtable--2cols > .Rtable-cell-img {
  width: 20%;
}
.Rtable--2cols > .Rtable-cell-txt {
  width: 80%;
}
/*end*/
/*additional statements for history table*/
.Rtable--2cols > .Rtable-cell-himg {
  width: 40%;
}
.Rtable--2cols > .Rtable-cell-htxt {
  width: 60%;
}
/*end*/
.Rtable--3cols > .Rtable-cell {
  width: 33.33%;
}
.Rtable--4cols > .Rtable-cell {
  width: 25%;
}
.Rtable--5cols > .Rtable-cell {
  width: 20%;
}
.Rtable--6cols > .Rtable-cell {
  width: 16.6%;
}
/* Page styling
================================== */

html {
  height: 100%;
  background-color: #EEE;
}

body {
  font-family:'quicksand', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}
h3 {
  font-size: 1.2em;
}
h4 {
  font-size: 1em;
}
strong {
  color: #434d57;
}
/* Apply styles
================================== */
.Rtable {
  position: relative;
  top: 3px;
  left: 3px;
}
.Rtable-cell {
  margin: -3px 0 0 -3px;
  background-color: white;
  border-color: white;
}
.Rtable-cell-img {
  margin: -3px 0 0 -3px;
  background-color: white;
  border-color: white;
}
.Rtable-cell-txt {
  margin: -3px 0 0 -3px;
  background-color: white;
  border-color: white;
}
.Rtable-cell-himg {
  margin: -3px 0 0 -3px;
  background-color: white;
  border-color: white;
}
.Rtable-cell-htxt {
  margin: -3px 0 0 -3px;
  background-color: white;
  border-color: white;
}
/* Cell styles
================================== */
.Rtable-cell--dark {
  background-color: #5094cc;;
  border-color: white;
  color: white; 
  text-align: center;
}
.Rtable-cell--dark > h1,
.Rtable-cell--dark > h2,
.Rtable-cell--dark > h3,
.Rtable-cell--dark > h4,
.Rtable-cell--dark > h5,
.Rtable-cell--dark > h6 {
  color: white;
}
.Rtable-cell--medium {
  background-color: #b8c0c8;
  border-color: white;
}
.Rtable-cell--light {
  background-color: white;
  border-color: white;
}
.Rtable-cell--highlight {
  background-color: lightgreen;
  border-color: white;
}
.Rtable-cell--alert {
  background-color: darkorange;
  border-color: white;
  color: white;
}
.Rtable-cell--alert > h1,
.Rtable-cell--alert > h2,
.Rtable-cell--alert > h3,
.Rtable-cell--alert > h4,
.Rtable-cell--alert > h5,
.Rtable-cell--alert > h6 {
  color: white;
}
.Rtable-cell--head {
  background-color: white;
  border-color: white;
  color: white;
}
.Rtable-cell--head > h1,
.Rtable-cell--head > h2,
.Rtable-cell--head > h3,
.Rtable-cell--head > h4,
.Rtable-cell--head > h5,
.Rtable-cell--head > h6 {
  color: white;
}
.Rtable-cell--foot {
  background-color: #b8c0c8;
  border-color: white;
}
/* Responsive
==================================== */
@media all and (max-width: 640px) {
  .Rtable--collapse {
    display: block;
  }
  .Rtable--collapse > .Rtable-cell {
    width: 100% !important;
  }
    .Rtable--collapse > .Rtable-cell-txt {
    width: 100% !important;
  }
    .Rtable--collapse > .Rtable-cell-img {
    width: 100% !important;
  }
      .Rtable--collapse > .Rtable-cell-htxt {
    width: 100% !important;
  }
    .Rtable--collapse > .Rtable-cell-himg {
    width: 100% !important;
  }
  .Rtable--collapse > .Rtable-cell--foot {
    margin-bottom: 1em;
  }
}
.no-flexbox .Rtable {
  display: block;
}
.no-flexbox .Rtable > .Rtable-cell {
  width: 100%;
}
.no-flexbox .Rtable > .Rtable-cell-img {
  width: 100%;
}
.no-flexbox .Rtable > .Rtable-cell-txt {
  width: 100%;
}
.no-flexbox .Rtable > .Rtable-cell-himg {
  width: 100%;
}
.no-flexbox .Rtable > .Rtable-cell-htxt {
  width: 100%;
}
.no-flexbox .Rtable > .Rtable-cell--foot {
  margin-bottom: 1em;
}
/*define maximum width for slider in banner position*/
.neicsslider{
	max-width: 1300px !important;
}
.Rtable-cell--dark .pd-document32 a {
    color: white !important;
    text-decoration: none;
}

.Rtable-cell--dark .phocadownloadfile{
  border:none;
  margin:0px;
  padding:0px;
}
@media screen and (max-width: 768px) {
    /* Target the file link wrapper */
    .phocadownload-file, 
    .pd-filename, 
    .pd-cb-file,
    a.pd-title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important; /* Forces a layout boundary */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Fixes potential Flexbox grid constraints */
    .phocadownload-box,
    .pd-filebox {
        min-width: 0 !important; 
    /* Step 2: Prevent parent flex items from expanding past the screen */
    .phocadownload-file, 
    .pd-filename,
    .pd-cb-file,
    div[class^="pd-"] {
        min-width: 0 !important;
        overflow: hidden !important;
    }
}


