/* Other content and layout */

p+h2,
ul+h2,
table+h2 {
margin-top: 1.875rem !important;
}
footer .jadu { float:right; }
p.action-link {
margin-bottom: 1.1rem;
margin-top: 0.5rem;
list-style: disc outside none;
display: list-item;
margin-left: 4rem;
}

.card--event {
background-color: #007363;
}

.card--event .card__title {
color: #fff;
background-color: #007363;
transition: all .1s linear;
}

.card__title {
margin: 0;
}

.accordion p {
margin-bottom: 0;
}

.accordion p+p {
margin: 1.875rem 0 0;
}

h2 {
margin-top: 0 !important;
}

iframe {
width: 100%;
height: 315px;
border: none;
}

.video-frame {
margin-bottom: 0.5em;
}

.header__account__responsive:before {
content: '';
position: absolute;
top: 50%;
right: 100px;
/* left: 20px;
-webkit-transform: translateY(-50%); */
transform: translateY(-50%);
width: 22px;
height: 22px;
background: transparent url("/media/derbycitycouncil/styleassets/images/site/my-account-icon.svg") center center/100% 100% no-repeat;
}
ul.image-list { display:inline-block; }
ul.image-list li,
ol.image-list li,
dl.image-list dd {
display: inline;
float: left;
margin-right: 1em;
}

ul:not(.list-unstyled) li ul:not(.list-unstyled) li:before {
content: "\2010";
color: #005D50;
display: inline-block;
width: 1em;
margin-left: -1em;
}

table td {
word-wrap: break-word;
}

table td ul li {
font-size: .9375rem;
}

table td p {
font-size: .9375rem;
margin-bottom: 0;
}

table th p {
margin-bottom: 0;
color: #fff;
font-size: .9375rem;
}

caption {
caption-side: top;
font-size: 1.125rem;
}

.contact-details__single {
word-wrap: break-word;
}

blockquote {
border-left: 2px solid #007363;
margin: 1.5em 10px;
padding-left: 25px;
}

blockquote:before {
background: none;
}

blockquote p:nth-child(1) {
quotes: "\201C""\201D";
}

blockquote p:nth-child(1):before {
color: #007363;
content: url(/media/derbycitycouncil/styleassets/images/site/quote-icon.svg);
font-size: 4em;
line-height: 0.1em;
margin-right: 0.25em;
}

h1,
h2 {
margin-bottom: 1rem !important;
margin-top: 1.875rem;
}

.page-landing .col-12 h1 {
max-width: 100% !important;
}

ul+h2 {
margin: 1.875rem 0 0;
}

#downloads-page h2 {
margin-top: 1rem !important;
}

#useful li {
list-style: none;
}

#useful li+li {
margin-top: 0.625rem;
}

#useful li a {
color: #007363;
}

.page-document #content .pagination img.right {
float: right;
margin:0 0 12px 12px;
}

.page-document #content .pagination img.left {
float: left;
}

.col-12 h1 {
max-width: 67% !important;
}

ol:not(.list-unstyled) a {
font-weight: normal !important;
color: #007363;
text-decoration: underline;
}

.caption-wrapper+p {
margin: 1.875rem 0 0;
}

.news-button {
width: 50%;
float: left;
}

.news-date {
width: 8%;
float: right;
margin-top: 2.25rem;
}

#archive-news-listing {
margin-bottom: 40px;
}

.archive-slider {
width: 100%;
padding: 2.5rem;
padding-top: 0;
padding-bottom: 0;
border-left: 5px solid #007363;
height: 100px;
}

.archive-slider-title {
color: #1E252A;
}

.archive-slider-paragraph {
color: #54595B;
margin-bottom: 0px;
margin: 0;
font-size: 1.125rem;
line-height: 1.625rem;
transition: all .1s linear;
position: absolute;
bottom: 0;
}

#news-listing {
margin-bottom: 20px;
}

#news-listing .card {
border-bottom: 0;
box-shadow: none;
}

#news-listing p {
padding: 0rem 1.25rem 1.25rem;
background-color: #e4e4e4;
margin-bottom: 0px;
}

#news-listing .card__title {
background-color: #e4e4e4;
margin-bottom: 0;
height: 125px;
padding: 1.25rem 1.25rem 1.25rem;
margin-top: 0;
}

#pagination-list {
margin-top: 45px;
padding-top: 0 !important;
display: none;
}

#next-prev-nav {
display: none;
}

.news-pagination {
margin-top: 20px;
margin-left: 15px;
position: absolute;
bottom: 0;
}

