/* Store: login, account, checkout and buy button. Uses the site's --vp-* theme variables. */

button.btn,
button.btn-primary,
button.btn-secondary {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.resource-actions form {
  display: contents;
}

.store-alert {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--vp-c-brand-1);
  border-radius: 0.5rem;
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-text-1);
}

.store-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.store-form label {
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.store-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.5rem;
  background: var(--vp-c-bg-alt);
  color: var(--vp-c-text-1);
  font: inherit;
}

.store-form input:focus {
  outline: none;
  border-color: var(--vp-c-brand-1);
}

.store-error {
  color: #e5484d;
  font-size: 0.9rem;
}

.account-section h2 {
  margin: 0;
  color: var(--vp-c-text-1);
}

.account-section {
  margin-top: 1rem;
}

/* The form under a card's heading and explanation gets some room. */
.account-section .settings-form {
  margin-top: 1rem;
}

.license-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.license-card {
  padding: 1.25rem 1.5rem;
}

.license-card.is-revoked {
  opacity: 0.6;
}

.license-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.license-top h2 {
  margin: 0;
  font-size: 1.125rem;
}

.license-top h2 a {
  color: var(--vp-c-text-1);
  text-decoration: none;
}

.license-card details {
  margin-top: 1rem;
}

.license-card summary {
  cursor: pointer;
  color: var(--vp-c-brand-1);
  font-weight: 600;
}

.version-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.version-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid var(--vp-c-border);
  color: var(--vp-c-text-2);
}

.version-list a {
  color: var(--vp-c-brand-1);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

.store-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.store-table th,
.store-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--vp-c-border);
  text-align: left;
  color: var(--vp-c-text-1);
  white-space: nowrap;
}

.store-table th {
  color: var(--vp-c-text-2);
  font-weight: 600;
}

.store-table a {
  color: var(--vp-c-brand-1);
}

.status-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--vp-c-bg-mute);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.auth-alert {
  margin: 0 0 1.25rem;
  text-align: left;
}

.auth-form {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.5rem;
  background: var(--vp-c-bg);
  color: var(--vp-c-text-1);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
  color: var(--vp-c-text-3);
}

.auth-input:focus {
  outline: none;
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 0 0 3px var(--vp-c-brand-soft);
}

/* Login and sign-up in the full page width: a panel with the fields side by side, a card next to it. */

.auth-panel {
  padding: 1.75rem;
}

.auth-panel .auth-alert {
  margin-top: 0;
}

.auth-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.auth-field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.auth-actions button {
  font: inherit;
  cursor: pointer;
}

.auth-or {
  font-size: 0.875rem;
  color: var(--vp-c-text-3);
}

.auth-panel .auth-footnote {
  margin-top: 1.25rem;
  text-align: left;
}

/* Log in / sign up with Discord */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--vp-c-text-3);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--vp-c-border);
}

/* Two exactly equal columns, so neither option looks like the lesser one (flex sized them by their content). */
.auth-alt-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.auth-alt-actions > * {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-discord:hover,
.btn-discord:focus-visible {
  background: #4752c4;
  color: #fff;
}

@media (max-width: 640px) {
  .auth-panel {
    padding: 1.25rem;
  }

  .auth-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-actions > button {
    flex: 1 1 100%;
  }

  .auth-or {
    width: 100%;
    text-align: center;
  }

  .auth-alt-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cloudflare Turnstile widget in forms */

.turnstile-box {
  min-height: 65px;
  margin-top: 0.5rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
  cursor: pointer;
}

/* Checkboxes big enough to tap, in the brand colour. */

.auth-remember input[type="checkbox"],
#accept-terms {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  accent-color: var(--vp-c-brand-1);
  cursor: pointer;
}

.settings-heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--vp-c-text-1);
}

.discord-account {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0;
}

.discord-account img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vp-c-bg);
}

.discord-account strong {
  display: block;
  color: var(--vp-c-text-1);
}

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.discord-actions form {
  margin: 0;
}

.account-panel .discord-actions .btn-primary {
  margin-top: 0;
}

