/* Makmal Manisan website v2. Colours, fonts and radii come from ds/makmalmanisan/tokens.css.
   One grid for the whole page: 24 px cells, a major line every 120 px. The content column is 1080 px
   (nine 120 px columns) and is centred so that its edges fall on major lines. Dark sections draw the grid;
   light sections use the same columns without drawing them.
   Vertical rhythm in dark sections: every block is a whole number of 24 px cells tall and every gap is a
   whole number of cells, so rules, buttons and photo edges land on grid lines. Text sits inside cells.
   Shapes: everything you can press is a pill (radius-full); everything that holds content uses radius-md. */

.v2{container-type:inline-size;background:var(--surface);color:var(--ink);font-family:var(--font-sans);font-size:17px;line-height:24px;-webkit-font-smoothing:antialiased}
.v2 *{box-sizing:border-box}
:where(.v2) :where(p,h1,h2,h3,h4,ul,ol,dl,dd,figure){margin:0;padding:0}
:where(.v2) :where(ul,ol){list-style:none}
:where(.v2) img{display:block;max-width:100%}
:where(.v2) a{color:inherit}
.v2 a:focus-visible,.v2 summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

/* Content column. Widths below 1176 px step down in whole cells, left-aligned on the 24 px margin. */
.v2-wrap{width:1080px;margin-left:auto;margin-right:auto}

/* Grid ground, anchored to the centre so its lines meet the 1080 column's edges */
.v2-grid{background-color:var(--surface);background-image:linear-gradient(var(--grid-major) 1px,transparent 1px),linear-gradient(90deg,var(--grid-major) 1px,transparent 1px),linear-gradient(var(--grid-minor) 1px,transparent 1px),linear-gradient(90deg,var(--grid-minor) 1px,transparent 1px);background-size:120px 120px,120px 120px,24px 24px,24px 24px;background-position:50% 0,50% 0,50% 0,50% 0;color:var(--ink)}

/* Type. Line heights are whole cells. */
.v2-display{font-weight:800;font-size:56px;line-height:60px;letter-spacing:-0.5px}
.v2-display-one{font-weight:800;font-size:56px;line-height:72px;letter-spacing:-0.5px}
.v2-h1{font-weight:800;font-size:40px;line-height:48px}
.v2-h2{font-weight:800;font-size:28px;line-height:36px}
.v2-h3{font-weight:800;font-size:17px;line-height:24px}
.v2-small{font-size:15px;line-height:24px}
.v2-pair{font-weight:600;font-size:15px;line-height:24px;color:var(--ink-muted)}
.v2-muted{color:var(--ink-muted)}
.v2-mono{font-family:var(--font-mono);font-weight:500}
.v2-label{font-family:var(--font-mono);font-weight:500;font-size:13px;line-height:24px;letter-spacing:1px;text-transform:uppercase;color:var(--ink-muted)}
[data-theme="dark"] .v2-label{color:var(--accent)}
.v2-price{font-weight:800;font-size:24px;line-height:48px;white-space:nowrap}
.v2-tag{display:inline-block;padding:0 8px;border-radius:var(--radius-sm);background:var(--accent);color:var(--on-accent);font-family:var(--font-mono);font-weight:500;font-size:13px;line-height:24px;letter-spacing:1px}

/* Controls: pills, 48 px tall (two cells) */
.v2-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border-radius:var(--radius-full);background:var(--ink);color:var(--surface);font-weight:800;font-size:16px;line-height:24px;text-decoration:none;white-space:nowrap}
.v2-btn:hover{opacity:.9}
.v2-lang{display:inline-flex;height:48px;padding:4px;gap:0;border-radius:var(--radius-full);box-shadow:inset 0 0 0 1px var(--line)}
.v2-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:40px;padding:0 12px;border-radius:var(--radius-full);font-family:var(--font-mono);font-weight:500;font-size:13px;letter-spacing:1px;text-decoration:none}
.v2-lang a[aria-current="true"]{background:var(--accent);color:var(--on-accent)}
.v2-link{display:inline-flex;align-items:center;height:48px;font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap}
.v2-link:hover{text-decoration:underline;text-underline-offset:4px}

