<?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_d2adc989-f832-4863-8a63-e930401e30a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_5e106ea3-09a1-4701-b759-3aa3c2d5b85b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_8297dccd-144f-4a95-b121-b6227897e9f7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_da15f649-a882-44e3-8537-9f4f6c22dd44">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_999a7140-18c5-4471-a679-849987cd93c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_4ce9ee89-fa2a-4bcc-8449-151ddc85715f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_ee3b5707-10ae-4fe8-bff0-2034009bbd0d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_51926d5f-d15e-41ca-bf98-d4069360c540">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_bb6d029e-d2c1-4f01-9ecd-f2e084101567">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_5bf859c0-1282-4b8f-a9a5-56570e8ad322">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d2adc989-f832-4863-8a63-e930401e30a8"
      id="F_44b7a7d7-8ca3-487d-a4f4-ab5324938d66">&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;522,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_d2adc989-f832-4863-8a63-e930401e30a8"
      decimals="-3"
      id="F_ec15b3b5-d612-4585-9022-1c3e326f447b"
      unitRef="U_USD">522000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
