<?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_2b7a8d83-8999-4eea-95b7-10129127ad3e">
        <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:SubmissnTp
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_e6eb285b-144f-4dad-a25e-0daf5bd917c3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_52309d64-9b5e-4207-98c3-9b495e20b8d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_822be198-c4f1-4345-838c-819d62e1a762">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_b58030c4-b0ce-4f00-9a95-07926d18a032">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_efa5b559-bbd3-4767-8a1e-5cfbb419e6cf">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_4f8b7e98-8830-45e1-93a1-c1de901c6dd9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_4b24c761-8e15-4bb7-bc63-c327500da883">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_c70c05ea-54d8-4c25-9dd0-5184298d6aac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_81e3b10b-eac0-4c34-a6e0-ce8d2db6c4d7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      id="F_9c6f3dce-fb20-4716-82bd-a5924cb46b51">&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;15,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_2b7a8d83-8999-4eea-95b7-10129127ad3e"
      decimals="0"
      id="F_1c931752-338b-4450-aa77-0cdacd0a0f11"
      unitRef="U_USD">15000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
