<?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_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_3d137d1f-7466-4754-81f0-1938f375426c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_7ca245b9-059a-409d-8b82-323129f21101">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_db5390ee-cab6-4ccf-a8c7-f0a7fc6c30fd">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_403b4a91-b40e-43e0-a733-51ee564f52dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_5aceaffb-f79b-4f9a-99bf-1832a5751f8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_df674acc-82d1-4952-af99-7eea66a6ed91">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_504bef82-6eee-4de5-9778-b40e3e6f3618">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_6b8f3b07-4871-4b57-8462-661f212229c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_ae560783-25b3-48b3-aba8-a71d1088e40b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      id="F_e65c122d-675f-4f1a-9441-07c173d7a9e4">&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;632,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_39fbf7bf-fb3d-4bcd-b0a5-fedce18ec8d5"
      decimals="-3"
      id="F_dd7603f2-7aef-48ca-a2e9-29be12b5e2dd"
      unitRef="U_USD">632000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