.discord-actions button {
  font: inherit;
  cursor: pointer;
}

.auth-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vp-c-text-3);
}

.auth-footnote a {
  color: var(--vp-c-text-2);
}

/* Customer dashboard */

.account-layout {
  display: grid;
  /* Wide enough for a full name and e-mail address on one line each. */
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
}

.account-user {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0.25rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--vp-c-border);
}

.account-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
  font-weight: 700;
}

.account-user-text {
  display: grid;
  min-width: 0;
}

.account-user-text strong {
  color: var(--vp-c-text-1);
}

.account-user-text span {
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--vp-c-text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav {
  display: grid;
  gap: 0.25rem;
}

.account-nav-link {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--vp-c-text-2);
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.account-nav-link:hover {
  background: var(--vp-c-bg-mute);
  color: var(--vp-c-text-1);
}

.account-nav-link.active {
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
}

.account-logout {
  margin-top: 0.5rem;
  border-top: 1px solid var(--vp-c-border);
  border-radius: 0;
  padding-top: 0.875rem;
}

.account-muted {
  margin: 0.25rem 0 0;
  color: var(--vp-c-text-2);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}

a.account-stat:hover {
  border-color: var(--vp-c-brand-1);
}

.account-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--vp-c-text-1);
}

.account-stat-label {
  color: var(--vp-c-text-2);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.account-panel {
  padding: 1.25rem 1.5rem;
}

.account-panel .btn-primary {
  margin-top: 1rem;
}

.account-panel-header {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.account-panel-header h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--vp-c-text-1);
}

.account-panel-header a,
.help-list a,
.account-muted a {
  color: var(--vp-c-brand-1);
}

.update-list,
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.update-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-top: 1px solid var(--vp-c-border);
}

.update-list li div {
  display: grid;
  min-width: 0;
}

.update-list strong {
  color: var(--vp-c-text-1);
}

.help-list li {
  display: grid;
  padding: 0.625rem 0;
  border-top: 1px solid var(--vp-c-border);
}

.help-list li .account-muted {
  margin: 0;
  font-size: 0.875rem;
}

.settings-form {
  max-width: 28rem;
  margin-top: 0;
}

.settings-form input:disabled {
  opacity: 0.7;
}

/* Buttons as wide as their text, not the whole form. */

.settings-form .btn-primary {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .account-layout,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-sidebar {
    position: static;
  }

  .account-nav {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }
}

@media (max-width: 640px) {
  .license-card {
    padding: 1rem;
  }

  /* The three figures side by side on a phone, instead of two and one on their own. */
  .account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
  }

  .account-stat {
    padding: 0.875rem 0.75rem;
  }

  .account-stat-value {
    font-size: 1.5rem;
  }

  .account-stat-label {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

/* ---- Shop pages: resource, blog post, docs, cart, checkout and account layouts (was shop.css). ---- */

/* Resource page and cart, laid out like a marketplace: content panel on the left, cards on the right. */

.rp,
.cart-layout {
  --shop-radius: 0.625rem;
}

/* Shared building blocks */

.rp-panel {
  border: 1px solid var(--vp-c-border);
  border-top: 4px solid var(--vp-c-brand-1);
  border-radius: var(--shop-radius);
  background: var(--vp-c-bg-soft);
  overflow: hidden;
}

.rp-card {
  padding: 1.25rem;
  border: 1px solid var(--vp-c-border);
  border-radius: var(--shop-radius);
  background: var(--vp-c-bg-soft);
}

.rp-card + .rp-card {
  margin-top: 1rem;
}

.rp-card-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--vp-c-brand-1);
}

.rp-note {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--vp-c-text-2);
}

.rp-note:last-child {
  margin-bottom: 0;
}

.rp-center {
  text-align: center;
}

.rp-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

button.rp-btn {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.rp-version {
  font-weight: 400;
  color: var(--vp-c-text-3);
}

.rp-stars {
  display: inline-flex;
  gap: 0.125rem;
}

.rp-stars svg {
  fill: var(--vp-c-bg-mute);
}

.rp-stars svg.on {
  fill: var(--vp-c-brand-1);
}

/* Reviews tab on the resource page: the average, the review form for customers, then the reviews. */

.rp-reviews-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--vp-c-border);
}

