<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_0be75548-ec6d-4a29-9c33-caf17682b27e">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_ef7769b8-6f2f-4138-aa58-18855369177a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_8bf7218d-df90-49a7-9e0a-e1ed08e440ff">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_0624d8d0-6a06-49fa-bdbb-672a81401237">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_dbc94c2a-0b51-402a-b41c-d7da9f25d0b2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_c13c485b-19df-4b47-9d70-19eeb16ad783">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_2eab98e0-fb86-4af7-ae0b-1a745c3baf39">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_8c0bb9d5-2e12-484a-8b3f-2886ce9d5da4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_249ecf43-811d-480a-b09a-d9a56ad27bd9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      id="F_cccc2fdf-0aaa-44b9-a4fa-c92f4c9acb16">&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;2,300,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_9ccf3c75-f4ec-4784-a0a1-a3890d669115"
      decimals="0"
      id="F_cd2c2c43-8721-426b-8320-cdaa990f2d23"
      unitRef="U_USD">2300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
