<?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_e2be961b-8145-43ae-b6b4-dedee6799596">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_06a1ffe9-ecf3-41aa-abc2-61a469c928cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_bca54de8-56e7-4267-ac7f-e4c0c6800176">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_21286915-2996-45d6-a56f-780254276729">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_63c4296e-461d-403a-8961-391409c43630">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_0eb965df-2a74-4057-acae-00857757ba1c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_717ef63b-6f6d-4637-9c4e-26b82fee0b16">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_3679182c-4744-4f7e-a3b9-1254242b7576">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_88d297b8-c9da-4743-8c83-533570825501">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_61efc533-723d-4e07-9761-4cd6c2eeb712">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e2be961b-8145-43ae-b6b4-dedee6799596"
      id="F_1c98088c-df6e-46c2-a807-c798bb8829bd">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:center;"&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;31,440,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_e2be961b-8145-43ae-b6b4-dedee6799596"
      decimals="-3"
      id="F_d835cfaf-626f-4dd8-9091-8ccb89d493d6"
      unitRef="U_USD">31440000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
