:root {
    --app-valid-color: #26b050;
    --app-invalid-color: red;
    --app-error-ui-bg: lightyellow;
    --app-boundary-bg: #b32121;
    --app-boundary-text: white;
    --app-loading-track-color: #e0e0e0;
    --app-loading-progress-color: #0F4C5C;
    --app-code-color: #c02d76;

    /* GeoCivis brand (mirrors Theme/AppTheme.cs) -- used by the Home page */
    --app-gc-teal: #0F4C5C;
    --app-gc-teal-deep: #0B3A46;
    --app-gc-teal-soft: #E3EEF0;
    --app-gc-terracotta: #D9663A;
    --app-gc-terracotta-text: #A94A22; /* darker terracotta for small text on light backgrounds (AA contrast) */
    --app-gc-terracotta-light: #F2B79E; /* terracotta tint for text on teal */
    --app-gc-ivory: #F7F4EE;
    --app-gc-ink: #16323A;
    --app-gc-muted: #4A5A5F;
    --app-gc-line: #E2DBCC;
    --app-gc-heading-font: 'Outfit', 'IBM Plex Sans', system-ui, sans-serif;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--app-valid-color);
}

.invalid {
    outline: 1px solid var(--app-invalid-color);
}

.validation-message {
    color: var(--app-invalid-color);
}

#blazor-error-ui {
    color-scheme: light only;
    background: var(--app-error-ui-bg);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--app-boundary-bg);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--app-boundary-text);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--app-loading-track-color);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--app-loading-progress-color);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: var(--app-code-color);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ======================================================================
   Home (Pages/Public/Home.razor) -- GeoCivis landing page. All classes
   are prefixed gc- so they can't collide with MudBlazor's own.
   ====================================================================== */

.gc-home {
    color: var(--app-gc-ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

.gc-home h1, .gc-home h2, .gc-home h3, .gc-home p, .gc-home ol, .gc-home ul, .gc-home blockquote {
    margin: 0;
}

.gc-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.gc-band { padding: 88px 0; scroll-margin-top: 64px; /* clear the fixed app bar on #anchor jumps */ }
.gc-band-teal { background: var(--app-gc-teal); color: var(--app-gc-ivory); }
.gc-band-ivory { background: var(--app-gc-ivory); }
.gc-band-white { background: #FFFFFF; }

/* ---- Type ---- */
.gc-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--app-gc-terracotta-text);
    margin-bottom: 12px !important;
}
.gc-eyebrow-light { color: var(--app-gc-terracotta-light); }

.gc-h2 {
    font-family: var(--app-gc-heading-font);
    font-weight: 600;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    color: var(--app-gc-teal);
    margin-bottom: 20px !important;
}
.gc-on-dark { color: var(--app-gc-ivory); }

.gc-h3 {
    font-family: var(--app-gc-heading-font);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--app-gc-teal);
    margin-bottom: 6px !important;
}

.gc-body { font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px !important; }
.gc-body-sm { font-size: 0.95rem; line-height: 1.55; color: var(--app-gc-muted); }
.gc-muted { color: var(--app-gc-muted); }

.gc-section-head { max-width: 720px; margin-bottom: 40px; }

/* ---- Buttons & links ---- */
.gc-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gc-cta-center { justify-content: center; }

.gc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.gc-btn:hover { transform: translateY(-1px); }
.gc-btn:focus-visible { outline: 3px solid var(--app-gc-terracotta-light); outline-offset: 3px; }