.rp-reviews-average {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--vp-c-text-1);
}

.rp-reviews-summary > div {
  display: grid;
  gap: 0.25rem;
}

.rp-reviews-count {
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
}

.rp-review-form {
  display: grid;
  gap: 0.625rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.75rem;
  background: var(--vp-c-bg-alt);
}

.rp-review-form-title {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--vp-c-text-1);
}

.rp-review-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.rp-review-form .btn-primary {
  justify-self: start;
}

.rp-star-input {
  margin: 0;
  padding: 0;
  border: 0;
}

.rp-star-input legend {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.rp-star-options {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.125rem;
}

.rp-star-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rp-star-options label {
  display: inline-flex;
  padding: 0.125rem;
  cursor: pointer;
}

.rp-star-options svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--vp-c-bg-mute);
  transition: fill 0.15s;
}

.rp-star-options label:hover svg,
.rp-star-options label:hover ~ label svg,
.rp-star-options input:checked ~ label svg {
  fill: var(--vp-c-brand-1);
}

.rp-star-options input:focus-visible + label {
  border-radius: 0.25rem;
  outline: 2px solid var(--vp-c-brand-1);
  outline-offset: 2px;
}

.rp-review {
  padding: 1.25rem 0;
  border-top: 1px solid var(--vp-c-border);
}

.rp-review-form + .rp-review,
.rp-reviews-summary + .rp-review {
  border-top: 0;
  padding-top: 0;
}

.rp-review-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.625rem;
}

/* The initial shows when there's no avatar, or when it doesn't load. */
.rp-review-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
  font-weight: 700;
}

.rp-review-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-review-meta {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.rp-review-meta strong {
  color: var(--vp-c-text-1);
  overflow-wrap: anywhere;
}

.rp-review-meta span {
  font-size: 0.8125rem;
  color: var(--vp-c-text-3);
}

.rp-review-text {
  margin: 0;
  line-height: 1.7;
  color: var(--vp-c-text-2);
  overflow-wrap: anywhere;
}

.rp-review-response {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--vp-c-brand-1);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--vp-c-bg-alt);
}

.rp-review-response strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--vp-c-text-1);
}

.rp-review-response p {
  margin: 0.25rem 0 0;
  color: var(--vp-c-text-2);
}

/* My resources: download and review side by side. */
.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.license-actions .btn-primary,
.license-actions .btn-secondary {
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .license-actions {
    width: 100%;
  }

  .license-actions .btn-primary,
  .license-actions .btn-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* The rating under a resource's title, opening the Reviews tab. */
/* "Requires Paymenter 1.x" under the resource title and on its documentation. */
.rp-requirements {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--vp-c-text-1);
}

.rp-requirements span {
  margin-right: 0.25rem;
  color: var(--vp-c-text-2);
}

.rp-card .rp-requirements {
  margin: -0.5rem 0 1rem;
}

.rp-hero-rating {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
  text-decoration: none;
}

.rp-hero-rating:hover span:last-child {
  color: var(--vp-c-text-1);
  text-decoration: underline;
}

/* Blog posts: a resource mentioned in the article halfway through, and the resources from the post at the end. */
/* Account → Store credit: the balance next to the heading, the history below. */
.credit-empty {
  color: var(--vp-c-text-2);
}

.credit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.25rem;
}

.credit-head h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--vp-c-text-1);
}

.credit-balance {
  display: grid;
  justify-items: end;
  gap: 0.125rem;
}

.credit-balance strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--vp-c-text-1);
}

.credit-balance span {
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
}

.credit-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vp-c-border);
}

.credit-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.875rem 0;
}

.credit-list li + li {
  border-top: 1px solid var(--vp-c-border);
}

/* The date right after the description, smaller. */
.credit-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.625rem;
  align-items: baseline;
  min-width: 0;
}

.credit-text strong {
  color: var(--vp-c-text-1);
  font-weight: 600;
}

