/* CURATE · the editor's own interface (bars, style panel, handles, photo drawer), for every page it runs on:
   the deck (site/index.html) and Grand Avenue Studios' pages (studio/). Moved out of deck.css on Oct 27.
   Uses the brand variables each page defines: --black --bone --muted --gold --gold-hi --sans --serif --ease-out. */
.cur-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  padding: 8px 14px; border: 1px solid rgba(200,160,70,.5); border-radius: 999px;
  background: rgba(5,5,5,.8); color: var(--gold);
  font: 600 11px/1 var(--sans); letter-spacing: .2em; cursor: pointer;
}
.cur-pill:hover { border-color: var(--gold); }
.cur-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 32px); padding: 8px 10px;
  border: 1px solid rgba(200,160,70,.35); border-radius: 12px; background: rgba(5,5,5,.9);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.cur-bar.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cur-label { font: 12px/1.3 var(--sans); color: var(--muted); padding: 0 6px; }
.cur-bar__row { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding-top: 8px; margin-top: 2px; border-top: 1px solid rgba(200,160,70,.18); }
.cur-bar__row[hidden] { display: none; }
.cur-dark__range { width: min(320px, 50vw); accent-color: var(--gold); cursor: pointer; }
.cur-dark__val { min-width: 3.4em; text-align: right; color: var(--gold) !important; font-variant-numeric: tabular-nums; }
.cur-btn {
  padding: 7px 12px; border: 1px solid #333; border-radius: 8px; background: #111; color: var(--bone);
  font: 500 12px/1 var(--sans); cursor: pointer;
}
.cur-btn:hover:not(:disabled) { border-color: var(--gold); }
.cur-btn:disabled { opacity: .35; cursor: default; }
.cur-btn--gold { color: var(--gold); }
.curating .cur-pill { bottom: 74px; }
.cur-drawer-open .cur-bar { left: calc((100vw - min(420px, 100vw)) / 2); }   /* keep the bar clear of the drawer */
.cur-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: rgba(8,8,8,.96); border-left: 1px solid rgba(200,160,70,.3);
  transform: translateX(100%); transition: transform .35s var(--ease-out);
}
.cur-drawer.is-open { transform: none; }
/* CURATE > Slides: the deck's slides in order, from the left */
.cur-drawer--left { right: auto; left: 0; width: min(360px, 100vw); border-left: 0; border-right: 1px solid rgba(200,160,70,.3); transform: translateX(-100%); }
.cur-slides-open .cur-bar { left: calc(min(360px, 100vw) + (100vw - min(360px, 100vw)) / 2); max-width: calc(100vw - min(360px, 100vw) - 32px); }
.cur-slides { list-style: none; margin: 0; padding: 8px 10px 24px; overflow-y: auto; }
.cur-slides__row { display: flex; align-items: center; gap: 6px; padding: 6px; border-bottom: 1px solid #1c1c1c; }
.cur-slides__row .cur-btn { padding: 6px 9px; }
.cur-slides__grab { padding: 4px 4px 4px 0; color: var(--muted); font: 16px/1 var(--sans); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.cur-slides__grab:hover { color: var(--gold); }
.cur-slides__row.is-dragging { opacity: .45; }
.cur-slides__row.is-dragging .cur-slides__grab { cursor: grabbing; }
.cur-slides__row.drop-before { box-shadow: inset 0 3px 0 var(--gold); }
.cur-slides__row.drop-after { box-shadow: inset 0 -3px 0 var(--gold); }
.cur-slides__num { width: 2.2em; font: 600 11px/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.cur-slides__name { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; color: var(--bone); font: 13px/1.2 var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur-slides__name:hover { color: var(--gold); }
.cur-slides__row.is-hidden .cur-slides__name { color: var(--muted); text-decoration: line-through; cursor: default; }
.cur-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #222; }
.cur-drawer__title { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cur-grid { overflow-y: auto; padding: 12px 16px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cur-group { grid-column: 1 / -1; margin: 10px 0 0; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cur-empty { grid-column: 1 / -1; margin: 0; font: 12px/1.4 var(--sans); color: var(--muted); }
.cur-thumb { position: relative; display: block; width: 100%; height: 0; padding: 0 0 56.25%; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; }
.cur-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cur-thumb:hover { border-color: rgba(200,160,70,.6); }
.cur-thumb.is-on { border-color: var(--gold); }
.cur-thumb__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 5px; background: rgba(0,0,0,.7); font: 10px/1.2 var(--sans); color: var(--bone); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur-select { padding: 6px 8px; border: 1px solid #333; border-radius: 8px; background: #111; color: var(--bone); font: 500 12px/1 var(--sans); }
.cur-select.is-ask { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,160,70,.35); }
/* every editable thing shows itself while curating */
.curating [data-ed]:not(.slide__bg) { cursor: text; outline: 1px dashed transparent; outline-offset: 3px; transition: outline-color .15s; }
.curating [data-ed]:not(.slide__bg):hover { outline-color: rgba(200,160,70,.55); }
.curating img[data-ed] { cursor: grab; }
.curating .cur-sel:not(.slide__bg) { outline: 2px solid var(--gold) !important; }
.curating [contenteditable]:focus { outline: 2px solid var(--gold); }
.cur-panel {
  position: fixed; top: 12px; left: 50%; z-index: 55; transform: translate(-50%, -140%); opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; align-items: center; max-width: calc(100vw - 24px);
  padding: 10px 12px; border: 1px solid rgba(200,160,70,.35); border-radius: 12px; background: rgba(5,5,5,.94);
  transition: transform .25s var(--ease-out), opacity .25s;
}
.cur-panel.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cur-panel__name { font: 600 10px/1 var(--sans); letter-spacing: .14em; color: var(--gold); }
.cur-panel__note { font: 11px/1.3 var(--sans); color: var(--muted); }
.cur-panel__note:empty { display: none; }
.cur-panel__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cur-panel__row[hidden] { display: none; }
.cur-panel input[type=range] { width: 110px; accent-color: var(--gold); }
.cur-val { font: 11px/1 var(--sans); color: var(--muted); min-width: 3.4em; text-align: center; }
.cur-swatches { display: inline-flex; gap: 4px; }
.cur-swatch { width: 20px; height: 20px; padding: 0; border: 1px solid #444; border-radius: 50%; cursor: pointer; }
.cur-swatch:hover { border-color: var(--bone); }
.cur-picker { width: 28px; height: 24px; padding: 0; border: 1px solid #444; border-radius: 6px; background: none; cursor: pointer; }
.cur-btn--b { font-weight: 800; }
.cur-btn--i { font-style: italic; font-family: var(--serif); }
.cur-btn.is-on { border-color: var(--gold); color: var(--gold); }
.cur-handle {
  position: fixed; z-index: 54; width: 14px; height: 14px; display: none;
  border: 2px solid var(--black); border-radius: 3px; background: var(--gold); cursor: nwse-resize; touch-action: none;
}
.cur-handle.is-open { display: block; }
.cur-grip {
  position: fixed; z-index: 54; width: 22px; height: 22px; display: none; place-items: center;
  border: 2px solid var(--black); border-radius: 50%; background: var(--gold); color: var(--black);
  font: 700 13px/1 var(--sans); cursor: move; touch-action: none; user-select: none;
}
.cur-grip.is-open { display: grid; }
.cur-edge {
  position: fixed; z-index: 54; width: 8px; display: none;
  border: 2px solid var(--black); border-radius: 4px; background: var(--gold); cursor: ew-resize; touch-action: none;
}
.cur-edge.is-open { display: block; }
.cur-edge:hover { background: var(--gold-hi, #f1d892); }
.cur-btn--danger { color: #ff8d7a; border-color: #5a2c24; }
.cur-btn--danger:hover:not(:disabled) { border-color: #ff8d7a; }
.cur-btn[hidden] { display: none; }
/* guide lines while moving: faint slide centre, gold alignment, bright when centred */
.cur-guides { position: fixed; inset: 0; z-index: 53; pointer-events: none; }
.cur-guide { position: absolute; background: rgba(200,160,70,.9); }
.cur-guide--x { top: 0; bottom: 0; width: 1px; }
.cur-guide--y { left: 0; right: 0; height: 1px; }
.cur-guide.is-faint { background: rgba(243,239,230,.18); }
.cur-guide.is-center { background: #4fe3ff; box-shadow: 0 0 8px #4fe3ff; }
.cur-guide--x.is-center { width: 2px; }
.cur-guide--y.is-center { height: 2px; }
/* the ⠿ handle on the style bar and the bottom bar: drag either one anywhere (curate.js, movable) */
.cur-move {
  flex: none; align-self: center; padding: 4px 6px; border: 0; border-radius: 6px; background: none;
  color: var(--gold); font: 16px/1 var(--sans); cursor: grab; touch-action: none; user-select: none;
}
.cur-move:hover { background: rgba(200,160,70,.16); }
.cur-panel .cur-move { position: absolute; top: 6px; left: 8px; }
.cur-bar .cur-move { order: -1; }
.cur-panel.is-placed, .cur-bar.is-placed { transform: none !important; max-width: min(max(50vw, 640px), calc(100vw - 24px)); }   /* same width as when centred */
.cur-panel.is-placed:not(.is-open), .cur-bar.is-placed:not(.is-open) { visibility: hidden; }
.is-dragging { transition: none !important; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.is-dragging .cur-move { cursor: grabbing; }
@media print { .cur-pill, .cur-bar, .cur-drawer, .cur-panel, .cur-handle, .cur-grip, .cur-edge, .cur-probe, .cur-guides { display: none !important; } }

.cur-leading { width: 140px; accent-color: var(--gold); cursor: pointer; }
