/* =========================================================
   PORTALTHEME – FULL CSS (CLEAN, CONSOLIDATED, UNIFORM)
   (Aligned to the Event page styling you just finalised)
   ========================================================= */


/* =========================================================
   0) GLOBAL RHYTHM / TYPOGRAPHY (CALMER + MORE SCANNABLE)
   ========================================================= */

.main-content__container,
.site-main {
  line-height: 1.25;
}

.main-content__container p,
.main-content__container ul,
.main-content__container ol,
.main-content__container li,
.main-content__container table,
.main-content__container td,
.main-content__container th {
  line-height: 1.2;
}

/* Keep headings punchy */
.main-content__container h1,
.main-content__container h2,
.main-content__container h3,
.main-content__container h4 {
  line-height: 1.1;
}


/* =========================================================
   1) GLOBAL HEADER
   ========================================================= */

.site-header {
  background: #fff;
  border-bottom: 2px solid #000;
}

/* Restore header height on /user pages (block is hidden there) */
body.path-user .site-header h1.page-title {
  padding: 45px 0;
}

/* Page title in header – cover BOTH Olivero title variants */
.site-header .page-title {
  color: #fff;
  margin: 0;
  padding: 0;
}

.site-header__fixable,
.site-header__initial {
  background: #fff;
}

.sticky-header-toggle {
  background: #fff;
  border: 2px solid #000;
  padding: 10px;
}

.sticky-header-toggle__icon span {
  background: #000;
}

.site-header__inner {
  background: #000;
}

.site-header__inner__container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* Page title in header – cover BOTH Olivero title variants */
.site-header .page-title {
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Give the header title block “big” padding */
.site-header .block-page-title-block {
  padding: 45px 0 !important;
}

/* Header nav */
#header-nav {
  min-width: 260px;
}

.primary-nav__menu--level-1 {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__menu-link {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-nav__menu-link:hover,
.primary-nav__menu-link.is-active,
.primary-nav__menu-link[aria-current="page"] {
  background: #000;
  color: #fff;
}


/* =========================================================
   2) LEFT SIDEBAR LAYOUT (MATCH EVENT PAGE WIDTH FEEL)
   ========================================================= */

@media (min-width: 62rem) {
  .sidebar-grid.grid-full.has-left-sidebar {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important; /* was 10rem */
    gap: 2rem;
    align-items: start;
  }
}

.sidebar-left {
  min-width: 260px; /* was 10rem */
}

.sidebar-left,
.sidebar-left * {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Pull main content + sidebar up closer to the header */
.main-content__container.container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Consistent gap below the header for pages with sidebar layout */
.sidebar-grid.grid-full {
  margin-top: 24px !important;
}

/* Mobile: stack sidebar above content */
@media (max-width: 1250px) {
  .sidebar-grid.grid-full.has-left-sidebar {
    display: block !important;
  }

  .sidebar-left {
    min-width: 0;
    margin-bottom: 16px;
  }
}


/* =========================================================
   3) USER ACCOUNT MENU (LEFT SIDEBAR) – SAME BUTTON LANGUAGE
   ========================================================= */

#block-portaltheme-useraccountmenu {
  margin: 0;
}

/* Hide block title (cleaner sidebar) */
#block-portaltheme-useraccountmenu .block__title {
  display: none;
}

#block-portaltheme-useraccountmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#block-portaltheme-useraccountmenu li {
  margin-bottom: 10px;
}

#block-portaltheme-useraccountmenu a {
  display: block;
  padding: 14px 16px;            /* slightly more “confident” */
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-weight: 800;              /* matches the portal “button” feel */
  text-decoration: none;
  line-height: 1.1;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

#block-portaltheme-useraccountmenu a:hover,
#block-portaltheme-useraccountmenu a.is-active,
#block-portaltheme-useraccountmenu a[aria-current="page"] {
  background: #000;
  color: #fff;
}

/* Tiny “tactile” tap feel (subtle) */
#block-portaltheme-useraccountmenu a:active {
  transform: scale(0.995);
}


