<?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_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_eaaf0875-9bfa-44a2-a0d2-34bfb28230cd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_8647704e-db7c-4a55-bc68-32c508882de2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_0f2408b5-6e3d-4b34-8a63-4a4f094834b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_8d462b20-5649-4498-a053-e0ca25cf9b24">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_af6927f2-5ccd-4820-944d-f135c5b64009">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_b223ced4-df0f-4f52-bf14-88319ca17c9e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_a74b74be-5eea-4ce1-af30-06a7765d87ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_4b3f5f4a-35b7-43a2-a932-71536358f55b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_94311b73-0054-4b38-b491-d1c10d85a493">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      id="F_0a638a9d-c6af-42fa-aef0-28460ce7cf3b">&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;6,282,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_5cfe62e6-aae1-4d1c-89c5-ead7f36cb7a0"
      decimals="-3"
      id="F_56511565-469e-46b2-add5-07fa9d7e293b"
      unitRef="U_USD">6282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
