<?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_50731db8-c8d2-495c-9535-517a8f2c70dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_30730c9a-041f-492e-b0c5-0cfa7b65b5cf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_67669521-05f5-4ae1-87ef-a0672e54a7f0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_f3172bb5-94f6-44d9-aefc-3cd092a6000f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_7a4ea1df-0d2e-4269-be6e-66b0b3014069">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_b994ac93-c08c-449f-bfb4-8de3a0bc5f07">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_9d78e9af-9c19-4668-9043-8a8fd5e60daf">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_e6a7d85d-b4de-465e-85c8-5eb53c3c5900">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_98edb3b2-6e9f-4618-af84-3463a17eff4d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_baeb051d-873c-41c1-b021-d845ec1f8414">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_50731db8-c8d2-495c-9535-517a8f2c70dd"
      id="F_56da4b85-ceab-4d68-91bb-e541312fd28e">&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,271,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_50731db8-c8d2-495c-9535-517a8f2c70dd"
      decimals="-3"
      id="F_35d9f57b-9935-4c56-80e9-2f4a5bf99735"
      unitRef="U_USD">2271000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
