/* Family "swiss": grid, rules, huge numerals, snap carousels, data tables. Tokens: --ink (rules, type), --bg,
   --surface (cards), --accent (numerals), --fm-display (grotesk). fx rule: ink | accent (rule colour). */
.fm--swiss { background: var(--bg); --fmw-rule: var(--ink); }
.fm--swiss .fm-app { background: var(--bg); }
.fmw--rule-accent { --fmw-rule: var(--accent); }
.fm--swiss .fm-round, .fm--swiss .fm-lang.mz-lang { border-radius: 0; box-shadow: 0 0 0 1.5px var(--ink); background: var(--bg); }
.fm--swiss .fm-lang.mz-lang a { border-radius: 0; }

.fmw-mast { padding: max(12px, env(safe-area-inset-top)) 16px 0; }
.fmw-mast__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--fmw-rule); }
.fmw-mast__kicker { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.fmw-name { margin: 14px 0 0; font-family: var(--fm-display); font-weight: 900; font-size: clamp(54px, 17vw, 96px); line-height: .86; letter-spacing: -.055em; }
.fmw-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; border-top: 2px solid var(--fmw-rule); }
.fmw-facts > div { padding: 8px 8px 10px 0; border-right: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.fmw-facts > div + div { padding-left: 8px; }
.fmw-facts > div:last-child { border-right: 0; }
.fmw-facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fmw-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.fmw-facts a { color: inherit; text-decoration: none; }
.fmw-fig { position: relative; margin: 0 -16px; aspect-ratio: 4 / 3; overflow: hidden; border-block: 2px solid var(--fmw-rule); }
.fmw-fig > div { position: absolute; inset: -6% 0; }
.fmw-fig img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.fmw-fig figcaption { position: absolute; left: 16px; bottom: 10px; padding: 3px 7px; background: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.fmw-about { margin: 14px 0 0; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.fmw-extras { padding: 22px 16px 0; }
.fm--swiss .mz-wifi, .fm--swiss .mz-info, .fm--swiss .mzb-hours, .fm--swiss .mzb-social, .fm--swiss .mzb-text, .fm--swiss .mzb-note { border-radius: 0; box-shadow: 0 0 0 1.5px var(--ink); }

.fmw-label { display: flex; justify-content: space-between; margin: 0 0 0; padding: 8px 0; border-bottom: 2px solid var(--fmw-rule); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fmw-index { padding: 30px 16px 0; }
.fmw-ix { display: grid; grid-template-columns: 1fr auto 24px; grid-template-areas: "n n n" "name c go"; align-items: end; padding: 10px 0 12px; border-bottom: 1.5px solid var(--fmw-rule); color: var(--ink); text-decoration: none; }
.fmw-ix__n { grid-area: n; font-family: var(--fm-display); font-weight: 900; font-size: 92px; line-height: .78; letter-spacing: -.06em; color: var(--accent); transition: transform .5s var(--fm-ease); transform-origin: left bottom; }
.fmw-ix__name { grid-area: name; margin-top: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.fmw-ix__c { grid-area: c; padding: 0 10px 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fmw-ix__go { grid-area: go; font-size: 22px; margin-bottom: 3px; transition: transform .35s var(--fm-spring); }
.fmw-ix:active .fmw-ix__n { transform: scale(.94); }
.fmw-ix:hover .fmw-ix__go { transform: translate(3px, -3px); }

.fmw-sel { padding: 34px 0 0; }
.fmw-sel .fmw-label { margin: 0 16px; }
.fmw-car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 14px 16px 6px; scrollbar-width: none; }
.fmw-car::-webkit-scrollbar { display: none; }
.fmw-card { flex: 0 0 76%; scroll-snap-align: start; border: 1.5px solid var(--ink); background: var(--surface); transition: transform .45s var(--fm-ease), opacity .45s ease; transform: scale(calc(1 - min(1, max(-1, var(--d, 0))) * min(1, max(-1, var(--d, 0))) * .06)); }
.fmw-card__img { display: block; aspect-ratio: 1; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.fmw-card__img .fm-photo, .fmw-card__img .fm-noimg { height: 100%; }
.fmw-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fm--swiss .mz-info__row, .fm--swiss .mz-wifi summary { border-radius: 0; }
.fmw-card__row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 10px 12px 12px; }
.fmw-card__n { font-size: 12px; font-weight: 700; color: var(--accent); }
.fmw-card .mz-item__name { margin: 0; font-family: var(--fm-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.fmw-card .mz-item__price { display: grid; justify-items: end; font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.fmw-foot { display: grid; gap: 2px; margin: 34px 16px 0; padding: 12px 0 40px; border-top: 2px solid var(--fmw-rule); font-size: 12.5px; color: var(--muted); }
.fmw-foot > span:first-child { color: var(--ink); font-weight: 800; font-size: 15px; }

/* category screen */
.fmw-bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: var(--bg); border-bottom: 2px solid var(--fmw-rule); }
.fmw-bar__name { text-align: center; font-weight: 800; font-size: 14px; letter-spacing: -.01em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmw-page { padding-bottom: 10px; }
.fmw-head { padding: 12px 16px 4px; view-transition-name: fm-hero; }
.fmw-head__n { display: block; font-family: var(--fm-display); font-weight: 900; font-size: 44vw; max-font-size: 240px; line-height: .76; letter-spacing: -.07em; color: var(--accent); margin-left: -.05em; }
.fmw-head__name { margin: 10px 0 0; font-family: var(--fm-display); font-weight: 800; font-size: 40px; line-height: .95; letter-spacing: -.045em; }
.fmw-head__meta { display: flex; justify-content: space-between; margin: 14px 0 0; padding: 8px 0; border-block: 2px solid var(--fmw-rule); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fmw-car--cat { padding-top: 16px; }
.fmw-table { margin: 18px 16px 0; border-top: 2px solid var(--fmw-rule); }
.fmw-tr { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.fmw-tr--h { padding: 6px 0; border-bottom: 1.5px solid var(--fmw-rule); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fmw-tr--h span:last-child { text-align: right; }
.fmw-td--n { font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 3px; font-variant-numeric: tabular-nums; }
.fmw-tr .mz-item__name { margin: 0; font-family: var(--fm-display); font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.fmw-tr .mz-item__desc { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.fmw-tr .mz-item__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fm--swiss .mz-badge { border-radius: 0; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; }
.fmw-td--p .mz-item__price { display: grid; justify-items: end; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fmw-next { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 24px 16px 0; padding: 16px; background: var(--ink); color: var(--bg); text-align: left; }
.fmw-next small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.fmw-next b { font-size: 22px; font-weight: 900; color: var(--accent); filter: brightness(1.3); }
.fmw-next span { font-weight: 700; font-size: 17px; }
.fmw-next .icon { font-size: 22px; }

/* screen transitions (no View Transitions API) */
.fmw-catview.is-in { animation: fmwIn .5s var(--fm-ease) both; }
.fmw-home.is-back { animation: fmwBack .5s var(--fm-ease) both; }
@keyframes fmwIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes fmwBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-group(fm-hero) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .fmw-catview.is-in, .fmw-home.is-back { animation: none; } .fmw-card { transform: none; } }
