<?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_f188e9b6-40c4-4b71-a8b0-482b45977081">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_628b6613-c061-4a47-8375-0aca4078fce4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_95133d70-48b1-4f8a-b226-b0eaaf785cd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_eb6ba2f1-730f-4763-be40-c30320d6f098">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_6fa737d5-2470-424e-93a0-fa43c1ba4965">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_d963e7df-c390-4a20-ad7e-3179d778d54a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_cdbe9434-a7fe-459b-84dd-ed34e70ed186">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_0f344fa5-8791-4952-80e1-2760d8cd1408">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_ac601e24-ce7a-4a3c-afaa-40367816f61e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_184e07e0-cd53-4a85-af00-23687d50342a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f188e9b6-40c4-4b71-a8b0-482b45977081"
      id="F_560976d0-a17c-449f-b815-cd7973404bc1">&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;3,379,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_f188e9b6-40c4-4b71-a8b0-482b45977081"
      decimals="-3"
      id="F_de006cc0-4d4e-4dcc-b7fa-fbcef02fc72a"
      unitRef="U_USD">3379000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
