/* ==========================================================================
   PTA Powered - volunteer sign-up board
   ========================================================================== */

:root {
    --ink: #1c2230;
    --ink-soft: #475066;
    --muted: #6b7385;
    --line: #e7e3da;
    --bg: #f6f3ee;
    --surface: #ffffff;
    --brand: #17463a;
    --brand-deep: #0d2e26;
    --accent: #f2b33d;
    --success: #1f8a5b;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(28, 34, 48, .06), 0 2px 8px -2px rgba(28, 34, 48, .08);
    --shadow-lg: 0 2px 4px rgba(28, 34, 48, .06), 0 18px 40px -12px rgba(28, 34, 48, .28);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}

/* always reserve the scrollbar's space so the layout doesn't shift when filtering
   shortens the page or the fly-out locks scrolling */
html { font-size: 15px; scrollbar-gutter: stable; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* the gutter is already reserved, so cancel the padding Bootstrap adds to make up for the scrollbar */
body { padding-right: 0 !important; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(242, 179, 61, .22), transparent 60%),
        radial-gradient(650px 360px at 8% 115%, rgba(192, 57, 43, .28), transparent 65%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
}

/* falling snow - flakes are added by site.js; each one falls, sways and spins at its own pace */
.hero__snow {
    --fall-dist: 520px; /* updated by site.js to the banner's real height */
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, #000 55%, transparent 97%);
}

.flake {
    position: absolute;
    top: -24px;
    left: var(--x);
    animation: flake-fall var(--fall-dur) linear var(--delay) infinite;
    will-change: transform;
}

.flake__sway { animation: flake-sway var(--sway-dur) ease-in-out var(--delay) infinite alternate; }

.flake svg {
    display: block;
    width: var(--size);
    height: var(--size);
    opacity: var(--alpha);
    animation: flake-spin var(--spin-dur) linear infinite var(--spin-dir);
}

@keyframes flake-fall { to { transform: translateY(var(--fall-dist)); } }
@keyframes flake-sway {
    from { transform: translateX(calc(var(--sway) * -1)); }
    to { transform: translateX(var(--sway)); }
}
@keyframes flake-spin { to { transform: rotate(360deg); } }

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1fr auto; gap: 4rem; }
}

.hero__eyebrow {
    margin: 0 0 .6rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .08em;
    text-wrap: balance;
    text-transform: uppercase;
}

.hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -.01em;
}

.hero__tagline {
    max-width: 38rem;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
    font-size: .9rem;
    font-weight: 500;
}

.hero-chip .bi { color: var(--accent); }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
}

.hero__progress {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .hero__progress { flex-direction: column; text-align: center; gap: .9rem; }
}

.ring {
    --pct: 0;
    --ring-colour: var(--accent);
    flex: none;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-colour) calc(var(--pct) * 1%), rgba(255, 255, 255, .14) 0);
    transition: --pct .8s ease;
}