.news-pagination a {
padding: 20px;
background-color: #fff;
color: #000;
border: 1px solid #1E252A;
}

.news-pagination .currentpage {
padding: 20px;
background-color: #000;
color: #fff;
}

.caption-wrapper {
background-image: url("/media/derbycitycouncil/styleassets/images/site/news-camera-icon.svg");
background-color: #e4e4e4;
background-repeat: no-repeat;
background-position: left;
background-position-x: 10px;
background-position-y: 14px;
}

.callout--feature {
background-color: #fff;
}

.callout__heading {}

.list {
margin-bottom: 0;
}

.download {
border-top: 1px solid #ddd;
display: block;
}

.download__heading {
display: inline-block;
font-size: 1rem;
padding-right: .75rem;
padding-top: .75rem;
padding-bottom: .75rem;
vertical-align: top;
width: calc(100% - 15.25rem);
color: #007363;
}

.download__meta-list {
display: inline-block;
text-align: right;
vertical-align: top;
width: 15rem;
}

.download__meta--type {
float: left;
text-align: center;
width: 2.5rem;
padding-right: .75rem;
padding-top: .75rem;
padding-left: .75rem;
}

.download__meta--size {
padding-right: .75rem;
padding-top: .75rem;
padding-left: .75rem;
}

.download__meta {
color: #6e6e6e;
display: inline-block;
vertical-align: top;
text-transform: uppercase;
}

.download__meta--link {
float: none;
font-size: 1rem;
margin-left: .75rem;
}

.download__cta {
border-bottom: 0;
border-top: 1px solid #ebb20d;
margin-top: -1px;
background-color: #ffc20e;
color: #000;
display: block;
position: relative;
width: 40px;
}

.download__cta-text {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

.download__cta-icon {
display: inline-block;
height: 3rem;
vertical-align: middle;
width: 2.625rem;
padding-top: 0.23rem;
/*padding-left: 0.25rem;*/
padding-right: 0.5rem;
}

.caption {
color: #1E252A;
padding: 15px;
padding-left: 10px;
margin-left: 50px;
padding-bottom: 15px;
}

.slick-slide {
padding-right: 2px;
}

.send-landing-button a {
text-decoration: none;
}

.send-landing-button a:visited {
color: #fff;
text-decoration: none;
}

#download-accordion {
margin-top: 0.9375rem;
}

#download-links {
padding-left: 0;
}

.download-link {
list-style-type: none;
}

.download-link a {
margin: 0;
border: 0;
display: block;
text-transform: none;
font-size: 1.25rem;
line-height: 1.375rem;
color: #1E252A;
background-color: #efefef;
position: relative;
padding: 0.9375rem 2.5rem 0.9375rem 1.25rem;
background-color: #1E252A;
color: #fff !important;
letter-spacing: .5px;
font-weight: 600;
}

.download-link:before {
content: none !important;
}

#contact-details-phone p:nth-child(3) {
padding-top: 3px;
}

button.btn--accordion {
margin: 0;
border: 0;
display: block;
text-transform: none;
font-size: 1.25rem;
line-height: 1.375rem;
background-color: #1E252A;
position: relative;
padding: 0.9375rem 2.5rem 0.9375rem 1.25rem;
width: 100%;
text-align: left;
}

button.btn--accordion:after {
content: '';
width: 5px;
height: 10px;
position: absolute;
top: 20px;
right: 1.25rem;
border-top: 12px solid #fff;
border-bottom: 0 solid #fff;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
transition: all .2s;
}

button.btn-page-accordion:hover:after {
border-top-color: #fff;
border-bottom-color: #fff;
}

button.btn-page-accordion {
background-color: #efefef;
color: #1E252A;
}

button.btn-page-accordion:after {
border-top: 12px solid #1E252A;
border-bottom: 0 solid #1E252A;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
}

button.btn-page-accordion:hover, button.btn-page-accordion:focus, button.btn-page-accordion[aria-expanded="true"], button.btn-page-accordion:active {
background-color: #007363;
color: #fff;
}

button.btn-page-accordion:hover:after, button.btn-page-accordion:focus:after, button.btn-page-accordion[aria-expanded="true"]:after, .no-js button.btn-page-accordion:after {
border-top-color: #fff;
border-bottom-color: #fff;
}

.panel {
background-color: #efefef;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}

.rhn-panel {
background-color: #efefef;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
padding:0;
}

button.nav-trigger:focus {
border: 2px solid #007363;
}

#download-links li a:after {
content: '';
width: 5px;
height: 10px;
position: absolute;
top: 20px;
right: 1.25rem;
transition: all .2s;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 12px solid #fff;
}

