/* ==========================================================
   OnlineJuriedShows.com — button kit (pure CSS + inline SVG)
   Edit the tokens below to fine-tune colors and fonts.
   ========================================================== */
:root {
  /* Signature chartreuse action buttons */
  --ojs-yellow: #dcd83f;
  --ojs-yellow-hi: #ebe873;
  --ojs-yellow-lo: #c9c42a;
  --ojs-yellow-edge: #8f8b17;
  --ojs-yellow-text: #141414;

  /* Teal "click to continue" buttons */
  --ojs-teal: #12739f;
  --ojs-teal-hi: #4aa3cb;
  --ojs-teal-deep: #0a5576;

  /* Step tabs */
  --ojs-step: #b3c7ec;
  --ojs-step-active: #6592d8;

  /* Neutrals */
  --ojs-gray-bar: #8a8a85;
  --ojs-gray-text: #7a7a76;
  --ojs-panel: #eeeee8;
  --ojs-ink: #1b2a3a;
  --ojs-focus: #1b6fd8;

  --ojs-font: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ojs-font-narrow: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --ojs-radius: 5px;
}

/* ---------- 1. Yellow action button ---------- */
.ojs-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55em 1.5em .6em;
  border: 1px solid var(--ojs-yellow-edge);
  border-radius: var(--ojs-radius);
  background: linear-gradient(180deg, var(--ojs-yellow-hi) 0%, var(--ojs-yellow) 45%, var(--ojs-yellow-lo) 100%);
  color: var(--ojs-yellow-text);
  font: 700 clamp(1rem, .95rem + .25vw, 1.15rem)/1.15 var(--ojs-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 2px 0 var(--ojs-yellow-edge),
    0 5px 10px -4px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.ojs-btn:hover  { filter: brightness(1.05); transform: translateY(-1px); }
.ojs-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 var(--ojs-yellow-edge); }
.ojs-btn:focus-visible,
.ojs-go:focus-visible,
.ojs-nav a:focus-visible,
.ojs-side a:focus-visible,
.ojs-steps a:focus-visible { outline: 3px solid var(--ojs-focus); outline-offset: 3px; }

.ojs-sub { display: block; font-size: .72em; font-weight: 600; opacity: .85; }
.ojs-btn--block { display: flex; width: 100%; }
.ojs-btn--sm { min-height: 34px; padding: .35em 1em; font-size: .95rem; }
.ojs-btn:disabled, .ojs-btn[aria-disabled="true"] { opacity: .5; filter: grayscale(.6); pointer-events: none; }

