/* JoomCoder demo bar. Light, neutral, two rows: works on any template and in Atum. */
.jcd-bar {
  --jcd-bg: #ffffff;
  --jcd-sub: #f8fafc;
  --jcd-line: #e5e7eb;
  --jcd-line-strong: #d1d5db;
  --jcd-text: #0f172a;
  --jcd-text-2: #334155;
  --jcd-muted: #64748b;
  --jcd-hover: #f1f5f9;
  --jcd-brand: #1d4ed8;
  --jcd-brand-hover: #1e40af;
  --jcd-brand-soft: #eff6ff;
  --jcd-ring: rgba(37, 99, 235, .35);
  --jcd-radius: 8px;

  position: sticky;
  top: 0;
  z-index: 10050;
  width: 100%;
  background: var(--jcd-bg);
  border-bottom: 1px solid var(--jcd-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: var(--jcd-text);
  font: 500 14px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  box-sizing: border-box;
}
.jcd-bar *, .jcd-bar *::before, .jcd-bar *::after { box-sizing: border-box; }
.jcd-bar a { color: inherit; text-decoration: none; }
.jcd-bar p { margin: 0; }
.jcd-bar img { display: block; border-radius: 7px; flex: none; }
.jcd-bar :is(a, summary):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--jcd-ring); border-radius: var(--jcd-radius); }
.jcd-ico { display: block; flex: none; }

.jcd-row { display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.jcd-row-main { height: 56px; }
.jcd-row-sub { height: 42px; border-top: 1px solid var(--jcd-line); background: var(--jcd-sub); }
.jcd-right { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }

/* Brand */
.jcd-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.jcd-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--jcd-text); color: #fff; }
.jcd-mark .jcd-ico { width: 16px; height: 16px; stroke-width: 2.4; }
.jcd-chip { padding: 2px 8px; border: 1px solid #bfdbfe; border-radius: 999px; background: var(--jcd-brand-soft); color: var(--jcd-brand); font-size: 11.5px; font-weight: 600; }
.jcd-sep { width: 1px; height: 24px; background: var(--jcd-line); flex: none; }

/* Dropdowns */
.jcd-bar details.jcd-dd { position: relative; flex: none; margin: 0; padding: 0; border: 0; background: none; } /* Atum styles every <details> */
.jcd-dd > summary {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px;
  border: 1px solid var(--jcd-line); border-radius: var(--jcd-radius); background: #fff;
  cursor: pointer; list-style: none; white-space: nowrap; user-select: none;
  transition: border-color .15s, background-color .15s;
}
.jcd-dd > summary::-webkit-details-marker { display: none; }
.jcd-dd > summary:hover { border-color: var(--jcd-line-strong); background: var(--jcd-hover); }
.jcd-dd[open] > summary { border-color: var(--jcd-brand); box-shadow: 0 0 0 3px var(--jcd-ring); }
.jcd-caret { width: 15px; height: 15px; color: var(--jcd-muted); transition: transform .15s; }
.jcd-dd[open] .jcd-caret { transform: rotate(180deg); }
.jcd-switch > summary { padding-left: 7px; }
.jcd-picker-label { font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.jcd-picker-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--jcd-muted); }
.jcd-summary-label { color: var(--jcd-muted); font-weight: 500; }

