﻿/*
Theme Name:     LRI
Template:       finesse
Description:    Theme for LRI web site, child theme of Finesse
Author:		Brian Lucas
Version:        0.1
*/

@import url("../finesse/style.css");

/***** General colour scheme *****/
/* Note blue was formerly #292973 */

body {
	color: #10192c;
	font-size: 12pt;
}
a:link {color: #292973;}
a:visited {color: #7e7fab; }
a:hover {color: #606090; text-decoration: underline;}

#main ul {
	list-style: square ;
	list-style-position: outside;
	margin-left: 2em;
	margin-bottom: 12pt;
	}
#main li {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	}

p { line-height: 1.5; margin-bottom: 1.5em; }

h1#page-title {
	margin-top: 0;
	padding-left: 0.5em;
	color: #292973;
	font-weight: bold;
	text-shadow: 0 0 12px #fff;
	background-image: url('/wp-content/uploads/2013/04/doha-working-1-940x350.jpg');
}
h1:first-child { margin-top: 0; }

h2 {
	margin-top: 1em;
	color: #7e7fab;
}
h2:first-child { margin-top: 0; }

.social-buttons a { float:left; }

select {

  width: 100%;
  border-radius: 0;

  height: 2.4375rem;
  padding: 0.5rem;
  border: 1px solid #cacaca;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: normal;
  color: #0a0a0a;
  background-color: #fefefe;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
  -webkit-background-size: 9px 6px;
          background-size: 9px 6px;
  background-position: right -1rem center;
  -webkit-background-origin: content-box;
          background-origin: content-box;
  background-repeat: no-repeat;
  padding-right: 1.5rem; }
  @media screen and (min-width: 0\0) {
    select {
      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg=="); } }
  select:disabled {
    background-color: #e6e6e6;
    cursor: not-allowed; }
  select::-ms-expand {
    display: none; }
  select[multiple] {
    height: auto;
background-image: none; }

/***** Header *****/

#header-top {
    margin-bottom: 1em;
}
#header-top div.contact-info {
	font-size: small;
}
#page-header {
	margin-bottom: 0;
}
.header-language-switcher a {
	text-align:right;
	margin-right: 1em;
	font-size: small;
}
.header-countdown {
	display:none;
	/*
	float: right;
	border-left: 1px #ccc solid;
	padding-left: 1em;
	*/
}

/* Cookie-policy widget appears broken; hiding the link to revisit acceptance */
#cookie-law-info-again {
	display: none;
}

/***** Main navigation menu *****/

#nav {
	height: 100%;
	width: 100%;
}
ul#navlist li.current a {
	background-color: #7e7fab !important;
}
ul#navlist li {
    min-width: 4em !important;
	background: -webkit-linear-gradient(top, rgb(255, 255, 255) 0%, rgb(242, 242, 242) 100%);
	border-top: 1px solid #e5e5e5;
	height:49px;
}
ul#navlist li a {
	border-left: none;
	border-top: none;
	border-right: none;
	padding-left: 1em;
	padding-right: 1em;
	padding: 0px 10px;
	font-size: 1.2em;
	line-height: 48px;
}
#navbar {
	margin-bottom: 0;
	height:48px;
}

/***** Slider *****/
/** z-index was added to this style because there was a problem with the menu wrapping onto a second line and disappearing behind the slider **/

div.flex-container {
	position: relative;
	z-index: -1;
}

/***** Footer *****/

#footer {
	background-color: #7e7fab;
	border: none;
	color: white;
	}
#footer-top {
	padding: 0;
}
#footer-bottom {
    overflow: hidden;
	background-color: #7e7fab;
    padding: 2em;
    border-top: 0;
}
#footer-bottom p {
	margin-bottom: 1em;
}
div #footer-bottom .one-half {
	line-height:120%;
	font-size: 90%;
	padding: 0;
}
div #footer-bottom .one-half.column-last {
	line-height:120%;
	font-size: 110%;
	padding: 0;
}
div #footer-bottom a {
	color: white;
}
div #footer-bottom a:hover {
	color: white;
}
#footer-nav ul li {
	list-style: none;
	display: block;
	font-weight: bold;
}


/***** Home page 'post-it note' style feature box *****/

div.featurebox {
	-webkit-box-shadow: 10px 10px 5px 0px rgba(102,102,102,0.75);
	-moz-box-shadow: 10px 10px 5px 0px rgba(102,102,102,0.75);
	box-shadow: 10px 10px 5px 0px rgba(102,102,102,0.75);
	float: right;
	width: 30%;
	text-align: center;
	border: thin solid #666;
	padding: 1em;
	margin: 1em;
	background-color: #b6b0ce;
}
@media only screen and (max-width: 600px) {
  div.featurebox {
	  font-size: 75%;
  }
}
img.qrcode {
	margin-left: auto; 
	margin-right: auto; 
	margin-top: 5px; 
	margin-bottom:5px;
}
@media only screen and (max-width: 600px) {
  img.qrcode {
	  display:none;
  }
}