/* =========================================================
   4) MY SHOWS / FIRST REFUSAL — COMPACT CARDS (WITH PILLS KEPT)
   Applies to:
   - .my-shows
   - /first-refusal views wrappers
   ========================================================= */

/* Compact tuning knobs */
:root{
  --card-border: 2px;
  --card-gap: 10px;         /* space BETWEEN cards */
  --card-pad-x: 14px;       /* left/right padding inside card */
  --card-pad-y: 8px;        /* vertical padding inside card body rows */
  --title-pad-y: 8px;
  --title-pad-x: 14px;

  --title-size: 1.15rem;
  --ensemble-size: 1.0rem;
  --date-size: 1.12rem;
  --venue-size: 0.95rem;

  --btn-pad-y: 8px;
  --btn-pad-x: 12px;
}

/* ---------- Card wrapper ---------- */
.my-shows .views-row,
.view-id-first_refusal .views-row,
.view-first-refusal .views-row,
body.path-first-refusal .view .views-row{
  border: var(--card-border) solid #000;
  background: #fff;
  margin: 0 0 var(--card-gap) 0;
  padding: 0;
}

/* ---------- Title bar ---------- */
.my-shows .views-field-title,
.view-id-first_refusal .views-field-title,
.view-first-refusal .views-field-title,
body.path-first-refusal .view .views-field-title{
  background:#000;
  padding: var(--title-pad-y) var(--title-pad-x);
}

/* Title text */
.my-shows .views-field-title .field-content,
.view-id-first_refusal .views-field-title .field-content,
.view-first-refusal .views-field-title .field-content,
body.path-first-refusal .view .views-field-title .field-content{
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  font-size: var(--title-size);
  line-height:1.05;
  letter-spacing:0.01em;
  margin:0;
}

/* ---------- Body fields (tight) ---------- */
.my-shows .views-field:not(.views-field-title),
.view-id-first_refusal .views-field:not(.views-field-title),
.view-first-refusal .views-field:not(.views-field-title),
body.path-first-refusal .view .views-field:not(.views-field-title){
  padding: var(--card-pad-y) var(--card-pad-x) 0;
}

.my-shows .views-field:last-child,
.view-id-first_refusal .views-field:last-child,
.view-first-refusal .views-field:last-child,
body.path-first-refusal .view .views-field:last-child{
  padding-bottom: calc(var(--card-pad-y) + 2px);
}

/* Kill default margins inside field output */
.my-shows .views-field .field-content,
.view-id-first_refusal .views-field .field-content,
.view-first-refusal .views-field .field-content,
body.path-first-refusal .view .views-field .field-content{
  margin:0;
}

/* Ensemble */
.my-shows .views-field-field-ensemble .field-content,
.view-id-first_refusal .views-field-field-ensemble .field-content,
.view-first-refusal .views-field-field-ensemble .field-content,
body.path-first-refusal .view .views-field-field-ensemble .field-content{
  font-size: var(--ensemble-size);
  font-weight:650;
  line-height:1.15;
}

/* Date (hero line) */
.my-shows .views-field-field-event-date time,
.my-shows .views-field-field-event-date .field-content,
.view-id-first_refusal .views-field-field-event-date time,
.view-id-first_refusal .views-field-field-event-date .field-content,
.view-first-refusal .views-field-field-event-date time,
.view-first-refusal .views-field-field-event-date .field-content,
body.path-first-refusal .view .views-field-field-event-date time,
body.path-first-refusal .view .views-field-field-event-date .field-content{
  font-size: var(--date-size);
  font-weight:900;
  line-height:1.15;
}

/* Venue */
.my-shows .views-field-field-venue .field-content,
.view-id-first_refusal .views-field-field-venue .field-content,
.view-first-refusal .views-field-field-venue .field-content,
body.path-first-refusal .view .views-field-field-venue .field-content{
  font-size: var(--venue-size);
  font-weight:600;
  line-height:1.15;
}

/* ---------- STATUS PILL (make it bulletproof in Views) ---------- */

