/* App cluster pages (template app.php): compact download cards, video and screenshot carousel */

/* Download cards: smaller, four in a row on desktop */
.article .app-download-card {
  padding: 12px 14px;
  gap: 6px;
}
.article .app-download-card > .wp-block-group p.has-medium-font-size {
  font-size: 1rem;
  margin: 0;
}
.article .app-download-card .wp-block-image {
  margin: 0;
}
.article .app-download-card .wp-block-image img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.article .app-download-card .block-btn-articles {
  margin: 4px 0;
}
.article .app-download-card .has-small-font-size {
  margin: 0;
}

/* Video: portrait clip shown at a modest height instead of the full column */
.article .wp-block-video {
  text-align: center;
  margin: 12px 0;
}
.article .wp-block-video video {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: 400px;
  background: #050a28;
  border-radius: 10px;
}

/* Screenshot carousel: pure CSS scroll-snap, all images stay in the DOM and visible without JavaScript */
.article .shot-carousel {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.article .shot-carousel,
.article .shot-carousel > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}
.article .shot-carousel > .wp-block-group__inner-container {
  width: max-content;
}
.article .shot-carousel .wp-block-image {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: start;
}
.article .shot-carousel .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Captions: a different face and smaller size than the body text */
.article figcaption.wp-element-caption {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-style: italic;
  color: #5b6b7f;
  margin-top: 6px;
  text-align: left;
}

/* Facts bar, author line and trust strip under the hero */
.article .app-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 0;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.article .app-stats__item {
  flex: 1 1 160px;
  padding: 12px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article .app-stats__item:last-child { border-right: 0; }
.article .app-stats__label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ghost);
}
.article .app-stats__value { font-weight: 600; font-size: 15px; color: var(--white); }
.article .app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 4px;
  font-size: 13px;
  color: var(--secondary);
}
.article .app-trust {
  display: flex;
  flex-wrap: wrap;
  background: var(--darkblue);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
}
.article .app-trust__item {
  flex: 1 1 200px;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.article .app-trust__item:last-child { border-right: 0; }
html[data-theme="dark"] .article .app-trust { background: #0f2744; }
@media (max-width: 600px) {
  .article .app-stats__item, .article .app-trust__item { border-right: 0; border-bottom: 1px solid rgba(128,128,128,.25); }
}

.article .app-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.article .app-meta__icon { flex: none; color: var(--primary); }
.article .app-meta a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Info cards (top games, currencies) and glossary on the hub */
.article .info-card { padding: 16px 18px; height: 100%; border-radius: 12px; }
.article .info-card p { margin: 0 0 8px; }
.article .info-card .info-card__tag { color: #4b6fe7; font-weight: 600; }
.article .wp-block-columns:has(.info-card) { align-items: stretch; gap: 14px; margin-bottom: 14px; }
.article .glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 12px 0 0; }
.article .glossary-entry { padding: 12px 0; border-bottom: 1px solid #e1e8f0; }
.article .glossary-entry dt { font-weight: 700; margin: 0 0 4px; }
.article .glossary-entry dd { margin: 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 700px) { .article .glossary-list { grid-template-columns: minmax(0, 1fr); } }

/* Top games: image previews on the hub */
.article .game-previews { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.article .game-preview { display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
.article .game-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0 0 6px; }
@media (max-width: 900px) { .article .game-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Payment logos row: one height for all, no upscaling blur */
.article .payment-icons-row { align-items: center; gap: 16px 26px; }
.article .payment-icons-row .wp-block-image { margin: 0; flex: 0 0 auto !important; }
.article .payment-icons-row .wp-block-image img { height: 28px; width: auto; max-width: 90px; object-fit: contain; }

/* Layout fixes 2026-10-23: details tables, heading after a group, card gaps */
.article .content figure.wp-block-table[style*="font-size:10px"] td:first-child { word-break: normal; overflow-wrap: normal; hyphens: none; min-width: 9em; }
.article .content .wp-block-group + .wp-block-heading { margin-top: 28px; }
.article .content .wp-block-columns:has(> .wp-block-column > .wp-block-group) { gap: 16px; }

/* Currency and amounts: app flow infographic (theme tokens, light and dark) */
.article .app-flow { margin: 18px 0 8px; }
.article .app-flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.article .app-flow__step { margin: 0; padding: 18px 18px 16px; background: var(--gray); border-radius: 8px; list-style: none; }
.article .app-flow__step::before, .article .app-flow__step::after { content: none; display: none; }
.article .app-flow__step::marker { content: ""; }
.article .app-flow__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.article .app-flow__num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; }
.article .app-flow__tab { font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.article .app-flow__value { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--white); }
.article .app-flow__value small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--secondary); }
.article .app-flow__text { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.article .app-flow__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.article .app-flow__chip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--green-text); font-size: 12px; font-weight: 500; line-height: 1.5; }
.article .app-flow__bar { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; border-radius: 8px; background: var(--darkblue); overflow: hidden; text-align: center; }
.article .app-flow__bar span { padding: 10px 4px; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 500; }
.article .app-flow__bar .is-on { background: var(--green); color: var(--green-ink); font-weight: 600; }
.article .app-flow__caption { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ghost); text-align: center; }
@media (max-width: 900px) { .article .app-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .article .app-flow__steps { grid-template-columns: minmax(0, 1fr); } }

/* Tall App Store listing screenshots: compact preview, click to enlarge */
.article .wp-block-image:has(img[src*="app-store-listing"]) { text-align: center; }
.article .wp-block-image img[src*="app-store-listing"] { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; }
.article .wp-block-image:has(img[src*="app-store-listing"]) figcaption { margin-top: 8px; }
