/* ==========================================================================
   REDESIGN THEME LAYER — neoclassical / editorial / 2026
   Loaded LAST on every page; overrides Bootstrap-3-era legacy styles.
   Design system: warm ivory bg, near-black ink, bronze accent used sparingly,
   Cormorant Garamond display serif + Inter UI sans, 2px-radius ink buttons.
   Per-artist theming: Kendra's site overrides --accent in custom/kl/override.css.
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --ink: #1C1917;
  --ink-hover: #35302B;
  --muted: #6B645C;
  --hairline: #E5DFD6;
  --hairline-strong: #D8D0C4;
  --accent: #8B5E3C;
  --on-accent: #FAF7F2;
  /* Accent tints for focus rings and soft icon fills — per-artist (bronze /
     sage) so nothing falls back to a stray Bootstrap blue. */
  --accent-soft: rgba(139, 94, 60, 0.08);
  --accent-ring: rgba(139, 94, 60, 0.22);

  --dark-bg: #171412;
  --dark-surface: #221E1A;
  --dark-ink: #F5F1EA;
  --dark-muted: #A8A099;
  --dark-hairline: rgba(245, 241, 234, 0.14);

  /* Typography (v3): Inter for everything, plus ONE display serif (Fraunces,
     light) whitelisted to exactly two moments: the hero artist name and
     pull-quotes. --serif stays aliased to Inter on purpose — any legacy or
     future reference resolves to the sans, so the serif can never spread
     beyond the whitelist. Only .hero-name and .pullquote use --display. */
  --display: 'Fraunces', Georgia, serif;
  --serif: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --sans: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */
body {
  font-family: var(--sans) !important;
  background: var(--bg) !important;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body .h1, body .h2, body .h3 {
  font-family: var(--serif) !important;
  color: var(--ink);
  font-weight: 500;
}

body h4, body h5, body h6, body .h4, body .h5, body .h6 {
  font-family: var(--sans) !important;
  color: var(--ink);
  font-weight: 600;
}

h1 { font-size: 44px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.2; }

p { color: var(--ink); }

a { color: var(--ink); }
a:hover, a:focus { color: var(--accent); text-decoration: none; }

hr { border-color: var(--hairline); }

/* Kill the legacy dark <header> band rule side-effects wherever possible */
header { background: transparent !important; }

/* Eyebrow / micro-label utility */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   2. NAVBAR — quiet masthead; transparent over home hero, ivory glass after
   -------------------------------------------------------------------------- */

/* FIXED-NAV CLEARANCE.
   theme.css sets `body { padding-top: 107px }` to reserve room for the fixed
   masthead, then zeroes it under 992px:
       @media (max-width: 991px) { body { padding-top: 0 !important; } }
   That is a Bootstrap-3-era assumption — back then the navbar dropped out of
   `position: fixed` and back into normal flow on small screens, so no
   reservation was needed. This design keeps .navbar-fixed-top fixed at EVERY
   width, so below 992px the nav floated over the top of the page content.
   Each page had papered over it with a hand-tuned container margin (store
   75px, listen 80px, studio 80px) and every one of them guessed low against
   a 89–95px navbar, clipping the first heading by 15–17px — with no way to
   scroll it into view, since the page is already at scroll 0.
   Reserve the nav height at all widths instead, and drop those per-page
   margins below so the offset is not applied twice.
   .pull_top is exempt: the home hero deliberately runs its image up under the
   transparent navbar, and theme.css already zeroes its padding. */
@media (max-width: 991px) {
  body:not(.pull_top) { padding-top: 107px !important; }

  .sheetmusic_wrapper_container,
  .listener_wrapper_container,
  .studio-container { margin-top: 0 !important; }
}

/* Below 768px the masthead is shorter (89px), so tighten the reservation
   rather than spending 18px of phone screen on empty space. */
@media (max-width: 768px) {
  body:not(.pull_top) { padding-top: 95px !important; }
}

.navbar.navbar-default.navbar-fixed-top {
  background: rgba(250, 247, 242, 0.92) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: none !important;
  border-bottom: 1px solid var(--hairline) !important;
  box-shadow: none !important;
  padding: 12px 0;
}

.navbar .navbar-brand,
.navbar .navbar-brand strong {
  font-family: var(--serif) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--ink) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  text-transform: none;
}

