<?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_69cb3c8c-9c42-45c0-928c-b336561eb63e">
        <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:RegnFileNb
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_87954ded-9e77-4842-9a5c-8a98f6dcaa80">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_a4cb8693-2d47-47fe-9b83-92c4b5a18000">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_1b814efb-3f9a-4327-8363-ef87115df63e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_acc77a62-b000-43f6-8767-a8570fbead25">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_4f9ef7d4-040e-4478-857a-c0faa22eed22">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_8bf6e9b5-ce67-4673-b27d-b6a78feb58df">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_be4d9a61-ae17-4d29-b85e-e23862f4c98f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_5b5c2543-f08c-444a-a91f-ebb21ae26a48">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_8e0b7275-727f-44ee-bf4c-d0f2a7f3fb74">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      id="F_640544dc-b44d-44b3-8d64-ccb7ea7282bd">&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;4,971,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_69cb3c8c-9c42-45c0-928c-b336561eb63e"
      decimals="-3"
      id="F_1d823974-cf20-4730-8341-2b93e36bc216"
      unitRef="U_USD">4971000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
