<?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_34ce18c4-5d1b-499a-943a-d68f1d193cb6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_204fc3ef-6c0f-405a-aa9a-07afa46f438c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_425f6f73-3c6c-4fd4-9f4a-4743c76bd061">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_52044d78-b8a3-4a57-a556-be370eeaf3e1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_53c5eeba-6c88-4b49-8e15-17266e6bbd0a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_a4f83448-81d3-4be8-820a-5f56fd85de49">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_e0e3c17c-cc00-4dd6-b759-3705d505e88b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_34b62100-2785-4424-87ce-3d0412128bb5">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_cfb5ad9a-3c71-4620-ba3d-69d377a77284">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_a4ba3811-2134-4749-a345-8f0ccfc32a65">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      id="F_9c91ec9b-c4ea-4f2a-bbfd-c203d0cb6058">&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,367,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_34ce18c4-5d1b-499a-943a-d68f1d193cb6"
      decimals="-3"
      id="F_d45426d8-d1ee-43c7-a678-3608e3a2f77f"
      unitRef="U_USD">4367000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
