/* Appily thirtyone — Orchard Switchboard Desk contact (unique a31-switch layout) */

.page-contact-switch {
  --sw-panel: #1a1a22;
  --sw-bakelite: #2a2420;
  --sw-brass: #c9a227;
  --sw-lamp-off: #3a3a42;
  --sw-lamp-on: #ffea00;
  --sw-green: #4caf50;
  --sw-red: #ef5350;
  --sw-cream: #f5f0e6;
  --sw-mono: 'Consolas', 'Courier New', monospace;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 162, 39, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(26, 26, 34, 0.08) 0%, transparent 35%),
    #e8e4dc;
}

.a31-switch {
  padding: 0 0 3rem;
}

/* ── Switchboard header ── */
.a31-switch-board {
  background: linear-gradient(180deg, var(--sw-panel) 0%, #121218 100%);
  color: #fff;
  padding: 2rem 0 1.75rem;
  border-bottom: 4px solid var(--a31-yellow);
  position: relative;
  overflow: hidden;
}

.a31-switch-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.02) 3px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}

.a31-switch-board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.a31-switch-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--sw-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.a31-switch-board h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
}

.a31-switch-board h1 em {
  font-style: normal;
  color: var(--a31-yellow);
}

.a31-switch-lede {
  margin: 0 0 0.85rem;
  max-width: 48ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.a31-switch-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.a31-switch-topics li {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 234, 0, 0.35);
  font-family: var(--sw-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 234, 0, 0.85);
}

.a31-switch-lamps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.a31-switch-lamp-row {
  display: flex;
  gap: 0.45rem;
}

.a31-switch-lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw-lamp-off);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.a31-switch-lamp.is-on {
  background: var(--sw-lamp-on);
  box-shadow:
    0 0 8px rgba(255, 234, 0, 0.7),
    0 0 16px rgba(255, 234, 0, 0.35);
}

.a31-switch-desk-status {
  padding: 0.45rem 0.75rem;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.45);
  font-family: var(--sw-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #81c784;
  text-align: center;
}

.a31-switch-desk-status strong {
  display: block;
  font-size: 0.85rem;
  color: var(--sw-green);
}

/* ── Floor layout ── */
.a31-switch-stage {
  margin-top: 1.75rem;
}

.a31-switch-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 320px);
  gap: 1.35rem;
  align-items: start;
}

/* Jack panel form */
.a31-switch-jack {
  background: var(--sw-bakelite);
  border: 3px solid #1a1510;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.a31-switch-jack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--sw-panel);
  border-bottom: 2px solid var(--sw-brass);
}

.a31-switch-jack-tag {
  display: block;
  font-family: var(--sw-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a31-yellow);
  margin-bottom: 0.2rem;
}

.a31-switch-jack-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.a31-switch-jack-ref {
  font-family: var(--sw-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.a31-switch-jack-body {
  padding: 1.15rem 1rem 1.35rem;
}

.a31-switch-jack-lede {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.a31-switch-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--sw-green);
}

.a31-switch-notice.is-error {
  border-left-color: var(--sw-red);
}

.a31-switch-notice-lamp {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.2rem;
  background: var(--sw-green);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
}

.a31-switch-notice.is-error .a31-switch-notice-lamp {
  background: var(--sw-red);
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.7);
}

.a31-switch-notice strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.a31-switch-notice p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.a31-switch-form {
  display: grid;
  gap: 0.75rem;
}

.a31-switch-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.a31-switch-field-wide {
  grid-column: 1 / -1;
}

.a31-switch-field {
  display: block;
}

.a31-switch-field > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sw-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.28rem;
}

.a31-switch-jack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sw-brass);
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.a31-switch-field input,
.a31-switch-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid #444;
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
  background: var(--sw-cream);
  color: var(--sw-panel);
}

.a31-switch-field input:focus,
.a31-switch-field textarea:focus {
  outline: 2px solid var(--a31-yellow);
  outline-offset: 1px;
}

.a31-switch-form .btn {
  border-radius: 0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--a31-yellow);
  color: var(--sw-panel);
  border-color: var(--a31-yellow);
  justify-self: start;
  margin-top: 0.25rem;
}

/* Patch bay contact info */
.a31-switch-bay {
  background: var(--sw-cream);
  border: 2px solid var(--sw-bakelite);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 1rem;
}

.a31-switch-bay-head {
  padding: 0.65rem 0.85rem;
  background: var(--sw-bakelite);
  color: #fff;
  font-family: var(--sw-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid var(--sw-brass);
}

.a31-switch-bay-body {
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.a31-switch-patch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid var(--sw-brass);
}

.a31-switch-patch-code {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sw-bakelite);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.55;
  letter-spacing: 0.06em;
}

.a31-switch-patch-copy strong {
  display: block;
  font-family: var(--sw-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.2rem;
}

.a31-switch-patch-copy p,
.a31-switch-patch-copy a {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sw-panel);
  word-break: break-word;
}

.a31-switch-patch-copy a {
  color: var(--sw-bakelite);
  font-weight: 600;
}

.a31-switch-cord {
  height: 3px;
  margin: 0.25rem 0;
  background: repeating-linear-gradient(
    90deg,
    var(--sw-brass) 0,
    var(--sw-brass) 8px,
    #8b6914 8px,
    #8b6914 16px
  );
  opacity: 0.45;
}

@media (max-width: 900px) {
  .a31-switch-board-grid {
    grid-template-columns: 1fr;
  }

  .a31-switch-lamps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .a31-switch-layout {
    grid-template-columns: 1fr;
  }

  .a31-switch-bay {
    position: static;
  }

  .a31-switch-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .a31-switch-form .btn {
    width: 100%;
    text-align: center;
  }
}
