<?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_45fd49c3-231b-4819-90b3-639490f5b2e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_a43ba345-3b3a-49b1-b5c2-f95b0caeeaf3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_73036d0e-337b-4eab-b3d7-0e0c59f08dd1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_8247b44a-d122-460b-af03-94e0b1e489c6">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_7c723361-d3e5-4523-b21f-f047d7ebed08">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_ac135733-d784-48bb-9378-e3e7b913f53b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_fb0a2569-e542-4c2a-80fb-d207f1e9895d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_ab8ecf00-19ed-4742-89ec-7f7b9c5fcab3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_afec144e-82f2-4d0f-91c8-a76bb9d95b22">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_ee6c6ac3-26ae-4106-aca1-3596b5967e7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_45fd49c3-231b-4819-90b3-639490f5b2e5"
      id="F_04ac01ec-4aec-48d3-b62b-479fcf805eaf">&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;359,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_45fd49c3-231b-4819-90b3-639490f5b2e5"
      decimals="0"
      id="F_e64a2582-820f-43c8-9509-41f1df68ba6b"
      unitRef="U_USD">359000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
