/* Chamberlin Design — prompt pack pages (/prompts/<slug>)
   Loaded after style.css + pages.css. Same tokens: Anton, Inter, mono labels, forest. */

[hidden] { display: none !important; }

.pp-show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-top: 0;
}
.pp-shot { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pp-tag {
  position: absolute;
  top: -18px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 6px 16px -8px rgba(14, 14, 14, .35);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
}
.pp-frame {
  display: block;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
  transition: transform .4s var(--spring), box-shadow .4s var(--ease);
}
.pp-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #0B1424; }
.pp-frame:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -34px rgba(15, 61, 46, .45); }
.pp-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pp-shot figcaption a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 2px; white-space: nowrap; }
.pp-shot figcaption a:hover { color: var(--forest); border-color: var(--forest); }

.pp-h2 { font-size: clamp(38px, 5.4vw, 80px); line-height: .9; }
.pp-h2 em { color: var(--forest); font-style: italic; }

/* ---------- Gate ---------- */
.pp-gate { background: var(--forest); color: var(--paper); margin-top: clamp(48px, 6vw, 96px); }
.pp-gate-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.pp-gate .label { color: rgba(255, 255, 255, .6); display: block; margin-bottom: 16px; }
.pp-gate .pp-h2 { color: var(--paper); }
.pp-gate .pp-h2 em { color: #A9D8C3; }
.pp-list { list-style: none; margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, .16); }
.pp-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: clamp(16px, 1.3vw, 19px);
}
.pp-list li span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: #A9D8C3; }
.pp-note { margin-top: 18px; color: rgba(255, 255, 255, .7); font-weight: 300; }

.pp-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.pp-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3vw, 42px);
  line-height: .95;
  letter-spacing: -.01em;
}
.pp-card-sub { margin: 12px 0 26px; color: var(--muted-deep); font-size: 15.5px; line-height: 1.55; }
.pp-form { display: flex; flex-direction: column; gap: 22px; }
.pp-form .pp-card-sub { margin: -10px 0 4px; }
.pp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pp-error { color: #B3261E; font-size: 14.5px; line-height: 1.5; margin-top: -6px; }
.pp-error button { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.field input[aria-invalid="true"] { border-bottom-color: #B3261E; }
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  transition: background .25s var(--ease), opacity .25s var(--ease);
}
.pp-btn:hover { background: #0b2e23; }
.pp-btn-arrow { transition: transform .3s var(--spring); }
.pp-btn:hover .pp-btn-arrow { transform: translateX(4px); }
.pp-btn[disabled] { opacity: .6; cursor: progress; }
.pp-fine { font-size: 13px; color: var(--muted); line-height: 1.55; }
.pp-fine a, .pp-inline { color: var(--ink); border-bottom: 1px solid var(--rule); }
.pp-fine a:hover, .pp-inline:hover { color: var(--forest); border-color: var(--forest); }
.pp-sent { display: flex; flex-direction: column; gap: 14px; outline: none; }
.pp-sent-icon { color: var(--forest); animation: pp-pop .5s var(--spring) both; }
.pp-sent p { color: var(--muted-deep); line-height: 1.6; }
.pp-sent strong { color: var(--ink); word-break: break-all; }
.pp-loading p { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@keyframes pp-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Unlocked pack ---------- */
.pp-pack-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 52px); }
.pp-notes { list-style: none; display: grid; gap: 8px; max-width: 70ch; margin-top: 8px; }
.pp-notes li { position: relative; padding-left: 20px; color: var(--muted-deep); font-weight: 300; line-height: 1.6; }
.pp-notes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--forest); }
.pp-notes a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.pp-group + .pp-group { margin-top: clamp(36px, 5vw, 64px); }
.pp-group-title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.pp-prompts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.pp-prompt { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--paper); }
.pp-prompt header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 16px; }
.pp-prompt-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--forest); }
.pp-prompt h4 { margin: 8px 0 4px; font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.pp-prompt header p { color: var(--muted-deep); font-size: 14.5px; line-height: 1.5; }
.pp-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pp-copy:hover { background: var(--ink); color: var(--paper); }
.pp-copy.is-done { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.pp-prompt pre {
  position: relative;
  flex: 1;
  margin: 0 12px 12px;
  padding: 18px;
  max-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #F4F4F0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: #22221F;
}
.pp-prompt pre.is-clipped::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(244, 244, 240, 0), #F4F4F0);
}
.pp-prompt.is-open pre { max-height: none; }
.pp-prompt.is-open pre::after { display: none; }
.pp-more {
  align-self: flex-start;
  margin: -4px 22px 18px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.pp-more:hover { color: var(--forest); border-color: var(--forest); }
.pp-pack .pg-actions { margin-top: 18px; }

@media (max-width: 900px) {
  .pp-gate-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pp-show { grid-template-columns: 1fr; gap: 44px; }
  .pp-shot figcaption { font-size: 10.5px; }
  .pp-prompt header { flex-direction: column; }
  .pp-copy { align-self: flex-start; }
}
