/* A restrained finish for the existing monochrome CIRCUIT layouts. */
body.csm-site-polish {
  --csm-ink: #f1f1ef;
  --csm-copy: #bfbfbd;
  --csm-muted: #969696;
  --csm-line: #292929;
  --csm-surface: #0a0a0a;
  --csm-radius: 14px;
  -webkit-font-smoothing: antialiased;
}

body.csm-site-polish ::selection { background: #ddd; color: #080808; }

/* Keep the existing logo and centered navigation, with clearer active states. */
body.csm-site-polish .main-header-menu > .menu-item > .menu-link {
  color: #bcbcbc !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: .09em;
  transition: color .18s ease;
}
body.csm-site-polish .main-header-menu > .menu-item > .menu-link:hover,
body.csm-site-polish .main-header-menu > .current-menu-item > .menu-link {
  color: #fff !important;
}
body.csm-site-polish .main-header-menu > .current-menu-item > .menu-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
body.csm-site-polish .main-header-menu .menu-link:focus-visible {
  outline: 1px solid #ddd;
  outline-offset: -4px;
}

/* The static interior pages share the same title rhythm. Their content order
 * and widths stay under Elementor's control. The homepage keeps its hero. */
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child {
  height: auto !important;
  min-height: 0 !important;
  padding: 196px 24px 52px !important;
}
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child :is(.e-con, .e-con-inner) {
  min-height: 0 !important;
  padding-block: 0 !important;
  margin-block: 0 !important;
}
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child .elementor-widget-heading {
  margin-block: 0 !important;
  padding-block: 0 !important;
}
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child h1.elementor-heading-title,
body.csm-design-shop .elementor-location-archive > .e-con:first-child h1.elementor-heading-title {
  color: var(--csm-ink) !important;
  font-size: clamp(48px, 6vw, 88px) !important;
  line-height: 1.06 !important;
  font-weight: 600;
  letter-spacing: -.035em !important;
}
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:not(:first-child):not(.ncm-auto-hide-events) {
  padding-block: clamp(28px, 3.5vw, 52px) !important;
  margin-block: 0 !important;
}
body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:not(:first-child) > .e-con-inner {
  padding-block: 0 !important;
}
body.csm-site-polish .elementor :is(h1, h2, h3).elementor-heading-title {
  color: var(--csm-ink);
  letter-spacing: -.015em;
  text-wrap: balance;
}
body.csm-site-polish .elementor-widget-divider { --divider-color: #292929; }
body.csm-site-polish .elementor-widget-text-editor {
  color: var(--csm-copy);
  line-height: 1.75;
}
body.csm-site-polish.home .elementor-widget-text-editor {
  max-width: 72ch;
  margin-inline: auto;
}
/* Reading copy stays visible while the existing photographic effects move. */
body.csm-site-polish.home :is(.elementor-widget-text-editor, .elementor-widget-heading) {
  opacity: 1 !important;
  will-change: auto !important;
}
body.csm-site-polish.home h2.elementor-heading-title {
  font-size: clamp(32px, 4vw, 60px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  color: var(--csm-ink) !important;
}
body.csm-site-polish.home h2.elementor-heading-title a { color: inherit; }
/* Music retains its heading/player order, with a tighter section rhythm. */
body.csm-design-music .elementor-widget-heading:has(h3) {
  margin-block-start: 0 !important;
  padding-block-end: 24px !important;
}
body.csm-design-music h3.elementor-heading-title {
  font-size: clamp(28px, 2.5vw, 38px) !important;
  line-height: 1.2 !important;
}
body.csm-design-music .csm-radio--room .csm-radio__panel {
  border-color: var(--csm-line);
  border-radius: var(--csm-radius);
  background: var(--csm-surface);
}

/* Existing event rows remain horizontal on desktop and stacked on phones. */
body.csm-site-polish .upcoming-events-grid .event-details {
  background: var(--csm-surface);
  border: 1px solid var(--csm-line) !important;
  border-radius: var(--csm-radius) !important;
  padding: clamp(24px, 2.6vw, 36px) !important;
  margin-bottom: 32px !important;
  box-shadow: none !important;
}
body.csm-design-events .ncm-auto-hide-events > .e-con-inner > .e-con:first-child {
  padding-block: 18px !important;
  margin-block: 0 !important;
}
body.csm-design-events .ncm-auto-hide-events > .e-con {
  margin-block: 0 !important;
}
body.csm-site-polish .upcoming-events-grid .more-info-btn { font-size: 13px !important; }
body.csm-site-polish .upcoming-events-grid .event-col1 {
  border-right-color: #333 !important;
  border-right-style: solid;
}
body.csm-site-polish .event-col1 .venue .elementor-heading-title,
body.csm-site-polish .event-col1 .venue .elementor-heading-title a { color: #bdbdbd !important; }
body.csm-site-polish .event-col1 .location .elementor-heading-title,
body.csm-site-polish .event-col1 .location .elementor-heading-title a { color: #929292 !important; }
body.csm-site-polish .upcoming-events-grid .event-col2 img {
  border-radius: 8px !important;
}
body.csm-site-polish .upcoming-events-grid .event-secondary-title .elementor-heading-title {
  line-height: 1.08 !important;
}

/* Gallery, past-event and shop imagery retain their current crops. */
body.csm-site-polish .ncm-event-card {
  border: 1px solid var(--csm-line) !important;
  border-radius: var(--csm-radius) !important;
  background: var(--csm-surface);
  box-shadow: none !important;
}
body.csm-site-polish .ncm-event-card__link {
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}
body.csm-site-polish .ncm-event-card:has(a:hover) { border-color: #555 !important; }
body.csm-site-polish .ncm-event-card__link:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
body.csm-site-polish .ncm-event-card__thumb { border-radius: 8px; overflow: hidden; }
body.csm-site-polish .ncm-event-card__title { color: var(--csm-ink); line-height: 1.35; }
body.csm-site-polish .ncm-event-card__date { color: var(--csm-muted); }
body.csm-site-polish .elementor-widget-posts:not(.upcoming-events-grid) .elementor-post {
  overflow: hidden;
  border: 1px solid var(--csm-line);
  border-radius: var(--csm-radius);
  background: var(--csm-surface);
  box-shadow: none !important;
  transition: border-color .2s ease;
}
body.csm-site-polish .elementor-widget-posts:not(.upcoming-events-grid) .elementor-post:hover {
  border-color: #555;
}
body.csm-site-polish .elementor-widget-posts:not(.upcoming-events-grid) .elementor-post__text {
  padding: 20px 18px !important;
}
body.csm-site-polish .elementor-post__title {
  line-height: 1.35 !important;
  letter-spacing: .015em;
}
body.csm-site-polish .elementor-gallery-item { border-radius: 10px; overflow: hidden; }
body.csm-site-polish .elementor-widget-tabs .elementor-tab-title {
  color: #aaa;
  line-height: 1.4;
}
body.csm-site-polish .elementor-widget-tabs .elementor-tab-title.elementor-active {
  color: #fff;
  background: #111;
}
body.csm-site-polish :is(.ncm-youtube-playlist, .elementor-widget-video, .elementor-tab-content) iframe {
  border-radius: 10px;
}

/* One quiet button treatment, with the same pill shape already used onsite.
 * The radio's small transport controls and checkout controls keep their own UI. */
body.csm-site-polish :is(.elementor-button, .more-info-btn, .csm-event-teaser__button,
  .csm-event-teaser-row__more, .csm-ticket-form button[type="submit"],
  .wpforms-submit, .cymbal-user-subscribe-container button, .ncm-events-filters-form button, .woocommerce ul.products .button) {
  border: 1px solid #454545 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1a1a, #0b0b0b) !important;
  color: #ececec !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 #ffffff08 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
body.csm-site-polish :is(.elementor-button, .more-info-btn, .csm-event-teaser__button,
  .csm-event-teaser-row__more, .csm-ticket-form button[type="submit"],
  .wpforms-submit, .cymbal-user-subscribe-container button, .ncm-events-filters-form button, .woocommerce ul.products .button):hover {
  border-color: #aaa !important;
  color: #fff !important;
}
body.csm-site-polish :is(.elementor-button, .more-info-btn, .wpforms-submit):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
/* The embedded signup keeps its existing fields and validation. */
body.csm-site-polish .elementor-widget-html:has(#chainpass-user-subscribe-widget) {
  border: 1px solid var(--csm-line) !important;
  border-radius: var(--csm-radius) !important;
  box-shadow: none !important;
}
body.csm-site-polish .cymbal-user-subscribe-container {
  max-width: 100%;
  border: 0 !important;
  border-radius: var(--csm-radius) !important;
  box-shadow: none !important;
}
body.csm-site-polish .cymbal-user-subscribe-container .input-container {
  border-color: #454545 !important;
}
body.csm-site-polish .cymbal-user-subscribe-container .custom-input {
  min-width: 0;
  width: 100%;
}
body.csm-site-polish .cymbal-user-subscribe-container .input-container:focus-within {
  outline: 1px solid #bdbdbd;
  outline-offset: 2px;
}
body.csm-site-polish .wpforms-container input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.csm-site-polish .wpforms-container :is(textarea, select),
body.csm-site-polish .ncm-events-filters-form :is(input, select) {
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #414141 !important;
  border-radius: 8px;
  background-color: #101010 !important;
  color: #eee !important;
  box-shadow: none;
}
body.csm-site-polish .wpforms-container :is(input, textarea, select):focus {
  border-color: #bdbdbd !important;
  outline: 1px solid #bdbdbd;
  outline-offset: 2px;
}
body.csm-site-polish .wpforms-container :is(input, textarea)::placeholder { color: #939393; opacity: 1; }
body.csm-site-polish .wpforms-container .wpforms-field-label { color: #ccc; }
body.csm-design-faq .elementor-widget-text-editor { max-width: 74ch; }
body.csm-design-faq h3.elementor-heading-title { line-height: 1.35; }
body.csm-site-polish .woocommerce ul.products li.product:not(.elementor-location-archive) {
  box-sizing: border-box;
  min-width: 0;
  width: auto !important;
  padding: 14px;
  border: 1px solid var(--csm-line);
  border-radius: var(--csm-radius);
  background: var(--csm-surface);
}
body.csm-site-polish .woocommerce ul.products .woocommerce-loop-product__title {
  color: var(--csm-ink);
  line-height: 1.35;
  letter-spacing: .01em;
}
body.csm-site-polish .woocommerce ul.products .price { color: #bdbdbd; }
body.csm-site-polish .woocommerce ul.products img { border-radius: 8px; }
body.csm-site-polish .elementor-location-footer {
  border-top: 1px solid #222;
}
body.csm-site-polish .elementor-location-footer .elementor-social-icon { opacity: .7; transition: opacity .18s ease; }
body.csm-site-polish .elementor-location-footer .elementor-social-icon:hover { opacity: 1; }

@media (max-width: 921px) {
  body.csm-site-polish .main-header-menu > .menu-item > .menu-link {
    min-height: 48px;
    font-size: 14px !important;
  }
  body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child {
    padding: 132px 20px 36px !important;
  }
}
@media (max-width: 767px) {
  body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child {
    padding-top: 116px !important;
  }
  body.csm-design-interior .site-content .elementor[data-elementor-post-type="page"] > .e-con:first-child h1.elementor-heading-title,
  body.csm-design-shop .elementor-location-archive > .e-con:first-child h1.elementor-heading-title {
    font-size: clamp(40px, 12vw, 60px) !important;
  }
  body.csm-site-polish .upcoming-events-grid .event-details {
    width: min(100%, 520px) !important;
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
  body.csm-site-polish .upcoming-events-grid .event-col1 { border-right: 0 !important; }
  body.csm-site-polish .upcoming-events-grid .event-col3 { margin-top: 18px !important; }
  body.csm-site-polish .upcoming-events-grid .event-col2.event-img-col img {
    max-width: 200px !important;
  }
  body.csm-site-polish .upcoming-events-grid .more-info-btn { font-size: 12px !important; }
  body.csm-site-polish .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.csm-site-polish .woocommerce ul.products .woocommerce-loop-product__title { overflow-wrap: anywhere; }
  body.csm-site-polish .cymbal-user-subscribe-container div:has(> .input-container) {
    flex-direction: column !important;
    gap: 12px !important;
  }
  body.csm-site-polish .cymbal-user-subscribe-container .input-container {
    flex: auto !important;
    min-width: 0 !important;
    width: 100%;
  }
  body.csm-site-polish .cymbal-user-subscribe-container button {
    margin-left: 0 !important;
    width: 100%;
  }
  body.csm-site-polish.home .elementor-widget-text-editor { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  body.csm-site-polish :is(.elementor-button, .more-info-btn, .elementor-social-icon, .elementor-post, .menu-link) {
    transition: none !important;
  }
}
