* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f4f7fc; color: #0b1a33; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #8ec7ff; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tool-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; flex-shrink: 0; min-height: 66px; padding: 10px 28px; background: #fff; border-bottom: 1px solid #e7edf5; }
.tool-plan { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; font-size: .8rem; font-weight: 500; }
.tool-plan strong { font-size: .85rem; font-style: italic; font-weight: 800; }
.tool-plan.is-free { color: #16803d; background: #eaf8ef; }
.tool-plan.is-paid { color: #9a6100; background: #fff4d9; }
.tool-plan img { width: 16px; height: 16px; object-fit: contain; }
.tool-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.325rem; font-weight: 700; line-height: 1.4; }
.tool-title-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #006acd; font-size: 1.5rem; }
.tool-title-icon > i { display: flex; align-items: center; justify-content: center; line-height: 1; }
.tool-open-link { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: #69798d; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.tool-open-link:hover { color: #006acd; text-decoration: none; }
.tool-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 32px 24px 16px; }
.trash-content { display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 1120px; }
.search-card { padding: 26px 28px 22px; background: #fff; border: 1px solid #e5ebf3; border-radius: 24px; box-shadow: 0 12px 40px rgba(18, 61, 107, .06); }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search-heading h2 { margin: 0 0 7px; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.search-heading p { margin: 0; color: #69798d; font-size: .9rem; }
.directory-count { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: #69798d; font-size: .8rem; }
.directory-count strong { color: #315d8d; font-weight: 600; }
.search-form { display: flex; gap: 12px; }
.search-input-wrap { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; background: #f8faff; border: 1px solid #dce5f0; border-radius: 12px; }
.search-input-wrap:focus-within { border-color: #006acd; box-shadow: 0 0 0 3px rgba(0, 106, 205, .1); }
.search-input-wrap > i { color: #8895a7; }
.search-input-wrap input { width: 100%; min-width: 0; padding: 12px 0; color: #0b1a33; background: transparent; border: 0; outline: 0; font-size: .95rem; }
.search-input-wrap input::placeholder { color: #8b98aa; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.input-clear { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; color: #69798d; background: transparent; font-size: .8rem; }
.input-clear:hover { background: #e7edf5; }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 0; border-radius: 12px; color: #fff; background: #006acd; font-weight: 600; font-size: .95rem; box-shadow: 0 4px 14px rgba(0, 106, 205, .15); }
.search-button:hover { background: #0059b3; }
.popular-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; font-size: .8rem; }
.popular-searches > span { margin-right: 2px; color: #8895a7; }
.popular-searches button { padding: 4px 10px; border: 0; border-radius: 6px; background: #f1f5fb; color: #53677e; }
.popular-searches button:hover { background: #e7f1ff; color: #006acd; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1rem; line-height: 1.6; font-weight: 650; }
.section-heading > span { color: #8895a7; font-size: .8rem; }
.category-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.recyclable { --category-color: #006acd; --category-soft: #edf5ff; --category-border: #d0e4fb; }
.hazardous { --category-color: #c74444; --category-soft: #fff1f1; --category-border: #f1d6d6; }
.kitchen { --category-color: #21824c; --category-soft: #edf8f0; --category-border: #cee8d7; }
.residual { --category-color: #536477; --category-soft: #f0f3f6; --category-border: #d7dfe7; }
.category-filter { position: relative; display: flex; align-items: center; gap: 13px; min-width: 0; padding: 20px 16px; border: 1px solid #e5ebf3; border-radius: 18px; text-align: left; color: #0b1a33; background: #fff; transition: border-color .15s, box-shadow .15s; }
.category-filter:hover, .category-filter[aria-pressed="true"] { border-color: var(--category-color); box-shadow: 0 4px 18px rgba(18, 61, 107, .04); }
.category-filter[aria-pressed="true"] { background: var(--category-soft); }
.category-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 52px; border-radius: 12px; color: var(--category-color); background: var(--category-soft); font-size: 1.65rem; }
.category-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.category-copy strong { font-size: 1.025rem; font-weight: 700; }
.category-copy > span { color: #69798d; font-size: .72rem; line-height: 1.5; }
.category-copy small { color: var(--category-color); font-size: .72rem; }
.category-copy b { font-weight: 600; }
.category-check { display: none; position: absolute; top: 8px; right: 10px; color: var(--category-color); font-size: .8rem; }
.category-filter[aria-pressed="true"] .category-check { display: inline; }
.directory-heading { align-items: center; }
.directory-heading p { margin: 5px 0 0; color: #69798d; font-size: .8rem; }
.reset-button { display: inline-flex; align-items: center; flex-shrink: 0; gap: 6px; padding: 7px 11px; border: 1px solid #dce5f0; border-radius: 8px; color: #69798d; background: #fff; font-size: .8rem; }
.reset-button[aria-pressed="true"], .reset-button:hover { color: #006acd; background: #edf5ff; border-color: #d0e4fb; }
.category-lists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; }
.category-lists.is-filtered { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.directory-card { overflow: hidden; background: #fff; border: 1px solid #e5ebf3; border-top: 3px solid var(--category-color); border-radius: 16px; }
.directory-card-header { padding: 18px 18px 14px; border-bottom: 1px solid #eef2f8; }
.directory-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; color: var(--category-color); font-size: .95rem; font-weight: 650; }
.directory-card h3 span { color: #8895a7; font-size: .72rem; font-weight: 400; }
.directory-card-header p { margin: 0; min-height: 40px; color: #69798d; font-size: .75rem; line-height: 1.8; }
.item-list { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; margin: 0; padding: 16px; list-style: none; }
.item-list li { max-width: 100%; }
.item-button { max-width: 100%; padding: 6px 9px; border: 1px solid #eaf0f6; border-radius: 7px; color: #536277; background: #f8faff; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
.item-button:hover, .item-button[aria-pressed="true"] { color: var(--category-color); background: var(--category-soft); border-color: var(--category-border); }
mark { padding: 0; border-radius: 2px; color: #0b1a33; background: #fff0b8; }
.item-detail { position: relative; margin-bottom: 16px; padding: 20px 48px 20px 22px; border: 1px solid var(--category-border); border-left: 4px solid var(--category-color); border-radius: 12px; background: #fff; }
.detail-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.detail-heading h3 { margin: 0; font-size: 1rem; font-weight: 650; }
.category-badge { padding: 4px 9px; border-radius: 6px; color: var(--category-color); background: var(--category-soft); font-size: .75rem; }
.item-detail p { margin: 0; color: #69798d; font-size: .85rem; line-height: 1.9; }
.detail-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8895a7; font-size: .8rem; }
.detail-close:hover { background: #f0f3f6; }
.empty-state { padding: 48px 24px; border: 1px dashed #d2dce9; border-radius: 18px; text-align: center; }
.empty-state > i { display: block; margin-bottom: 14px; color: #9bacbf; font-size: 2rem; }
.empty-state h3 { margin: 0 0 10px; font-size: 1.05rem; }
.empty-state p { max-width: 460px; margin: 0 auto 20px; color: #69798d; font-size: .85rem; line-height: 1.9; }
.empty-state .search-button { min-height: 40px; padding: 9px 18px; font-size: .85rem; }
.tool-tips { flex-shrink: 0; width: 100%; max-width: 1120px; margin-top: auto; padding: 24px 4px 0; border-top: 1px solid #dfe7f1; color: #66758a; font-size: .85rem; line-height: 1.9; }
.tool-tips > h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; color: #315d8d; font-size: .95rem; font-weight: 600; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tips-grid h3 { margin: 0 0 7px; color: #536277; font-size: .85rem; font-weight: 600; }
.tips-grid p { margin: 0; }
.tips-sources { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e7edf5; color: #8895a7; font-size: .75rem; }
.tips-sources a { color: #69798d; text-underline-offset: 3px; }
.tips-sources a:hover { color: #006acd; }
.noscript-message { padding: 20px; border-radius: 12px; background: #fff4d9; color: #9a6100; }
@media (max-width: 1100px) {
    .category-filter { gap: 10px; padding: 18px 12px; }
    .category-icon { width: 36px; height: 44px; font-size: 1.4rem; }
    .category-copy > span { font-size: .68rem; }
}
@media (max-width: 900px) {
    .category-filters, .category-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-filter { padding: 20px; gap: 14px; }
    .category-icon { width: 46px; height: 52px; font-size: 1.65rem; }
    .category-copy > span { font-size: .75rem; }
    .tips-grid { gap: 20px; }
}
@media (max-width: 767.98px) {
    .tool-header { padding: 8px 16px; gap: 10px; }
    .tool-plan { padding: 5px 8px; font-size: .72rem; }
    .tool-title { gap: 7px; font-size: 1.175rem; }
    .tool-title-icon { width: 32px; height: 32px; font-size: 1.3rem; }
    .tool-open-link { font-size: .8rem; }
    .tool-main { padding: 24px 16px 16px; gap: 24px; }
    .search-card { padding: 22px; }
    .search-heading { align-items: start; flex-direction: column; gap: 10px; }
    .directory-count { font-size: .75rem; }
    .tips-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 575.98px) {
    .tool-header { grid-template-columns: minmax(0, 1fr) auto; }
    .tool-title { grid-column: 1 / -1; grid-row: 1; }
    .tool-plan { grid-column: 1; grid-row: 2; }
    .tool-open-link { grid-column: 2; grid-row: 2; }
    .search-card { padding: 20px 16px; border-radius: 22px; }
    .search-heading h2 { font-size: 1.1rem; }
    .search-heading p { font-size: .8rem; }
    .search-form { gap: 8px; }
    .search-input-wrap { min-height: 48px; gap: 8px; padding: 0 11px; }
    .search-input-wrap input { font-size: 16px; }
    .search-button { padding: 10px 16px; font-size: .85rem; }
    .search-form .search-button > i { display: none; }
    .popular-searches { gap: 7px; }
    .popular-searches > span { width: 100%; }
    .category-filters { gap: 10px; }
    .category-filter { padding: 16px 11px; gap: 9px; }
    .category-icon { width: 32px; height: 40px; border-radius: 9px; font-size: 1.25rem; }
    .category-copy strong { font-size: .9rem; }
    .category-copy > span { font-size: .65rem; }
    .category-copy small { font-size: .65rem; }
    .section-heading > span { font-size: .7rem; }
    .category-lists { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .directory-card-header p { min-height: 0; }
    .directory-heading p { max-width: 220px; font-size: .75rem; }
    .reset-button { padding: 7px 9px; font-size: .75rem; }
    .item-button { min-height: 36px; font-size: .8rem; }
    .item-detail { padding: 18px 40px 18px 16px; }
    .tool-tips { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