/* Header: one 96 px band; its 48 px controls sit between the lines at 24 and 72 */
.v2-header{display:flex;align-items:center;justify-content:space-between;gap:24px;height:96px}
.v2-logo{display:inline-flex;align-items:center;height:48px}
.v2-logo img{height:48px;width:288px}
.v2-nav{display:flex;gap:24px}
.v2-header-right{display:flex;align-items:center;gap:24px}

/* Rules drawn inside a block's own height, so they never push the next block off the grid */
.v2-rule-top{box-shadow:inset 0 1px 0 var(--line)}
.v2-rule-both{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}

/* Fact rows: 48 px each, label left, value right */
.v2-facts>div{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:48px;padding:12px 0;box-shadow:inset 0 1px 0 var(--line)}
.v2-facts>div:last-child{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.v2-facts dt{white-space:nowrap;font-family:var(--font-mono);font-weight:500;font-size:13px;line-height:24px;letter-spacing:1px;text-transform:uppercase;color:var(--ink-muted)}
[data-theme="dark"] .v2-facts dt{color:var(--accent)}
.v2-facts dd{font-family:var(--font-mono);font-weight:500;font-size:17px;line-height:24px;text-align:right}

/* Hero: text in columns 1-4, specimen plate in columns 5-9 (600 x 600) */
.v2-hero{display:grid;grid-template-columns:480px 600px;grid-template-rows:1fr auto;grid-template-areas:"top plate" "facts plate";padding-top:144px;padding-bottom:120px}
.v2-hero-top{grid-area:top;display:flex;flex-direction:column;align-items:flex-start;padding-right:48px}
.v2-hero-facts{grid-area:facts;padding-right:48px}
.v2-plate{grid-area:plate;position:relative;width:600px;height:600px;border-radius:var(--radius-md);overflow:hidden;background:var(--gading)}
.v2-plate img{width:100%;height:100%;object-fit:cover}
.v2-plate-caption{position:absolute;left:24px;bottom:24px;font-family:var(--font-mono);font-weight:500;font-size:13px;line-height:24px;letter-spacing:1px;text-transform:uppercase;color:var(--ungu-kabus)}
/* Annotation: a leader from the jar wall to a label, at the measured height of each layer */
.v2-note{position:absolute;left:58%;right:4%;height:0;border-top:1px solid var(--terung)}
.v2-note::before{content:"";position:absolute;left:-4px;top:-4px;width:7px;height:7px;border-radius:50%;background:var(--terung)}
.v2-note span{position:absolute;left:8%;right:0;font-family:var(--font-mono);font-weight:500;color:var(--terung)}
.v2-note .v2-note-name{font-size:13px;line-height:18px;letter-spacing:1px;text-transform:uppercase;color:var(--ungu-kabus)}
.v2-note .v2-note-qty{font-size:17px;line-height:24px}
.v2-note--above .v2-note-name{bottom:30px}
.v2-note--above .v2-note-qty{bottom:6px}
.v2-note--below .v2-note-qty{top:6px}
.v2-note--below .v2-note-name{top:30px}

/* Light sections */
.v2-section{padding-top:120px;padding-bottom:120px}
.v2-head{display:flex;flex-direction:column;gap:24px;max-width:600px;margin-bottom:48px}
.v2-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(312px,100%),1fr));gap:24px}
.v2-card{display:flex;flex-direction:column;background:var(--surface-tile);border-radius:var(--radius-md);box-shadow:inset 0 0 0 1px var(--tile-edge);overflow:hidden}
.v2-card>img{width:100%;object-fit:cover}
.v2-card-body{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:24px;flex:1}
.v2-card-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:16px;width:100%}
.v2-note-line{margin-top:24px;max-width:720px}

