/* The installed "LAF Academy" app (html.laf-app, set by assets/js/boot.js). Loaded by Academy pages only. docs/ACADEMY.md */
.lafapp-top, .lafapp-tabs { display: none; }

.lafapp-install { display: flex; justify-content: center; padding: 0 1rem; }
.lafapp-install__btn { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0; min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: 999px; background: #B85A14; color: #fff; font: 600 1rem/1.2 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.lafapp-install__btn[hidden] { display: none; }

/* ---- app layout: strictly the Academy ---- */
html.laf-app .topbar,
html.laf-app .site-header,
html.laf-app .site-footer,
html.laf-app .breadcrumbs,
html.laf-app .back-to-top,
html.laf-app .fund-tab,
html.laf-app .launch,
html.laf-app .bono,
html.laf-app .translate,
html.laf-app .pwa-banner,
html.laf-app .skip-link:not(:focus) { display: none !important; }

html.laf-app body { padding-top: calc(56px + env(safe-area-inset-top)); padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
html.laf-app body.is-academy-attempt { padding-top: 0; padding-bottom: 0; }

html.laf-app .lafapp-top { display: flex; position: fixed; z-index: 90; top: 0; right: 0; left: 0; align-items: center; gap: .25rem; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) .5rem 0; background: #fff; border-bottom: 2px solid #D6A151; }
.lafapp-top__back { width: 44px; height: 44px; border: 0; background: none; color: #2C3950; font-size: 2rem; line-height: 1; cursor: pointer; }
.lafapp-top__brand { display: inline-flex; align-items: center; gap: .6rem; color: #2C3950; font: 700 1.1rem/1 'DM Sans', system-ui, sans-serif; text-decoration: none; }
.lafapp-top__brand img { border-radius: 8px; }

html.laf-app .lafapp-tabs { display: flex; position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E4E1DA; }
.lafapp-tabs__link { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 68px; color: #5A6470; font: 500 .72rem/1.1 'DM Sans', system-ui, sans-serif; text-decoration: none; }
.lafapp-tabs__link svg { width: 22px; height: 22px; }
.lafapp-tabs__link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lafapp-tabs__link.is-active { color: #A64B0C; font-weight: 700; box-shadow: inset 0 3px 0 #CC651A; }
