/* ewiday: more slide layouts, part 5: table, faq, gallery */
.m5-tw{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.m5-t{display:grid;row-gap:var(--rg,0);font-size:22px;line-height:1.25}
.m5-r{display:grid;grid-template-columns:var(--cols);height:var(--rh);min-height:0}
.m5-r>span{display:flex;align-items:center;min-width:0;height:100%;padding:0 16px}
.m5-r>span.n{justify-content:flex-end;text-align:right}
.m5-r>span:first-child{font-weight:700}
.m5-r.m5-hd>span{font-size:18px;font-weight:700}
/* lines */
.m5-t.m5-lines .m5-r{border-bottom:2px solid var(--ln);font-size:24px}
.m5-t.m5-lines .m5-r.m5-hd{border-bottom:4px solid var(--fg);color:var(--mu)}
.m5-t.m5-lines .m5-r:last-child{border-bottom:0}
/* header bar */
.m5-t.m5-hdr .m5-r{font-size:22px}
.m5-t.m5-hdr .m5-r.m5-hd{background:var(--hi);color:var(--hiFg);border-radius:var(--r) var(--r) 0 0}
.m5-t.m5-hdr .m5-r.m5-hd>span{font-size:20px}
.m5-t.m5-hdr .m5-r:not(.m5-hd):nth-child(even){background:var(--sf)}
.m5-t.m5-hdr .m5-r:last-child{border-radius:0 0 var(--r) var(--r)}
.m5-t.m5-hdr .m5-r>span:first-child{padding-left:28px}.m5-t.m5-hdr .m5-r>span:last-child{padding-right:28px}
/* highlighted column */
.m5-t.m5-col .m5-r{font-size:24px}
.m5-t.m5-col .m5-r>span{border-bottom:2px solid var(--ln)}
.m5-t.m5-col .m5-r.m5-hd>span{border-bottom:4px solid var(--fg);color:var(--mu)}
.m5-t.m5-col .m5-r>span.m5-hl{background:var(--hi);color:var(--hiFg);border-bottom:0;font-weight:700;padding:0 24px}
.m5-t.m5-col .m5-r.m5-hd>span.m5-hl{border-radius:var(--r) var(--r) 0 0;font-size:20px}
.m5-t.m5-col .m5-r:last-child>span{border-bottom:0}
.m5-t.m5-col .m5-r:last-child>span.m5-hl{border-radius:0 0 var(--r) var(--r)}
/* total row */
.m5-t.m5-total .m5-r{border-bottom:2px solid var(--ln);font-size:24px}
.m5-t.m5-total .m5-r.m5-hd{background:var(--sf);border-radius:var(--r);border-bottom:0;margin-bottom:8px}
.m5-t.m5-total .m5-r.m5-hd>span{font-size:20px}
.m5-t.m5-total .m5-r:nth-last-child(2){border-bottom:0}
.m5-t.m5-total .m5-r:last-child{background:var(--hi);color:var(--hiFg);border-radius:var(--r);border-bottom:0;margin-top:8px;font-weight:700}
.m5-t.m5-total .m5-r>span:first-child{padding-left:28px}.m5-t.m5-total .m5-r>span:last-child{padding-right:28px}
/* tiles */
.m5-t.m5-tiles .m5-r{column-gap:8px;font-size:22px}
.m5-t.m5-tiles .m5-r>span{padding:0 24px;border:2px solid var(--ln);border-radius:var(--r)}
.m5-t.m5-tiles .m5-r.m5-hd>span{background:var(--hi);color:var(--hiFg);border-color:var(--hi);font-size:20px}
.m5-t.m5-tiles .m5-r:not(.m5-hd)>span:first-child{background:var(--sf);border-color:var(--sf)}
/* row plates */
.m5-t.m5-rail .m5-r{font-size:22px}
.m5-t.m5-rail .m5-r>span{padding:0 20px}
.m5-t.m5-rail .m5-r>span:first-child{padding-left:28px}.m5-t.m5-rail .m5-r>span:last-child{padding-right:28px}
.m5-t.m5-rail .m5-r.m5-hd{color:var(--mu)}
.m5-t.m5-rail .m5-r:not(.m5-hd)>span{background:var(--sf)}
.m5-t.m5-rail .m5-r:not(.m5-hd)>span:first-child{background:var(--hi);color:var(--hiFg);border-radius:var(--r) 0 0 var(--r)}
.m5-t.m5-rail .m5-r:not(.m5-hd)>span:last-child{border-radius:0 var(--r) var(--r) 0}
/* big figures */
.m5-t.m5-big .m5-r{border-bottom:2px solid var(--ln)}
.m5-t.m5-big .m5-r:last-child{border-bottom:0}
.m5-t.m5-big .m5-r.m5-hd{border-bottom:4px solid var(--fg);color:var(--mu)}
.m5-t.m5-big .m5-r:not(.m5-hd)>span{font:700 32px/1.15 var(--hf)}
.m5-t.m5-big .m5-r:not(.m5-hd)>span:first-child{font:400 22px/1.25 Arial,sans-serif;color:var(--mu)}
/* dark */
.m5-t.m5-dark{background:var(--fg);color:var(--bg);border-radius:var(--r);padding:16px 32px}
.m5-t.m5-dark .m5-r{position:relative;font-size:22px}
.m5-t.m5-dark .m5-r>span{padding:0 8px}
.m5-t.m5-dark .m5-r::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--bg);opacity:.25}
.m5-t.m5-dark .m5-r.m5-hd::after{opacity:.7}
.m5-t.m5-dark .m5-r:last-child::after{display:none}
.m5-t.m5-dark .m5-r.m5-hd>span{opacity:.75}
/* column cards */
.m5-xp{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:24px;align-items:start}
.m5-xp.m5-one{max-width:560px;margin:0 auto;width:100%}
.m5-xc{background:var(--sf);border-radius:var(--r);min-width:0}
.m5-xh{height:64px;display:flex;align-items:center;justify-content:center;padding:0 16px;background:var(--hi);color:var(--hiFg);border-radius:var(--r) var(--r) 0 0;text-align:center;font:700 24px/1.2 var(--hf)}
.m5-xr{height:var(--rh);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;border-bottom:2px solid var(--ln);font-size:20px;line-height:1.2}
.m5-xr:last-child{border-bottom:0}
.m5-xr span{min-width:0;color:var(--mu)}
.m5-xr b{min-width:0;text-align:right;font:700 22px/1.2 Arial,sans-serif}
.m5-xp.m5-c3 .m5-xr,.m5-xp.m5-c4 .m5-xr{padding:0 20px;font-size:18px}
.m5-xp.m5-c3 .m5-xr b,.m5-xp.m5-c4 .m5-xr b{font-size:20px}

