/* On this page only, carry the woodland frame around the readable tariff sheet. */
body:has(.public-price-sheet) {
    background-color: #e6ebdc;
    background-image: repeating-linear-gradient(120deg, transparent 0 5px, #172a1c08 5px 6px);
}

main:has(> .public-price-sheet) > h1 {
    display: flex;
    align-items: flex-end;
    min-height: clamp(8rem, 18vw, 12rem);
    margin-block-end: 0;
    padding: clamp(1.125rem, 4vw, 2.75rem);
    border-radius: 1.5rem 1.5rem 0 0;
    border-bottom: 0.25rem solid #bd9152;
    color: #fff6e3;
    background-color: #203725;
    background-image: linear-gradient(90deg, #132419 8%, #132419eb 42%, #13241940 100%),
        url("../images/hutorok/territory/forest-path.webp");
    background-position: center, center 43%;
    background-size: cover;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 6vw, 3.65rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.public-price-sheet {
    padding: clamp(1rem, 4vw, 2.75rem);
    border: 1px solid #ccd4c1;
    border-top: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    background-color: #f5f1e5;
    box-shadow: 0 1rem 2.625rem #23332626;
    color: #172a1c;
    overflow-wrap: anywhere;
}

.public-price-sheet > p:first-child {
    max-width: 65ch;
    color: #354737;
}

.public-price-sheet section > h2 {
    padding-block-end: 0.625rem;
    border-bottom: 1px solid #b6c1ab;
    font-family: Georgia, "Times New Roman", serif;
}

.public-price-sheet section > dl > div {
    min-width: 0;
    border: 1px solid #cbd5bf;
    background-color: #fffbf0;
}

.public-price-sheet #facility-prices + dl {
    display: grid;
    gap: 0.875rem;
}

.public-price-sheet #facility-prices + dl > div {
    margin-block: 0;
}

.public-price-sheet #facility-prices + dl dt a {
    text-decoration: underline;
    text-decoration-color: #9a5b12;
    text-underline-offset: 0.2em;
}

.public-price-sheet #service-prices + dl > div > dt {
    padding-block-end: 0.625rem;
    border-bottom: 1px solid #b6c1ab;
}

.public-price-sheet #service-prices + dl > div > dd > ul > li + li {
    padding-block-start: 0.875rem;
    border-top: 1px solid #e3e6d9;
}

@media (min-width: 44rem) {
    .public-price-sheet #facility-prices + dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 30rem) {
    main:has(> .public-price-sheet) > h1 {
        background-image: linear-gradient(90deg, #132419 8%, #132419ed 68%, #13241952 100%),
            url("../images/hutorok/territory/forest-path.webp");
    }
}

@media print {
    body:has(.public-price-sheet),
    main:has(> .public-price-sheet) > h1,
    .public-price-sheet,
    .public-price-sheet section > dl > div {
        color: #172a1c;
        background: #fff;
        box-shadow: none;
    }

    main:has(> .public-price-sheet) > h1 {
        min-height: 0;
    }

    .public-price-sheet section > dl > div {
        break-inside: avoid;
    }
}