/* WordPress or the Finesse theme is adding a &middot; to items in the footer menu, except for the last one.  This appends a &middot; there as well, for consistency. */
#footer-nav ul li.menu-item-74 a::after { content:" ·"!important; }


/***** Hack for home page slider *****/
/* The selector bar for the home page slider is not functioning properly.  I have not upgraded the theme for fear of other changes occurring. So I am just blocking display of the slider navigation here. */
.flex-control-nav {
	display: none;
}
.flexslider {
	margin: 0 0 1em !important;
}


/***** Legal advice reports *****/

p.search_result_count {
	font-size: small; 
	font-style: italic;	
}
.legaladvice-searchresults-body {
	text-align:justify;
	text-justify:auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-o-hyphens: auto;
	hyphens: auto;
	margin-top: 4px;
}
.legaladvice-searchresults-date {
	font-size: small;
	font-weight: normal;
	color: #666
}
.legaladvice-searchresults-title {
	font-weight: bold;
	margin-bottom: 4px;
	margin-top: 1em;
}
.legaladvice-disclaimer {
	font-style: italic;
	font-size: small;
	margin-top: 0;
	margin-bottom: 1em;
}
.legaladvice-teamdata-header {
 	background-color: #ddd;
	font-size: small;
	font-variant: small-caps;
}
.legaladvice-teamdata {
	color: #666;
	margin-bottom: 12pt;
}
.legaladvice-banner-public {
	background-color: #E5E5FF;
	padding: 2px;
}
.legaladvice-banner-private {
	background-color: #E5E5FF;
	padding: 2px;
}
.taxonomies-filter-widget-form {
    padding-left: 0 !important;
}
.taxonomies-filter-widget-form .taxlabel {
    padding-left: 0 !important;
}
.sidebar-login-form {
	font-size: 80%;
	background-color: #FAFCFF;
	border: 1px #EBEFFC solid;
	padding: 0.5em;
}
.sidebar-contact-form {
  font-size: 80%;
  background-color: #F8F8F8;
  border: 1px #EBEFFC solid;
  padding: 0.5em;
}
.sidebar-contact-form textarea {
  width: 85%;
}
.sidebar-contact-form input {
  width: 85%;
}
.sidebar-contact-form-header {
	font-weight: bold;
}
#cntctfrm_contact_form input.text, #cntctfrm_contact_form textarea, #cntctfrm_contact_message, #cntctfrm_contact_name, #cntctfrm_contact_email, #cntctfrm_contact_subject {
width: 200px;
}
.legaladvice-searchbutton-div {
	margin-top: 0.5em;
	margin-bottom: 1em;
}
.legaladvice-searchbutton {
	padding: 0.25em;
	font-size: 110%;
}

.legaladvice-searchbutton-button {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 1px #20538D;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    background: #cccccc;
    color: black;
    padding: 8px 12px;
    text-decoration: none;
}
.legaladvice-searchbutton-button:hover {
    text-decoration: none;
	color: black;
	background: #eeeeee;
}
.legaladvice-searchbutton-button:link {
	color: black;
}
.legaladvice-searchbutton-button:visited {
	color: black;
}

