<?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_a04314ec-0a67-41da-9558-b2f02d6cfd67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_c0ea0fca-39ba-4ba0-97d2-99be718810fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_4e413cca-1dd2-4d10-8ad2-feeb2b194bcb">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_5550d75e-d7fc-46ea-9d32-c47b375bd79d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_1cb3ac95-3b90-4694-849c-68a59c286154">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_32db413d-2e2c-4fb3-88ea-3ab9a0acbe38">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_fbf20fc1-22b3-4b58-bc87-a11ab701073f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_f0027720-b081-4e68-a5d2-821d1455432c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_d8b05b6e-8508-4847-8bad-bcee7af2283a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_ed706132-6abb-42ec-879c-65f21f9bc68e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      id="F_ed75aed8-c1e2-4134-8bc1-f6ede5aeff60">&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;3,985,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_a04314ec-0a67-41da-9558-b2f02d6cfd67"
      decimals="0"
      id="F_6ba321b3-24f1-4267-a73f-239620ed2cac"
      unitRef="U_USD">3985000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
