/* Punchcard Desk — help center */

*,
*::before,
*::after { box-sizing: border-box; }

body.punchcard-desk,
body.a97-punchcard {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--pc-ink);
  background:
    radial-gradient(ellipse 65% 40% at 5% 0%, rgba(45, 156, 219, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 5%, rgba(255, 92, 53, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(198, 241, 53, 0.12), transparent 55%),
    linear-gradient(180deg, var(--pc-chalk) 0%, #f7fbff 45%, #fff5f0 100%);
  -webkit-font-smoothing: antialiased;
}

body.pc-nav-open { overflow: hidden; }

a { color: var(--pc-signal-deep); }
img { max-width: 100%; display: block; }

.pc-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.55rem 1rem;
  background: var(--pc-punch);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
}
.pc-skip:focus { top: 1rem; }

/* hop */
.pc-hop {
  position: relative;
  top: 0;
  z-index: 200;
  background: var(--pc-ink);
  border-bottom: 4px solid var(--pc-punch);
}

.pc-hop-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem var(--space-page);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pc-hop-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: #fff;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.pc-hop-brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pc-lime);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--pc-ink), 0 0 10px var(--pc-lime);
}

.pc-hop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pc-hop-links a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
}

.pc-hop-links a:hover,
.pc-hop-links a[aria-current="page"] {
  color: var(--pc-ink);
  background: var(--pc-lime);
  border-color: #fff;
}

.pc-hop-toggle {
  display: none;
  min-height: 42px;
  min-width: 5.5rem;
  padding: 0 0.95rem;
  border: 2px solid var(--pc-lime);
  background: transparent;
  color: var(--pc-lime);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 200ms ease, color 200ms ease;
}

.pc-hop-toggle:hover,
.pc-hop-toggle:focus-visible {
  background: var(--pc-lime);
  color: var(--pc-ink);
  outline: 3px solid var(--pc-signal);
  outline-offset: 2px;
}

.pc-hop-sheet {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem var(--space-page) 1rem;
  background: var(--pc-ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-hop.is-open .pc-hop-sheet { display: flex; }

.pc-hop-sheet a {
  padding: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

@media (max-width: 820px) {
  .pc-hop-links { display: none; }
  .pc-hop-toggle { display: inline-flex; align-items: center; margin-left: auto; }
}

/* mast */
.pc-mast {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-page) var(--space-3);
}

.pc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pc-punch);
}

.pc-mast h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--pc-ink);
}

.pc-mast p {
  margin: 0;
  max-width: 38rem;
  color: var(--pc-mute);
  font-size: 1.05rem;
  line-height: 1.55;
}

.pc-desk {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-page) var(--space-5);
  display: grid;
  gap: 1.25rem;
}

/* ——— Search: punchcard slot ——— */
.pc-slot {
  position: relative;
  background: var(--pc-ink);
  border: 4px solid var(--pc-ink);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--motion-slot), transform var(--motion-slot);
}

.pc-slot.is-hot {
  box-shadow: 0 10px 0 var(--pc-signal), 0 0 0 4px rgba(45, 156, 219, 0.25);
  transform: translateY(-2px);
}

.pc-slot-rail {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.pc-slot-rail i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background var(--motion-punch), box-shadow var(--motion-punch), transform var(--motion-punch);
}

.pc-slot.is-hot .pc-slot-rail i {
  animation: pc-hole-chase 720ms var(--ease-out) infinite;
}

.pc-slot.is-hot .pc-slot-rail i:nth-child(1) { animation-delay: 0ms; }
.pc-slot.is-hot .pc-slot-rail i:nth-child(2) { animation-delay: 90ms; }
.pc-slot.is-hot .pc-slot-rail i:nth-child(3) { animation-delay: 180ms; }
.pc-slot.is-hot .pc-slot-rail i:nth-child(4) { animation-delay: 270ms; }
.pc-slot.is-hot .pc-slot-rail i:nth-child(5) { animation-delay: 360ms; }