.gc-btn-light { background: var(--app-gc-ivory); color: var(--app-gc-teal); }
.gc-btn-light:hover { background: #FFFFFF; }

.gc-btn-ghost { color: var(--app-gc-ivory); border: 1.5px solid rgba(247, 244, 238, 0.5); }
.gc-btn-ghost:hover { background: rgba(247, 244, 238, 0.1); border-color: var(--app-gc-ivory); }

.gc-link-light { color: var(--app-gc-ivory); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.gc-link-light:hover { color: #FFFFFF; }

/* ---- Hero ---- */
.gc-hero { padding: 96px 0 104px; overflow: hidden; }

.gc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.gc-hero-title {
    font-family: var(--app-gc-heading-font);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--app-gc-ivory);
}

.gc-hero-subtitle {
    font-family: var(--app-gc-heading-font);
    font-weight: 300;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    color: var(--app-gc-terracotta-light);
    margin-top: 12px !important;
}

.gc-hero-lead { font-size: 1.1rem; line-height: 1.65; max-width: 560px; margin-top: 20px !important; opacity: 0.92; }
.gc-hero-note { font-size: 0.9rem; margin-top: 18px !important; opacity: 0.8; }

.gc-hero-art { display: flex; justify-content: center; }

.gc-hero-halo {
    width: min(360px, 80%);
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(247, 244, 238, 0.14) 0%, rgba(247, 244, 238, 0.05) 60%, rgba(247, 244, 238, 0) 72%);
    box-shadow: inset 0 0 0 1px rgba(247, 244, 238, 0.12);
}

.gc-hero-mark { width: 44%; height: auto; }

/* ---- Story ---- */
.gc-story {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.gc-quote {
    font-family: var(--app-gc-heading-font);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--app-gc-teal);
    border-left: 4px solid var(--app-gc-terracotta);
    padding: 4px 0 4px 20px;
    margin-top: 28px !important;
}

.gc-pillars { display: flex; flex-direction: column; gap: 16px; }

.gc-pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--app-gc-line);
    border-radius: 16px;
    padding: 20px;
}

.gc-pillar-icon, .gc-step-icon, .gc-category-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--app-gc-teal-soft);
    color: var(--app-gc-teal);
}
.gc-pillar-icon { width: 48px; height: 48px; }
.gc-pillar-icon .mud-icon-root, .gc-step-icon .mud-icon-root { font-size: 1.5rem; }

/* ---- How it works ---- */
.gc-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gc-step {
    border: 1px solid var(--app-gc-line);
    border-radius: 18px;
    padding: 24px;
    background: var(--app-gc-ivory);
}

.gc-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.gc-step-num {
    font-family: var(--app-gc-heading-font);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--app-gc-terracotta);
}
.gc-step-icon { width: 44px; height: 44px; }

/* ---- Product preview ---- */
.gc-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.gc-map {
    position: relative;
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--app-gc-line);
    box-shadow: 0 12px 32px rgba(15, 76, 92, 0.12);
}

.gc-map-canvas { position: absolute; inset: 0; }
.gc-map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

.gc-pin {
    position: absolute;
    width: 38px;
    height: 38px;
    margin: -38px 0 0 -19px; /* anchor the pin's tip on its coordinate */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--app-gc-teal);
    box-shadow: 0 4px 10px rgba(11, 58, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gc-pin-inner { transform: rotate(45deg); display: inline-flex; color: var(--app-gc-ivory); }
.gc-pin-inner .mud-icon-root { font-size: 1.15rem; }
.gc-pin-selected { background: var(--app-gc-terracotta); width: 46px; height: 46px; margin: -46px 0 0 -23px; z-index: 1; }
.gc-pin-selected .mud-icon-root { font-size: 1.35rem; }

.gc-popup {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 280px;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 58, 70, 0.22);
    z-index: 2;
}

.gc-popup-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.gc-popup-body { padding: 14px 16px 16px; }
.gc-chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.gc-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--app-gc-teal-soft);
    color: var(--app-gc-teal);
}
.gc-tag-status { background: #FBE6DC; color: var(--app-gc-terracotta-text); }

.gc-popup-title { font-family: var(--app-gc-heading-font); font-weight: 600; font-size: 1.05rem; color: var(--app-gc-teal); line-height: 1.3; }

.gc-popup-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--app-gc-muted); margin-top: 12px; }
.gc-popup-meta span, .gc-popup-link { display: inline-flex; align-items: center; gap: 4px; }
.gc-popup-meta .mud-icon-root { font-size: 1rem; }

.gc-popup-link { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--app-gc-terracotta-text); }
.gc-popup-link .mud-icon-root { font-size: 1rem; }

.gc-side { display: flex; flex-direction: column; gap: 24px; }

.gc-card {
    background: #FFFFFF;
    border: 1px solid var(--app-gc-line);
    border-radius: 20px;
    padding: 24px;
}

.gc-card-title { font-family: var(--app-gc-heading-font); font-weight: 600; font-size: 1.1rem; color: var(--app-gc-teal); margin-bottom: 16px !important; }
.gc-card-foot { font-size: 0.85rem; color: var(--app-gc-muted); margin-top: 16px !important; }

.gc-timeline { list-style: none; padding: 0; }

