/* Supersede UI 2.2.3 · cards.css. Copy unchanged.
   Product cards (decisions 1-3). Movement comes from tilt.mjs via CSS variables.
   - data-tilt="navigation": navigation tiles and the sign-in card. 20px radius, texture,
     gentle tilt (3.5° max) with faint glow, hover shadow.
   - data-tilt="content": cards holding forms or tables. 12px radius, subtler tilt
     (1.75° max, edge travel capped), no shadow; pauses while controls are in use.
   Markup: .product-card[data-tilt] > .product-card-face > .product-card-texture +
   .product-card-glow + .product-card-content > .product-card-category, .product-card-art?,
   .product-card-copy (h1|h2 + p), .product-card-footer | .product-card-slot. */
.product-card {
  --card-accent:var(--brand-black);
  --tilt-x:0deg; --tilt-y:0deg; --glow-x:50%; --glow-y:50%; --glow-opacity:0;
  position:relative; width:100%; min-width:0; height:100%;
  border:1px solid var(--card-border); border-radius:20px; background:var(--card-bg); color:var(--text-primary);
  transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:transform 200ms ease-out, border-color 180ms, box-shadow 180ms;
}
:root[data-theme="dark"] .product-card { --card-accent:var(--brand-yellow); }
.product-card[data-tilt="navigation"] { min-height:370px; }
.product-card[data-tilt="content"] { border-radius:var(--card-radius); height:auto; }
.product-card-face { position:relative; height:100%; min-height:inherit; border-radius:inherit; }
.product-card-texture,.product-card-glow { position:absolute; inset:0; border-radius:inherit; pointer-events:none; }
.product-card-texture {
  bottom:auto; height:180px;
  background-image:linear-gradient(to right,#80808012 1px,transparent 1px),linear-gradient(to bottom,#80808012 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,#000 0%,#000 45%,transparent 100%);
}
.product-card-glow { opacity:var(--glow-opacity); background:radial-gradient(220px at var(--glow-x) var(--glow-y),var(--card-accent),transparent 75%); transition:opacity 200ms; }
.product-card-content { position:relative; z-index:1; display:flex; flex-direction:column; height:100%; min-height:inherit; padding:32px; }
.product-card[data-tilt="content"] .product-card-content { padding:var(--space-card); }
.product-card-category { display:flex; align-items:center; gap:8px; color:var(--text-secondary); font-size:var(--fs-sm); }
.product-card-category svg { flex:none; color:var(--card-accent); }
.product-card-art { display:flex; justify-content:flex-end; align-items:center; min-height:132px; color:var(--card-accent); }
.product-card[data-tilt="content"] .product-card-art { min-height:96px; margin:4px 0 12px; }
.product-card-art :is(img,svg) { width:112px; height:112px; object-fit:contain; }
.product-card-art svg { stroke-width:1.15; }
.product-card-copy { margin-top:auto; }
.product-card[data-tilt="content"] .product-card-copy { margin-top:12px; }
.product-card-copy :is(h1,h2) { margin:0; font-size:var(--fs-lg); line-height:1.25; font-weight:600; overflow-wrap:anywhere; }
.product-card-copy h1 { font-size:var(--fs-xl); line-height:var(--lh-heading); }
.product-card-copy p { margin:10px 0 0; color:var(--text-secondary); font-size:var(--fs-sm); line-height:1.5; }
.product-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding-top:16px; border-top:1px solid var(--card-border); font-size:var(--fs-sm); color:var(--card-accent); }
.product-card-footer svg { flex:none; }
.product-card-slot { display:grid; gap:20px; margin-top:16px; padding-top:16px; border-top:1px solid var(--card-border); }

/* Navigation grid: whole card is one link. */
.navigation-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; width:100%; padding:12px 0; }
.navigation-card-link { display:block; height:100%; border-radius:20px; color:inherit; text-decoration:none; }
.navigation-card-link:focus-visible { outline:3px solid var(--focus-color); outline-offset:5px; }
.navigation-card-link:is(:hover,:focus-visible) .product-card { border-color:var(--hover-border); box-shadow:0 18px 44px #0004; }

/* Sign-in: a lone navigation-style card holding the sign-in action. */
.login-card-host { max-width:500px; margin:60px auto; }
.login-card-host .product-card { box-shadow:0 18px 44px #0004; }

@media (min-width:701px) and (max-width:1100px) { .navigation-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .navigation-card-grid { grid-template-columns:minmax(0,1fr); gap:24px; } }
@media (prefers-reduced-motion:reduce) { .product-card { transform:none; transition:none; } .product-card-glow { display:none; } }
