/* =========================================================
   Voctos — Portal folders (acf/portal-folders)
   Client-portal screens as the hero's saturated folder tiles; the open
   tile runs down into a panel of the same colour.
   Approved mockup: firmwork/previews/portal-folders-b.html
   Tile geometry copied from the hero .ahero-service-item (rounded-rc-6
   rounded-tr-none, shadow-lg, 48x10 folder tab with a 2.5px fillet).
   Switching is CSS-only: one radio per screen (siblings of .vpf-tiles and
   .vpf-panels), so it works with WP Rocket's delayed JavaScript.
   Mobile-first: under 768px every screen is a coloured card in one
   sideways scroll-snap row.
   ========================================================= */
.voctos-portal-folders{padding-top:30px;padding-bottom:30px;font-family:'Unbounded',sans-serif;color:#0d172d;overflow-x:clip}
.voctos-portal-folders .vpf-r{position:fixed;top:0;left:0;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}

/* ── Header: same stack as why-tabs ── */
.voctos-portal-folders .vpf-head{text-align:center;margin-bottom:28px}
.voctos-portal-folders .vpf-eyebrow{font-family:'Unbounded',sans-serif;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#7616f4;margin:0 0 16px;line-height:1}
.voctos-portal-folders .vpf-heading{font-family:'Unbounded',sans-serif;font-weight:400;font-size:26px;line-height:1.25;color:#0d172d;max-width:820px;margin:0 auto 20px}
.voctos-portal-folders .vpf-lead{font-size:15px;font-weight:400;line-height:1.75;color:#3d4561;max-width:1050px;margin:0 auto}
@media (min-width:640px){.voctos-portal-folders .vpf-heading{font-size:40px}}
@media (min-width:1024px){
  .voctos-portal-folders .vpf-head{margin-bottom:48px}
  .voctos-portal-folders .vpf-heading{font-size:38px;margin-bottom:24px;max-width:none}
  .voctos-portal-folders .vpf-lead{font-size:16px}
}

/* ── Folder tiles (shown from 768px) ── */
.voctos-portal-folders .vpf-tiles{display:none;list-style:none;margin:0 0 24px;padding:10px 0 0}
.voctos-portal-folders .vpf-tiles>li{margin:0;padding:0;min-width:0}
.voctos-portal-folders .vpf-tile{position:relative;height:126px;width:100%;display:flex;flex-direction:column;align-items:center;padding:6px 10px 0;border-radius:10px;border-top-right-radius:0;background:var(--c);color:var(--fg);font-family:'Unbounded',sans-serif;cursor:pointer;user-select:none;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);transition:opacity .2s}
.voctos-portal-folders .vpf-tiles:hover .vpf-tile{opacity:.6}
.voctos-portal-folders .vpf-tiles .vpf-tile:hover{opacity:1}
.voctos-portal-folders .vpf-tile-obj{display:block;max-height:64px;max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto}
.voctos-portal-folders .vpf-tile-label{font-size:11px;font-weight:400;line-height:1.3;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center}
.voctos-portal-folders .vpf-tab{position:absolute;right:0;top:0;width:48px;height:10px;background:var(--c);border-radius:5px 10px 0 0;transform:translateY(calc(-100% + 1px))}
.voctos-portal-folders .vpf-tab::before{content:'';position:absolute;right:calc(100% - 2.5px);bottom:-1.4px;width:12px;height:7px;border-right:2.5px solid var(--c);border-bottom:2.5px solid var(--c);border-bottom-right-radius:10px}
.voctos-portal-folders .vpf-no{position:absolute;right:10px;top:-6px;font-size:9px;line-height:1;color:var(--fg);opacity:.8}
.voctos-portal-folders .vpf-fl,.voctos-portal-folders .vpf-fr{display:none;position:absolute;top:calc(100% + 11px);width:14px;height:14px;background:transparent}

/* open folder: the checked tile runs 25px down into its panel */
.voctos-portal-folders .vpf-r:nth-of-type(1):checked~.vpf-tiles>li:nth-child(1)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(2):checked~.vpf-tiles>li:nth-child(2)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(3):checked~.vpf-tiles>li:nth-child(3)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(4):checked~.vpf-tiles>li:nth-child(4)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(5):checked~.vpf-tiles>li:nth-child(5)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(6):checked~.vpf-tiles>li:nth-child(6)>.vpf-tile{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;opacity:1!important}
.voctos-portal-folders .vpf-r:nth-of-type(1):checked~.vpf-tiles>li:nth-child(1)>.vpf-tile::after,
.voctos-portal-folders .vpf-r:nth-of-type(2):checked~.vpf-tiles>li:nth-child(2)>.vpf-tile::after,
.voctos-portal-folders .vpf-r:nth-of-type(3):checked~.vpf-tiles>li:nth-child(3)>.vpf-tile::after,
.voctos-portal-folders .vpf-r:nth-of-type(4):checked~.vpf-tiles>li:nth-child(4)>.vpf-tile::after,
.voctos-portal-folders .vpf-r:nth-of-type(5):checked~.vpf-tiles>li:nth-child(5)>.vpf-tile::after,
.voctos-portal-folders .vpf-r:nth-of-type(6):checked~.vpf-tiles>li:nth-child(6)>.vpf-tile::after{content:'';position:absolute;left:0;right:0;top:100%;height:25px;background:var(--c)}
.voctos-portal-folders .vpf-r:nth-of-type(1):checked~.vpf-tiles>li:nth-child(1) .vpf-fl,
.voctos-portal-folders .vpf-r:nth-of-type(2):checked~.vpf-tiles>li:nth-child(2) .vpf-fl,
.voctos-portal-folders .vpf-r:nth-of-type(3):checked~.vpf-tiles>li:nth-child(3) .vpf-fl,
.voctos-portal-folders .vpf-r:nth-of-type(4):checked~.vpf-tiles>li:nth-child(4) .vpf-fl,
.voctos-portal-folders .vpf-r:nth-of-type(5):checked~.vpf-tiles>li:nth-child(5) .vpf-fl,
.voctos-portal-folders .vpf-r:nth-of-type(6):checked~.vpf-tiles>li:nth-child(6) .vpf-fl{display:block;right:100%;border-bottom-right-radius:14px;box-shadow:7px 7px 0 7px var(--c)}
.voctos-portal-folders .vpf-r:nth-of-type(1):checked~.vpf-tiles>li:nth-child(1) .vpf-fr,
.voctos-portal-folders .vpf-r:nth-of-type(2):checked~.vpf-tiles>li:nth-child(2) .vpf-fr,
.voctos-portal-folders .vpf-r:nth-of-type(3):checked~.vpf-tiles>li:nth-child(3) .vpf-fr,
.voctos-portal-folders .vpf-r:nth-of-type(4):checked~.vpf-tiles>li:nth-child(4) .vpf-fr,
.voctos-portal-folders .vpf-r:nth-of-type(5):checked~.vpf-tiles>li:nth-child(5) .vpf-fr,
.voctos-portal-folders .vpf-r:nth-of-type(6):checked~.vpf-tiles>li:nth-child(6) .vpf-fr{display:block;left:100%;border-bottom-left-radius:14px;box-shadow:-7px 7px 0 7px var(--c)}
.voctos-portal-folders .vpf-tiles>li:first-child .vpf-fl,.voctos-portal-folders .vpf-tiles>li:last-child .vpf-fr{display:none!important}
.voctos-portal-folders .vpf-r:nth-of-type(1):focus-visible~.vpf-tiles>li:nth-child(1)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(2):focus-visible~.vpf-tiles>li:nth-child(2)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(3):focus-visible~.vpf-tiles>li:nth-child(3)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(4):focus-visible~.vpf-tiles>li:nth-child(4)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(5):focus-visible~.vpf-tiles>li:nth-child(5)>.vpf-tile,
.voctos-portal-folders .vpf-r:nth-of-type(6):focus-visible~.vpf-tiles>li:nth-child(6)>.vpf-tile{outline:2px solid #7616f4;outline-offset:4px}

/* ── Panels — mobile: one sideways row of coloured cards ── */
.voctos-portal-folders .vpf-panels{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -25px;padding:12px 25px 4px;scroll-padding:0 25px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.voctos-portal-folders .vpf-panels::-webkit-scrollbar{display:none}
.voctos-portal-folders .vpf-panel{display:flex;flex-direction:column;flex:0 0 84%;min-width:0;scroll-snap-align:start;background:var(--c);color:var(--fg);border-radius:30px;padding:22px 18px 24px}
.voctos-portal-folders .vpf-copy{display:contents}
.voctos-portal-folders .vpf-copy-head{order:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:16px}
.voctos-portal-folders .vpf-obj{display:block;max-height:52px;max-width:64px;width:auto;height:auto;object-fit:contain}
.voctos-portal-folders .vpf-step{display:block;font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--fg);opacity:.7;margin:0 0 8px;line-height:1}
.voctos-portal-folders .vpf-title{font-family:'Unbounded',sans-serif;font-size:20px;font-weight:400;line-height:1.25;color:var(--fg);margin:0}
.voctos-portal-folders .vpf-text{order:3;font-size:13px;font-weight:400;line-height:1.75;color:var(--fg);opacity:.86;margin:18px 0 0}
.voctos-portal-folders .vpf-shot{order:2;position:relative;display:block;background:#fff;padding:5px;border-radius:15px;cursor:zoom-in}
.voctos-portal-folders .vpf-panel--white .vpf-shot{border:1px solid #cbcfdf}
.voctos-portal-folders .vpf-shot-img{display:block;width:100%;height:auto;aspect-ratio:1541/785;object-fit:cover;border-radius:10px}
.voctos-portal-folders .vpf-zoom{position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;background:rgba(13,23,45,.6);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:background .2s ease}
.voctos-portal-folders .vpf-shot:hover .vpf-zoom{background:#7616f4}
.voctos-portal-folders .vpf-zoom svg{width:15px;height:15px}

/* ── Tablet and up: tiles + one open folder ── */
@media (min-width:768px){
  .voctos-portal-folders .vpf-tiles{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px}
  .voctos-portal-folders .vpf-panels{display:block;overflow:visible;margin:0;padding:0}
  .voctos-portal-folders .vpf-panel{display:none;grid-template-columns:minmax(0,1fr);gap:28px;align-items:center;padding:36px}
  .voctos-portal-folders .vpf-panels>.vpf-panel:first-child{border-top-left-radius:0}
  .voctos-portal-folders .vpf-panels>.vpf-panel:last-child{border-top-right-radius:0}
  .voctos-portal-folders .vpf-copy{display:block}
  .voctos-portal-folders .vpf-copy-head{display:block;margin:0}
  .voctos-portal-folders .vpf-obj{display:none}
  .voctos-portal-folders .vpf-step{font-size:11px;margin-bottom:14px}
  .voctos-portal-folders .vpf-title{font-size:30px;margin-bottom:20px}
  .voctos-portal-folders .vpf-text{font-size:14px;margin:0}
  .voctos-portal-folders .vpf-shot{padding:8px}
  .voctos-portal-folders .vpf-zoom{width:36px;height:36px;top:18px;right:18px}
  .voctos-portal-folders .vpf-zoom svg{width:17px;height:17px}
.voctos-portal-folders .vpf-r:nth-of-type(1):checked~.vpf-panels>.vpf-panel:nth-child(1),
.voctos-portal-folders .vpf-r:nth-of-type(2):checked~.vpf-panels>.vpf-panel:nth-child(2),
.voctos-portal-folders .vpf-r:nth-of-type(3):checked~.vpf-panels>.vpf-panel:nth-child(3),
.voctos-portal-folders .vpf-r:nth-of-type(4):checked~.vpf-panels>.vpf-panel:nth-child(4),
.voctos-portal-folders .vpf-r:nth-of-type(5):checked~.vpf-panels>.vpf-panel:nth-child(5),
.voctos-portal-folders .vpf-r:nth-of-type(6):checked~.vpf-panels>.vpf-panel:nth-child(6){display:grid}
}
@media (min-width:1024px){
  .voctos-portal-folders .vpf-tile-label{font-size:12px}
}
@media (min-width:1280px){
  .voctos-portal-folders .vpf-tiles{gap:24px}
  .voctos-portal-folders .vpf-tile{padding:6px 16px 0}
  .voctos-portal-folders .vpf-panel{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;padding:40px 40px 40px 48px}
  .voctos-portal-folders .vpf-panel--noshot{grid-template-columns:minmax(0,1fr)}
  .voctos-portal-folders .vpf-title{font-size:34px}
}
@media (prefers-reduced-motion:reduce){
  .voctos-portal-folders .vpf-tile,.voctos-portal-folders .vpf-zoom{transition:none}
}
