<?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_9cf626d4-dc2a-42f3-81da-c2261aa479d5">
        <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:RegnFileNb
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_079969eb-08ec-493f-aa6b-3d5428066c68">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_da79316f-7519-454d-a23b-b11b6adbf5b4">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_30cee7d8-990c-4ffc-901e-56314e7efb40">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_c859bcf5-d0b4-429b-a590-5104e127e059">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_1177d98f-bdfd-4f46-9cb6-ffa6490ccdf0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_42d64b1b-fa46-4b60-ad87-e0d4c82d9fda">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_c0c88dc4-d139-4fa3-879e-e678edebe563">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_3eebb5bf-ab94-46df-b3e6-6236f97c0039">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_39050d94-d1fc-4923-bca5-ae6193aac8e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      id="F_a9657e55-872a-44d4-a4d6-54cfe51f5b8c">&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;1,100,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_9cf626d4-dc2a-42f3-81da-c2261aa479d5"
      decimals="-3"
      id="F_c6886117-1331-494c-9482-77206787d7bc"
      unitRef="U_USD">1100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
