/* ===========================================================================
   Momentum — the site's visual language (adopted 2026-10-18)

   Signed off from the mockups on 2026-10-18 ("Bright Momentum"). Three layers:

     1. Global skin (this file, loaded on every page by layouts/app.php and
        layouts/base.html.twig): font, radius, card/button/badge/table
        treatment. Every page takes it the day it ships.
     2. Page header (.m-page-header, partials/momentum/page_header.*): the
        slim coloured band at the top of each page. Adopted view by view;
        tests/fixtures/momentum-views.php tracks which views have it.
     3. Dashboard parts (.m-hero, .m-tile, .m-card, .m-ring …): the full
        hero, tiles and ring cards, used by the dashboards and hubs.

   Colours come from tokens only. Each of the seven themes redefines the
   --m-* tokens at the bottom of this file; high-contrast drops the gradient
   and shadows. Work status colours are NOT here — they live in
   components.css (one scheme for the whole site) and WorkStatus::variant().
   =========================================================================== */

:root {
    --m-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --m-hero-from: #0f766e;
    --m-hero-to: #0e5e8a;
    --m-hero-text: #ffffff;
    --m-hero-chip-bg: rgba(255, 255, 255, 0.15);
    --m-hero-chip-border: rgba(255, 255, 255, 0.22);
    --m-hero-ring-track: rgba(255, 255, 255, 0.18);
    --m-accent: #0f766e;          /* icons, links-as-actions, ring fill on light cards */
    --m-accent-text: #0f766e;
    --m-accent-soft: #e3f1ef;
    --m-hot: #f59e0b;             /* the hero's "needs you" count badge */
    --m-hot-text: #2a1a00;
    --m-radius: 1rem;
    --m-radius-sm: 0.65rem;
    --m-shadow: 0 6px 20px rgba(15, 60, 60, 0.08);
    --m-shadow-hover: 0 10px 28px rgba(15, 60, 60, 0.13);
    --m-track: #e2eaea;
}

/* ── 1. Global skin ─────────────────────────────────────────────────────── */

body {
    font-family: var(--m-font);
}

.card {
    border: 1px solid var(--theme-border-color);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
}
.card > .card-header:first-child { border-top-left-radius: calc(var(--m-radius) - 1px); border-top-right-radius: calc(var(--m-radius) - 1px); }
.card > .card-footer:last-child { border-bottom-left-radius: calc(var(--m-radius) - 1px); border-bottom-right-radius: calc(var(--m-radius) - 1px); }
.card > .list-group:last-child > .list-group-item:last-child,
.card > .table-responsive:last-child,
.card > .card-body:last-child { border-bottom-left-radius: calc(var(--m-radius) - 1px); border-bottom-right-radius: calc(var(--m-radius) - 1px); }
.card-header {
    font-weight: 700;
}

.btn {
    border-radius: var(--m-radius-sm);
    font-weight: 600;
}
.btn-sm { border-radius: 0.5rem; }

