/* Open-now sign styles. Client-facing catalog. Exact catalog greens/reds: #2ecc40, #9dffb0, #ff4b4b, #ffb3b3. */

.on-preview-main { padding-bottom: 3rem; }
.on-preview-main .page-head { padding-top: 1.25rem; }
.on-lede, .on-note { max-width: 40rem; color: var(--ink-soft, #3c4a55); }
.on-page-tools { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; }
label.on-btn { display: inline-flex; align-items: center; cursor: pointer; }
.on-btn {
  font: inherit; font-weight: 700; font-size: 0.88rem;
  color: var(--ink, #15202b); background: var(--paper, #fffdf8);
  border: 1px solid var(--line, #e0d6c6); border-radius: 999px;
  padding: 0.4rem 0.85rem; min-height: 44px; cursor: pointer;
}
.on-btn:hover, .on-btn:focus-visible { border-color: var(--copper, #b85a28); }
.on-btn[aria-pressed="true"], .on-btn.is-on {
  background: var(--forest, #1e3c32); color: #f4ecd8; border-color: var(--forest, #1e3c32);
}
.on-live-meta { margin: 0.65rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--ink, #15202b); }

/* Header mocks */
.on-frame {
  position: relative;
  background: var(--cream, #f4efe6);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 10px 30px rgba(21, 32, 43, 0.08));
}
.on-frame .callbar { position: relative; z-index: 2; }
.on-frame .site-header { position: relative; top: auto; z-index: 1; }
.on-frame .brand-mark { height: 64px; }
.on-frame .header-inner { padding: 0.45rem 1rem; }
.on-callbar-lead {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem;
}
.on-frame-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
.on-frame-nav a { text-decoration: none; color: var(--ink, #15202b); font-weight: 600; font-size: 0.92rem; }
.on-frame-nav a.nav-cta { color: #fff !important; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--copper, #b85a28); }
.on-pair {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 0.85rem;
}
@media (min-width: 900px) {
  .on-pair { grid-template-columns: 1fr 1fr; }
  .on-frame .brand-mark { height: 72px; }
}
.on-col-label {
  margin: 0 0 0.4rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #5c6973);
}
.on-variant { padding: 1.75rem 0 0.5rem; border-top: 1px solid var(--line, #e0d6c6); margin-top: 1.5rem; }
.on-variant h2 { margin: 0 0 0.35rem; }
.on-variant .on-desc { margin: 0 0 0.75rem; color: var(--ink-soft, #3c4a55); }
.on-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.35rem; }

/* Shared indicator */
.on-ind { display: inline-flex; align-items: center; vertical-align: middle; line-height: 1; }

/* 1. Neon sign */
.on-neon { --tube: #2ecc40; --glow: #9dffb0; }
.on-neon.is-closed { --tube: #ff4b4b; --glow: #ffb3b3; }
.on-neon__plate {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0.2rem 0.62rem 0.18rem;
  background: #0c0f0e;
  border: 2px solid var(--tube);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #050605, inset 0 0 8px color-mix(in srgb, var(--tube) 28%, transparent);
}
.on-neon__glow {
  position: absolute; inset: -2px; border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 8px var(--tube), 0 0 16px color-mix(in srgb, var(--tube) 55%, transparent);
}
.on-neon.is-closed .on-neon__glow {
  box-shadow: 0 0 4px color-mix(in srgb, var(--tube) 45%, transparent);
  opacity: 0.45;
}
.on-neon .on-word {
  position: relative; z-index: 1;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em;
  color: var(--glow);
  text-shadow: 0 0 4px var(--tube), 0 0 10px var(--tube);
}
.on-neon.is-closed .on-word {
  text-shadow: 0 0 3px color-mix(in srgb, var(--tube) 50%, transparent);
}

/* 2. Hanging shop sign */
.on-hang {
  --wood: #5a3e2b; --wood-lit: #8b5e3c; --cream: #f4ecd8;
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  padding-top: 2px; z-index: 3;
}
.on-hang__bar {
  width: 3.6rem; height: 4px; background: linear-gradient(180deg, #7a5a3e, #3a2418);
  border-radius: 1px; box-shadow: 0 1px 0 rgba(244, 236, 216, 0.2);
}
.on-hang__sign {
  position: relative;
  margin-top: 6px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 5.4rem; min-height: 2.15rem; padding: 0.22rem 0.55rem 0.2rem;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 30%, rgba(42, 24, 16, 0.28), transparent 42%),
    repeating-linear-gradient(92deg, var(--wood) 0 7px, var(--wood-lit) 7px 9px, #4a3222 9px 12px);
  border: 1px solid #3a2418;
  box-shadow: 2px 3px 0 rgba(42, 24, 16, 0.35), inset 0 0 0 1px rgba(244, 236, 216, 0.12);
  filter: url("#on-hang-grit");
  transform-origin: 50% -8px;
}
.on-hang__sign::before,
.on-hang__sign::after {
  content: ""; position: absolute; top: -8px; width: 2px; height: 8px;
  background: #2a1810; border-radius: 1px;
}
.on-hang__sign::before { left: 22%; }
.on-hang__sign::after { right: 22%; }
.on-hang .on-word {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(42, 24, 16, 0.55);
  filter: url("#on-text-grit");
}
.on-hang__pip {
  width: 8px; height: 8px; border-radius: 50%; margin-bottom: 0.12rem;
  background: #2ecc40;
  box-shadow: 0 0 6px #2ecc40;
}
.on-hang.is-closed .on-hang__pip {
  background: #ff4b4b;
  box-shadow: 0 0 4px rgba(255, 75, 75, 0.55);
}

/* 3. Pulsing pill */
.on-pill {
  gap: 0.4rem;
  padding: 0.22rem 0.65rem 0.22rem 0.45rem;
  background: #0c0f0e;
  border: 1.5px solid rgba(46, 204, 64, 0.65);
  border-radius: 999px;
}
.on-pill.is-closed { border-color: rgba(255, 99, 99, 0.6); }
.on-pill__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: #2ecc40;
}
.on-pill.is-closed .on-pill__dot { background: #ff4b4b; }
.on-pill__text { display: flex; flex-direction: column; gap: 0.05rem; }
.on-pill .on-label {
  font-size: 0.82rem; font-weight: 700; color: #9dffb0; letter-spacing: 0.01em;
}
.on-pill.is-closed .on-label { color: #ffb3b3; }
.on-pill .on-count {
  font-size: 0.7rem; font-weight: 600; color: #9dffb0; opacity: 0.9;
}
.on-pill.is-closed .on-count { color: #ffb3b3; }

/* 4. Rubber stamp */
.on-stamp { padding: 0.05rem; }
.on-stamp__ink {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.6rem; min-height: 1.85rem; padding: 0.18rem 0.5rem 0.12rem;
  background: #2ecc40;
  color: #15202b;
  border: 2px solid #15202b;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(244, 236, 216, 0.25);
  transform: rotate(-6deg);
  filter: url("#on-stamp-ink");
}
.on-stamp.is-closed .on-stamp__ink { background: #ff4b4b; }
.on-stamp .on-word {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em;
  color: #15202b;
}

/* 5. Mustang ribbon */
.on-ribbon { --tag: #1e3c32; --ink: #f4ecd8; }
.on-ribbon.is-closed { --tag: #8c3f16; } /* copper-dark: cream text meets AA; #b85a28 is 3.94:1 */
.on-ribbon__tag {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 28px; padding: 0.18rem 0.85rem 0.18rem 0.5rem;
  background: var(--tag); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 8px 50%);
  box-shadow: 1px 2px 0 rgba(42, 24, 16, 0.28);
}
.on-ribbon__pip {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #2ecc40;
  box-shadow: 0 0 5px #2ecc40;
}
.on-ribbon.is-closed .on-ribbon__pip {
  background: #ff4b4b;
  box-shadow: 0 0 4px rgba(255, 75, 75, 0.5);
}
.on-ribbon .on-word-short {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}

/* Motion — transform/opacity only */
@media (prefers-reduced-motion: no-preference) {
  .on-neon:not(.is-closed) .on-neon__glow {
    animation: on-flicker 2.6s linear infinite;
  }
  .on-hang .on-hang__sign {
    animation: on-swing 1.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .on-hang.is-looping .on-hang__sign {
    animation: on-swing 1.6s ease-in-out infinite;
  }
  .on-pill:not(.is-closed) .on-pill__dot {
    animation: on-pulse 1.8s ease-out infinite;
  }
  .on-pill:not(.is-closed) .on-pill__dot::after {
    animation: on-ring 1.8s ease-out infinite;
  }
  .on-stamp .on-stamp__ink {
    animation: on-stamp-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  }
  .on-stamp.is-looping .on-stamp__ink {
    animation: on-stamp-in 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
  }
}
@keyframes on-flicker {
  0%, 18%, 22%, 26%, 60%, 64%, 100% { opacity: 1; }
  20%, 24%, 62% { opacity: 0.35; }
  80%, 83% { opacity: 0.7; }
}
@keyframes on-swing {
  0% { transform: rotate(-16deg); }
  22% { transform: rotate(9deg); }
  42% { transform: rotate(-6deg); }
  62% { transform: rotate(3.5deg); }
  80% { transform: rotate(-1.5deg); }
  100% { transform: rotate(-1deg); }
}
.on-pill__dot { position: relative; }
.on-pill__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #2ecc40;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.on-pill.is-closed .on-pill__dot::after { content: none; }
@keyframes on-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}
@keyframes on-ring {
  0% { transform: scale(0.7); opacity: 0.65; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}
@keyframes on-stamp-in {
  0% { transform: scale(1.5) rotate(-22deg); opacity: 0; }
  58% { transform: scale(0.94) rotate(-5deg); opacity: 1; }
  78% { transform: scale(1.05) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .on-neon__glow, .on-hang__sign, .on-pill__dot, .on-pill__dot::after, .on-stamp__ink {
    animation: none !important;
  }
  .on-hang__sign { transform: rotate(-1deg); }
  .on-stamp__ink { transform: rotate(-6deg); opacity: 1; }
}

/* Mobile callbar tightness */
@media (max-width: 600px) {
  .on-frame .callbar-inner { padding: 0.4rem 0.75rem; }
  .on-frame .header-inner { padding: 0.4rem 0.75rem; }
  .on-frame .brand-mark { height: 52px; }
  .on-frame-nav { display: none; }
  .on-pill .on-label { font-size: 0.75rem; }
  .on-neon .on-word { font-size: 0.95rem; }
}

/* GIF/screenshot helpers */
.on-shot-only { /* reserved */ }

/* One sample: JS toggles .is-on / hidden on the sign slots. */
.on-live-slot { display: none; }
.on-live-slot.is-on,
.on-live-slot:not([hidden]) { display: inline-flex; }
.on-picker { margin: 0.85rem 0 0; }
.on-picker .on-page-tools { margin-top: 0.55rem; }
.on-sample-wrap { margin-top: 1rem; }
@media (max-width: 860px) {
  .on-sample-wrap {
    position: sticky;
    top: 4.5rem;
    z-index: 30;
    background: var(--cream, #f4efe6);
    padding-bottom: 0.4rem;
  }
  .on-sample-wrap .on-frame-nav { display: none; }
  .on-sample-wrap .on-frame .brand-mark { height: 40px; }
  .on-sample-wrap .callbar-actions { display: none; }
}
#on-style-1:checked ~ * label[for="on-style-1"],
#on-style-2:checked ~ * label[for="on-style-2"],
#on-style-3:checked ~ * label[for="on-style-3"],
#on-style-4:checked ~ * label[for="on-style-4"],
#on-style-5:checked ~ * label[for="on-style-5"] {
  background: var(--forest, #1e3c32); color: #f4ecd8; border-color: var(--forest, #1e3c32);
}
.on-frame--hang { overflow: visible; }
.on-live-wrap { margin: 0.75rem 0 0.4rem; }
.on-live-top { margin: 1rem 0 0; }

code { white-space: nowrap; }
.on-frame--pair .site-header,
.on-frame--pair .callbar-actions { display: none; }
.on-frame--pair .callbar-inner { justify-content: flex-start; }
.on-hang__sign { min-width: 5.8rem; }

.on-signs-page { padding-bottom: 2rem; }
.on-signs-page .on-lede { font-size: 1.05rem; }