.v2-split{display:grid;grid-template-columns:480px 120px 480px}
.v2-split>:first-child{grid-column:1}
.v2-split>:last-child{grid-column:3}
.v2-split-photo{width:480px;height:600px;object-fit:cover;border-radius:var(--radius-md)}
.v2-stack{display:flex;flex-direction:column;align-items:flex-start;gap:24px}

/* How to order: steps and drop days share column lines at 0, 120 and 480 */
.v2-steps>li{display:grid;grid-template-columns:120px 360px 600px;padding:24px 0;box-shadow:inset 0 1px 0 var(--line)}
.v2-steps>li:last-child{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.v2-step-n{font-family:var(--font-mono);font-weight:500;font-size:17px;line-height:24px;color:var(--accent)}
.v2-step-t{font-weight:800;font-size:28px;line-height:24px}
.v2-step-d{color:var(--ink-muted)}
.v2-days{margin-top:96px}
.v2-days-row{display:grid;grid-template-columns:120px 360px 600px;align-items:center;min-height:48px;box-shadow:inset 0 1px 0 var(--line)}
.v2-days-row:last-child{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.v2-days-row .v2-mono{font-size:17px;line-height:24px}
.v2-days-row .v2-cell-label{display:none}
.v2-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin-top:48px}

/* Lab */
.v2-lab-photo{width:600px;height:450px;object-fit:cover;border-radius:var(--radius-md)}
.v2-lab{display:grid;grid-template-columns:480px 600px}
.v2-lab>:first-child{padding-right:48px}
.v2-paper{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(312px,100%),1fr));gap:24px;margin-top:96px}
.v2-paper>li{display:flex;flex-direction:column;gap:8px;padding-top:24px;box-shadow:inset 0 1px 0 var(--line)}
.v2-paper img{width:72px;height:72px;margin-bottom:16px}

/* FAQ: question list in columns 4-9 */
.v2-faq{display:grid;grid-template-columns:360px 720px}
.v2-faq details{box-shadow:inset 0 1px 0 var(--line)}
.v2-faq details:last-child{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.v2-faq summary{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:72px;font-weight:800;cursor:pointer;list-style:none}
.v2-faq summary::-webkit-details-marker{display:none}
.v2-faq summary::after{content:"+";font-family:var(--font-mono);font-weight:500;font-size:20px;color:var(--ink-muted)}
.v2-faq details[open] summary::after{content:"\2212"}
.v2-faq details p{padding:0 48px 24px 0;max-width:66ch}

/* Footer */
.v2-footer-cta{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px}
.v2-footer-cols{display:grid;grid-template-columns:360px 240px 240px 240px;margin-top:96px;padding-top:24px;box-shadow:inset 0 1px 0 var(--line)}
.v2-footer-cols h2{font-weight:600;font-size:15px;line-height:24px;color:var(--kabus)}
.v2-footer-cols ul{display:flex;flex-direction:column}
.v2-footer-cols li{display:flex;align-items:center;min-height:48px}
.v2-footer-cols li.v2-multi{padding:12px 24px 12px 0}
.v2-footer-base{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;min-height:48px;margin-top:48px;box-shadow:inset 0 1px 0 var(--line);padding-top:0}
.v2-tbc{background:#fff2a8;color:var(--terung);border-radius:var(--radius-sm);padding:0 6px;font-family:var(--font-mono);font-size:13px;letter-spacing:0.5px}

/* Policies */
.v2-legal{display:grid;grid-template-columns:360px 720px}
.v2-legal h3{font-weight:800;font-size:17px;line-height:24px;margin-top:24px}
.v2-legal h3:first-child{margin-top:0}
.v2-legal p{margin-top:8px;max-width:68ch}

/* Hero option C: the plate holds three photos that cross-fade */
.v2-fade img{position:absolute;inset:0;opacity:0;animation:v2fade 18s infinite}
.v2-fade img:nth-child(1){animation-delay:0s}
.v2-fade img:nth-child(2){animation-delay:6s}
.v2-fade img:nth-child(3){animation-delay:12s}
@keyframes v2fade{0%{opacity:0}6%{opacity:1}33%{opacity:1}39%{opacity:0}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.v2-fade img{animation:none}.v2-fade img:nth-child(1){opacity:1}}

/* Hero option B: light, photo-led */
.v2-heroB{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:96px;padding-bottom:96px}

/* Reviews and Instagram options */
.v2-reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(312px,100%),1fr));gap:24px}
.v2-reviews>li{display:flex;flex-direction:column;gap:16px;padding-top:24px;box-shadow:inset 0 1px 0 var(--line)}
.v2-ig{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:24px}
.v2-ig a{display:block;border-radius:var(--radius-md);overflow:hidden}
.v2-ig img{width:100%;aspect-ratio:1/1;object-fit:cover}

