/* Bard Watch shell, cards, Discover, profile and sheets. Mobile first: the base rules are for a 320 px
   phone; 600 px and 900 px media queries add room. No inline styles anywhere: widths and positions come
   from classes in these files. Screens for sign-in, About, My Profile and the editor are in screens.css. */

/* ---- shell: the green top bar --------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--forest);
  color: var(--cream);
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}
.topbar-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar.has-ribbon .topbar-inner {
  min-height: 90px;
  padding: 8px 0;
}
.top-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  color: var(--cream);
  text-decoration: none;
}
.top-back .icon {
  width: 28px;
  height: 28px;
}
.top-badge {
  flex: none;
  display: block;
  line-height: 0;
}
.top-badge img {
  display: block;
  width: 44px;
  height: 44px;
}
.top-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 14px 4px;
  background: rgba(250, 243, 231, 0.6);
}
.top-brand {
  display: none;
}
.top-text {
  flex: 1;
  min-width: 0;
}
.top-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 6.6vw, 1.85rem);
  line-height: 1.1;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-sub {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.ribbon-label {
  flex: none;
  background: var(--cream);
  color: var(--forest);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 14px 0 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
}
.top-ridge {
  flex: 1;
  min-width: 0;
  display: block;
  margin-left: -2px;
  color: var(--hill);
}
.ridge-line {
  display: block;
  width: 100%;
  max-width: 130px;
  height: 26px;
}
.top-nav {
  display: none;
}
.top-slot {
  flex: none;
  display: flex;
  align-items: center;
}

/* ---- shell: nav links (the bottom tab bar on a phone, the top bar on a wide screen) ------------ */

.nav-links {
  align-items: center;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.nav-links a .icon {
  width: 24px;
  height: 24px;
}
.nav-links a[aria-current="page"] {
  background: var(--cream);
  color: var(--forest-deep);
}
.nav-links a[aria-current="page"] .icon {
  color: var(--cardinal);
}
.nav-links a + a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: rgba(250, 243, 231, 0.6);
}
.nav-links a[aria-current="page"]::before,
.nav-links a[aria-current="page"] + a::before {
  display: none;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  background: var(--forest);
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.tabbar a {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
  font-size: 0.95rem;
}
body[data-route="login"] .tabbar,
body[data-route="artist"] .tabbar,
body.signed-out .tabbar {
  display: none;
}
body:not([data-route="login"]):not([data-route="artist"]):not(.signed-out) {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
body[data-route="login"] .topbar,
body[data-route="login"] .site-footer,
body[data-route="about"] .site-footer {
  display: none;
}

.app {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left));
}
body[data-route="login"] .app,
body[data-route="about"] .app {
  max-width: none;
  padding: 0;
}