@keyframes pc-hole-chase {
  0%, 100% { background: rgba(255, 255, 255, 0.18); transform: scale(1); box-shadow: none; }
  50% { background: var(--pc-lime); transform: scale(1.2); box-shadow: 0 0 10px var(--pc-lime); }
}

.pc-slot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.pc-slot-field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pc-slot-field input {
  border: 3px solid #fff;
  border-radius: var(--radius-sm);
  background: var(--pc-surface);
  color: var(--pc-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.pc-slot-field input:focus {
  border-color: var(--pc-lime);
  box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.35);
}

.pc-clear {
  appearance: none;
  border: 3px solid #fff;
  border-radius: var(--radius-sm);
  background: var(--pc-punch);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0 1.1rem;
  cursor: pointer;
  align-self: flex-end;
  min-height: 48px;
}

.pc-clear:hover,
.pc-clear:focus-visible {
  background: var(--pc-signal-deep);
  color: #fff;
  outline: none;
}

.pc-clear:focus-visible {
  box-shadow: 0 0 0 3px var(--pc-lime);
}

.pc-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 3px dashed var(--pc-punch);
  border-radius: var(--radius-sm);
  background: rgba(255, 92, 53, 0.08);
  color: var(--pc-punch-deep);
  font-weight: 700;
}

/* ——— Topics: punchcard deck ——— */
.pc-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.pc-chip {
  appearance: none;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding: 1rem 0.9rem 1rem 1.7rem;
  background: var(--pc-surface);
  border: 3px solid var(--pc-ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--pc-mist);
  color: var(--pc-ink);
  transition:
    transform var(--motion-punch),
    box-shadow var(--motion-punch),
    background var(--motion-punch),
    border-color var(--motion-punch);
}

.pc-chip::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 0.55rem;
  background:
    radial-gradient(circle closest-side, var(--pc-ink) 55%, transparent 56%) 0 0 / 100% 14px;
}

.pc-chip-stage {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--pc-punch);
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
}

.pc-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.15;
  font-weight: 400;
}

.pc-chip span:last-child {
  display: block;
  font-size: 0.82rem;
  color: var(--pc-mute);
  line-height: 1.4;
  font-weight: 600;
}

.pc-chip:nth-child(1) { --chip: var(--pc-signal); }
.pc-chip:nth-child(2) { --chip: var(--pc-punch); }
.pc-chip:nth-child(3) { --chip: var(--pc-lime); }
.pc-chip:nth-child(4) { --chip: #7B6CFF; }

.pc-chip:hover {
  transform: translate(-2px, -4px);
  box-shadow: 7px 9px 0 var(--chip, var(--pc-ink));
}

.pc-chip:focus-visible {
  outline: 3px solid var(--pc-signal);
  outline-offset: 3px;
}

.pc-chip.is-active {
  background: var(--pc-ink);
  color: #fff;
  transform: translate(-3px, -6px) rotate(-0.6deg);
  box-shadow: 8px 10px 0 var(--chip, var(--pc-punch));
}

.pc-chip.is-active .pc-chip-stage { color: var(--pc-lime); }
.pc-chip.is-active span:last-child { color: rgba(255, 255, 255, 0.7); }
.pc-chip.is-active::before {
  background:
    radial-gradient(circle closest-side, var(--pc-lime) 55%, transparent 56%) 0 0 / 100% 14px;
}

.pc-chip.is-dim {
  opacity: 0.38;
  transform: scale(0.97);
  filter: grayscale(0.35);
}

/* ——— Answers: readout bay ——— */
.pc-readout {
  background: var(--pc-surface);
  border: 4px solid var(--pc-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pc-readout-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  background: var(--pc-ink);
  color: #fff;
}

.pc-readout-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.pc-readout-head p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--pc-lime);
  color: var(--pc-ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.pc-panel { display: none; }
.pc-panel.is-active { display: block; }

.pc-strips {
  display: grid;
  gap: 0;
}

.pc-strip {
  border-bottom: 2px solid var(--pc-mist);
  background: var(--pc-surface);
}

.pc-strip:last-child { border-bottom: 0; }

.pc-strip[hidden] { display: none !important; }

.pc-strip summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.15rem 1rem 0.9rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--pc-ink);
  transition: background var(--motion-strip);
}

