/* App links (inc/app-links.php, page-app.php). Loads after main.css (+ mpt-landing.css on the landing).
   Only theme tokens (--card/--ink/--muted/--border/--bg/--r-*), so dark mode (assets/dark.css flips those tokens) needs nothing extra.
   The per-app accent comes in as the inline custom property --app-c (a literal set in PHP, used only as a thin stripe). */

[data-app-android][hidden] { display: none !important; }

/* ---- slim chip in a test hero ---- */
.app-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.5; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.app-chip:hover, .app-chip:focus-visible { border-color: var(--ink); transform: translateY(-1px); }
.app-chip img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.app-chip span { display: grid; text-align: start; }
.app-chip b { font-weight: 700; }
.app-chip small { font-size: 12.5px; color: var(--muted); }
.app-chip .app-i { flex: none; opacity: .7; }

/* ---- fuller block above the final CTA of a test page ---- */
.app-section { padding-block: clamp(28px, 5vw, 56px); }
.app-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-artifact); overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--app-c, var(--ink)); }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 10px; }
.app-card h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); color: var(--ink); }
.app-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.95; }
.app-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.app-card__shot { width: 150px; height: auto; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-artifact); }
@media (max-width: 640px) {
  .app-card { grid-template-columns: 1fr; }
  .app-card__shot { display: none; }
}

/* ---- the /app/ landing ---- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.apps-grid--hub { margin-top: 18px; grid-template-columns: 1fr; }
.app-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-artifact); overflow: hidden; }
.app-tile::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--app-c, var(--ink)); }
.app-tile__head { display: flex; align-items: center; gap: 14px; }
.app-tile__head img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-tile__head h3 { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.app-tile__head small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.app-tile p { margin: 0; color: var(--muted); line-height: 1.95; font-size: 15px; }
.app-tile__meta { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.app-tile__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.app-tile__shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
/* Equal-height tiles: the body fills the tile and the button sits at its bottom, so the three buttons (and the screenshots under them) line up in one row. */
.app-tile__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.app-tile .mpt-cta { align-self: stretch; justify-content: center; margin-top: auto; }
.app-tile--hub { flex-direction: row; flex-wrap: wrap; align-items: center; }
.app-tile--hub .app-tile__body { flex: 1 1 280px; }
.app-tile--hub .app-tile__shots { flex: 0 1 320px; margin-top: 0; }
/* editor text (the_content) under the tiles */
.app-prose { color: var(--ink); line-height: 2.05; font-size: 16.5px; }
.app-prose h2 { margin: 1.8em 0 .5em; font-size: clamp(21px, 3vw, 27px); color: var(--ink); }
.app-prose p { margin: 0 0 1em; color: var(--muted); }
.app-prose ul { margin: 0 0 1.2em; padding-inline-start: 1.3em; color: var(--muted); }
.app-prose li { margin-bottom: .5em; }
.app-prose a { color: var(--mpt-green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.app-prose img { display: block; width: 220px; max-width: 70%; height: auto; margin: 6px auto 12px; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-artifact); }
.app-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.95; text-align: center; }
