<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_42ce87e0-163b-4f81-b0d9-abc459ece5e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_ba9cfc15-fb4d-42aa-8808-de33175c92e2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_a1014373-5ec1-41ac-83ac-5f092d81df1f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_4e1bd050-4a9e-4721-a57f-71c652db62d3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_c92369bc-f13f-4507-b892-f98eba717353">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_e28d354b-8a5e-44c5-b210-45adbc4808b6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_6e4af4ce-bd57-4894-8194-91995dce021e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_60151e37-adf9-4b95-b579-b1ef4590a0a9">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_a2c98c0a-bae1-4d1b-a84d-fc8a82e4c0e8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      id="F_4dff3066-ca77-4ee1-af8b-02c2243acb36">&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;4,972,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_bc8d848d-0be4-4493-bcfe-c3506bee93bd"
      decimals="0"
      id="F_f3bacc59-4bce-43cf-9e0f-318381d8a851"
      unitRef="U_USD">4972000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