.content-form input, .content-form textarea, .content-form select, .wpcf7-form input[type="file"], .wpcf7-form input[type="text"], .wpcf7-form input[type="password"], .wpcf7-form input[type="radio"], .wpcf7-form input[type="checkbox"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form input[type="date"], .wpcf7-form input[type="number"], .wpcf7-form textarea, .wpcf7-form select, .archive-dropdown {
	background-color: white;
}


/***** Briefing papers *****/
.display-posts-listing .listing-item .date {
	font-size: small;
	color: #333;
}

div.briefing-paper-attachment {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 80%;
}
a.briefing-paper-attachment {
	background: -webkit-linear-gradient(top,#ffffff 0%,#ffffff 50%,#E5E5FF 100%);
	box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.2);
	border-radius: 5px;
    text-shadow: 0px 2px 0px #fff;
	border: solid 1px #ccc;
	cursor: pointer;
    line-height: 1.2em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
    padding: 0.5em;
}
a.briefing-paper-attachment-pdf {
	padding-left: 20px; 
	background-position: left center;
	background:url("https://legalresponse.org/wp-content/themes/lri/document-pdf.png") no-repeat;
}

h3.briefing-paper-attachment-header { /* The WP-Attachments plugin uses a plain H3 as the header for its list of attachments; I've added this class in wp-attachments.php */
	font-size: 12pt;
}

/***** Download button used by block editor on file blocks *****/

a.wp-block-file__button {
	color: white;
    border-radius: 2em;
    display: inline-block;
    padding: .5em 1em;
	background-color: #74699d;
}
a.wp-block-file__button:hover {
	color:white;
}
div.wp-block-file > a:first-child {
	padding-left: 20px; 
	background:url("https://legalresponse.org/wp-content/themes/lri/document-pdf.png") no-repeat;
}
div.wp-block-file {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

/***** Related posts - used on legal advice and briefing papers *****/

.related-posts {
	border-top: thick #ccc solid;
	margin-top: 2em;
	padding-top: 0.5em;
	font-size: small;
}
ul#related-posts-via-taxonomies-list {
	margin-left: 0px;
}
/* The following two lines are to hide the ranking score */
.related-posts li a{display: block; width: 100% !important;}
.related-posts li{height: 20px; overflow-y: hidden; margin-left: 0px;}

/***** Blog *****/

.blog-sidebar-entry {
	margin-top: 1em;
	margin-bottom: 1em;
}

/***** Training materials table *****/
.training-materials {
	margin-bottom: 1em;
}
.training-materials th {
	padding: 3px;
	font-size: small;
	font-weight: normal;
	background-color:#BEBFD5;
}
.training-materials td {
	padding: 6px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
.widget li {
	background-image: none;
	margin-left: 0;
	padding-left: 0;
	line-height: 1.5;
}
.widget ul li span {
	margin-top: 0;
	padding-top: 0;
	font-size: small;
	display: none;
}

/***** FacetWP *****/

.facetwp-facet  { font-size: 12pt !important; margin-bottom: 0.5em !important; }
.facetwp-counts { display: inline; }
.facetwp-pager {margin-bottom: 2em;}
.facetwp-search {
    -moz-appearance: none;
    background-color: #fefefe;
    background-repeat: no-repeat;
    border: 1px solid #cacaca;
    border-radius: 0;
    color: #0a0a0a;
    font-family: inherit;
    font-size: 1rem;
    height: 2.4375rem;
    line-height: normal;
    margin: 0 1.5em 1rem 0;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    width: 95%;
}
.facetwp-sort-radio input[type="radio"],label{
	vertical-align: middle;	
}

/***** post-list shortcode (from "Post Content Shortcodes" *****/

ul.post-list  > li {
	border-bottom: none !important;
}
div.pf-content .pf-content {
	border-left: 1px #ccc solid;
	padding-left: none;
}
/* Following recommended by http://plugins.ten-321.com/post-content-shortcodes/post-content-shortcodes-demo/#comment-47235 */
body .post-list.with-excerpt {
	column-count: 1;
	column-gap: 0;
	column-rule: none;
	-webkit-column-count: 1;
	-webkit-column-gap: 0;
	-webkit-column-rule: none;
	-moz-column-count: 1;
	-moz-column-gap: 0;
	-moz-column-rule: none;
	-o-column-count: 1;
	-o-column-gap: 0;
	-o-column-rule: none;
}
/* Other styles to make post-content-shortcodes output conform to the rest of the site */
ul.post-list.with-excerpt.with-image {
	margin-left: 0 !important;
	border-left: none;
}
ul.post-list.with-excerpt.with-image .listed-post {
	padding-left: 1em;
	border-left: 1px #ccc solid;
}
#main .post-list .listed-post {
	margin-top: 0;
}
#main .pcs-excerpt-wrapper .pcs-excerpt .pf-content {
	border-left: none;
	margin-top: 15px;
}
#main .pcs-post-title {
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	font-size: 1.5em; /* 18px */
	line-height: 1.333em; /* 24px/18px */
	margin-top: 1em;
	margin-bottom: 15px;
	color: #7e7fab;
}


/***** Timezone table formatting - used on webinars *****/

table.timezone-table {
	border: thin solid gray;
	background-color: #e2dcfb;
	margin-top: 1em;
	margin-bottom: 1em;
}
table.timezone-table th {
	background-color: #c0b9d8;
	text-align: left;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 1em;
	padding-right: 1em;
}
table.timezone-table td {
	font-size: small;
	text-align: left;
	vertical-align: top;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 1em;
	padding-right: 1em;
}
table.timezone-table p {
	padding: 0;
	margin: 0;
}
table.timezone-table td:nth-child(2n) {
	border-right: thin solid gray;
}


/***** Miscellaneous elements *****/

hr.wp-block-separator {
	border: 0;
	height: 2px;
	background-color: #2a266b;
}
hr.question {
	border: 0;
	height: 1px;
	background-color: #e5e5ff;
}

.testimonial { font-size: 120%; }

blockquote.testimonial { border-left: 5px solid #ccc;margin-left:2em; padding-left:2em; line-height: 1.5; margin-top:1em; margin-bottom:2.5em; }

blockquote.testimonial cite { display:block; color:#444; text-align:right; margin-top: 1.5em;}

.confidential-query-warning {
	background-color: #333;
	color: white;
	padding: 4px;
	font-weight: bold;
	text-transform: uppercase;
}

.disclaimer {
	font-size: small;
}

.data-entry-error {
	color: red;
	font-weight: bold;
}

/* Responsive videos */

.video-container {
	position:relative;
	padding-bottom:56.25%;
	padding-top:30px;
	height:0;
	overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

img {
    height: auto;
    max-width: 100%;
}
