<?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_4efe2329-b93a-4911-9187-10649c6e78bd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_31ce0bb5-bc92-40d0-86bd-010a8da837f4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_440c3ab8-25c0-4065-b918-678856949f6f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_6ab2f54f-c629-45bd-b82d-041f289e1fec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_98d06f51-021e-4130-9184-dd315596e420">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_de5ef5e8-b96d-4a9f-810a-b4651699e205">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_f79c7586-7014-4d80-8b3c-74b8517d4ec0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_d91a6b43-bcd0-44d1-b528-8eceb34c84a6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_c7e641c9-d5f4-4f7d-ad47-a6adad8273fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_9e7c063a-8adb-41f0-aaf3-180134ff0fc8">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4efe2329-b93a-4911-9187-10649c6e78bd"
      id="F_d7175934-83b8-48ac-b142-267f89822d87">&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;752,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_4efe2329-b93a-4911-9187-10649c6e78bd"
      decimals="0"
      id="F_5e5704e6-eced-4f9e-8f02-b6d6df946e3d"
      unitRef="U_USD">752000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
