<?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_0a88f76b-ba73-4a99-81a4-8f0a90c9b338">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_7329905e-4a69-4bb9-8302-4cb3fb5e6d9e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_5ac42e59-36d0-46f7-8914-f91b56abc203">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_77e8cf3e-d172-4e06-9075-4c3f1abf5532">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_22554b1c-b1af-488c-b8bb-5f2e7d59b876">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_737ba14c-468c-4dcc-b486-b4235aad2fdb">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_b3bbccb1-6dab-458b-b694-7e97f0430afe">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_447d39be-e959-4661-8dcf-a6acf677c0c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_9c42e633-e588-4209-b8a9-0b8393a22e0e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_a8da4a3d-d606-4c8a-a83f-347b712c68ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      id="F_b493b604-3f3a-4584-a3d6-e3f278ae9281">&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;400,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_0a88f76b-ba73-4a99-81a4-8f0a90c9b338"
      decimals="-3"
      id="F_3d922621-7e6b-4f2e-b6c8-e364a6d44c27"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
