.sfs-brand-host {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.sfs-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 44px);
    width: 100%;
    max-width: var(--sfs-brand-max-width, 100%);
    min-height: 76px;
    box-sizing: border-box;
    padding: 10px clamp(20px, 4vw, 72px);
    background: var(--sfs-brand-bg, #fff);
    overflow: hidden;
}

.sfs-brand[role="button"] {
    cursor: pointer;
}

.sfs-brand[role="button"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.sfs-brand.is-crest-above-title {
    flex-direction: column;
    gap: clamp(8px, 1.1vw, 14px);
    padding-top: 16px;
    padding-bottom: 16px;
}

.sfs-brand.is-crest-above-title .sfs-brand-content,
.sfs-brand.is-crest-above-title .sfs-brand-text {
    width: 100%;
}

.sfs-brand.is-crest-above-title .sfs-brand-text {
    justify-content: center;
    text-align: center;
}

.sfs-brand-crest {
    flex: 0 0 auto;
    width: var(--sfs-brand-crest-width, 84px);
    height: auto;
    max-height: calc(var(--sfs-brand-crest-width, 84px) * 1.18);
    object-fit: contain;
}

.sfs-brand-content {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sfs-brand-text {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: clamp(8px, 1vw, 18px);
    line-height: 1;
    text-transform: var(--sfs-brand-text-transform, uppercase);
    font-family: var(--sfs-brand-font-family, "Arial Black", Impact, system-ui, sans-serif);
    letter-spacing: 0;
    white-space: nowrap;
}

.sfs-brand-prefix,
.sfs-brand-title {
    flex: 0 0 auto;
    overflow-wrap: normal;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.sfs-brand-prefix {
    color: var(--sfs-brand-prefix-color, #4F7F3A);
    font-size: var(--sfs-brand-prefix-size, 30px);
}

.sfs-brand-title {
    color: var(--sfs-brand-title-color, #C63428);
    font-size: var(--sfs-brand-title-size, 44px);
}

.sfs-brand-opening-strip {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(15, 23, 42, 0.018);
}

.sfs-brand-opening-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    min-height: 34px;
    padding: 5px 12px;
    color: #64748b;
    cursor: pointer;
    list-style: none;
}

.sfs-brand-opening-summary::-webkit-details-marker {
    display: none;
}

.sfs-brand-opening-summary:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: -2px;
}

.sfs-brand-opening-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 160ms ease;
}

.sfs-brand-opening-strip[open] .sfs-brand-opening-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.sfs-brand-opening-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(12px, 1.05vw, 15px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}

.sfs-brand-opening-status.is-open_now {
    color: #3f6b4d;
}

.sfs-brand-opening-status.is-opens_today,
.sfs-brand-opening-status.is-reopens_today,
.sfs-brand-opening-status.is-opens_tomorrow,
.sfs-brand-opening-status.is-opens_on_day {
    color: #6f6040;
}

.sfs-brand-opening-status.is-exceptionally_closed {
    color: #80514e;
}

.sfs-brand-opening-schedule {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: min(100%, 1120px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 4px 12px 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.055);
}

.sfs-brand-opening-day {
    min-width: 0;
    padding: 6px 8px;
    text-align: center;
}

.sfs-brand-opening-day + .sfs-brand-opening-day {
    border-left: 1px solid rgba(15, 23, 42, 0.055);
}

.sfs-brand-opening-day.is-today {
    background: rgba(63, 107, 77, 0.045);
}

.sfs-brand-opening-day dt,
.sfs-brand-opening-day dd {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

.sfs-brand-opening-day dt {
    color: #475569;
    font-weight: 650;
}

.sfs-brand-opening-day dd {
    margin-top: 2px;
    color: #6b7280;
    font-weight: 450;
}

@media (max-width: 760px) {
    .sfs-brand {
        gap: 12px;
        min-height: 68px;
        padding: 8px 12px;
    }

    .sfs-brand-crest {
        max-height: calc(var(--sfs-brand-crest-width, 56px) * 1.18);
    }

    .sfs-brand.is-crest-above-title {
        gap: 7px;
        padding: 10px 12px 12px;
    }

    .sfs-brand-text {
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }

    .sfs-brand-opening-status {
        font-size: 12px;
    }

    .sfs-brand-opening-summary {
        min-height: 32px;
        padding: 4px 8px;
    }

    .sfs-brand-opening-schedule {
        grid-template-columns: 1fr;
        padding: 3px 12px 8px;
    }

    .sfs-brand-opening-day {
        display: grid;
        grid-template-columns: minmax(92px, 0.7fr) 1fr;
        gap: 12px;
        padding: 5px 4px;
        text-align: left;
    }

    .sfs-brand-opening-day + .sfs-brand-opening-day {
        border-top: 1px solid rgba(15, 23, 42, 0.05);
        border-left: 0;
    }

    .sfs-brand-opening-day dd {
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .sfs-brand {
        gap: 9px;
        padding: 8px;
    }
}

/* Stosswihr: centered crest above the municipality name on every page. */
#container_top_brand .sfs-brand:has(> .sfs-brand-crest[src*="/FR68Stosswihr/"]) {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
}
#container_top_brand .sfs-brand:has(> .sfs-brand-crest[src*="/FR68Stosswihr/"]) .sfs-brand-crest {
    width: 84px;
    max-height: 100px;
}
#container_top_brand .sfs-brand:has(> .sfs-brand-crest[src*="/FR68Stosswihr/"]) .sfs-brand-text {
    text-align: center;
    white-space: normal;
}
#container_top_brand .sfs-brand:has(> .sfs-brand-crest[src*="/FR68Stosswihr/"]) .sfs-brand-title {
    font-size: clamp(22px, 3vw, 38px);
    white-space: normal;
    line-height: 1.15;
}

#container_top_brand .sfs-brand:has(> .sfs-brand-crest[src*="/FR68Stosswihr/"]) .sfs-brand-prefix:empty {
    display: none;
}
