/* The evening pages (/evenings, /evenings/{date}) and the overview's evening rows. They sit in the home screen's
   eldritch scene (home.css: .eldritch-home, .eldritch-grid, .eldritch-card, .eldritch-evening-row). */
.evening-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}

.evening-link:focus-visible {
    outline: 2px solid #69f4d2;
    outline-offset: 2px;
}

.evening-card-actions {
    flex-wrap: wrap;
    gap: .25rem;
}

.evenings-header {
    display: grid;
    gap: .25rem;
    margin-bottom: 1.25rem;
}

.evenings-back.mud-button-root {
    justify-self: start;
    margin-left: -.5rem;
}

.evenings-kicker {
    color: #69f4d2;
    letter-spacing: .12em;
}

.evenings-months {
    display: grid;
    gap: 1rem;
}

.evening-month-title {
    text-transform: none;
}

.evening-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
}

.evening-stat {
    display: grid;
    align-content: start;
    gap: .1rem;
}

.evening-drink-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .75rem;
}

.evening-drink-time {
    color: #69f4d2;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.evening-drink-name {
    font-weight: 600;
}

.evening-drink-details {
    color: rgba(245, 237, 255, .7);
    font-size: .875rem;
}

/* The overview's statistics card (Components/EveningStatisticsCard). The low-risk note is calm on purpose: no alarm
   colours. */
.stats-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
}

.stats-fact {
    display: grid;
    align-content: start;
    gap: .1rem;
}

.stats-compare {
    color: rgba(245, 237, 255, .65);
}

.stats-biggest-evening {
    color: #69f4d2;
    font-weight: 600;
    text-decoration: none;
}

.stats-biggest-evening:hover,
.stats-biggest-evening:focus-visible {
    text-decoration: underline;
}

.stats-biggest-evening:focus-visible {
    outline: 2px solid #69f4d2;
    outline-offset: 2px;
    border-radius: 4px;
}

.stats-split-bar {
    display: flex;
    height: .6rem;
    margin: .35rem 0 .5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(245, 237, 255, .08);
}

.stats-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
}

.stats-split-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.stats-split-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
}

.stats-kind-beer { background: #e8b95a; }
.stats-kind-wine { background: #b07ad8; }
.stats-kind-spirits { background: #69f4d2; }
.stats-kind-other { background: #8f8aa3; }

.stats-guideline.mud-paper {
    border-color: rgba(105, 244, 210, .35);
    background: rgba(105, 244, 210, .05);
}

/* Three equal tabs that always fit, also at phone width, so MudTabs never needs its scroll arrows. */
.stats-tabs .mud-tabs-tabbar-wrapper {
    width: 100%;
}

/* MudTabs wraps each tab in a tooltip root, so the wrapper (not the tab) is the flex item that must share the width. */
.stats-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root {
    flex: 1 1 0;
    min-width: 0;
}

.stats-tabs .mud-tab {
    flex: 1 1 0;
    width: 100%;
    min-width: 0 !important;
    padding-left: .25rem;
    padding-right: .25rem;
}

.stats-tabs .mud-tabs-scroll-button {
    display: none;
}
