/* Spitting Toad store pages. Uses the site theme's colour tokens when present, with fallbacks. */
.toad-store,
.toad-page {
  --t-bg: var(--bg-raise, #f4f6f3);
  --t-card: var(--bg-card, #ffffff);
  --t-line: var(--line, #d0d8d2);
  --t-fg: var(--fg, #26352e);
  --t-dim: var(--fg-dim, #4a5f55);
  --t-strong: var(--fg-strong, #121e19);
  --t-accent: var(--accent, #52796f);
  --t-on-accent: var(--on-accent, #ffffff);
  --t-display: var(--font-display, inherit);
  --t-mono: var(--font-mono, ui-monospace, monospace);
}
.toad-store {
  color: var(--t-fg);
  line-height: 1.6;
}
.toad-store *,
.toad-store *::before,
.toad-store *::after {
  box-sizing: border-box;
}
body .toad-store h2,
body .toad-store h3 {
  color: var(--t-strong);
  font-family: var(--t-display);
  line-height: 1.2;
}
body .toad-store h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin: 0 0 1rem;
}
body .toad-store h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.toad-store a {
  color: var(--t-accent);
}

.toad-hero {
  padding: 0.5rem 0 1rem;
}
.toad-eyebrow {
  font-family: var(--t-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin: 0 0 0.75rem;
}
body .toad-store .toad-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
.toad-lede {
  font-size: 1.15rem;
  max-width: 62ch;
  color: var(--t-dim);
  margin: 0 0 1.5rem;
}

.toad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.toad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--t-accent);
  border-radius: 6px;
  background: transparent;
  color: var(--t-accent) !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.toad-btn:hover {
  background: color-mix(in srgb, var(--t-accent) 12%, transparent);
}
.toad-btn-solid {
  background: var(--t-accent);
  color: var(--t-on-accent) !important;
}
.toad-btn-solid:hover {
  background: color-mix(in srgb, var(--t-accent) 85%, black);
}
.toad-btn:focus-visible {
  outline: 3px solid var(--t-accent);
  outline-offset: 2px;
}

body .toad-store .toad-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}
.toad-store .toad-facts li {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--t-line);
  border-radius: 8px;
  background: var(--t-bg);
  color: var(--t-dim);
}
.toad-facts strong {
  display: block;
  font-family: var(--t-display);
  font-size: 1.8rem;
  color: var(--t-strong);
  line-height: 1.1;
}

.toad-section {
  margin: 3.5rem 0 0;
}
.toad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.toad-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--t-line);
  border-radius: 8px;
  background: var(--t-bg);
}
.toad-card p {
  margin: 0;
  color: var(--t-dim);
  font-size: 0.95rem;
}

.toad-table-wrap {
  overflow-x: auto;
}
.toad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.toad-table th,
.toad-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--t-line);
  text-align: left;
}
.toad-table td {
  text-align: center;
  width: 7rem;
  white-space: nowrap;
}
.toad-table thead th {
  font-family: var(--t-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-dim);
}
.toad-table thead th:not(:first-child) {
  text-align: center;
}
.toad-table tbody th {
  font-weight: 400;
}
.toad-yes {
  color: var(--t-accent);
  font-weight: 700;
}
.toad-no {
  color: var(--t-dim);
}

.toad-buy {
  display: flex;
  justify-content: center;
}
.toad-price-card {
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem;
  border: 2px solid var(--t-accent);
  border-radius: 12px;
  background: var(--t-bg);
}
.toad-price {
  margin: 0 0 1rem;
  color: var(--t-dim);
}
.toad-price span {
  font-family: var(--t-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--t-strong);
  margin-right: 0.25rem;
}
.toad-list {
  padding-left: 1.2rem;
  margin: 0 0 1.25rem;
}
.toad-list li {
  margin: 0.3rem 0;
}
.toad-paypal {
  min-height: 100px;
}
.toad-pay-msg {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--t-strong);
}
.toad-small {
  font-size: 0.88rem;
  color: var(--t-dim);
}

.toad-faq details {
  border-bottom: 1px solid var(--t-line);
  padding: 0.8rem 0;
}
.toad-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--t-strong);
}
.toad-faq details p {
  margin: 0.5rem 0 0;
  color: var(--t-dim);
}

.toad-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}
.toad-key textarea {
  flex: 1 1 20rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--t-line);
  border-radius: 6px;
  background: var(--t-card);
  color: var(--t-strong);
  font-family: var(--t-mono);
  font-size: 0.85rem;
  word-break: break-all;
  resize: vertical;
}
.toad-steps li {
  margin: 0.35rem 0;
}
.toad-code {
  padding: 0.9rem 1rem;
  border: 1px solid var(--t-line);
  border-radius: 6px;
  background: var(--t-bg);
  font-family: var(--t-mono);
  overflow-x: auto;
}

@media (max-width: 600px) {
  .toad-table th,
  .toad-table td {
    padding: 0.55rem 0.4rem;
  }
  .toad-table td {
    width: 4.75rem;
    white-space: normal;
  }
  .toad-price-card {
    padding: 1.25rem;
  }
}

/* ---------- pages drawn with the apolgesma theme's components ---------- */
.toad-board .toad-url {
  font-family: var(--t-mono);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toad-board .chip-done.is-warn {
  background: color-mix(in srgb, var(--t-accent) 24%, transparent);
  color: var(--t-strong);
}
.toad-board .chip-done.is-bad {
  background: var(--danger, #9e3b21);
  color: var(--t-on-accent);
}
.toad-page .toad-paypal {
  min-height: 110px;
  margin-top: 6px;
}
.toad-page .toad-key textarea {
  background: color-mix(in srgb, var(--t-bg) 60%, transparent);
}
.toad-receipt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 14px 0 18px;
  font-size: 0.94rem;
}
.toad-receipt dt {
  padding-top: 2px;
  font-family: var(--t-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint, var(--t-dim));
}
.toad-receipt dd {
  margin: 0;
  color: var(--t-strong);
  overflow-wrap: anywhere;
}
.toad-downloads {
  margin-top: 8px;
}
.toad-note {
  margin-top: 18px;
  max-width: 62ch;
}
.toad-page .toad-table tbody tr:hover {
  background: color-mix(in srgb, var(--t-accent) 7%, transparent);
}
