/* Appily Thirtyfive — Bloom Switchboard Exchange help center */

.page-help-switch {
  --sw-booth: #2A2520;
  --sw-booth-mid: #3A322C;
  --sw-brass: #B8956A;
  --sw-brass-light: #D4B896;
  --sw-brass-dark: #8B6F47;
  --sw-panel: #1E1A18;
  --sw-panel-edge: #4A4038;
  --sw-paper: #FFF9EE;
  --sw-paper-shadow: #E8DFD0;
  --sw-ink: #2A2520;
  --sw-muted: #6B6258;
  --sw-line: #DDD4C8;
  --sw-lamp-rose: #E85D8A;
  --sw-lamp-green: #4CAF6A;
  --sw-lamp-amber: #E8913A;
  --sw-lamp-blue: #5B8FC7;
  background: #F5F0E8;
}

.page-help-switch .page-main {
  padding-top: 0;
}

.a35-switch {
  padding-bottom: 0;
}

/* ── Operator booth hero ── */
.a35-switch-booth {
  position: relative;
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(165deg, var(--sw-booth) 0%, var(--sw-booth-mid) 55%, #4A4038 100%);
  overflow: hidden;
}

.a35-switch-booth-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 15% 50%, rgba(232, 145, 58, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 85% 30%, rgba(194, 85, 122, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.a35-switch-booth-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}

.a35-switch-badge {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--sw-panel);
  border: 3px solid var(--sw-brass-dark);
  border-radius: 12px;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.a35-switch-badge-lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #555;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.a35-switch-badge-lamp.is-live {
  background: var(--sw-lamp-green);
  box-shadow:
    0 0 8px var(--sw-lamp-green),
    0 0 16px rgba(76, 175, 106, 0.5);
  animation: a35SwitchBlink 2s ease-in-out infinite;
}

@keyframes a35SwitchBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.a35-switch-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-brass-light);
}

.a35-switch-booth-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.a35-switch-booth-copy h1 em {
  font-style: italic;
  color: var(--sw-brass-light);
}

.a35-switch-lede {
  margin: 0;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.a35-switch-finder {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  background: var(--sw-panel);
  border: 2px solid var(--sw-brass-dark);
  border-radius: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.a35-switch-finder-dial {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0.35rem 0 0.35rem 0.45rem;
  border-radius: 50%;
  border: 2px solid var(--sw-brass);
  background:
    conic-gradient(from 0deg, var(--sw-brass-dark), var(--sw-brass-light), var(--sw-brass-dark));
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.a35-switch-finder input {
  flex: 1;
  border: 0;
  padding: 0.85rem 2.5rem 0.85rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  background: transparent;
  color: #fff;
}

.a35-switch-finder input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.a35-switch-finder input:focus {
  outline: none;
}

.a35-switch-finder-clear {
  position: absolute;
  right: 0.5rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.a35-switch-finder-clear:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Main desk ── */
.a35-switch-stage {
  padding: 2rem 1rem 2.5rem;
}

.a35-switch-empty {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--sw-muted);
  background: #fff;
  border: 2px dashed var(--sw-line);
  border-radius: 10px;
}

.a35-switch-desk {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Patch board panel ── */
.a35-switch-panel {
  position: sticky;
  top: calc(var(--a35-header-offset, 120px) + 0.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: linear-gradient(160deg, var(--sw-panel) 0%, #141210 100%);
  border: 4px solid var(--sw-brass-dark);
  border-radius: 14px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(42, 37, 32, 0.2);
}

.a35-switch-panel-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 149, 106, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.a35-switch-panel-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sw-brass-light), var(--sw-brass-dark));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.a35-switch-panel-screw:nth-child(1) { top: 6px; left: 6px; }
.a35-switch-panel-screw:nth-child(2) { top: 6px; right: 6px; }
.a35-switch-panel-screw:nth-child(3) { bottom: 6px; left: 6px; }
.a35-switch-panel-screw:nth-child(4) { bottom: 6px; right: 6px; }

.a35-switch-panel-label {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sw-brass);
  text-align: center;
}

.a35-switch-jack {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.55rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 0.6rem;
  border: 1px solid rgba(184, 149, 106, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  overflow: visible;
}

.a35-switch-jack:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sw-brass);
}

.a35-switch-jack.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sw-brass-light);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--sw-brass);
}

