:root {
    --font-primary: Arial;
}

/* Drupal admin toolbar */

#gin-toolbar-bar {
    position: sticky; /* show beneath OC2 black bar */
    margin-top: 31px;
}

.skip-link {
    margin-top: 2em;
    top: 45px;
}

.back-to-top {
    z-index: 10;
}

/* Header */

.lgd-header {
    margin-top: 30px; /* for black bar */
    padding-left: 1em;
    padding-right: 1em;
}

.lgd-header__inner {
    justify-content: start;
}

.lgd-header__toggles {
    margin-inline-end: 2em;
}

/* Main menu */

#block-cheshirewest-mainnavigation .menu.menu--main {
    display: none;
}

.lgd-header__nav--primary {
    display: none;
}

/* Services Menu */

#block-cheshirewest-servicesmenu .menu--localgov-services-menu .menu-item a {
    font-size: 1.1em;
    text-decoration: none;
}

#block-cheshirewest-servicesmenu .menu--localgov-services-menu .menu-item a:hover {
    text-decoration: underline;
}

#block-cheshirewest-servicesmenu > .menu--localgov-services-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* Set services sub-menus to be single column as shouldn't be too many of them */

#block-cheshirewest-servicesmenu .menu--localgov-services-menu .menu--localgov-services-menu.menu--sub-menu {
    column-count: 1;
}

#block-cheshirewest-servicesmenu .menu--localgov-services-menu .menu--localgov-services-menu.menu--sub-menu .menu-item {
    margin: 0;
}

/* Homepage */

.path-frontpage .homepage-services .views-view-responsive-grid__item {
    margin: 1em;
    text-align: center;
    display: grid;
}

.path-frontpage .homepage-services .views-view-responsive-grid__item a {
    display: grid;
    height: 100%;
    padding: 5em 1em 2em;
    font-weight: 700;
    font-size: 1.5em;
}

/* Service landing pages */

.page-node-type-localgov-services-landing .service-landing-page__services .service-landing-page__service.field__item {
    padding: 0;
    display: grid;
}

.page-node-type-localgov-services-landing .service-landing-page__services .service-landing-page__service.field__item a {
    text-decoration: none;
    display: grid;
    align-items: center;
    height: 100%;
    padding: 2em 4em 2em 1.5em;
    font-weight: 600;
}

/* Publications */

.block-localgov-publications  summary {
    position: relative;
}

.block-localgov-publications  summary::marker, .block-localgov-publications  summary::-webkit-details-marker {
    content: "";
    display: none; /* webkit for Safari*/
}

.block-localgov-publications  summary:before {
    content: "+";
    top: -4px;
    float: right;
    font-size: 2em;
}

.block-localgov-publications  details[open] summary:before {
    content: "-";
}

/* Guide pages */

.page-node-type-localgov-guides-page  #block-cheshirewest-pagetitle--2 {
    display: none; /* need to show page header block for guides to include guide overview page title - so don't need page title */
}

/* Service pages */

.page-node-type-localgov-services-page .node__restricted-width-section {
    max-width: 100%; /* stop restricted width on service pages */
}


/* Registers links */

#block-cheshirewest-registersmenu .menu--registers-menu {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 10px;
}

#block-cheshirewest-registersmenu .menu--registers-menu .menu-item {
    margin: 1em;
}

#block-cheshirewest-registersmenu .menu--registers-menu .menu-item a {
    display: grid;
    height: 100%;
    padding: 2em 3em 2em 1.5em;
    font-weight: 600;
}

/* Sidebars */

.sidebar .lgd-region__inner > * {
    margin-bottom: 2em;
}

.page-node-type-localgov-publication-page  aside.sidebar--first {
    position: sticky; /* only want to do this for publications */
    top: 30px;
    z-index: 10;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
}

/* Page sections */

.lgd-page-section.paragraph--type--localgov-page-section {
    margin: 1em 0;
}

/* Footer */

#block-cheshirewest-relatedinformation .menu--related-information {
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

#block-cheshirewest-relatedinformation .menu--related-information .menu-item {
    display: inline;
}

.lgd-footer__footer {
    padding: 5em 1em 3em;
    font-size: 14px;
}

#block-cheshirewest-footer .menu--footer {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 5px;
    text-align: center;
}

#block-cheshirewest-footer .menu--footer .menu-item {
    display: inline;
}

.lgd-footer__footer .footer-logo-block {
    display: grid;
    justify-content: end;
}

/* OC2 Connect buttons */

