/* Stylesheet for the 'MoJ Theme' Plone theme */

/*
 * This file contains styles for MoJ-specific element IDs.
 * Styles for Plone built-ins are overridden in stylesheets
 * in the skins/ folder.
 */

 /* Moving us into FIXED WIDTH TEMPLATE territory */

#visual-portal-wrapper {
	width: 996px; /* 1024x768 screen resolution width minus scrollbar width and borders */
	margin: 0 auto; /* screen centering for larger resolutions */
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
}

/* header area styles */

#portal-header {
    width: 100%;
    background: #7fc1e2 url("../images/header-main-bg.jpg") 0 0 no-repeat; /* #004990 */
    height: 64px;
    margin: 0;
    padding: 1.2em 0;
}

#portal-header h1#portal-logo {
	float: left;
	width: 300px;
    margin: 0;
    padding: 0;
    border: none;
}

#portal-header h1#portal-logo a {
    display: block;
    width: 170px; /* 187 */
    height: 60px; /* 64 */
    background: url("../images/logo-main.gif") 0 0 no-repeat; /* #004990 */
    margin: 2px 0 0 20px; /* 0 0 0 4px */
    padding: 0;
}

#portal-top { /* line at the bottom of the breadcrumb nav. This is overridden for the homepage with a style below */
	border-bottom: 1px solid #ccc;
}

/* header links */

#portal-header-links {
	float: right;
	width: 350px;
	text-align: right;
	margin: 0 20px 6px 0;
	padding: 0;
}

#portal-header-links ul {
        list-style-image: none;
        list-style-type: none;
        list-style-position: outside;
        margin: 0;
        padding: 0;
}

#portal-header-links li {
        display: inline;
        margin: 0;
        padding: 0;
        color: #004490;
}

#portal-header-links li a {
        color: #004490;
		text-decoration: none;
}

/* search box styles */

#portal-searchbox {
	float: right;
	width: 350px;
	height: 50px; /* do not remove this or Live Search will cause IE to force scrollbars. Grrrrr @ IE. Again. */
	text-align: right;
	margin: 0 20px 0 0;
	padding: 0;
	text-transform: none !important;
}

#portal-searchbox .LSBox {
	float: none;
	margin: 0;
	padding: 0;
}

#portal-searchbox input {
	margin: 0;
	padding: 1px 2px;
	font-size: 1.1em;
	font-family: Arial, Verdana, Helvetica, sans-serif;
}

#portal-searchbox input[type=text] {
	background: #fff;
	width: 120px;
	padding: 2px;
}

#portal-searchbox input.searchButton, #portal-searchbox input[type=submit] { /* style overriden for subsites in "subsites.css.dtml" */
	background: #f09100 url("../images/searchbutton-bg.jpg") 0 0 repeat-x !important;/* d6e0eb */
}

/* implement after you have changed the template? Prob not, as it would affect the subsites too...
.searchButton {
	background: url("../images/button-go.gif") 0 0 no-repeat !important;
}
 */

.searchSection {
	color: #fff;
	margin: 4px 0 0 !important;
	padding: 0;
	font-size: 1.1em;
	float: right;
	width: 140px;
}

.site-Plone.section-front-page .searchSection label, .searchSection label, .searchSection label:hover { /* having '.searchSection' twice is necessary, please DO NOT REMOVE */
	color: #004490;
	margin: 0 0 0 8px;
	padding: 0;
	font-size: 1.1em;
}

input.inputLabelActive {
	color: #004490 !important;
}

#searchbox_currentfolder_only {
	float: left;
}

.LSResult {
	z-index: 99;
}

.livesearchContainer {
	display: block;
	z-index: 99;
        width: 36em;
}


#livesearchLegend {
	float: none;
	background-color: #fff;
	margin-left: 0;
	font-size: 1em;
}

 /*
.livesearchContainer, .LSTable, .LSTable li, .LSTable li a, .LSTable li span, .LSDescr {
	background-color: #fff !important;
}
*/

/* global navigation */

/* Styles from old dropdown-menu.css */