.credit-text time {
  font-size: 0.8125rem;
  color: var(--vp-c-text-3);
}

.credit-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.credit-amount.is-plus {
  color: #16a34a;
}

.dark .credit-amount.is-plus {
  color: #4ade80;
}

.credit-amount.is-minus {
  color: var(--vp-c-text-2);
}

@media (max-width: 640px) {
  .credit-balance {
    justify-items: start;
  }
}

/* Only on phones, under download buttons. */
.download-mobile-note {
  display: none;
}

@media (max-width: 640px) {
  .download-mobile-note {
    display: block;
    flex-basis: 100%;
    font-size: 0.8125rem;
    color: var(--vp-c-text-2);
  }
}

/* A short answer at the top of a post, for readers who came from search with one question. */
.post-answer {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--vp-c-border);
  border-left: 4px solid var(--vp-c-brand-1);
  border-radius: 0.75rem;
  background: var(--vp-c-bg-alt);
}

.article-content .post-answer p {
  margin: 0;
}

.post-answer-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vp-c-brand-1);
}

@media (max-width: 640px) {
  .post-hero-visual {
    display: none;
  }
}

.post-callout {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.75rem;
  background: var(--vp-c-bg-alt);
}

.article-content .post-callout img {
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 0;
  border-radius: 0.5rem;
}

.post-callout-text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.post-callout-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vp-c-brand-1);
}

.dark .post-callout-label {
  color: var(--vp-c-brand-2);
}

.post-callout-text strong {
  line-height: 1.35;
  color: var(--vp-c-text-1);
}

.post-callout-tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--vp-c-text-2);
}

.article-content .post-callout a.btn-primary {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.post-resources {
  margin-top: 2.5rem;
}

.post-resources-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--vp-c-text-1);
}

.post-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}

.post-resource {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding: 0.75rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.75rem;
  background: var(--vp-c-bg-alt);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-resource:hover {
  border-color: var(--vp-c-brand-1);
}

.post-resource img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

.post-resource strong {
  line-height: 1.35;
  color: var(--vp-c-text-1);
}

.post-resource span {
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
}

@media (max-width: 640px) {
  .post-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-content .post-callout a.btn-primary {
    justify-content: center;
  }
}

/* Resource page */

/* Same top spacing as the page heroes (blog, resources, docs): 5rem, 2rem on phones. */

.rp {
  padding-block: 5rem 4rem;
}

/* On resource pages and blog posts the panels, cards and figures use the page background (white), not the grey. */

.rp .rp-panel,
.rp .rp-card,
.rp .rp-stat {
  background: var(--vp-c-bg);
}

/* In dark mode they keep their own shade (#2d2d30), so they stand out from the page. */

.dark .rp .rp-panel,
.dark .rp .rp-card,
.dark .rp .rp-stat {
  background: var(--vp-c-bg-soft);
}

/* No blue bar on top of the panel there either; a plain border all round. */

.rp .rp-panel {
  border-top: 1px solid var(--vp-c-border);
}

@media (max-width: 768px) {
  .rp {
    padding-top: 2rem;
  }
}

.rp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--vp-c-text-3);
}

/* Main text colour: white in dark mode, dark in light mode. */

.rp-breadcrumb a {
  /* A taller hit area for fingers, without moving the text. */
  display: inline-block;
  padding-block: 0.375rem;
  margin-block: -0.375rem;
  color: var(--vp-c-text-1);
  text-decoration: none;
}

.rp-breadcrumb a:hover {
  text-decoration: underline;
}

/* Trail items that aren't links (blog category, current page) match the link colour. */

.rp-breadcrumb span:not([aria-hidden]) {
  color: var(--vp-c-text-1);
}

/* Updates tab: a title line, then a banner in the product's colours with the logo, version and headline. */

.rp-update + .rp-update {
  margin-top: 2rem;
}

.rp-update-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--vp-c-border);
}

.rp-update-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--vp-c-text-1);
}

.rp-update-head time {
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
  white-space: nowrap;
}