.gc-tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.gc-tl-item:last-child { padding-bottom: 0; }
.gc-tl-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--app-gc-line);
}
.gc-tl-done:not(:last-child)::before { background: var(--app-gc-teal); }

.gc-tl-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--app-gc-line);
    background: #FFFFFF;
    color: var(--app-gc-ivory);
    position: relative;
}
.gc-tl-dot .mud-icon-root { font-size: 0.9rem; }
.gc-tl-done .gc-tl-dot { background: var(--app-gc-teal); border-color: var(--app-gc-teal); }
.gc-tl-current .gc-tl-dot { border-color: var(--app-gc-terracotta); box-shadow: 0 0 0 4px #FBE6DC; }
.gc-tl-current .gc-tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--app-gc-terracotta); }

.gc-tl-title { font-weight: 600; font-size: 0.95rem; }
.gc-tl-current .gc-tl-title { color: var(--app-gc-terracotta-text); }
.gc-tl-next .gc-tl-title { color: var(--app-gc-muted); }
.gc-tl-text { font-size: 0.85rem; line-height: 1.45; color: var(--app-gc-muted); }

.gc-votes { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.gc-votes .gc-card-title { margin-bottom: 6px !important; }
.gc-vote-dots { display: flex; gap: 8px; flex-shrink: 0; }
.gc-vote-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--app-gc-line);
    color: var(--app-gc-line);
}
.gc-vote-used { border: none; background: var(--app-gc-terracotta); color: #FFFFFF; }

/* ---- Categories ---- */
.gc-categories {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.gc-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--app-gc-line);
    background: var(--app-gc-ivory);
    font-weight: 500;
    font-size: 0.95rem;
}
.gc-category-icon { width: 38px; height: 38px; border-radius: 10px; }
.gc-category-icon .mud-icon-root { font-size: 1.3rem; }

/* ---- Language menu (LanguageSwitcher, 2026-10-22) ---- */
.gc-language-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}
.gc-flag {
    display: inline-flex;
    flex-shrink: 0;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.gc-flag svg { width: 100%; height: 100%; display: block; }
.gc-language-name { flex: 1; }
.gc-language-current { color: var(--app-gc-teal); }

/* ---- Closing CTA & footer ---- */
.gc-closing-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.gc-closing-mark { width: 56px; height: auto; margin-bottom: 24px; }
.gc-closing .gc-hero-lead { margin-left: auto; margin-right: auto; }

.gc-footer { background: var(--app-gc-teal-deep); color: rgba(247, 244, 238, 0.8); padding: 24px 0; font-size: 0.9rem; }
.gc-footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .gc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gc-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gc-preview { grid-template-columns: minmax(0, 1fr); }
    .gc-side { flex-direction: row; align-items: flex-start; }
    .gc-side > .gc-card { flex: 1; }
}

@media (max-width: 860px) {
    .gc-band { padding: 64px 0; }
    .gc-hero { padding: 56px 0 64px; }
    .gc-hero-grid, .gc-story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .gc-hero-art { display: none; }
    .gc-side { flex-direction: column; }
    .gc-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .gc-inner { padding: 0 16px; }
    .gc-steps { grid-template-columns: minmax(0, 1fr); }
    .gc-categories { gap: 10px; }
    .gc-category { padding: 10px 12px; gap: 10px; font-size: 0.875rem; }
    .gc-category-icon { width: 32px; height: 32px; }
    .gc-cta-row .gc-btn { flex: 1 1 100%; }
    /* The popup drops below the map on narrow screens instead of covering it. */
    .gc-map { min-height: 0; display: flex; flex-direction: column; }
    .gc-map-canvas { position: relative; height: 300px; flex-shrink: 0; }
    .gc-popup { position: relative; right: auto; top: auto; width: auto; border-radius: 0; box-shadow: none; border-top: 1px solid var(--app-gc-line); }
    .gc-votes { flex-direction: column; align-items: flex-start; }
}

/* ---- Notifications page (Pages/Private/Notifications.razor) ----
   One row per notification. Colors come from the MudBlazor theme variables
   so the rows follow the palette in Theme/AppTheme.cs. */
.gc-notification {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.gc-notification:hover,
.gc-notification--expanded {
    background-color: var(--mud-palette-action-default-hover);
}

.gc-notification:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

/* Unread marker: a dot that keeps its space when the row is read, so the
   text never shifts sideways. */
.gc-notification-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 16px;
    border-radius: 50%;
    background-color: transparent;
}

