<?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_39f8340b-3e13-4555-a567-9e52f1f1f8be">
        <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>
    <ffd:FormTp
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_90058966-cff5-44fd-a66e-2b865934e312">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_e3de4036-7254-4722-895e-ee8ad2ceb550">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_c57dd02f-e6b2-4669-bf50-6f99e42677f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_7c32ea40-9cd6-49ad-b49b-078e94675203">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_d3dd9283-2b4f-44e9-a12a-3464211fe395">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_7f8eb8b1-a936-4cd2-b63e-728468729f9c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_9f90fe32-5f64-4d0a-904f-88da915d9a73">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_0f3bef01-33d7-4cd0-a9fb-bfcad50af797">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_28a77ff3-12cd-4fc2-bf5f-0598d59bd4bf">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      id="F_107ceaf4-6bc7-4e76-8c66-e6ae8a18864f">&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;435,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_39f8340b-3e13-4555-a567-9e52f1f1f8be"
      decimals="-3"
      id="F_bbd6e70a-0632-4ae8-8d06-bb595cac094f"
      unitRef="U_USD">435000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