.rp-update-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 11rem;
  aspect-ratio: 4 / 1;
  max-width: 100%;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #4f8a2f, #1d3f12 55%, #3f6f28);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.14);
  color: #fff;
  isolation: isolate;
}

/* The thumbnail, blurred and enlarged into a soft background. */

.rp-update-bg {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-position: center top;
  background-size: cover;
  filter: blur(28px) saturate(1.15);
}

/* A little darker towards the bottom, so the headline stays readable on light thumbnails. */

.rp-update-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.rp-update-logo {
  grid-column: 1;
  grid-row: 1;
  width: clamp(2.25rem, 5vw, 3.5rem);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.rp-update-version {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.rp-update-title {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: clamp(1.25rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rp-update-body {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .rp-update-banner {
    aspect-ratio: auto;
    min-height: 9rem;
  }
}

/* Blog posts */

.rp-sidebar-static {
  position: static;
}

.rp-article {
  max-width: none;
  margin: 0;
  padding: 0;
}

.rp-related {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-related a {
  color: var(--vp-c-text-1);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.rp-related a:hover {
  color: var(--vp-c-brand-1);
}

.rp-sidebar-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--vp-c-brand-1);
  text-decoration: none;
}

.rp-sidebar-more:hover {
  text-decoration: underline;
}

.rp-related span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--vp-c-text-3);
}

.rp-header {
  margin-bottom: 1.5rem;
}

.rp-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--vp-c-text-1);
}

.rp-tagline {
  margin: 0.5rem 0 0;
  color: var(--vp-c-text-2);
}

.rp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: start;
}

.rp-tabs,
.rp-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.rp-tabs {
  padding: 0 1rem;
  border-bottom: 1px solid var(--vp-c-border);
}

.rp-tab {
  padding: 0.875rem 0.875rem 0.75rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--vp-c-text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.rp-tab:hover {
  color: var(--vp-c-text-1);
}

.rp-tab.active {
  border-bottom-color: var(--vp-c-brand-1);
  color: var(--vp-c-brand-1);
}

.rp-tab-panel {
  padding: 1.5rem;
}

.rp-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.rp-actions {
  display: grid;
  gap: 0.625rem;
}

.rp-actions form {
  margin: 0;
}

/* Label on its own line, the marketplace links side by side underneath. */

.rp-marketplaces {
  display: grid;
  gap: 0.375rem;
  justify-items: center;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--vp-c-text-3);
}

.rp-marketplaces-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
}

.rp-marketplaces a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
}

.rp-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.625rem;
}

.rp-stat {
  display: grid;
  grid-column: span 2;
  gap: 0.125rem;
  justify-items: center;
  padding: 0.875rem 0.5rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.5rem;
  background: var(--vp-c-bg-soft);
  text-align: center;
}

.rp-stat-wide {
  grid-column: span 3;
}

.rp-stat-full {
  grid-column: 1 / -1;
}

/* The separate price tile is only used on mobile (see the 900px breakpoint). */

.rp-price-mobile {
  display: none;
}

.rp-stat strong {
  font-size: 1rem;
  color: var(--vp-c-text-1);
  white-space: nowrap;
}

.rp-stat span {
  font-size: 0.8125rem;
  color: var(--vp-c-text-2);
}

/* Cart: same header, panels and cards as the resource page (it uses .rp too), its own two-column layout. */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.cart-empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.5rem;
}

.cart-empty p {
  margin: 0;
  color: var(--vp-c-text-2);
}

.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--vp-c-border);
}

.cart-item-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 0.375rem;
}

.cart-item-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.cart-item-heading {
  font-size: 1.25rem;
}

.cart-item-title {
  font-weight: 600;
  color: var(--vp-c-text-1);
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--vp-c-brand-1);
}

.cart-item-kind {
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
}

.cart-item-tagline {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
}

.cart-item-side {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.cart-item-side form {
  margin: 0;
}

.cart-item-price {
  font-size: 1.25rem;
  color: var(--vp-c-text-1);
  white-space: nowrap;
}

.cart-item-remove {
  padding: 0.125rem 0.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--vp-c-text-2);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--vp-c-text-1);
  text-decoration: underline;
}

