<?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_e4c1d365-8912-494e-8048-bf05265813ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_97240860-0d99-4162-9073-97f09f54f0fc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_e5bfd4c3-623c-4df5-9072-8a18d849c3b9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_55035ecf-834b-45fb-8a48-d087237c1302">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_d77afe39-16f1-4068-958e-62000c5b8bd8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_829eeae8-b61d-4a2e-a054-8a25503b02fa">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_c885348e-070b-40cc-a52b-9af00ce00e59">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_876f0491-5c38-4d09-98d2-a3d879df4e10">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_ab63eab7-d6e5-42a2-8f74-fb2ddea4a277">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_8a0dba80-0cae-4d84-b93b-1ba28ff0d1f8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e4c1d365-8912-494e-8048-bf05265813ea"
      id="F_fd895d5d-7d95-4560-a2f1-09e46118acab">&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;518,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_e4c1d365-8912-494e-8048-bf05265813ea"
      decimals="-3"
      id="F_6a7d3077-3501-4c17-b071-5b55f6b64109"
      unitRef="U_USD">518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
