/* The public pages (the login page and the information pages on InfoPage.Master) in the new look: State Green header band,
   cards on the page background, and the login box left where it was, over the banner. Loaded after loginre.css, which it
   overrides; everything is scoped to body.rd-public. */

body.rd-public {
    --pub-green: #004D44;
    --pub-accent: #91CD94;
    --pub-tint: #eef7ee;
    --pub-border: rgba(0, 0, 0, .125);
    --pub-width: 1022px;
    background-color: #eef1ef;
    font-family: Calibri, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #212121;
}

html:has(body.rd-public) { background-color: #eef1ef; }

body.rd-public #page_wrapper {
    margin: 0 auto;
    background-color: #eef1ef;
}

/* the old Bootstrap column offsets are replaced by one container width */
body.rd-public #page_wrapper > .row {
    display: block;
    margin: 0;
}

body.rd-public #page_wrapper > .row > [class*="col-"] {
    max-width: 100%;
    margin-left: 0;
    padding: 0;
    flex: none;
    background-color: transparent !important;
}

/* ---------- header band ---------- */

body.rd-public #page_wrapper > .row:has(.topMenu) {
    background-color: var(--pub-green) !important;
}

body.rd-public .topMenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: var(--pub-width);
    height: auto;
    margin: 0 auto;
    padding: .6rem 0 0;
    background-color: transparent;
}

/* the logo image has a tagline on its right, which the clip hides, and empty space above and below */
body.rd-public #tailte_logo {
    height: 100px;
    margin: -12px 0 -12px -12px;
    clip-path: none;
}

body.rd-public .topMenu .site-title {
    margin-left: auto;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .01em;
}

body.rd-public .linksPRA {
    flex-basis: 100%;
    float: none;
    margin: .35rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

body.rd-public .linksList {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: .55rem 0;
    list-style: none;
}

body.rd-public .linksList li {
    display: block;
    padding: 0;
    font-family: inherit;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
}

body.rd-public .linksList li:hover {
    color: #fff;
}

/* ---------- banner, with the login box over it ---------- */

body.rd-public .slideBar {
    max-width: var(--pub-width);
    min-height: 27.5rem; /* the login box, about 25rem tall, sits inside it */
    margin: 1.25rem auto 0;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: #d9ddd9 url("../Images/sliderIMG1.jpg") center 40% / cover no-repeat;
}

body.rd-public .slideBar #header,
body.rd-public .slideBar #headerimgs {
    position: absolute;
    inset: 0;
    background: none;
    border-radius: 8px;
    overflow: hidden;
}

body.rd-public img#headerIMG {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the title is in the header band now */
body.rd-public .eregTitle {
    display: none;
}

body.rd-public .controlSlider {
    z-index: 1;
}

/* ---------- login box ---------- */

body.rd-public #loginDivHolder {
    width: 20rem;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    overflow: hidden;
    font-family: inherit;
    font-size: 1rem;
    color: #212529;
}

body.rd-public #loginDivHolder > .row {
    display: block;
    margin: 0;
}

body.rd-public #loginDivHolder .loginHeader {
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
    flex: none;
}

body.rd-public #loginDivHolder .loginHeader h4 {
    margin: 0;
    padding: .6rem 1rem;
    background-color: var(--pub-green);
    border-bottom: 3px solid var(--pub-accent);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
}

body.rd-public .logindiv {
    padding: 1rem;
    font-family: inherit;
    color: #212529;
}

body.rd-public .loginInputs .form-group.row {
    display: block;
    margin: 0 0 .75rem;
}

body.rd-public .loginInputs .form-group.row > [class*="col-"] {
    max-width: 100%;
    padding: 0;
    flex: none;
}

body.rd-public .loginInputs label.control-label {
    display: block;
    margin: 0 0 .25rem;
    padding: 0;
    text-align: left;
    font-weight: 700;
    font-size: .9rem;
    color: #212529;
}

body.rd-public .logindiv input.logintextboxes {
    display: block;
    width: 100%;
    height: auto;
    padding: .4rem .6rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    font-family: inherit;
    font-size: .95rem;
    color: #212529;
}

body.rd-public .logindiv input.logintextboxes:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 .2rem rgba(145, 205, 148, .35);
    outline: 0;
}

body.rd-public .logindiv .float-right {
    float: none !important;
    display: flex;
    justify-content: flex-end;
}

body.rd-public .logindiv .mr-4,
body.rd-public .logindiv .mr-2 {
    margin-right: 0 !important;
}

body.rd-public button.btnstartNext {
    width: auto;
    padding: .4rem 1.1rem;
    border: 1px solid var(--pub-green);
    border-radius: .25rem;
    background: var(--pub-green);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
}

body.rd-public button.btnstartNext:hover,
body.rd-public button.btnstartNext:focus {
    background: #003a33;
    border-color: #003a33;
    color: #fff;
}

body.rd-public button.btnstartNext:disabled,
body.rd-public button.btnstartNext:disabled:hover {
    background: var(--pub-green);
    border-color: var(--pub-green);
    color: #fff;
}