.navbar #brand_text,
.navbar #brand_text em {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.navbar .nav.navbar-nav > li > a {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
  background: transparent !important;
  transition: color 0.2s;
}

.navbar .nav.navbar-nav > li > a:hover,
.navbar .nav.navbar-nav > li > a:focus,
.navbar .nav.navbar-nav > li.active > a {
  color: var(--ink) !important;
  background: transparent !important;
}

.navbar .dropdown-menu {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
  padding: 8px 0;
}

.navbar .dropdown-menu > li > a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  padding: 9px 20px;
}

.navbar .dropdown-menu > li > a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.navbar .navbar-toggle {
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: transparent !important;
}

.navbar .navbar-toggle .icon-bar { background: var(--ink) !important; }

/* Transparent state over the home hero (theme.js adds .sticky on scroll) */
body.pull_top .home-nav:not(.sticky) {
  background: transparent !important;
  border-bottom-color: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.pull_top .home-nav:not(.sticky) .navbar-brand,
body.pull_top .home-nav:not(.sticky) .navbar-brand strong {
  color: var(--dark-ink) !important;
}

body.pull_top .home-nav:not(.sticky) .nav.navbar-nav > li > a { color: var(--dark-muted) !important; }
body.pull_top .home-nav:not(.sticky) .nav.navbar-nav > li > a:hover { color: var(--dark-ink) !important; }
body.pull_top .home-nav:not(.sticky) #brand_text,
body.pull_top .home-nav:not(.sticky) #brand_text em { color: var(--dark-muted) !important; }
body.pull_top .home-nav:not(.sticky) .navbar-toggle { border-color: var(--dark-hairline); }
body.pull_top .home-nav:not(.sticky) .navbar-toggle .icon-bar { background: var(--dark-ink) !important; }

/* Mobile: collapsed menu becomes a calm ivory panel with stacked serif links */
@media (max-width: 768px) {
  .navbar .navbar-brand { margin-left: 16px !important; padding-left: 0; }
  .navbar .navbar-toggle { margin-right: 16px; }

  .navbar .navbar-collapse {
    background: var(--bg);
    border-top: 1px solid var(--hairline);
    padding: 16px 0 24px;
  }

  .navbar .nav.navbar-nav > li > a {
    font-family: var(--serif) !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink) !important;
    padding: 10px 0;
  }

  body.pull_top .home-nav:not(.sticky) .navbar-collapse.in,
  body.pull_top .home-nav:not(.sticky) .navbar-collapse.collapsing {
    background: var(--bg);
  }

  body.pull_top .home-nav:not(.sticky) .navbar-collapse .nav.navbar-nav > li > a {
    color: var(--ink) !important;
  }
}

/* --------------------------------------------------------------------------
   3. BUTTONS — 2px radius, ink fills; the signature move
   -------------------------------------------------------------------------- */
.btn-ink,
#contact .btn-primary,
.footer-signup-form button,
.signup button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 2px !important;
  padding: 14px 28px;
  box-shadow: none !important;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-ink:hover, .btn-ink:focus,