@property --pct {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@media (min-width: 900px) { .ring { width: 156px; height: 156px; } }

.ring--roles { --ring-colour: #7fd6ae; }

/* narrow screens: keep both rings side by side, each above its caption */
@media (max-width: 899.98px) {
    .hero__stats { flex-wrap: nowrap; gap: 1.25rem; }
    .hero__progress { flex: 1; flex-direction: column; gap: .7rem; text-align: center; }
    .ring { width: 116px; height: 116px; }
    .ring__inner strong { font-size: 1.7rem; }
}

.ring__inner {
    display: grid;
    place-items: center;
    align-content: center;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
    border-radius: 50%;
    background: var(--brand-deep);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .25);
}

.ring__inner strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.ring__inner span {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .65);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero__progress-text {
    max-width: 12rem;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    line-height: 1.45;
}

.hero__progress-text strong { color: #fff; }

/* ---------- board ---------- */

.board {
    position: relative;
    z-index: 2;
    margin-top: -2.25rem;
    padding-bottom: 4rem;
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.toolbar__row {
    display: flex;
    align-items: flex-start;
    gap: .4rem 1rem;
}

.toolbar__label {
    flex: none;
    width: 4.75rem;
    padding-top: .5rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .toolbar__row { flex-direction: column; }
    .toolbar__label { width: auto; padding-top: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: .4rem; }

.filter-chip--time { font-variant-numeric: tabular-nums; }
.filter-chip--time .bi { color: var(--muted); }

.filter-chip {
    --cat: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}

.filter-chip .bi { color: var(--cat); }

.filter-chip:hover { border-color: var(--cat); color: var(--ink); }

.filter-chip.is-active {
    border-color: var(--cat);
    background: var(--cat);
    color: #fff;
}

.filter-chip.is-active .bi { color: #fff; }

.toolbar__toggle {
    margin: 0;
    padding-top: .75rem;
    border-top: 1px solid #f0ede7;
    color: var(--ink-soft);
    font-size: .9rem;
}

.toolbar__toggle .form-check-input:checked {
    border-color: var(--brand);
    background-color: var(--brand);
}

.toolbar__toggle .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(23, 70, 58, .2); }

/* without the filter panel there's nothing to overlap the banner, so start below it */
.board--no-filters { margin-top: 2.5rem; }

/* ---------- category sections ---------- */

.category-section {
    --cat-dark: color-mix(in srgb, var(--cat) 78%, black);
}

.category-section + .category-section { margin-top: 2.5rem; }

.category-banner {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.1rem;
    padding: .85rem 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--cat), var(--cat-dark));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.category-banner .bi { font-size: 1.2rem; opacity: .9; }

/* optional "intro" text from tasks.json, between the banner and the cards */
.category-intro {
    margin: -.25rem 0 1.1rem;
    padding: 0 .35rem;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.55;
}

.category-intro p { margin: 0 0 .5rem; }
.category-intro p:last-child { margin-bottom: 0; }

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.25rem;
}

/* ---------- task card ---------- */

.task-card {
    --cat: #5b6475;
    --cat-tint: color-mix(in srgb, var(--cat) 12%, white);
    --cat-dark: color-mix(in srgb, var(--cat) 78%, black);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    outline: none;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: card-in .45s ease both;
}

.task-card:hover,
.task-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.task-card:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px color-mix(in srgb, var(--cat) 45%, white); }

@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* title band in the category colour, matching the section banner */
.task-card__head {
    padding: .9rem 1.1rem .85rem;
    background: var(--cat);
}

.task-card__body {
    flex: 1;
    padding: .9rem 1.1rem 0;
}

.task-card__title {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
}

.task-card__summary {
    margin: 0 0 .75rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.4;
}

/* the role's date, once, above its time slots */
.task-card__date {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .45rem;
    padding-left: .55rem;
    color: var(--cat-dark);
    font-size: .85rem;
    font-weight: 600;
}

.slot-list {
    display: grid;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slot-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .55rem;
    border-radius: 8px;
    background: #f7f5f1;
    color: var(--ink);
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}

.slot-row > .bi { color: var(--cat); }
.slot-row__time { flex: 1; font-weight: 500; }
.slot-row__day { margin-right: .3rem; color: var(--muted); font-weight: 400; }

.slot-row { transition: opacity .2s ease, box-shadow .2s ease; }

/* card time slots can be picked before opening the details */
.slot-row:not(.is-full) { cursor: pointer; user-select: none; } /* no text highlight on double-click */
.slot-row:not(.is-full):hover { background: color-mix(in srgb, var(--cat) 8%, #f7f5f1); }
.slot-row.is-selected,
.slot-row.is-selected:hover { background: var(--cat-tint); box-shadow: inset 0 0 0 2px var(--cat); }
.slot-row.is-selected .mini-avatar { box-shadow: 0 0 0 2px var(--cat-tint); }
.slot-row.is-full { cursor: default; }

/* time filter: highlight the matching slot, fade the rest */
.slot-row.is-match { background: var(--cat-tint); box-shadow: inset 0 0 0 1.5px var(--cat); }
.slot-row.is-dimmed { opacity: .4; }

.slot-row.is-full { color: var(--muted); }
.slot-row.is-full > .bi { color: #b3aea4; }
/* one small circle per place in the slot */
.slot-row__people {
    display: flex;
    justify-content: flex-end;
}

/* overlap slightly; the outline in the row colour keeps each circle distinct */
.slot-row__people .mini-avatar { box-shadow: 0 0 0 2px #f7f5f1; }
.slot-row__people .mini-avatar + .mini-avatar { margin-left: -6px; }
.slot-row.is-match .mini-avatar { box-shadow: 0 0 0 2px var(--cat-tint); }

.slot-row__left {
    min-width: 2.6rem;
    color: var(--cat-dark);
    font-size: .75rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.slot-row.is-full .slot-row__left { color: var(--success); }

.mini-avatar {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--cat);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

.mini-avatar--open {
    border: 1.5px dashed color-mix(in srgb, var(--cat) 55%, white);
    background: var(--surface);
    color: color-mix(in srgb, var(--cat) 75%, white);
}

.mini-avatar--open .bi { font-size: .72rem; }

.capacity__badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--cat-tint);
    color: var(--cat-dark);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.capacity__track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeece7;
}

.capacity__fill {
    height: 100%;
    border-radius: inherit;
    background: var(--cat);
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

.task-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding: .85rem 1.1rem;
    border-top: 1px solid #f0ede7;
}

.task-card__more {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    transition: color .15s ease;
}

.task-card__more .bi { display: inline-block; transition: transform .2s ease; }
.task-card:hover .task-card__more { color: var(--cat-dark); }
.task-card:hover .task-card__more .bi { transform: translateX(3px); }

/* full cards stay visible but step back */
.task-flyout.is-full .capacity__badge { background: #e3f3eb; color: var(--success); }
.task-flyout.is-full .capacity__fill { background: var(--success); }

/* ---------- grid / list toggle ---------- */

.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    margin: 0 0 1rem;
}

.view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.view-toggle__btn:hover { border-color: var(--ink-soft); color: var(--ink); }

.view-toggle__btn.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

/* ---------- list view: one full-width row per role ---------- */
/*  [title       ] [date] [slot] [slot] [slot] ...         [sign up]
    [summary     ] [date] [slot] [slot] [slot] ...         [sign up]
    [more details] [date] [slot] [slot] [slot] ...         [sign up]  */

.task-list { display: grid; gap: .85rem; }

.task-card--list {
    display: grid;
    /* fixed-width columns so the time slots line up from row to row, whether or not a row has a date tile */
    grid-template-columns: 14rem 3.4rem 1fr auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "title   date    slots   signup"
        "summary date    slots   signup"
        "more    date    slots   signup";
    align-items: center;
    gap: .45rem 1.1rem;
    padding: 1rem 1.25rem;
    border-left: 6px solid var(--cat);
}

/* rows sit still on hover - just a slightly stronger shadow */
.task-card--list:hover,
.task-card--list:focus-visible { transform: none; }

.task-card--list .task-card__title {
    grid-area: title;
    align-self: start;
    margin: 0;
    color: var(--cat-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.25;
}

.task-card--list .task-card__summary { grid-area: summary; align-self: start; margin: 0; }
.task-card--list .date-tile { grid-area: date; }
.task-card--list .slot-list { grid-area: slots; display: flex; flex-wrap: wrap; gap: .5rem; }
.task-card--list .task-card__more { grid-area: more; align-self: end; }
.task-card--list .btn-signup { grid-area: signup; }

/* calendar-style date: day of week / date / month */
.date-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3.4rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--cat) 25%, white);
    border-radius: 12px;
    background: var(--surface);
    line-height: 1;
}

.date-tile__dow {
    align-self: stretch;
    padding: .3rem 0;
    background: var(--cat-tint);
    color: var(--cat-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.date-tile__day {
    padding-top: .3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
}

.date-tile__month {
    padding: .1rem 0 .35rem;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* each time slot is a small box: time on top, circles + "N left" underneath */
.slot-row--stacked {
    display: grid;
    gap: .35rem;
    min-width: 8.75rem;
    padding: .5rem .7rem;
}

.slot-row__when { display: flex; align-items: center; gap: .45rem; }
.slot-row__when .bi { color: var(--cat); }
.slot-row--stacked.is-full .slot-row__when .bi { color: #b3aea4; }
.slot-row__status { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.slot-row--stacked .slot-row__left { min-width: 0; }

/* phones: title and summary on top, then date + slots, then Details / Sign up */
@media (max-width: 767.98px) {
    .task-card--list {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "title   title"
            "summary summary"
            "date    slots"
            "more    signup";
        padding: .9rem 1rem;
    }

    .task-card--list .date-tile { align-self: start; }
    /* no date (e.g. "Ongoing" jobs): let the slots use the full width instead of leaving a gap */
    .task-card--list:not(:has(.date-tile)) .slot-list { grid-column: 1 / -1; }
    .task-card--list .btn-signup { justify-self: end; }
    .task-card--list .task-card__more { align-self: center; }
}

/* ---------- buttons ---------- */

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat) 86%, black);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--cat) 70%, transparent);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-signup:hover:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--cat) 80%, transparent);
}