/* ---- Below the 1176 px desktop column: step the column down in whole cells, left-anchor the grid ---- */
@container (max-width:1175px){
  .v2-grid{background-position:24px 0,24px 0,24px 0,24px 0}
  .v2-wrap{width:984px;margin-left:24px;margin-right:0}
  .v2-nav{display:none}
}
@container (max-width:1031px){
  .v2-wrap{width:744px}
  .v2-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"top" "plate" "facts";row-gap:48px}
  .v2-hero-top,.v2-hero-facts{padding-right:0}
  .v2-split,.v2-lab,.v2-faq,.v2-legal{grid-template-columns:minmax(0,1fr);row-gap:48px}
  .v2-split>:last-child{grid-column:1}
  .v2-split-photo{width:480px;height:600px}
  .v2-lab>:first-child{padding-right:0}
  .v2-steps>li,.v2-days-row{grid-template-columns:72px minmax(0,1fr)}
  .v2-steps>li>:nth-child(3){grid-column:2}
  .v2-footer-cols{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}
}
@container (max-width:791px){
  .v2-wrap{width:504px}
  .v2-plate{width:480px;height:480px}
  .v2-split-photo,.v2-lab-photo{width:480px;height:480px}
  .v2-days-head{display:none}
  .v2-days-row{grid-template-columns:minmax(0,1fr);padding:12px 0}
  .v2-days-row>*{display:flex;gap:8px;align-items:center;min-height:24px}
  .v2-days-row .v2-cell-label{display:inline;font-family:var(--font-sans);font-weight:600;font-size:15px;color:var(--ink-muted)}
  .v2-days-row>:first-child{font-weight:800}
}
@container (max-width:551px){
  .v2-wrap{width:360px}
  .v2-section{padding-top:72px;padding-bottom:72px}
  .v2-hero{padding-top:48px;padding-bottom:72px}
  .v2-header .v2-btn{display:none}
  .v2-logo img{height:40px;width:240px}
  .v2-display{font-size:40px;line-height:48px}
  .v2-display-one{font-size:40px;line-height:48px}
  .v2-h1{font-size:28px;line-height:48px}
  .v2-plate{width:336px;height:336px}
  .v2-split-photo,.v2-lab-photo{width:336px;height:336px}
  .v2-steps>li{grid-template-columns:48px minmax(0,1fr)}
  .v2-step-t{font-size:22px}
  .v2-footer-cols{grid-template-columns:minmax(0,1fr)}
  .v2-faq details p{padding-right:0}
  .v2-days{margin-top:72px}
  .v2-facts>div{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;min-height:72px;padding:12px 0}
  .v2-facts dd{text-align:left}
  .v2-paper{margin-top:72px}
}
@container (max-width:407px){
  .v2-wrap{width:336px}
  .v2-plate,.v2-split-photo,.v2-lab-photo{width:312px;height:312px}
}
@container (max-width:383px){
  .v2-wrap{width:312px}
  .v2-plate,.v2-split-photo,.v2-lab-photo{width:288px;height:288px}
}

/* ---- v3: text gutter ----
   Structure (rules, photos, cards, plates, tables) sits on the grid lines. Text and the pills that sit with
   text start one cell (24 px) inside the line they belong to, so no letter touches a line. On phones the
   gutter is half a cell. */