.site-footer {
  padding: 8px 16px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.footer-line,
.footer-links {
  margin: 0 auto 0.2rem;
  max-width: var(--page-max);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 10px;
}

.noscript {
  padding: 16px;
  background: #f6e7b4;
  color: #4a3a05;
}

/* On a phone the title lives in the green bar; on a wide screen each page shows its own big title. */
.page-h {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.page-h-show {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0 0 0.4rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.back-inline {
  display: none;
}

/* ---- little shared pieces ---------------------------------------------------------------------- */

.lede {
  font-size: 1.05rem;
  color: var(--text-soft);
}
.section-h {
  margin-top: 1.25rem;
}
.stack {
  display: grid;
  gap: 12px;
}
.card-h {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}
.card-sub {
  margin: 0 0 0.4rem;
  color: var(--text-soft);
}
.brush {
  display: block;
  width: 100%;
  height: 10px;
  color: var(--cardinal);
}
.tier-heading {
  margin: 1.25rem 0 0.6rem;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}
.status-pill {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.status-pill.is-live {
  background: var(--forest);
  color: var(--cream);
}
.status-pill.is-draft {
  background: var(--tan);
  color: var(--ink);
}
.draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 1rem;
  padding: 12px 16px;
  border: 2px solid var(--cardinal);
  border-radius: 16px;
  background: #fbeae4;
  color: #5c0b10;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 2px solid var(--panel-line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 1rem;
  background: var(--field-bg);
}
.notice > .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.notice-body {
  flex: 1;
  min-width: 0;
}
.notice-body p:last-child {
  margin-bottom: 0.5rem;
}
.notice-error {
  background: var(--err-bg);
  border-color: var(--err);
  color: #5c0b10;
}
.notice-info {
  background: var(--info-bg);
}
.notice-success {
  background: var(--info-bg);
  border-color: var(--forest);
}

.skel {
  background: linear-gradient(90deg, rgba(205, 187, 152, 0.35), rgba(205, 187, 152, 0.6), rgba(205, 187, 152, 0.35));
  background-size: 200% 100%;
  border-radius: 14px;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.card-skel {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border-radius: 22px;
  padding: 16px;
  max-width: 540px;
  margin: 0 auto;
}
.skel-photo {
  aspect-ratio: 4 / 3;
}
.skel-line {
  height: 18px;
}
.skel-w60 {
  width: 60%;
}
.skel-w40 {
  width: 40%;
}
.skel-btn {
  height: 60px;
  border-radius: 999px;
}
.skel-row {
  height: 52px;
}

.save-state {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.save-state.is-saved {
  color: var(--forest);
  font-weight: 600;
}
.save-state.is-error {
  color: var(--err);
  font-weight: 600;
}
.save-state .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---- photos ------------------------------------------------------------------------------------- */

.photo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--tan);
  border-radius: inherit;
}
.photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--forest);
  background: linear-gradient(135deg, var(--tan), #e9dcc0);
}
.photo-card {
  aspect-ratio: 4 / 5;
}
.photo-hero {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 14px;
}
.photo-link {
  display: block;
  border-radius: 18px;
}
.gallery-more {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}
.gallery-more li {
  flex: none;
  width: 72px;
}

/* ---- tags, sample strips, waveform ------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.tags-center {
  justify-content: center;
}
.tag {
  padding: 2px 14px;
  border: 1.5px solid var(--cardinal);
  border-radius: 999px;
  background: rgba(250, 243, 231, 0.55);
  color: var(--cardinal);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.samples {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.play-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  cursor: pointer;
}
.play-btn:hover {
  background: var(--forest-deep);
}
.play-btn .icon {
  width: 22px;
  height: 22px;
}
.sample-row,
.sample-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  background: rgba(250, 243, 231, 0.5);
  overflow: hidden;
}
.sample-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sample-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-note {
  font-size: 0.8rem;
  color: var(--err);
}
.sample-note:empty {
  display: none;
}
.sample-time {
  flex: none;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.wave {
  flex: none;
  width: 74px;
  height: 28px;
  color: var(--forest);
}
.sample-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  width: auto;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--tan);
  overflow: hidden;
}
.sample-progress::-webkit-progress-bar {
  background: var(--tan);
}
.sample-progress::-webkit-progress-value {
  background: var(--cardinal);
}
.sample-progress::-moz-progress-bar {
  background: var(--cardinal);
}
.sample-strip .sample-time {
  display: none;
}
.sample-strip[data-state="playing"] .sample-time,
.sample-strip[data-state="paused"] .sample-time {
  display: inline;
}
.sample-strip[data-state="playing"] .wave,
.sample-strip[data-state="paused"] .wave {
  display: none;
}

/* ---- the BOOKING bar ------------------------------------------------------------------------------ */

.booking-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 8px 20px;
  border: 0;
  border-radius: 28px;
  background: var(--forest-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.booking-bar:hover {
  background: #093724;
}
.booking-bar:active {
  background: var(--forest-press);
}
.booking-bar[aria-busy="true"] {
  opacity: 0.8;
}
.booking-icon {
  width: 36px;
  height: 36px;
}

/* ---- artist card (carousel and grid) -------------------------------------------------------------- */

.acard {
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--parchment-line);
  border-radius: 22px;
  padding: 14px;
}
.acard-photo {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}
.acard-name {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
}
.acard-name-link {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  color: inherit;
  text-decoration: none;
}
.acard-name-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.acard-sub {
  margin: 4px 0 6px;
  color: var(--ink);
}
.acard-bio {
  margin: 8px 0 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.acard-full .acard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.acard-full .acard-name {
  font-size: clamp(1.6rem, 6vw, 2rem);
}
.acard-full .brush-card {
  margin: 8px 0 0;
}

.acard-compact {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 18px;
}
.acard-compact .photo-card {
  aspect-ratio: 1;
}
.acard-compact .acard-name {
  font-size: 1.05rem;
}
.acard-compact .acard-sub {
  font-size: 0.82rem;
  margin: 3px 0 5px;
}
.acard-compact .tag {
  font-size: 0.82rem;
  padding: 0 10px;
}
.acard-compact .tags {
  margin-bottom: 6px;
}
.acard-compact .sample-strip {
  padding: 3px;
  width: fit-content;
}
.acard-compact .sample-strip .sample-meta,
.acard-compact .sample-strip .wave {
  display: none;
}
.acard-compact .sample-strip[data-state="playing"] .sample-meta,
.acard-compact .sample-strip[data-state="paused"] .sample-meta,
.acard-compact .sample-strip[data-state="error"] .sample-meta,
.acard-compact .sample-strip[data-state="loading"] .sample-meta {
  display: flex;
}
.acard-compact .sample-strip .sample-title {
  display: none;
}
.acard-compact .sample-strip .sample-time {
  padding-right: 8px;
}
.acard-compact .sample-progress {
  left: 8px;
  right: 8px;
}

/* the red ribbon "Top this month" */
.ribbon-top {
  display: inline-block;
  margin: 0 0 6px;
  line-height: 0;
}
.ribbon-top span {
  display: block;
  padding: 2px 16px 2px 10px;
  background: var(--cardinal);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.5;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
}

/* ---- Discover -------------------------------------------------------------------------------------- */

.discover-title .dt-text > * {
  margin: 0;
}
.dt-lede,
.brush-title,
.dt-hills {
  display: none;
}
.f-side,
.discover-bar .bar-toggle {
  display: none;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  background: var(--parchment);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.chip-filter,
.chip-search {
  background: var(--cream);
  font-weight: 700;
}
.chip-btn.is-on {
  background: var(--forest);
  color: var(--cream);
}
.chip-icon {
  width: 22px;
  height: 22px;
}
.chip-caret {
  width: 16px;
  height: 16px;
}

.discover-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.result-count {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* the Carousel and Grid toggle */
.seg {
  display: inline-flex;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.seg-btn.is-on {
  background: var(--cardinal);
  color: var(--cream);
}
.seg-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.top-slot .seg-btn:focus-visible {
  outline-offset: -4px;
}

.carousel {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}
.nav-circle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--forest);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.nav-circle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dots {
  display: flex;
  gap: 12px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tan);
}
.dot.is-on {
  background: var(--cardinal);
}
.position {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}
.more-btn {
  margin-top: 16px;
}
.empty {
  padding: 8px 4px;
}

/* ---- filters (sidebar on a wide screen, bottom sheet on a phone) --------------------------------- */

.filters-form {
  display: block;
}
.f-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--parchment-line);
  font-size: 1.6rem;
  font-weight: 700;
}
.f-head .icon,
.f-icon {
  width: 28px;
  height: 28px;
  color: var(--forest);
}
.f-search {
  margin: 0 0 12px;
}
.f-sec {
  border-bottom: 2px solid var(--parchment-line);
  padding: 4px 0 8px;
  margin-bottom: 8px;
}
.f-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--forest);
}
.f-sum::-webkit-details-marker {
  display: none;
}
.f-title {
  flex: 1;
}
.f-chev {
  width: 22px;
  height: 22px;
  transition: transform 0.15s;
}
.f-sec[open] .f-chev {
  transform: rotate(180deg);
}
.f-body {
  padding: 0 0 6px;
}
.check-list {
  display: grid;
  gap: 0;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.check-item label {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.f-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.f-reset {
  min-height: 52px;
}
.in-sheet .f-head {
  display: none;
}
.f-side .f-submit {
  display: none;
}
.input-search {
  border-radius: 999px;
}

.place-picker .place-results {
  margin: 6px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: var(--field-bg);
}
.place-option {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.place-option:hover,
.place-option:focus-visible {
  background: var(--parchment);
}
.place-county {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.place-selected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.place-current {
  margin: 0;
  font-weight: 600;
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-left: 2.8rem;
  padding-right: 3rem;
  border-radius: 999px;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: var(--forest);
  pointer-events: none;
}
.input-clear {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.input-clear .icon {
  width: 18px;
  height: 18px;
}

/* ---- the expanded profile -------------------------------------------------------------------------- */

.artist-profile {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.profile-name {
  margin: 14px 0 2px;
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
}
.profile-sub {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.brush-profile {
  height: 9px;
  margin: 4px 0 12px;
}
.profile-bio {
  margin: 0 auto 14px;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.4;
  white-space: pre-line;
}
.ruled {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}
.ruled::before,
.ruled::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--forest);
}
.ruled span {
  flex: none;
  max-width: 72%;
}
.venue-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.venue-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 10px 8px;
  border: 1px solid var(--parchment-line);
  border-radius: 18px;
  background: var(--parchment);
  font-size: 0.98rem;
  line-height: 1.2;
}
.venue-icon {
  width: 38px;
  height: 38px;
  color: var(--forest);
}
.artist-profile .samples {
  text-align: left;
}
.link-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 14px;
  border: 2px solid var(--forest);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.link-chip:hover {
  background: var(--parchment);
}
.chip-mark {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
}
.profile-booking {
  margin-top: 22px;
}
.profile-booking.is-sticky {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 18px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 62%, rgba(250, 243, 231, 0));
}

/* ---- sheets (contact sheet, limit message, phone filters) ------------------------------------------ */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  background: rgba(43, 43, 40, 0.58);
}
.sheet-backdrop-bottom {
  align-items: flex-end;
}
.sheet-backdrop-modal {
  align-items: center;
  padding: 16px;
}
.sheet {
  position: relative;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  background: var(--cream);
}
.sheet-bottom {
  max-width: 600px;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--parchment-line);
  border-bottom: 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  animation: sheet-up 0.22s ease-out;
}
.sheet-modal {
  max-width: 460px;
  padding: 14px;
  border: 1.5px solid var(--forest);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: sheet-pop 0.18s ease-out;
}
@keyframes sheet-up {
  from {
    transform: translateY(30px);
    opacity: 0.4;
  }
}
@keyframes sheet-pop {
  from {
    transform: scale(0.96);
    opacity: 0.4;
  }
}
.sheet-grip {
  display: block;
  width: 56px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 3px;
  background: #b4ad9c;
}
.sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.sheet-close .icon {
  width: 22px;
  height: 22px;
}
.sheet-title {
  margin: 4px 36px 14px;
  text-align: center;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 800;
}
.sheet-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 16px;
  border: 2px solid var(--forest);
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.3rem;
}
.contact-row:hover {
  background: var(--parchment);
}
.contact-icon {
  width: 30px;
  height: 30px;
  color: var(--forest);
}
.contact-value {
  flex: 1;
  min-width: 0;
}
.contact-go {
  width: 22px;
  height: 22px;
  color: var(--forest);
}
.reveals-left {
  margin: 16px 0 0;
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
}
.reveals-left .num {
  color: var(--cardinal);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}

