<?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_34e67e9f-2ca4-4bde-9885-9b2d956302dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_245d59b4-a142-406b-ae20-f3cee2062314">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_cd5a0753-40c6-4cbd-ba34-05f5d2c7e180">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_1461eecb-593f-4638-9bea-88f815d52cc8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_ca304a3c-a230-4632-9c6b-d0c5a80d66e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_4222532e-f2a6-43ca-8505-109c6b367dc6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_f32d3d0a-e2c9-46ec-a5ec-a4cb204ae829">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_1028b527-1273-4886-969a-7f75cbf62b7c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_e1f8241b-8aa0-4b06-90d7-4767f73a2324">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_3bddd50f-9169-4781-a3c2-bdea0b1d8fc7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      id="F_b5962250-fd96-43c8-b3f8-7d28db0dfcfa">&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;600,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_34e67e9f-2ca4-4bde-9885-9b2d956302dd"
      decimals="-3"
      id="F_614d1c88-d450-4dea-aeb1-ab0682864be7"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