.pc-strip summary::-webkit-details-marker { display: none; }

.pc-strip summary:hover {
  background: var(--pc-chalk);
}

.pc-strip summary:focus-visible {
  outline: 3px solid var(--pc-signal);
  outline-offset: -3px;
  background: var(--pc-chalk);
}

.pc-strip[open] summary {
  background: rgba(198, 241, 53, 0.18);
  border-left: 5px solid var(--pc-lime);
  padding-left: calc(0.9rem - 5px);
}

.pc-strip-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--pc-punch);
  letter-spacing: 0.04em;
}

.pc-strip-holes {
  display: flex;
  gap: 0.28rem;
  align-items: center;
}

.pc-strip-holes i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pc-mist);
  border: 1.5px solid var(--pc-ink);
  opacity: 0.45;
  transform: scale(0.7);
  transition: background var(--motion-punch), opacity var(--motion-punch), transform var(--motion-punch);
}

.pc-strip[open] .pc-strip-holes i {
  opacity: 1;
  transform: scale(1);
  background: var(--pc-lime);
  animation: pc-hole-pop 420ms var(--ease-snap) both;
}

.pc-strip[open] .pc-strip-holes i:nth-child(1) { animation-delay: 0ms; }
.pc-strip[open] .pc-strip-holes i:nth-child(2) { animation-delay: 60ms; }
.pc-strip[open] .pc-strip-holes i:nth-child(3) { animation-delay: 120ms; }
.pc-strip[open] .pc-strip-holes i:nth-child(4) { animation-delay: 180ms; }

@keyframes pc-hole-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pc-strip-body {
  padding: 0 1.15rem 1.15rem 1.15rem;
  color: var(--pc-mute);
  line-height: 1.6;
  font-weight: 600;
  animation: pc-answer-rise 320ms var(--ease-out) both;
}

.pc-strip-body a {
  color: var(--pc-punch-deep);
  font-weight: 800;
}

@keyframes pc-answer-rise {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* contact ledge — full width, not sidebar */
.pc-ledge {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--pc-ink);
  color: #fff;
  border: 4px solid var(--pc-ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--pc-signal);
}

.pc-ledge h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--pc-lime);
}

.pc-ledge p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pc-ledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 46px;
  min-width: 8rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 3px solid #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.pc-btn:focus-visible {
  outline: 3px solid var(--pc-lime);
  outline-offset: 3px;
}

.pc-btn:active {
  transform: translateY(2px);
}

.pc-btn--punch {
  background: var(--pc-punch-deep);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.pc-btn--punch:hover,
.pc-btn--punch:focus-visible {
  background: var(--pc-lime);
  color: var(--pc-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.pc-btn--ghost {
  background: transparent;
  color: #fff;
}

.pc-btn--ghost:hover,
.pc-btn--ghost:focus-visible {
  background: var(--pc-signal-deep);
  color: #fff;
  transform: translateY(-2px);
}

.pc-ledge h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--pc-signal);
  letter-spacing: 0.04em;
}

.pc-ledge-meta {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.pc-ledge-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pc-ledge-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: border-color 200ms ease, color 200ms ease;
}

.pc-ledge-nav a:hover {
  color: var(--pc-lime);
  border-bottom-color: var(--pc-lime);
}

.pc-foot-mini {
  text-align: center;
  padding: 1rem var(--space-page) 1.5rem;
  font-size: 0.8rem;
  color: var(--pc-mute);
}

.pc-foot-mini a {
  color: var(--pc-punch);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .pc-slot.is-hot .pc-slot-rail i,
  .pc-strip[open] .pc-strip-holes i,
  .pc-strip-body {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .pc-deck { grid-template-columns: 1fr 1fr; }
  .pc-ledge { grid-template-columns: 1fr; box-shadow: 0 8px 0 var(--pc-signal); }
}

@media (max-width: 560px) {
  .pc-deck { grid-template-columns: 1fr; }
  .pc-slot { padding-left: 2.75rem; }
}
