/* SpeedySpares parts ring in the hero (parts-ring.js), in place of the 3D car.
   Site tokens only, squared house style. */

/* hero: copy left, ring right */
.hero-band.has-ring .hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.hero-band.has-ring .hero-copy { position: relative; z-index: 2; }
@media (min-width: 53.1875rem) {
  .hero-band.has-ring .hero-layout { padding-block: calc(var(--header-height) + 3.5rem) 4rem; }
  .hero-band.has-ring .hero-copy h1 { font-size: clamp(3.4rem, 4.9vw, 6.4rem); }
  .hero-band.has-ring .hero-line > span { white-space: nowrap; }
}
.hero-ring { position: relative; z-index: 2; min-width: 0; }

.pr-stage { position: relative; outline: none; }
.pr-stage:focus-visible { outline: 2px solid var(--accent-light); outline-offset: .5rem; }
.pr-scene { position: relative; height: 25rem; perspective: 1800px; transform-style: preserve-3d; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.pr-stage.is-dragging .pr-scene { cursor: grabbing; }
.pr-card { --pr-w: 14rem; position: absolute; left: 50%; top: 50%; width: var(--pr-w); height: calc(var(--pr-w) * 1.26); padding: 0; border: var(--rule) solid var(--line); border-radius: 2px; background: var(--surface); color: #fff; overflow: hidden; cursor: pointer; text-decoration: none; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; transition: border-color .3s; }
.pr-card:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.pr-stage.is-dragging .pr-card { cursor: grabbing; }
.pr-card.is-active { border-color: var(--accent); }
.pr-card picture, .pr-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 11 13 / 55%) 0%, rgb(8 11 13 / 0%) 26%, rgb(8 11 13 / 0%) 50%, rgb(8 11 13 / 90%) 100%); pointer-events: none; }
.pr-card-top, .pr-card-bottom { position: absolute; left: 1rem; right: 1rem; z-index: 1; text-align: left; }
.pr-card-top { top: .9rem; display: flex; justify-content: space-between; gap: .75rem; font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pr-card-top span { text-align: right; opacity: .85; }
.pr-card-bottom { bottom: 1rem; display: grid; gap: .3rem; }
.pr-card-bottom strong { font-family: var(--display-font); font-size: 1.75rem; line-height: .95; text-transform: uppercase; }
.pr-card-bottom em { font-style: normal; font-size: .8125rem; opacity: .8; }

.pr-names { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.1rem; margin-top: .5rem; }
.pr-name { padding: .35rem 0; border: 0; border-bottom: .125rem solid transparent; background: none; color: var(--muted); font: inherit; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s; }
.pr-name:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.pr-name:hover { color: var(--text); }
.pr-name.is-active { color: var(--text); border-bottom-color: var(--accent); }
@media (pointer: coarse), (max-width: 850px) {
  .pr-name { min-height: 2.75rem; padding-inline: .25rem; }
}

/* compact "this part" bar under the ring */
.pr-panel { display: flex; align-items: center; gap: 1rem; max-width: 30rem; margin: 1rem auto 0; padding: .9rem .9rem .9rem 1.2rem; border: var(--rule) solid var(--line); border-radius: 2px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.pr-panel-main { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.pr-panel-kicker { display: flex; gap: .9rem; color: var(--accent-light); font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pr-panel-main strong { font-family: var(--display-font); font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; }
.pr-panel-main small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.pr-panel-main small b { color: var(--text); font-weight: 700; }
.pr-quote { display: inline-flex; align-items: center; gap: .75rem; flex: none; min-height: 3rem; padding: 0 1.1rem; border: 0; border-radius: 2px; background: var(--accent); color: var(--white, #fff); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.pr-quote:hover { background: var(--accent-hover); }
.pr-quote:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.pr-quote .icon { width: 1.05rem; height: 1.05rem; flex: none; }

/* tablet and phone: copy first, ring under it */
@media (max-width: 53.125rem) {
  .hero-band.has-ring .hero-layout { grid-template-columns: 1fr; align-items: start; padding-bottom: 7rem; }
  .hero-ring { margin-top: .5rem; }
}
@media (max-width: 560px) {
  .pr-scene { height: 20rem; }
  .pr-card { --pr-w: 11.5rem; }
  .pr-card-bottom strong { font-size: 1.35rem; }
  .pr-panel { flex-direction: column; align-items: stretch; }
  .pr-quote { justify-content: space-between; }
}
