/* ============================================================
   App promotion (lib/apppromo.php, 28 Nov 2026): "Get the app" card in the rail (desktop), the store buttons in the
   footer, the Android bar (assets/x/app.js) and the /app page. Linked from inside those blocks only while an app is
   live, so it is not in the CSS bundle. Tokens of news.css (light + html.dark); flat: hairlines, 6px corners, no shadow.
   ============================================================ */
.ap-g{flex:none;display:block}
.ap-btn{gap:8px}
.ap-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* QR: dark modules on a white tile in both themes (scanners need dark on light) */
.ap-qr{flex:none;display:block;border:1px solid var(--line);border-radius:6px;background:#ffffff}

/* ---- rail card (inside .xr-gen: desktop only) ---- */
.ap-card-b{padding:0 16px 16px}
.ap-card-s{margin:0 0 12px;font-size:13px;line-height:1.5;color:var(--text-2)}
.ap-card-r{display:flex;align-items:center;gap:16px}
.ap-card .ap-qr{width:96px;height:96px}
.ap-btns{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.ap-btns .ap-btn{width:100%;justify-content:flex-start;padding:0 12px}

/* ---- footer row ---- */
.xfoot-app{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px}
.xfoot-app-k{color:var(--text-3)}
.xfoot-app-b{display:flex;flex-wrap:wrap;gap:8px}
.xfoot-app .ap-btn{padding:0 12px;color:var(--text)}
.xfoot-app .ap-btn:hover{color:var(--text)}
.xfoot-app .ap-g{width:16px;height:16px}

/* ---- Android bar (assets/x/app.js; added after load above the header, phones only) ---- */
.ap-bar{display:flex;align-items:center;gap:12px;height:64px;padding:0 16px 0 4px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--text)}
.ap-bar-x{flex:none;width:36px;height:44px;display:flex;align-items:center;justify-content:center;margin-right:-8px;padding:0;border:0;background:none;color:var(--text-3);cursor:pointer}
.ap-bar-i{flex:none;display:block;width:40px;height:40px;border:1px solid var(--line);border-radius:8px}
.ap-bar-t{flex:1;min-width:0;line-height:1.3}
.ap-bar-t b{display:block;font-size:15px;font-weight:700;color:var(--text)}
.ap-bar-t span{display:block;font-size:13px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-bar-o{flex:none;display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 20px;border-radius:999px;background:var(--accent);font-size:15px;font-weight:700;line-height:1;color:var(--on-accent)}
.ap-bar-o:hover{background:var(--accent-2);color:var(--on-accent)}
@media (min-width:1000px){ .ap-bar{display:none} }

/* ---- /app page (app.php) ---- */
.ap-page-r{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin:20px 0 4px}
.ap-page .ap-qr{width:160px;height:160px}
.ap-page .ap-btns{flex:0 1 240px}
.ap-page .ap-btn{height:48px}
.nfo-body a.ap-btn,.nfo-body a.ap-btn:hover{font-weight:700;color:var(--text);text-decoration:none}   /* not the .nfo-body link style */
.ap-page-s{margin-top:12px;font-size:13px;line-height:1.5;color:var(--text-3)}
@media (max-width:999px){ .ap-page .ap-qr,.ap-page-s{display:none} }