.cart-subheading {
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

/* The cards themselves are the .product-card from main.css, as on the Resources page. */

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cart-sidebar {
  position: sticky;
  top: 5.5rem;
}

/* Card headings in the cart are black (text colour), not blue. */

.cart-sidebar .rp-card-title {
  color: var(--vp-c-text-1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  color: var(--vp-c-text-1);
}

.cart-summary-row span {
  font-weight: 600;
}

.cart-subtotal {
  font-weight: 500;
}

.cart-checkout-form {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--vp-c-border);
}

/* Coupons and discounts in the order summary */

.cart-coupon-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

/* The captcha takes its own row under the code field. */

.cart-coupon-form .turnstile-box,
.cart-coupon-form .store-error {
  flex-basis: 100%;
  margin-top: 0;
}

.cart-coupon-form input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--vp-c-border);
  border-radius: 0.5rem;
  background: var(--vp-c-bg);
  color: var(--vp-c-text-1);
  font: inherit;
  text-transform: uppercase;
}

.cart-coupon-form input::placeholder {
  text-transform: none;
  color: var(--vp-c-text-3);
}

.cart-coupon-form input:focus {
  outline: none;
  border-color: var(--vp-c-brand-1);
}

.cart-coupon-form .btn-secondary {
  padding-inline: 1rem;
}

.cart-coupon-error {
  margin: -0.5rem 0 1rem;
}

.cart-coupon-row span:first-child {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.cart-coupon-code {
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.cart-coupon-remove {
  display: inline;
  margin: 0;
}

.cart-coupon-remove button {
  padding: 0;
  border: none;
  background: none;
  color: var(--vp-c-text-3);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-discount {
  color: #1f9d55;
  font-weight: 600;
}

.cart-total-row {
  padding-top: 0.75rem;
  border-top: 1px solid var(--vp-c-border);
}

.cart-total {
  font-size: 1.25rem;
  color: var(--vp-c-text-1);
}

.cart-savings {
  color: #1f9d55;
}

.cart-item-sale {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e5484d;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Checkout page: our form with Stripe's Elements in the panel, the order in the sidebar. */

.checkout-panel {
  min-height: 24rem;
  padding: 1.75rem;
}

.checkout-loading {
  margin: 0;
  color: var(--vp-c-text-2);
}

.checkout-form {
  display: grid;
  gap: 1.75rem;
}

.checkout-step {
  display: grid;
  gap: 0.75rem;
}

.checkout-step + .checkout-step {
  padding-top: 1.75rem;
  border-top: 1px solid var(--vp-c-border);
}

.checkout-step-title {
  margin: 0;
  font-size: 1.125rem;
  color: var(--vp-c-text-1);
}

.checkout-step-note {
  margin: -0.5rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--vp-c-text-3);
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--vp-c-border);
}

.checkout-error {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e5484d;
  border-radius: 0.5rem;
  background: rgba(229, 72, 77, 0.08);
  color: var(--vp-c-text-1);
}

.checkout-pay {
  width: 100%;
  justify-content: center;
  padding-block: 1rem;
  font-size: 1.0625rem;
}

.checkout-pay:disabled {
  opacity: 0.6;
  cursor: progress;
}

.checkout-legal {
  margin: -0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vp-c-text-3);
}

.checkout-legal a {
  color: var(--vp-c-text-2);
}

@media (max-width: 640px) {
  .checkout-panel {
    padding: 1.25rem;
  }
}

.checkout-items {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  list-style: none;
  border-bottom: 1px solid var(--vp-c-border);
}

.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
}

.checkout-items strong {
  color: var(--vp-c-text-1);
  white-space: nowrap;
}

.checkout-back {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--vp-c-text-2);
  text-decoration: none;
}

.checkout-back:hover {
  color: var(--vp-c-text-1);
}

