/* FurzAbout App 0.1.0. The tab bar, sheet and share button exist only in the app (html.fap-app); the install bar only in a phone's browser. */
:root { --fap-c: var(--fa-brand, #2f7d6d); --fap-ink: var(--fa-ink, #1f2a37); --fap-muted: var(--fa-muted, #5b6b7b); --fap-line: var(--fa-line, #e3e8ee); --fap-bar: 62px; }

.fap-tabs, .fap-fab { display: none; }
.fap-sheet[hidden], .fap-nudge[hidden] { display: none !important; }

/* ---- in the app ---- */
html.fap-app body { padding-bottom: calc(var(--fap-bar) + env(safe-area-inset-bottom, 0px)); }
html.fap-app .fap-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 1px solid var(--fap-line); padding: 0 2px env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 12px rgba(15, 23, 42, .06); }
.fap-tab { flex: 1 1 0; min-width: 0; height: var(--fap-bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px 4px; border: 0; background: none; color: var(--fap-muted); font: 600 11px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fap-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fap-tab svg { width: 24px; height: 24px; }
.fap-tab[data-tab="lost"] { flex-grow: 1.4; }
.fap-tab.is-current, .fap-tab[aria-expanded="true"] { color: var(--fap-c); }
.fap-tab.is-current svg { stroke-width: 2.4; }
.fap-tab:focus-visible { outline: 2px solid var(--fap-c); outline-offset: -4px; border-radius: 10px; }
html .fap-tab.fap-tab--back { display: none; }
html.fap-app.fap-dev-ios .fap-tab.fap-tab--back { display: flex; flex: 0 0 44px; }
html.fap-app.fap-dev-ios .fap-tab span { font-size: 10.5px; }

html.fap-app .fap-fab { display: flex; position: fixed; right: 16px; bottom: calc(var(--fap-bar) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 9989; width: 52px; height: 52px; border-radius: 50%; border: 0; align-items: center; justify-content: center; background: var(--fap-c); color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .22); cursor: pointer; }
.fap-fab svg { width: 24px; height: 24px; }

.fap-sheet { position: fixed; inset: 0; z-index: 9995; }
.fap-sheet__scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); }
.fap-sheet__in { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(15, 23, 42, .18); }
.fap-sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--fap-line); margin: 0 auto 8px; }
.fap-sheet__list { list-style: none; margin: 0; padding: 0; }
.fap-sheet__list a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--fap-line); color: var(--fap-ink); text-decoration: none; font-size: 17px; font-weight: 600; }
.fap-sheet__list a span { color: var(--fap-muted); font-size: 20px; }
.fap-sheet__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0 4px; }
.fap-sheet__foot .fa-btn { display: inline-flex; align-items: center; gap: 6px; }
.fap-sheet__x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--fap-muted); cursor: pointer; }
html.fap-sheet-open { overflow: hidden; }

.fap-signin-note { margin: 0 0 16px; }

/* ---- the Get the app card (0.2.0): floating, centred at the bottom, phones and computers ---- */
.fap-nudge { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(520px, calc(100% - 20px)); box-sizing: border-box; z-index: 9990; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--fap-line); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); font-family: inherit; }
.fap-nudge * { box-sizing: border-box; }
.fap-nudge img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.fap-nudge p { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--fap-muted); }
.fap-nudge p strong { color: var(--fap-ink); font-weight: 700; }
.fap-nudge__add { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fap-c); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.fap-nudge__add:hover { filter: brightness(1.08); }
.fap-nudge__x { flex: none; min-height: 40px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--fap-muted); cursor: pointer; }
.fap-nudge__x:hover { color: var(--fap-ink); text-decoration: underline; }
.fap-nudge a:focus-visible, .fap-nudge button:focus-visible { outline: 3px solid var(--fap-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .fap-nudge:not([hidden]) { animation: fap-up .35s ease-out; } }
@keyframes fap-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* narrow phones: Not now goes under Add, so the words keep their room */
@media (max-width: 480px) {
	.fap-nudge { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; }
	.fap-nudge img { grid-row: 1 / 3; }
	.fap-nudge p { grid-row: 1 / 3; }
	.fap-nudge__add { grid-column: 3; grid-row: 1; }
	.fap-nudge__x { grid-column: 3; grid-row: 2; min-height: 32px; justify-self: center; }
}
html.fap-app .fap-nudge { display: none !important; }

/* ---- /app/ ---- */
.fap-get__head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.fap-get__head img { border-radius: 20px; box-shadow: 0 4px 14px rgba(15, 23, 42, .1); flex: none; }
/* 0.2.1: the page uses the same column as the header's logo and menu (the child theme's --fwt-header-max / --fwt-header-pad) */
main.fa-wrap.fap-get { box-sizing: border-box; max-width: calc(var(--fwt-header-max, 1240px) + 2 * var(--fwt-header-pad, 28px)); padding-left: var(--fwt-header-pad, 28px); padding-right: var(--fwt-header-pad, 28px); }
.fap-get__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin: 22px 0; }
.fap-get__box { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--fap-line); border-radius: 18px; background: #fff; box-sizing: border-box; min-width: 0; }
.fap-get__ways > .fap-get__box { margin: 0; }
.fap-get__box h2 { margin: 0 0 10px; font-size: 20px; }
.fap-get__box--in { border-color: #cfe5dd; background: #eef7f3; }
.fap-get__go { margin: 0 0 12px; }
.fap-steps { margin: 0 0 10px; padding-left: 22px; font-size: 16px; } .fap-steps li { margin: 0 0 8px; }
.fap-ico-inline { vertical-align: -4px; }
.fap-get__qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .fap-get__qr p { margin: 0; flex: 1; min-width: 180px; } .fap-get__qr svg { max-width: 100%; height: auto !important; }
.fap-get__what { margin: 26px 0 0; } .fap-get__what h2 { font-size: 20px; margin: 0 0 8px; } .fap-get__what ul { margin: 0; padding-left: 20px; columns: 2 380px; column-gap: 40px; } .fap-get__what li { break-inside: avoid; } .fap-get__what li { margin: 0 0 8px; } .fap-get__soon { color: var(--fap-muted); }
[data-fap-show="app"] { display: none; }
.fap-js [data-fap-show] { display: none; }
.fap-js.fap-dev-android:not(.fap-app) [data-fap-show="android"], .fap-js.fap-dev-ios:not(.fap-app) [data-fap-show="ios"], .fap-js.fap-dev-desktop:not(.fap-app) [data-fap-show="desktop"], .fap-js.fap-app [data-fap-show="app"] { display: block; }
.fap-js.fap-dev-desktop:not(.fap-app) [data-fap-show="android"], .fap-js.fap-dev-desktop:not(.fap-app) [data-fap-show="ios"] { display: block; }
@media (max-width: 560px) { .fap-get__head { align-items: flex-start; } .fap-get__head img { width: 64px; height: 64px; border-radius: 16px; } }

/* other plugins' floating buttons sit above the tab bar and the install bar (the shop's basket) */
html.fap-app .fas-fab { bottom: calc(var(--fap-bar) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
html.fap-nudging .fas-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
