/* Explore uses the same blue, soft tag fills, and 12px corners as Trending. */
.mtn-discovery {
  --mtn-explore-blue: #0081ff;
  --mtn-explore-text: #111111;
  --mtn-explore-muted: #646b73;
  --mtn-explore-line: #e3e3e3;
  --mtn-explore-surface: #ffffff;
  --mtn-explore-tag: #e9efeb;
  padding: 56px 0 72px;
  color: var(--mtn-explore-text);
}
.mtn-discovery [hidden] { display: none !important; }
.mtn-discovery .mtn-discovery__heading { margin-bottom: 28px; }
.mtn-discovery .mtn-discovery__heading .ta-title { gap: 40px; margin: 0; }
.mtn-discovery__filters { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 0 28px; border-bottom: 1px solid var(--mtn-explore-line); }
.mtn-discovery__category-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #324054; font-size: 18px; font-weight: 700; line-height: 1.3; }
.mtn-discovery__select { display: inline-block; }
.mtn-discovery__dropdown { position: relative; z-index: 20; }
.mtn-discovery__category-trigger { align-items: center; background: transparent; border: 0; border-bottom: 3px dashed rgba(16,24,40,.3); color: #101828; display: inline-flex; font: inherit; font-size: 18px; font-weight: 800; justify-content: flex-start; line-height: 1.2; padding: 0 0 6px; text-align: left; }
.mtn-discovery__category-trigger:hover, .mtn-discovery__category-trigger:focus { border-bottom-color: rgba(16,24,40,.45); color: #101828; outline: none; }
.mtn-discovery__category-menu { background: #fff; border: 1px solid rgba(16,24,40,.1); border-radius: 12px; box-shadow: 0 20px 40px rgba(16,24,40,.18); display: none; left: 0; min-width: 260px; overflow: hidden; position: absolute; top: calc(100% + 10px); z-index: 999; }
.mtn-discovery__category-menu.is-open { display: block; }
.mtn-discovery__category-option { background: transparent; border: 0; color: #243042; cursor: pointer; display: block; font-size: 15px; font-weight: 600; padding: 12px 16px; text-align: left; width: 100%; }
.mtn-discovery__category-option + .mtn-discovery__category-option { border-top: 1px solid rgba(16,24,40,.08); }
.mtn-discovery__category-option:hover, .mtn-discovery__category-option:focus, .mtn-discovery__category-option.is-active { background: #f4f5f6; color: #101828; outline: none; }
.mtn-discovery select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.mtn-discovery__topic-group { width: 100%; min-width: 0; }
.mtn-discovery__topics, .mtn-discovery__topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mtn-discovery button { font-family: inherit; cursor: pointer; }
.mtn-discovery .mtn-discovery__pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; max-width: 100%; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--mtn-explore-tag); color: var(--mtn-explore-text); font-size: 14px; line-height: 1.5; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.08); transition: background-color .2s, color .2s; }
.mtn-discovery__pill-name { overflow-wrap: anywhere; }
.mtn-discovery__pill-count { flex-shrink: 0; min-width: 21px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.055); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.mtn-discovery .mtn-discovery__pill[aria-pressed="true"], .mtn-discovery .mtn-discovery__pill:hover { background: var(--mtn-explore-blue); color: #fff; }
.mtn-discovery__pill[aria-pressed="true"] .mtn-discovery__pill-count, .mtn-discovery__pill:hover .mtn-discovery__pill-count { background: rgba(255,255,255,.18); }
.mtn-discovery :is(button, select, input, summary):focus-visible { outline: 2px solid var(--mtn-explore-blue); outline-offset: 4px; }
.mtn-discovery button:disabled { opacity: .55; cursor: wait; }
.mtn-discovery__more { margin-top: 12px; }
.mtn-discovery__more summary { width: fit-content; margin-left: auto; padding: 6px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.mtn-discovery__more summary:hover { color: var(--mtn-explore-blue); }
.mtn-discovery__more-panel { margin-top: 10px; padding: 18px; border: 1px solid var(--mtn-explore-line); border-radius: 12px; background: var(--mtn-explore-surface); }
.mtn-discovery__search { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.mtn-discovery__search input { width: min(100%, 320px); min-width: 0; height: 44px; padding: 10px 14px; border: 1px solid var(--mtn-explore-line); border-radius: 10px; background: var(--mtn-explore-surface); color: var(--mtn-explore-text); font: inherit; }
.mtn-discovery__topic-list { max-height: 200px; overflow-y: auto; padding: 4px; }
.mtn-discovery [data-results] { margin-top: 6px; }
.mtn-discovery [data-results] > div { margin-top: 20px; }
.mtn-discovery .mtn-article-card { margin-bottom: 0; }
.mtn-discovery [data-status] { margin: 20px 0 0; color: var(--mtn-explore-muted); font-size: 14px; line-height: 1.6; }
.mtn-discovery [data-status]:empty { display: none; }
.mtn-discovery__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mtn-discovery__actions button { padding: 13px 24px; min-height: 46px; border: 1px solid var(--mtn-explore-line); border-radius: 10px; background: var(--mtn-explore-surface); color: var(--mtn-explore-text); font-size: 14px; font-weight: 700; }
.mtn-discovery__actions [data-load-more] { border-color: var(--mtn-explore-blue); background: var(--mtn-explore-blue); color: #fff; }
.mtn-discovery__actions [data-load-more] span { margin-left: 12px; }
.mtn-discovery__actions button:hover { border-color: var(--mtn-explore-blue); }
.mtn-discovery__actions [data-load-more]:hover { background: #111111; border-color: #111111; }
[ta-theme=dark] .mtn-discovery { --mtn-explore-text: #f0ede8; --mtn-explore-muted: #a6a6af; --mtn-explore-line: #2a2a2e; --mtn-explore-surface: #1a1a1e; --mtn-explore-tag: #0a0a0d; color-scheme: dark; }
[ta-theme=dark] .mtn-discovery .ta-title span { color: var(--mtn-explore-text); }
[ta-theme=dark] .mtn-discovery__pill-count { background: rgba(255,255,255,.1); }
[ta-theme=dark] .mtn-discovery__category-menu { background: #1a1a1e; border-color: #2a2a2e; }
[ta-theme=dark] .mtn-discovery__category-option { color: #f0ede8; }
[ta-theme=dark] .mtn-discovery__category-option:hover, [ta-theme=dark] .mtn-discovery__category-option:focus, [ta-theme=dark] .mtn-discovery__category-option.is-active { background: #2a2a2e; color: #fff; }
@media (max-width: 575px) {
  .mtn-discovery { padding: 36px 0 48px; }
  .mtn-discovery__filters { gap: 14px; padding-bottom: 22px; }
  .mtn-discovery .mtn-discovery__heading .ta-title { gap: 16px; }
  .mtn-discovery__heading .ta-title__tag { white-space: nowrap; }
  .mtn-discovery__more summary { margin-left: 0; }
  .mtn-discovery .mtn-discovery__pill { padding: 9px 12px; font-size: 13px; }
  .mtn-discovery__search { flex-direction: column; align-items: stretch; gap: 8px; }
  .mtn-discovery__search input { width: 100%; }
  .mtn-discovery [data-results] > div { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtn-discovery .mtn-discovery__pill, .mtn-discovery .mtn-article-card, .mtn-discovery .mtn-card-thumb img { transition: none; }
}
