<?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_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_2a07ac2e-f5fe-4617-a1a8-fe2abf2a5c75">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_63158f69-8d7f-4f5d-a3d2-25f807b181f1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_68852421-fa75-4ebe-8c8b-52f42475d96b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_2267e041-f20f-4754-b1e8-c4f77fdb8459">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_92dd9045-2e70-4336-8a12-f91d32084950">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_8213050b-22d4-408a-8239-9059ffc25d0a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_1bb13152-b114-4c1f-aa98-d29354c08899">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_f488c047-e922-4b97-9976-be8c3f605fcf">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_daf0d263-ef48-48d4-8d6b-067db7b0fab7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      id="F_c46ede56-4ce3-4d71-9843-d9f185cc5e27">&lt;p style="tab-size:26.66px;font-size:12pt;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_dd239e3e-fc12-4ae2-bfe3-3fb65ce65371"
      decimals="-6"
      id="F_2f260745-6865-4bf0-9f1f-9738092a1965"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