.limit-card {
  text-align: center;
}
.limit-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 14px;
}
.limit-title {
  margin: 0 8px 4px;
  font-size: clamp(1.7rem, 7vw, 2.1rem);
  font-weight: 800;
}
.limit-card .brush {
  width: 70%;
  margin: 0 auto 10px;
}
.limit-text {
  margin: 0 8px 12px;
  font-size: 1.15rem;
}
.limit-ribbon {
  margin: 0 0 14px;
  line-height: 0;
}
.limit-ribbon span {
  display: inline-block;
  padding: 6px 34px;
  background: var(--cardinal);
  color: var(--cream);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}
.limit-back {
  min-height: 56px;
  font-size: 1.2rem;
}

/* ---- wider screens --------------------------------------------------------------------------------- */

@media (min-width: 400px) {
  .acard-full .acard-grid {
    grid-template-columns: 40% 1fr;
  }
  .acard-full .photo-card {
    aspect-ratio: 4 / 5;
  }
  .acard-full .acard-name {
    font-size: clamp(1.5rem, 5.2vw, 2rem);
  }
  .seg-btn {
    padding: 0 13px;
    font-size: 0.86rem;
  }
}

@media (min-width: 600px) {
  .acard-full {
    padding: 18px;
  }
  .acard-full .acard-grid {
    gap: 20px;
  }
  .acard-full .acard-name {
    font-size: 2.3rem;
  }
  .acard-bio {
    font-size: 1.1rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 16px;
  }
  .acard-compact {
    display: block;
    padding: 10px 10px 12px;
    border-radius: 20px;
  }
  .acard-compact .photo-card {
    aspect-ratio: 16 / 11;
  }
  .acard-compact .acard-main {
    padding: 10px 4px 0;
  }
  .acard-compact .acard-name {
    font-size: 1.3rem;
  }
  .acard-compact .acard-sub {
    font-size: 0.95rem;
  }
  .acard-compact .tag {
    font-size: 0.92rem;
  }
  .acard-compact .sample-strip {
    width: 100%;
    padding: 4px 12px 4px 4px;
  }
  .acard-compact .sample-strip .sample-meta {
    display: flex;
  }
  .acard-compact .sample-strip .sample-title {
    display: block;
    font-size: 0.9rem;
  }
  .acard-compact .play-btn {
    width: 38px;
    height: 38px;
  }
  .acard-compact .play-btn .icon {
    width: 18px;
    height: 18px;
  }
  .acard-compact .wave {
    width: 56px;
    height: 22px;
  }
  .acard-compact .ribbon-top {
    position: absolute;
    top: 16px;
    left: -6px;
    margin: 0;
    z-index: 2;
    transform: rotate(-3deg);
  }
  .acard-compact .ribbon-top span {
    font-size: 0.95rem;
    padding: 3px 20px 3px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  }
  .photo-hero {
    aspect-ratio: 2 / 1;
  }
  .venue-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  body,
  body:not([data-route="login"]):not([data-route="artist"]):not(.signed-out) {
    padding-bottom: 0;
  }
  .topbar {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .topbar-inner,
  .topbar.has-ribbon .topbar-inner {
    min-height: 72px;
    padding: 0;
    gap: 12px;
  }
  .top-back,
  .top-divider,
  .top-text {
    display: none;
  }
  .top-badge img {
    width: 48px;
    height: 48px;
  }
  .top-brand {
    display: block;
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
  }
  .top-nav {
    display: flex;
    margin-left: auto;
    gap: 8px;
    padding-right: 48px;
  }
  .top-nav a {
    padding: 0 22px;
    font-size: 1.2rem;
    min-height: 50px;
  }
  .top-nav a + a::before {
    left: -5px;
  }
  .tabbar {
    display: none !important;
  }
  .top-slot:empty {
    display: none;
  }
  .app {
    padding: 22px 24px 40px;
  }
  .back-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
  }
  .back-inline .icon {
    width: 20px;
    height: 20px;
  }
  .page-h {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0 0 0.4rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  /* Discover: sidebar and a 4-column grid */
  .discover {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .f-side {
    display: block;
    position: sticky;
    top: 88px;
    padding: 16px 18px 20px;
    border: 1px solid var(--parchment-line);
    border-radius: 22px;
    background: var(--parchment);
    max-height: calc(100vh - 108px);
    overflow-y: auto;
  }
  .chip-row {
    display: none;
  }
  .discover-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 130px;
    margin-bottom: 8px;
  }
  .discover-title .dt-text {
    flex: none;
    max-width: 46%;
  }
  .discover-title .page-h {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 4px;
  }
  .brush-title {
    display: block;
    width: 270px;
    height: 12px;
  }
  .dt-lede {
    display: block;
    margin: 12px 0 0 !important;
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .dt-hills {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 640px;
    height: 128px;
    object-fit: cover;
    object-position: bottom;
    margin-right: -24px;
  }
  .discover-bar .bar-toggle {
    display: block;
  }
  .discover-bar {
    margin: 0 0 12px;
  }
  .result-count {
    font-size: 1.15rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  }
  /* on a wide screen the toggle sits above the results: Grid first, green when on */
  .bar-toggle .seg {
    border-color: var(--forest);
    background: var(--cream);
  }
  .bar-toggle .seg-btn {
    order: 2;
    min-height: 44px;
    padding: 0 18px;
    font-size: 1.05rem;
    color: var(--forest);
  }
  .bar-toggle .seg-btn[data-key="grid"] {
    order: 1;
  }
  .bar-toggle .seg-btn.is-on {
    background: var(--forest);
    color: var(--cream);
  }
  .bar-toggle .seg-icon {
    display: inline-block;
  }
  .carousel {
    max-width: 820px;
  }
  .sheet-bottom {
    margin-bottom: 24px;
    border-radius: 28px;
    border-bottom: 1px solid var(--parchment-line);
  }
  .profile-booking.is-sticky {
    bottom: 0;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .tabbar a {
    gap: 4px;
    font-size: 0.82rem;
    padding: 0 2px;
  }
  .tabbar a .icon {
    width: 20px;
    height: 20px;
  }
  .booking-bar {
    font-size: 1.6rem;
  }
  .seg-btn {
    padding: 0 8px;
    font-size: 0.74rem;
  }
  .topbar-inner {
    gap: 6px;
  }
  .top-divider {
    margin: 14px 0;
  }
}

/* a long title next to the Saved pill wraps to two lines instead of being cut off */
.topbar:has(.saved-pill) .top-title {
  font-size: 1.2rem;
  white-space: normal;
  line-height: 1.05;
}
@media (min-width: 900px) {
  .topbar:has(.saved-pill) .top-title {
    font-size: inherit;
  }
}

.in-sheet .f-actions {
  position: sticky;
  bottom: -20px;
  margin: 12px -4px 0;
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
  background: var(--cream);
}
