html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

a:focus-visible, .nav-link:focus-visible, button:focus-visible, [role=button]:focus-visible {
  outline: 3px solid #258cfb;
  outline-offset: 2px;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4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azor-error-boundary::after {
        content: "An error has occurred."
    }

.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;
}
/* ---- Ubisum ---- */
:root {
    --evolve-accent: #1f6f8b;
    --evolve-muted: #565e66;
}

h1 { font-size: 1.75rem; font-weight: 600; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

.page-lead { color: var(--evolve-muted); margin-bottom: 1.5rem; max-width: 52rem; }

.card { border-radius: 0.6rem; }
.card-title { font-size: 1rem; font-weight: 600; }

.req-list .form-check { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.req-met label { text-decoration: line-through; color: var(--evolve-muted); }
.evidence-badge { font-size: 0.7rem; }

.rollup-panel { background: #f6f8fa; border-radius: 0.6rem; padding: 1rem; max-height: 75vh; overflow-y: auto; }
.rollup-panel h3 { margin-top: 0.75rem; }
.rollup-answer { font-size: 0.875rem; border-left: 3px solid #d0d7de; padding-left: 0.6rem; margin-bottom: 0.5rem; white-space: pre-wrap; }
.rollup-answer .when { color: var(--evolve-muted); font-size: 0.75rem; display: block; }

.question-hint { font-size: 0.8rem; color: var(--evolve-muted); }

.score-bar { height: 0.5rem; border-radius: 0.25rem; background: #e9ecef; overflow: hidden; }
.score-bar > div { height: 100%; background: var(--evolve-accent); }

.rating-pill { display: inline-block; min-width: 1.6rem; text-align: center; border-radius: 1rem; background: #e7f1f5; color: #124556; font-size: 0.8rem; padding: 0 0.4rem; }

.brief-preview { background: #fff; border: 1px solid #dee2e6; border-radius: 0.6rem; padding: 1.5rem 2rem; }
.brief-preview table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.brief-preview th, .brief-preview td { border-bottom: 1px solid #dee2e6; padding: 0.3rem 0.5rem; text-align: left; }

.saved-note { color: #2b7a4b; font-size: 0.85rem; }
.unsaved-note { color: #8a5a00; font-size: 0.85rem; font-weight: 600; }
/* The reflection's Save buttons stay at the bottom of the screen while you scroll through the questions. */
.save-bar { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid #d0d7de; padding-top: 0.75rem; padding-bottom: 0.75rem; margin-bottom: 2rem; }

@media print {
    .no-print, .sidebar, #blazor-error-ui { display: none !important; }
    .page { display: block; }
    .brief-preview { border: none; padding: 0; }
    article { padding: 0 !important; }
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    z-index: 1000;
    background: #fff;
    color: #0b4f8a;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    box-shadow: 0 0 0 2px #0b4f8a;
}
.skip-link:focus { top: 0.5rem; }
main:focus { outline: none; }
.text-secondary { color: #565e66 !important; }
.rating-group .btn { min-width: 2.5rem; min-height: 2.25rem; padding: 0.25rem 0.5rem; }
.card-body { min-width: 0; }
.table-responsive { position: relative; } /* keeps visually hidden headings inside the scroll area */

/* Back link above each page's heading */
.back-nav { margin: 0.75rem 0 0.25rem; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    min-height: 24px; padding: 0.25rem 0.5rem 0.25rem 0;
    color: var(--bs-secondary-color, #555); text-decoration: none; font-size: 0.95rem;
}
.back-link:hover, .back-link:focus-visible { color: var(--bs-link-color, #0b5ed7); text-decoration: underline; }
.plan-prompt { white-space: pre-wrap; max-height: 20rem; overflow-y: auto; }

/* A column beside the reflection questions that stays in view while scrolling on wide screens. */
@media (min-width: 992px) {
    .side-column { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

/* Form controls need a 3:1 contrast against the page so people can see where to type and tick
   (WCAG 1.4.11). Bootstrap's default border (#dee2e6) is only 1.3:1. */
.form-control:not(:focus), .form-select:not(:focus) { border-color: #8a9299; }   /* 3.2:1 on white */
.form-check-input { border-color: #767676; }                                      /* 4.5:1 on white */
.form-switch .form-check-input:not(:checked):not(:focus) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23767676'/%3e%3c/svg%3e");
}
.rollup-details > summary { font-weight: 600; padding: 0.5rem 0; }
/* Hidden from role readiness: said in words by a badge, with a dashed border, at full contrast. */
.achievement-hidden { border-style: dashed; }
.feedback-screenshot { display: block; max-width: 100%; max-height: 16rem; border: 1px solid var(--bs-border-color); border-radius: .25rem; }

/* On phones a wide table becomes one block per row, each cell with its column name, so the row's buttons stay on
   screen without scrolling sideways (WCAG 1.4.10). Each cell carries its column name in data-label. */
@media (max-width: 767.98px) {
    .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .table-stack tr { display: block; border-bottom: 1px solid #d0d7de; padding: 0.5rem 0; }
    .table-stack td { display: flex; gap: 1rem; justify-content: space-between; align-items: center; border: 0; padding: 0.25rem 0; text-align: left; }
    .table-stack td[data-label]::before { content: attr(data-label); font-weight: 600; flex: 0 0 auto; }
    .table-stack td.table-stack-actions { justify-content: flex-start; flex-wrap: wrap; gap: 0.5rem; }
}

/* A revenue limit that is close: dark amber, 4:1 against the bar's grey track (Bootstrap's yellow is 1.2:1). */
.progress-bar.bar-near { background-color: #b35c00; }

/* "Feedback for the Ubisum team": show the fields for the ticked type, and the email field only when contact is allowed.
   Without :has() support every field shows, which still works. */
.team-feedback-form:has(#tf-type-general:checked) .tf-message,
.team-feedback-form:not(:has(#tf-type-general:checked)) .tf-general,
.team-feedback-form:not(:has(#tf-may-contact:checked)) .tf-contact,
.team-feedback-form:not(:has(#tf-may-quote:checked)) .tf-quote { display: none; }
.tf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Start page quotes (PraiseCarousel.razor): three side by side on wide screens, one on phones. */
.praise-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .25rem; }
.praise-item { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
.praise-item blockquote { font-size: 1.05rem; }
@media (max-width: 767.98px) { .praise-item { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .praise-track { scroll-behavior: auto; } }
.praise-controls:not([hidden]) { display: flex; gap: .5rem; }
