<?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_4f55c599-a8e1-41f5-944b-554e07eebc96">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_940e62e8-15d5-4f7d-93d2-cf8e2b269850">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_4bbb09d1-e36a-4e70-be42-bd72add87362">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_5a345fc1-2887-4d23-93b8-1f01d50c1930">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_abbd9fd0-96d8-4a3e-973e-de1195493988">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_2985bcd6-c5f0-4ca0-acba-b5fa2407d3c9">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_38afbb60-5060-4b26-b674-9455b2dc420a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_728ed479-be9e-4688-8556-6e36ac214ca4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_3e795a90-f313-4acb-bd91-f3f61f9ff2ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_7c596f5e-e781-4f36-8cf1-5995595d081a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4f55c599-a8e1-41f5-944b-554e07eebc96"
      id="F_0383d330-7e6d-471e-92ea-d4dd2a4bf6b8">&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;250,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_4f55c599-a8e1-41f5-944b-554e07eebc96"
      decimals="-3"
      id="F_026faf49-c3a7-4133-9dcf-9c05ad0297d9"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
