<?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_8f8f8d3f-d7d9-4623-9627-4bc30524b90a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_86608894-379b-4484-9da6-1610bed2ebea">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_56ff6242-16b6-48c8-947a-dd4af9dc491c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_8cb0c6d5-db96-4fa0-84b2-190abe40bc6e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_a0ee1ea9-9052-44f3-a200-f73c16f77edc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_2f4cd2c3-3dd0-4b6a-a09b-ea51f26c6f2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_bdc8a62e-84b2-432f-bacd-d7b9df04eaec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_7eeb854b-b96b-457a-a740-89d744149fc3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_66f6af6b-8875-4c3a-bb0d-a8c0e9166a5c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_0757a25b-ae46-42c9-8d86-3d3e2b13afb7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      id="F_6a700296-36a5-4256-8006-4d3281081cbd">&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;41,339,590&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_8f8f8d3f-d7d9-4623-9627-4bc30524b90a"
      decimals="0"
      id="F_3f91a614-ca67-4453-8562-0d30e117bcf4"
      unitRef="U_USD">41339590</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