.jcd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10060;
  width: 380px; max-height: calc(100vh - 120px); overflow: auto;
  padding: 6px; border: 1px solid var(--jcd-line); border-radius: 12px; background: #fff; color: var(--jcd-text);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 4px 8px -4px rgba(15, 23, 42, .08);
}
.jcd-panel-right { left: auto; right: 0; width: 320px; }
.jcd-panel-head { padding: 8px 10px 6px; color: var(--jcd-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.jcd-panel-note { margin: 2px 4px 6px !important; padding: 8px 10px; border-radius: 6px; background: #fffbeb; color: #78350f; font-size: 12.5px; font-weight: 400; }
.jcd-panel-foot { display: block; margin-top: 6px; padding: 10px 10px 6px; border-top: 1px solid var(--jcd-line); color: var(--jcd-brand) !important; font-size: 13px; font-weight: 600; }
a.jcd-panel-foot:hover { text-decoration: underline !important; }
.jcd-panel-foot-text { color: var(--jcd-muted) !important; font-size: 12px; font-weight: 400; }

.jcd-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--jcd-radius); color: var(--jcd-text) !important; }
.jcd-item:hover { background: var(--jcd-hover); }
.jcd-item[aria-current="true"] { background: var(--jcd-brand-soft); }
.jcd-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.jcd-item-text strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.jcd-item-text em { padding: 1px 6px; border-radius: 4px; background: #ecfdf5; color: #047857; font-size: 10.5px; font-style: normal; font-weight: 600; }
.jcd-item-text small { color: var(--jcd-muted); font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.jcd-item-text em.jcd-em-admin { background: #eff6ff; color: var(--jcd-brand); }
.jcd-check { width: 18px; height: 18px; color: var(--jcd-brand); }

.jcd-avatar { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.jcd-item .jcd-avatar { width: 34px; height: 34px; font-size: 12.5px; }
.jcd-avatar-guest { background: var(--jcd-hover); color: var(--jcd-muted); }
.jcd-avatar-guest .jcd-ico { width: 60%; height: 60%; }

/* Buttons and links */
.jcd-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--jcd-radius); font-weight: 600; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.jcd-btn .jcd-ico { width: 15px; height: 15px; }
.jcd-btn-primary { background: var(--jcd-brand); color: #fff !important; box-shadow: 0 1px 2px rgba(29, 78, 216, .25); }
.jcd-btn-primary:hover { background: var(--jcd-brand-hover); }
.jcd-btn-outline { border-color: var(--jcd-line); background: #fff; color: var(--jcd-text) !important; }
.jcd-btn-outline:hover { border-color: var(--jcd-line-strong); background: var(--jcd-hover); }
.jcd-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; color: var(--jcd-text-2) !important; font-weight: 500; white-space: nowrap; }
.jcd-link:hover { color: var(--jcd-brand) !important; }
.jcd-link .jcd-ico { width: 13px; height: 13px; }
.jcd-link-sm { font-size: 13px; }

.jcd-signed { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 5px; border: 1px solid var(--jcd-line); border-radius: 999px; color: var(--jcd-text-2) !important; white-space: nowrap; }
.jcd-signed:hover { background: var(--jcd-hover); }
.jcd-signed .jcd-ico { width: 14px; height: 14px; color: var(--jcd-muted); }

/* Row 2: the product's pages */
.jcd-tabs { display: flex; align-items: stretch; gap: 2px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: -8px; }
.jcd-tabs::-webkit-scrollbar { display: none; }
.jcd-tabs a {
  position: relative; display: inline-flex; align-items: center; padding: 0 10px;
  color: var(--jcd-muted) !important; font-size: 13.5px; white-space: nowrap; transition: color .15s;
}
.jcd-tabs a:hover { color: var(--jcd-text) !important; }
.jcd-tabs a[aria-current="page"] { color: var(--jcd-text) !important; font-weight: 600; }
.jcd-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--jcd-brand); }
.jcd-tabs a:focus-visible { box-shadow: inset 0 0 0 2px var(--jcd-ring); }
.jcd-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--jcd-muted); font-size: 13px; font-weight: 400; }
.jcd-hint .jcd-ico { width: 14px; height: 14px; }

.jcd-meta { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.jcd-ro { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #fde68a; border-radius: 999px; background: #fffbeb; color: #92400e; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: help; }
.jcd-ro .jcd-ico { width: 13px; height: 13px; }

/* Admin: one row, in the page flow, not sticky (Atum's header and toolbar are sticky themselves). */
.jcd-bar-admin { position: relative; z-index: 1030; } /* above Atum's header (1020) so the panel opens over it */
.jcd-bar-admin .jcd-row-main { height: 52px; }

/* Narrow screens */
.jcd-show-xs { display: none; }
@media (max-width: 1100px) { .jcd-hide-md { display: none; } }
@media (max-width: 860px) {
  .jcd-hide-sm { display: none; }
  .jcd-picker-label { max-width: 150px; }
  .jcd-row { padding: 0 16px; gap: 8px; }
}
@media (max-width: 640px) {
  .jcd-hide-xs, .jcd-sep, .jcd-chip, .jcd-caret { display: none; }
  .jcd-show-xs { display: inline; }
  .jcd-row { padding: 0 12px; }
  .jcd-dd > summary { padding: 0 8px 0 6px; }
  .jcd-row-main { height: 52px; }
  .jcd-right { gap: 6px; }
  .jcd-btn { height: 34px; padding: 0 11px; font-size: 13px; }
  .jcd-dd > summary { height: 34px; }
  .jcd-picker-label { max-width: 130px; }
  .jcd-meta { gap: 8px; }
  .jcd-panel, .jcd-panel-right { position: fixed; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 140px); }
}

@media (prefers-reduced-motion: no-preference) {
  .jcd-dd[open] > .jcd-panel { animation: jcd-in .12s ease-out; }
  @keyframes jcd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Row 1 in JoomCoder navy, so visitors notice the bar on any page. Row 2 (pages) stays light.
   The dropdown panels stay white: they set their own colours. */
.jcd-row-main {
  --jcd-on: #ffffff;
  --jcd-on-2: #dbeafe;
  --jcd-on-line: rgba(255, 255, 255, .22);
  --jcd-on-hover: rgba(255, 255, 255, .12);
  background: #1e3a8a linear-gradient(90deg, #172554 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: var(--jcd-on);
}
.jcd-row-main .jcd-mark { background: #fff; color: #1e3a8a; }
.jcd-row-main .jcd-chip { border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .16); color: #fde68a; }
.jcd-row-main .jcd-sep { background: var(--jcd-on-line); }
.jcd-row-main .jcd-dd > summary { border-color: var(--jcd-on-line); background: rgba(255, 255, 255, .08); color: var(--jcd-on); }
.jcd-row-main .jcd-dd > summary:hover { border-color: rgba(255, 255, 255, .4); background: var(--jcd-on-hover); }
.jcd-row-main .jcd-dd[open] > summary { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.jcd-row-main .jcd-caret, .jcd-row-main .jcd-picker-icon, .jcd-row-main .jcd-summary-label { color: var(--jcd-on-2); }
.jcd-row-main .jcd-avatar-guest { background: rgba(255, 255, 255, .16); color: #fff; }
.jcd-row-main .jcd-panel .jcd-avatar-guest { background: var(--jcd-hover); color: var(--jcd-muted); }
.jcd-row-main > a.jcd-brand, .jcd-row-main .jcd-right > .jcd-link { color: var(--jcd-on) !important; }
.jcd-row-main .jcd-right > .jcd-link:hover { color: #fff !important; text-decoration: underline !important; }
.jcd-row-main .jcd-right > .jcd-btn-outline { border-color: var(--jcd-on-line); background: transparent; color: var(--jcd-on) !important; }
.jcd-row-main .jcd-right > .jcd-btn-outline:hover { border-color: rgba(255, 255, 255, .5); background: var(--jcd-on-hover); }
.jcd-row-main .jcd-btn-primary { background: #fff; color: #1e3a8a !important; box-shadow: 0 1px 2px rgba(2, 6, 23, .25); }
.jcd-row-main .jcd-btn-primary:hover { background: #eff6ff; }
.jcd-row-main .jcd-signed { border-color: var(--jcd-on-line); color: var(--jcd-on) !important; }
.jcd-row-main .jcd-signed:hover { background: var(--jcd-on-hover); }
.jcd-row-main .jcd-signed .jcd-ico { color: var(--jcd-on-2); }
.jcd-row-main .jcd-ro { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .14); color: #fde68a; }
.jcd-row-main :is(a, summary):focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.jcd-bar { border-bottom-color: #dbe3ef; box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .12); }
.jcd-row-sub { background: #fff; }
