/* Shared UI for marketplace-inspired skin themes (layout + responsive) */

.p100-skin-wrapper {
  width: 100%;
  line-height: 1.6;
}

.p100-skin-wrapper h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.p100-skin-wrapper h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.p100-skin-wrapper h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.p100-skin-wrapper a {
  transition: color 0.15s ease, opacity 0.15s ease;
}

.p100-skin-wrapper a:focus-visible,
.p100-skin-wrapper .p100-cta:focus-visible,
.p100-skin-wrapper .p100-ledger__row:focus-visible {
  outline: 2px solid var(--p100-accent, #2563eb);
  outline-offset: 2px;
}

.p100-skin-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--p100-radius, 8px);
}

/* Cards & bands */
.p100-hype__card,
.p100-card,
.p100-mosaic__tile {
  background: var(--color-bg, #fff);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p100-hype__card:hover,
.p100-card:hover {
  transform: translateY(-2px);
}

.p100-hype__card {
  border: 1px solid var(--p100-border, #e2e8f0);
  border-radius: var(--p100-radius, 8px);
  overflow: hidden;
}

.p100-hype__card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.p100-hype__card h3,
.p100-hype__card .p100-meta {
  padding: 0 1rem;
}

.p100-hype__card h3 { padding-top: 0.75rem; padding-bottom: 0.25rem; }
.p100-hype__card .p100-meta { padding-bottom: 1rem; }

.p100-hype__card h3 a,
.p100-card h3 a {
  color: inherit;
  text-decoration: none;
}

.p100-hype__card h3 a:hover,
.p100-card h3 a:hover {
  color: var(--p100-accent, #2563eb);
}

.p100-hype__mast {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--p100-border, #e2e8f0);
}

.p100-band__head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--p100-muted);
}

/* Newsletter inline */
.p100-newsletter {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--p100-surface, #f8fafc);
  border-radius: var(--p100-radius, 8px);
  text-align: center;
}

.p100-newsletter h2 { margin-top: 0; }

.p100-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--p100-accent, #2563eb);
  color: var(--p100-accent-contrast, #fff) !important;
  text-decoration: none !important;
  border-radius: var(--p100-radius, 8px);
  font-weight: 600;
  font-size: 0.95rem;
}

.p100-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Family: bold (hype, crimson, deigo) */
[data-theme-family="bold"] .p100-hype__mast h1,
[data-theme-family="bold"] .p100-deigo__hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* Family: minimal */
[data-theme-family="minimal"] .p100-sense__list a {
  font-family: var(--p100-font-heading);
}

/* Split shell — full viewport on home */
body.is-skin-split-home .p100-split {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.is-skin-split-home .p100-skin-wrapper {
  padding: 0;
}

.p100-split__logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.p100-split__aside nav {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.p100-split-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--p100-border);
}

.p100-split-item h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 0 0 0.35rem;
}

.p100-split-item h2 a {
  color: inherit;
  text-decoration: none;
}

.p100-split-item h2 a:hover {
  color: var(--p100-accent);
}

/* Mosaic tiles */
.p100-mosaic__tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid var(--p100-border);
}

.p100-mosaic__tile h2 a {
  color: inherit;
  text-decoration: none;
}

/* Feature carousel items */
.p100-feature__carousel article {
  flex: 0 0 min(280px, 85vw);
  padding: 1rem;
  border: 1px solid var(--p100-border);
  border-radius: var(--p100-radius);
  scroll-snap-align: start;
}

.p100-feature__carousel article a {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
}

/* ─── Responsive: tablet & mobile ─── */
@media (max-width: 768px) {
  .p100-hype__grid {
    grid-template-columns: 1fr !important;
  }

  .p100-hype__featured {
    grid-template-columns: 1fr !important;
  }

  .p100-feed__row,
  .p100-pine__list-item {
    grid-template-columns: 1fr !important;
  }

  .p100-feed__thumb img,
  .p100-pine__list-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .p100-gazet__secondary {
    grid-template-columns: 1fr !important;
  }

  .p100-kate__top {
    grid-template-columns: 1fr !important;
  }

  .p100-colorgrid__hero {
    grid-template-columns: 1fr !important;
  }

  .p100-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .p100-split__aside {
    padding: 1.5rem var(--space-md);
  }

  .p100-split__main {
    padding: 1.5rem var(--space-md) 2.5rem;
  }

  .p100-crimson__ticker {
    font-size: 0.8rem;
    gap: 1rem;
  }

  .p100-news-layout {
    grid-template-columns: 1fr !important;
  }

  .p100-feed-layout {
    grid-template-columns: 1fr !important;
  }

  .p100-feed-sidebar {
    border-left: none;
    border-top: 1px solid var(--p100-border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .p100-kate__layout {
    grid-template-columns: 1fr !important;
  }

  .p100-hero--mag {
    grid-template-columns: 1fr !important;
  }

  .p100-grid__cards {
    grid-template-columns: 1fr !important;
  }

  .p100-mosaic {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .p100-woords__tags {
    grid-template-columns: 1fr 1fr !important;
  }

  .p100-band__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .p100-mosaic {
    grid-template-columns: 1fr !important;
  }

  .p100-woords__tags {
    grid-template-columns: 1fr !important;
  }

  .p100-deigo__carousel article {
    flex: 0 0 min(260px, 90vw);
  }

  .p100-pine__intro {
    padding: 1.75rem 1.25rem;
  }
}

/* batch-25 responsive */
@media (max-width: 768px) {
  .p100-atlas__list li,
  .p100-pulse__row,
  .p100-harbor__band,
  .p100-amber__hero,
  .p100-velvet__feature,
  .p100-slate,
  .p100-quill__cols,
  .p100-stack__card,
  .p100-zenith__row {
    grid-template-columns: 1fr !important;
  }
  .p100-harbor__band:nth-child(even) img { order: 0 !important; }
  .p100-noir__mast h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .p100-flare__burst { transform: none; }
  .p100-flare__burst > * { transform: none; }
  .p100-orbit__core { border-radius: 12px !important; aspect-ratio: auto !important; }
}
@media (max-width: 480px) {
  .p100-folio__meta { flex-direction: column; align-items: flex-start; }
  .p100-metro__stops li { grid-template-columns: 2.5rem 1fr; }
  .p100-bloom__thumb img { width: 112px; height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .p100-pulse__dot { animation: none; }
}