body.rd-public .logindiv p {
    margin: .75rem 0 0;
    font-size: .8125rem;
    line-height: 1.4;
    color: #6c757d;
}

body.rd-public .logindiv p a.termsStyle {
    color: var(--pub-green);
    font-weight: 600;
    text-decoration: underline;
}

/* the PAN step */
body.rd-public #enterPinLabel {
    display: block;
    margin: 0 0 .75rem;
    color: #212529;
}

body.rd-public #pindiv .pinTextBoxLive {
    background-color: #fff;
}

/* ---------- menu and content ---------- */

body.rd-public #page_wrapper > .row:has(.menus) {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    max-width: var(--pub-width);
    margin: 1.25rem auto 0;
}

body.rd-public .menus {
    padding: .4rem 0;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    background-color: #fff;
}

body.rd-public .menus > ul {
    margin: 0;
    padding: 0;
}

body.rd-public .menus ul li {
    margin: 0;
    padding: .5rem 1rem;
    overflow: visible;
}

body.rd-public .menus ul li:hover {
    background-color: var(--pub-tint);
    color: inherit;
}

body.rd-public .menus ul li a {
    left: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.5;
    text-align: left;
    color: #212529;
}

body.rd-public .menus ul li a:hover {
    color: var(--pub-green);
}

body.rd-public .eregMenu li,
body.rd-public .edischargesMenu li {
    padding: .4rem 0 .4rem 1rem;
    font-family: inherit;
    font-size: .9rem;
    color: #212529;
}

body.rd-public .eregMenu li:hover,
body.rd-public .edischargesMenu li:hover {
    color: var(--pub-green);
}

body.rd-public .contentDiv {
    padding: .5rem .75rem;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    background-color: #fff;
}

body.rd-public .eregSummary {
    padding: .75rem;
    color: #212121;
}

body.rd-public .eregSummary div {
    font-size: 1rem;
    line-height: 1.55;
}

body.rd-public .eregSummary a,
body.rd-public .termsStyle {
    color: var(--pub-green);
}

body.rd-public .eregSummary a:hover,
body.rd-public .termsStyle:hover {
    color: #003a33;
}

/* ---------- the pages that open over the banner, and the messages ---------- */

body.rd-public .displayLink {
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    font-family: inherit;
}

body.rd-public .displayLink h1,
body.rd-public .displayLink h2 {
    color: var(--pub-green);
    font-family: inherit;
    font-weight: 400;
}

body.rd-public .displayLink a {
    color: var(--pub-green);
}

body.rd-public #returnURLmsg,
body.rd-public #invalidLogin,
body.rd-public #customerNotice {
    padding: 0;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    overflow: hidden;
    font-family: inherit;
    font-size: 1rem;
    color: #212529;
}

body.rd-public #returnURLmsg h1,
body.rd-public #invalidLogin h1,
body.rd-public #customerNotice h1 {
    margin: 0 0 1rem;
    padding: .6rem 1rem;
    background-color: var(--pub-green);
    border-bottom: 3px solid var(--pub-accent);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
}

/* the customer notice has a white heading panel with larger green text, rather than the green banner of the other dialogs */
body.rd-public #customerNotice h1 {
    margin: 0 0 1.25rem;
    padding: 1rem 1rem .75rem;
    background-color: #fff;
    color: var(--pub-green);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.25;
}

body.rd-public #returnURLmsg > span,
body.rd-public #invalidLogin > span,
body.rd-public #customerNotice > div[data-function] {
    display: block;
    padding: 0 1rem;
}

body.rd-public .loggedOutDiv {
    display: flex;
    justify-content: flex-end;
    margin: 1.25rem 0 0;
    padding: 0 1rem 1rem;
}

body.rd-public .loggedOutDiv input.ui-button {
    padding: .4rem 1.1rem;
    border: 1px solid var(--pub-green);
    border-radius: .25rem;
    background: var(--pub-green);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
}

body.rd-public .loggedOutDiv input.ui-button:hover {
    background: #003a33;
    color: #fff;
}

/* ---------- footer ---------- */

body.rd-public #page_wrapper > .row:has(#footer_wrapper) {
    max-width: var(--pub-width);
    margin: 1.25rem auto 2rem;
}

body.rd-public #footer_wrapper {
    padding: 1rem;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    background-color: #fff;
    font-family: inherit;
}

body.rd-public .partnerDiv {
    min-height: 0;
    margin: 0;
    background-color: transparent;
}

body.rd-public .partnerDivUL {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.75rem;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rd-public .partnerDivUL li {
    display: block;
    padding: 0;
}

body.rd-public .partnerDivUL img {
    width: auto;
    height: 44px;
    max-width: 130px;
    object-fit: contain;
}

body.rd-public #footer_wrapper span {
    margin: .75rem 0 0;
    font-size: .8rem;
    color: #666;
}

/* ---------- a narrow screen ---------- */