/* If the view outputs <span class="status-pill ..."> keep using that */
.my-shows .views-field-field-status .status-pill,
.view-id-first_refusal .views-field-field-status .status-pill,
.view-first-refusal .views-field-field-status .status-pill,
body.path-first-refusal .view .views-field-field-status .status-pill{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* If the view outputs plain text (no span), style field-content like the pill */
.my-shows .views-field-field-status .field-content,
.view-id-first_refusal .views-field-field-status .field-content,
.view-first-refusal .views-field-field-status .field-content,
body.path-first-refusal .view .views-field-field-status .field-content{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Colour mapping based on existing modifier classes IF present */
.status-pill--enquiry{background:#dbeafe;border-color:#2563eb;color:#1e3a8a;}
.status-pill--first-refusal{background:#f472b6;border-color:#ec4899;color:#831843;}
.status-pill--pending-contract{background:#dcfce7;border-color:#86efac;color:#14532d;}
.status-pill--confirmed{background:#166534;border-color:#14532d;color:#fff;}
.status-pill--cancelled,
.status-pill--cancellend{background:#fee2e2;border-color:#dc2626;color:#7f1d1d;}
.status-pill--past{background:#ede9fe;border-color:#7c3aed;color:#4c1d95;}

/* If first-refusal is plain text, force that colour */
body.path-first-refusal .views-field-field-status .field-content{
  background:#f472b6;
  border-color:#ec4899;
  color:#831843;
}

/* ---------- Button (compact) ---------- */
.my-shows .views-field-view-node a,
.view-id-first_refusal .views-field-view-node a,
.view-first-refusal .views-field-view-node a,
body.path-first-refusal .view .views-field-view-node a{
  display:inline-block;
  margin-top: 6px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 2px solid #000;
  background:#000;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  line-height:1;
  transition: background-color .15s ease, color .15s ease, transform .08s ease;
}

.my-shows .views-field-view-node a:hover,
.my-shows .views-field-view-node a:focus-visible,
.view-id-first_refusal .views-field-view-node a:hover,
.view-id-first_refusal .views-field-view-node a:focus-visible,
.view-first-refusal .views-field-view-node a:hover,
.view-first-refusal .views-field-view-node a:focus-visible,
body.path-first-refusal .view .views-field-view-node a:hover,
body.path-first-refusal .view .views-field-view-node a:focus-visible{
  background:#fff;
  color:#000;
}

.my-shows .views-field-view-node a:active,
.view-id-first_refusal .views-field-view-node a:active,
.view-first-refusal .views-field-view-node a:active,
body.path-first-refusal .view .views-field-view-node a:active{
  transform: scale(0.995);
}

/* =========================================================
   OPTIONAL: Multi-column layout on desktop to reduce scrolling
   (keeps same card style)
   ========================================================= */
@media (min-width: 62rem){
  .my-shows .view-content,
  .view-id-first_refusal .view-content,
  .view-first-refusal .view-content,
  body.path-first-refusal .view .view-content{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    align-items:start;
  }

  .my-shows .views-row,
  .view-id-first_refusal .views-row,
  .view-first-refusal .views-row,
  body.path-first-refusal .view .views-row{
    margin: 0; /* grid gap handles spacing */
  }
}





/* =========================================================
   5) USER / LOGIN / ACCOUNT PAGES
   ========================================================= */

/* White panel wrapper */
body.path-user .main-content__container,
body.path-user-login .main-content__container,
body.path-user-register .main-content__container,
body.path-user-password .main-content__container {
  background: #fff;
  padding: 32px;
  border: 2px solid #000;
}

/* Hide header page title block on /user pages (prevents duplicate titles) */
body.path-user .site-header .block-page-title-block {
  display: none !important;
}

/* Forms */
body.path-user .form-item__label,
body.path-user-login .form-item__label {
  font-weight: 700;
}

body.path-user .form-text,
body.path-user .form-email,
body.path-user .form-select,
body.path-user-login .form-text,
body.path-user-login .form-email,
body.path-user-login .form-password {
  border: 2px solid #000;
  padding: 10px;
  width: 100%;
  font-size: 16px;
}

/* Primary buttons */
body.path-user .button--primary,
body.path-user-login .button--primary {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

/* Login panel width */
body.path-user-login .main-content__container {
  max-width: 420px;
}

/* Login page title */
body.path-user-login h1 {
  font-weight: 800;
  margin-bottom: 24px;
}

/* Login button specifics */
body.path-user-login .button--primary {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.path-user-login .button--primary:hover {
  background: #fff;
  color: #000;
}

/* Reset password link */
body.path-user-login .user-login-form ul {
  margin-top: 20px;
  padding-left: 18px;
}

body.path-user-login .user-login-form a {
  font-weight: 700;
  text-decoration: underline;
}


/* =========================================================
   6) USER PROFILE TABS – MATCH LEFT SIDEBAR BUTTONS
   ========================================================= */

body.path-user .tabs--primary {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

body.path-user .tabs__list {
  display: flex;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.path-user .tabs__tab {
  margin: 0 !important;
}

body.path-user .tabs__link {
  box-sizing: border-box;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 0 !important;

  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Remove Olivero underline indicator */
body.path-user .tabs__link::after,
body.path-user .tabs__link.is-active::after {
  content: none !important;
}

body.path-user .tabs__link.is-active {
  background: #000;
  color: #fff;
}

/* Mobile: keep tabs visible (no hamburger trigger) */
@media (max-width: 900px) {
  body.path-user .tabs__trigger {
    display: none !important;
  }

  body.path-user .tabs__tab {
    display: block !important;
    flex: 1 1 0;
  }

  body.path-user .tabs__link {
    width: 100%;
  }
}


/* =========================================================
   7) FIELD LABEL/VALUE HIERARCHY – MATCH EVENT PAGE
   Applies broadly to content fields (not form labels)
   ========================================================= */

/* Desktop: keep inline labels inline, but calmer hierarchy */
.main-content__container .node__content .field--label-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  clear: both;
}

.main-content__container .node__content .field--label-inline .field__label,
.main-content__container .node__content .field--label-inline .field__item {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Label = grey, normal */
.main-content__container .node__content .field--label-inline .field__label {
  color: #6b7280;
  font-weight: 400;
  margin: 0 8px 0 0;
  white-space: nowrap;
}

/* Value = black, bold-ish */
.main-content__container .node__content .field--label-inline .field__item {
  color: #111;
  font-weight: 600;
  margin: 0;
}

/* Mobile: stack label above value (prevents ugly wrapping) */
@media (max-width: 640px) {
  .main-content__container .node__content .field--label-inline {
    display: block !important;
  }

  .main-content__container .node__content .field--label-inline .field__label,
  .main-content__container .node__content .field--label-inline .field__item {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .main-content__container .node__content .field--label-inline .field__label {
    white-space: normal !important;
    margin: 0 0 2px 0;
  }

  .main-content__container .node__content .field--label-inline .field__item {
    word-break: break-word;
  }
}


/* =========================================================
   8) MISC
   ========================================================= */

/* Don’t allow random centering/indent in details */
details {
  text-align: left !important;
}

/* Hide author / member metadata on event nodes (global safety) */
.node--type-event .node__meta {
  display: none;
}

/* Force Layout Builder 2-col sections to always stay 2 columns */
.layout--twocol-section {
  display: flex;
  gap: 2rem;
  align-items: start;
}

.layout--twocol-section > .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}
/* =========================================================
   PERSONNEL – MATCH PERFORMANCE / FIELDGROUP LOOK
   ========================================================= */

body.page-node-type-event .node--type-event .event-category.node-acl-list {
  margin: 0 0 16px 0;
  border: 2px solid #000;
  background: #fff;
  padding: 0;
}

/* Header bar (same as Performance) */
body.page-node-type-event .node--type-event .event-category__title {
  margin: 0;
  padding: 16px 18px;
  background: #5f7680;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  border-bottom: 2px solid #000;
}

/* Body padding like fieldgroup panes */
body.page-node-type-event .node--type-event .event-category.node-acl-list > *:not(.event-category__title) {
  padding: 16px;
}

/* Spacing between accordions */
body.page-node-type-event .node--type-event .event-category.node-acl-list details.olivero-details {
  margin: 0 0 16px 0;
}

body.page-node-type-event .node--type-event .event-category.node-acl-list details.olivero-details:last-child {
  margin-bottom: 0;
}

/* STATUS LOZENGES – global for field_status */
.field--name-field-status .status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid transparent;
  white-space: nowrap;
}

.field--name-field-status .status-pill--enquiry {
  background: #dbeafe; border-color: #2563eb; color: #1e3a8a;
}

.status-pill--first-refusal {
  background: #f472b6; border-color: #ec4899; color: #831843;
}

.field--name-field-status .status-pill--pending-contract {
  background: #dcfce7; border-color: #86efac; color: #14532d;
}

.field--name-field-status .status-pill--confirmed {
  background: #166534; border-color: #14532d; color: #fff;
}

.field--name-field-status .status-pill--cancelled,
.field--name-field-status .status-pill--cancellend {
  background: #fee2e2; border-color: #dc2626; color: #7f1d1d;
}

.field--name-field-status .status-pill--past {
  background: #ede9fe; border-color: #7c3aed; color: #4c1d95;
}

.status-pill{
  display:inline-block;
  padding:4px 12px;
  border-radius:999px;
  font-weight:900;
  line-height:1.1;
  border:2px solid transparent;
  white-space:nowrap;
}

.status-pill--enquiry{background:#dbeafe;border-color:#2563eb;color:#1e3a8a;}
.status-pill--pending-contract{background:#dcfce7;border-color:#86efac;color:#14532d;}
.status-pill--confirmed{background:#166534;border-color:#14532d;color:#fff;}
.status-pill--cancelled,
.status-pill--cancellend{background:#fee2e2;border-color:#dc2626;color:#7f1d1d;}
.status-pill--past{background:#ede9fe;border-color:#7c3aed;color:#4c1d95;}

/* /first-refusal View: make the status text look like the pill */
body.path-first-refusal .views-field-field-status .field-content {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;

  background: #f472b6;
  border: 2px solid #ec4899;
  color: #831843;
}

/* =========================================================
   4) MY SHOWS / FIRST REFUSAL — COMPACT CARDS (WITH PILLS KEPT)
   Applies to:
   - .my-shows
   - /first-refusal views wrappers
   ========================================================= */

/* Compact tuning knobs */
:root{
  --card-border: 2px;
  --card-gap: 10px;         /* space BETWEEN cards */
  --card-pad-x: 14px;       /* left/right padding inside card */
  --card-pad-y: 8px;        /* vertical padding inside card body rows */
  --title-pad-y: 8px;
  --title-pad-x: 14px;

  --title-size: 1.15rem;
  --ensemble-size: 1.0rem;
  --date-size: 1.12rem;
  --venue-size: 0.95rem;

  --btn-pad-y: 8px;
  --btn-pad-x: 12px;
}

/* ---------- Card wrapper ---------- */
.my-shows .views-row,
.view-id-first_refusal .views-row,
.view-first-refusal .views-row,
body.path-first-refusal .view .views-row{
  border: var(--card-border) solid #000;
  background: #fff;
  margin: 0 0 var(--card-gap) 0;
  padding: 0;
}

/* ---------- Title bar ---------- */
.my-shows .views-field-title,
.view-id-first_refusal .views-field-title,
.view-first-refusal .views-field-title,
body.path-first-refusal .view .views-field-title{
  background:#000;
  padding: var(--title-pad-y) var(--title-pad-x);
}

/* Title text */
.my-shows .views-field-title .field-content,
.view-id-first_refusal .views-field-title .field-content,
.view-first-refusal .views-field-title .field-content,
body.path-first-refusal .view .views-field-title .field-content{
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  font-size: var(--title-size);
  line-height:1.05;
  letter-spacing:0.01em;
  margin:0;
}

/* ---------- Body fields (tight) ---------- */
.my-shows .views-field:not(.views-field-title),
.view-id-first_refusal .views-field:not(.views-field-title),
.view-first-refusal .views-field:not(.views-field-title),
body.path-first-refusal .view .views-field:not(.views-field-title){
  padding: var(--card-pad-y) var(--card-pad-x) 0;
}

.my-shows .views-field:last-child,
.view-id-first_refusal .views-field:last-child,
.view-first-refusal .views-field:last-child,
body.path-first-refusal .view .views-field:last-child{
  padding-bottom: calc(var(--card-pad-y) + 2px);
}

/* Kill default margins inside field output */
.my-shows .views-field .field-content,
.view-id-first_refusal .views-field .field-content,
.view-first-refusal .views-field .field-content,
body.path-first-refusal .view .views-field .field-content{
  margin:0;
}

/* Ensemble */
.my-shows .views-field-field-ensemble .field-content,
.view-id-first_refusal .views-field-field-ensemble .field-content,
.view-first-refusal .views-field-field-ensemble .field-content,
body.path-first-refusal .view .views-field-field-ensemble .field-content{
  font-size: var(--ensemble-size);
  font-weight:650;
  line-height:1.15;
}

/* Date (hero line) */
.my-shows .views-field-field-event-date time,
.my-shows .views-field-field-event-date .field-content,
.view-id-first_refusal .views-field-field-event-date time,
.view-id-first_refusal .views-field-field-event-date .field-content,
.view-first-refusal .views-field-field-event-date time,
.view-first-refusal .views-field-field-event-date .field-content,
body.path-first-refusal .view .views-field-field-event-date time,
body.path-first-refusal .view .views-field-field-event-date .field-content{
  font-size: var(--date-size);
  font-weight:900;
  line-height:1.15;
}

/* Venue */
.my-shows .views-field-field-venue .field-content,
.view-id-first_refusal .views-field-field-venue .field-content,
.view-first-refusal .views-field-field-venue .field-content,
body.path-first-refusal .view .views-field-field-venue .field-content{
  font-size: var(--venue-size);
  font-weight:600;
  line-height:1.15;
}

/* ---------- STATUS PILL (make it bulletproof in Views) ---------- */

/* If the view outputs <span class="status-pill ..."> keep using that */
.my-shows .views-field-field-status .status-pill,
.view-id-first_refusal .views-field-field-status .status-pill,
.view-first-refusal .views-field-field-status .status-pill,
body.path-first-refusal .view .views-field-field-status .status-pill{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* If the view outputs plain text (no span), style field-content like the pill */
.my-shows .views-field-field-status .field-content,
.view-id-first_refusal .views-field-field-status .field-content,
.view-first-refusal .views-field-field-status .field-content,
body.path-first-refusal .view .views-field-field-status .field-content{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Colour mapping based on existing modifier classes IF present */
.status-pill--enquiry{background:#dbeafe;border-color:#2563eb;color:#1e3a8a;}
.status-pill--first-refusal{background:#f472b6;border-color:#ec4899;color:#831843;}
.status-pill--pending-contract{background:#dcfce7;border-color:#86efac;color:#14532d;}
.status-pill--confirmed{background:#166534;border-color:#14532d;color:#fff;}
.status-pill--cancelled,
.status-pill--cancellend{background:#fee2e2;border-color:#dc2626;color:#7f1d1d;}
.status-pill--past{background:#ede9fe;border-color:#7c3aed;color:#4c1d95;}

/* If first-refusal is plain text, force that colour */
body.path-first-refusal .views-field-field-status .field-content{
  background:#f472b6;
  border-color:#ec4899;
  color:#831843;
}

/* ---------- Button (compact) ---------- */
.my-shows .views-field-view-node a,
.view-id-first_refusal .views-field-view-node a,
.view-first-refusal .views-field-view-node a,
body.path-first-refusal .view .views-field-view-node a{
  display:inline-block;
  margin-top: 6px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 2px solid #000;
  background:#000;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  line-height:1;
  transition: background-color .15s ease, color .15s ease, transform .08s ease;
}

.my-shows .views-field-view-node a:hover,
.my-shows .views-field-view-node a:focus-visible,
.view-id-first_refusal .views-field-view-node a:hover,
.view-id-first_refusal .views-field-view-node a:focus-visible,
.view-first-refusal .views-field-view-node a:hover,
.view-first-refusal .views-field-view-node a:focus-visible,
body.path-first-refusal .view .views-field-view-node a:hover,
body.path-first-refusal .view .views-field-view-node a:focus-visible{
  background:#fff;
  color:#000;
}

.my-shows .views-field-view-node a:active,
.view-id-first_refusal .views-field-view-node a:active,
.view-first-refusal .views-field-view-node a:active,
body.path-first-refusal .view .views-field-view-node a:active{
  transform: scale(0.995);
}

/* =========================================================
   DESKTOP FLOW GLYPHS IN TITLE BAR
   ========================================================= */

@media (min-width: 62rem){

  /* Make title bar a positioning context */
  .my-shows .views-field-title,
  .view-id-first_refusal .views-field-title,
  .view-first-refusal .views-field-title,
  body.path-first-refusal .view .views-field-title{
    position: relative;
  }

  /* Base glyph styling */
  .my-shows .views-row .views-field-title::after,
  .view-id-first_refusal .views-row .views-field-title::after,
  .view-first-refusal .views-row .views-field-title::after,
  body.path-first-refusal .view .views-row .views-field-title::after{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
  }

  /* LEFT COLUMN cards (odd items in 2-col grid) */
  .my-shows .views-row:nth-child(odd) .views-field-title::after,
  .view-id-first_refusal .views-row:nth-child(odd) .views-field-title::after,
  .view-first-refusal .views-row:nth-child(odd) .views-field-title::after,
  body.path-first-refusal .view .views-row:nth-child(odd) .views-field-title::after{
    content: "➥";
  }

  /* RIGHT COLUMN cards (even items in 2-col grid) */
  .my-shows .views-row:nth-child(even) .views-field-title::after,
  .view-id-first_refusal .views-row:nth-child(even) .views-field-title::after,
  .view-first-refusal .views-row:nth-child(even) .views-field-title::after,
  body.path-first-refusal .view .views-row:nth-child(even) .views-field-title::after{
    content: "";
  }

}

/* Upcoming Shows: rehearsal dates inline with commas */
.view.view-my-shows .views-field-field-rehearsals .field__items,
.view.view-my-shows .views-field-field-rehearsals .field__item,
.view.view-my-shows .views-field-field-rehearsals .paragraph,
.view.view-my-shows .views-field-field-rehearsals .paragraph * {
  display: inline;
}

/* Ensure there's a space after commas if your separator is just "," */
.view.view-my-shows .views-field-field-rehearsals .field__item + .field__item::before {
  content: ", ";
}

/* Bold the Rehearsals label */
.view.view-my-shows .views-label-field-rehearsals {
  font-weight: 700;
}

/* ==============================
   Upcoming Shows: FILTER PILL BAR
   (uses existing .status-pill + .status-pill--* colours)
   ============================== */

/* Space under filter bar */
.view.view-my-shows .views-exposed-form{
  margin-bottom: 16px;
}

/* Hide the original select + label (we replace with pills) */
.view.view-my-shows .form-item-field-status-value,
.view.view-my-shows .form-item-field-status-value label,
.view.view-my-shows select[name="field_status_value[]"]{
  display: none;
}

/* Hide Apply button (auto-submit enabled) */
.view.view-my-shows .views-exposed-form .form-actions{
  display: none;
}

/* Pills row: single line, scroll on small screens */
.view.view-my-shows .status-filter-bar{
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
}

/* Filter pills: keep your existing .status-pill styling, add interaction */
.view.view-my-shows .status-filter-pill{
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease;
}

/* Unselected pills look "off" */
.view.view-my-shows .status-filter-pill:not(.is-active){
  opacity: 0.35;
  filter: saturate(0.85);
}

/* Selected pills full strength */
.view.view-my-shows .status-filter-pill.is-active{
  opacity: 1;
  filter: none;
}

/* Hover */
.view.view-my-shows .status-filter-pill:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Keyboard focus */
.view.view-my-shows .status-filter-pill:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Label before pills */
.view.view-my-shows .status-filter-label{
  font-weight: 700;
  margin-right: 12px;
  white-space: nowrap;
}

.view.view-my-shows .status-filter-pill.status-pill{
  padding: 7px 22px;
  font-size: 1.15rem;
}

.view.view-my-shows .status-filter-label{
  margin-bottom: 8px;
}