/* Static tarot card pages (tarot-cards/*.html), generated by scripts/build-card-pages.js.
   They reuse the about page styles (.about, .anatomy, .lede, .note) and .keywords from tarot.css. */
.card-page {
  max-width: 720px;
}
.crumbs {
  margin: 0 0 14px;
  font-size: 0.8em;
  opacity: 0.85;
}
.card-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 6px 0 18px;
}
.card-figure {
  margin: 20px 0;
  /* fixed size: the scans vary by a few pixels, which made the page below jump from card to card */
  width: 120px;
  height: 206px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.card-facts {
  margin: 0 0 10px;
  line-height: 1.4;
  opacity: 0.9;
}
.card-page .fortune {
  font-style: italic;
}
.card-page .anatomy {
  margin-top: 16px;
}
.card-page .interpret-btn {
  margin: 4px 0 0;
}
.card-page ul {
  margin: 0 0 12px;
}

.card-thumb {
  display: block;
  width: 60px;
  height: auto;
  border-radius: 3px;
}
.card-thumb.sm {
  width: 40px;
  flex-shrink: 0;
}

/* chips linking to the other cards of the suit */
.card-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
}
.card-chips li {
  margin: 0;
}
.about a.card-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  text-align: center;
  font-size: 0.72em;
  line-height: 1.2;
}
.about a.card-pick:hover,
.about a.card-pick:focus-visible {
  border-color: var(--card-border);
}
.about a.card-pick.current {
  border-color: currentColor;
}

/* previous / next */
.card-nav {
  /* three fixed columns, so "All 78 cards" stays in place whatever the card names */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 8px;
  font-size: 0.95em;
}
.card-nav.top {
  margin: 0 0 12px;
}
.card-nav > span:last-child {
  text-align: right;
}

/* the list of all cards (tarot-cards/index.html) */
.suit-jump {
  font-size: 0.95em;
}
.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}
.card-list li {
  margin: 0;
}
.about a.card-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background-color: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.about a.card-row:hover,
.about a.card-row:focus-visible {
  border-color: color-mix(in srgb, var(--card-border), white 40%);
}
.card-row .cr-text {
  min-width: 0;
  line-height: 1.4;
}
.card-row .cr-name {
  font-weight: bold;
  color: var(--card-strong);
}
.card-row .cr-line {
  display: block;
  font-size: 0.85em;
  opacity: 0.85;
}

@media only screen and (max-width: 480px) {
  /* on phones, keep the title at two lines and the links at one, whatever the card name */
  h2.card-title {
    min-height: 2.5em;
  }
  .card-nav > span,
  .card-nav > span a {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-hero {
    gap: 16px;
  }
  .card-figure {
    width: 90px;
    height: 155px;
  }
}
