/* ========================================
   HOURS PROZON
   Scoped + editor-theme friendly

   This file is designed to inherit the same direct color variables
   used by directory.css so Hours and Directory read as one theme.
======================================== */

.pz-hours {
    /* Theme Adapter: match directory.css roles, then use local variables below. */
    --hours-heading: var(--pz-heading, var(--pz-color-h1, #000000));
    --hours-subheading: var(--pz-subheading, var(--pz-color-h2, var(--hours-heading)));
    --hours-body: var(--pz-body, var(--pz-color-body-text, #1f2933));
    --hours-muted: var(--pz-muted, var(--pz-color-muted-text, color-mix(in srgb, var(--hours-body) 68%, transparent)));
    --hours-link: var(--pz-link, var(--pz-color-link-text, var(--hours-heading)));
    --hours-link-hover: var(--pz-link-hover, var(--hours-link));
    --hours-card-bg: var(--pz-card-bg, #ffffff);
    --hours-border: var(--pz-border, var(--pz-border-medium, color-mix(in srgb, var(--hours-body) 22%, transparent)));
    --hours-focus: var(--pz-focus, var(--pz-input-focus, var(--hours-link)));

    width: 100%;
    overflow: hidden;
    color: var(--hours-body);
    font-family: var(--pz-font-body, Arial, sans-serif);
    font-size: var(--pz-size-body, clamp(0.95rem, 1vw, 1.05rem));
}

.pz-hours,
.pz-hours * {
    box-sizing: border-box;
}

/*
   Match the same width/centering pattern used by directory.css:
   - outer prozon fills the editor/export zone
   - inner wrapper controls the visible card width
   - card then fills the wrapper
*/
.pz-hours__inner {
    width: min(var(--pz-container, 1200px), calc(100% - 2rem));
    margin: 0 auto;
}

.pz-hours__card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--hours-border) 75%, transparent);
    border-radius: var(--pz-radius, 20px);
    background: var(--hours-card-bg);
    box-shadow: var(--pz-shadow, 0 12px 28px rgba(0,0,0,.12));
    color: var(--hours-body);
}

.pz-hours__title {
    margin: 0 0 .35rem;
    padding: 0;
    color: var(--hours-heading);
    font-family: var(--pz-font-h2, Georgia, serif);
    font-size: var(--pz-size-h2, 1.7rem);
    font-weight: 700;
    line-height: 1.05;
}

.pz-hours__content {
    flex: 1 1 auto;
    padding: .65rem 0 0;
}

.pz-hours__list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pz-hours__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    padding: 0.4rem 0 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--hours-border) 70%, transparent);
}

.pz-hours__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pz-hours__day {
    flex: 0 0 auto;
    min-width: 4rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--hours-link);
}

.pz-hours__time {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    color: var(--hours-body);
}

.pz-hours__message,
.pz-hours a {
    color: var(--hours-body);
}

.pz-hours a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.pz-hours a:hover,
.pz-hours a:focus-visible {
    color: var(--hours-link-hover);
}

.pz-hours a:focus-visible {
    outline: 2px solid var(--hours-focus);
    outline-offset: 3px;
    border-radius: calc(var(--pz-radius, 20px) * 0.35);
}

@media (max-width: 980px) {
    .pz-hours__card {
        padding: .85rem;
    }

    .pz-hours__title {
        font-size: calc(var(--pz-size-h2, 1.7rem) * 0.9);
    }
}

@media (max-width: 640px) {
    .pz-hours__inner {
        width: min(calc(100% - 1.5rem), 520px);
    }
}

@media (max-width: 420px) {
    .pz-hours__card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
