/* pivot containers to display in columns rather than rows */

.linkgrid_column:first-child,
.linkgrid_column.first_child {
    padding-left: 0;
}

.linkgrid_column {
    display: inline-block;
    padding-left: 15px;
    vertical-align: top;
    width: 180px;
}

.linkgrid_column a {
    display: block;
    margin: 10px 0 5px;
    text-decoration: none;
    vertical-align: top;
    width: 180px;
}

.linkgrid_column img {
    margin-right: 5px;
    vertical-align: top;
    width: 81px;
    height: 81px;
}

.block_link {
    display: inline-block;
    vertical-align: top;
    width: 88px;
}

/* override left margin on first panel */

.content_centre_single.wide_right:first-child{
    margin-left:0 !important;
}

/* product carousel aligns left by default - we want centered text */

.product_carousel ul li .text {
    text-align: center !important;
}

/* Fix top padding for content */

.content_left .content_block:first-child {
    margin-top: 0;
}

#site_wide_messaging {
    margin-bottom: 8px;
}

/* Database viewer */

form.database_viewer .pager button {
    height: 24px;
    border-radius: 4px 4px 4px 4px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: solid 1px #0079A7;
    min-width: 24px;
    color: #0079A7;
    cursor: pointer;

}

form.database_viewer .pager button[disabled] {
    background-color: #0079A7;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

form.database_viewer div.pager {
    margin: 1em 0 20px;
    text-align: center;
}

form.database_viewer .database_item:first-of-type {
    border-top: 1px solid #CCCCCC;
}

form.database_viewer .database_item {
    border-bottom: 1px solid #CCCCCC;
}

form.database_viewer li {
    background-image: none;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding-left: 0;
    width: 50%;
    float: left;
}

form.database_viewer .faq_question {
    padding-left: 16px;
    margin: 0.5em;
    background: url("/media/system/images/search_next_arrow.gif") left center no-repeat transparent;
    cursor: pointer;
}

form.database_viewer .faq_answer {
    display: none;
}

form.database_viewer .faq_question.selected {
    background-image: url("/media/system/images/subject_area_open.gif");
}

form.database_viewer .faq_question.selected + .faq_answer {
    display: block;
}

form.database_viewer span.search {
    float: right;
    font-size: small;
    white-space: nowrap;
}

form.database_viewer span.search input[type="text"] {
    width: 128px;
}


/* Fix mid-column 3 wide to give margin to left nav */
.wrapper_three_column {
    margin-left: 15px;
    width: 570px;
}

.colspan3 .content_centre_single.wide_right {
    width: inherit !important;
}


/* Fix new design of header to fit */
#primary_nav #tier_layout_container {
    width: 700px;
}

#primary_nav .supplementary_link {
    width: 250px;
}

#simple_search #simple_search_text {
  width: 300px;
}

#simple_search {
  line-height: 40px;
  margin-bottom: 5px;
  min-height: 40px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: right;
  width: 944px;
}

#header #right_column #change_language,
#header #right_column {
    width: auto;
}

#change_language {
    padding-right: 14px !important;
}

/* Explore more background */
.content_block .content_container {
    background-color: #E9E9E9;
}

/* ho hum */
#header #right_column #header_nav {
    width: auto;
}

/* New header styles */
h2.page_title_heading {
    font-size: 2.4em;
    line-height: 0.8em;
    margin-bottom: 24px;
    font-family: Georgia,"Times New Roman",Serif;
    color: #002147;
    font-weight: normal;
    padding: 0;
    margin: 0 0 24px;
}

/* Fix for float bug in GAB expandables making next concertina too tall */
.expandable_block {
    clear: both;
}

/* Fix some dickie layout */
.wrapper_four_column {
    padding-left: 0;
    width: 765px;
}

.content_centre_single,
.content_centre_double,
.content_centre_triple,
.content_centre_quad,
.wrapper_three_column {
    margin-left: 0;
}

.content_left {
    padding-right: 15px;
}

/* New dispatch dates */
#id_dispatch .latest .left {
    display: inline-block;
    width: 65%;
}

#id_dispatch .latest .right {
    display: inline-block;
    width: 34%;
}

#id_dispatch .latest div {
    line-height: 1.8em;
}

#id_dispatch .status {
    color: #003366;
    font-style: italic;
}

#id_dispatch table.previous th:nth-child(1),
#id_dispatch table.previous td:nth-child(1) {
    text-align: left;
}

#id_dispatch table.previous th:nth-child(2),
#id_dispatch table.previous td:nth-child(2) {
    text-align: right;
}

#id_dispatch table {
    min-width: 50%;
}

#id_dispatch .latest.delayed {
    background-color: #ddd;
}

/* Forms */
.colspan form label span.required,
#validationerror,
#validationerror ul li a {
    color: #990000;
}

.colspan form label {
    display: inline;
}

.colspan form .form_item {
    margin: 0.5em;
}

.colspan form > fieldset {
    margin: 2em 0.5em;
    padding: 1em 0.5em 0.5em 0.5em;
}

.colspan form > fieldset input[type="submit"] {
    margin-top: 1em;
}

fieldset > fieldset {
    border: none;
}

.colspan form .button_link {
    margin: 0.5em 0 0.5em 0.5em;
}

#id_single_issues_dropdown {
    max-width: 50%;
}


/* Fix RSS widget icon alignment */
.rss_link > img {
    margin-top: -8px;
}

/* Promos */
.promotion_slot a {
    display: block;
    margin-bottom: 10px;
}

/* Product carousel discrete border for light cover images */

.image_text_carousel ul li .image img {
    box-shadow: 0 0 6px #999999;
}


/* Various font fixes */
.home_resources a.resource_link_container span {
    font-size: 1.2em !important;
}

.hero_panel .slide_block.heading_large h2 {
    text-shadow: 0 0 2px #FFFFFF;
    filter: progid:DXImageTransform.Microsoft.Glow(Color=#ffffff,Strength=1); /* IE<10 */
}

.hero_panel .slide_container .heading_white h2,
.hero_panel .slide_container .heading_white h2 a {
    text-shadow: 0 0 2px #000000 !important;
    filter: progid:DXImageTransform.Microsoft.Glow(Color=#000000,Strength=1); /* IE<10 */
}

fieldset legend {
    background-color: #fff;
    border-radius: 6px;
}

h2 > a {
    display: inline-block !important;
    float: none !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}

#header_nav {
    float: right !important;
}

.colspan {
    margin-top: 8px;
}

form .input .column > * {
    display: inline;
}
