@import url("/version-b/live-base-0.css");
@import url("/version-b/live-base-1.css");
@import url("/version-b/gino.css");

body {
    margin: 0;
    font-family: interstate, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #000;
}
button,
a,
input,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
.preview-header {
    position: relative;
    z-index: 250;
}
.preview-header .g-mega {
    top: 100%;
}
.preview-header .concept-menu {
    position: absolute;
    top: 100%;
    right: 24px;
    left: auto;
    bottom: auto;
    width: 320px;
    max-height: 75vh;
    padding: 20px;
    border: 1px solid #d7dccf;
    box-shadow: 0 8px 20px #0002;
    overflow: auto;
}
.preview-header .concept-menu[hidden] {
    display: none;
}
.test-notice {
    background: #f0f2e9;
    text-align: center;
    font-size: 14px;
    padding: 9px 16px;
    color: #332e20;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 9999;
    background: white;
    padding: 12px;
}
.skip-link:focus {
    top: 8px;
}
.g-cardgrid[hidden] {
    display: none !important;
}
.g-desktop-quote {
    z-index: 220;
}
:focus-visible {
    outline: 3px solid #007db3;
    outline-offset: 4px;
}
@media (max-width: 1279px) {
    .preview-header .concept-menu {
        position: fixed;
        inset: 0;
        width: auto;
        max-height: none;
        padding: 20px;
        overflow: auto;
    }
}

.full-width {
    grid-column: 1/-1;
}
.preview-honeypot {
    position: absolute;
    left: -10000px;
}
.form-panel .primary:disabled {
    opacity: 0.6;
    cursor: wait;
}
.error-summary a {
    text-decoration: underline;
}
.success-panel dd {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.file-list button {
    margin-left: 12px;
    text-decoration: underline;
}

.form-panel .field label::after {
    content: none !important;
}
.form-panel .required::after {
    content: none !important;
}

/* Preserve the source typography inside the isolated quote page. */
main.quote-page {
    font-family: Interstate, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #292e27;
}
main.quote-page #location-field {
    margin-top: 20px;
}
main.quote-page .file-list .remove-file {
    margin: 0;
    text-decoration: none;
}
main.quote-page .upload-test-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 8px;
}
@media (min-width: 1280px) {
    .preview-header #service-menu.concept-menu {
        top: var(--service-top, 100%);
        right: var(--service-right, 24px);
        left: auto;
        bottom: auto;
    }
}

/* Closing band from Sam's version B quote-page design. */
.quote-footer-band {
    height: 160px;
    background: #004e59;
}
@media (max-width: 760px) {
    .quote-footer-band {
        height: 80px;
    }
}

/* Keep the legal links together and the copyright on its own mobile row. */
@media (max-width: 1023px) {
    .g-unified-foot .footer-legal {
        flex-direction: column;
        gap: 10px;
        padding-block: 16px;
    }
    .g-unified-foot .footer-legal-links {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0 16px;
    }
    .g-unified-foot .footer-legal-links a {
        min-height: 44px;
        white-space: nowrap;
    }
    .g-unified-foot .footer-legal-divider {
        display: none;
    }
    .g-unified-foot .footer-legal > p:first-child {
        order: 1;
        display: block;
        min-height: 0;
        white-space: nowrap;
    }
    .g-unified-foot .footer-copyright a:focus-visible {
        outline-color: white;
    }
}

/* Allow homepage cards to fit the explicitly tested 320px viewport. */
@media (max-width: 380px) {
    .routes .route {
        min-width: 0;
        grid-template-columns: 40px minmax(0, 1fr) 14px;
    }
    .routes .route > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
