/* Public reading, section headings and navigation. */
.crumbs ol { flex-wrap: wrap; row-gap: .15rem; }
.crumbs li, .pagehead__title, .block__head > h2, .pdp__codes dd { min-width: 0; overflow-wrap: anywhere; }
.pagehead__title, .home-content .block__head h2 { text-wrap: balance; }
.pagehead__lead { text-wrap: pretty; }
.pdp__desc.prose > p, .seo-text.prose > p { max-inline-size: 78ch; }
.pdp__info .checks li { overflow-wrap: anywhere; }
.block .table-wrap { max-width: 100%; overflow-x: auto; }
.shop--browse .shop__main { min-width: 0; }
.shop--browse .shop__side { min-width: 0; }
.catalog-filter > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.catalog-filter > summary::-webkit-details-marker { display: none; }
.catalog-filter > summary::after { content: ""; width: .55em; height: .55em; margin: 0 .4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.catalog-filter[open] > summary::after { transform: rotate(225deg); }
.catalog-filter__all { margin: .35rem 0 0; }
.shop--browse .shop__list { margin-bottom: 1rem; }
.shop--browse .shop__list a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.shop--browse .shop__list .catalog-total { flex: none; font-weight: 400; font-size: .85em; font-variant-numeric: tabular-nums; }
.shop--browse .shop__help { margin-top: .9rem; }
#catalog-results { scroll-margin-top: 7rem; }
.catalog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin-top: clamp(1rem, 3vw, 2rem); }
.catalog-pager a, .catalog-pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .25rem .45rem; border: 1px solid var(--line-2, #bccbda); border-radius: 6px; color: #172e4b; background: #fff; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; }
.catalog-pager strong { color: white; background: #174a85; border-color: #174a85; }
.catalog-pager a:hover { color: #123963; border-color: #4174ac; background: #eef5fc; }
.catalog-pager a:focus-visible, .catalog-filter > summary:focus-visible { outline: 3px solid #2478c9; outline-offset: 2px; }
@media (min-width: 992px) {
    .catalog-filter > summary { display: none; }
}
@media (max-width: 991px) {
    .shop.shop--browse { grid-template-columns: minmax(0, 1fr); row-gap: .85rem; }
    .shop--browse .shop__side { order: 0; }
    .shop--browse .shop__main { order: 1; }
    .catalog-filter { padding: 0 .85rem; border: 1px solid var(--line-2, #bccbda); border-radius: 8px; }
    .catalog-filter[open] { padding-bottom: .85rem; }
    .catalog-filter .shop__h:first-child { margin-top: .5rem; }
    .catalog-filter .shop__list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 13rem),1fr)); gap: .1rem .85rem; }
    .catalog-filter .shop__list a { align-items: center; min-height: 42px; }
}
@media (max-width: 640px) {
    .crumbs { font-size: .85rem; }
    .block__head { row-gap: .65rem; }
    .pdp__info, .pdp__codes > div { min-width: 0; }
    .shop--browse .product__name { line-height: 1.3; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Make it easier to scan the homepage's long vertical sequence of sections. */
.home-content .block__head {
    align-items: baseline;
    margin-block-end: clamp(.9rem, 1.5vw, 1.4rem);
    padding-block-end: .65rem;
    border-block-end: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.home-content .block__head > .h2 {
    padding-inline-start: .6em;
    border-inline-start: .12em solid var(--mau-chu-dao, #164a84);
    line-height: 1.14;
}
.home-content .block__head .block__more {
    white-space: normal;
    text-underline-offset: .22em;
}
.home-content .block__intro { max-inline-size: 72ch; }
@media (min-width: 992px) {
    .home-content [aria-labelledby="h-du-an"] .grid--3:has(> .pj:nth-child(3):last-child) {
        grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr));
    }
    .home-content [aria-labelledby="h-du-an"] .grid--3 > .pj:first-child .pj__name { font-size: 1.5rem; }
}
@media (max-width: 640px) {
    .home-content .block__head .block__more { min-height: 36px; display: inline-flex; align-items: center; }
    .home-content [aria-labelledby="h-du-an"] .pj__name { line-height: 1.28; text-wrap: balance; }
}
@media (min-width: 992px) { .catalog-filter:not([open]) > summary { display: flex; } }
