/* Makmal Manisan website r4.1 (2026-11-19; r4 2026-11-18). Loaded after site-v3.css and site-phone-grid.css, on r4.1 pages only.
   Language-switch heights live in site-r41-eq.css (generated: every text block is as tall as the taller of
   English and Malay at each column width, so switching language moves nothing). */

/* Type: mono is for labels and identifiers only (ORDER SIZE, the SSM number); values and sentences are sans. */
.r4 .v2-facts dd{font-family:var(--font-sans);font-weight:600}
.r4 .v2-facts dd.v2-mono{font-family:var(--font-mono);font-weight:500}
.r4 .v3-heroB-facts span{font-family:var(--font-sans);font-weight:600}

/* Gifts: the gift card, front, inside and back (AI render, 22 Oct, on the page colour; stand-in until a real photo
   is shot). Heights are whole cells; cover trims only page colour above and below the cards. */
.g-card{display:block;width:100%;height:480px;object-fit:cover;margin-bottom:24px}
@container (max-width:1175px){.g-card{height:456px}}
@container (max-width:1031px){.g-card{height:480px}}
@container (max-width:791px){.g-card{height:336px}}
@container (max-width:551px){.g-card{height:auto;aspect-ratio:3 / 2}}

/* Flavours (r4.1): one row that scrolls sideways and runs past the content column to the screen edge.
   The cards fill the column exactly as the gift cards do (three on desktop), so everything inside the column is
   symmetrical; the next card peeks into the page margin and fades out at the screen edge. On phones the margin is
   too narrow to show a peek, so there the card is one column minus two cells and the next card peeks inside. */
.fl{position:relative}
.fl-track{--bleed:calc((1080px - 100cqw) / 2);margin-right:var(--bleed);display:grid;grid-auto-flow:column;grid-auto-columns:344px;gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--fl-l,0px),#000 calc(100% - var(--fl-r,0px)),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 var(--fl-l,0px),#000 calc(100% - var(--fl-r,0px)),transparent 100%)}
.fl-track::-webkit-scrollbar{display:none}
.fl-track>*{scroll-snap-align:start}
.fl-track.fl-more-r{--fl-r:72px}
.fl-track.fl-more-l{--fl-l:72px}
.fl-nav{display:flex;justify-content:flex-end;gap:24px;margin-top:24px}
.fl-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:var(--radius-full);background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;transition:transform 100ms ease,opacity 150ms ease}
.fl-btn:active{transform:scale(0.96)}
.fl-btn:disabled{opacity:.35;cursor:default}
.fl-btn svg{width:20px;height:20px}
.fl-soon-img{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;background:var(--gading);box-shadow:inset 0 0 0 1px var(--tile-edge)}
.fl-soon-img span{font-weight:800;font-size:96px;line-height:96px;color:var(--kabus-shade)}
.fl-soon .v2-tag{background:var(--kabus);color:var(--terung)}
@container (max-width:1175px){.fl-track{--bleed:calc(1008px - 100cqw);grid-auto-columns:312px}.fl-track.fl-more-r{--fl-r:48px}.fl-track.fl-more-l{--fl-l:48px}}
@container (max-width:1031px){.fl-track{--bleed:calc(768px - 100cqw);grid-auto-columns:360px}}
@container (max-width:791px){.fl-track{--bleed:calc(528px - 100cqw);grid-auto-columns:240px}}
@container (max-width:551px){.fl-nav{display:none}.fl-track{--bleed:0px;grid-auto-columns:calc(100% - 48px)}.fl-track.fl-more-r,.fl-track.fl-more-l{--fl-r:0px;--fl-l:0px}}


/* Events: the text sits in a white tile, as the gift cards do; the photo matches its height */
.ev .v2-split{align-items:stretch}
.ev .v2-split-photo{height:100%;min-height:600px}
.ev-tile{padding:24px 0;background:var(--surface-tile);border-radius:var(--radius-md);box-shadow:inset 0 0 0 1px var(--tile-edge)}
.ev-tile .v2-facts{width:100%}
@container (max-width:1031px){.ev .v2-split-photo{height:600px;min-height:0}.ev-tile{width:480px}}
@container (max-width:791px){.ev .v2-split-photo{height:480px}}
@container (max-width:551px){.ev .v2-split-photo{height:auto}.ev-tile{width:100%}}

/* Footer: every line of text fills one 24 px cell, so it never straddles a grid line.
   Rows are two cells tall with the text in the lower cell; the multi-line address starts a cell down. */
.r4 .v2-footer-cols li{align-items:flex-end}
.r4 .v2-footer-cols li .v2-link{align-items:flex-end;line-height:24px}
.r4 .v2-footer-cols li.v2-multi{padding:24px 24px 0 0}
.r4 .v2-footer-base{align-items:flex-end}
.r4 .v2-footer-base p{line-height:24px}
/* The animated logo is not a whole number of cells tall: hold it in a box that is */
.r4 .fa-mark{display:flex;align-items:center;height:144px}
@container (max-width:551px){.r4 .fa-mark{height:120px}}
/* Social icons in one row */
.r4 .sx-row{display:flex;flex-direction:row;gap:0}
.r4 .sx-row li{min-height:48px}
.r4 .sx{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;color:var(--ink);border-radius:var(--radius-full)}
.r4 .sx:hover{background:rgba(244,241,232,.08)}
.r4 .sx svg{width:24px;height:24px;fill:currentColor}
/* QR: tap or click opens WhatsApp too */
.r4 .fa-qr a{display:block;width:144px;height:144px;border-radius:var(--radius-sm)}
.r4 .fa-qr a:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

/* Phones (r4.1): nothing may run past the column. The header's logo, gap and language switch fit inside the
   column's text gutter; the FAQ ask block drops its right padding; on the narrowest phones pills get tighter padding
   and keep their own width (the language-matched widths in site-r41-eq.css start at 360 px). */
@container (max-width:551px){.r4 .v2-header{gap:12px}.r4 .q-ask{padding-right:0}}
@container (max-width:503px){.r4 .v2-logo img{width:216px;height:36px}}
@container (max-width:383px){.r4 .v2-logo img{width:192px;height:32px}}
@container (max-width:359px){.r4 .v2-logo img{width:168px;height:28px}.r4 .v2-btn{padding:0 12px;font-size:15px}}
@container (max-width:335px){.r4 .v2-logo img{width:144px;height:24px}}

/* Events (r4.1, 19 Nov): the quote button sits beside the price, as each gift card's order button does */
.r4 .ev-tile>.ev-foot{margin-left:0;margin-top:0;padding:0 var(--gut)}
.r4 .ev-foot p{margin:0}

/* Pills keep their colours in every state (r4.1, 19 Nov). On phones a tapped link keeps its hover state after you
   come back to the page, and the page-wide a:hover{color:inherit} turned the label the same colour as the pill.
   Dim on hover only where a real pointer hovers. */
.r4 a.v2-btn,.r4 a.v2-btn:hover,.r4 a.v2-btn:visited,.r4 a.v2-btn:active{color:var(--surface)}
@media (hover:none){.r4 .v2-btn:hover{opacity:1}}
