<?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_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_ffb3cfb4-967d-4eb3-85d5-58a28a65b8d4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_cbf42115-4d09-49e7-b065-3104d93af459">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_b5ca1917-d7f8-4c22-b588-3f3b929f6494">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_6201b2d4-5f49-4d53-8a0e-a3f94be6076a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_4b7842c3-8b86-4dfd-b620-c5b95b177ca1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_49c8297e-e2bd-4192-a7d7-e632d415751b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_0624fcfc-4d3f-462e-9a74-d2ca59a3c33f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_2d9a4e06-9d60-427b-9c05-98c436720215">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_ddb356f7-d7bb-4d61-9736-02fa6b08601c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      id="F_ebf1c00e-bd11-477f-a0a8-7179453a95f9">&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;201,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_2d8b48fb-1f4f-4281-8cb2-1df6f68f5c22"
      decimals="-3"
      id="F_068d5b47-e834-4fa9-8db0-801a3ec2350c"
      unitRef="U_USD">201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
