<?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_a878a23d-c91f-4897-8900-f574df9b970b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_2ed9c558-e1f6-4f84-a88d-1470107cc832">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_e1ef6475-5a1c-42c9-bdbc-0d1f63d5387e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_2e136835-7f7d-4d3b-9294-92d3ede45e41">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_0110318a-fc4a-4251-9853-f8869f36ea11">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_1a3cd654-cda9-4bf9-8ccc-2c29be4219f4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_0fa6e70e-850c-4a4c-b57b-79ffb505ad08">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_0ead6af7-4efd-4598-ba18-3768c8da85e7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_a19f8e98-cf3d-41e2-9478-ece3101d23e0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_eebc29fc-3aff-482c-b4ae-7cf190c5d6a0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a878a23d-c91f-4897-8900-f574df9b970b"
      id="F_dafc9ff1-0e61-4444-b17f-eb5d4df3675f">&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;1,000,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_a878a23d-c91f-4897-8900-f574df9b970b"
      decimals="-6"
      id="F_62dd46cc-8259-4c65-9039-061f00495a51"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
