/* Unlisted brand pack — page-scoped extras on top of styles.css */

.pack-page .pack-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: min(52vh, 420px);
  display: grid;
  align-items: end;
}

.pack-page .pack-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pack-page .pack-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.38;
  filter: saturate(0.85) contrast(1.05);
}

.pack-page .pack-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.35) 0%, rgba(7, 7, 8, 0.92) 78%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(184, 255, 46, 0.12), transparent 60%);
}

.pack-page .pack-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 120px) clamp(20px, 4vw, 40px) 48px;
}

.pack-page .pack-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 16px;
}

.pack-page .pack-hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  line-height: 1.55;
}

.pack-page .pack-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}

.pack-page .pack-section:last-of-type {
  border-bottom: none;
}

.pack-page .pack-section h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 18px;
}

.pack-page .pack-section h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.pack-page .pack-section p {
  color: var(--muted);
  margin: 0 0 14px;
}

.pack-page .pack-section p strong {
  color: var(--text);
}

.pack-page .pack-section ul,
.pack-page .pack-section ol {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.pack-page .pack-section ul li,
.pack-page .pack-section ol li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

.pack-page .pack-section ul li:last-child,
.pack-page .pack-section ol li:last-child {
  border-bottom: none;
}

.pack-page .pack-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.pack-page .pack-section ol {
  counter-reset: pack-step;
}

.pack-page .pack-section ol li {
  padding-left: 0;
  counter-increment: pack-step;
}

.pack-page .pack-section ol li::before {
  display: none;
}

.pack-page .pack-section ol li h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
}

.pack-page .pack-section ol li h3::before {
  content: counter(pack-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pack-page .pack-url {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-all;
  margin: 0 0 22px;
}

.pack-page .pack-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pack-page .pack-status {
  min-height: 1.4em;
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.pack-page .pack-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.pack-page .pack-panel + .pack-panel,
.pack-page .pack-section .pack-panel {
  margin-top: 16px;
}

.pack-page .pack-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 720px) {
  .pack-page .pack-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pack-page .pack-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.pack-page .pack-grid article ul li {
  border-bottom-color: var(--line-soft);
}

.pack-page .swatch-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.pack-page .swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}

.pack-page .swatch::before {
  content: "";
  display: block;
  height: 52px;
  background: var(--sw);
}

.pack-page .swatch span,
.pack-page .swatch code {
  display: block;
  padding: 8px 10px 0;
  font-size: 0.82rem;
}

.pack-page .swatch span {
  color: var(--text);
  font-weight: 600;
}

.pack-page .swatch code {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.pack-page .pack-pre {
  margin: 0 0 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

.pack-page .pack-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pack-page .pack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.pack-page .pack-links a {
  color: var(--accent);
  font-weight: 600;
}

.pack-page .pack-links a:hover {
  text-decoration: underline;
}

.pack-page .pack-section a:not(.btn) {
  color: var(--accent);
}

.pack-page .pack-tip {
  color: var(--muted-2);
  font-size: 0.92rem;
  font-style: italic;
}