.badge {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-control,
.form-select {
    border-radius: var(--m-radius-sm);
}

.modal-content {
    border-radius: var(--m-radius);
}

.dropdown-menu {
    border-radius: var(--m-radius-sm);
}

.alert {
    border-radius: var(--m-radius-sm);
}

/* ── 2. Page header ─────────────────────────────────────────────────────── */

.m-page-header {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.4rem;
    border-radius: var(--m-radius);
    color: var(--m-hero-text);
    background: linear-gradient(120deg, var(--m-hero-from), var(--m-hero-to));
}
.m-page-header::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.m-page-header-main { flex: 1 1 18rem; min-width: 0; position: relative; z-index: 1; }
.m-page-header-eyebrow { font-size: 0.78rem; font-weight: 600; opacity: 0.88; }
.m-page-header h1 {
    margin: 0.1rem 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: inherit;
    text-wrap: balance;
}
.m-page-header h1 .bi { margin-right: 0.35rem; opacity: 0.9; }
.m-page-header h1 .m-count { font-size: 0.95rem; font-weight: 600; opacity: 0.9; margin-left: 0.4rem; letter-spacing: 0; }
.m-page-header-sub { margin-top: 0.2rem; opacity: 0.88; font-size: 0.88rem; }
.m-page-header .m-chips { margin-top: 0.6rem; }
.m-page-header .m-help-btn { color: inherit; opacity: 0.85; vertical-align: 0.15em; }
.m-page-header .m-help-btn:hover, .m-page-header .m-help-btn:focus-visible { color: inherit; opacity: 1; }
.m-page-header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1; }
.m-page-header-actions .btn { --bs-btn-color: var(--m-hero-text); --bs-btn-border-color: var(--m-hero-chip-border); --bs-btn-bg: var(--m-hero-chip-bg);
    --bs-btn-hover-color: #0f2a2e; --bs-btn-hover-bg: #ffffff; --bs-btn-hover-border-color: #ffffff; }
.m-page-header-actions .btn.btn-m-primary { --bs-btn-color: #0f2a2e; --bs-btn-bg: #ffffff; --bs-btn-border-color: #ffffff; }

/* The shared page heading (partials/page_heading.php / .twig) as the band.
   Most pages include it inside their own action row —
     <div class="d-flex justify-content-between …"> heading · buttons </div>
   or with a subtitle beside it in a wrapper <div>. That row becomes the band,
   buttons and all. Where there is no such row (the heading sits straight in a
   container, a column or a plain wrapper) the heading itself is the band.
   An inner flex row inside a band never becomes a second band. */
.pc-page-heading,
.d-flex:has(> .pc-page-heading),
.d-flex:has(> div > .pc-page-heading) {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem !important;
    padding: 0.95rem 1.3rem;
    border-radius: var(--m-radius);
    color: var(--m-hero-text);
    background: linear-gradient(120deg, var(--m-hero-from), var(--m-hero-to));
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
}
.d-flex:has(> .pc-page-heading) > .pc-page-heading,
.d-flex:has(> div > .pc-page-heading) .pc-page-heading,
.d-flex:has(> div > .pc-page-heading) .d-flex:has(> .pc-page-heading) {
    margin: 0 !important;
    padding: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
}
.d-flex:has(> div > .pc-page-heading) .d-flex:has(> .pc-page-heading)::after { display: none; }
.pc-page-heading::after,
.d-flex:has(> .pc-page-heading)::after,
.d-flex:has(> div > .pc-page-heading)::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.d-flex:has(> .pc-page-heading) > .pc-page-heading::after,
.d-flex:has(> div > .pc-page-heading) .pc-page-heading::after { display: none; }
:is(.pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) > * { position: relative; z-index: 1; }

.pc-page-heading .m-heading-title {
    margin: 0.15rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: inherit !important;
    text-wrap: balance;
}
.pc-page-heading .m-heading-title .pc-help-btn { color: inherit; opacity: 0.85; font-size: 1rem; vertical-align: 0.2em; }

/* The trail becomes a quiet eyebrow: translucent chips (same arrow shape), and
   the current page's chip is dropped — the <h1> below names it. */
.pc-page-heading .breadcrumb { font-size: 0.75rem; }
.pc-page-heading .breadcrumb-item,
.pc-page-heading .breadcrumb-item a { color: var(--m-hero-text) !important; }
.pc-page-heading .breadcrumb-item:nth-child(n) { background: rgba(255, 255, 255, 0.14); padding-top: 0.2rem; padding-bottom: 0.2rem; }
.pc-page-heading .breadcrumb-item:nth-child(2n) { background: rgba(255, 255, 255, 0.2); }
.pc-page-heading .breadcrumb-item.active { display: none; }
.pc-page-heading .breadcrumb-item:nth-last-child(2) {
    clip-path: polygon(0 0, calc(100% - var(--bc-notch)) 0, 100% 50%, calc(100% - var(--bc-notch)) 100%, 0 100%, var(--bc-notch) 50%);
}
.pc-page-heading .breadcrumb-item:first-child:nth-last-child(2) {
    clip-path: polygon(0 0, calc(100% - var(--bc-notch)) 0, 100% 50%, calc(100% - var(--bc-notch)) 100%, 0 100%);
}

/* Inside a band: muted text, links and buttons read on the gradient. */
:is(.m-page-header, .pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) :is(.text-muted, .text-secondary, small) {
    color: rgba(255, 255, 255, 0.86) !important;
}
:is(.m-page-header, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .btn:not(.pc-help-btn):not(.dropdown-item) {
    --bs-btn-color: var(--m-hero-text);
    --bs-btn-bg: var(--m-hero-chip-bg);
    --bs-btn-border-color: var(--m-hero-chip-border);
    --bs-btn-hover-color: #0f2a2e;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-active-color: #0f2a2e;
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #ffffff;
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.3);
}
:is(.m-page-header, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) :is(.btn-primary, .btn-success, .btn-info, .btn-m-primary):not(.dropdown-item) {
    --bs-btn-color: #0f2a2e;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.85);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.85);
}
:is(.d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .btn-check:checked + .btn {
    --bs-btn-active-color: #0f2a2e;
    --bs-btn-active-bg: #ffffff;
}
:is(.d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .dropdown-menu {
    color: var(--theme-dropdown-text, #212529);
}
:is(.d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .dropdown-menu :is(.text-muted, small) {
    color: var(--theme-text-muted) !important;
}
:is(.pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .badge.bg-light { color: #0f2a2e; }

[data-theme="high-contrast"] :is(.pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading))::after { display: none; }

/* The band hides its overflow for the corner ring, which also cut off any dropdown
   opened from a button in it. While one is open the ring goes and the menu shows. */
:is(.m-page-header, .pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)):has(.dropdown-menu.show) { overflow: visible; }
:is(.m-page-header, .pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)):has(.dropdown-menu.show)::after { display: none; }

/* The hub pages (Administration, Assessment, Management) keep their
   drag-to-rearrange card markup (js/features/dashboards.js) and their
   permission gates; Momentum restyles the cards in place. Each icon becomes a
   tile in its own colour: the <i> is painted with its colour class and the
   glyph drawn white over it. */
#dashboard-cards-container .dashboard-card {
    border: 1px solid var(--theme-border-color);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    background: var(--theme-card-bg);
}
#dashboard-cards-container .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--m-shadow-hover);
    border-color: var(--m-accent);
}
#dashboard-cards-container .dashboard-icon { height: auto; margin-bottom: 0.75rem; }
#dashboard-cards-container .dashboard-icon i {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.55rem !important;
    background-color: currentColor;
}
#dashboard-cards-container .dashboard-icon i::before { color: #ffffff; }
#dashboard-cards-container .dashboard-card .card-title { font-weight: 700; }
[data-theme="high-contrast"] #dashboard-cards-container .dashboard-icon i { background-color: #000000; }
@media (prefers-reduced-motion: reduce) {
    #dashboard-cards-container .dashboard-card:hover { transform: none; }
}

/* ── 3. Dashboard parts ─────────────────────────────────────────────────── */

.m-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.15rem;
    color: var(--m-hero-text);
    background: linear-gradient(120deg, var(--m-hero-from), var(--m-hero-to));
}
.m-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.m-hero > * { position: relative; z-index: 1; min-width: 0; }
.m-hero-eyebrow { font-weight: 600; opacity: 0.88; }
.m-hero-big {
    margin: 0.35rem 0 0.25rem;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.m-hero-big small { font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: 0.92; margin-left: 0.4rem; }
.m-hero-sub { opacity: 0.88; }
.m-hero-ring { display: grid; justify-items: center; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; opacity: 0.95; }
.m-hero-ring .m-ring text { fill: var(--m-hero-text); }

.m-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.m-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    border: 1px solid var(--m-hero-chip-border);
    background: var(--m-hero-chip-bg);
    color: var(--m-hero-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
a.m-chip:hover, a.m-chip:focus-visible { color: var(--m-hero-text); background: rgba(255, 255, 255, 0.26); }
.m-chip b { min-width: 1.3rem; padding: 0 0.4rem; border-radius: 99px; text-align: center; font-size: 0.76rem; background: #ffffff; color: #0f5e59; }
.m-chip.is-hot b { background: var(--m-hot); color: var(--m-hot-text); }

.m-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.85rem; margin-bottom: 1.25rem; }
.m-tile {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--m-radius);
    border: 1px solid var(--theme-border-color);
    background: var(--theme-card-bg);
    box-shadow: var(--m-shadow);
    color: var(--theme-text-primary);
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.m-tile:hover, a.m-tile:focus-visible { color: var(--theme-text-primary); box-shadow: var(--m-shadow-hover); transform: translateY(-1px); }
.m-tile-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    font-size: 1.3rem;
    color: #ffffff;
    background: var(--m-tone, var(--m-accent));
}
.m-tile-label { display: block; font-weight: 700; font-size: 0.93rem; line-height: 1.25; }
.m-tile-value { display: block; font-weight: 800; font-size: 1.35rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.m-tile-sub { display: block; color: var(--theme-text-muted); font-size: 0.78rem; }
.m-tile-badge { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.05rem 0.5rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; color: #ffffff; background: var(--m-tone, var(--m-accent)); }

/* tones for tiles/icons: the Bootstrap semantics plus the two status extras */
.m-tone-primary   { --m-tone: var(--bs-primary); }
.m-tone-info      { --m-tone: #0e7490; }
.m-tone-success   { --m-tone: var(--bs-success); }
.m-tone-danger    { --m-tone: var(--bs-danger); }
.m-tone-warning   { --m-tone: #a16207; }
.m-tone-secondary { --m-tone: var(--bs-secondary); }
.m-tone-orange    { --m-tone: var(--status-orange); }
.m-tone-purple    { --m-tone: var(--status-purple); }
.m-tone-accent    { --m-tone: var(--m-accent); }

.m-section-title { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 800; }
.m-section-title .bi { color: var(--m-accent-text); }
.m-section-title .m-count { font-size: 0.74rem; font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 99px; color: var(--theme-text-muted); background: var(--theme-border-color); }
.m-section-title .m-more { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--m-accent-text); text-decoration: none; }

.m-ring { display: block; flex: 0 0 auto; }
.m-ring circle { fill: none; }
.m-ring text { font-weight: 800; fill: var(--theme-text-primary); font-family: var(--m-font); }

.m-work-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 19rem);
    gap: 1.1rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-radius: var(--m-radius);
    border: 1px solid var(--theme-border-color);
    background: var(--theme-card-bg);
    box-shadow: var(--m-shadow);
    position: relative;
}
.m-work-card + .m-work-card { margin-top: 0.65rem; }
.m-work-card:hover, .m-work-card:focus-within { box-shadow: var(--m-shadow-hover); }
.m-work-title { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--theme-text-primary); text-decoration: none; }
a.m-work-title:hover, a.m-work-title:focus-visible { color: var(--theme-text-primary); text-decoration: underline; text-underline-offset: 3px; }
.m-work-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0; }
.m-work-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; color: var(--theme-text-muted); font-size: 0.78rem; }
.m-work-card .m-above { position: relative; z-index: 2; }