@media (max-width: 767px) {
    body.rd-public #page_wrapper > .row:has(.menus) {
        grid-template-columns: minmax(0, 1fr);
        margin-left: .75rem;
        margin-right: .75rem;
    }

    body.rd-public .topMenu,
    body.rd-public .slideBar {
        margin-left: .75rem;
        margin-right: .75rem;
    }

    /* the photo is a strip above the login box, not behind it */
    body.rd-public .slideBar {
        min-height: 0;
        padding-top: 8rem;
        background-color: transparent;
        background-size: 100% 8rem;
    }

    body.rd-public .slideBar #header,
    body.rd-public .slideBar #headerimgs {
        bottom: auto;
        height: 8rem;
    }

    /* relative, not static: a static box is painted beneath the positioned slideshow image, which showed through it
       whenever the image faded */
    body.rd-public #loginDivHolder {
        position: relative;
        z-index: 2;
        top: auto;
        right: auto;
        width: auto;
        margin: 0;
        border-radius: 0 0 8px 8px;
    }
}

/* InfoPage.Master: the content row has no banner above it, and no height of its own */
body.rd-public .infoContentRow {
    min-height: 0;
}

/* #loginDivHolder is also a Bootstrap .container, and the notice under the buttons a .col-12: no padding of their own */
body.rd-public #loginDivHolder {
    max-width: none;
    padding: 0 !important;
}

body.rd-public .logindiv .col-12 {
    padding-left: 0;
    padding-right: 0;
}

/* the headings of the information pages (Terms and Conditions and the like) */
body.rd-public .contentDiv h1 {
    margin: .5rem 0 .75rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--pub-green);
}

body.rd-public .contentDiv h2 {
    margin: 1.25rem 0 .5rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--pub-green);
}

/* the user guides: quiet cards with the link in State Green, not dark green cards (the link would vanish into them) */
body.rd-public .userGuidesList {
    margin-top: 1rem;
    padding: 0;
}

body.rd-public .userGuidesList li {
    max-width: 700px;
    margin-bottom: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--pub-border);
    border-left: 4px solid var(--pub-accent);
    border-radius: 8px;
    background-color: var(--pub-tint);
    box-shadow: none;
    color: #212121;
    text-align: left;
}

body.rd-public .userGuidesList li p {
    margin: 0 0 .5rem;
    color: #212121;
}

body.rd-public .userGuidesList li p:last-child {
    margin-bottom: 0;
}

body.rd-public .userGuidesList li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pub-green);
    text-decoration: underline;
}

body.rd-public .userGuidesList li a:hover {
    color: #003a33;
}

/* the common questions: the closed questions pale green with dark text, the open one State Green, the answer white */
body.rd-public .ui-accordion .ui-accordion-header {
    margin: .35rem 0 0;
    padding: .55rem .75rem .55rem 2rem;
    border: 1px solid var(--pub-border);
    border-radius: 6px;
    background: var(--pub-tint);
    color: #212121;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 500;
}

body.rd-public .ui-accordion .ui-accordion-header:hover {
    background: #d3ebd4;
}

body.rd-public .ui-accordion .ui-accordion-header.ui-accordion-header-active {
    border-color: var(--pub-green);
    border-radius: 6px 6px 0 0;
    background: var(--pub-green);
    color: #fff;
}

body.rd-public .ui-accordion .ui-accordion-content {
    border: 1px solid var(--pub-border);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #fff;
    color: #212121;
    font-family: inherit;
}

/* the PAN step: the six digits side by side as before, the ones to be entered open, each box wide enough for one digit */
body.rd-public #pindiv .container {
    max-width: none;
    padding: 0;
}

body.rd-public #pindiv .row {
    margin-left: -3px;
    margin-right: -3px;
}

body.rd-public #pindiv [class*="col-"] {
    padding-left: 3px;
    padding-right: 3px;
    text-align: center;
}

body.rd-public #pindiv .row:not(.form-group) {
    font-size: .8rem;
    color: #6c757d;
}

body.rd-public #pindiv .pinTextBox,
body.rd-public #pindiv .pinTextBoxLive {
    padding: .375rem 0;
    text-align: center;
    font-size: 1.1rem;
}

body.rd-public #pindiv .pinTextBox:disabled {
    background-color: #e4e7e5;
}

/* ---------- notice page (session expired): one card under the header band ---------- */

body.rd-public .rd-notice {
    max-width: 30rem;
    margin: 3rem auto;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    overflow: hidden;
}

body.rd-public .rd-notice h1 {
    margin: 0;
    padding: .6rem 1rem;
    background-color: var(--pub-green);
    border-bottom: 3px solid var(--pub-accent);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
}

body.rd-public .rd-notice .rd-notice-body {
    padding: 1rem;
}

body.rd-public .rd-notice p {
    margin: 0 0 1rem;
    line-height: 1.45;
}

body.rd-public .rd-notice a.rd-notice-button {
    display: inline-block;
    padding: .4rem 1.1rem;
    border: 1px solid var(--pub-green);
    border-radius: .25rem;
    background: var(--pub-green);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}

body.rd-public .rd-notice a.rd-notice-button:hover,
body.rd-public .rd-notice a.rd-notice-button:focus {
    background: #003a33;
    border-color: #003a33;
    color: #fff;
}
