html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    margin: 0;
    box-sizing: border-box;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYx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An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

* {
    --assisto-bg: #eeeeee;
    --assisto-primary: #0ba292;
    --assisto-primary-focus: #0B8F81;
    --assisto-primary-filter: brightness(0) saturate(100%) invert(35%) sepia(97%) saturate(3512%) hue-rotate(156deg) brightness(93%) contrast(91%);
    --assisto-primary-rgb: 11, 143, 129;
    --assito-secondary: #00C9AF;
    --assito-secondary-focus: #058373;
    --assisto-primary-focus-border: rgba(11, 142, 128, 0.34);
    --assisto-tertiary: #4a80d1;
    --assisto-tertiary-rgb: 74, 128, 209;
    --assisto-border: #929292;
    --assisto-blue: #2683D4;
    --assisto-blue-filter: brightness(0) saturate(100%) invert(42%) sepia(86%) saturate(706%) hue-rotate(172deg) brightness(91%) contrast(88%);
    --assisto-white-filter: brightness(0) saturate(100%) invert(94%) sepia(100%) saturate(0%) hue-rotate(115deg) brightness(104%) contrast(102%);
    --assisto-action-bg: #FCF7EE;
    --assisto-action-bg-border: rgba(0, 0, 0, 0.12);
    --assisto-primary-text: black;
    --assisto-secondary-text: #747474;
    --assisto-highlight-yellow: #bcdf0c;

    /* "Green ink" revamp tokens (marketing redesign 2026). Shared by the revamped pages
       (Facility first); prefixed --gi- to stay clear of the legacy --assisto-* set. */
    --gi-ink: #123530;
    --gi-ink-soft: #1c433c;
    --gi-accent: #0ba292;
    --gi-accent-strong: #0B8F81;
    --gi-lime: #bcdf0c;
    --gi-marker: #e4f286;
    --gi-marker-ink: #3d4d05;
    --gi-mist: #f2faf7;
    --gi-chip-bg: #e3f4f0;
    --gi-chip-text: #0B8F81;
    --gi-chip-deep: #0b6e63;
    --gi-border: #dcebe6;
    --gi-border-2: #cfe3dd;
    --gi-ground: #f3f8f6;
    --gi-text: #16261f;
    --gi-sec: #3f524c;
    --gi-bad: #b3413a;
    --gi-bad-soft: #fbe1df;
    --gi-bad-text: #8c3a34;
    --gi-warn: #e9c403;
    --gi-warn-soft: #fdf0d4;
    --gi-warn-text: #8a5c14;
    --gi-good: #1d7a4f;
    --gi-good-soft: #e0f0e6;
    --gi-neutral-chip: #eef3f1;
    --gi-neutral-text: #5b6a66;
    --gi-shadow: 0 10px 24px rgba(9, 80, 72, .05), 0 2px 6px rgba(9, 80, 72, .06);
    /* Unified widget system: one card radius everywhere; the featured (deep) shadow is reserved
       for the single flagship conversion card per viewport. */
    --gi-radius-card: 14px;
    --gi-shadow-featured: 0 18px 44px rgba(9, 80, 72, .14);
}

/* Site-wide navigation progress bar (created/removed by js/web.js). */
#nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--assisto-primary);
    box-shadow: 0 0 8px rgba(var(--assisto-primary-rgb), 0.6);
    z-index: 100000;
    pointer-events: none;
}

#nav-progress.active {
    animation: nav-progress-grow 8s cubic-bezier(0.05, 0.6, 0.1, 1) forwards;
}

#nav-progress.done {
    animation: none;
    width: 100%;
    opacity: 0;
    transition: width 0.2s ease-out, opacity 0.3s ease-out 0.1s;
}

@keyframes nav-progress-grow {
    0% { width: 0; }
    100% { width: 92%; }
}

