/* Building blocks shared by the content pages (product, theme, …): breadcrumb, white panel, FAQ item, blog post list,
   the theme tiles (front page, /temaer) */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--cta); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* White panels: price history, specifications, FAQ, about, blog */
.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px;
  background: var(--surface);
  border-radius: var(--r-xl);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.faq__item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.faq__item h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.faq__item p, .faq__answer { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
/* On the grey page (listing pages) instead of in a white panel */
.faq__item--white { background: var(--surface); }
.faq__answer a { font-weight: 600; }
.faq__answer ul { margin: 6px 0 0; padding-left: 20px; }

/* Blog posts that mention the sets: two columns of image + title + date */
.blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.blog-list li { min-width: 0; }

.blog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}

.blog-item__image { flex-shrink: 0; width: 120px; height: 72px; object-fit: cover; background: var(--line); border-radius: 10px; }
.blog-item__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.blog-item__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.blog-item time { font-size: 13px; color: var(--ink-3); }
.blog-item__arrow { flex-shrink: 0; color: var(--ink-3); }

@media (max-width: 767px) {
  .panel { padding: 18px 16px; }
  .panel-title { font-size: 22px; }

  .blog-list { display: flex; flex-direction: column; gap: 8px; }
  .blog-item__image { width: 96px; height: 60px; }
  .blog-item__arrow { display: none; }
}

/* THEME TILES: a theme's logo, name and sets in stock (front page, /temaer); phones show the first six */
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.theme-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
}

.theme-tile__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}

/* Keeps tall logos (Icons, Super Mario) from towering over the wide wordmarks (Technic, Botanicals) */
.theme-tile__image img { width: auto; height: auto; max-width: 100%; max-height: 64px; }

.theme-tile__text { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.theme-tile__text strong { font-size: 15px; font-weight: 700; }
.theme-tile__text span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 1023px) {
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme-grid > :nth-child(n+7) { display: none; }
  .theme-tile__image { height: 110px; }
  .theme-tile__image img { max-height: 44px; }
}
