<?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_b0b17f1b-c38b-4b07-bd2b-471975883e4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_4dcd8bc5-2d3b-4a4a-9646-57aea3a8688a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_36547cfa-a658-4881-898f-b10290b2cb1d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_2835b837-9132-4c6f-b1b6-6d19639dab2a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_eb33a15b-fd34-4f27-83d1-30d8a35cc69e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_6ab51819-947a-4efd-ab54-d5c1e2c429d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_6530ee4b-bc60-43d6-a692-11a17956af5c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_467767dd-7fd0-4db1-acb7-914cf0980070">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_549b969e-b908-436a-b1a0-1216ad6a254b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_926d935b-58fb-46ac-8053-21aeee36ef2d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      id="F_8ab260d6-3fa1-4799-a60a-a7ea06690300">&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;2,792,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_b0b17f1b-c38b-4b07-bd2b-471975883e4b"
      decimals="-3"
      id="F_02fee089-a1db-4875-bbcd-b5361dbc07cc"
      unitRef="U_USD">2792000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
