/* ACCRA GRID — group page styles. Owned by the group developer. See DESIGN.md. */

/* ---------- Hero ---------- */
.grp-hero { display: grid; gap: var(--s-7); border-radius: var(--r-2xl); padding: var(--s-6) var(--s-5); margin-top: var(--s-2); }
@media (min-width: 1024px) { .grp-hero { padding: var(--s-8); } }
.grp-hero__copy { display: flex; flex-direction: column; gap: var(--s-5); }
.grp-hero__title { color: #fff; max-width: 12ch; }
.grp-hero__title em { font-style: normal; color: var(--lime); display: block; }
.grp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; max-width: 520px; }
.grp-stats div { padding: 12px; border-radius: var(--r-md); background: var(--volta-2); box-shadow: var(--sh-inset); }
.grp-stats dt { font-size: 11px; color: var(--volta-mute); }
.grp-stats dd { margin: 4px 0 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.grp-stats div:last-child dd { color: var(--lime); }
.grp-hero .ag-btn--lg { flex: 1 1 auto; }
@media (min-width: 640px) { .grp-hero .ag-btn--lg { flex: 0 0 auto; } }

.grp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.grp-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--volta-2); box-shadow: var(--sh-inset); }
.grp-step__art { grid-row: span 3; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--volta); }
.grp-step__art svg { width: 52px; height: 52px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.grp-step__art .s { stroke: var(--volta-mute); stroke-width: 2.5; }
.grp-step__art .l { stroke: var(--lime); stroke-width: 3; }
.grp-step__art .r { stroke: var(--lime); stroke-width: 5; }
.grp-step__art .f { fill: var(--lime); }
.grp-step__art .f2 { fill: var(--volta-3); }
.grp-step__art .i { stroke: var(--volta); stroke-width: 2.6; }
.grp-step__n { font-size: 11px; font-weight: 700; color: var(--lime); }
.grp-step b { font: 700 17px/1.15 var(--font-display); color: #fff; }
.grp-step > span:last-child { font-size: 13px; color: var(--volta-mute); line-height: 1.4; }
.grp-step__route { height: 18px; padding-left: 38px; }
.grp-step__route::after { display: none; }
.grp-step__route::before { flex: 0 0 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--volta-3) 0 4px, transparent 4px 8px); }
.grp-step__route i { display: none; }
@media (min-width: 1024px) {
  .grp-steps { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; }
  .grp-step { grid-template-columns: 1fr; grid-template-rows: auto; align-content: start; gap: 6px; padding: 16px; }
  .grp-step__art { grid-row: auto; margin-bottom: 8px; }
  .grp-step__route { height: auto; padding: 0; align-self: center; }
  .grp-step__route::before { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--volta-3) 0 6px, transparent 6px 11px); }
  .grp-step__route::after { display: block; background: repeating-linear-gradient(90deg, var(--volta-3) 0 6px, transparent 6px 11px); }
  .grp-step__route i { display: block; }
}
/* Hero art: one big ring of all seats, with host faces orbiting */
.grp-hero__art { display: none; }
@media (min-width: 1024px) {
  .grp-hero { grid-template-columns: minmax(0, 1fr) 300px; }
  .grp-steps { grid-column: 1 / -1; }
  .grp-hero__art { position: relative; display: grid; place-items: center; align-self: center; width: 300px; height: 300px; }
  .grp-hero__art .ag-ring__label { font-size: 40px !important; color: #fff; }
  .grp-hero__art .ag-ring__label small { font-family: var(--font-ui); font-size: 12px; margin-top: 8px; color: var(--volta-mute); }
  .grp-orbit { position: absolute; --av-ring: var(--volta); box-shadow: 0 0 0 3px var(--volta), var(--sh-2); }
  .grp-orbit--0 { top: 6px; left: 50%; margin-left: -22px; }
  .grp-orbit--1 { top: 62px; right: 2px; }
  .grp-orbit--2 { bottom: 62px; right: 2px; }
  .grp-orbit--3 { bottom: 6px; left: 50%; margin-left: -22px; }
  .grp-orbit--4 { bottom: 62px; left: 2px; }
  .grp-orbit--5 { top: 62px; left: 2px; }
  .grp-hero__tag { position: absolute; right: -4px; bottom: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: #1FAF5A; color: #fff; font-size: 11px; font-weight: 700; box-shadow: var(--sh-2); transform: rotate(-4deg); }
  .grp-hero__tag svg { width: 14px; height: 14px; }
}

/* ---------- Spotlight ---------- */
.grp-live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 639px) { .grp-live-pill .ag-num { display: none; } }
.grp-pick { margin-bottom: var(--gap); }
.grp-pick__chip { padding-left: 5px; }
.grp-pick__chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.grp-feat__media { min-height: 380px; justify-content: space-between; }
@media (min-width: 1024px) { .grp-feat__media { min-height: 520px; } }
.grp-feat__media::before { background: linear-gradient(180deg, rgba(11, 15, 12, .25) 0%, rgba(11, 15, 12, 0) 30%, rgba(11, 15, 12, .7) 100%); }
.grp-feat__badges { display: flex; gap: 6px; }
.grp-feat__glass {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-lg);
  background: rgba(11, 15, 12, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.grp-feat__glass .ag-ring__track { stroke: rgba(255, 255, 255, .16); }
.grp-feat__glass .ag-ring__label, .grp-feat__glass .ag-ring__label small { color: #fff; }
.grp-feat__glass > div { display: grid; gap: 8px; min-width: 0; }
.grp-feat__glass .ag-eyebrow { color: #B9C4BC; }
.grp-feat__glass .ag-timer__seg { background: rgba(255, 255, 255, .12); color: var(--lime); }
.grp-feat__glass p { font-size: 13px; color: #E7ECE8; }
.grp-feat__glass p b { color: var(--coral); font-size: 15px; }

.grp-feat__info { gap: var(--s-4); }
.grp-feat__info .ag-tile__head { align-items: flex-start; flex-wrap: wrap; }
.grp-feat__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.grp-feat__prod { font-size: 13px; }
.grp-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 6px; }
.grp-seat { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.grp-seat .ag-avatar { margin-bottom: 4px; --av-ring: transparent; }
.grp-seat b { font-size: 12px; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-seat small { font-size: 10.5px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-seat.is-you .ag-avatar { box-shadow: 0 0 0 3px var(--lime), 0 0 0 4.5px var(--ink); }
.grp-seat--open b { color: var(--ink-4); font-weight: 500; }

.grp-compare { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--paper); }
.grp-compare__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.grp-compare__bar { position: relative; height: 26px; border-radius: 8px; background: var(--paper-3); overflow: hidden; }
.grp-compare__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink-4); transform-origin: left; animation: grp-grow var(--t-slow) var(--ease-out) both; }
.is-group .grp-compare__bar i { background: var(--lime); }
.grp-compare__bar em { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font-num); font-style: normal; color: var(--volta); }
.is-group { color: var(--ink); }
@keyframes grp-grow { from { transform: scaleX(0); } }
.grp-feat__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-feat__cta .ag-btn { flex: 1 1 200px; }
.grp-feat__info > .ag-meta { display: flex; gap: 6px; align-items: flex-start; }
.grp-feat__info > .ag-meta svg { width: 15px; height: 15px; flex: none; color: var(--volta); margin-top: 1px; }

.grp-feed { gap: var(--s-3); min-height: 260px; }
.grp-feed__dot { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font-num); color: #96A098; text-transform: uppercase; letter-spacing: .06em; }
.grp-feed__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: ag-blink 1.4s steps(2) infinite; }
.grp-feed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; overflow: hidden; }
.grp-feed__item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: #C9D1CC; }
.grp-feed__item:last-child { border-bottom: 0; }
.grp-feed__item b { color: #fff; font-weight: 650; }
.grp-feed__item time { font-size: 10.5px; color: #7D877F; }
.grp-feed__ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--lime); }
.grp-feed__ico svg { width: 15px; height: 15px; }
.grp-feed__item.is-new { animation: grp-in var(--t-slow) var(--ease-spring) both; }
.grp-feed__item.is-new time { color: var(--lime); }
@keyframes grp-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Active squads ---------- */
.grp-filters { margin-bottom: var(--gap); }
.grp-list .ag-empty { grid-column: 1 / -1; }
.grp-spot { color: var(--ink-3); }
.grp-spot:hover { color: var(--ink); }
.grp-feat__info .ag-seller-pill__logo { display: grid; }

/* ---------- Builder ---------- */
.grp-build__form { gap: var(--s-5); }
.grp-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.grp-fs legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font: 700 16px/1.2 var(--font-display); color: var(--ink); }
.grp-fs legend .ag-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--lime); font-size: 12px; }
.grp-fs--row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grp-fs--row legend { flex-basis: 100%; }
.grp-fs + .grp-fs { padding-top: var(--s-5); border-top: 1px dashed var(--line-2); }
.grp-build__opts { display: grid; gap: 6px; }
.grp-build__opt { min-height: 60px; padding: 6px 12px 6px 6px; }
.grp-build__opt img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.grp-build__opt-txt { display: grid; gap: 2px; min-width: 0; }
.grp-build__opt-txt b { font-size: 13.5px; color: var(--ink); }
.grp-build__none { padding: 16px; border-radius: var(--r-md); background: var(--paper); color: var(--ink-3); text-align: center; }