.a35-switch-jack-lamp {
  grid-row: 1 / 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #444;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, box-shadow 0.2s;
}

.a35-switch-jack.lamp-rose .a35-switch-jack-lamp { background: var(--sw-lamp-rose); }
.a35-switch-jack.lamp-green .a35-switch-jack-lamp { background: var(--sw-lamp-green); }
.a35-switch-jack.lamp-amber .a35-switch-jack-lamp { background: var(--sw-lamp-amber); }
.a35-switch-jack.lamp-blue .a35-switch-jack-lamp { background: var(--sw-lamp-blue); }

.a35-switch-jack.is-active .a35-switch-jack-lamp {
  box-shadow: 0 0 10px currentColor, 0 0 18px rgba(255, 255, 255, 0.15);
  animation: a35SwitchLampPulse 1.5s ease-in-out infinite;
}

@keyframes a35SwitchLampPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.a35-switch-jack-plug {
  grid-row: 1 / 3;
  width: 10px;
  height: 18px;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(180deg, var(--sw-brass-light), var(--sw-brass-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.a35-switch-jack-line {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sw-brass);
}

.a35-switch-jack-title {
  grid-column: 3;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.a35-switch-jack-cord {
  display: none;
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--sw-brass-dark), var(--sw-brass));
  transform: translateY(-50%);
  border-radius: 999px;
}

.a35-switch-jack.is-active .a35-switch-jack-cord {
  display: block;
  animation: a35SwitchCordPulse 0.4s ease;
}

@keyframes a35SwitchCordPulse {
  from { width: 0; opacity: 0; }
  to { width: 1.5rem; opacity: 1; }
}

.a35-switch-panel-dock {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
}

.a35-switch-dock-title {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-brass-light);
}

.a35-switch-dock-link {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sw-lamp-rose);
  text-decoration: none !important;
}

.a35-switch-dock-link:hover {
  color: var(--sw-lamp-amber);
}

.a35-switch-dock-meta {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Ticket receiver feed ── */
.a35-switch-receiver {
  position: relative;
  min-height: 420px;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--sw-paper);
  border: 1px solid var(--sw-line);
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(42, 37, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.a35-switch-receiver-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px dashed var(--sw-line);
}

.a35-switch-tape {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--sw-muted) 0,
    var(--sw-muted) 8px,
    transparent 8px,
    transparent 14px
  );
  opacity: 0.35;
}

.a35-switch-tape.is-feeding {
  opacity: 0.65;
  animation: a35SwitchTapeFeed 1.2s linear infinite;
}

@keyframes a35SwitchTapeFeed {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

.a35-switch-feed {
  display: none;
  animation: a35SwitchFeedIn 0.35s ease;
}

.a35-switch-feed.is-active {
  display: block;
}

@keyframes a35SwitchFeedIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.a35-switch-feed-head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--sw-line);
}

.a35-switch-feed-line {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
  background: var(--sw-muted);
}

.a35-switch-feed.lamp-rose .a35-switch-feed-line { background: var(--sw-lamp-rose); }
.a35-switch-feed.lamp-green .a35-switch-feed-line { background: var(--sw-lamp-green); }
.a35-switch-feed.lamp-amber .a35-switch-feed-line { background: var(--sw-lamp-amber); }
.a35-switch-feed.lamp-blue .a35-switch-feed-line { background: var(--sw-lamp-blue); }

.a35-switch-feed-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sw-ink);
}

.a35-switch-feed-head p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--sw-muted);
}

.a35-switch-tickets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a35-switch-tickets > li {
  margin-bottom: 0.65rem;
}

