<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_72071519-6f25-4ab0-bce6-bcc6c85744de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_88635c31-6bc4-4ae9-ad7a-381e4733cc6c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_06e0af83-cd04-4412-ad04-c6e0bf63df2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_14e3ab4a-856e-4606-b35a-ed824c4669eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_ee95340e-bf14-4039-a398-638b68600b98">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_30aacb27-44f5-4e42-9743-2564cc6d58c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_1979b547-8489-4c73-a126-0e04221536d7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_b1a7df1a-2909-407a-b3c4-4f52a48376ec">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_5dd365b3-8c1a-44a4-a551-16b69d7b0e03">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_f3b22be9-319c-4c71-b137-e817a97838f7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_72071519-6f25-4ab0-bce6-bcc6c85744de"
      id="F_b75bf159-16ed-4cdd-afd7-13926600d71e">&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;809,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_72071519-6f25-4ab0-bce6-bcc6c85744de"
      decimals="0"
      id="F_26d8960b-d54a-4520-bd05-c62afe68fd28"
      unitRef="U_USD">809000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
