<?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_6a4da9f2-3e8c-4632-9ac0-e367c08ec332">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_33a5ec50-df2e-4d36-9b5c-0b3b6a91294f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_a0b75438-8a61-44bc-9244-3cae9a213b81">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_a22ba902-405f-4959-8209-cdef84f6d846">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_a970afc3-deef-4aed-bcbc-63ffe45a9798">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_a7e41454-9b83-4a9e-beeb-e8de4eb6a248">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_0b5744e4-c577-4168-bab5-fded571cd6db">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_774f471b-2b4f-4aa9-b146-3268feb9dff1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_d19b0622-3064-47df-9612-2f74bd3e1ae3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_98919ab5-4e56-46e2-9f4b-8d09f8cf20e5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      id="F_e3387b0e-6fab-4420-892f-45e276f78051">&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;501,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_6a4da9f2-3e8c-4632-9ac0-e367c08ec332"
      decimals="-3"
      id="F_8bd52561-ca15-47b9-9537-533e4a061cdc"
      unitRef="U_USD">501000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
