<?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_e3927867-d85e-4d67-a098-ca02edf433bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_5be0809c-cc9b-4543-b761-73159f502b7d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_d9efb2b1-e017-4de1-8782-b48252a96c02">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_a9468669-bb8f-425e-bf5f-9f2bee49b328">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_cb40222f-426c-460b-b5c6-76e9f6cb903c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_70953029-e07f-4c5d-86e3-860d6d9727a1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_f55ffe0a-d70e-4106-983b-f3e5e0ad2fd7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_65623851-5e82-4313-8a07-1628d9a99ddc">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_bd96e804-39bb-4376-ba27-6807c34f12e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_4e3b91be-4761-4348-8dfa-c18d64e6b2fc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e3927867-d85e-4d67-a098-ca02edf433bf"
      id="F_89f63348-a99f-4dd1-9594-fdd32484c7b9">&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,212,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_e3927867-d85e-4d67-a098-ca02edf433bf"
      decimals="0"
      id="F_b9ae3de1-9499-474a-b53c-06c77c730aa8"
      unitRef="U_USD">1212000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