#download-links li a:hover {
color: #fff;
background-color: #005D50;
border-color: #1E252A;
text-decoration: none;
outline: 0;
}

.print-btn {
padding-left: 28px;
display: inline-block;
margin: 2rem 0 0 0;
font-size: .9375rem;
background-image: url('/media/derbycitycouncil/styleassets/images/site/icons/print-page.svg');
background-repeat: no-repeat;
background-position: top left;
}

button.btn--accordion[aria-expanded="true"]:after {
border-top-width: 0;
border-bottom-width: 12px;
}

#hp-search {
margin-bottom: 170px;
}
button.full-search__submit { font-size:0; }
button.full-search__submit svg {
fill:#fff;
padding:23px;
background-color:#007363;
vertical-align:top;
}


#mce-success-response,
#mce-error-response {
color: #fff;
padding-top: 2px;
}

#mce-error-response a{
color:#fff;
text-decoration:underline;
}

#mce-error-response a:hover{
color:#ccc;
}

#mce-error-response a:focus{
outline-color:#fff;
}

body.action-page div.pagination:first-child {
margin-bottom: 1rem!important;
}

body.page-home .object-fit-container {
position: relative;
}

body.page-home .object-fit-container p {
top: 0px;
right: 0px;
height: 40px;
font-size: 1.0625rem;
line-height: 1.375rem;
font-weight: bold;
padding-top: 9px;
}

div.news-share-icons a { text-indent:-9999px; }

/* CUSTOM EXTERNAL CODE */

div.custom-cqc { border-bottom: 1px dotted #999; margin-top:8px; }
div.custom-cqc .cqc-container .cqc-widget-header a { background:none; }

div.custom-cqc .cqc-widget-normal {
font-weight:normal;
font-size:1.1rem;
}

div.custom-cqc .cqc-widget-new-style-margin-2 { display:inline; }
div.custom-cqc .cqc-widget-new-style-margin-2::after {
content: ":  "; 
}

div.custom-cqc p,
div.custom-cqc .cqc-container .cqc-widget-header a img,
div.custom-cqc img { display:none!important; }
div.custom-cqc .cqc-widget-inner { font-weight:bold; font-size:1.2rem; }
div.custom-cqc a.widget-button-new-style {

color: #fff !important;
background-color: #007363!important;
text-decoration: none;
font-size: 1em;
font-weight: normal;
padding: 10px 15px;
}

div.custom-cqc .widget-button-wrapper {
margin-top:10px;
}

/* CUSTOM MEDIA QUERIES */

@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
/* Fix print icon positioning */

button.print-btn { background-position: -120px; }
}

@media (max-width: 1199.98px) {
	.object-fit-container p {
	top: 141px;
	}
    
    #hp-news-slider .card__title {
		padding: 1.25rem 1.875rem 1.25rem 1.25rem;
	}
}

@media (min-width: 992px) {
	#news-card .card-slider__slide__image {
	width: 100%;
	}
	#download-links li a:after {
	top: 20px !important;
	}
}

@media (max-width: 992px) {
	.object-fit-container p {
	top: 97px;
	}
	.card-slider__slide__text {
	padding: 1rem 1rem;
	}
	.card-slider__title {
	margin-top: 0;
	}
	.card-slider__slide_reverse .card-slider__slide__image {
	float: none;
	}
	.print-btn {
	display: none;
	}
}

@media (max-width: 845px) {
	.hp-callout-small {
	margin-bottom: 2.5rem;
	}
}

@media (min-width: 768px) {
	#news-card .card-slider__slide__image {
	width: 100%;
	float: none;
	}
	#news-card .card-slider__slide__text {
	left: 20%;
	width: 60%;
	}
	.card-slider__slide__text {
	margin-left: 7px;
	}
	#download-links li a:after {
	top: 30px;
	}
	.hp-callout-small {
	margin-bottom: 1rem;
	}
}

@media (max-width: 768px) {
	.col-12 h1 {
	max-width: 100% !important;
	}
	.object-fit-container p {
	top: 97px;
	}
	iframe {
	height: 266px;
	}
	.page-home .card-carousel {
	padding-top: 1rem;
	}
}

@media (max-width: 575px) {
	iframe {
	height: 250px;
	}
	.hero-search {
	margin: 1rem 0 0;
	}
	.hero-search__featured .hero-search__featured-list {
	margin-top: 1rem;
	}
	.hero-search .form__group {
	display: none;
	}
	.hp-callout-small:last-child {
	margin-bottom: 0;
	}
	.carousel-buttons .btn {
	float: right;
	}
	.page-home .card-slider__slide {
	box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
	border-bottom: 4px solid #007363;
	}
}

