/* Park Artifacts — the gallery is bright, tactile furniture inside the Park. */
.parks-view--artifacts {
  flex-direction: column;
  align-items: stretch;
  overflow: auto;
  background: #f7f6fb;
  color: var(--sk-text);
}
.parks-artifacts-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: end;
  justify-content: space-between; gap: 24px; padding: 28px 32px 20px;
  background: color-mix(in srgb, #f7f6fb 94%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid #e8e5ef;
}
.parks-artifacts-head h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.parks-artifacts-head p { margin: 5px 0 0; color: var(--sk-text-soft); }
.parks-artifacts-search {
  width: min(360px, 44vw); display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border: 1px solid #d8d4e2; border-radius: 10px;
  background: #fff; color: #777184; box-shadow: 0 2px 8px #32245b0a;
}
.parks-artifacts-search input { width: 100%; border: 0; outline: 0; background: none; font: inherit; }
.parks-artifacts-grid {
  width: 100%; box-sizing: border-box; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px; padding: 26px 32px 48px; align-content: start;
}
.parks-artifact-card {
  min-width: 0; padding: 0; overflow: hidden; text-align: left; border: 1px solid #dedbe6;
  border-radius: 16px; background: #fff; color: var(--sk-text); cursor: pointer;
  box-shadow: 0 8px 26px #2920390d; transition: transform .16s ease, box-shadow .16s ease;
}
.parks-artifact-card:hover, .parks-artifact-card:focus-visible {
  transform: translateY(-3px); box-shadow: 0 18px 38px #2920391f; outline: 2px solid var(--artifact-accent);
}
.parks-artifact-preview { position: relative; display: block; height: 165px; overflow: hidden; background: var(--artifact-accent); }
.parks-artifact-preview iframe {
  position: relative; z-index: 1; width: 200%; height: 200%; border: 0;
  transform: scale(.5); transform-origin: 0 0; pointer-events: none; background: white;
}
.parks-artifact-preview-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.86); font: 700 11px var(--font-sans); letter-spacing: .02em;
}
.parks-artifact-preview-loading[hidden] { display: none; }
.parks-artifact-shade { position: absolute; z-index: 2; inset: 0; box-shadow: inset 0 -38px 50px #0002; }
.parks-artifact-type {
  position: absolute; z-index: 3; top: 12px; right: 12px; padding: 4px 9px; border-radius: 7px;
  background: #18151dcc; color: white; font: 800 10px/1.4 var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.parks-artifact-copy { display: grid; gap: 7px; padding: 17px 18px 18px; }
.parks-artifact-copy strong { font-size: 17px; letter-spacing: -.01em; }
.parks-artifact-copy > span { min-height: 42px; color: var(--sk-text-soft); font-size: 13px; line-height: 1.45; }
.parks-artifact-copy small { color: var(--sk-text-faint); font-size: 11px; }
.parks-artifacts-empty { grid-column: 1/-1; place-self: center; text-align: center; padding: 70px 20px; color: var(--sk-text-soft); }
.parks-artifacts-empty > span { display: block; font-size: 44px; margin-bottom: 12px; }
.parks-artifacts-empty strong { display: block; color: var(--sk-text); font-size: 18px; }
.parks-artifacts-empty p { margin: 6px 0; }
.parks-artifact-viewer {
  position: absolute; inset: 0; z-index: 12; display: grid;
  grid-template-rows: 44px 1fr; background: #fff;
}
.parks-artifact-viewer[hidden] { display: none; }
.parks-artifact-viewer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 10px; border-bottom: 1px solid #e4e2e7; background: #fff;
  color: #252329; box-shadow: 0 1px 4px #251d3510;
}
.parks-artifact-viewer-left,
.parks-artifact-viewer-actions { display: flex; align-items: center; min-width: 0; gap: 4px; }
.parks-artifact-viewer-head button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 7px;
  background: transparent; color: #343138; font: 600 13px/1 var(--font-sans); cursor: pointer;
}
.parks-artifact-viewer-head button:hover { background: #f0eef3; }
.parks-artifact-home { color: #7358b8 !important; }
.parks-artifact-home .material-symbols { width: 19px; height: 19px; }
.parks-artifact-identity { display: flex; min-width: 0; align-items: baseline; gap: 8px; margin-left: 2px; }
.parks-artifact-identity strong {
  max-width: min(44vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 650;
}
.parks-artifact-byline { color: #77717d; font-size: 11px; white-space: nowrap; }
.parks-artifact-viewer-type {
  margin-left: 5px; padding: 3px 6px; border-radius: 5px; background: #eeebf3;
  color: #68616f; font-size: 9px; font-weight: 800; letter-spacing: .08em;
}
.parks-artifact-viewer-actions .material-symbols { width: 16px; height: 16px; }
.parks-artifact-viewer-actions .parks-artifact-share {
  min-width: auto; padding: 0 11px; margin-left: 2px; background: #f1eff4;
  box-shadow: inset 0 0 0 1px #ddd9e3;
}
.parks-artifact-viewer-actions .parks-artifact-share:hover { background: #e8e4ec; }
.parks-artifact-viewer iframe { width: 100%; height: 100%; border: 0; background: white; }
@media (max-width: 700px) {
  .parks-artifacts-head { align-items: stretch; flex-direction: column; padding: 20px; }
  .parks-artifacts-search { width: auto; }
  .parks-artifacts-grid { grid-template-columns: 1fr; padding: 20px; }
  .parks-artifact-byline, .parks-artifact-viewer-type { display: none; }
  .parks-artifact-identity strong { max-width: 36vw; }
  .parks-artifact-share span:last-child { display: none; }
}