#portal-globalnav {
    position:relative;
    z-index:3;
}
* html #portal-globalnav {
    height:1%;
}
#portal-globalnav li {
    float:left;
    margin:0;
    padding:0;
}
#portal-globalnav li a {
    display:block;
    position:relative;
}
#post-sections-clear {
    height:1px;
    margin-bottom:-3px;
}
*:first-child+html #post-sections-clear {margin-bottom:-2px;}
* html #post-sections-clear {
    margin-bottom:-2px;
}
/* (end of dropdown-menu.css styles) */

/*
#globalnav-wrapper { OLD! Arc 20101111
    margin: 8px 0 0;
    padding: 8px 20px;
    border-top: 1px dotted #646464;
    border-bottom: 2px solid #ccc;
}
*/
#globalnav-wrapper {
    margin: 0;
    padding: 8px 0 8px 20px; /* 8px 20px */
    background-color: #4d7cad;
	border-top: 1px solid #004990;
	border-bottom: 1px solid #004990;
}

ul#portal-globalnav {
	display: block;
	height: 2.3em;
	/*border-left: 1px solid #8cacbb !important;*/
	margin: 0;
	padding: 0;
}

.submenu { /* HIDES THE DROP DOWN ON THE MAIN MENU */
	display: none;
}

#portal-globalnav li {
	/*border-right: 1px solid #8cacbb;*/
	margin: 0;
	padding: 0;
}

#portal-globalnav li ul li {
	border-right: 0;
}

#portal-globalnav li a {
	margin: 0 !important;
	padding: 4px 1.1em !important;
	color: #fff !important;
	font-size: 1.2em !important;
}

#portal-globalnav li a:hover {
	background-color: #1d4c7d !important; /* #dee7ec */
}

#portal-globalnav li.selected a {
	background-color: #4d7cad; /* dee7ec */
	color: #fff; /* 436976 */
	border: 0;
	font-weight: bold;
}

#portaltab-index_html { /* no homepage link! */
	display: none !important;
}

/* breadcrumb, not the homepage */

.site-Plone.section-front-page #portal-breadcrumbs { /* keep the container for spacing purposes */
	width: 1%;
	height: 1.4em;
	line-height: 1.4em;
	margin: 0;
	padding: 0;
}

.site-Plone.section-front-page #portal-breadcrumbs span,
.site-Plone.section-front-page #portal-breadcrumbs a { /* hide the contents */
	display: none;
	width: 1%;
}

/* home intro styles */

#home-intro h3 {
	margin: 1em 0 0.5em;
}

#popular-links .portlet {
	height: 14.6em;
	position: relative;
	overflow: hidden;
	border-right: 1px solid #f3f5f7 !important;
}

#popular-links dt.portletHeader {
	height: 3.2em !important;
	font-size: 1em;
	border: 0 !important;
}

#popular-links dt.portletHeader a {
	color: #fff !important;
}

#popular-links dd.portletItem {
	padding: 1px 0 1px 10px;
	background: url("../images/icon-sidebar-list-bullet.gif") 10px 7px no-repeat !important;
	font-size: 1em;
	border: 0 !important;
}

#popular-links dd.portletItem a {
	display: block; /* helps to push the items out when they wrap to two lines */
	margin: 0 0 0 10px !important;
	padding: 0 !important;
}

#popular-links .portletFooter {
	position: absolute;
	top: 14em;
	width: 94%;
	font-size: 0.9em;
	border: 0 !important;
}

#popular-links .portletFooter a {
	padding-right: 1em;
}

#popular-links li {
	margin-bottom: 0;
}

.site-Plone.section-front-page #portal-top {
	border-bottom: none;
}

.documentServicesAndAdvice, .documentServicesAndAdvice h3 {
	margin-bottom: 0;
	padding-bottom: 0;
	margin-left: 0;
	padding-left: 14px !important;
}


/* portlets */

.portletfooter-more {
	background: url("../images/icon-morelist-arrow.gif") right 2px no-repeat;
	padding-right: 14px; 
}