/* ---- boxes: cells on a 24-track grid (faq, gallery) ---- */
.m5-box{flex:1;min-height:0;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:var(--g,24px);align-content:center}
.m5-box>*{min-width:0;min-height:0}
.m5-fc .m5-q{display:block;font:700 24px/1.25 var(--hf)}
.m5-fc .m5-a{display:block;font-size:20px;line-height:1.4;color:var(--mu)}
/* list */
.m5-fl .m5-fc{display:grid;grid-template-columns:5fr 7fr;column-gap:48px;align-items:center;border-top:2px solid var(--ln)}
.m5-fl .m5-fc:last-child{border-bottom:2px solid var(--ln)}
/* plate pairs */
.m5-fp .m5-fc{display:grid;grid-template-columns:5fr 7fr;gap:8px}
.m5-fp .m5-q,.m5-fp .m5-a{display:flex;align-items:center;border-radius:var(--r);padding:0 28px}
.m5-fp .m5-q{background:var(--hi);color:var(--hiFg);font-size:22px}
.m5-fp .m5-a{background:var(--sf)}
/* cards */
.m5-ft .m5-fc{display:flex;flex-direction:column;justify-content:center;background:var(--sf);border-radius:var(--r);padding:28px 32px}
.m5-ft .m5-bar{display:block;flex:none;width:48px;height:6px;margin-bottom:20px;border-radius:3px;background:var(--ac)}
.m5-ft .m5-q{margin-bottom:12px}
/* dark plate */
.m5-dk{flex:1;min-height:0;display:flex;background:var(--fg);color:var(--bg);border-radius:var(--r);padding:40px 56px}
.m5-dk .m5-box{flex:1}
.m5-fd .m5-fc{position:relative;display:flex;flex-direction:column;justify-content:center;padding-top:20px}
.m5-fd .m5-fc::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--bg);opacity:.3}
.m5-fd .m5-q{color:var(--bg);margin-bottom:8px}
.m5-fd .m5-a{color:var(--bg);opacity:.8}
/* side rule */
.m5-fr .m5-fc{display:flex;flex-direction:column;justify-content:center;padding-left:24px;border-left:6px solid var(--ac)}
.m5-fr .m5-q{margin-bottom:8px}
/* tiles */
.m5-fe .m5-fc{display:grid;grid-template-rows:88px minmax(0,1fr)}
.m5-fe .m5-q{display:flex;align-items:center;padding:0 28px;background:var(--hi);color:var(--hiFg);border-radius:var(--r) var(--r) 0 0;font-size:22px}
.m5-fe .m5-a{padding:16px 28px;background:var(--sf);border-radius:0 0 var(--r) var(--r)}
/* numbered */
.m5-fs .m5-fc{display:grid;grid-template-columns:56px 1fr;column-gap:24px;align-items:center;border-bottom:2px solid var(--ln)}
.m5-fs .m5-fc:last-child{border-bottom:0}
.m5-fs .m5-no{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--r);background:var(--fg);color:var(--bg);font:700 22px/1 var(--hf);font-style:normal}
.m5-fs .m5-q{font-size:22px}
.m5-fs .m5-a{margin-top:4px}
/* bubbles */
.m5-fb .m5-fc{display:grid;grid-template-rows:88px minmax(0,1fr);row-gap:24px}
.m5-fb .m5-q{position:relative;display:flex;align-items:center;padding:0 28px;background:var(--hi);color:var(--hiFg);border-radius:var(--r);font-size:22px}
.m5-fb .m5-q::after{content:"";position:absolute;left:48px;bottom:-16px;width:24px;height:16px;background:var(--hi);clip-path:polygon(0 0,100% 0,0 100%)}
/* columns */
.m5-fk .m5-fc{display:flex;flex-direction:column;border-top:3px solid var(--fg);padding-top:20px}
.m5-fk .m5-q{margin-bottom:12px}

