<?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_cba4dbf0-ae1b-47e6-9806-7b5df2530f78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_75e28cb4-15a4-4f54-9247-23c9aa92ad07">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_538a32c3-c6ba-44f4-9026-da5dd1b908dc">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_f7bbda99-1d76-4b9f-8828-7486ddac6c49">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_ca337ea8-75e1-4950-ab69-3f9d3dd3198e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_160fc899-f679-4a23-874a-46a8f75201a5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_5d619be8-6c23-4d69-a137-38a9291efd6a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_0bd3dd09-67db-483a-abb9-f0914efa88d2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_6bb93da2-2aa0-42a0-a3f3-b7d49bc52016">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_a5282713-04aa-4f3b-9d60-e821094144b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      id="F_9ce53811-665a-4f41-88dc-c6f08bdfc3cd">&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;268,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_cba4dbf0-ae1b-47e6-9806-7b5df2530f78"
      decimals="-3"
      id="F_5ac8e086-0596-4c26-b52c-347bdcbedac0"
      unitRef="U_USD">268000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
