<?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_aec459cd-d072-4ad0-86c8-a103962e437e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_28d227cf-07e9-4240-bf1e-7e62f52c8b0d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_18ccb54b-4812-426a-ab42-ab205cfaf1d8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_29d20649-a554-492c-b270-43309d2f77da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_3b802540-b82a-480c-971e-0af0e5ff8337">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_6454416b-a2b1-4ce2-ab15-36adf72ce4ea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_dcb7ebf1-00dc-4bde-af91-8a4964254887">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_d2a4d2ce-df81-4a9f-ab8d-d5c5b3fd7f7d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_b6dde95e-f6d0-42bc-a458-c4fa861c83ce">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_cb0b6914-276c-460b-8c0d-015fbf0d03ed">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_aec459cd-d072-4ad0-86c8-a103962e437e"
      id="F_d2e72dd8-cc03-4111-90af-95994ea5989f">&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;3,000,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_aec459cd-d072-4ad0-86c8-a103962e437e"
      decimals="-6"
      id="F_c0012370-ef30-4b88-9ad0-7a7ecb034613"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
