<?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_3c7128a9-db16-4f88-b1b7-84303b3ac5ac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_1a0338f9-7671-421c-8d03-0456d870a207">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_73db74a5-e68c-4804-8218-9d2952fcfd5c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_659acbb2-3780-442b-96fb-6bddb4b3e93e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_d70c3de8-caa3-447a-96c4-f9f76b06616f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_3f8431fc-812c-49bf-a087-30a5a1a324ca">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_5758cf3d-a23b-48a5-b008-d5f5fe34d8d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_1363a453-c824-4ab6-94f9-fb7740b6fee1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_721f5d08-92e5-4bac-bdf7-f47ef6421a4b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_f3ce7a7e-04a4-4f0f-a728-901300378a82">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      id="F_0059a8ce-59de-4a7e-ae5c-958d36e84891">&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;9,230,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_3c7128a9-db16-4f88-b1b7-84303b3ac5ac"
      decimals="-3"
      id="F_829b77c8-0b33-4505-8969-37e893da6a2a"
      unitRef="U_USD">9230000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
