/* The public site sets the typography, navigation and colors. Keep the app's
   card art, sprites and interactive controls at the center of each share. */
.share-page { display: block; padding: 0; }
.share-page .topbar { position: sticky; inset-block-start: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.share-page .topbar-inner, .share-page > main { width: min(1120px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.share-page .topbar-inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.share-page .brand { display: inline-flex; align-items: center; gap: 10px; }
.share-page .nav a { text-decoration: none; padding: 8px; border-radius: 99px; }
.share-page .nav a:is(.nav-download, [href^="https://apps.apple.com"]) { color: #fff; background: var(--ink); padding: 10px 16px; }
.share-page .nav a:is(.nav-download, [href^="https://apps.apple.com"]):hover { color: #fff; background: #36363b; }
.share-page main { padding-block: clamp(40px, 6vw, 85px) 72px; }
.share-page h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); overflow-wrap: anywhere; }
.share-page .eyebrow { margin: 0 0 12px; }
.share-page :is(.meta, .fine, .desc, .featured-card, .trainer-id) { color: var(--muted); }
.share-page .meta { margin: 12px 0 0; }
.share-page .owner { width: fit-content; max-width: 100%; padding: 7px 16px 7px 7px; border: 0; background: var(--surface); overflow-wrap: anywhere; }
.share-page .avatar { flex-shrink: 0; background: #eae9f3; border: 0; box-shadow: none; color: var(--ink); }
.share-page .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 2px; padding: 0; margin: 28px 0 44px; border-radius: 22px; overflow: hidden; background: #fff; }
.share-page .stat { min-width: 0; min-height: 0; padding: clamp(16px, 2.4vw, 30px); background: var(--surface); border: 0; border-radius: 0; }
.share-page .stat b { display: block; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.share-page .stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.share-page .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-page :is(.button, .btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; box-shadow: none; }
.share-page .actions .button:first-child, .share-page .btn.primary { color: #fff; background: var(--accent); border-color: transparent; }
.share-page .actions .button:first-child:hover, .share-page .btn.primary:hover { background: #4541ae; }
.share-page .secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.share-page .secondary:hover { background: #eaeaef; }
.share-page .collection-tools h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.045em; }
.share-page .sort-controls { gap: 4px; padding: 4px; background: var(--surface); border-radius: 24px; width: fit-content; max-width: 100%; }
.share-page .sort-button { color: #515156; background: transparent; border: 0; font-weight: 600; }
.share-page .sort-button:hover { color: var(--ink); background: #e8e8ed; }
.share-page .sort-button.is-active { color: var(--accent); background: #fff; box-shadow: 0 1px 4px #1d1d1f18; }
.share-page :is(.sort, .toggle) { color: var(--ink); font-weight: 500; }
.share-page .sort select { appearance: auto; color: var(--ink); background: var(--surface); padding-inline: 12px; border: 1px solid var(--line); border-radius: 12px; }
.share-page .switch { background: #99999f; border-color: transparent; }
.share-page .toggle input:checked + .switch { border-color: transparent; background: var(--accent); }
.share-page .toggle input:focus-visible + .switch { outline: 3px solid var(--accent); }
.share-page .grid { gap: 28px 18px; }
.share-page .grid .card { color: var(--ink); border-radius: 10px; background: transparent; transform: none; }
.share-page .grid .card:hover { transform: translateY(-3px); }
.share-page .grid :is(img, .placeholder) { background: var(--surface); box-shadow: 0 3px 10px #1d1d1f12; border: 0; }
.share-page .grid .card span { color: var(--muted); }
.share-page .grid .card strong { font-size: 15px; }
.share-page .profile, .share-page .share-message { max-width: 760px; text-align: center; }
.profile .profile-portrait { display: grid; place-items: center; width: 144px; height: 144px; margin: 0 auto 24px; background: var(--surface); border-radius: 38px; }
.profile-portrait img { object-fit: contain; image-rendering: pixelated; border-radius: 18px; }
.profile .profile-level { margin: 8px 0 0; color: var(--ink); font-size: 19px; }
.profile .trainer-id { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.profile .actions, .share-message .actions { justify-content: center; margin-top: 20px; }
.profile .stats { margin: 32px auto; }
.share-post .topbar { padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2)); }
.share-post .wrap { padding-inline: 0; }
.share-post .visual { min-height: 400px; border-radius: 28px; background: var(--surface); padding: clamp(20px, 3vw, 38px); }
.share-post .visual::before, .share-post .grade-chip::after { display: none; }
.share-post .share-grid > *, .share-post .product-gallery { min-width: 0; }
.share-post .visual :is(.card-stack, .product-hero) { max-width: 100%; }
.share-post .card-stack .pull-card { transform: none; }
.share-post .pull-card:hover { z-index: 2; }
.share-post :is(.pull-card img, .single-card .pull-card img) { box-shadow: 0 6px 16px #1d1d1f20; }
.share-post .product-hero, .share-post .empty-visual { background: transparent; border: 0; box-shadow: none; }
.share-post .empty-visual { width: 100%; color: var(--accent); }
.share-post .product-hero .product-info { background: #fff; border-color: var(--line); color: var(--ink); }
.share-post .product-info span { color: var(--muted); }
.share-post .social-link { color: var(--muted); }
.share-post .social-link:hover { color: var(--ink); background: var(--surface); }
.share-post .copy h1 { max-width: none; }
.share-post :is(.pull-summary, .headline-detail, .grade-chip b) { color: var(--ink); }
.share-post .grade-chip { background: var(--surface); border: 0; box-shadow: none; }
.share-post .grade-chip span { color: var(--muted); }
.share-post .stats { margin: 22px 0; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.share-post .stat { padding: 16px; }
.share-post .stat b { font-size: 19px; }
.share-post .btn { font-weight: 500; font-size: 14px; }
.share-trade > main { max-width: 860px; border: 0; background: #fff; border-radius: 0; box-shadow: none; }
.share-trade .hero { display: grid; grid-template-columns: minmax(95px, 190px) 1fr; gap: clamp(16px, 4vw, 46px); padding: clamp(18px, 4vw, 40px); background: var(--surface); border-radius: 24px; }
.share-trade .hero img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: 0 6px 18px #1d1d1f1a; }
.share-trade .hero li { background: #fff; overflow-wrap: anywhere; }
.share-trade .hero li span { color: var(--muted); }
@media (max-width: 850px) {
  .share-post .share-grid { grid-template-columns: minmax(0, 1fr); }
  .share-post .card-stack { width: 100%; }
}
@media (max-width: 720px) {
  .share-page .topbar-inner { width: calc(100% - 2 * var(--gutter)); }
  .share-page .topbar .nav { overflow: visible; }
  .share-page .stats { margin-bottom: 28px; }
  .share-page:is(.share-collection, .share-folders) .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-folders .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .share-page .grid { gap: 22px 14px; }
  .share-page .sort-button { min-height: 40px; padding-inline: 10px; }
  .share-page .collection-header, .share-page .folder-header { gap: 16px; }
  .share-trainer .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-trainer .stat { padding: 16px 8px; }
  .share-post .visual { min-height: 0; }
  .share-post .empty-visual { max-height: 240px; }
}
@media (max-width: 420px) {
  .share-trade .hero { grid-template-columns: 1fr; }
  .share-trade .hero img { justify-self: center; max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .share-page .grid .card:hover { transform: none; }
}