.btn-signup:focus-visible { outline: 3px solid color-mix(in srgb, var(--cat) 40%, white); outline-offset: 2px; }

.btn-signup:disabled,
.btn-signup[aria-disabled="true"] {
    background: #e3f3eb;
    color: var(--success);
    box-shadow: none;
    cursor: default;
}

/* "Filled" on a card still opens the details */
.btn-signup[aria-disabled="true"] { cursor: pointer; }

.btn-signup--lg { width: 100%; padding: .85rem 1.2rem; font-size: 1rem; }

/* ---------- fly-out ---------- */

.task-flyout {
    --cat: var(--brand);
    --cat-tint: color-mix(in srgb, var(--cat) 12%, white);
    --cat-dark: color-mix(in srgb, var(--cat) 78%, black);
    --bs-offcanvas-width: 520px;
    border-left: 0 !important;
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35);
}

@media (max-width: 575.98px) {
    .task-flyout { --bs-offcanvas-width: 100vw; }
}

.flyout__header {
    padding: 1.25rem 1.5rem 1.6rem;
    background:
        radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(135deg, var(--cat), var(--cat-dark));
    color: #fff;
}

.flyout__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.flyout__cat {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.flyout__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.15;
}

.flyout__body { padding: 1.5rem; }

.flyout__facts {
    display: grid;
    gap: .6rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    list-style: none;
    border-radius: 14px;
    background: var(--cat-tint);
}

