<?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_e8e8d8b5-0433-407a-a995-0473750e7a61">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_7eceba9b-e493-4cca-afdb-88891e914495">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_743f9f39-2531-4b6e-b8a1-8c1e697a48fb">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_395c980e-7e0a-42f7-bcbd-74342400dd3f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_78fa0b67-0b2b-42c6-a25f-6524bc85903c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_26790b3a-008b-4c79-8dc3-80df6f107e41">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_2c2f76a6-41ab-4378-b6a6-d4f262fa0a4c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_bf03f10f-6f05-43f3-b6a3-066be7bac18c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_007c4ccf-3314-4a2b-a05f-c00b7471b594">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_c4284b2b-e00a-41b5-b809-f360daf50758">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e8e8d8b5-0433-407a-a995-0473750e7a61"
      id="F_c144a746-58d3-4f35-b6a4-ee3cace6af3b">&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;560,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_e8e8d8b5-0433-407a-a995-0473750e7a61"
      decimals="-3"
      id="F_55dc0eab-80dc-4985-9b12-f43841c9bf7b"
      unitRef="U_USD">560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
