/* Minification failed. Returning unminified contents.
(278,23): run-time error CSS1030: Expected identifier, found '['
(278,28): run-time error CSS1031: Expected selector, found '*='
(278,28): run-time error CSS1025: Expected comma or open brace, found '*='
(287,23): run-time error CSS1030: Expected identifier, found '['
(287,28): run-time error CSS1031: Expected selector, found '*='
(287,28): run-time error CSS1025: Expected comma or open brace, found '*='
(299,21): run-time error CSS1030: Expected identifier, found '['
(299,26): run-time error CSS1031: Expected selector, found '*='
(299,26): run-time error CSS1025: Expected comma or open brace, found '*='
(314,24): run-time error CSS1030: Expected identifier, found '['
(314,29): run-time error CSS1031: Expected selector, found '*='
(314,29): run-time error CSS1025: Expected comma or open brace, found '*='
(321,9): run-time error CSS1030: Expected identifier, found '>'
(321,58): run-time error CSS1031: Expected selector, found ')'
(321,58): run-time error CSS1025: Expected comma or open brace, found ')'
(331,30): run-time error CSS1030: Expected identifier, found '['
(331,35): run-time error CSS1031: Expected selector, found '*='
(331,35): run-time error CSS1025: Expected comma or open brace, found '*='
 */
/* ==========================================================================
   East Lothian Council - Client Branding Overrides
   ==========================================================================
   East Lothian blue: #015293 (Header/Footer - matches elo-logo2.jpg background)
   East Lothian teal: #0099a3 (Buttons, links, accents)
   All footer links: WHITE
   ========================================================================== */

/* Override Site.css backgrounds */
.govuk-template {
    background-color: #ffffff !important;
}

/* Center main content */
.govuk-width-container {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.govuk-main-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Make page fill viewport and footer stick to bottom */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.govuk-main-wrapper,
.govuk-width-container {
    flex: 1;
}

.govuk-footer {
    margin-top: auto;
}

/* Header - East Lothian Blue */
.govuk-header {
    background: #015293 !important;
    border-bottom: none !important;
    padding-top: 8px;
    padding-bottom: 8px;
}

.govuk-header__container,
.app-header {
    border-bottom: none !important;
}

.govuk-header__link,
.govuk-header__service-name {
    color: #ffffff !important;
}

.govuk-header__link:hover,
.govuk-header__service-name:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Logo Styling */
.logo {
    background: url("images/elo-logo2.jpg") no-repeat center left !important;
    background-size: contain !important;
    width: 260px !important;
    height: 65px !important;
    border: 0 !important;
    display: inline-block;
    margin: 0;
}

@media (min-width: 40.0625em) {
    .logo {
        width: 320px !important;
        height: 80px !important;
    }
}

.logo img {
    display: none !important;
}

/* Header Container Alignment */
.govuk-header__container {
    padding-left: 0 !important;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    max-width: 960px;
    margin: 0 auto;
}

.govuk-header__logo {
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    float: left;
}

.taranto-header {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 15px;
    display: flex;
    align-items: center;
}

.govuk-header__content {
    flex: 1;
}

.taranto-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Footer - East Lothian Blue with WHITE links */
.govuk-footer {
    background: #015293 !important;
    border-top: none !important;
    padding: 20px 0;
}

/* All footer links WHITE */
.govuk-footer__link,
.govuk-footer__link:link,
.govuk-footer__link:visited,
.govuk-footer .govuk-link,
.govuk-footer .govuk-link:link,
.govuk-footer .govuk-link:visited,
.govuk-footer a,
.govuk-footer a:link,
.govuk-footer a:visited {
    color: #ffffff !important;
}

.govuk-footer__link:hover,
.govuk-footer .govuk-link:hover,
.govuk-footer a:hover {
    color: #ffdd00 !important;
}

.govuk-footer__link:focus,
.govuk-footer .govuk-link:focus,
.govuk-footer a:focus {
    color: #0b0c0c !important;
    background-color: #ffdd00;
    outline: 3px solid #ffdd00;
}

.govuk-footer__meta-item p {
    color: #ffffff !important;
}

/* Buttons - East Lothian Teal */
.govuk-button {
    background-color: #0099a3;
    box-shadow: 0 2px 0 #007a82;
    color: #ffffff;
}

.govuk-button:hover {
    background-color: #007a82;
}

.govuk-button:focus {
    background-color: #007a82;
}

/* Links - East Lothian Teal */
.govuk-link {
    color: #0099a3;
}

.govuk-link:visited {
    color: #0099a3;
}

.govuk-link:hover {
    color: #007a82;
}

.govuk-link:focus {
    color: #0b0c0c;
    background-color: #ffdd00;
    outline: 3px solid #ffdd00;
}

/* Breadcrumbs */
.govuk-breadcrumbs__link {
    color: #0099a3;
}

.govuk-breadcrumbs__link:hover {
    color: #007a82;
}

/* Tags */
.govuk-tag {
    background-color: #015293;
}

/* Back Link */
.govuk-back-link {
    color: #0099a3;
}

.govuk-back-link:hover {
    color: #007a82;
}

/* Tabs */
.govuk-tabs__list-item--selected {
    border-color: #015293;
}

.govuk-tabs__tab {
    color: #0099a3;
}

/* Accordion */
.govuk-accordion__section-button {
    color: #0099a3;
}

/* Form Focus States */
.govuk-input:focus,
.govuk-textarea:focus,
.govuk-select:focus {
    outline: 3px solid #0099a3;
}

.govuk-radios__input:focus + .govuk-radios__label::before,
.govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
    box-shadow: 0 0 0 3px #0099a3;
}

