/* Edition gateway + OG access ribbon */

.edition-ribbon {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(14, 12, 10, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: auto;
  opacity: 0;
  animation: ribbonIn 1.2s ease 1.5s forwards;
}
@keyframes ribbonIn {
  to { opacity: 1; }
}
.edition-ribbon span {
  color: var(--text-faded);
}
.edition-ribbon a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.edition-ribbon a:hover {
  color: #ebe2d0;
  border-color: var(--accent);
}
.edition-ribbon button {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 4px;
}
.edition-ribbon button:hover { color: var(--accent); }

#edition-modal .modal {
  width: min(720px, 96vw);
  max-height: 85vh;
}
.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 8px 4px 4px;
}
@media (max-width: 640px) {
  .edition-grid { grid-template-columns: 1fr; }
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: linear-gradient(165deg, #221c14 0%, #14110e 100%);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.edition-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(201, 162, 39, 0.08), transparent 55%);
  pointer-events: none;
}
.edition-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.edition-card.current {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.15);
}
.edition-card.neon {
  border-color: rgba(85, 255, 159, 0.25);
  background: linear-gradient(165deg, #0a1420 0%, #060810 100%);
}
.edition-card.neon:hover {
  border-color: rgba(85, 255, 159, 0.55);
  box-shadow: 0 12px 40px rgba(29, 158, 117, 0.15);
}
.edition-card.neon::before {
  background: radial-gradient(circle at 20% 100%, rgba(85, 255, 159, 0.1), transparent 50%);
}
.edition-tag {
  font-family: 'Special Elite', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
}
.edition-card.neon .edition-tag { color: #55ff9f; }
.edition-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 15px;
  color: #e0d4bc;
  line-height: 1.4;
}
.edition-card.neon .edition-name {
  color: #cecbf6;
  text-shadow: 0 0 20px rgba(157, 140, 255, 0.3);
}
.edition-desc {
  font-family: 'IM Fell English', 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  flex: 1;
}
.edition-cta {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.edition-card.neon .edition-cta { color: #55ff9f; }

.btn-hero.tertiary {
  background: transparent !important;
  border: 1px dashed rgba(201, 162, 39, 0.35) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
}
.btn-hero.tertiary:hover {
  border-color: var(--accent-dim) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.12) !important;
}

.tool-btn.og-btn {
  border-color: rgba(85, 255, 159, 0.35);
  color: rgba(85, 255, 159, 0.85);
}
.tool-btn.og-btn:hover {
  border-color: #55ff9f;
  color: #55ff9f;
  box-shadow: 0 0 16px rgba(85, 255, 159, 0.2);
}

.folio-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
