{"version":3,"file":"DarkSurface.DXLErQNi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sDLQwPaA9OH3GsLgMDic/2kKKsaR8CzGyRmMpH2Nj/DarkSurface.js"],"sourcesContent":["// Planta template · Marks dark sections so the focus ring turns butter-yellow. Overrides: withDarkSurface, withDarkSurfaceInstance, withLightSurfaceInstance.\n// Planta — dark-surface marker (rule 4). Apply \"withDarkSurface\" as a code override to any dark frame\n// (Footer, mobile menu overlay, Spaces on Home A, Home D hero, Memberships Dark, CTA panels).\n// It adds data-surface=\"dark\"; the site CSS (Site Settings › Custom Code) then draws the focus ring in\n// butter (bg/highlight) instead of cobalt — Figma \"Focus/Ring Inverse\". Cobalt on ink is ~2.6:1 (<3:1).\n// Inverse Header variants get the same attribute from withScrollTone (HeaderScroll.tsx).\nimport{jsx as _jsx}from\"react/jsx-runtime\";export function withDarkSurface(Component){return function DarkSurface(props){return /*#__PURE__*/_jsx(Component,{...props,\"data-surface\":\"dark\"});};}// Component INSTANCES (Card/Membership Featured, Card/Amenity Dark, CTA Panel): Framer drops data-*\n// props passed straight to an instance, so wrap it in a layout-neutral element that carries the\n// attribute. Apply only to instances that are dark on every breakpoint.\nexport function withDarkSurfaceInstance(Component){return function DarkSurfaceInstance(props){return /*#__PURE__*/_jsx(\"div\",{\"data-surface\":\"dark\",style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}// White cards on a dark page (Card/Space, Card/Membership Standard on Home D): their links/buttons sit on\n// white, where butter fails 3:1. data-surface=\"light\" turns the ring back to cobalt inside them; a dark\n// surface nested inside again (e.g. Featured plan) turns it butter (CSS handles up to 3 levels).\nexport function withLightSurfaceInstance(Component){return function LightSurfaceInstance(props){return /*#__PURE__*/_jsx(\"div\",{\"data-surface\":\"light\",style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDarkSurface\":{\"type\":\"reactHoc\",\"name\":\"withDarkSurface\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDarkSurfaceInstance\":{\"type\":\"reactHoc\",\"name\":\"withDarkSurfaceInstance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLightSurfaceInstance\":{\"type\":\"reactHoc\",\"name\":\"withLightSurfaceInstance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DarkSurface.map"],"mappings":"oGAM2C,SAAgB,EAAgB,EAAU,CAAC,OAAO,SAAqB,EAAM,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,eAAe,MAAM,CAAC,CAAE,CAAE,CAGhM,SAAgB,EAAwB,EAAU,CAAC,OAAO,SAA6B,EAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,eAAe,OAAO,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,CAGpO,SAAgB,EAAyB,EAAU,CAAC,OAAO,SAA8B,EAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,eAAe,QAAQ,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,iBAN7L"}