/* GTAYA Related Content v0.1.6
 * Tool card mirrors the theme post card geometry instead of stretching a short stack:
 *   post card  = .ci (theme L141: aspect-ratio 1/1)  + .nm band (L145: padding 9px, border-top #2a1a08, bg #0b0b0d)
 *   tool card  = .gtaya-rc-face (aspect-ratio 1/1, theme .cd.cmore L154 gradient, .cmi b L156 circle mark)
 *              + .gtaya-rc-body band (same padding/border/bg as .nm; desc + CTA in the category-label position)
 * 015 fault: 48-56px face + short text inside a card stretched to the post row height => ~half the card empty.
 * Tool keeps contain:size so it can never enlarge the row; body flexes so CTA sits where neighbours' label sits.
 * No theme .nm/.tt/.pl/small inside the tool. No selector here matches post cards.
 */

#related.gtaya-rc { margin: 28px 0 8px; }

.tl.gtaya-rc-grid > a.cd.gtaya-rc-tool {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  aspect-ratio: auto !important;
  height: auto;
  min-height: 0;
  contain: size;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.tl.gtaya-rc-grid > a.cd.gtaya-rc-tool:focus-visible { outline: 2px solid #ff8a00; outline-offset: 2px; }

.gtaya-rc-tool .gtaya-rc-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 26px 10px 12px;
  box-sizing: border-box;
  background: radial-gradient(90% 90% at 50% 30%, rgba(255, 138, 0, .18), transparent 70%), #0d0d10;
  text-align: center;
}
.gtaya-rc-tool .gtaya-rc-badge {
  position: absolute; top: 8px; left: 8px;
  font: 800 10px/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #111; background: #ff8a00; border-radius: 999px; padding: 3px 7px;
}
.gtaya-rc-tool .gtaya-rc-mark {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: #ff8a00; color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, .2);
}
.gtaya-rc-tool .gtaya-rc-ico { display: block; width: 22px; height: 22px; }
.gtaya-rc-tool .gtaya-rc-title {
  display: block;
  font: 800 14px/1.25 system-ui, sans-serif;
  color: #fff;
  overflow-wrap: anywhere;
}

.gtaya-rc-tool .gtaya-rc-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 9px 9px 10px;
  background: #0b0b0d;
  border-top: 1px solid #2a1a08;
  text-align: center;
}
.gtaya-rc-tool .gtaya-rc-desc {
  display: block;
  font: 600 12px/1.32 system-ui, sans-serif;
  color: #c9ccd3;
  overflow-wrap: anywhere;
}
.gtaya-rc-tool .gtaya-rc-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font: 700 11px/1.3 system-ui, sans-serif;
  color: #ff8a00;
}
.gtaya-rc-tool:hover .gtaya-rc-cta,
.gtaya-rc-tool:focus-visible .gtaya-rc-cta { color: #ffb24d; }

@media (max-width: 600px) {
  .gtaya-rc-tool .gtaya-rc-face { padding: 24px 8px 10px; gap: 7px; }
  .gtaya-rc-tool .gtaya-rc-mark { width: 36px; height: 36px; }
  .gtaya-rc-tool .gtaya-rc-ico { width: 20px; height: 20px; }
  .gtaya-rc-tool .gtaya-rc-title { font-size: 13.5px; }
  .gtaya-rc-tool .gtaya-rc-body { padding: 7px 7px 8px; }
  .gtaya-rc-tool .gtaya-rc-desc { font-size: 11.5px; }
  .gtaya-rc-tool .gtaya-rc-cta { font-size: 10.5px; }
}
