<?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_9b9fee34-fca9-4926-a450-ff4302bb3648">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-11</startDate>
            <endDate>2026-03-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_ac7f6770-9d48-4b28-9ec2-763d776b21aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_3aa1f416-5718-4947-9fc7-ff995052e30b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_e079071b-1376-46d8-81da-435adb8358a0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_96526742-d22f-4ff9-90ce-16203ba79546">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_8d881c1c-86f0-44f5-8437-0b8a7cc9cef6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_0900b771-fd9f-4300-85fc-36b4368e3cee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_eac24b7e-86a3-4d42-aa9e-1c84069319c1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_34d26e54-a8c4-43fc-8d38-a046d413294e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_9436ef37-576d-4b51-baff-857b9284cdde">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9b9fee34-fca9-4926-a450-ff4302bb3648"
      id="F_7c902f24-75e4-4ed5-965d-0b4407f3f289">&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;527,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_9b9fee34-fca9-4926-a450-ff4302bb3648"
      decimals="0"
      id="F_1dd95d97-134d-4e2c-9625-2de962207fd1"
      unitRef="U_USD">527000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