.grp-build__preview { gap: var(--s-4); align-self: start; }
@media (min-width: 1024px) { .grp-build__preview { position: sticky; top: calc(var(--top-h) - var(--ticker-h, 32px) + 16px); } }
.grp-prev__top { display: flex; gap: 12px; align-items: center; }
.grp-prev__top img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; }
.grp-prev__top > div { display: grid; gap: 4px; min-width: 0; }
.grp-prev__title { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.grp-prev__mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grp-prev__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: var(--r-md); background: var(--volta-2); box-shadow: var(--sh-inset); }
.grp-prev__price .ag-eyebrow { display: block; margin-bottom: 6px; }
.grp-prev__solo { display: grid; justify-items: end; gap: 4px; }
.grp-prev__solo .ag-old { color: var(--volta-mute); font-size: 14px; }
.grp-prev__wa { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.grp-prev__wa > span { display: flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--font-num); text-transform: uppercase; letter-spacing: .06em; color: var(--success); margin-bottom: 6px; }
.grp-prev__wa svg { width: 14px; height: 14px; }
.grp-prev__wa u { color: var(--info); text-decoration-thickness: 1px; }

/* ---------- Tracking ---------- */
.grp-orders { margin-bottom: var(--gap); }
.grp-order-chip .ag-num { font-size: 11px; color: var(--ink-3); }
.grp-order-chip[aria-selected="true"] .ag-num { color: var(--volta-mute); }
.grp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.grp-dot--volta { background: var(--success); }
.grp-dot--lime { background: var(--lime-2); box-shadow: 0 0 0 2px rgba(196, 231, 58, .35); }
.grp-dot--coral { background: var(--coral); }

