<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_441f143b-18a6-4b83-9952-43a7a083930c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_7ca7ba68-2592-4e66-97a1-8a472491dc64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_fa9a6d8f-6c9c-446a-b549-962d8ddc62e9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_ff7728a0-8ece-445e-bb14-72c5f623d0e5">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_6bb36d43-da51-42a4-b7e1-c32b71cbef4a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_9c10824b-1e55-4b05-9cab-a2edf51ac66e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_447d095b-9002-44d1-9050-27a1c0c25567">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_edb2df9f-bf88-4c8d-8f97-f76a9f513262">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_f969bef3-31be-4a35-ab4a-0750b62c1801">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_6317bd2b-c5cb-4da8-b019-6c8bec62e3d3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      id="F_19f757d5-a77e-4ce9-9c68-f187cf35ae50">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;7,793,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_441f143b-18a6-4b83-9952-43a7a083930c"
      decimals="-3"
      id="F_c980fa49-a87f-46d4-b76b-394f7c4d04e1"
      unitRef="U_USD">7793000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
