/* Near results, suggestion list, and the shared filter bar. */

.dc-find-form { position: relative; }
.dc-suggest {
  position: fixed; z-index: 900;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(26,26,24,.12); overflow-x: hidden; overflow-y: auto; text-align: left;
}
.dc-suggest-opt {
  width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 12px 14px; border: 0; border-bottom: 1px solid var(--rule);
  background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
}
.dc-suggest-opt:hover, .dc-suggest-opt.is-active { background: var(--frost); }
.dc-suggest-pin {
  width: 28px; height: 28px; border-radius: 8px; background: var(--frost); color: var(--forest);
  display: grid; place-items: center;
}
.dc-suggest-pin svg { display: block; width: 16px; height: 16px; }
.dc-suggest-txt { display: flex; flex-direction: column; min-width: 0; }
.dc-suggest-txt b { font-size: 15px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.dc-suggest-txt small { color: var(--stone); font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.dc-suggest-credit {
  padding: 8px 14px 10px; font-size: 11px; color: var(--stone); text-align: right;
}
.dc-suggest-credit a { color: var(--forest); }

.dc-near-intro { padding: 28px 0 8px; }
.dc-near-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 8px;
}
.dc-near-intro h1 {
  font-size: 44px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; max-width: 16ch;
}
.dc-near-lede { color: var(--stone); max-width: 640px; margin: 0 0 16px; }
.dc-near-intro .hv-search { margin-top: 8px; }
.dc-near-body { padding-top: 22px; padding-bottom: 48px; }

.dc-filter {
  background: #f3f6f3; border: 1px solid var(--rule); border-radius: 16px;
  padding: 18px 18px 16px; margin-bottom: 22px;
}
.dc-filter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dc-filter-head strong { font-size: 16px; }
.dc-filter-clear {
  border: 0; background: transparent; color: var(--forest); font: inherit; font-weight: 700;
  font-size: 14px; cursor: pointer; padding: 0;
}
.dc-filter-label, .dc-waste-panel strong { display: block; font-size: 14px; margin: 4px 0 8px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip { cursor: pointer; }
.dc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dc-chip span {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 12px; min-width: 92px; line-height: 1.2;
}
.dc-chip small { color: var(--stone); font-size: 12px; font-weight: 500; }
.dc-chip input:checked + span { border-color: var(--forest); box-shadow: 0 0 0 2px var(--frost); }
.dc-chip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.dc-filter-toggle { display: none; }
.dc-filter-toggle-label { white-space: nowrap; }
.dc-wastes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dc-waste { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.dc-waste-panel p { margin: 10px 0 0; color: var(--stone); font-size: 13px; }

.dc-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 6px; }
.dc-result-head h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.dc-result-head .dc-result-word { color: var(--stone); font-size: 13px; }
.dc-result-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-width: 0; flex: 1; }
.dc-result-clear[hidden], .dc-result-showing[hidden], .dc-result-of[hidden] { display: none !important; }
.dc-result-head.is-filtered { flex-wrap: wrap; }
.dc-result-note, .dc-result-daily { color: var(--stone); margin: 0 0 8px; }
.dc-result-daily { margin-bottom: 14px; }
.dc-results { display: flex; flex-direction: column; gap: 12px; }
.dc-result {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px;
}
.dc-result[hidden] { display: none !important; }
.dc-result-logo, .dc-result-logo.dc-autologo, .dc-autologo {
  display: flex !important; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.dc-result-logo, .dc-result-logo.dc-autologo {
  width: 52px; height: 52px; border-radius: 12px; font-size: 16px !important;
}
.dc-result-logo.has-img { background: #fff !important; border: 1px solid var(--rule); overflow: hidden; padding: 4px; box-shadow: none !important; }
.dc-result-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dc-result-where {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stone);
}
.dc-result h3 { margin: 2px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.dc-result h3 a { color: inherit; text-decoration: none; }
.dc-result h3 a:hover { color: var(--forest); }
.dc-result-spec { font-size: 14px; color: var(--stone); margin-top: 2px; }
.dc-result-spec b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.dc-result-spec .is-unknown { font-style: italic; }
.dc-result-where-short { display: none; }
.dc-result-view-short { display: none; }
.dc-result-view {
  border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.dc-result-view:hover { border-color: var(--forest); color: var(--forest); }
.dc-empty {
  background: #f3f6f3; border: 1px solid var(--rule); border-radius: 16px; padding: 22px 22px 20px; margin-bottom: 22px;
}
.dc-empty h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.dc-empty p { margin: 0 0 12px; color: var(--stone); max-width: 62ch; }
.dc-empty a { color: var(--forest); font-weight: 700; }
.dc-filter-empty { margin-top: 12px; color: var(--stone); }
.dc-filter-empty .dc-filter-clear { font-size: inherit; }

@media (max-width: 800px) {
  .dc-result { grid-template-columns: 48px 1fr; }
  .dc-result-view { grid-column: 2; justify-self: start; }
  .dc-near-intro h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .dc-filter-toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    margin-top: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 10px;
    padding: 10px 12px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .dc-waste-panel { display: none; margin-top: 12px; }
  .dc-filter.is-waste-open .dc-waste-panel { display: block; }
  .dc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dc-chip span { min-width: 0; }
  .dc-result-head { flex-direction: column; align-items: flex-start; }
}
