<?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_a870898d-ad5d-4b4f-bbcb-d202dec9ed95">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_36c1da39-d7f8-4fd9-a893-1861a8b4b096">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_3a34750e-cce2-4f14-9af8-15b0d8247ba6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_b7633343-d9a9-41d2-b555-50e53b49b564">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_88d277b6-9236-433b-b2fc-33b279fdfca0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_6606dfb5-3603-4e1d-9daa-0535580ba164">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_b4a174d3-dd6c-4e8b-8870-6290718eaead">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_ade8871a-5161-4e37-a286-a00f7f262d2b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_7263b454-2cd6-45ce-8e8e-f10a8e96f193">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_58b314b0-4672-46b0-907c-a448a932d8ff">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      id="F_9d6bb57a-97aa-42a8-94df-0425be31adc6">&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;583,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_a870898d-ad5d-4b4f-bbcb-d202dec9ed95"
      decimals="-3"
      id="F_dfb0fc52-991b-4a8c-96b1-f70e9323f76f"
      unitRef="U_USD">583000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
