<?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_65b42bb7-fa49-4cde-ae65-87be215d2299">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_6c2ade5e-f4cb-46e4-8043-a1e35734feec">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_36f41300-c499-47b1-9cb7-3dd1109ae0ba">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_83fd706a-0caa-44cf-b6d0-99ec163f2b46">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_9b3cfd86-26d1-4198-be1f-a8bce9426465">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_bc848ed7-5826-4890-a6a3-230191124e46">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_9c6f0961-374c-441f-af25-2f5eaaee02a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_0c4e6fa3-b897-4b7e-99f9-ba556aa26790">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_960dec45-c34b-475c-a3bc-93c32f33a18a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_ebe2b37e-4e46-427f-a204-9283c7005c91">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_65b42bb7-fa49-4cde-ae65-87be215d2299"
      id="F_4cd19f51-857c-4471-b3da-036f7e8ee9dc">&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,048,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_65b42bb7-fa49-4cde-ae65-87be215d2299"
      decimals="-3"
      id="F_52eb9501-6f03-4b22-97f6-0ee9461e9642"
      unitRef="U_USD">2048000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