@media (max-width: 1100px) {
  .rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rp-layout,
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rp-sidebar,
  .cart-sidebar {
    position: static;
  }

  /* Cart on narrow screens: the items, then the order summary with the checkout button, then the recommendations.
     Recommendations first pushed checkout far below the screen. */

  .cart-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .cart-main {
    display: contents;
  }

  .cart-main > .rp-panel {
    order: 1;
  }

  .cart-sidebar {
    order: 2;
  }

  .cart-main > .cart-subheading,
  .cart-main > .rec-grid {
    order: 3;
  }

  /* Resource page on narrow screens: buy card and price first, then the tabs and description,
     then the remaining figures. The sidebar's pieces become items of the layout so they can be reordered. */

  .rp-layout-resource {
    display: flex;
    flex-direction: column;
    /* The desktop grid's align-items:start would shrink every block to its content here. */
    align-items: stretch;
  }

  .rp-layout-resource .rp-sidebar {
    display: contents;
  }

  .rp-layout-resource .rp-actions {
    order: 1;
  }

  .rp-layout-resource .rp-price-mobile {
    display: grid;
    order: 2;
  }

  .rp-layout-resource .rp-panel {
    order: 3;
  }

  .rp-layout-resource .rp-stats-main {
    order: 4;
  }

  .rp-stat-price-desktop {
    display: none;
  }

  /* Without the price, Purchases and Downloads share a row. */

  .rp-stats-main .rp-stat:not(.rp-stat-wide):not(.rp-stat-full) {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  /* A compact row per item: small image and title, then price, sale and Remove on one line. */

  .cart-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
  }

  .cart-item-heading {
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  .cart-item-tagline {
    display: none;
  }

  .cart-item-side {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
  }

  .cart-item-side form {
    margin-left: auto;
  }

  .rec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rp-tab-panel {
    padding: 1.25rem 1rem;
  }
}

/* Resource page laid out and coloured like the homepage: a hero (white) with the title, buy button and
   thumbnail, then the details on a grey band with the same cards as the homepage's products section.
   Scoped to .rp-showcase (resource pages and blog posts), so docs and the cart keep their own look. */

.rp.rp-showcase {
  padding-block: 0;
}

.rp-hero {
  padding: 5rem 0 4rem;
  background: var(--vp-c-bg);
}

.rp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

/* Without an image (a post without a cover) the text gets the full width. */

.rp-hero-grid:not(:has(.rp-hero-visual)) {
  grid-template-columns: minmax(0, 1fr);
}

.rp-hero-grid:not(:has(.rp-hero-visual)) .rp-hero-text {
  max-width: 900px;
}

.rp-showcase .rp-header {
  margin-bottom: 2rem;
}

.rp-showcase .rp-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rp-showcase .rp-version {
  font-size: 0.5em;
  vertical-align: middle;
}

.rp-showcase .rp-tagline {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--vp-c-text-2);
}

/* The buy button sits in the hero like the homepage's buttons: its own width, left aligned. */

.rp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.rp-hero-actions form {
  margin: 0;
}

.rp-hero-actions .rp-btn {
  display: inline-flex;
  width: auto;
  padding: 0.875rem 1.75rem;
}

.rp-hero-actions .rp-center {
  text-align: left;
}

/* On sale, the regular price sits crossed out in the buy button itself. */
.rp-btn-old-price {
  margin-left: 0.5rem;
  font-weight: 400;
  opacity: 0.75;
}

.rp-hero-actions .rp-marketplaces {
  flex-basis: 100%;
  justify-items: start;
  text-align: left;
}

.rp-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--vp-c-border);
  border-radius: 1rem;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.12);
}

