/* BUILD FIRST (lib/pages/create.js buildScreen, assets/build.js; 16 Nov 2026). On cd.css tokens and create.css (the address field, the
   orange action, the fine print). One orange action per screen: «Continue», «Next: publish», «Publish my page». */
.bf{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.bf__main{min-width:0}
.bf__k{margin:6px 0 0;font:600 12.5px/1.2 var(--text);letter-spacing:.08em;text-transform:uppercase;color:var(--soft)}
.bf__h{margin:6px 0 6px;font:900 clamp(40px,11vw,64px)/.92 var(--head);text-transform:uppercase;text-wrap:balance}
.bf__p{margin:0 0 14px;font-size:16px;line-height:1.5;color:var(--soft);max-width:34em;text-wrap:pretty}

/* step 2: cards of fields */
.bf__card{margin:0 0 12px;padding:16px;background:var(--card);border:1px solid var(--rule);border-radius:20px}
.bf__card h2{margin:0 0 4px;font:900 22px/1 var(--head);text-transform:uppercase}
.bf__hint{margin:0 0 10px;font-size:14px;line-height:1.45;color:var(--soft)}
.bf__f{display:grid;gap:6px;margin:12px 0 0;min-width:0}
.bf__f>span{font:600 14px/1.2 var(--text)}
.bf__f small{font-size:13px;color:var(--soft)}
.bf__in{width:100%;box-sizing:border-box;min-height:48px;padding:10px 14px;border:1.5px solid var(--rule);border-radius:14px;background:#fff;font:500 16px var(--text);color:var(--ink)}
.bf__in:focus{outline:3px solid var(--orange);outline-offset:1px;border-color:var(--ink)}
.bf__two{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.bf__at{display:flex;align-items:center;border:1.5px solid var(--rule);border-radius:14px;background:#fff;overflow:hidden}
.bf__at i{font-style:normal;padding:0 0 0 14px;color:var(--soft);font:500 16px var(--text)}
.bf__at .bf__in{border:0;padding-left:2px}
.bf__at:focus-within{outline:3px solid var(--orange);outline-offset:1px;border-color:var(--ink)}
.bf__at .bf__in:focus{outline:none}
.bf__does{margin:14px 0 0;padding:0;border:0;display:flex;flex-wrap:wrap;gap:8px}
.bf__does legend{width:100%;margin:0 0 8px;font:600 14px/1.2 var(--text)}
.bf__chip{min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--ink);background:#fff;color:var(--ink);font:600 15px var(--text);cursor:pointer}
.bf__chip[aria-pressed=true]{background:var(--ink);color:#fff}
/* the templates: the real first screen of each, one tap */
.bf__tpls{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scroll-snap-type:x mandatory;scrollbar-width:none}
.bf__tpls::-webkit-scrollbar{display:none}
.bf__tpl{flex:none;width:96px;padding:0;border:0;background:none;cursor:pointer;text-align:center;scroll-snap-align:start;color:var(--ink)}
.bf__tplpv{display:block;aspect-ratio:390/700;border-radius:14px;overflow:hidden;border:2px solid transparent;box-shadow:0 0 0 1px var(--rule)}
.bf__tplpv img{width:100%;height:auto;display:block}
.bf__tpl b{display:block;margin-top:6px;font:600 13px/1.2 var(--text)}
.bf__tpl.is-on .bf__tplpv{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange)}
.bf__tpl:focus-visible{outline:none}.bf__tpl:focus-visible .bf__tplpv{outline:3px solid var(--ink);outline-offset:2px}
/* the photo */
.bf__ph{display:flex;align-items:center;gap:14px}
.bf__av{width:72px;height:72px;flex:none;border-radius:999px;overflow:hidden;display:grid;place-items:center;background:var(--bg);border:1px solid var(--rule);font:900 30px/1 var(--head)}
.bf__av img{width:100%;height:100%;object-fit:cover}
.bf__phb{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.bf__btn2{position:relative;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid var(--ink);font:600 15px var(--text);cursor:pointer;background:#fff}
.bf__btn2 input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bf__btn2:focus-within{outline:3px solid var(--ink);outline-offset:2px}
.bf__link{min-height:44px;padding:0;border:0;background:none;font:600 15px var(--text);color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.bf__bad{margin:8px 0 0;padding:8px 12px;border-radius:10px;background:#FBEAE9;color:var(--bad);font:500 14px/1.35 var(--text)}
/* the links */
.bf__lk{padding:12px 0;border-top:1px solid var(--rule)}
.bf__lk:first-child{border-top:0;padding-top:4px}
.bf__lkh{display:flex;align-items:center;gap:8px}
.bf__lkh b{font:600 13px/1 var(--text);color:var(--soft)}
.bf__lkb{margin-left:auto;display:flex;gap:6px}
.bf__ib{width:44px;height:44px;border-radius:999px;border:1.5px solid var(--rule);background:#fff;font:600 17px/1 var(--text);color:var(--ink);cursor:pointer}
.bf__ib:disabled{opacity:.3;cursor:default}
.bf__lk .bf__f{margin-top:8px}
.bf__add{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin-top:8px;padding:0 14px;border:1.5px dashed var(--rule);border-radius:14px;background:none;font:600 15px var(--text);color:var(--ink);cursor:pointer}
.bf__add span{font-size:22px;line-height:1}
.bf__add small{margin-left:auto;color:var(--soft);font-weight:500}
.bf__local{margin:4px 0 0;font-size:13px;color:var(--soft);text-align:center}
/* the bar: «See my page» (outline, phones only) + the one orange action */
.bf__bar{position:sticky;bottom:0;z-index:5;display:flex;gap:8px;margin:12px -16px 0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 70%,rgba(247,247,243,0))}
.bf__see{flex:0 0 auto;min-height:56px;padding:0 18px;border-radius:999px;border:1.5px solid var(--ink);background:#fff;font:600 15px var(--text);color:var(--ink);cursor:pointer}
.bf .bf__go{flex:1;min-height:56px;border-radius:999px;background:var(--orange);color:var(--ink);font-size:20px}
.bf__back{display:block;margin:10px auto 0}
/* step 3 */
.bf__s3{display:grid;gap:14px;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.bf__s3 .bf__h,.bf__s3 .bf__p{margin:0}
.bf__url{margin:0;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--rule);font:500 16px var(--text);overflow-wrap:anywhere}
.bf__url b{font-weight:700}
.bf__mail{padding:12px 14px;border-radius:12px;background:#FFF4EE;border:1px solid #F3D9CB}
.bf__mail p{margin:0 0 8px;font:600 15px/1.35 var(--text)}

/* the preview: a phone beside the form on a wide screen; full screen on a phone when asked («See my page») */
.bf__pv{display:none}
.bf__pvx{display:none}
.bf__frame{display:block;width:100%;height:100%;border:0;background:#fff}
.bf__blank{display:grid;justify-items:center;align-content:start;gap:10px;padding:64px 20px;height:100%;box-sizing:border-box;background:#F7F7F3;text-align:center}
.bf__blank span{width:96px;height:96px;border-radius:999px;display:grid;place-items:center;background:#fff;border:1px solid #DADDD6;font:900 40px/1 var(--head)}
.bf__blank b{font:900 40px/.95 var(--head);text-transform:uppercase;overflow-wrap:anywhere}
.bf__blank small{font-size:13px;color:var(--soft)}
.bf__blank i{font-style:normal;font-weight:600;color:var(--ink)}
.bf__tplimg{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
body.bf-lock{overflow:hidden}
@media (max-width:859px){
  .bf__pv.is-open{display:flex;flex-direction:column;position:fixed;inset:0;z-index:50;background:var(--bg)}
  .bf__pv.is-open .cf__pvk{display:none}
  .bf__pv.is-open .bf__pvx{display:flex;align-items:center;min-height:52px;margin:0;padding:0 16px;border:0;border-bottom:1px solid var(--rule);background:var(--bg);font:600 16px var(--text);color:var(--ink);text-align:left;cursor:pointer}
  .bf__pv.is-open .bf__phone{flex:1;min-height:0}
  .bf__pv.is-open .bf__screen{height:100%}
}
@media (min-width:860px){
  .bf{grid-template-columns:minmax(0,520px) 360px;justify-content:space-between;align-items:start;gap:56px}
  .bf__pv{display:block;position:sticky;top:16px}
  .bf__phone{border-radius:40px;padding:12px;background:#10161C;box-shadow:0 30px 60px -30px rgba(16,22,28,.55)}
  .bf__screen{height:min(720px,calc(100vh - 110px));border-radius:30px;overflow:hidden;background:#F7F7F3}
  .bf__see{display:none}
  .bf__bar{margin:12px 0 0;padding:10px 0 12px}
  .bf[data-step="1"]{align-items:center}
  .bf[data-step="1"] .cf__h{font-size:88px}
}

/* 17 Nov 2026 (the Linktree benchmark): «¿Qué haces en el pádel?» tiles first, the main-button picks, link rows that drag, and on a phone
   the top of the real page pinned above the form while building. */
.bf__roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bf__role{position:relative;display:grid;justify-items:start;align-content:start;gap:2px;min-height:96px;padding:14px 14px 12px;border:1.5px solid var(--rule);border-radius:18px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.bf__role svg{width:26px;height:26px;margin-bottom:8px}
.bf__role b{font:700 16px/1.15 var(--text)}
.bf__role small{font:500 13px/1.3 var(--text);color:var(--soft)}
.bf__role[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}
.bf__role[aria-pressed=true] small{color:#C9CED3}
.bf__role[aria-pressed=true]::after{content:"";position:absolute;top:12px;right:12px;width:20px;height:20px;border-radius:999px;background:var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310161C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center/13px no-repeat}
.bf__role:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.bf__sub{margin:0 0 2px;font:700 15px/1.2 var(--text)}
.bf__main1{margin:2px 0 14px}
.bf__mains{display:flex;flex-wrap:wrap;gap:8px}
.bf__mainb{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 12px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;color:var(--ink);font:600 15px var(--text);cursor:pointer}
.bf__mainb svg{width:20px;height:20px}
.bf__mainb:first-child{background:var(--ink);color:#fff}
.bf__lkh .la-grip{margin-left:-12px}
.bf__lks.is-sorting .bf__lk{background:var(--card)}
.bf__add{border-style:solid;border-color:var(--ink)}
.bf__add span{width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:var(--ink);color:#fff;font-size:20px}
.bf__pvt,.bf__pvtap{display:none}
.bf__card h2{max-width:none}
.cf-body{--la-toast-b:92px} /* the toast sits above the sticky «Siguiente: publicar» */
/* a link row: the handle, its number and ↑ ↓ ×, then the name and the link (labels for screen readers; the placeholders say it) */
.bf__lk .bf__f{margin-top:6px}
.bf__lk .bf__f>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bf__lk .bf__in{min-height:46px}
.bf__lk .bf__in[data-k=label]{font-weight:600}
@media (max-width:859px){
  .bf[data-step="2"] .bf__pv:not(.is-open){display:flex;order:-1;position:sticky;top:0;z-index:20;align-items:center;gap:14px;margin:0 -16px;padding:10px 16px;background:rgba(247,247,243,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--rule)}
  .bf[data-step="2"] .bf__pv:not(.is-open) .bf__phone{flex:none;width:128px;height:150px;border-radius:18px;overflow:hidden;border:1px solid var(--rule);background:#fff;box-shadow:0 10px 24px -16px rgba(16,22,28,.45);transition:height .2s ease}
  .bf[data-step="2"] .bf__pv:not(.is-open) .bf__screen{position:relative;width:128px;height:100%;overflow:hidden}
  .bf[data-step="2"] .bf__pv:not(.is-open) .bf__frame{width:390px;height:calc(150px * 390 / 128);transform:scale(calc(128 / 390));transform-origin:0 0;pointer-events:none}
  .bf[data-step="2"] .bf__pv:not(.is-open) .bf__pvt{display:grid;gap:3px;min-width:0;margin:0}
  .bf__pvt b{font:600 12px/1.2 var(--text);letter-spacing:.08em;text-transform:uppercase;color:var(--soft)}
  .bf__pvt span{font:600 15px/1.3 var(--text);color:var(--ink);overflow-wrap:anywhere}
  .bf__pvt i{font-style:normal}
  .bf__pvt small{margin-top:6px;font:600 14px/1.2 var(--text);color:var(--ink);text-decoration:underline;text-underline-offset:3px}
  .bf[data-step="2"] .bf__pv:not(.is-open) .bf__pvtap{display:block;position:absolute;inset:0;width:100%;border:0;background:none;cursor:pointer}
  .bf__pvtap:focus-visible{outline:3px solid var(--orange);outline-offset:-3px}
  /* while typing (keyboard up), the pinned page gets small */
  body:has(.bf__main input:focus) .bf[data-step="2"] .bf__pv:not(.is-open) .bf__phone{height:88px}
  .bf[data-step="2"] .bf__see{display:none}
}
@media (prefers-reduced-motion:reduce){.bf__pv .bf__phone{transition:none}}
