﻿/* =============================================================
   welcome-home.css — the front page, rewritten 2026-10-13
   Public landing (.wh-public) and the signed-in home (.wh-home).
   welcome.css still styles the header, footer, invite modal,
   toast and the guest / power-user states.
   ============================================================= */

.wh-public,
.wh-home {
    --wh-ink: #0f213d;          /* the brand navy */
    --wh-text: #1b2430;
    --wh-muted: #5f6b7a;
    --wh-rule: #dce3ea;
    --wh-paper: #ffffff;
    --wh-mist: #f3f6f9;
    --wh-teal: #0f6e56;         /* the one accent: links, marks */
    --wh-amber: #b45309;        /* leftover, attention */
    --wh-display: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    --wh-body: var(--font-primary, "Archivo", system-ui, sans-serif);
    font-family: var(--wh-body);
    color: var(--wh-text);
    width: 100%;
}

.wh-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ── type ── */
.wh-h1 {
    font-family: var(--wh-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    color: var(--wh-ink);
}

.wh-h1--home {
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
    margin: 0 0 0.25rem;
}

.wh-h2 {
    font-family: var(--wh-display);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    color: inherit;
}

.wh-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
    color: var(--wh-muted);
}

.wh-kicker-mark {
    height: 26px;
    width: auto;
}

.wh-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 34em;
    margin: 0 0 1.8rem;
    color: var(--wh-text);
}

/* ── buttons ── */
.wh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wh-btn--primary {
    background: var(--wh-ink);
    color: #fff;
}

    .wh-btn--primary:hover {
        background: #1a3560;
        color: #fff;
        text-decoration: none;
    }

.wh-btn--ghost {
    background: transparent;
    color: var(--wh-ink);
    border-color: var(--wh-rule);
}

    .wh-btn--ghost:hover {
        border-color: var(--wh-ink);
        text-decoration: none;
    }

.wh-band--ink .wh-btn--ghost,
.wh-band--close .wh-btn--ghost {
    color: inherit;
}

.wh-btn:focus-visible,
.wh-go-link:focus-visible {
    outline: 2px solid var(--wh-teal);
    outline-offset: 2px;
}

/* ── hero: copy left, the week right ── */
.wh-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 2rem 3.5rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(300px, 5fr) minmax(360px, 7fr);
    gap: 3.5rem;
    align-items: center;
}

.wh-week {
    margin: 0;
    background: var(--wh-paper);
    border: 1px solid var(--wh-rule);
    border-radius: 10px;
    box-shadow: 0 18px 40px -28px rgba(15, 33, 61, 0.45);
    overflow: hidden;
}

.wh-week-cap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--wh-rule);
    font-size: 0.82rem;
    color: var(--wh-muted);
}

.wh-week-title {
    font-weight: 600;
    color: var(--wh-text);
}

.wh-week-kpi b {
    color: var(--wh-teal);
    font-weight: 700;
}

.wh-week-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.72rem;
    line-height: 1.3;
}

    .wh-week-grid th,
    .wh-week-grid td {
        padding: 0.55rem 0.6rem;
        border-top: 1px solid var(--wh-rule);
        border-left: 1px solid var(--wh-rule);
        vertical-align: top;
        text-align: left;
    }

    .wh-week-grid thead th {
        border-top: 0;
        background: var(--wh-mist);
        font-weight: 600;
        color: var(--wh-muted);
        font-size: 0.7rem;
    }

    .wh-week-grid th:first-child,
    .wh-week-grid td:first-child {
        border-left: 0;
    }

    .wh-week-grid thead th:first-child,
    .wh-week-grid tbody th {
        width: 19%;
    }

    .wh-week-grid tbody th {
        font-weight: 600;
        color: var(--wh-ink);
        background: var(--wh-mist);
    }

        .wh-week-grid tbody th small {
            display: block;
            font-weight: 400;
            color: var(--wh-muted);
            font-size: 0.66rem;
            margin-top: 0.1rem;
        }

    .wh-week-grid td b {
        display: block;
        font-weight: 600;
        color: var(--wh-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wh-week-grid td span {
        display: block;
        color: var(--wh-muted);
    }

    .wh-week-grid td em {
        display: block;
        font-style: normal;
        color: var(--wh-amber);
        font-weight: 600;
    }

    .wh-week-grid td.wh-week-ahead b,
    .wh-week-grid td.wh-week-ahead span {
        color: #93a0b0;
    }

.wh-week-note {
    margin: 0;
    padding: 0.7rem 1rem 0.85rem;
    border-top: 1px solid var(--wh-rule);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--wh-muted);
}

/* ── bands ── */
.wh-band {
    padding: 3.75rem 0;
    border-top: 1px solid var(--wh-rule);
}

.wh-band--ink {
    background: var(--wh-ink);
    color: #e7edf5;
    border-top: 0;
}

    .wh-band--ink .wh-h2 {
        color: #fff;
    }

.wh-band--close {
    background: var(--wh-mist);
}

/* four facts: a ruled list, not cards */
.wh-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 2rem;
}