.dark .rp-hero-visual img {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

/* The grey band of the homepage's products section. */

.rp-band {
  padding: 4rem 0 5rem;
  background: var(--vp-c-bg-alt);
}

/* The homepage's product cards: white with a soft shadow, #1e1e20 with a faint border in dark mode. */

.rp-showcase .rp-band .rp-panel,
.rp-showcase .rp-band .rp-card,
.rp-showcase .rp-band .rp-stat {
  border: 1px solid var(--vp-c-border);
  border-radius: 1rem;
  background: var(--vp-c-bg);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.dark .rp-showcase .rp-band .rp-panel,
.dark .rp-showcase .rp-band .rp-card,
.dark .rp-showcase .rp-band .rp-stat {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1e1e20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.rp-showcase .rp-stat {
  padding: 1rem 0.5rem;
}

.rp-showcase .rp-stat strong {
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .rp-hero {
    padding: 2rem 0 2.5rem;
  }

  .rp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .rp-hero-actions form,
  .rp-hero-actions .rp-btn {
    width: 100%;
  }

  .rp-hero-actions .rp-btn {
    display: flex;
  }

  .rp-band {
    padding: 2rem 0 3rem;
  }
}

/* Resource page on narrow screens: "Recommended for you" comes last, after the figures. */

@media (max-width: 900px) {
  .rp-layout-resource .rp-recommended {
    order: 5;
  }
}

/* Long inline code (paths, commands) wraps instead of running past the panel's edge on phones;
   code blocks scroll sideways inside their own box. */

.rp-article code,
.rp-showcase .article-content code {
  overflow-wrap: anywhere;
}

.rp-article pre,
.rp-showcase .article-content pre {
  max-width: 100%;
  overflow-x: auto;
}

.rp-article pre code,
.rp-showcase .article-content pre code {
  overflow-wrap: normal;
}

/* Login and sign-up: the same hero and grey band, with less padding so the page fits on a laptop screen. */

.rp-showcase-compact .rp-hero {
  padding: 3rem 0 2rem;
}

.rp-showcase-compact .rp-header {
  margin-bottom: 0;
}

.rp-showcase-compact .rp-band {
  padding: 2rem 0 3rem;
}

/* The inputs get the band's shade, so they stand out from the card they sit on (light grey on white, #252529 on #1e1e20). */

.rp-showcase .rp-band .auth-input {
  background: var(--vp-c-bg-alt);
}

/* Customer dashboard: the same hero and grey band, with the homepage's cards for the menu, figures, panels and
   licenses (white with a soft shadow; #1e1e20 with a faint border in dark mode). */

.account-sidebar,
.account-stat,
.account-panel,
.license-card {
  border: 1px solid var(--vp-c-border);
  border-radius: 1rem;
  background: var(--vp-c-bg);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.dark .account-sidebar,
.dark .account-stat,
.dark .account-panel,
.dark .license-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1e1e20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.dark a.account-stat:hover {
  border-color: var(--vp-c-brand-1);
}

.rp-showcase .rp-band .store-form input {
  background: var(--vp-c-bg-alt);
}

.account-main > .store-alert:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .rp-showcase-compact .rp-hero {
    padding: 2rem 0 1.5rem;
  }

  .rp-showcase-compact .rp-band {
    padding: 1.5rem 0 2.5rem;
  }
}

/* "Already have an account? Log in" under the sign-up button in the cart: some room above it, and the link in the
   site's blue instead of the browser's default (purple once visited). */

.cart-login-note {
  margin-top: 0.875rem;
}

.cart-login-note a {
  color: var(--vp-c-brand-1);
  font-weight: 600;
  text-decoration: none;
}

.cart-login-note a:hover {
  text-decoration: underline;
}

/* Thank-you page after checkout: a status icon, the message and the next steps in the main card. */

.success-panel {
  padding: 2rem;
}

.success-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
}

.success-status.is-paid {
  background: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}

.success-status.is-pending {
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
}

.success-heading {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.success-panel .rp-note strong {
  color: var(--vp-c-text-1);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .success-panel {
    padding: 1.5rem 1.25rem;
  }

  .success-actions > a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Checkout consent in the cart: checkbox and text side by side, above the Checkout button. */

.cart-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--vp-c-text-2);
  cursor: pointer;
}

.cart-consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--vp-c-brand-1);
  cursor: pointer;
}

.cart-consent a {
  color: var(--vp-c-brand-1);
  font-weight: 600;
  text-decoration: none;
}

.cart-consent a:hover {
  text-decoration: underline;
}

.cart-consent-error {
  margin: -0.5rem 0 0.875rem;
}