#contact .btn-primary:hover, #contact .btn-primary:focus,
.footer-signup-form button:hover,
.signup button:hover {
  background: var(--ink-hover) !important;
  color: var(--bg) !important;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  border-radius: 2px !important;
  padding: 13px 27px;
  box-shadow: none !important;
  transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover, .btn-ghost:focus {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

/* Dark-band variants (hero, footer) */
.band-dark .btn-ink { background: var(--dark-ink) !important; border-color: var(--dark-ink) !important; color: var(--dark-bg) !important; }
.band-dark .btn-ink:hover { background: #ffffff !important; color: var(--dark-bg) !important; }
.band-dark .btn-ghost { border-color: var(--dark-ink) !important; color: var(--dark-ink) !important; }
.band-dark .btn-ghost:hover { background: var(--dark-ink) !important; color: var(--dark-bg) !important; }

/* --------------------------------------------------------------------------
   4. FORMS
   -------------------------------------------------------------------------- */
.form-control,
input[type='text'].form-control,
input[type='email'].form-control,
textarea.form-control,
#mc_embed_signup input.email,
.footer-signup-form input[type='email'] {
  height: 50px;
  background: var(--surface) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 2px !important;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink) !important;
  box-shadow: none !important;
  caret-color: var(--accent);
  transition: border-color 0.2s;
}

textarea.form-control { height: auto; padding: 14px 16px; }

.form-control:focus,
#mc_embed_signup input.email:focus,
.footer-signup-form input[type='email']:focus {
  border-color: var(--ink) !important;
  outline: none;
  box-shadow: none !important;
}

::placeholder { color: var(--muted) !important; opacity: 1; }

select, select.form-control, #artistFilter, #itemsPerPage, #albumSelector {
  background-color: var(--surface) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 2px !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   5. HOMEPAGE BANDS
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background-size: cover;
  /* Focal point: set --hero-focus on the hero in an artist fragment to keep
     the subject in frame across crops (e.g. 85% for a far-right subject) */
  background-position: var(--hero-focus, 66%) center;
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 15, 13, 0.4) 0%, rgba(18, 15, 13, 0) 26%),
    linear-gradient(to top, rgba(18, 15, 13, 0.78) 0%, rgba(18, 15, 13, 0) 55%),
    rgba(18, 15, 13, 0.28);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--serif) !important;
  font-size: 76px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--dark-ink) !important;
  margin: 0 0 14px;
}

.hero-line {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--dark-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.band {
  padding: 112px 0;
}

.band-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.band-narrow { max-width: 720px; margin: 0 auto; }

.band + .band-ruled {
  position: relative;
}

.band-ruled::before {
  content: '';
  display: block;
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  transform: translateY(-112px);
}

.band-store {
  background: var(--surface-2);
}

.home-listen { text-align: center; }
.home-listen h2 { margin: 0 0 36px; }
.home-listen-embed { max-width: 720px; margin: 0 auto; }
.home-listen-embed iframe { display: block; border-radius: 12px; }

/* Pull-quote */
.pullquote {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pullquote::before {
  content: '';
  display: block;
  width: 40px;
  border-top: 1px solid var(--hairline-strong);
  margin: 0 auto 32px;
}

.pullquote blockquote::before,
.pullquote blockquote::after {
  content: none !important;
}

.pullquote blockquote,
.pullquote p {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  quotes: '\201C' '\201D';
}

.pullquote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Quote rotator (homepage). Every slide occupies the SAME grid cell, so the
   band is as tall as the longest quote and never changes height when the
   active quote changes — the same "the box stays still while the contents
   change" rule we applied to the store table. Only opacity animates. */
.quote-rotator { display: grid; }
.quote-rotator > .pullquote {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.quote-rotator > .pullquote.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Dots: flat 2px-radius bars, not circles — the system uses one radius. */
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.quote-dots button {
  width: 22px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--hairline-strong);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.quote-dots button:hover { background: var(--muted); }
.quote-dots button[aria-current="true"] { background: var(--ink); }
.quote-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .quote-rotator > .pullquote { transition: none; }
}

.home-store { text-align: center; }
.home-store h2 { margin: 0 0 12px; }
.home-store p { color: var(--muted); max-width: 52ch; margin: 0 auto 32px; }

/* --------------------------------------------------------------------------
   6. FOOTER — dark band
   -------------------------------------------------------------------------- */
#footer {
  background: var(--dark-bg) !important;
  color: var(--dark-muted);
  padding: 88px 0 48px;
  margin-top: 0;
  border: none;
}

#footer .footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--dark-ink);
  display: block;
  text-align: center;
  margin-bottom: 32px;
}

#footer .footer-signup { max-width: 440px; margin: 0 auto 40px; text-align: center; }
#footer .footer-signup-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 14px;
}

#footer .footer-signup-form input[type='email'] {
  background: var(--dark-surface) !important;
  border: 1px solid var(--dark-hairline) !important;
  color: var(--dark-ink) !important;
  border-radius: 2px 0 0 2px !important;
}

#footer .footer-signup-form button {
  background: var(--dark-ink) !important;
  border-color: var(--dark-ink) !important;
  color: var(--dark-bg) !important;
  border-radius: 0 2px 2px 0 !important;
  padding: 14px 22px;
}

#footer .footer-signup-form { display: flex; gap: 0; }
#footer .footer-signup-form input[type='email'] { flex: 1 1 auto; }