/* main content styles */

 /* left nav background
 #portal-columns {
    background: url("../images/menuback.gif") 0 0 repeat-y;
}
 */

.hide {
  left: -9999px;
  position: absolute;
  top: -9999px;
  width: 1px;  
}

.portletPublications .portletHeader, .portletPublications .portletItem {
	margin-bottom: 0.8em !important;
}

.portletFooter.publicationPortlet {
  background: transparent;
  border-style: none;
  border-width: 0;
	margin: 0.8em 0 !important;
	padding: 0 8px !important;
  text-align: left;
  display: inline !important;
}

.publicationPortlet img {
  display: inline !important;
}
/* footer styles */

#footer-links {
    padding: 12px 12px 12px 20px;
}

#footer-links ul {
    float: left;
    list-style: none;
	margin: 0; /* 1em 0 */
    padding: 0 40px 0 0 !important;
}

#footer-links ul li {
    margin: 0;
	padding: 0.5em 0;
}

.logo-nzgnz {
    float: right;
    margin-right: 20px;
    margin-top: 10px;
    display: inline-block;
    position: relative; /*right float and margin */
}

#footer-copyright {
    background: #666;
    margin: 0;
    padding: 4px 4px 4px 20px;
}

#footer-copyright p, #footer-copyright a, #footer-copyright a:visited {
    margin: 0;
    padding: 0;
    font-size: 1em;
    color: #ccc;
}

#footer-copyright a, #footer-copyright a:visited {
    color: #ccc !important; /* This must be !important, but the main paragraph style must not. It's an inheritance thing... */
}


/* Pop-up edit/configure portlet link */

.portletpopupwrapper {
    position: relative;
}

.portletpopupwrapper div.popup {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 40;
    border: 1px solid #eee;
    padding: 0 2px;
    font-size: 85%;
    background-color: #fff;
}

.portletpopupwrapper:hover div.popup {
    display: block;
}


/* miscellaneous styles */

.hiddenStructure {
	float: left;
	margin: 0 0 0 -24000px !important;
	padding: 0;
	line-height: 0;
	font-size: 0;
	border: none;
	display: inline;
	width: 0;
	height: 0;
}

.documentActions {  /* hides the "share this" and "print this" links */
	display: none;
}

#content li, .indenthome {  /* indenthome = random style on the Environment Court homepage. May be elsewhere as well, I don't know */
	line-height: 1.6em;
}

blockquote {
	border-left: 0 !important;
}

.img-no-border {
	border: 0 !important;
	display: block !important;
}


/* "What the Hell are these?" styles (from "ploneCustom.css") */

#portal-breadcrumbs-search-wrapper {
	overflow: visible !important;
	height: 35px !important;
}

.kssActive img {
	display: inline;
}

.kssActive label {
	/* margin-left: 0; */
	font-size: 12px;
}

table {
	border-collapse: collapse;
	width: 100%;
}

table.noGrid td {
	border: none !important;
}

table td {
	border: 1px solid #ddd;
	padding: 0.15em;
}

/* old "ploneCustom.css" styles */

#content table {
	border-collapse: collapse !important;
	width: 100% !important;
}

#content table td,
#content table tr,
#content table th
{
	border: 1px solid #ddd !important;
	padding: 0.3em;
}

/*+++ homepage - ask justice blocks +++*/
#askJusticeSearch {
  float: left;
  margin: 5px 0 20px;
  background: #EEF6FB url('../images/justice-ask-icon.png') no-repeat scroll 9px 6px;
  border-radius: 0 0 4px 4px;
  width: 395px;
  padding-left: 70px;
  min-height: 139px;
  border-top: 2px solid #B55F12;
}

#portal-column-content #askJusticeSearch  h3 {
  color: #C54C06 !important; /* there is an !important elsewhere overriding this*/
  font-weight: normal;
  font-size: 27px;
  font-size: 1.7rem;
  margin: 13px 0 5px 0;
}

#askJusticeSearch h4 {
  margin-bottom: 0;
}

