/* EFS Page Sections — matched to the manufacturer page's own panels (site.css). Colours come
   from the theme's variables, with fallbacks, so the sections follow any re-colouring. */
.efs-secs{margin:0 0 16px}
.efs-sec{margin:0 0 16px}
.efs-sec:last-child{margin-bottom:0}
.efs-sec-body{color:var(--body,#3D4656);font-size:14px;line-height:1.65}
.efs-sec-body > :first-child{margin-top:0}
.efs-sec-body > :last-child{margin-bottom:0}
.efs-sec-body p{margin:0 0 12px}
.efs-sec-body h3{font-size:15px;margin:18px 0 8px;color:var(--ink,#101828)}
.efs-sec-body h4{font-size:14px;margin:16px 0 6px;color:var(--ink,#101828)}
.efs-sec-body ul,.efs-sec-body ol{margin:0 0 12px;padding-left:22px}
.efs-sec-body li{margin:0 0 4px}
.efs-sec img{display:block;max-width:100%;height:auto}

/* Image with text: photo one side, words the other; stacked on phones, photo first. */
.efs-sec-it{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:22px;align-items:center}
.efs-sec-it-right .efs-sec-it-pic{order:2}
.efs-sec-it-pic img{width:100%;border-radius:var(--r,10px)}
.efs-sec-it-words > h3{margin-top:0}

/* Gallery */
.efs-sec-grid{display:grid;gap:10px}
.efs-sec-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.efs-sec-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.efs-sec-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.efs-sec-zoom{display:block;border-radius:var(--r,10px);overflow:hidden;background:var(--canvas,#F6F8FB);aspect-ratio:4/3;cursor:zoom-in}
.efs-sec-zoom img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
.efs-sec-zoom:hover img{transform:scale(1.03)}
.efs-sec-zoom:focus-visible{outline:3px solid var(--green,#1F6FD6);outline-offset:2px}

/* Full-width image: no panel, rounded like the cover photo. */
.efs-sec-banner{margin-left:0;margin-right:0}
.efs-sec-banner img{width:100%;border-radius:var(--r-lg,16px);max-height:460px;object-fit:cover}
.efs-sec-banner figcaption{margin-top:8px;color:var(--muted,#6B7689);font-size:13px;line-height:1.5}

/* The enlarged photo. Fixed and centred, so it opens in view on iPhone and iPad too. */
dialog.efs-sec-box{position:fixed;inset:0;margin:auto;padding:0;border:0;background:transparent;
  max-width:min(1200px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:visible}
dialog.efs-sec-box::backdrop{background:rgba(11,37,69,.86)}
dialog.efs-sec-box img{display:block;max-width:min(1200px,calc(100vw - 32px));max-height:calc(100dvh - 32px);
  width:auto;height:auto;border-radius:var(--r,10px)}
dialog.efs-sec-box button{position:absolute;top:-14px;right:-14px;width:36px;height:36px;border-radius:50%;
  border:0;background:#fff;color:var(--forest,#0B2545);font-size:22px;line-height:1;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.3)}
@media(max-width:640px){
  .efs-sec-it{grid-template-columns:1fr;gap:14px}
  .efs-sec-it-right .efs-sec-it-pic{order:0}
  .efs-sec-cols-3,.efs-sec-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  dialog.efs-sec-box button{top:6px;right:6px}
}
@media print{
  .efs-sec{break-inside:avoid}
  .efs-sec-zoom img{transform:none}
  .efs-sec-banner img,.efs-sec-it-pic img{max-height:3in;object-fit:contain}
  .efs-sec-video{display:none}
}

/* Products and recipes (0.2.0, 7 Nov): the sections follow the Specification or the Method panel,
   which carry no bottom margin of their own. The manufacturer page is spaced as before. */
.single-efs_product .efs-secs,.single-efs_recipe .efs-secs{margin-top:16px}