#footer .socialbar { margin: 0 auto 40px !important; text-align: center; }
#footer .socialicons { display: flex; justify-content: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
#footer .socialicons li { margin: 0 !important; padding: 0 !important; float: none !important; }
#footer .socialicons a, #footer .socialicons i { color: var(--dark-muted) !important; font-size: 18px; background: none !important; }
#footer .socialicons a:hover, #footer .socialicons a:hover i { color: var(--dark-ink) !important; }
#footer .socialicons .icon { opacity: 1 !important; }
/* Pandora: inline SVG monogram, inherits color like the icon-font glyphs */
#footer .socialicons .pandora-mark {
  color: var(--dark-muted) !important;
  display: inline-flex;
  align-items: center;
  height: 21px;
}
#footer .socialicons .pandora-mark:hover { color: var(--dark-ink) !important; }
#footer .socialicons .pandora-mark svg { display: block; }

#footer .copyright, #footer .credits {
  color: var(--dark-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-style: normal !important;
}

#footer .copyright { border-top: 1px solid var(--dark-hairline); padding-top: 32px; margin-top: 8px; }
#footer p { color: var(--dark-muted); font-size: 12px; }

/* --------------------------------------------------------------------------
   7. PROMO STRIP (store pages) — masthead notice, not banner ad
   -------------------------------------------------------------------------- */
.bundle-promo {
  background: var(--surface-2) !important;
  border: none !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 16px !important;
}

.bundle-promo strong { color: var(--accent) !important; font-weight: 600; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   8. SHEET MUSIC PAGE — table, controls, meters
   -------------------------------------------------------------------------- */
.sm-page-header h1 { font-size: 44px; margin-bottom: 10px; }
.sm-header-accent { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--muted); }
.sm-trust-row { color: var(--muted); font-size: 13px; }
.sm-trust-row li i { color: var(--accent); }
.sm-trust-row .sm-trust-play { color: var(--ink); border-color: var(--hairline-strong); }

.table-controls select,
.table-controls .form-control,
.table-controls input {
  height: 42px !important;
  font-size: 14px !important;
}

.table-controls label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#productTable {
  background: transparent;
  border: none !important;
}

#productTable.table-striped > tbody > tr:nth-of-type(odd),
#productTable.table-striped > tbody > tr:nth-of-type(even) {
  background: transparent;
}

#productTable > tbody > tr { border-bottom: 1px solid var(--hairline); transition: background 0.15s; }
#productTable > tbody > tr:hover { background: var(--surface-2); }
#productTable > tbody > tr > td {
  border: none !important;
  vertical-align: middle;
  padding: 12px 10px !important;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

#productTable > tbody > tr > td:nth-child(3) { white-space: nowrap; }

#productTable .piece-link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

#productTable .piece-link:hover { color: var(--accent); text-decoration: none; }

#productTable > thead > tr > th {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
  background: var(--bg) !important;
  border: none !important;
  border-bottom: 1px solid var(--hairline-strong) !important;
  padding: 12px 10px !important;
}

#productTable th .fas { color: var(--muted); }

#productTable td img { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.06); }

/* Play / view circle buttons */
.play-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.play-button:hover { background: var(--ink); color: var(--bg); }

