<?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_f7165594-adda-4b28-9598-cb7dc01c37ea">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_8987447d-f123-41e3-9031-87866ffd6e43">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_99ad6daf-73a5-422e-a810-bfb2bffa56d8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_7ca59aee-6990-4b1a-8162-cc51d4215c11">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_3358ef65-47df-480e-a62c-8d894aa7c484">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_9a983594-1a39-49ad-b3d6-3d241bfbc72e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_c92d95f6-94e2-42a3-b457-5da0f12070cd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_625da6cc-6e35-47cf-ba0f-a7477dda013f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_89b8306a-6b68-4b06-998c-ffe07bc20ec3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_0245ee8e-fd2a-4321-b354-975cf7e2c798">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7165594-adda-4b28-9598-cb7dc01c37ea"
      id="F_3b4d24ca-7689-4038-9d45-3cb3420b2569">&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,250,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_f7165594-adda-4b28-9598-cb7dc01c37ea"
      decimals="-3"
      id="F_e3c5493a-c5d5-48e5-b6ea-52b4969e17d0"
      unitRef="U_USD">3250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