.gc-notification--unread .gc-notification-dot {
    background-color: var(--mud-palette-secondary);
}

/* min-width: 0 lets the flex child shrink, which the ellipsis below needs. */
.gc-notification-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 8px;
}

.gc-notification-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
}

.gc-notification--unread .gc-notification-title {
    font-weight: 600;
}

/* Unread is never signalled by color or weight alone. */
.gc-notification-new {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--app-gc-terracotta-text);
}

.gc-notification-when {
    margin-left: auto;
    white-space: nowrap;
}

.gc-notification-text {
    overflow-wrap: anywhere;
}

/* The eye and trash buttons, side by side and never wrapping under each other. */
.gc-notification-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.gc-notification-text--clipped {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .gc-notification { transition: none; }
}

/* ---- Customer logo (Layout/CustomerLogo.razor) ----
   A square box that the whole image fits inside, whatever its proportions;
   its side is set inline by the component. Without a logo: a neutral tile
   with the building icon. */
.gc-logo {
    display: inline-grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    background: #FFFFFF;
}

.gc-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gc-logo--none {
    border-color: transparent;
    background: var(--app-gc-teal-soft);
    color: #7FA1A9;
}

/* An organisation's logo and name (Layout/OrganisationCard.razor,
   2026-10-17): "Your organisation" on Profile, "Managed by" on the incident
   detail page. A long name wraps beside the logo. */
.gc-org {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gc-org-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The Logo block of the customer dialog (EditCustomerDialog.razor): the
   preview, what is attached, and the buttons, which wrap under on a phone. */
.gc-logo-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 8px;
}

.gc-logo-field-text {
    flex: 1 1 180px;
    min-width: 0;
}

.gc-logo-field-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gc-logo-field-help {
    display: block;
    overflow-wrap: anywhere;
}

.gc-logo-field-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* ---------- Geofences page and dialog (2026-10-13, mockups/geofences.html) ---------- */

/* Grid cells: the shape's outline before the name, the logo before the customer. */
.gc-geofence-name,
.gc-geofence-customer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gc-outline {
    flex: none;
}

.gc-outline path {
    fill: rgba(217, 102, 58, 0.18); /* --app-gc-terracotta, faded */
    fill-rule: evenodd;
    stroke: var(--app-gc-terracotta);
    stroke-width: 1.5;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.gc-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* The dialog: the fields side by side, then the map. */
.gc-geofence-dialog-content {
    display: flex;
    flex-direction: column;
}

.gc-geofence-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gc-geofence-map-wrap {
    position: relative;
    height: 56vh;
    min-height: 320px;
    margin-top: 12px;
    border: 1px solid var(--app-gc-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-gc-ivory);
}

.gc-geofence-map {
    position: absolute;
    inset: 0;
}

.gc-geofence-map-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-geofence-map-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* At the top, between the tool buttons and the zoom buttons, so it doesn't
   hide the shape's lower corners (2026-10-14; it was at the bottom). Clicks
   go through it to the map. */
.gc-geofence-map-hint {
    position: absolute;
    left: 50%;
    top: 12px;
    z-index: 2;
    transform: translateX(-50%);
    max-width: calc(100% - 380px);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22, 50, 58, 0.86); /* --app-gc-ink */
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}

.gc-geofence-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--app-gc-ivory);
}

.gc-geofence-map-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 6px;
}

.gc-geofence-map .ol-attribution {
    font-size: 11px;
}

/* A phone (below MudBlazor's sm, 600px): the dialog takes the whole screen,
   the fields stack, and the map takes the height that is left. */