.a35-switch-ticket {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-left: 4px solid var(--sw-muted);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 14px rgba(42, 37, 32, 0.05);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.a35-switch-feed.lamp-rose .a35-switch-ticket { border-left-color: var(--sw-lamp-rose); }
.a35-switch-feed.lamp-green .a35-switch-ticket { border-left-color: var(--sw-lamp-green); }
.a35-switch-feed.lamp-amber .a35-switch-ticket { border-left-color: var(--sw-lamp-amber); }
.a35-switch-feed.lamp-blue .a35-switch-ticket { border-left-color: var(--sw-lamp-blue); }

.a35-switch-ticket:hover {
  box-shadow: 0 8px 22px rgba(42, 37, 32, 0.08);
  transform: translateX(3px);
}

.a35-switch-ticket[open] {
  box-shadow: 0 10px 28px rgba(42, 37, 32, 0.1);
}

.a35-switch-ticket summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.a35-switch-ticket summary::-webkit-details-marker {
  display: none;
}

.a35-switch-ticket-stamp {
  grid-column: 1 / -1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-brass-dark);
  font-family: var(--font-mono, monospace);
}

.a35-switch-ticket-q {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sw-ink);
}

.a35-switch-ticket-fold {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border: 2px solid var(--sw-line);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.a35-switch-ticket-fold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--sw-muted);
  border-bottom: 2px solid var(--sw-muted);
  transform: translate(-60%, -70%) rotate(45deg);
  transition: transform 0.2s;
}

.a35-switch-ticket[open] .a35-switch-ticket-fold {
  border-color: var(--sw-brass-dark);
  background: var(--sw-brass-dark);
}

.a35-switch-ticket[open] .a35-switch-ticket-fold::before {
  border-color: #fff;
  transform: translate(-50%, -30%) rotate(-135deg);
}

.a35-switch-ticket-a {
  padding: 0 1rem 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--sw-muted);
  border-top: 1px dashed var(--sw-line);
  margin: 0 0.75rem;
  padding-top: 0.75rem;
  animation: a35SwitchTicketUnroll 0.3s ease;
}

@keyframes a35SwitchTicketUnroll {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

.a35-switch-ticket-a a {
  color: var(--sw-lamp-rose);
  font-weight: 600;
}

.a35-switch-ticket-a a:hover {
  color: var(--sw-lamp-amber);
}

/* ── Desk trays footer ── */
.a35-switch-trays {
  padding: 2.5rem 0 3.5rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(42, 37, 32, 0.04) 100%),
    #EDE6DA;
}

.a35-switch-trays-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

.a35-switch-tray {
  padding: 1.2rem 1.3rem;
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 37, 32, 0.06);
  border-top: 4px solid var(--sw-brass);
}

.a35-switch-tray--live {
  background: linear-gradient(145deg, var(--sw-booth-mid) 0%, var(--sw-booth) 100%);
  border-color: var(--sw-brass-dark);
  border-top-color: var(--sw-lamp-green);
  color: #fff;
}

.a35-switch-tray-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-brass-dark);
}

.a35-switch-tray--live .a35-switch-tray-tag {
  color: var(--sw-brass-light);
}

.a35-switch-tray h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sw-ink);
}

.a35-switch-tray--live h3 {
  color: #fff;
}

.a35-switch-tray p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--sw-muted);
}

.a35-switch-tray--live p {
  color: rgba(255, 255, 255, 0.85);
}

.a35-switch-tray-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.a35-switch-tray-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--a35-forest);
  text-decoration: none !important;
}

.a35-switch-tray-links a:hover {
  color: var(--sw-lamp-rose);
}

.a35-switch-tray-cta {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sw-booth) !important;
  background: var(--sw-brass-light);
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.15s, background 0.15s;
}

.a35-switch-tray-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a35-switch-desk {
    grid-template-columns: 1fr;
  }

  .a35-switch-panel {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .a35-switch-panel-label,
  .a35-switch-panel-dock,
  .a35-switch-panel-frame {
    display: none;
  }

  .a35-switch-jack {
    flex: 0 0 auto;
    min-width: 180px;
    transform: none !important;
  }

  .a35-switch-jack-cord {
    display: none !important;
  }

  .a35-switch-booth-inner {
    grid-template-columns: 1fr;
  }

  .a35-switch-badge {
    flex-direction: row;
    width: fit-content;
  }

  .a35-switch-trays-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .a35-switch-receiver {
    padding: 1rem;
  }

  .a35-switch-ticket summary {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a35-switch-badge-lamp.is-live,
  .a35-switch-jack.is-active .a35-switch-jack-lamp,
  .a35-switch-tape.is-feeding,
  .a35-switch-feed,
  .a35-switch-ticket-a {
    animation: none;
  }
}
