<?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_c86d9344-6631-43c6-a95b-8bc0cd003197">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_8c7f9ff6-c50b-492f-a2cb-61a7293d8c57">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_1cf1e3f8-20f7-4cc0-8928-81cf9b3bfe88">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_742b467b-5e2f-4ffe-9271-e1e4e5dc5333">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_76438360-54ac-49e4-bdf2-b455170d0fcd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_e7fecfb2-cfbb-4e1d-9f62-621ff281b130">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_6831ca96-98c3-46eb-aac9-1af44449e13b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_158f7d4f-3820-4c36-89f2-4bb7700d0183">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_fa518383-4fbd-42d6-a73e-994630f0c95d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_a05cef1d-70c2-4560-be77-ce8ef7269c9a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c86d9344-6631-43c6-a95b-8bc0cd003197"
      id="F_82b43055-c943-4d05-8689-ae0c7e34f448">&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,065,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_c86d9344-6631-43c6-a95b-8bc0cd003197"
      decimals="0"
      id="F_19c2a3a1-6a75-4558-80ed-cf3e70e08173"
      unitRef="U_USD">1065000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
