/* 3D print files page (/3d-print-files/) — uses the theme tokens from style.css (:root). */
.pf { padding: calc(var(--header-h) + 6vw) var(--gutter) 8vw; background: var(--paper); color: var(--ink); }
.pf-hero { max-width: 980px; margin-bottom: 5vw; }
.pf-lead { max-width: 640px; margin-top: 1.4em; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.45; }
.pf-note { max-width: 640px; margin-top: .8em; font-size: 14px; opacity: .7; }

.pf-group { margin-top: 4vw; }
.pf-group__title { font-size: clamp(14px, 1vw, 16px); letter-spacing: .08em; text-transform: uppercase; padding-bottom: .8em; border-bottom: 1px solid var(--line); margin-bottom: 24px; }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pf-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.pf-card__stage { position: relative; aspect-ratio: 1 / 1; background: var(--paper); overflow: hidden; }
.pf-card__thumb { width: 100%; height: 100%; object-fit: contain; padding: 8%; display: block; mix-blend-mode: multiply; }
.pf-card__viewer { position: absolute; inset: 0; cursor: grab; }
.pf-card__viewer:active { cursor: grabbing; }
.pf-card__viewer > div { display: grid; place-items: center; height: 100%; font-size: 14px; opacity: .7; }
.pf-card__viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.pf-card__view { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.pf-card__status { position: absolute; left: 12px; right: 12px; top: 12px; margin: 0; padding: 8px 10px; font-size: 13px; background: var(--white); border-left: 3px solid var(--red); }

.pf-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.pf-card__title { font-size: 20px; line-height: 1.2; margin: 0; }
.pf-card__desc { margin: 0; font-size: 15px; line-height: 1.5; opacity: .85; }
.pf-card__meta { display: flex; gap: 24px; margin: 0; font-size: 13px; }
.pf-card__meta dt { opacity: .6; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.pf-card__meta dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }

.pf-btn { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .5em; padding: 11px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-size: 14px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.pf-btn:hover, .pf-btn:focus-visible { background: var(--red); border-color: var(--red); color: var(--white); }
.pf-btn--ghost { margin-top: 0; background: var(--white); color: var(--ink); }
.pf-card.is-3d .pf-card__view { background: var(--ink); color: var(--white); }

.pf-foot { margin-top: 6vw; padding-top: 2em; border-top: 1px solid var(--line); font-size: 15px; }
.pf-foot a { color: inherit; }

@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card__body { padding: 16px; }
}