@media (max-width: 480px) {
	
	#share-text {
	text-align: center;
	width: 100% !important;
	height: 35px !important;
	}
	.st-custom-button[data-network] {
	height: 50px !important;
	width: 18% !important;
	margin: 0 !important;
	}
	.object-fit-container p {
	top: 220px;
	}
	.jadu_related_action_button a {
	font-size: 0.9em !important;
	}

	body.page-document main#content img { display:none; }
	body.news-item main#content img { display:block; }
	
}


@media (max-width: 376px) {
	.jadu_related_action_button a {
	font-size: 0.8em !important;
	}
}

@media (max-width: 320px) {
	iframe {
	height: 157px;
	}
	.download__heading {
	width: 100%;
	}
	.object-fit-container p {
	top: 130px;
	}
	.download__meta {
	padding-left: 0;
	}
	.jadu_related_action_button a {
	font-size: 0.7em !important;
	}
}


/* Fix for select text on Services Menu */

div#services-nav nav.nav ul li a { text-shadow:none; }

/* Sizing of new tab icon */

.opens-new-tab {
width: 1em;
padding-left: 0.25em;
}

@media (min-width: 576px) {
	/* Fix for in-page anchor links being hidden behind fixed position header when followed */

	.document-page-main h1,
	.document-page-main h2,
	.document-page-main h3,
	.document-page-main h4,
	.document-page-main h5,
	.document-page-main h6 {
	position: relative;
	}
	.document-page-main h1 a:not([href]),
	.document-page-main h2 a:not([href]),
	.document-page-main h3 a:not([href]),
	.document-page-main h4 a:not([href]),
	.document-page-main h5 a:not([href]),
	.document-page-main h6 a:not([href]) {
	position: absolute;
	top: -125px;
	}
	*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)>a:empty:not([href]){ 
	position: relative;
	top: -125px;
	width: 1px;
	display: block;
	}
}

#content{
	scroll-margin-top: 125px;
}

/* Hide banner search trigger on homepage when the in page search is visible
   Have to use !important to override use of !important by .d-block */

@media (min-width: 576px) {
	.page-home .header .search-trigger{
	display:none!important;
	}
}

/* Fix for focus outline of links flowing back to previous column on landing page more in this section links */

.more-links-list li, .more-links ul li { padding: 1px 0; }


/* Alert banner fixes */

body #alert{
width:100%;
}
#alert .alert-heading p{
width:95%;
}
#alert p{
padding-left: 1em;
}



/* Downloads table accessibility fix */
.download{
position: relative;
}

.download a.download__heading:before {
content: ' ';
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index:1;
}


/* Hide all services icon when on desktop layout */
@media (min-width: 768px) {
    .hero-search__featured-list>li:nth-child(6) {
        display:none;
    }
}

/*Temp search fix (non-hero-search)*/
button.full-search-temp__submit{
	float: right;
    margin-top: 0.5em;
    font-size: 1.2em;
    font-weight: 400;
    padding: 1em;
    margin-top:0.5em;
}

.full-search__input{
	width:100%!important;
    border-right:2px solid #aaa;
}

/*Fix flashing downloads on privacy a to z*/
.no-js #download-accordion {
    display: none;
}


/* Cookie banner styling */
#cookie-banner{
position:fixed;
bottom:0;
z-index:10;
background:#fafafa;
box-shadow:0 0 20px 0 rgba(0,0,0,.45);
width:100%;
padding: 1em 1em 3em 1em;
}

#cookie-banner>div{
display: flex;
}

.cookie-buttons{
display: flex;
align-items:center;
flex-wrap:nowrap;
margin-left:5em;
flex:1 0 auto;
justify-content:flex-end;

}

.cookie-buttons .btn{
white-space:nowrap!important;
text-transform:none;
margin-left:1em;
}

#save-cookie-preferences{
margin-right:1em;
}

@media (max-width: 800px){
#cookie-banner{
    padding: 1em;
}
#cookie-banner>div{
display: block;
}
.cookie-buttons, .cookie-buttons .btn:first-child{
margin-left:0;
}
.cookie-buttons{
justify-content:flex-start;
}
}

@media (max-width: 600px){
#cookie-banner>div, .cookie-buttons{
display: block;
}
#save-cookie-preferences{
margin-right:0;
}
.cookie-buttons .btn{
display: block;
box-sizing:border-box;
margin:0.5em 0;
width: 100%;
}
}


