/* ==========================================================================
   RAP - Rent A Pensioner
   One stylesheet for the whole site. Bootstrap 5 does the grid and widgets;
   this file only adds the brand, the landing page and the role themes.
   ========================================================================== */

:root {
    /* Funky palette: violet, hot pink, lime, sunshine yellow, electric blue on a cool white */
    --rap-dark: #1a1530;
    --rap-violet: #7b2ff7;
    --rap-pink: #ff2e88;
    --rap-lime: #c8f53a;
    --rap-yellow: #ffd447;
    --rap-blue: #2f5bff;
    --rap-bg: #f7f5ff;
    --rap-soft: #efe7ff;
    --rap-ink: #2b2738;
    --rap-muted: #615c74;
    --rap-line: #e6e1f5;
    --rap-radius: 18px;

    /* Role theme - overridden by the mode-* classes on <body> */
    --role: var(--rap-violet);
    --role-dark: #5b17d1;
    --role-soft: #efe7ff;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--rap-ink);
    --bs-link-color-rgb: 123, 47, 247;
    --bs-link-hover-color-rgb: 255, 46, 136;
}

/* Role themes: dashboard + side menu colours follow the active role */
.mode-pensioner { --role: #7b2ff7; --role-dark: #5b17d1; --role-soft: #efe7ff; }
.mode-employer  { --role: #2f5bff; --role-dark: #1d3fd6; --role-soft: #e7edff; }
.mode-admin     { --role: #1a1530; --role-dark: #000000; --role-soft: #ecebf3; }

body {
    background: var(--rap-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .display-font {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 800;
    color: var(--rap-dark);
    letter-spacing: -0.02em;
}

.text-muted-rap { color: var(--rap-muted); }
.text-pre { white-space: pre-line; }
.text-accent { color: var(--rap-pink); }
.text-violet { color: var(--rap-violet); }
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rap-pink);
    margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-sm { padding: .3rem .9rem; }
.btn-rap { background: var(--rap-violet); border-color: var(--rap-violet); color: #fff; }
.btn-rap:hover, .btn-rap:focus { background: var(--rap-pink); border-color: var(--rap-pink); color: #fff; }
.btn-ink { background: var(--rap-dark); border-color: var(--rap-dark); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: #000; color: var(--rap-lime); }
.btn-role { background: var(--role); border-color: var(--role); color: #fff; }
.btn-role:hover, .btn-role:focus { background: var(--role-dark); border-color: var(--role-dark); color: #fff; }
/* Button area: always right-aligned (inline rows and block forms) */
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; margin-left: auto; }
.btn-cancel { background: var(--rap-line); border-color: var(--rap-line); color: var(--rap-dark); }
.btn-cancel:hover, .btn-cancel:focus { background: #d5cdee; border-color: #d5cdee; color: var(--rap-dark); }
.btn-outline-ink { border: 2px solid var(--rap-dark); color: var(--rap-dark); }
.btn-outline-ink:hover, .btn-outline-ink.active { background: var(--rap-dark); border-color: var(--rap-dark); color: #fff; }
.btn-outline-danger { border-width: 2px; } /* Delete / Remove / Cancel buttons, same weight as btn-outline-ink */

/* ---------- Public header / footer ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--rap-line);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.brand-logo { height: 44px; width: auto; }
.brand-mark { height: 36px; width: 36px; }
.site-header .nav-link { font-weight: 600; color: var(--rap-dark); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--rap-violet); }

.site-footer { background: var(--rap-dark); color: #cfd6e2; margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--rap-lime); }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: "Inter", sans-serif; }

/* ---------- Landing ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--rap-dark); color: #e8edf5; }
.section-dark h2 { color: #fff; }

.hero { padding: 2rem 0; background: #fff; overflow: hidden; }
/* Header and hero use the full screen width with a comfortable side margin */
.wide { padding-left: max(1rem, 4vw); padding-right: max(1rem, 4vw); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { font-size: 1.15rem; color: var(--rap-muted); max-width: 36rem; }
/* Artwork: full width in the hero, capped on the info pages so it never dominates */
.crowd-art { width: 100%; height: auto; display: block; }
.page-art { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; }
/* Scrolling band of skills under the hero */
.marquee { background: var(--rap-lime); color: var(--rap-dark); overflow: hidden; white-space: nowrap; padding: .9rem 0; font-weight: 800; font-size: 1.15rem; }
.marquee-track { display: inline-flex; gap: 2.5rem; animation: marquee 40s linear infinite; }
.marquee-track span::after { content: "\2726"; margin-left: 2.5rem; color: var(--rap-violet); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid var(--rap-line);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--rap-dark);
}
.pill-role { background: var(--role-soft); border-color: transparent; color: var(--role-dark); }

.stat-strip { background: var(--rap-dark); color: #fff; padding: 1.75rem 0; }
.stat-strip strong { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--rap-lime); }
.home-count { background: #fff; border: 1px solid var(--rap-line); border-radius: var(--rap-radius); padding: 1.5rem 1rem; font-weight: 700; color: var(--rap-muted); }
.home-count strong { display: block; font-size: 3rem; font-weight: 900; line-height: 1.1; color: var(--rap-violet); }

.audience-card {
    background: #fff;
    border-radius: var(--rap-radius);
    border: 1px solid var(--rap-line);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.audience-card img { width: 100%; height: 260px; object-fit: cover; object-position: left center; background: #fff; }
.audience-card .art-right { object-position: right center; }
.audience-card .body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.audience-card .body .btn { align-self: flex-start; margin-top: auto; }

.tick-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.tick-list li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.tick-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--rap-violet);
    font-weight: 700;
}

.feature {
    background: #fff;
    border-radius: var(--rap-radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--rap-line);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: var(--rap-soft);
    color: var(--rap-violet);
    margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; }

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rap-lime);
    color: var(--rap-dark);
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-bottom: .75rem;
}

.chip-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }

.quote {
    background: #fff;
    border-radius: var(--rap-radius);
    padding: 1.5rem;
    border-left: 5px solid var(--rap-lime);
    height: 100%;
}
.quote p { font-style: italic; }

.cta-band { background: var(--rap-violet); color: #fff; border-radius: var(--rap-radius); padding: 2.5rem; }
.cta-band h2 { color: #fff; }

/* ---------- Cards for people / jobs ---------- */
.rap-card {
    background: #fff;
    border: 1px solid var(--rap-line);
    border-radius: var(--rap-radius);
    padding: 1.25rem;
    height: 100%;
}
.rap-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rap-yellow);
    color: var(--rap-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    object-fit: cover;
}
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.stars { color: var(--rap-yellow); }

/* ---------- Quote of the day ---------- */
.quote-card {
    position: relative;
    background: var(--rap-violet);
    color: #fff;
    border-radius: var(--rap-radius);
    padding: 3rem 2.5rem 2.5rem;
    margin: 0;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.quote-card::before { content: "\201C"; position: absolute; top: 1.5rem; right: 2rem; font-size: 9rem; font-weight: 900; line-height: .7; color: var(--rap-lime); }
.quote-card .eyebrow { color: var(--rap-lime); }
.quote-card blockquote { position: relative; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.quote-card figcaption { font-weight: 600; color: var(--rap-yellow); }
.otp-input { letter-spacing: .5em; text-align: center; font-weight: 800; }
.band-quote { margin: .75rem 0 0; font-style: italic; }
.band-quote span { font-style: normal; font-weight: 600; }

/* ---------- Auth pages ---------- */
.auth-wrap { padding: 3rem 0; }
.auth-card {
    background: #fff;
    border-radius: var(--rap-radius);
    border: 1px solid var(--rap-line);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(26, 21, 48, .08);
}

.form-label { font-weight: 600; color: var(--rap-dark); }
.form-control, .form-select { border-radius: 10px; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--rap-violet); box-shadow: 0 0 0 .2rem rgba(123, 47, 247, .2); }
.field-validation-error, .validation-summary-errors { color: #b42318; font-size: .9rem; }
.validation-summary-valid { display: none; }

.role-choice { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.role-choice label {
    display: block;
    border: 2px solid var(--rap-line);
    border-radius: 12px;
    padding: .9rem 1rem;
    cursor: pointer;
    background: #fff;
}
.role-choice input { margin-right: .5rem; }
.role-choice label:has(input:checked) { border-color: var(--rap-violet); background: var(--rap-soft); }

/* ---------- App layout (dashboard + side menu) ---------- */
.app-shell { display: flex; flex: 1; min-height: 100vh; }

.app-sidebar-wrap { width: 260px; flex-shrink: 0; }
.app-sidebar {
    min-height: 100%;
    background: var(--role);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: background .3s;
}
.app-sidebar .brand { padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; }
.app-sidebar .nav-link {
    color: rgba(255, 255, 255, .85);
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}
.app-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.app-sidebar .btn-link { border-radius: 0; text-decoration: none; }
.app-sidebar .nav-link.active { color: #fff; background: var(--role-dark); border-left-color: var(--rap-lime); }
.app-sidebar .menu-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; padding: 1rem 1.25rem .35rem; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    background: #fff;
    border-bottom: 4px solid var(--role);
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}
/* CV basket button in the top bar (employers) */
.basket-btn { display: inline-flex; align-items: center; gap: .35rem; }
.basket-count { background: var(--rap-lime); color: var(--rap-dark); border-radius: 999px; min-width: 1.4rem; padding: 0 .4rem; font-weight: 800; font-size: .78rem; line-height: 1.4rem; text-align: center; }
.app-topbar .form-select { width: auto; min-width: 11rem; border-color: var(--role); font-weight: 600; color: var(--role-dark); }
.app-content { padding: 1.5rem 1rem 3rem; }
.app-content h1 { font-size: 1.75rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }

.panel {
    background: #fff;
    border: 1px solid var(--rap-line);
    border-radius: var(--rap-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }

.kpi { background: #fff; border-radius: var(--rap-radius); padding: 1.1rem 1.25rem; border-top: 4px solid var(--role); height: 100%; }
.kpi span { font-size: .85rem; color: var(--rap-muted); font-weight: 600; }
.kpi strong { display: block; font-size: 2rem; font-weight: 800; color: var(--role-dark); }
/* Dashboard count boxes that click through to their list */
.kpi-link { display: block; text-decoration: none; color: inherit; transition: background .15s, transform .15s; }
.kpi-link:hover, .kpi-link:focus { background: var(--role-soft); transform: translateY(-2px); }

.welcome-band { background: var(--role); color: #fff; border-radius: var(--rap-radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.welcome-band h1 { color: #fff; }

.table { --bs-table-bg: transparent; vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rap-muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form .form-control, .inline-form .form-select { width: auto; flex: 1 1 10rem; }
.inline-form .code-input { flex: 0 0 4.5rem; }
.list-row { padding: .65rem 0; border-bottom: 1px solid var(--rap-line); }
.inline-form .quote-input { flex: 3 1 20rem; }
.inline-form .user-type-select { flex: 0 1 13rem; }
.user-show-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
.user-show-choices [hidden] { display: none; }
/* "Add" panels on the maintenance pages sit on top, apart from the list */
.add-panel { border: 2px dashed var(--role); background: var(--role-soft); }
.list-row:last-child { border-bottom: 0; }
/* Look-alike names offered while typing a new skill / qualification type / institution (site.js data-similar) */
.similar-names { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.similar-names small { flex-basis: 100%; }
.similar-names[hidden] { display: none; }

.status { align-self: flex-start; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--rap-line); color: var(--rap-ink); }
.status-ok { background: #dcf3e6; color: #17663a; }
.status-wait { background: #fff1d6; color: #8a5a00; }
.status-error { background: #fde2e4; color: #9b1c2c; }
.promo-panel { border-left: 4px solid var(--rap-lime); }

/* Terms / privacy statement in the acknowledgement popups */
.statement h3 { font-size: 1.1rem; margin-top: 1rem; }
.statement h4 { font-size: .95rem; margin-top: 1rem; }
.statement p, .statement li { font-size: .9rem; }
.statement-new { background: var(--rap-yellow); color: inherit; padding: 0 .15em; border-radius: 3px; }
.statement-whatsnew { background: var(--role-soft); border-left: 4px solid var(--role); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.statement-whatsnew ul { margin: .35rem 0 0; }
.print-page { max-width: 820px; margin: 2rem auto; padding: 0 1rem; background: #fff; }
.print-logo { height: 48px; }

/* Application log: stack traces */
.log-exception { white-space: pre-wrap; word-break: break-word; font-size: .75rem; max-height: 320px; overflow: auto; background: var(--rap-line); border-radius: 8px; padding: .75rem; }
.status-no { background: #fde2dd; color: #9d2b16; }

.empty { text-align: center; color: var(--rap-muted); padding: 2rem 1rem; }

/* ---------- Messages ---------- */
.thread { display: flex; flex-direction: column; gap: .6rem; max-height: 60vh; overflow-y: auto; padding: .5rem; }
.bubble { max-width: 80%; padding: .65rem .9rem; border-radius: 16px; background: var(--rap-bg); border: 1px solid var(--rap-line); }
.bubble small { display: block; color: var(--rap-muted); font-size: .72rem; margin-top: .25rem; }
.bubble-me { align-self: flex-end; background: var(--role-soft); border-color: transparent; }
.convo-link { display: flex; gap: .75rem; align-items: center; padding: .75rem; border-radius: 12px; text-decoration: none; color: inherit; }
.convo-link:hover, .convo-link.active { background: var(--role-soft); }

.alert-rap { background: var(--role-soft); border: 0; color: var(--role-dark); border-radius: 12px; }
.system-message { background: var(--rap-yellow); color: var(--rap-dark); font-weight: 700; border-radius: 12px; padding: .85rem 1.1rem; margin-bottom: 1rem; }
.system-message[hidden] { display: none; }
/* CV visibility (User.MakeCVPublicInd): a quiet line when public, a yellow warning when hidden from searches */
.cv-visibility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    margin-bottom: 1rem; padding: .5rem .75rem; border-radius: 12px; background: var(--role-soft); font-size: .9rem; }
.alert-cv-hidden { background: #fff3a6; border: 2px solid #e6c800; color: #4a3d00; border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .app-sidebar-wrap { width: 280px; }
    .section { padding: 3rem 0; }
}

@media (min-width: 992px) {
    /* Desktop: hero fills the screen so the skills band and the dark stats band sit right at the bottom */
    .hero { min-height: max(520px, calc(100vh - 245px)); display: flex; align-items: center; }
    .app-content { padding: 2rem 2.25rem 3rem; }
    .app-sidebar-wrap { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--role); }
    .role-choice { grid-template-columns: repeat(3, 1fr); }
}

/* Show / hide password eye (added by site.js to every password box) */
.pw-wrap { position: relative; display: block; }
.pw-wrap .form-control { padding-right: 2.75rem; }
.pw-wrap .form-control.is-invalid, .pw-wrap .form-control.is-valid { background-image: none; }
.pw-eye { position: absolute; top: 50%; right: .4rem; transform: translateY(-50%); border: 0; background: transparent;
    color: var(--role-dark); font-size: 1.15rem; line-height: 1; padding: .3rem .45rem; }
.pw-eye:focus-visible { outline: 2px solid var(--role); border-radius: 8px; }

/* External links: "What goes in which field?" guide */
.link-help { background: #fff; border: 1px solid var(--rap-line); border-radius: 12px; padding: .65rem 1rem; }
.link-help summary { cursor: pointer; font-weight: 700; }
.link-help table { margin-top: .5rem; font-size: .85rem; }

/* Pensioner dashboard: why employers can't see the CV yet */
.cv-problems { border: 2px solid #e6c800; background: #fff8cc; }
.cv-problems .bi-x-circle { color: #9b1c2c; }
.verify-why { background: #ffe3ef; border-left: 6px solid var(--rap-pink); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.verify-why strong { color: #9b1c2c; display: block; margin-bottom: .35rem; }
/* Hidden CVs: registered 60+ days ago (90+ uses .status-no, red) */
.status-late { background: #ffe1c4; color: #8a3a00; }
/* Admin > External links: keys shown as dots until the eye is clicked (text boxes, so browsers don't autofill them) */
.secret-input { -webkit-text-security: disc; }
/* Admin > Users > View popup */
.detail-list { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .35rem .75rem; margin: 0; font-size: .9rem; }
.detail-list dt { color: var(--rap-muted); font-weight: 600; }
.detail-list dd { margin: 0; word-break: break-word; }
.admin-bubble { max-width: 100%; margin-bottom: .6rem; }
@media (max-width: 575px) { .detail-list { grid-template-columns: minmax(0, 1fr); } }
/* Admin > Users table */
.role-select { min-width: 13rem; }
.user-table .sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.user-table .sort-link:hover { color: var(--role-dark); }
.skills-table .form-control, .skills-table .form-select { min-width: 11rem; }
.user-table tr.row-active-cv > td { background: #eefbd0; }
.action-stack { display: flex; flex-direction: column; gap: .35rem; min-width: 7.5rem; } /* buttons column: stacked, same width */
.online-dot { color: #1fae5b; font-size: .65rem; vertical-align: 2px; }
.active-cv-key { display: inline-block; width: 1rem; height: 1rem; vertical-align: -2px; border-radius: 4px; background: #eefbd0; border: 1px solid #c8e88a; }
/* Account/Suspended: why the member's account is suspended */
.suspension-note { background: var(--rap-soft); border: 2px solid var(--rap-violet); border-radius: var(--rap-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.suspension-reason { font-weight: 700; color: var(--rap-dark); white-space: pre-line; margin-bottom: .5rem; }
/* Site Admin top bar: Notifications (pink) / Feedback (yellow) when something waits */
.btn-alert-pink { background: var(--rap-pink); border: 2px solid var(--rap-pink); color: #fff; font-weight: 700; }
.btn-alert-pink:hover, .btn-alert-pink:focus { background: #e01f76; border-color: #e01f76; color: #fff; }
.btn-alert-yellow { background: var(--rap-yellow); border: 2px solid var(--rap-yellow); color: var(--rap-dark); font-weight: 700; }
.btn-alert-yellow:hover, .btn-alert-yellow:focus { background: #f5c62a; border-color: #f5c62a; color: var(--rap-dark); }
.topbar-count { display: inline-block; margin-left: .3rem; min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #fff; color: var(--rap-dark); font-size: .78rem; font-weight: 800; line-height: 1.35rem; text-align: center; }
.btn-alert-lime { background: var(--rap-lime); border: 2px solid var(--rap-lime); color: var(--rap-dark); font-weight: 700; }
.btn-alert-lime:hover, .btn-alert-lime:focus { background: #b5e22a; border-color: #b5e22a; color: var(--rap-dark); }
.btn-alert-lime .topbar-count { background: var(--rap-dark); color: #fff; }
/* Dashboard to-do: each line opens the page that deals with it */
.todo-link { color: inherit; text-decoration: none; }
.todo-link:hover, .todo-link:focus { color: var(--role-dark); text-decoration: underline; }
.pill-new { display: inline-block; background: var(--rap-yellow); color: var(--rap-dark); border-radius: 999px; padding: 0 .55rem; font-size: .75rem; font-weight: 800; }
/* Top bar: the little ? next to Messages / Notifications / Feedback */
.btn-help { border: 0; background: none; padding: 0 .15rem; margin-left: -.35rem; color: var(--rap-muted); font-size: 1rem; line-height: 1; min-width: 1.5rem; min-height: 1.5rem; }
.btn-help:hover, .btn-help:focus { color: var(--role-dark); }
.popover { max-width: 18rem; font-family: inherit; }
/* Messages: older messages fold up; admin popup folds per conversation */
.thread-older > summary, .convo-block > summary { cursor: pointer; font-weight: 600; color: var(--role-dark); margin-bottom: .5rem; }
.thread-older { margin-bottom: .5rem; }
.convo-block { border: 1px solid var(--rap-line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; }
/* My CV switch: what still keeps the pensioner out of searches */
.cv-missing { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cv-missing .bi-x-circle { color: #9b1c2c; }

/* Admin > Ledger (SQL window) */
.sql-box { font-family: Consolas, "Cascadia Mono", monospace; min-height: 12rem; }
.sql-results th, .sql-results td { white-space: nowrap; font-size: .85rem; }
