<?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_c078b71e-097c-477a-89e1-59c8c5883645">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_115e1a07-a0fc-4f3d-9556-016bf56d0f4b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_48c34725-3cd3-489a-b394-c7de57cc387f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_55c9161b-eff8-42cd-b2b9-a8a82aa84e1e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_38a9c731-cd33-4408-a996-0fa1aeba7683">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_36fb64f2-bc70-4958-9f49-c90925d49f91">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_a471f401-422c-4f7c-9bf7-225586cb3501">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_b3a11ba5-d137-428a-b43f-cb8caa2dabc7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_f8dff372-564e-4814-a269-c8d43ff1d373">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_7d794878-8efc-4a16-9c5d-12d314707013">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c078b71e-097c-477a-89e1-59c8c5883645"
      id="F_0ca98d66-d317-420d-9b09-05d13ff0afba">&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,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_c078b71e-097c-477a-89e1-59c8c5883645"
      decimals="-6"
      id="F_c5d9c402-d9f8-416a-8e12-cc331d30f275"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
