<?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_61b8087b-6c55-4b84-82ad-a049ce2c6121">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_d6649a32-0d03-4294-92ea-b792f054eaa7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_49a4a17d-5d2d-4861-92f2-8d2a98760bca">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_b0e58df8-29a4-4823-9e85-ded1126022da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_b67c5b5e-5041-45ef-b87c-cf371c5d6583">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_b5a6be65-6d8d-4fd6-90bc-d7534a2e033f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_92a25bc2-79e2-4a33-ad63-23c4f315d8a7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_b6c65c86-dc50-4f51-a735-347ac78e7c44">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_f3846e47-091d-4902-bd90-9f146cb5c21b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_ac96567f-872b-4dad-84b9-c3c560af7d29">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      id="F_fd349108-f216-4926-b2ac-0209d41c7c8d">&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;670,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_61b8087b-6c55-4b84-82ad-a049ce2c6121"
      decimals="-3"
      id="F_911b64ce-2ede-4ad5-bbae-89e481a35b1d"
      unitRef="U_USD">670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