/***************************
* Accessible modal styling *
***************************/
/* needed for old browsers */
dialog {
display: block;
border: 0;
}
/* removes scroll when modal is opened */
.no-scroll {
overflow: hidden;
}
/* overlay covers everything */
.modal-overlay {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 999;
background: rgba(0,0,0,0.5);
}
/* modal */
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
max-width:800px;
background: #fff;
z-index: 1000;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
padding: 1.5em 2em;
}
.modal-close:before,
.modal-close:after{
border-bottom:2px solid rgba(51, 51, 51, .6);
}
.modal-close{
float: right;
display: block;
height: 25px;
position:absolute;
right:25px;
}
.modal-close:after, .modal-close:before{
content: "\20";
display: block;
width: 25px;
border-bottom: 2px solid rgba(51, 51, 51, .6);
position: relative;
transition: all .3s ease;
}
.modal-close:before{
transform: rotate(-45deg);
top: 1px;
}
.modal-close:after{
transform: rotate(45deg);
}
.modal-close>span{
/*rules match sr-only*/
position: absolute;
width: 1px;
height: 1px;
padding-top: 0px;
overflow-x: hidden;
overflow-y: hidden;
clip: rect(0px, 0px, 0px, 0px);
white-space: nowrap;
}
#js-modal{
overflow-y:auto;
}
.modal__content .btn{
text-transform:none;
}
.modal__content h1{
margin-right: 1em;   
}
#js-modal{
max-height:80vh;
}
@media (max-width: 600px){
.modal__content .btn{
width:100%;
margin-bottom:0.5em;
}
}


/***************************
* Toggle switch styling    *
***************************/
.md_switch {
display: inline-flex;
align-items: center;
margin: 5px 0;
}
.md_switch .md_switch__toggle {
position: relative;
cursor: pointer;
}
.md_switch [type=checkbox] {
position: absolute;
opacity: 0;
pointer-events: none;
}
/* default states */
.md_switch .md_switch__toggle::before,
.md_switch .md_switch__toggle::after {
content: '';
display: block;
margin: 0 3px;
transition: all 100ms cubic-bezier(0.4, 0.0, 0.2, 1);
background: #BDBDBD;
}
.md_switch .md_switch__toggle::before {
height: 1.3em;
width: 3em;
border-radius: 0.65em;
opacity: 0.6;
}
.md_switch .md_switch__toggle::after {
position: absolute;
top: 50%;
transform: translate(0, -50%);
height: 1.7em;
width: 1.7em;
border-radius: 50%;
box-shadow: 0 0 8px rgba(0,0,0,0.2), 0 0 2px rgba(0,0,0,0.4);
}
/* special states */
.md_switch [type=checkbox]:focus+.md_switch__toggle {
outline: #5d9dd5 solid 1px;
box-shadow: 0 0 8px #5e9ed6;
}
.md_switch [type=checkbox]:disabled+.md_switch__toggle {
cursor: not-allowed;
}
.md_switch [type=checkbox]:disabled+.md_switch__toggle::after {
box-shadow: none;
}
/* checked states */
.md_switch [type=checkbox]:checked+.md_switch__toggle::before,
.md_switch [type=checkbox]:checked+.md_switch__toggle::after{
background: #00897B;
}
.md_switch [type=checkbox]:checked+.md_switch__toggle::after {
transform: translate(calc(3em - 100%), -50%);
}

/* Content page */

.paginationjs .paginationjs-pages li:before {
content:none;
} 
#pagination-list{
padding-top:25px;
}
li[id^="pagination-section"]{
break-inside: avoid-column;
}
li[id^="pagination-section"]:hover{
cursor: pointer;
}
p.img_gap_right img { margin-right:1.2em; }
p.img_gap_right img:last-child { margin-right:0; }

.jadu_blockquote:before {
  color: #007363;
  content: url(/media/derbycitycouncil/styleassets/images/site/quote-icon.svg);
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
}

/* Homepage hero transparency override */
/* .hero-search__featured {
  background-color: rgba(255, 255, 255, 0.9);
} */

/* Cookie banner override for WebChat */
div#cookie-banner > div {
margin-left: 5rem;
}

/* JSNA */
@media (min-width: 992px) {
div.jsna iframe {
height:28rem;
}
}

@media (max-width: 991px) {
div.jsna iframe {
height:21rem;
}
}

@media (max-width: 768px) {
div.jsna iframe {
height:23rem;
}
}

@media (max-width: 575px) {
div.jsna iframe {
height:21rem;
}
}

@media (max-width: 320px) {
div.jsna iframe {
height:15rem;
}
}

/* myAccount links */

#myaccount-links-container ul li {
white-space: wrap;
margin-top: 12px;
}