<?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_eb455aa6-1ec1-4cfd-849e-102e6308a239">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_a4a0e56c-5695-4b94-9b70-40af5587a716">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_7f79dd89-d65d-46d5-bf26-05aa5145904e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_833fff30-348c-4098-bbdf-fd8797beeca5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_6a1e6468-2f6a-42f2-9c3d-5fca7e8713b2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_f63ceca6-1668-4760-9638-97f6468410de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_f998950d-8b56-4edf-8700-13236f2e0f07">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_fc44eb63-34be-4926-9746-129e5f09eb6c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_1279bf93-f7b5-4daf-9163-c0c1a020a2db">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_ad601719-94a7-4ef8-9851-cc242b069ad3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      id="F_d0584e4e-7db3-4dd9-86b0-b4ec8e30fd1e">&lt;p style="font-size:10pt;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;13,196,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_eb455aa6-1ec1-4cfd-849e-102e6308a239"
      decimals="-3"
      id="F_fa253bf6-0de5-43b6-a818-c46e4212ba5c"
      unitRef="U_USD">13196000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
