/* ============================================================
   Turbo EA Extension Store — store-specific additions.
   Built ON TOP of the vendored marketing stylesheet
   (css/styles.css, copied verbatim from vincentmakes/turbo-ea-org).
   Only tokens from that file are used here — no new colors.
   ============================================================ */

/* Fixed nav offset (the marketing pages get this from .hero padding). */
.store-main {
  padding-top: 64px;
  min-height: calc(100vh - 260px);
}

.store-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--sp-10) var(--sp-7);
}

.store-header h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-2);
}

.store-header .lead {
  font-size: var(--fs-lead);
  color: var(--text-2);
}

/* Catalogue grid */
.store-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-4);
}

@media (min-width: 720px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.store-card {
  display: flex;
  flex-direction: column;
}

.store-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.store-card-head .icon-chip {
  margin-bottom: 0;
  flex-shrink: 0;
  overflow: hidden; /* contain the ligature text if the icon font hasn't loaded */
}

.store-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
}

.store-card-version {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.store-card-desc {
  flex: 1;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.store-card-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.store-card-price {
  flex: 1;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
}

.store-note {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: var(--sp-10);
  font-size: var(--fs-sm);
  color: var(--text-3);
  text-align: center;
}

.store-empty {
  text-align: center;
  color: var(--text-3);
  padding-block: var(--sp-8);
}

/* Success page */
.success-card {
  max-width: 760px;
  margin: 0 auto var(--sp-10);
}

.success-card h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-2);
}

.success-card h2:not(:first-child) {
  margin-top: var(--sp-4);
}

.dl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.license-pre {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: var(--sp-2);
}

details > summary {
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.btn .material-symbols-outlined {
  font-size: 20px;
}