/* ---------- 2. Gray secondary button (Download Prospectus, Edit Image…) ---------- */
.ojs-btn--gray {
  border: 0;
  border-bottom: 6px solid var(--ojs-gray-bar);
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #fafaf7, #ecece6);
  color: var(--ojs-gray-text);
  font-weight: 400;
  box-shadow: 0 2px 5px -2px rgba(0,0,0,.3);
}
.ojs-btn--gray:hover { color: #4d4d4a; border-bottom-color: var(--ojs-yellow-lo); }
.ojs-btn--gray:active { transform: translateY(1px); box-shadow: none; }
.ojs-btn--gray.is-danger:hover { border-bottom-color: #b3413b; color: #8e2f2a; }
.ojs-btn--gray.is-danger:active,
.ojs-btn--gray.is-danger.is-active {
  background: linear-gradient(180deg, #f6dcda, #ecc3bf);
  border-bottom-color: #b3413b; color: #8e2f2a;
}

/* ---------- 3. Teal check-badge "click to continue" button ---------- */
.ojs-go {
  --size: 92px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
  cursor: pointer;
  border: 0; padding: 0; background: none;
  font-family: var(--ojs-font);
  -webkit-tap-highlight-color: transparent;
}
.ojs-go__badge {
  position: relative; z-index: 1;
  flex: none;
  display: grid; place-items: center;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffffff, #dfe7ec 45%, #a9b9c3 100%);
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.35), inset 0 -2px 4px rgba(0,0,0,.12);
}
.ojs-go__badge::before {           /* inner teal disc */
  content: ""; position: absolute; inset: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--ojs-teal-hi), var(--ojs-teal) 55%, var(--ojs-teal-deep));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.25);
}
.ojs-go__badge svg {
  position: relative;
  width: 46%; height: 46%;
  fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
  transition: transform .2s ease;
}
.ojs-go__bar {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(var(--size) * .58);
  margin-left: calc(var(--size) * -.22);
  padding: .35em 1.4em .35em calc(var(--size) * .32);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #ecf5f9 0%, #cfe3ed 42%, var(--ojs-teal-hi) 58%, var(--ojs-teal) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px -3px rgba(0,0,0,.35);
  text-align: center;
  transition: filter .15s ease;
}
.ojs-go__bar strong { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 400; color: #14242e; line-height: 1.15; white-space: nowrap; }
.ojs-go__bar small  { font-size: .92rem; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.ojs-go:hover .ojs-go__bar { filter: brightness(1.06) saturate(1.1); }
.ojs-go:hover .ojs-go__badge svg { transform: scale(1.12) rotate(-6deg); }
.ojs-go:active .ojs-go__badge { transform: scale(.97); }

/* ---------- 4. Step tabs (Prospectus → Receipt) ---------- */
.ojs-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  margin: 0 0 22px; padding: 0; list-style: none;
  counter-reset: step;
}
.ojs-steps li { position: relative; }
.ojs-steps a, .ojs-steps span {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  padding: .4em .3em;
  background: var(--ojs-step);
  color: #fff;
  font: 400 clamp(.78rem, .7rem + .35vw, 1rem)/1.2 var(--ojs-font);
  text-align: center; text-decoration: none;
  transition: background-color .15s;
}
.ojs-steps li::after {               /* down-pointing notch */
  content: ""; position: absolute; left: 50%; top: 100%;
  border: 12px solid transparent; border-top-color: var(--ojs-step);
  border-bottom: 0;
  transform: translateX(-50%);
}
.ojs-steps a:hover { background: #9fb8e6; }
.ojs-steps [aria-current="step"] { background: var(--ojs-step-active); }
.ojs-steps li:has([aria-current="step"])::after { border-top-color: var(--ojs-step-active); }

/* ---------- 5. Top navigation tabs ---------- */
.ojs-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px; }
.ojs-nav a {
  display: flex; flex-direction: column; align-items: center;
  padding: .2em .3em 0;
  border-bottom: 7px solid var(--ojs-gray-bar);
  color: var(--ojs-gray-text);
  font: 400 1.12rem/1.05 var(--ojs-font-narrow);
  text-decoration: none; text-align: center;
  transition: color .15s, border-color .15s;
}
.ojs-nav a small { font-size: .62em; letter-spacing: .02em; }
.ojs-nav a:hover { color: #3f3f3c; border-bottom-color: var(--ojs-yellow); }
.ojs-nav a[aria-current="page"] { color: #3f3f3c; border-bottom-color: var(--ojs-yellow-lo); }

/* ---------- 6. Artist Profile sidebar links ---------- */
.ojs-side { display: grid; gap: 14px; }
.ojs-side a {
  position: relative;
  display: block;
  padding: 0 .2em 14px;
  color: var(--ojs-gray-text);
  font: 400 1.1rem/1.1 var(--ojs-font-narrow);
  text-align: right; text-decoration: none;
}
.ojs-side a::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 68%; height: 8px; background: var(--ojs-gray-bar);
  transition: width .2s ease, background-color .2s;
}
.ojs-side a:hover { color: #3f3f3c; }
.ojs-side a:hover::after, .ojs-side a[aria-current="page"]::after { width: 100%; background: var(--ojs-yellow); }

/* ---------- 7. Icons inside buttons ---------- */
.ojs-ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ojs-btn--icon { flex-direction: row; gap: .5em; }

/* ---------- 8. Dark buttons for the black juror screen ---------- */
.ojs-btn--dark {
  flex-direction: row; gap: .5em;
  border: 1px solid #5a5a5a;
  background: linear-gradient(180deg, #3a3a3a, #161616);
  color: #e6e6e6;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 8px -3px rgba(0,0,0,.8);
}
.ojs-btn--dark:hover { border-color: var(--ojs-yellow); color: #fff; filter: none; }
.ojs-btn--dark:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }

/* ---------- 9. Juror decision: Yes include / No do not include ---------- */
.ojs-decide { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ojs-decide__btn {
  --_tone: #c9d63a;
  display: inline-flex; align-items: center; gap: .8em;
  min-width: 240px; min-height: 76px;
  padding: .6em 1.3em .6em .7em;
  border: 1px solid #6a6a6a;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 48%, rgba(0,0,0,0) 52%),
    linear-gradient(180deg, #555, #1a1a1a);
  color: #e8e8e8;
  font: 400 1.08rem/1.2 var(--ojs-font);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ojs-decide__btn--no { --_tone: #e2483d; }
.ojs-decide__icon {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--_tone);
  background: radial-gradient(circle at 40% 30%, #3a3a3a, #0c0c0c);
  box-shadow: 0 0 8px -2px var(--_tone), inset 0 2px 4px rgba(0,0,0,.6);
  color: var(--_tone);
}
.ojs-decide__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ojs-decide__btn:hover { transform: translateY(-1px); border-color: var(--_tone); }
.ojs-decide__btn:active { transform: translateY(1px); }
.ojs-decide__btn:focus-visible { outline: 3px solid var(--ojs-focus); outline-offset: 3px; }
.ojs-decide__btn[aria-pressed="true"] {
  border-color: var(--_tone);
  box-shadow: 0 0 0 2px var(--_tone), 0 0 22px -4px var(--_tone), inset 0 1px 0 rgba(255,255,255,.25);
}
.ojs-decide__btn[aria-pressed="true"] .ojs-decide__icon { background: var(--_tone); color: #111; }
.ojs-decide-status { margin: 8px 0 0; text-align: center; color: #cfe8ff; font: 400 .95rem var(--ojs-font); }

/* ---------- 10. Score 1–7 (styled real radio buttons, form-friendly) ---------- */
.ojs-score { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ojs-score legend { width: 100%; margin-bottom: 6px; text-align: center; color: #cfe8ff; font: 400 .95rem var(--ojs-font); }
.ojs-score input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ojs-score label {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #6a6a6a;
  background: linear-gradient(180deg, #3a3a3a, #141414);
  color: #eee; font: 700 1.1rem var(--ojs-font);
  cursor: pointer;
  transition: border-color .15s, transform .12s, background .15s;
}
.ojs-score label:hover { border-color: var(--ojs-yellow); transform: translateY(-1px); }
.ojs-score input:focus-visible + label { outline: 3px solid var(--ojs-focus); outline-offset: 3px; }
.ojs-score input:checked + label {
  border-color: var(--ojs-yellow-edge);
  background: linear-gradient(180deg, var(--ojs-yellow-hi), var(--ojs-yellow-lo));
  color: #111;
  box-shadow: 0 0 14px -3px var(--ojs-yellow);
}
.ojs-score__end { color: #9a9a9a; font: 400 .8rem var(--ojs-font); }

/* ---------- 11. Styled "Choose File" buttons ---------- */
.ojs-file { max-width: 100%; color: #444; font: 400 .9rem var(--ojs-font); }
.ojs-file::file-selector-button {
  margin-right: .8em;
  padding: .45em 1.1em;
  border: 0; border-bottom: 4px solid var(--ojs-gray-bar);
  border-radius: 3px;
  background: linear-gradient(180deg, #fafaf7, #e6e6df);
  color: #4d4d4a;
  font: 600 .95rem var(--ojs-font);
  cursor: pointer;
  box-shadow: 0 2px 4px -2px rgba(0,0,0,.35);
}
.ojs-file::file-selector-button:hover { border-bottom-color: var(--ojs-yellow-lo); }

/* ---------- 12. Admin menu (no JavaScript — uses <details>) ---------- */
.ojs-tree, .ojs-tree ul { list-style: none; margin: 0; padding: 0; }
.ojs-tree { font: 400 .95rem/1.25 var(--ojs-font); color: #222; }
.ojs-tree ul { padding-left: 1.2em; }
.ojs-tree a, .ojs-tree summary {
  display: flex; align-items: center; gap: .45em;
  padding: .22em .5em; border-radius: 4px;
  color: inherit; text-decoration: none; cursor: pointer;
}
.ojs-tree summary { list-style: none; font-weight: 700; }
.ojs-tree summary::-webkit-details-marker { display: none; }
.ojs-tree summary::before, .ojs-tree a::before {
  content: ""; flex: none;
  border: 5px solid transparent; border-left: 7px solid #555; border-right: 0;
  transition: transform .15s;
}
.ojs-tree a::before { border-left-color: #999; }
.ojs-tree details[open] > summary::before { transform: rotate(90deg); }
.ojs-tree a:hover, .ojs-tree summary:hover { background: rgba(220,216,63,.35); }
.ojs-tree a[aria-current="page"] { background: var(--ojs-yellow); font-weight: 700; }
.ojs-tree .is-admin { background: #f4dfb7; border-radius: 6px; padding: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .ojs-decide__btn { min-width: 0; width: 100%; }
  .ojs-score label { width: 40px; height: 40px; }
  .ojs-go { --size: 72px; width: 100%; }
  .ojs-go__bar { flex: 1; }
  .ojs-go__bar strong { white-space: normal; }
  .ojs-steps { gap: 2px; }
  .ojs-steps li::after { border-width: 8px; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ojs-btn, .ojs-go *, .ojs-side a::after { transition: none !important; }
  .ojs-btn:hover, .ojs-go:hover .ojs-go__badge svg { transform: none; }
}
