/* Shared presentation contract for every compact category/subcategory icon.
   Artwork files are transparent; this canvas is the one visible background. */
.tw-category-icon-canvas {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 9px;
    background: #fff3ea;
    color: #a35f00;
}

.tw-category-icon-canvas > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: normal;
}

.tw-category-icon-canvas > .fa {
    font-size: .9em;
}

/* One crisp, two-tone vector family for every catalogue surface. */
.rh-catalog-icon { display: inline-block; flex: none; vertical-align: middle; color: #0b3853; }
.rh-category-drawer__icon > .rh-catalog-icon { width: 30px; height: 30px; }
.rh-reference-category__image > .rh-catalog-icon { width: 42px; height: 42px; }
.tw-category-icon-canvas > .rh-catalog-icon { width: 60%; height: 60%; }
.rh-category-drawer__children a.rh-category-drawer__child { display: flex; align-items: center; gap: 10px; }
.rh-category-drawer__children .rh-catalog-icon { width: 22px; height: 22px; }
.rh-category-drawer__children a span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .rh-reference-category__image > .rh-catalog-icon { width: 36px; height: 36px; }
}

@media (max-width: 680px) {
    .tw-category-icon-canvas > img { padding: 2px; }
}
