/* TTCal — minimal overrides on top of Pico CSS */

/* Visually hidden but readable by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:root {
    --brand: #2c5f2e;      /* Artisans Asylum green */
    --brand-light: #e8f5e9;
}

nav.site-nav {
    background: var(--brand);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

nav.site-nav a {
    color: #fff;
    margin-right: 1.5rem;
    text-decoration: none;
    font-weight: 500;
}

nav.site-nav a:hover {
    text-decoration: underline;
}

/* Flash messages */
.flash-success {
    background: var(--brand-light);
    border-left: 4px solid var(--brand);
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
}

.flash-error {
    background: #ffebee;
    border-left: 4px solid #c62828;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
}

/* Availability editor */
#availability-editor .day-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

#availability-editor .day-label {
    min-width: 4rem;
    font-weight: 600;
}

#availability-editor .window {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#availability-editor input[type="time"] {
    width: 8rem;
    padding: 0.2rem 0.4rem;
}

/* Booking slot grid */
.slot-group h3 {
    border-bottom: 1px solid var(--brand);
    padding-bottom: 0.25rem;
    color: var(--brand);
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.slot-grid button {
    width: auto;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

/* Booking slot date grid */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 0.75rem;
}

.date-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--brand);
    border-bottom: 1px solid var(--brand-light);
    padding-bottom: 0.25rem;
}

.date-card .slots {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-card .slots label {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive table tweaks */
@media (max-width: 600px) {
    table { font-size: 0.85rem; }
}
