/* ==========================================================================
   A2Z Converter — Redesigned pages: sections that are not in a2z-new.
   Related tools / Popular converters: rt--cards, rt--chips, rt--rows, rt--tiles
   (set per page in $page['related']['design']).
   ========================================================================== */

.stream-copy .stream-lead + .stream-lead { margin-top: 14px; }

/* About bullets (about.bullets), styled by every Streamline design */
.stream-more > p { margin-top: 10px; }
.stream-more > p:first-child { margin-top: 0; }
.stream-copy .stream-more .stream-bullets { margin-top: 8px; }
.stream-copy .stream-bullets { margin-top: 18px; gap: 10px; font-size: 16px; line-height: 1.6; color: var(--text-2, var(--muted)); }
.st--minimal .stream-copy .stream-bullets, .st--centered .stream-copy .stream-bullets {
  justify-items: start; max-width: 620px; margin-left: auto; margin-right: auto; text-align: left;
}
.st--editorial .stream-lead + .stream-lead { padding-top: 0; border-top: 0; }
.st--editorial .stream-lead + .stream-lead::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.st--brand .stream-bullets { color: rgba(255, 255, 255, .92); }
.st--open .stream-bullets { grid-column: 1 / -1; }

.rt-list { display: grid; gap: 12px; }
.rt-link {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border, #ececf0); border-radius: 14px;
  color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rt-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 10px 24px -16px rgba(20, 20, 40, .35); }
.rt-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rt-icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 13px;
}
.rt-name { flex: 1; min-width: 0; }
.rt-go { flex: none; font-size: 12px; color: var(--muted-2, #9a9aa5); transition: transform .2s ease; }
.rt-link:hover .rt-go { transform: translateX(3px); color: var(--accent); }

/* Cards */
.rt--cards .rt-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 768px) { .rt--cards .rt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Chips */
.rt--chips .rt-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rt--chips .rt-link { padding: 9px 16px; border-radius: 999px; font-size: 14px; }
.rt--chips .rt-icon, .rt--chips .rt-go { display: none; }

/* Rows */
.rt--rows .rt-list { max-width: 760px; margin-inline: auto; gap: 0; border: 1px solid var(--border, #ececf0); border-radius: 16px; overflow: hidden; background: #fff; }
.rt--rows .rt-list li + li { border-top: 1px solid var(--border, #ececf0); }
.rt--rows .rt-link { border: 0; border-radius: 0; }
.rt--rows .rt-link:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--accent) 6%, #fff); }

/* Tiles */
.rt--tiles .rt-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rt--tiles .rt-link { flex-direction: column; align-items: flex-start; padding: 18px; }
.rt--tiles .rt-go { display: none; }

/* Deck hero: the fanned cards must not widen the page on phones */
.hero--deck { overflow-x: clip; }

/* Text block (web/sections/text.php) and plain page hero (page_hero.php): Admin › Page content */
.page-hero { padding-bottom: 48px; }
.page-text__body { max-width: 760px; margin-inline: auto; }
.page-text__body .section-title { margin-bottom: 16px; }
.page-text__body p:not(.eyebrow) { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.75; color: var(--text-2, var(--muted)); }
.page-text__body p:last-child { margin-bottom: 0; }
.st--minimal .stream-copy .stream-more .stream-bullets { margin-left: 0; max-width: none; }

/* Tighter spacing around "Related tools" and the About section that follows it
   (two plain sections in a row otherwise leave ~190px of empty space) */
.section:has(+ #related) { padding-bottom: 24px; }
#related.section { padding-block: 24px; }
#related + #stream.section { padding-top: 24px; }
@media (min-width: 992px) {
  .section:has(+ #related) { padding-bottom: 32px; }
  #related.section { padding-block: 24px; }
  #related + #stream.section { padding-top: 32px; }
}

/* Supported conversions (Views/Web/sections/supported.php): a conversion that has no page of its
   own is listed without a link (this page only uploads its own format). Same card, no hover/arrow. */
.sup-pop.is-static { cursor: default; }
.sup-pop.is-static:hover { transform: none; box-shadow: none; border-color: var(--border); background: var(--surface, #fff); }
.sup-pop.is-static:hover .mini-file:first-child,
.sup-pop.is-static:hover .mini-file.is-target { transform: none; }
.sup-pop.is-static .sup-pop-text strong { color: var(--text-2, var(--muted)); }
.sup-chip.is-static { cursor: default; opacity: .7; }