/* Popularity meter + difficulty segments (markup from js/sheetmusic.js) */
.pop-meter {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.pop-meter-fill { display: block; height: 100%; background: #B9AA92; border-radius: 2px; }
.pop-meter.pop-top .pop-meter-fill { background: var(--accent); }

.diff-seg { display: inline-flex; gap: 3px; vertical-align: middle; }
.diff-seg span { width: 10px; height: 4px; border-radius: 1px; background: var(--hairline); }
.diff-seg span.on { background: #57504A; }

/* Tags */
.tag {
  font-family: var(--sans);
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  border: 1px solid var(--hairline-strong) !important;
  border-radius: 2px !important;
  background: transparent !important;
  padding: 2px 8px !important;
  white-space: nowrap;
  display: inline-block;
}

/* Pagination — 2px signature radius (not circles) */
#paginationControls button {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  border: 1px solid var(--hairline-strong) !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

#paginationControls button:hover { background: var(--ink) !important; color: var(--bg) !important; }
#paginationControls .pageInfo { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   9. MOBILE SCORE CAROUSEL — dark glass chrome
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sm-swiper {
    background: var(--dark-bg) !important;
    border-radius: 0 !important;
  }

  .sm-sheet-img {
    border: 1px solid var(--hairline) !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08) !important;
    background: var(--surface);
  }

  .sm-overlay-counter {
    background: rgba(23, 20, 18, 0.72) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--dark-ink) !important;
    font-family: var(--sans);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .sm-overlay-btn {
    background: rgba(23, 20, 18, 0.72) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--dark-ink) !important;
  }

  .sm-carousel .sm-carousel-play {
    width: 56px !important;
    height: 56px !important;
    background: rgba(250, 247, 242, 0.94) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .sm-buybar {
    background: rgba(250, 247, 242, 0.95) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline);
  }

  .sm-buybar-price {
    font-family: var(--serif) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
  }

  .sm-buybar-meta { color: var(--muted) !important; font-weight: 500 !important; }

  .sheetmusic_wrapper_container .table-controls { gap: 10px; }
}

/* --------------------------------------------------------------------------
   10. LISTEN PAGE
   -------------------------------------------------------------------------- */
.toggle-label {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.switch .slider { background-color: var(--hairline-strong) !important; }
.switch input:checked + .slider { background-color: var(--ink) !important; }

#albumSelector { font-weight: 500 !important; }

/* Album nav + share — 2px signature radius (not circles) */
#prevButton, #nextButton, #shareSongButton {
  width: 38px;
  height: 38px;
  border-radius: 2px !important;
  border: 1px solid var(--hairline-strong) !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

#prevButton:hover, #nextButton:hover, #shareSongButton:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

.nav-tabs { border-bottom: 1px solid var(--hairline) !important; }
.nav-tabs > li > a, .nav-tabs > li.active > a {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  margin-right: 24px;
  padding: 10px 2px !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--ink) !important;
  border-bottom: 2px solid var(--ink) !important;
}

.relatedProductsTitle, .mobile-relatedProductsTitle {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}

/* Streaming follow strip + badges */
.streaming-badges-label {
  font-family: var(--sans);
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.stream-badge {
  font-family: var(--sans);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  border: 1px solid var(--hairline-strong) !important;
  border-radius: 999px !important;
  background: transparent !important;
  padding: 5px 14px !important;
  transition: color 0.2s, border-color 0.2s !important;
}

.stream-badge:hover, .stream-badge:focus {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   11. PRODUCT GRIDS (books / cds) — boxless, whitespace is the design
   -------------------------------------------------------------------------- */
#bookGrid, #cdGrid { gap: 32px 0; }
#bookGrid > div, #cdGrid > div { margin-bottom: 56px; }
.book-container h3, .cd-container h3.title { font-size: 44px; margin-bottom: 8px; }
.cd-container .sub-title { color: var(--muted); }

/* --------------------------------------------------------------------------
   12. CONTACT / STUDIO
   -------------------------------------------------------------------------- */
#contact .contact-image { border-radius: 0; }
#contact p { color: var(--ink); }
.contact-line { border-color: var(--hairline) !important; }

.studio-container .studio-image { border-radius: 0; max-width: 100%; }
.studio-container p { max-width: 720px; }

/* --------------------------------------------------------------------------
   13. ABOUT PAGE
   -------------------------------------------------------------------------- */
.about-lede {
  font-family: var(--serif) !important;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
}

.about-body { max-width: 720px; color: var(--ink); }

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  max-width: 860px;
  margin: 64px 0;
}

.credential { border-top: 1px solid var(--hairline-strong); padding-top: 16px; }
.credential .cred-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.credential .cred-fact { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); }

