/*
Theme Name: Nightingale (N3i)
Theme URI: https://www.github.com/n3iltd/wp-theme-nightingale-n3i/
Description: Customised version of the Nightingale theme for N3i.
Author: Chris Cook
Author URI: https://www.github.com/n3i-chris/
Template: nightingale
Version: 1.9.0
License: Open Government License 3
License URI: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
Tags: nhs
Text Domain: nightingalen3i
*/

/* Restrict height of custom logos. */

.custom-logo {
    width: auto;
    max-height: 100px;
}

/* Hide the page title on the homepage. */

body.home .entry-header {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Place a line beneath the current menu item on the main menu. */

.nhsuk-header__navigation-item.current-page-ancestor,
.nhsuk-header__navigation-item.current-menu-item {
    box-shadow: inset 0 -4px 0 #D8DDE0;
}

.nhsuk-header__drop-down .nhsuk-header__navigation-item.current-page-ancestor,
.nhsuk-header__drop-down .nhsuk-header__navigation-item.current-menu-item {
    box-shadow: none;
}

/* Make the current menu item bold. */

.nhsuk-header__navigation-item.current-page-ancestor a,
.nhsuk-header__navigation-item.current-menu-item a {
    font-weight: 700;
}

/* Ensure the search box does not shrink to below recommended size. */

.nhsuk-search__submit,
.nhsuk-search__input {
    min-height: 44px;
}

/* Remove spacing above content on mobile views. */

@media (max-width: 48.0525em) {
    .nhsuk-main-wrapper {
        padding-top: 0;
    }
}

/* Remove spacing below card groups on mobile views. */

@media (max-width: 48.0525em) {
    .nhsuk-card-group {
        margin-bottom: 16px;
    }
}

/* Improve display of iframes. */

iframe {
    width: 100%;
    border: 1px solid #D8DDE0;
    margin-bottom: 16px;
}

@media (min-width: 40.0625em) {
    iframe {
        margin-bottom: 24px;
    }
}

/* Hide NHS logo on mobile views. */

@media (max-width: 48.0525em) {
    .providing-nhs-services-logo {
        display: none;
    }
}

/* Align the website title with the left of header. */

.nhsuk-header__transactional-service-name {
    padding-left: 0;
}

/* Remove padding below footer. */

.nhsuk-footer-container {
    padding-bottom: 0;
}

/* Remove spacing around search box. */

.nhsuk-header__search-form {
    margin: 0;
}

/* Remove spacing around website title on mobile views. */

@media (max-width: 40.0525em) {
    .nhsuk-header__transactional-service-name {
        padding-top: 0;
        padding-bottom: 8px;
    }
}

/* Set widths of opening hours table columns. */

.day-name,
.hours {
    width: 50%;
}

/* Remove author and category from posts. */

.nhsuk-review-date,
p.cat-links.nhsuk-tag.nhsuk-tag--grey,
select#cat_filter {
    display: none;
}

/* Styling for Gravity Forms. */

.frm_form_field textarea {
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-appearance: none;
    border: 2px solid #4C6272;
    border-radius: 0;
    box-sizing: border-box;
    display: block;
    min-height: 10rem;
    padding: 4px;
    resize: vertical;
    width: 100%;
}

.nhsuk-radios__input {
    height: 100px;
}

.with_frm_style .vertical_radio .frm_checkbox label,
.with_frm_style .vertical_radio .frm_radio label {
    display: inline-block;
    padding-left: 5px;
}

.nhsuk-radios__input+.nhsuk-radios__label::before {
    height: 20px;
    width: 20px;
    left:15px;
    top: 5px;
}

.nhsuk-radios__input+.nhsuk-radios__label::after {
    left:15px;
    top: 5px;
}

.nhsuk-radios__input:checked+.nhsuk-radios__label::after {
    opacity: 0.75;
}