@media (max-width: 599.98px) {
    .mud-dialog.gc-geofence-dialog {
        width: 100vw;
        max-width: 100vw !important;
        height: 100dvh;
        max-height: 100dvh !important;
        margin: 0;
        border-radius: 0;
    }

    .gc-geofence-dialog .gc-geofence-dialog-content {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .gc-geofence-fields {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .gc-geofence-map-wrap {
        flex: 1 1 auto;
        height: auto;
        min-height: 300px;
    }

}

/* A narrow dialog (a phone, a small window): no room for the hint beside the
   tool buttons, so it goes under them. */
@media (max-width: 959.98px) {
    .gc-geofence-map-hint {
        top: 52px;
        max-width: calc(100% - 72px);
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Incident create page (Pages/Private/NewIncident, 2026-10-15)
   Photos and the text on the left, the location on the right; one column
   below MudBlazor's md (960px).
   ========================================================================== */
.gc-incident-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.gc-incident-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gc-required {
    color: var(--app-gc-terracotta-text);
}

/* A card with something to fix after a try to submit. */
.gc-card-error {
    outline: 2px solid var(--mud-palette-error);
    outline-offset: -2px;
}

/* Photos: four square tiles in a row, two on a phone. */
.gc-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gc-photo-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--app-gc-line);
    background: var(--app-gc-ivory);
}

.gc-photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-photo-main {
    border: 2px solid var(--app-gc-terracotta);
}

.gc-photo-remove {
    position: absolute !important;
    top: 4px;
    right: 4px;
}

.gc-photo-mainbtn {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 50, 58, 0.78); /* --app-gc-ink */
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.gc-photo-main .gc-photo-mainbtn {
    background: var(--app-gc-terracotta);
}

.gc-photo-error {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 4px 6px;
    background: rgba(176, 0, 32, 0.88);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.25;
}

/* The file picker's wrapper must not break the grid. */
.gc-photo-add-wrap {
    display: contents;
}

.gc-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    border-style: dashed;
    color: var(--app-gc-teal);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.gc-photo-add:disabled {
    cursor: default;
    opacity: 0.7;
}

/* The location map. */
.gc-pin-map-wrap {
    position: relative;
    height: 52vh;
    min-height: 320px;
    border: 1px solid var(--app-gc-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-gc-ivory);
}

.gc-pin-map {
    position: absolute;
    inset: 0;
}

.gc-pin-map .ol-attribution {
    font-size: 11px;
}

.gc-pin-map-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.gc-pin-map-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Above the OpenStreetMap credit; clicks go through it to the map. */
.gc-pin-map-hint {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 2;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22, 50, 58, 0.86); /* --app-gc-ink */
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}

.gc-pin-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--app-gc-ivory);
}

.gc-pin-map-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 6px;
}

.gc-address-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.gc-address-row > .mud-input-control {
    flex: 1 1 auto;
}

.gc-incident-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 959.98px) {
    .gc-incident-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .gc-pin-map-wrap {
        height: 60vh;
    }
}

@media (max-width: 599.98px) {
    .gc-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Incidents map page (Pages/Private/Incidents, 2026-10-16)
   The filter bar, then the map filling the rest of the screen (the app bar
   and MainLayout's my-4 container margins taken off). The selected
   incident's drawer sits on the right of the map; a sheet from the bottom on
   a phone.
   ========================================================================== */
.gc-incidents-page {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mud-appbar-height, 64px) - 32px);
    min-height: 480px;
}

.gc-incidents-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-bottom: 10px;
}

.gc-incidents-select {
    flex: 0 1 220px;
    min-width: 160px;
}

.gc-incidents-total {
    margin-left: auto;
    white-space: nowrap;
}

.gc-incidents-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--app-gc-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-gc-ivory);
}

.gc-incidents-map {
    position: absolute;
    inset: 0;
}

.gc-incidents-map .ol-attribution {
    font-size: 11px;
}

.gc-incidents-zoom {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Clicks go through it to the map, except on its button. */
.gc-incidents-hint {
    position: absolute;
    left: 50%;
    top: 12px;
    z-index: 2;
    transform: translateX(-50%);
    max-width: calc(100% - 120px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22, 50, 58, 0.86); /* --app-gc-ink */
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}

.gc-incidents-hint-btn {
    pointer-events: auto;
    color: var(--app-gc-terracotta-light) !important;
}

.gc-incidents-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--app-gc-ivory);
}

/* The phone's "Report" button; the filter bar's is used on a computer. */
.gc-incidents-fab {
    position: absolute !important;
    right: 16px;
    bottom: 32px;
    z-index: 2;
    display: none !important;
}

/* The drawer. */
.gc-incident-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 380px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border-left: 1px solid var(--app-gc-line);
    box-shadow: -4px 0 16px rgba(22, 50, 58, 0.12);
}

.gc-incident-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border-bottom: 1px solid var(--app-gc-line);
}

.gc-incident-side-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
}