.grp-map { display: flex; flex-direction: column; }
.grp-map .ag-map { border-radius: 0; flex: none; aspect-ratio: 16 / 10; }
.grp-map__bar { flex: 1; display: grid; align-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); color: #fff; }
.grp-map__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grp-map__head > div:first-child { display: grid; gap: 3px; min-width: 0; }
.grp-map__head b { font: 700 18px/1.2 var(--font-display); }
.grp-map__prog { display: flex; align-items: center; gap: 8px; flex: 1 1 140px; max-width: 240px; }
.grp-map__prog .ag-num { font-size: 13px; font-weight: 700; color: var(--lime); }
.grp-map__prog .ag-progress { flex: 1; }
.grp-map__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.grp-map__facts div { padding: 10px 12px; border-radius: var(--r-md); background: var(--volta-2); box-shadow: var(--sh-inset); min-width: 0; }
.grp-map__facts dt { font-size: 11px; color: var(--volta-mute); }
.grp-map__facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grp-rider { gap: var(--s-3); }
.grp-rider__who { display: flex; align-items: center; gap: 12px; }
.grp-rider__who > div { display: grid; gap: 4px; min-width: 0; }
.grp-rider__who b { font: 700 18px/1.15 var(--font-display); }
.grp-rider__who .ag-avatar--empty svg { width: 24px; height: 24px; }
.grp-rider__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.grp-rider__meta div { padding: 10px; border-radius: var(--r-md); background: var(--paper); min-width: 0; }
.grp-rider__meta dt { font-size: 11px; color: var(--ink-3); }
.grp-rider__meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-rider__cta { display: grid; gap: 8px; margin-top: auto; }

.grp-sum { gap: var(--s-3); }
.grp-sum .ag-split { flex-wrap: wrap; }
.grp-sum__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grp-sum__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.grp-sum__items a { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.grp-sum__items img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.grp-sum__items .ag-num { font-size: 12px; color: var(--ink-3); }
.grp-sum__tot { display: grid; gap: 6px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.grp-sum__tot div { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.grp-sum__tot dd { margin: 0; font-family: var(--font-num); font-weight: 700; color: var(--ink); }
.grp-sum > .ag-meta { display: flex; gap: 6px; align-items: center; }
.grp-sum > .ag-meta svg { width: 14px; height: 14px; color: var(--volta); flex: none; }
.grp-sum > .ag-btn { align-self: flex-start; }

.grp-tl__list { list-style: none; margin: 0; padding: 0; display: grid; }
.grp-tl__step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; }
.grp-tl__step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.grp-tl__step.is-done::before { background: var(--volta); }
.grp-tl__step.is-current::before { background: repeating-linear-gradient(180deg, var(--volta) 0 4px, transparent 4px 8px); }
.grp-tl__step:last-child::before { display: none; }
.grp-tl__dot { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-2); }
.grp-tl__dot svg { width: 14px; height: 14px; }
.grp-tl__step.is-done .grp-tl__dot { background: var(--volta); color: var(--lime); box-shadow: none; }
.grp-tl__step.is-current .grp-tl__dot { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 5px rgba(214, 244, 91, .35); }
.grp-tl__step b { font-size: 14px; font-weight: 650; line-height: 1.3; }
.grp-tl__step time { font-size: 11px; color: var(--ink-3); }
.grp-tl__step:not(.is-done) b { color: var(--ink-3); font-weight: 500; }
@media (min-width: 1024px) {
  .grp-tl__list { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
  .grp-tl__step { grid-template-columns: 1fr; row-gap: 6px; padding: 0 8px 0 0; }
  .grp-tl__dot { grid-row: auto; margin-bottom: 6px; }
  .grp-tl__step::before { left: 34px; right: 4px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .grp-tl__step.is-current::before { background: repeating-linear-gradient(90deg, var(--volta) 0 4px, transparent 4px 8px); }
}

/* ---------- Context column ---------- */
.grp-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.grp-mine button { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px; border-radius: var(--r-md); text-align: left; color: var(--ink); }
.grp-mine button:hover { background: var(--paper); }
.grp-mine button > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.grp-mine b { font-size: 13.5px; }
.grp-mine button > svg { width: 18px; height: 18px; color: var(--ink-3); }