.flyout__facts li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.flyout__facts .bi { color: var(--cat-dark); font-size: 1.05rem; }

.flyout__description {
    margin-bottom: 1.75rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.flyout__description p { margin: 0 0 1rem; white-space: pre-line; }
.flyout__description p:last-child { margin-bottom: 0; }
.flyout__description p:first-child { color: var(--ink); font-size: 1.06rem; }

.flyout__section { margin-bottom: 1.75rem; }

.flyout__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .6rem;
}

.flyout__section-head h3 {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
}

/* numbered steps: (1) Select a time slot, (2) Your details */
.step-num {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--cat);
    color: #fff;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
}

.people {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

/* one panel per time slot in the fly-out; the panel itself is what you select */
.slot-hint { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; }

.slots { display: grid; gap: .75rem; }

.slot {
    padding: .9rem 1rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fcfbf8;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.slot:not(.is-full) { cursor: pointer; user-select: none; }

.slot:not(.is-full):not(.is-selected):hover {
    border-color: color-mix(in srgb, var(--cat) 45%, white);
    background: color-mix(in srgb, var(--cat) 5%, white);
}

.slot:focus-visible { outline: 3px solid color-mix(in srgb, var(--cat) 35%, white); outline-offset: 2px; }

/* same look as a selected time on the main page: category border, light category fill */
.slot.is-selected {
    border-color: var(--cat);
    background: var(--cat-tint);
    box-shadow: inset 0 0 0 1px var(--cat);
}

.slot__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.slot__time {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.slot__time .bi { color: var(--cat-dark); }
.slot__duration { color: var(--muted); font-size: .85rem; font-weight: 400; }
.slot__duration::before { content: "· "; }

.slot .people { align-items: center; gap: .4rem; margin-top: .75rem; }

/* fly-out: bigger, non-overlapping circles */
.mini-avatar--lg { width: 2rem; height: 2rem; font-size: .72rem; }
.mini-avatar--lg.mini-avatar--open .bi { font-size: 1rem; }

.slot.is-full .slot__badge { background: #e3f3eb; color: var(--success); }

.person--new { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }

@keyframes pop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* "Your details" - its own always-visible section under the time slots */
.signup-panel {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fcfbf8;
}

.signup-panel__slot {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .9rem;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
}

.signup-panel__slot .bi { color: var(--cat-dark); }

/* nothing chosen yet: a gentle prompt rather than a slot */
.signup-panel__slot.is-empty { color: var(--muted); font-weight: 400; }
.signup-panel__slot.is-empty .bi { color: var(--muted); }

/* gentle "you're already busy then" reminder - never blocks the sign-up */
.overlap-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 0 0 .9rem;
    padding: .6rem .8rem;
    border-radius: 10px;
    background: var(--cat-tint);
    color: var(--cat-dark);
    font-size: .85rem;
    line-height: 1.45;
}

.overlap-note .bi { margin-top: .1rem; }

.signup-actions { display: flex; align-items: center; gap: .5rem; }
.signup-actions .btn-signup--lg { flex: 1; }
.signup-actions .btn-link { color: var(--muted); text-decoration: none; }

.signup-panel .form-control {
    border-color: #dcd8cf;
    border-radius: 12px;
}

.signup-panel .form-control:focus {
    border-color: var(--cat);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cat) 20%, transparent);
}

.signup-panel .form-control.is-invalid { border-color: #c0392b; }

.signup-hint { margin: .6rem 0 1rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.signup-error {
    margin-bottom: 1rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: #fdecea;
    color: #9b2c22;
    font-size: .9rem;
}

.signup-done { padding: .5rem 0; text-align: center; }

.signup-done__title {
    margin: .9rem 0 .3rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
}

.signup-done p:not(.signup-done__title) { margin: 0 0 .5rem; color: var(--ink-soft); }

.signup-done .btn-link { color: var(--cat-dark); font-weight: 600; text-decoration: none; }

.tick {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
    animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both;
    box-shadow: 0 0 0 8px #e3f3eb;
}

.signup-done--full .tick { background: var(--cat); box-shadow: 0 0 0 8px var(--cat-tint); font-size: 1.6rem; }

/* ---------- misc ---------- */

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

.empty-state .bi { color: var(--accent); font-size: 2rem; }

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .875rem;
}

.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.site-footer .bi { color: #d6457a; }
.site-footer a { color: var(--brand); }

/* phones: a compact header so the first roles are on screen without scrolling.
   Kept at the end so it wins over the larger-screen rules above. */
@media (max-width: 575.98px) {
    .hero { padding: 1.5rem 0 1.75rem; }
    .hero__grid { gap: 1.25rem; }
    .hero__eyebrow { margin-bottom: .35rem; font-size: .95rem; }
    .hero__title { margin-bottom: .5rem; font-size: 2rem; }
    .hero__tagline { margin-bottom: .9rem; font-size: .9rem; line-height: 1.5; }
    .hero__chips { gap: .4rem; }
    .hero-chip { padding: .3rem .65rem; font-size: .8rem; }

    .hero__stats { gap: 1rem; }
    .hero__progress { gap: .45rem; }
    .ring { width: 84px; height: 84px; }
    .ring__inner { width: calc(100% - 14px); height: calc(100% - 14px); }
    .ring__inner strong { font-size: 1.3rem; }
    .ring__inner span { font-size: .6rem; }
    .hero__progress-text { font-size: .8rem; }

    .board--no-filters { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