.gc-incident-side-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--app-gc-ivory);
}

.gc-incident-side-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-incident-side-nphotos {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(22, 50, 58, 0.8);
    color: #fff;
    font-size: 0.75rem;
}

/* At most six lines here; the detail page shows all of it. */
.gc-incident-side-desc {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.gc-incident-side-facts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.875rem;
}

.gc-incident-side-facts > div {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.gc-incident-side-votes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--app-gc-teal-soft);
    font-size: 0.875rem;
}

.gc-incident-side-foot {
    padding: 10px 12px;
    border-top: 1px solid var(--app-gc-line);
}

@media (max-width: 599.98px) {
    .gc-incidents-page {
        height: calc(100dvh - var(--mud-appbar-height, 56px) - 32px);
    }

    .gc-incidents-select {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .gc-incidents-report {
        display: none !important;
    }

    .gc-incidents-fab {
        display: inline-flex !important;
    }

    .gc-incident-side {
        top: auto;
        width: 100%;
        height: 62%;
        border-left: 0;
        border-top: 1px solid var(--app-gc-line);
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -4px 16px rgba(22, 50, 58, 0.16);
    }
}

/* ==========================================================================
   Incident detail page (Pages/Private/IncidentDetail, 2026-10-16)
   The photos, description and history on the left; the location and the
   votes on the right; one column below 960px.
   ========================================================================== */
.gc-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.gc-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.gc-detail-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gc-detail-photo {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--app-gc-ivory);
}

.gc-detail-photo img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #111;
}

.gc-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.gc-detail-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: var(--app-gc-ivory);
    cursor: pointer;
}

.gc-detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-detail-thumb-on {
    border-color: var(--app-gc-terracotta);
}

.gc-pre-line {
    white-space: pre-line;
}

/* The history: newest first, one dot per change on a line. */
.gc-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gc-history li {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 6px 0 10px;
}

.gc-history li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: -6px;
    width: 2px;
    background: var(--app-gc-line);
}

.gc-history-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 9px;
    border-radius: 50%;
}

.gc-history-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gc-detail-map-wrap {
    position: relative;
    height: 240px;
    border: 1px solid var(--app-gc-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-gc-ivory);
}

.gc-detail-map {
    position: absolute;
    inset: 0;
}

.gc-detail-map .ol-attribution {
    font-size: 10px;
}

/* The status dialogs. */
.gc-status-photo {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.gc-status-choice {
    display: flex;
    flex-direction: column;
}

.gc-status-choice-help {
    margin: -8px 0 4px 42px;
}

.gc-status-photo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.gc-status-photo-preview img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 959.98px) {
    .gc-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The map's message ("No incidents here match these filters.") on a phone:
   a strip beside the zoom buttons instead of a narrow pill, which wrapped
   into a circle (2026-10-16). */
.gc-incidents-hint-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 599.98px) {
    .gc-incidents-hint {
        left: 60px;
        right: 10px;
        max-width: none;
        transform: none;
        justify-content: space-between;
        text-align: left;
        border-radius: 10px;
        padding: 6px 6px 6px 12px;
        line-height: 1.3;
    }
}

/* ==========================================================================
   Votes (Pages/Private/IncidentVotes, 2026-10-16): the count, the Vote or
   "Remove my vote" button and the votes left. Compact in the map's drawer.
   ========================================================================== */
.gc-votes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-votes-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-votes-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.gc-votes-compact {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--app-gc-teal-soft);
    font-size: 0.875rem;
    gap: 6px;
}

.gc-votes-compact .gc-votes-count {
    gap: 6px;
}

/* "You voted for this", where the Vote button was (votes are moved, never
   removed; 2026-10-17). */
.gc-votes-mine {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Comments (Pages/Private/IncidentComments, 2026-10-17): the box for the
   company's staff, then the comments, newest first.
   ========================================================================== */
.gc-comment-box {
    margin-bottom: 16px;
}

.gc-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gc-comments li {
    padding: 10px 0;
    border-top: 1px solid var(--app-gc-line);
}

.gc-comments li:first-child {
    border-top: none;
    padding-top: 0;
}

.gc-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 4px;
}

/* A link to the site inside a notification's text (NotificationText,
   2026-10-17): the incident's page. Long addresses break instead of
   widening the row. */
.gc-notification-link {
    color: var(--app-gc-teal);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
