<?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_13747d42-9034-416e-b7ca-5f2a35ce45aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_9c42a849-fa97-4c82-8194-2b1c773253e9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_106b753e-39be-4e4a-861f-b65eff7c3e35">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_a83d6dea-77c7-4719-ab16-e2b4d6881fd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_0c8e70e8-ea5e-4c76-bf50-b31544a57c76">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_726f5f70-ba19-4966-b51b-e7613bb390bf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_3a6ee8b5-4112-4b83-aef0-a711bc6761ee">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_9b330138-a11f-4519-a743-a03bfe523e68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_ebd7ff34-ffb1-406e-96c5-1f88bb621ae4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_4d98b2c5-a9de-466d-a523-167e81df00a5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      id="F_bbe0ff82-4188-4124-b96d-fbfe3c44031c">&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;395,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_13747d42-9034-416e-b7ca-5f2a35ce45aa"
      decimals="-3"
      id="F_f3e35b1c-064f-47c5-a5d3-011cd524b500"
      unitRef="U_USD">395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
