<?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_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7">
        <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:SubmissnTp
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_5a6d5e46-3396-4f54-86c6-a07ee3558e0a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_fe912652-09e3-477c-be4f-c05bdd36656c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_c9c80ea1-9844-4ace-9757-37e10d96706a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_e5a72450-099a-4a88-9930-f07a8463048d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_b1cce9fc-4d11-4dcd-bd89-8fed786c66c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_e2ef4861-4b9a-4adc-947a-ed51ab18f1dc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_e8162889-dea3-4a51-9175-e3499d0084a2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_dcb5abf3-51e8-468c-925b-e3d1ecb96809">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_7a368479-bc33-4acb-929d-24ed0e220043">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      id="F_2b39ad72-fed4-4f4b-b5af-9c735f263bb9">&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;5,240,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_bb7155f3-760d-4cb3-bcb6-f6c2ad49ced7"
      decimals="-3"
      id="F_6fe74f91-4a2c-42ee-94de-7e6d3560492d"
      unitRef="U_USD">5240000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