.paragraph--type--oc2-comment-point-link2 {
    display: block;
    padding-bottom: 1em;
}

.oc-link-v2 {
    margin: 1em 0;
}

.field__item .oc-link-v2 .btn {
    margin-right: .5rem;
    padding: 0.75em;
}

.oc-link-v2 a {
    text-decoration: none;
}

.oc-link-v2 a svg {
    vertical-align: middle;
}

/* inline footnotes - external source */


/* These pseudo elements insert text for when JavaScript is disabled */
span[class^="footnote"]::before {content: "(Footnote: ";}
span[class^="footnote"]::after {content: ")" }

/* This pseudo element inserts text that is hidden but is read by a screen reader */
*[id^="Footnotes"]::before{
    content: "Footnotes Section: ";
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    left: -625em;
    top: auto;
}

span[class^="footnote"] {display:block;}

.hasJS span[class^="footnote"], .hasJS span[class ='fnWrapper'] {display:none;} /* prevents page load flicker if JavaScript operative */

.hideTip {display: none !important;}

.invis{ /* Hide visually, but will be read by a screen reader - to work for all browsers*/
    border: 0;
    clip-path: inset(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    left:-9999px;
    top:auto;
}

.fnNum::before{
    content:'\200B';
}

.fnWrapper{
    display: inline;
    margin-bottom: 0.5em;
}

.tipContent{ /* very basic formatting of the footnote */
    display: inline;
    border:#000 solid 1px;
    padding:0.3em;
}

/* ############ Set overall line height ############## */
body{line-height: 1.35;}

/* ############ Formatting of Footnote numbers ############## */
.fnNum, .fnNumBase{
    background-color: #fff;
    white-space:nowrap;
    text-decoration:none;
    z-index:400;
}

.fnNum {
    padding: 0 0.063em 0.1em 0.063em;
    font-size: 80%;
    line-height: 1.0;
    position: relative;
    top: -0.5em;
    font-size: 80%;
}

.fnNum:hover, .fnNum:focus {
    top: -0.4em;
}

.fnNumBase {
    clear: both;
    float: left;
    font-size: 90%;
    line-height: 1.1;
    padding: 0 0.08em 0 0.08em;
}

.fnTextBase {
    padding-left: 2.5em;
    display: inline;
    font-size: 90%;
    padding-bottom: 0.312em;
}

.fnNumIn {
    position: relative;
    vertical-align: middle;
}

/* ############ Formatting of Tooltips ############## */
.tipContent{
    width: auto;
    max-width:95%;
    z-index:1080;
    position: absolute;
    margin: 0 auto 0.5em auto;
    padding:0.19em 0.375em 0.23em 0.375em;
    border: 3px solid #000;
    color: #000;
    background-color: #fff;
    box-shadow: 0.5em 1em 1.25em rgba(15, 36, 27, 0.62);
    text-align:left;
    border-radius:0.35em;
}

/* ############ Formatting of SideBox ############## */
#SideBox{
    float:right;
    width:25em;
    max-width:50%;
    padding:1em .5em .75em 1em;
    margin:.3em .2em .5em .5em;
    background-color:#fffcf0;
    border:#eed677 solid .1em;
    border-radius:.6em;
    box-shadow:.25em .5em .7em rgba(15,36,27,0.45)
}

span[id$="_Side"], #FootnotesSide {font-family:Baskerville, "Palatino Linotype", "Century Schoolbook L", "Times New Roman", serif;}

.JRMToggleBtn {
    text-shadow:0 0.09em 0 #ced9bf;
    background:linear-gradient(to bottom,#f9fcf9 0%,#c1c4bf 100%);
    box-shadow: inset 0 0.07em 0.62em 0.07em #E9FEE9, 0.5em 1em 1.25em rgba(15, 36, 27, 0.62);
    border-top: 0.09em solid rgba(122, 153, 122, 0.9);
    border-right: 0.09em solid rgba(153, 190, 153, 0.9);
    border-bottom: 0.09em solid rgba(153, 190, 153, 0.9);
    border-left: 0.09em solid rgba(122, 153, 122, 0.9);
}

/* for printing */
@media print {
    .fnWrapper, .invis, .unhideTip, .hideTip{display:none !important;}

    .fnNum, .fnNumBase{white-space:nowrap;}

    .fnNum a, .fnNumBase a {text-decoration:none; color:#000;}

    .fnNum::before{content:'\200B';}

    .JRMToggleBtn{display:none !important;}
}