/* Pagination */
.govuk-pagination__link {
    color: #0099a3;
}

.govuk-pagination__item--current {
    background-color: #015293;
}

/* Phase Banner */
.govuk-phase-banner__content__tag {
    background-color: #015293;
}

/* Panel Confirmation */
.govuk-panel--confirmation {
    background: #0099a3;
}

/* ==========================================================================
   Hide Specific Navigation Menu Items
   ========================================================================== */

/* Hide Ticket history menu item */
a[href*="TicketHistory"],
a[href*="/Ticket/History"],
.navigation-item:has(a[href*="TicketHistory"]),
li:has(a[href*="TicketHistory"]) {
    display: none !important;
}

/* Hide Frequently asked menu item */
a[href*="FrequentlyAsked"],
a[href*="/FAQ"],
a[href*="Frequently"],
.navigation-item:has(a[href*="FrequentlyAsked"]),
li:has(a[href*="Frequently"]) {
    display: none !important;
}

/* Alternative selectors for menu items containing specific text */
.app-subnav a:has-text("Ticket history"),
.app-subnav a:has-text("Frequently asked") {
    display: none !important;
}

/* Parent list items if they contain these links */
.app-subnav li:has(a[href*="TicketHistory"]),
.app-subnav li:has(a[href*="Frequently"]),
.side-navigation li:has(a[href*="TicketHistory"]),
.side-navigation li:has(a[href*="Frequently"]) {
    display: none !important;
}

/* ==========================================================================
   Hide Terms and Conditions Checkbox
   ========================================================================== */

/* Hide checkbox and terms text */
input[type="checkbox"][name*="terms"],
input[type="checkbox"][name*="Terms"],
input[type="checkbox"] + label:has-text("terms and conditions"),
.govuk-checkboxes:has(a[href*="terms"]),
.govuk-checkboxes__item:has(a[href*="terms"]),
.form-group:has(a[href*="terms-and-conditions"]) {
    display: none !important;
}

/* Hide any div/container with terms checkbox */
div:has(> input[type="checkbox"] + label a[href*="terms"]) {
    display: none !important;
}

/* Alternative - hide by looking for the specific text pattern */
label:has-text("By continuing to use this service") {
    display: none !important;
}

/* Hide parent containers */
.govuk-form-group:has(label a[href*="terms"]),
.form-group:has(label a[href*="terms"]) {
    display: none !important;
}

/* ==========================================================================
   END OF EAST LOTHIAN COUNCIL BRANDING
   ========================================================================== */