.about-gallery {
  display: grid;
  /* auto-fit: 2 photos fill the row as 2 columns, 5 photos as 3+2 — no empty
     slot when an artist has fewer photos than a fixed 3-up grid expects. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 64px 0;
}

.about-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; display: block; }

.press-quotes .pullquote { margin-bottom: 72px; }

/* Warm-grade shared photo treatment */
.photo-warm { filter: sepia(0.08) saturate(0.92); }

/* --------------------------------------------------------------------------
   14. RESPONSIVE TYPE + RHYTHM
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .hero-name { font-size: 42px; }
  .hero-line { font-size: 15px; }
  .hero-inner { padding-bottom: 48px; }

  .band { padding: 64px 0; }
  .band-ruled::before { transform: translateY(-64px); }

  .pullquote blockquote, .pullquote p { font-size: 22px; }

  #footer { padding: 56px 0 40px; }

  .credentials { grid-template-columns: 1fr; gap: 28px; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-lede { font-size: 20px; }

  .sm-page-header h1 { font-size: 32px; }
}

/* ==========================================================================
   TYPOGRAPHY v2 — single family (Inter 300/400/500), quieter scale.
   Owner feedback: serif read as Times New Roman; too many voices, too large.
   Hierarchy now comes from weight + tracking, not family or size. Scale per
   expert pass: hero −26%, H1 −36%, prices −27%; tracked 11px caps eyebrows
   are the signature detail. Loaded last: these override the v1 sizes above.
   ========================================================================== */
body { font-size: 16px; }

body h1, body h2, body h3, body .h1, body .h2, body .h3 { font-weight: 500; }
h1 { font-size: 28px; letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 17px; }

.eyebrow, .hero-eyebrow { font-weight: 500; font-size: 11px; letter-spacing: 0.18em; }

/* Hero name: display serif, light — whitelist appearance 1 of 2 */
.hero-name {
  font-family: var(--display) !important;
  font-size: 56px;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.hero-line { font-size: 15px; }

/* Navbar + footer brand: one shared caps wordmark voice */
.navbar .navbar-brand,
.navbar .navbar-brand strong {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
}

.navbar .navbar-brand { padding-top: 22px; padding-bottom: 22px; }

.navbar .nav.navbar-nav > li > a {
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em;
}

#footer .footer-brand {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Buttons: unified 12px / 500 / +0.14em */
.btn-ink, .btn-ghost,
#contact .btn-primary,
.footer-signup-form button,
.signup button {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Pull-quote: display serif italic — whitelist appearance 2 of 2 */
.pullquote blockquote,
.pullquote p {
  font-family: var(--display) !important;
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

/* Store */
.sm-page-header h1 { font-size: 28px; }
.sm-header-accent { font-style: normal; font-weight: 300; }

.relatedProductsTitle, .mobile-relatedProductsTitle {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

/* About */
.about-lede { font-size: 21px; font-weight: 300; line-height: 1.55; }
.credential .cred-fact { font-weight: 400; font-size: 15px; }

@media (max-width: 768px) {
  .hero-name { font-size: 30px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .pullquote blockquote, .pullquote p { font-size: 17px; }
  .about-lede { font-size: 19px; }
  .sm-page-header h1 { font-size: 24px; }

  /* Mobile menu: quiet stacked sans, not display serif */
  .navbar .nav.navbar-nav > li > a {
    font-family: var(--sans) !important;
    font-size: 19px !important;
    font-weight: 300 !important;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  /* Buy-bar price: sans, tabular */
  .sm-buybar-price {
    font-family: var(--sans) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
}

/* Quiet trust line (replaces the icon trust row — facts, not sales) */
.sm-trust-line {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Outline SVG glyph sizing for audio controls */
.play-button svg { width: 12px; height: 12px; display: block; }
.sm-carousel .sm-carousel-play svg { width: 20px; height: 20px; display: block; margin: 0 auto; }

/* --------------------------------------------------------------------------
   TABLE BALANCE — give Title the slack; pin the narrow data columns.
   Fixes: "G Major" wrapping, titles breaking in unruly places, oversized
   row text. Column order: cover / play / artist / title / popularity /
   difficulty / key / bpm / view / add.
   -------------------------------------------------------------------------- */
#productTable { width: 100%; table-layout: auto; }

#productTable > thead > tr > th:nth-child(1) { width: 56px; }
#productTable > thead > tr > th:nth-child(1) .fas { display: none; } /* cover sort = noise */
#productTable > thead > tr > th:nth-child(2) { width: 56px; }
#productTable > thead > tr > th:nth-child(3) { width: 150px; }
/* th 4 (Title) takes all remaining width */
#productTable > thead > tr > th:nth-child(5) { width: 104px; }
#productTable > thead > tr > th:nth-child(6) { width: 104px; }
#productTable > thead > tr > th:nth-child(7) { width: 84px; }
#productTable > thead > tr > th:nth-child(8) { width: 84px; }
#productTable > thead > tr > th:nth-child(9) { width: 80px; }
#productTable > thead > tr > th:nth-child(10) { width: 88px; }

#productTable > tbody > tr > td { font-size: 13px; }
#productTable .piece-link { font-size: 14px; }

/* Key and BPM never wrap; key rendered by CSS, not inline styles */
#productTable > tbody > tr > td:nth-child(7),
#productTable > tbody > tr > td:nth-child(8) { white-space: nowrap; }
#productTable .td-key { font-size: 13px; color: var(--muted); }

/* The legacy 940px container cap starves the 10-column store table — give
   the sheet-music page a data-table-worthy width. (Other pages keep the
   narrower reading measure.) */
@media (min-width: 1100px) {
  .container.sheetmusic_wrapper_container {
    width: auto !important;
    max-width: 1240px;
  }
}

/* --------------------------------------------------------------------------
   LIGHT-HERO VARIANT — for bright/airy photos, add `hero--light` to the
   hero <section> in the artist fragment. Flips the scrim to ivory, the text
   to ink, and (via :has) the transparent navbar to ink. Dark photos need
   no class; both current hero images measure ~0.08 luminance (very dark).
   -------------------------------------------------------------------------- */
.hero--light::before {
  background:
    linear-gradient(to top, rgba(250, 247, 242, 0.9) 0%, rgba(250, 247, 242, 0) 60%),
    rgba(250, 247, 242, 0.18);
}

.hero--light .hero-eyebrow,
.hero--light .hero-line { color: var(--muted); }

.hero--light .hero-name { color: var(--ink) !important; }

.hero--light .hero-ctas .btn-ink {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--bg) !important;
}

.hero--light .hero-ctas .btn-ink:hover { background: var(--ink-hover) !important; }

.hero--light .hero-ctas .btn-ghost {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.hero--light .hero-ctas .btn-ghost:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

body.pull_top:has(.hero--light) .home-nav:not(.sticky) .navbar-brand,
body.pull_top:has(.hero--light) .home-nav:not(.sticky) .navbar-brand strong { color: var(--ink) !important; }
body.pull_top:has(.hero--light) .home-nav:not(.sticky) .nav.navbar-nav > li > a { color: var(--muted) !important; }
body.pull_top:has(.hero--light) .home-nav:not(.sticky) .nav.navbar-nav > li > a:hover { color: var(--ink) !important; }
body.pull_top:has(.hero--light) .home-nav:not(.sticky) .navbar-toggle .icon-bar { background: var(--ink) !important; }

/* --------------------------------------------------------------------------
   STICKY FOOTER — short pages (studio, contact) were mostly footer. The
   content area now stretches so the footer starts at the fold or below,
   never dominating the viewport. Footer includes are body-level siblings
   on every page; margin-top:auto pushes them down the flex column.
   -------------------------------------------------------------------------- */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#includeFooter,
[id$="-includeFooter"] {
  margin-top: auto;
}

/* Studio page: content sits near the top; the sitewide sticky footer
   (body flex + footer margin-top:auto) pushes the dark band down to fill
   whatever space is left BELOW — so no big empty gap above the content. */
.studio-container .container {
  padding-top: 40px;
  padding-bottom: 72px;
}

.studio-container h1 { margin-bottom: 36px; }
.studio-container .studio-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   LISTEN — kill the legacy blue focus glow on selects (off-brand), and make
   the active product tab's ink underline robust with extra breathing room.
   -------------------------------------------------------------------------- */
#albumSelector:focus,
#itemsPerPage:focus,
#artistFilter:focus,
select.form-control:focus {
  border-color: var(--ink) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Active tab: ink underline, generous gap to the text, no blue focus ring —
   target both the <a>.active and BS3's runtime <li>.active for safety. */
.nav-tabs .nav-link.active,
.nav-tabs > li.active > a {
  color: var(--ink) !important;
  border-bottom: 2px solid var(--ink) !important;
}

.nav-tabs .nav-link,
.nav-tabs > li > a {
  padding-bottom: 13px !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs > li > a:focus {
  outline: none !important;
  box-shadow: none !important;
}
