<?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_ad5f102c-bca2-4dde-a201-038e4dba6003">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_39dd0567-ed45-4e9e-a3be-eb0df22508d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_b57d1f57-dbfd-44fb-848d-84a23ca67a24">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_6fa15ea1-f451-4c42-b142-346b0a2a5c15">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_a8819470-6e76-4cbc-97b7-dd62ac899025">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_1a54e518-22e3-4c78-a188-56c87d917a5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_7c5368f9-04e8-43eb-9416-635bbdea3aff">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_afe2ba07-190c-4f5f-bba1-8ee1e465d32b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_0e428d2b-f8a3-4c1d-9a1c-a4d137d90327">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_3041b08f-a05c-4166-8743-2284170c512d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ad5f102c-bca2-4dde-a201-038e4dba6003"
      id="F_7daae1aa-dfe9-4837-835d-9d5482e1f260">&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_ad5f102c-bca2-4dde-a201-038e4dba6003"
      decimals="-3"
      id="F_dfed4785-7722-4ff4-bdbc-179cc8176ce6"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
