<?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_1b199662-33ed-4809-a3a7-0e75ffcec62a">
        <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:RegnFileNb
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_ad8bbf7e-e6de-40f2-8a1e-9c938e454588">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_76dc388d-2adb-455c-ab97-655e8ce24250">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_7bfc196d-9c5f-4a98-917d-83c662439649">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_a3957d50-fd89-4ba9-b275-7a1dc86ba76e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_b08d9260-9480-4826-804e-ef594fc95d63">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_37e47e80-a2b3-4ded-92db-6cb0ecc0d5c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_0166786d-c37d-46de-8a3e-6fc59cfd47da">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_70324275-877e-4e05-9e58-cfc8040f7543">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_fb13ed5e-bbbd-471f-98f9-b7c931810d68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      id="F_3860675e-c4ae-4961-8b7b-25eb1677c046">&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;3,388,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_1b199662-33ed-4809-a3a7-0e75ffcec62a"
      decimals="-3"
      id="F_78e3d670-7cf7-4e3f-a596-4011d45a8121"
      unitRef="U_USD">3388000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