.wh-fact {
    border-top: 2px solid var(--wh-ink);
    padding-top: 0.9rem;
}

    .wh-fact dt {
        font-family: var(--wh-display);
        font-weight: 700;
        font-size: 1.05rem;
        margin: 0 0 0.45rem;
        color: var(--wh-ink);
    }

    .wh-fact dd {
        margin: 0;
        font-size: 0.93rem;
        line-height: 1.55;
        color: var(--wh-muted);
    }

/* three measures on the ink band */
.wh-measures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.wh-measure p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #b9c4d3;
}

.wh-measure-name {
    font-family: var(--wh-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff !important;
    margin-bottom: 0.3rem !important;
}

.wh-measure-rule {
    color: #7fd1b9 !important;
    font-size: 0.88rem !important;
    margin-bottom: 0.55rem !important;
}

.wh-ink-note {
    margin: 2.25rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 44em;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d5dde8;
}

/* roles and the in-the-works list */
.wh-two {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
}

.wh-roles {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .wh-roles li {
        display: grid;
        grid-template-columns: minmax(9em, 11em) 1fr;
        gap: 1rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--wh-rule);
        font-size: 0.93rem;
        line-height: 1.5;
    }

        .wh-roles li:last-child {
            border-bottom: 1px solid var(--wh-rule);
        }

    .wh-roles b {
        font-weight: 600;
        color: var(--wh-ink);
    }

    .wh-roles span {
        color: var(--wh-muted);
    }

.wh-roles--soon li {
    grid-template-columns: minmax(6em, 7em) 1fr;
}

.wh-roles--soon b {
    color: var(--wh-muted);
}

/* closing band */
.wh-close {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

    .wh-close p {
        margin: 0 0 1.5rem;
        font-size: 1rem;
        line-height: 1.6;
        color: var(--wh-muted);
    }

/* ── signed-in home ── */
.wh-home {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    box-sizing: border-box;
}

.wh-home-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wh-rule);
}

.wh-home-role {
    margin: 0;
    color: var(--wh-muted);
    font-size: 0.95rem;
}

.wh-home-note {
    margin: 1rem 0 0;
    font-size: 0.93rem;
    color: var(--wh-muted);
}

    .wh-home-note a {
        color: var(--wh-teal);
    }

.wh-go {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 2rem;
}

.wh-go-head {
    font-family: var(--wh-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wh-ink);
    margin: 0 0 0.4rem;
}

.wh-go-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .wh-go-list li {
        border-top: 1px solid var(--wh-rule);
    }

        .wh-go-list li:last-child {
            border-bottom: 1px solid var(--wh-rule);
        }

.wh-go-link,
.wh-go-soon {
    display: block;
    padding: 0.7rem 0.5rem 0.75rem;
    margin: 0 -0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

a.wh-go-link:hover {
    background: var(--wh-mist);
    text-decoration: none;
}

.wh-go-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wh-ink);
}

.wh-go-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--wh-muted);
    margin-top: 0.1rem;
}

.wh-go-link--locked {
    opacity: 0.6;
}

.wh-go-soon {
    opacity: 0.5;
}

.wh-soon-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #c3cad6;
    color: #6b7a90;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 0.15em;
}

/* ── responsive ── */
@media (max-width: 960px) {
    .wh-hero {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding-top: 2.5rem;
    }

    .wh-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 2rem;
    }

    .wh-measures {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wh-two {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .wh-go {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .wh-inner,
    .wh-hero,
    .wh-home {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wh-facts,
    .wh-go {
        grid-template-columns: 1fr;
    }

    .wh-home-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .wh-roles li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .wh-week-grid thead th:first-child,
    .wh-week-grid tbody th {
        width: 26%;
    }

    .wh-week-grid td:nth-child(n+5) {
        display: none;    /* three days fit a phone */
    }

    .wh-week-grid thead th:nth-child(n+5) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wh-btn {
        transition: none;
    }
}