/* ---- gallery ---- */
.ew-s [class*="m5-"] .ew-img img{object-fit:cover}
.ew-s [class*="m5-"] figure{margin:0}
.m5-rf,.m5-pf,.m5-cf,.m5-bf,.m5-lf{display:flex;flex-direction:column;min-height:0;min-width:0}
.m5-rf .ew-img,.m5-pf .ew-img,.m5-bf .ew-img,.m5-lf .ew-img,.m5-tile .ew-img{flex:1;min-height:0}
.m5-nocap figcaption,.m5-nocap .m5-bt{display:none}
.ew-s:not(.ew-edit) .m5-ch:empty{display:none}
/* row, film */
.m5-rf .ew-img{border-radius:var(--r)}
.m5-rf figcaption{margin-top:16px;min-height:29px;font-size:22px;line-height:1.3;color:var(--mu)}
.m5-fm{flex:1;min-height:0;display:flex;background:var(--fg);color:var(--bg);border-radius:var(--r);padding:32px 40px}
.m5-fm .m5-box{flex:1}
.m5-fm .ew-img{border-radius:min(var(--r),12px)}
.m5-fm figcaption{color:var(--bg);font-weight:700}
/* tiles with caption chips */
.m5-tile{position:relative;display:flex}
.m5-tile .ew-img{border-radius:var(--r)}
.m5-ch{position:absolute;left:16px;bottom:16px;max-width:calc(100% - 32px);padding:8px 16px;border-radius:min(var(--r),12px);background:var(--bg);color:var(--fg);font:700 20px/1.25 var(--hf)}
.m5-tile.m5-sm .m5-ch{left:12px;bottom:12px;max-width:calc(100% - 24px);padding:6px 12px;font-size:18px}
.m5-mo{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:16px}
.m5-mo-s{display:grid;gap:16px;min-height:0;grid-template-columns:repeat(var(--c),minmax(0,1fr));grid-template-rows:repeat(var(--r),minmax(0,1fr))}
.m5-wd{flex:1;min-height:0;display:grid;gap:16px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 136px}
.m5-wd-s{display:grid;gap:16px;min-height:0;grid-template-columns:repeat(var(--c),minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
.m5-ce{flex:1;min-height:0;display:grid;gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.m5-ce.m5-n1{grid-template-columns:minmax(0,720px);justify-content:center}
.m5-ce-s{display:grid;gap:16px;min-height:0;grid-auto-rows:minmax(0,1fr)}
.m5-ce.m5-n3 .m5-ce-s{padding:48px 0}
/* prints */
.m5-pf{padding:16px 16px 12px;background:var(--sf);border-radius:min(var(--r),16px);box-shadow:0 0 0 2px var(--ln)}
.m5-pf .ew-img{border-radius:min(var(--r),6px)}
.m5-pf figcaption{margin-top:12px;min-height:26px;text-align:center;font-size:20px;line-height:1.3;color:var(--fg)}
/* circles */
.m5-gc{align-items:start}
.m5-cf{align-items:center}
.m5-cp{flex:none;display:flex;border-radius:50%;overflow:hidden}
.m5-cp .ew-img,.m5-cp .ew-img img{border-radius:50%}
.m5-cf figcaption{margin-top:16px;text-align:center;font:700 22px/1.3 Arial,sans-serif;color:var(--fg)}
/* seamless band */
.m5-bd{flex:1;min-height:0;display:grid;column-gap:4px;grid-template-columns:repeat(var(--c),minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
.m5-bf .ew-img{border-radius:0}
.m5-bf:first-child .ew-img{border-radius:var(--r) 0 0 var(--r)}
.m5-bf:last-child .ew-img{border-radius:0 var(--r) var(--r) 0}
.m5-bf:only-child .ew-img{border-radius:var(--r)}
.m5-bt{padding:16px 16px 0 0;min-height:76px}
.m5-bt i{display:block;margin-bottom:4px;font:700 18px/1.2 var(--hf);font-style:normal;color:var(--mu)}
.m5-bt figcaption{font:700 20px/1.25 Arial,sans-serif;color:var(--fg)}
/* label band */
.m5-lf .ew-img{border-radius:var(--r) var(--r) 0 0}
.m5-lf figcaption{display:flex;align-items:center;min-height:64px;padding:12px 24px;background:var(--hi);color:var(--hiFg);border-radius:0 0 var(--r) var(--r);font:700 22px/1.25 var(--hf)}
.m5-nocap.m5-gl .m5-lf .ew-img{border-radius:var(--r)}
