<?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_3384f1c2-c504-4fdf-83b9-718e40d73a98">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_4e8b81eb-5454-4e01-a0d1-7cf2cd3ff145">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_c188c713-f142-4802-9c54-58a017499952">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_4e3964b9-7033-4381-b87b-f392466080fc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_1dc812f3-c346-417d-925d-6485e7bd9d44">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_20d350f1-e45e-490e-94df-71a61312059c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_b6ae4160-9708-4706-b922-d917f5f65733">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_7f0d1b3d-a0a3-4bed-9724-7362f16ed784">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_c88a197d-baa5-440c-8bd2-25423d5d5153">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_bc116cc8-05ed-4f22-9532-d1f75d381245">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      id="F_b0d5a96e-1ccb-4673-9f67-8f684a5bab69">&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;394,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_3384f1c2-c504-4fdf-83b9-718e40d73a98"
      decimals="-3"
      id="F_42f4e6b1-c213-4e39-8666-e2a9dbf68591"
      unitRef="U_USD">394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