.v2{--gut:24px}
.v2-header{padding-left:var(--gut);padding-right:var(--gut)}
.v2-hero-top{padding-left:var(--gut)}
.v2-facts>div{padding-left:var(--gut);padding-right:var(--gut)}
.v2-head{padding-left:var(--gut)}
.v2-note-line{padding-left:var(--gut)}
.v2-stack>*:not(.v2-facts):not(.v2-rule-top){margin-left:var(--gut)}
.v2-stack.v2-rule-top>*{margin-left:var(--gut)}
.v2-steps>li>*,.v2-days-row>*{padding-left:var(--gut)}
.v2-cta-row{padding-left:var(--gut)}
.v2-gut{padding-left:var(--gut)}
.v2-paper>li{padding-left:var(--gut);padding-right:var(--gut)}
.v2-faq>h2{padding-left:var(--gut)}
.v2-faq summary{padding-left:var(--gut);padding-right:var(--gut)}
.v2-faq details p{padding-left:var(--gut)}
.v2-footer-cta{padding-left:var(--gut);padding-right:var(--gut)}
.v2-footer-cols>div{padding-left:var(--gut)}
.v2-footer-base{padding-left:var(--gut)}
.v2-legal>h2{padding-left:var(--gut)}
.v2-legal>div{padding-left:var(--gut)}
.v2-plate-caption{left:24px}
/* Hero B: light, photo-led; the photo's backdrop is the page colour, so the jars sit on the page */
.v3-heroB{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:96px;padding-bottom:120px}
.v3-heroB img{width:100%;height:auto;margin-top:48px}
.v3-heroB-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 48px;margin-top:24px}
.v3-heroB-facts span{font-family:var(--font-mono);font-weight:500;font-size:15px;line-height:24px}
.v3-heroB-facts b{font-family:var(--font-mono);font-weight:500;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--ink-muted);margin-right:12px}
.v3-sq{aspect-ratio:1/1}
@container (max-width:551px){
  .v2{--gut:12px}
  .v3-heroB{padding-top:48px;padding-bottom:72px}
}

/* Final: upright lab photo (5:6), heights in whole cells */
.v3-lab-tall{width:600px;height:720px;object-fit:cover;border-radius:var(--radius-md)}
@container (max-width:1031px){.v3-lab-tall{width:480px;height:576px}}
@container (max-width:551px){.v3-lab-tall{width:336px;height:408px}}
@container (max-width:407px){.v3-lab-tall{width:312px;height:384px}}
@container (max-width:383px){.v3-lab-tall{width:288px;height:336px}}

/* Final r2: the hero photo fills the content column; the subject's edges sit on the 24 px text gutter.
   Heights are whole cells at each column width (about 2:3 of the width); cover trims only flat page colour. */
.v3-heroB .v4-hero-img{display:block;width:100%;height:720px;object-fit:cover;margin-top:24px}
@container (max-width:1175px){.v3-heroB .v4-hero-img{height:648px}}
@container (max-width:1031px){.v3-heroB .v4-hero-img{height:480px}}
@container (max-width:791px){.v3-heroB .v4-hero-img{height:336px}}
@container (max-width:551px){.v3-heroB .v4-hero-img{height:240px}}
@container (max-width:407px){.v3-heroB .v4-hero-img{height:216px}}
@container (max-width:383px){.v3-heroB .v4-hero-img{height:192px}}

/* Final r2: the lab text column carries the paperwork; it ends on the photo's bottom edge */
.v4-lab-text{display:flex;flex-direction:column;justify-content:space-between;row-gap:48px}
.v4-paper{width:100%}
.v4-paper-h{padding:12px var(--gut);box-shadow:inset 0 1px 0 var(--line)}
.v4-paper ul{list-style:none;margin:0;padding:0}
.v4-paper li{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:24px;align-items:center;padding:12px var(--gut);box-shadow:inset 0 1px 0 var(--line)}
.v4-paper li:last-child{box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.v4-paper img{width:48px;height:48px;display:block}
.v4-paper p{margin:0}
@container (max-width:551px){.v4-paper li{column-gap:12px}}
