/* Family "rail": sticky left category rail + content column. Tokens: --bg (content), --surface-2 (rail),
   --surface (active rail pill), --accent (indicator, icons), --fm-display (names). fx thumbs: round | square, banner. */
.fm--rail { background: var(--bg); }
.fm--rail .fm-app { background: var(--bg); }
.fmr { display: grid; grid-template-columns: 88px 1fr; min-height: 100svh; }

.fmr-rail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100svh; padding: max(12px, env(safe-area-inset-top)) 0 14px; background: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); border-right: 1px solid var(--line); }
.fmr-rail__mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; }
.fmr-rail__mark .mz-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--accent-ink); font-size: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.fmr-rail__mark .mz-mark img { width: 100%; height: 100%; object-fit: cover; }
.fmr-rail__nav { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 0; }
.fmr-rail__nav::-webkit-scrollbar { display: none; }
.fmr-rail__ind { position: absolute; left: 0; right: 6px; top: 0; height: 90px; border-radius: 0 22px 22px 0; background: var(--fm-rail-ind, var(--surface)); color: var(--fm-rail-ind-ink, inherit); box-shadow: inset 4px 0 0 var(--accent), 0 8px 18px -12px rgba(0,0,0,.25); opacity: 0; transition: transform .55s var(--fm-spring), height .4s var(--fm-ease), opacity .3s ease; }
.fmr-rail__ind.is-on { opacity: 1; }
.fmr-rail__a { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 16px 6px 14px; color: var(--muted); text-decoration: none; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; transition: color .25s ease; }
.fmr-rail__a .icon { font-size: 30px; stroke-width: 1.2; transition: transform .45s var(--fm-spring), color .25s ease; }
.fmr-rail__a.is-on { color: var(--accent-ink); }
.fmr-rail__a.is-on .icon { transform: scale(1.12) rotate(-6deg); color: var(--accent); }
.fmr-rail__a span { overflow-wrap: anywhere; }
.fmr-rail__note { display: grid; justify-items: center; gap: 6px; margin: 10px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.35; text-align: center; }
.fmr-rail__note .icon { color: var(--accent); font-size: 18px; }

.fmr-main { min-width: 0; padding: 0 14px; }
.fmr-head { position: relative; display: grid; justify-items: center; padding: max(14px, env(safe-area-inset-top)) 0 18px; text-align: center; }
.fmr-head__tools { display: flex; align-self: stretch; justify-content: flex-end; gap: 6px; width: 100%; }
.fmr-head__tools .fm-round { width: 40px; height: 40px; font-size: 17px; background: transparent; box-shadow: none; }
.fmr-head__tools .fm-lang.mz-lang { height: 40px; background: transparent; box-shadow: none; }
.fmr-head__tools .fm-lang.mz-lang a { min-width: 30px; height: 32px; border-radius: 0; background: transparent; color: var(--muted); }
.fmr-head__tools .fm-lang.mz-lang a.is-on { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
.fmr-head__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-size: 20px; }
.fmr-name { margin: 8px 0 0; font-family: var(--fm-display); font-weight: var(--fm-display-weight); font-size: clamp(32px, 9vw, 46px); line-height: 1; letter-spacing: -.02em; }
.fmr-about { margin: 8px 0 0; max-width: 30ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fmr-extras { padding: 4px 0 6px; }

.fmr-sec { padding-top: 14px; scroll-margin-top: 10px; }
.fmr-banner { position: relative; height: 176px; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.fmr-banner__img { position: absolute; inset: -10% 38% -10% 0; }
.fmr-banner__img img { width: 100%; height: 100%; object-fit: cover; }
.fmr-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, color-mix(in srgb, var(--ink) 92%, #000) 62%); }
.fmr-banner__tx { position: absolute; z-index: 1; right: 16px; top: 0; bottom: 0; width: 52%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.fmr-banner__tx h2 { margin: 0; font-family: var(--fm-display); font-weight: var(--fm-display-weight); font-size: 24px; line-height: 1.08; }
.fmr-banner__tx i { width: 28px; height: 2px; margin: 10px 0; background: rgba(255,255,255,.65); }
.fmr-banner__tx p { margin: 0; font-size: 13px; opacity: .85; }
:root[data-mode="dark"] .fmr-banner::after { background: linear-gradient(90deg, transparent 30%, #0c0a08 62%); }
.fmr-sec__title { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 0; font-family: var(--fm-display); font-weight: var(--fm-display-weight); font-size: 26px; }
.fmr-sec__title small { font-family: var(--font-b); font-size: 12px; color: var(--muted); font-weight: 600; }
.fmr-list { padding: 4px 0 6px; }
.fmr-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fmr-row:last-child { border-bottom: 0; }
.fmr-row__img { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 26px; box-shadow: 0 10px 18px -12px rgba(0,0,0,.45); }
.fmr--square .fmr-row__img { border-radius: 18px; }
.fmr-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fm-ease); }
.fmr-row:hover .fmr-row__img img { transform: scale(1.08) rotate(4deg); }
.fmr-row .mz-item__name { margin: 0; font-family: var(--fm-display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.fmr-row .mz-item__desc { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.fmr-row .mz-item__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fmr-row__price { align-self: start; padding-top: 2px; display: inline-grid; justify-items: end; font-weight: 700; font-size: 17px; white-space: nowrap; color: var(--ink); }
.fmr-foot { padding: 24px 0 40px; text-align: center; }
.fm--rail .mz-wifi, .fm--rail .mz-info, .fm--rail .mzb-hours, .fm--rail .mzb-social { box-shadow: 0 0 0 1px var(--line); }
.fm--rail .mz-info__row small, .fm--rail .mz-wifi__sum small { overflow-wrap: anywhere; }