#askJusticeSearch input.searchField {
  width: 370px;
  border: 1px solid #adb1b4;
  padding: 6px 7px;
  color: #8C8C8C !important; /* there is an !important elsewhere overriding this*/
}

#askJusticeSearch .LSBox {
  width:385px;
  margin-bottom: 10px;
  margin-right: 10px;
}

#askJusticeSearch .border-corners img,
#askJusticeCourtLocator .border-corners img {
  display: none;
}

/* search results */
#askJusticeSearch .LSResult {
  display: none;
  position: static;
  margin: 0;
}

/*Hide the results legend, cant use none as ie8 doesnt like it*/
#askJusticeSearch .LSResult legend{
  display: block; 
  height: 0;
  margin: 0;
  padding: 0;
  width: 0;
  visibility: hidden;
  position: absolute;
  left: -9999;
  top:-9999;
}

#askJusticeSearch .LSResult fieldset {
  border: 1px solid #F0954C;
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 0;
  position: static;
  width: 383px;
}

#Content ul li.LSRow {
  list-style-image:none;
}

#askJusticeSearch .LSRow,
#askJusticeSearch #LSNothingFound {
  width: inherit;
}

#askJusticeSearch .LSRow {
  margin-bottom: 5px;
}

#askJusticeSearch .LSResult .LSRow a {
  white-space: normal;
}

/* Family Justice banner */

.family-justice-banner {
	float:left;
	background: #fff url('../images/banner-ad-family-justice-tts.jpg') no-repeat 0 0;
	width:465px;
	margin-top:5px;
	margin-bottom:20px;
	border-top: 2px solid #b55f12;
}

.family-justice-banner a {
	display: block;
	width: 465px;
	height: 140px;
}

/* Court Locator */
#askJusticeCourtLocator {
  float: left;
  margin: 5px 0 20px 15px;
  background: #EEF6FB url('../images/court-locator.png') no-repeat scroll 10px 10px;
  border-radius: 0 0 4px 4px;
  width: 225px;
  border-top: 2px solid #B55F12;
}

#portal-column-content #askJusticeCourtLocator h3 {
  color: #0087C0 !important; /* there is an !important else where overriding this*/
  font-weight: normal;
  font-size: 17px;
  font-size: 1rem;
  margin: 12px 0 7px 40px;
}

#askJusticeFindACourt {
  display: block;
  height: 46px;
  text-align: center;
  background: transparent url('../images/court-locator-background.jpg') no-repeat scroll 0 0;
  padding-top: 54px;
}

#askJusticeFindACourt a {
  margin: 0 auto;
  display: block;
  height: 32px; 
  width: 119px;
  background: transparent url('../images/justice-main-button-sprite.png') no-repeat scroll 0 0;
}

#askJusticeFindACourt a:hover,
#askJusticeFindACourt a:focus,
#askJusticeFindACourt a:active {
  background: transparent url('../images/justice-main-button-sprite.png') no-repeat scroll 0 -59px;
}

/*search results page */
#content #askjustice-results {
  border-top: 2px solid #C54C0D;
  background: none repeat scroll 0 0 #F7F7F7;
  float: right;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 10px 15px;
  width: 200px;
}

#askjustice-results .title-row h3 {
  color: #333 !important;
  margin-top: 0;
  font-weight: bold;
  font-family: "Times New Roman",Georgia,Serif;
}

#askjustice-results .title-row {
  list-style-type: none;
  list-style-image: none;
}

#askjustice-results .LSRow {
  border: 0;
  margin-bottom: 10px;
  background: transparent url('../images/justice-ask-arrow.gif') no-repeat scroll 0 2px;
  padding-left: 19px;
  line-height: 1.3;
}

#askjustice-results .LSRow a {
  white-space: normal;
  border: 0;
  line-height: 1;
  font-weight: normal;
}

#askjustice-results .LSRow a:hover,
#askjustice-results .LSRow a:active,
#askjustice-results .LSRow a:focus{
  text-decoration: underline;
}

/*
 * Image replacement
 */
.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/* Missing 'Show all items' livesearch style */
.LSRow  a.showalllink {
    font-weight: normal;
}