/* Shared calendar grid — used by the landing page section and the /calendar page. */
.cal-root {
    --brand: #78350f;
    --brand-light: #d97706;
    --brand-dark: #451a03;
    --cream: #fef8ee;
    --ink: #1c1917;
    --ink-soft: #57534e;
    --border: #e7e5e4;
}

.cal-legend {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.cal-legend .dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    vertical-align: -1px;
}
.cal-legend .dot--open { background: #bbf7d0; border: 1px solid #4ade80; }
.cal-legend .dot--full { background: #fecaca; border: 1px solid #f87171; }

.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cal {
    min-width: 680px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.cal__head,
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__head { background: #faf6ef; }
.cal__head div {
    padding: 0.6rem 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    text-align: center;
    font-weight: 700;
    border-left: 1px solid var(--border);
}
.cal__head div:first-child { border-left: none; }

.cal__week { border-top: 1px solid var(--border); }
.cal__day {
    min-height: 96px;
    padding: 0.4rem;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cal__day:first-child { border-left: none; }
.cal__day--past { background: #faf7f2; }

.cal__daynum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.1rem;
}
.cal__daynum .mon {
    color: var(--brand-light);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.cal__day--today .cal__daynum b {
    background: var(--brand-light);
    color: #fff;
    border-radius: 999px;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal__event {
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0.22rem 0.4rem;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.cal__event--open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.cal__event--open:hover {
    background: #bbf7d0;
    text-decoration: none;
}
.cal__event--full {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    cursor: not-allowed;
}
