﻿@charset "UTF-8";

/* =========================
   ROOT / VARIABLES
   ========================= */
.bin-calendar--hide-view{
   display: none;

}
.bin-calendar {
    padding: 3rem 0;
    /* Paint-safe backgrounds */
    --bg-organics: linear-gradient(0deg, #F15859, #F15859);
    --bg-mixed-rec: linear-gradient(0deg, #FCE78E, #FCE78E);
    --bg-glass-rec: radial-gradient(circle at 25% 25%, #90499c 2px, transparent 2px), radial-gradient(circle at 75% 75%, #90499c 2px, transparent 2px), #ffffff;
    --bg-holiday: repeating-linear-gradient(45deg, #00a5ff, #00a5ff 2px, transparent 2px, transparent 6px);
    /* Clip paths */
    --swatch-half-tl: polygon(0 0, 100% 0, 0 100%);
    --swatch-half-br: polygon(100% 0, 100% 100%, 0 100%);
    --swatch-qtr-t: polygon(0 0, 100% 0, 50% 50%);
    --swatch-qtr-r: polygon(100% 0, 100% 100%, 50% 50%);
    --swatch-qtr-b: polygon(0 100%, 100% 100%, 50% 50%);
    --swatch-qtr-l: polygon(0 0, 50% 50%, 0 100%);
}

@media (min-width: 1024px) {
    .bin-calendar {
        padding: 3.5rem 0;
    }
}

/* =========================
   PRINT SETUP
   ========================= */

@media screen {
    .bin-calendar--print-only {
        display: none;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html, body {
        height: auto;
        zoom: 0.95;
    }
    .bin-calendar--hide-view{
        display: block;
    }
    .bin-calendar * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .bin-calendar--no-print,
    body.calendar-printing header.header,
    body.calendar-printing > footer.footer,
    body.calendar-printing .navbar,
    body.calendar-printing .navbar-top,
    body.calendar-printing .navbar-search,
    body.calendar-printing .navbar-search-toggle,
    body.calendar-printing .navbar-menu,
    body.calendar-printing .navbar-menutoggle,
    body.calendar-printing section.search-address,
    body.calendar-printing .bin-calendar__actions {
        display: none !important;
    }
}

/* =========================
   BIN TYPE MAPPING
   ========================= */

.is-organics {
    --swatch-main: var(--bg-organics);
}

.is-mixed-rec {
    --swatch-main: var(--bg-mixed-rec);
}

.is-glass-rec {
    --swatch-main: var(--bg-glass-rec);
}

.is-holiday {
    --swatch-main: var(--bg-holiday);
}

/* =========================
   LEGEND
   ========================= */

.bin-calendar__legend {
    padding-top: 0.5rem;
}

.bin-calendar__legend-title {
    font: 700 1.25rem "Galano Grotesque", sans-serif;
}

.bin-calendar__legend-note,
.bin-calendar__legend-meta {
    font: 1rem/1.75rem "Nunito Sans", sans-serif;
    display: block;
}

.bin-calendar__legend li {
    position: relative;
    font: 700 1rem/1.75rem "Nunito Sans", sans-serif;
    padding-left: 2.5rem;
    margin-bottom: 0.5rem;
    white-space: normal; /* Allow full text */
    overflow: visible; /* No truncation */
    text-overflow: clip;
}

.bin-calendar__legend li::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 2rem;
    height: 2rem;
    background: var(--swatch-main);
    background-size: 9px 9px;
}

/* =========================
   LAYOUT
   ========================= */

.bin-calendar__actions {
    display: flex;
    justify-content: flex-end;
}

.bin-calendar__year {
    display: flex;
    flex-direction: column;
    margin: 0 -0.9375rem;
}

@media (min-width: 768px), print {
    .bin-calendar__year {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.bin-calendar__month {
    margin: 2rem 0;
    padding: 0 0.9375rem;
    text-align: center;
}

@media (min-width: 768px), print {
    .bin-calendar__month {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .bin-calendar__month {
        flex: 0 0 33.333%;
    }
}

.bin-calendar__month h2 {
    font: 700 1.25rem "Galano Grotesque", sans-serif;
    margin-bottom: 0.75rem;
    text-align: left;
}

.bin-calendar__month table {
    width: 100%;
}

.bin-calendar__month th,
.bin-calendar__month td {
    width: 14.285%;
    height: 3rem;
    border: 1px solid #c9c9c9;
    font-size: 0.75rem;
    text-align: center;
    vertical-align: middle;
}

.bin-calendar__month thead {
    background: #ececec;
    font-weight: 700;
}

/* =========================
   DAY CELLS
   ========================= */

.bin-calendar__day {
    position: relative;
    font-weight: 600;
    background-image: radial-gradient(circle 0.8rem at center, #fff 98%, transparent 100%);
}

/* =========================
   FILL LAYERS
   ========================= */

.bin-calendar__fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--swatch-main);
    background-size: 9px 9px;
}

.n1of2 {
    clip-path: var(--swatch-half-br);
}

.n2of2 {
    clip-path: var(--swatch-half-tl);
}

.n1of3 {
    clip-path: var(--swatch-half-br);
}

.n2of3 {
    clip-path: var(--swatch-qtr-l);
}

.n3of3 {
    clip-path: var(--swatch-qtr-t);
}

/* =========================
   PRINT REFINEMENTS
   ========================= */

@media print {

    /* TWO MONTHS PER ROW */
    .bin-calendar__month {
        flex: 0 0 50%;
        max-width: 50%;
        margin: 0 0 6mm 0;
        margin: 0;
        padding: 0 6px;
        break-inside: avoid;
    }

    .bin-calendar__month h2 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .bin-calendar__month th,
    .bin-calendar__month td {
        height: 2.1rem;
        font-size: 0.65rem;
    }

    /* Legend: 2 per row, full text, small gap */
    .bin-calendar__legend {
        display: flex;
        flex-wrap: wrap;
        gap: 2mm 4mm;
        margin: 0;
        padding-top: 4px;
        list-style: none;
        break-inside: avoid;
    }

    .bin-calendar__legend li {
        flex: 0 0 48%;
        white-space: normal;
        max-width: 48%;
        overflow: visible;
        text-overflow: clip;
    }

    .bin-calendar__legend li::before {
        width: 1rem;
        height: 1rem;
    }

    .bin-calendar__legend-meta {
        display: none;
    }

    /* PAGE BREAK AFTER 6 MONTHS */
    .bin-calendar__year > .bin-calendar__month:nth-child(7) {
        page-break-before: always;
        break-before: page;
    }
}