.m-panel {
    padding: 1rem 1.15rem;
    border-radius: var(--m-radius);
    border: 1px solid var(--theme-border-color);
    background: var(--theme-card-bg);
    box-shadow: var(--m-shadow);
}

.m-bar { display: flex; height: 0.6rem; overflow: hidden; border-radius: 99px; background: var(--m-track); }
.m-bar > span { display: block; height: 100%; }
.m-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin-top: 0.4rem; font-size: 0.78rem; color: var(--theme-text-muted); }
.m-legend i { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 2px; margin-right: 0.3rem; vertical-align: -1px; }

@media (max-width: 767.98px) {
    .m-work-card { grid-template-columns: auto minmax(0, 1fr); }
    .m-work-card > .m-work-cell { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    /* The band hides its overflow for the corner ring, so anything too wide in it
       is cut off rather than scrolled: let every row in it wrap and shrink. */
    :is(.pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) { max-width: 100%; min-width: 0; }
    :is(.m-page-header, .pc-page-heading, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) > * { max-width: 100%; min-width: 0; }
    :is(.m-page-header, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .d-flex { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .m-section-title { flex-wrap: wrap; }
    .m-hero { grid-template-columns: 1fr; padding: 1.15rem; }
    .m-hero-ring { display: none; }
    .m-hero-big { font-size: 2rem; }
    .m-page-header { padding: 0.9rem 1rem; }
    .m-page-header h1 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .m-tile { transition: none; }
    a.m-tile:hover, a.m-tile:focus-visible { transform: none; }
}

/* ── Themes: every --m-* token, per theme ───────────────────────────────── */

[data-theme="dark"] {
    --m-hero-from: #115e59;
    --m-hero-to: #0c4a6e;
    --m-accent: #2dd4bf;
    --m-accent-text: #5eead4;
    --m-accent-soft: #15302f;
    --m-hot: #fbbf24;
    --m-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    --m-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.5);
    --m-track: #2e3138;
}

[data-theme="high-contrast"] {
    --m-hero-from: #000000;
    --m-hero-to: #000000;
    --m-hero-chip-bg: transparent;
    --m-hero-chip-border: #ffffff;
    --m-accent: #000000;
    --m-accent-text: #000000;
    --m-accent-soft: #f0f0f0;
    --m-hot: #ffd400;
    --m-hot-text: #000000;
    --m-shadow: none;
    --m-shadow-hover: none;
    --m-track: #d0d0d0;
}
[data-theme="high-contrast"] .m-hero::after,
[data-theme="high-contrast"] .m-page-header::after { display: none; }
[data-theme="high-contrast"] .m-tile { border-width: 2px; }

/* The four reading-comfort themes keep their own calm: softer gradients in
   their own hue, and no shadows (they already drop card shadows). */
[data-theme="warm-muted"] {
    --m-hero-from: #8a5a3c;
    --m-hero-to: #6b4a3a;
    --m-accent: #8a5a3c;
    --m-accent-text: #7a4e33;
    --m-accent-soft: #f3e9df;
    --m-shadow: none;
    --m-shadow-hover: 0 4px 14px rgba(80, 50, 30, 0.12);
    --m-track: #e6dccf;
}
[data-theme="soft-blue"] {
    --m-hero-from: #2f5d8a;
    --m-hero-to: #3a4f7a;
    --m-accent: #2f5d8a;
    --m-accent-text: #2a5480;
    --m-accent-soft: #e3ecf6;
    --m-shadow: none;
    --m-shadow-hover: 0 4px 14px rgba(30, 50, 90, 0.12);
    --m-track: #d6e1ee;
}
[data-theme="mint-green"] {
    --m-hero-from: #2f6e55;
    --m-hero-to: #2b5f63;
    --m-accent: #2f6e55;
    --m-accent-text: #2a634c;
    --m-accent-soft: #e2f1ea;
    --m-shadow: none;
    --m-shadow-hover: 0 4px 14px rgba(30, 80, 60, 0.12);
    --m-track: #d3e6dc;
}
[data-theme="peach-rose"] {
    --m-hero-from: #9a4a5a;
    --m-hero-to: #7d4660;
    --m-accent: #9a4a5a;
    --m-accent-text: #8a4050;
    --m-accent-soft: #f7e6e8;
    --m-shadow: none;
    --m-shadow-hover: 0 4px 14px rgba(90, 40, 50, 0.12);
    --m-track: #eddadc;
}

/* themes.css sets outline buttons' colour directly in two themes, which would override
   the band's button variables and give blue or grey text on the teal band. */
:is([data-theme="dark"], [data-theme="warm-muted"]) :is(.m-page-header, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .btn:not(.pc-help-btn):not(.dropdown-item):not(:hover):not(:active):not(.active) {
    color: var(--bs-btn-color);
    border-color: var(--bs-btn-border-color);
}
:is([data-theme="dark"], [data-theme="warm-muted"]) :is(.m-page-header, .d-flex:has(> .pc-page-heading), .d-flex:has(> div > .pc-page-heading)) .btn:not(.pc-help-btn):not(.dropdown-item):is(:hover, :active, .active) {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}
