<?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_3deaf34e-85d9-4e9c-8b56-47f2a80f396b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_72c5b87e-8dd8-4eb3-ad6f-6b6a4bb02985">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_01945b1a-aef1-46da-9ca8-1b3d48effff5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_c42c19e3-62fd-4c61-b4d5-3ebae0191a2b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_7d5b8440-c45a-4f88-b634-5760ba08731e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_32519857-6a43-413d-80b2-131ee7a4aff8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_aa1478b7-0d2b-462e-b864-a4c5fc8c0991">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_d5ba7b10-e2dd-43e4-8d0f-b97020cd48e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_1c1bd83f-c907-4595-be58-b0a2944ede2c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_d1353779-01ef-4631-a9fe-9a57c19b2615">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      id="F_28712242-0e88-42fe-9a63-a69d393faf41">&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,412,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_3deaf34e-85d9-4e9c-8b56-47f2a80f396b"
      decimals="-3"
      id="F_cbec65f8-5e64-47ed-8e78-437ee4b951e7"
      unitRef="U_USD">1412000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
