<?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_50073515-b114-4a65-a8d8-ee27bb40bc54">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_ceaed483-e9fe-42ce-8bf2-d644aa02161d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_28d94555-761e-4fe6-83fc-2df2cede6815">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_6e74c880-01a5-4e1f-bf09-5602d6db6826">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_a957ec85-23f3-43d5-87e0-2913a190801d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_e5229765-c32f-4021-af8c-c9774ed4bf95">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_ef0c39ad-7116-4007-ab3c-5fbb9cea5920">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_e6414a9c-f697-4169-8b48-3fe87d5151d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_558161e5-409b-4eb4-8722-272bbbe10b14">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_34cc5f5f-68b3-4aaa-871b-4bb15a2ad5cb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_50073515-b114-4a65-a8d8-ee27bb40bc54"
      id="F_b5f16e2e-39c3-4c9e-90a2-8094ffd886b9">&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,618,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_50073515-b114-4a65-a8d8-ee27bb40bc54"
      decimals="-3"
      id="F_5d7c0677-aef5-415c-b0b0-8b07ada55ae0"
      unitRef="U_USD">2618000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