html.nav-loading,
html.nav-loading body {
    cursor: progress;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shifts during navigation */
body {
    scroll-padding-top: 0;
    scroll-behavior: smooth;
}

.user-content-page{
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: auto;
    margin-bottom: 5rem;
}

.user-content-page.large{
    overflow: hidden;
}

.user-content-page-container{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
}

@media (min-width: 841px){
    .user-content-page-container{
        padding: 4rem 4rem 2rem 4rem;
    }
}


/* Ensure content stays in place during navigation */
.content {
    scroll-margin-top: 0;
}

/* FAQ styles live in Components/FAQ.razor.css (green-ink card design). */

/* Search Container Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.search-header h1 {
    color: var(--assisto-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-header .lead {
    color: var(--assisto-secondary-text);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Shared Page Container */
.page-container {
    margin: 0 auto;
    padding: 0;
}

/* Affiliate Program Styles */
.affiliate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.affiliate-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.affiliate-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.affiliate-card h2 {
    color: var(--assisto-primary);
    margin-bottom: 1.5rem;
}

.affiliate-description {
    margin: 2rem 0;
    line-height: 1.6;
}

.affiliate-cta {
    text-align: center;
    margin-top: 2rem;
}

.affiliate-cta .btn-primary {
    background-color: var(--assisto-primary);
    border-color: var(--assisto-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.affiliate-cta .btn-primary:hover {
    background-color: var(--assisto-primary-focus);
    border-color: var(--assisto-primary-focus);
}

.citation-results {
    margin: 0 auto;
    margin-bottom: 40px;
    max-width: 1024px;
}

.citation {
    padding: 12px;
    max-width: 1024px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-header h2 {
        color: var(--assisto-primary);
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-header .lead {
        color: var(--assisto-secondary-text);
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto;
    }

.highlight {
    color: var(--assisto-highlight-yellow);
    font-weight: bold;
}

/* Survey-ready widget hero highlights are injected via MarkupString,
   so they need global (non-scoped) rules to take effect. */
.survey-ready-text .highlight-yellow,
.survey-ready-text .highlight-green {
    color: var(--assisto-highlight-yellow);
    font-weight: 700;
}

.survey-ready-text .hero-cta-line {
    display: block;
    margin-top: 0.75rem;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 0;
    width: 90%;
}

/* Green-ink revamp section headers (eyebrow + accent-underlined title + intro),
   shared across pages, so global rather than per-component scoped.

   Deliberately NOT reusing .section-header: that legacy block centres its content and
   restyles any h2 inside it (teal, 2rem), which overrode .sec-title-ink. */
/* Single container for every citation-card block (Home, State, Latest Citations) — change
   width/padding here and all three follow. */
.citations-section {
    max-width: 1120px;
    margin: 4.5rem auto;
    padding: 0 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Phones: claw back the gutters — the summaries are the point, give them the width. */
@media (max-width: 600px) {
    .citations-section {
        padding: 0 12px;
        margin: 3rem auto;
    }
}

.sec-head {
    text-align: left;
    margin-bottom: 26px;
}

/* Footer under a citation-card grid: ghost "view all" on the left, alerts nudge on the right.
   Shared by Home, State and Latest Citations. */
.citations-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.citations-viewall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
    background: #fff;
    color: #123530;
    border: 1.5px solid #123530;
    transition: background 0.15s ease;
}

.citations-viewall:hover {
    background: #f2faf7;
    color: #123530;
}

.citations-alert {
    font-size: 0.95rem;
    color: #3f524c;
}

.citations-alert a {
    color: #0b8f81;
    font-weight: 650;
}

.sec-eyebrow {
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0b8f81;
    margin-bottom: 10px;
}

.sec-title-ink {
    display: inline-block;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.25;
    color: #123530;
    padding-bottom: 8px;
    border-bottom: 3px solid #0ba292;
    margin: 0;
    text-wrap: balance;
}

.sec-intro {
    margin: 14px 0 0;
    font-size: 1.02rem;
    color: #3f524c;
}

/* ========================================
   MODAL STYLES - Shared across components
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Above .f-tag-help (z-index 1002) so help triggers/tooltips on background
       cards don't bleed through the overlay. */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.visible {
    display: flex;
    overflow: hidden;
    height: 100vh;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    border-bottom: #424242;
}

.modal-panel {
    pointer-events: all;
    z-index: 1001;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    width: 90%;
    max-height: 90%;
    margin: auto;
    display: none;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    padding: 1rem 1.5rem 1rem 1.5rem;
    overflow-y: scroll;
}

    .modal-panel.visible {
        overflow: hidden;
        height: 100vh;
        display: flex;
    }

.modal-content {
    width: 100%;
    overflow-y: auto;
    padding: 2rem;
}

/* Complete report modal states */
.complete-report {
    display: none;
}

.modal.complete .complete-report {
    display: block;
}

.close-complete-report-text {
    display: none;
}

.modal.complete .see-complete-report-text {
    display: none;
}

.modal.complete .close-complete-report-text {
    display: inline-block;
}

/* Facility finder dropdown popup (portals to the TelerikRootComponent, so it can't be styled
   from the component's scoped CSS). The list is virtualized with a fixed ItemHeight, so every
   row must stay on a single line — long facility names get ellipsized instead of wrapping and
   overlapping the rows below. */

/* Viewport-position the popup. Telerik computes its inline top/left from
   getBoundingClientRect + window scroll — viewport coordinates on this site, because the
   body (not the window) is the scroll container. That's only correct if the popup has no
   positioned ancestor. On Home (layout-level TelerikRootComponent) it lands directly under
   <body>, so it works; on static-SSR pages (State) the island root puts it inside
   .page[position:relative], which is scrolled thousands of px up — the popup opened
   off-screen ("clicking does nothing"). position:fixed makes the coordinates mean the same
   thing in both cases. Two classes to out-rank Telerik's .k-animation-container rule. */
.k-animation-container.facility-finder-popup {
    position: fixed;
}

.facility-finder-popup .k-list-item {
    min-width: 0;
}

.facility-finder-popup .k-list-item .k-list-item-text {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsive modal styles */
@media (max-width: 480px) {
    .modal.visible, .modal-panel.visible {
        overflow: scroll;
    }

    /* Full-screen modal on mobile for easier reading. */
    .modal-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .modal-panel.visible {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
    }
}
