/* Styled dropdowns (js/components/dropdown.js). The native select stays hidden underneath. */
.dd { position: relative; display: inline-flex; vertical-align: middle; }
.dd__native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 40px; padding: 0 10px 0 var(--space-3); max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface);
  font-size: var(--step--1); font-weight: 600; color: var(--ink); text-align: left; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.dd__btn:hover:not(:disabled), .dd.is-open > .dd__btn { background: var(--surface-2); border-color: var(--ink-3); }
.dd__btn:disabled { opacity: 0.5; cursor: default; }
.dd__label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dd__chev { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform var(--t-med) var(--ease); }
.dd.is-open .dd__chev { transform: rotate(180deg); }

.dd__list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 24px));
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transform-origin: top center; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
/* A hover bridge so moving the mouse from the button down to the list never crosses a gap. */
.dd__list::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dd.is-open .dd__list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s; }
.dd--up .dd__list { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); transform-origin: bottom center; }
.dd--up .dd__list::before { top: auto; bottom: -8px; }
.dd--right .dd__list { left: auto; right: 0; }
.dd__opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 36px; padding: 0 10px; border-radius: var(--radius-s); cursor: pointer;
  font-size: var(--step--1); font-weight: 500; color: var(--ink); white-space: nowrap;
}
.dd__opt.is-active { background: var(--surface-2); }
.dd__opt[aria-selected='true'] { font-weight: 700; color: var(--turf); }
.dd__opt[aria-disabled='true'] { color: var(--ink-3); cursor: default; }
.dd__opt[aria-disabled='true'].is-active { background: transparent; }
.dd__tick { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .dd__list, .dd.is-open .dd__list, .dd__chev { transition: none; } }

/* Where dropdowns sit inside other controls. */
.weekpick .dd__btn { display: inline-flex; width: auto; height: 40px; min-width: 112px; border: 0; border-radius: 0; background: transparent; font-size: var(--step-0); font-weight: 700; justify-content: center; color: var(--ink); }
.weekpick .dd__btn:hover:not(:disabled), .weekpick .dd.is-open > .dd__btn { background: var(--surface-2); }
.weekpick .dd__btn svg { width: 16px; height: 16px; }
.dd--sport-select .dd__btn { width: 168px; min-height: 36px; }
@media (max-width: 719px) { .dd--sport-select { display: none; } .multi-sport .dd--sport-select { display: inline-flex; } .multi-sport .dd--sport-select .dd__btn { width: 112px; min-height: 32px; } }

/* About button in the header, and button-styled-as-link (footer). */
.about-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-s); font-size: var(--step--1); font-weight: 600; color: var(--ink-2); border: 1px solid transparent; }
.about-btn:hover { background: var(--surface-2); color: var(--ink); }
.about-btn svg { width: 18px; height: 18px; }
@media (max-width: 719px) { .about-btn__text { display: none; } .about-btn { width: 40px; height: 40px; padding: 0; justify-content: center; } }
.linklike { color: var(--ink-2); text-decoration: underline; font: inherit; padding: 0; }
.beta-flag { display: inline-block; margin-left: 2px; padding: 1px 6px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .04em; background: var(--turf-soft); color: var(--turf); }

/* About panel */
.about-sheet .toc--chips { position: static; }
.about-sheet .toc--chips ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
.about-sheet .toc--chips button { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.about-sheet .toc--chips button:hover, .about-sheet .toc--chips button[aria-current] { background: var(--ink); color: var(--bg); }
.about-sheet .guide { gap: var(--space-6); }
.about-sheet .gsec { font-size: var(--step-0); scroll-margin-top: 96px; }
.about-sheet .gsec__title { font-size: var(--step-2); }
.about-sheet .cols { grid-template-columns: 1fr; }
.about-sheet .col h4 { font: 700 var(--step-1)/1.1 var(--font-display); margin-bottom: var(--space-2); }
.dd__btn.sport-select { display: inline-flex; }
@media (max-width: 719px) {
  .beta-flag { display: none; }
  .header-tools { gap: 2px; }
  .multi-sport .dd--sport-select .dd__btn { width: 112px; padding-left: 8px; }
  .app-header .icon-btn, .about-btn { width: 34px; height: 36px; }
  .multi-sport .brand__name { font-size: 1.1rem; }
  .app-header__inner { gap: var(--space-2); }
}
