<?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_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_071632d9-2762-44b8-b9dd-8c35cad7c5ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_5f48b4cf-f433-41bc-a159-04f8c937c76e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_b5c43022-62f5-4473-b144-0b1ade16fc71">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_ef8b5763-dda8-4143-88c0-affd52d83208">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_fbb1ebd4-b00a-4610-998a-c92d6c5814f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_2c10ba8f-a8b4-4017-842f-a9c35e9d3c0a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_08865574-70c1-4a7a-8cce-adb6fb5cd646">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_34aed822-8eed-4bd4-b307-7155c028a17e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_194d9405-038f-4254-ae74-d11275051721">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      id="F_df756e92-0a60-46bb-9075-567e0bb4972a">&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;757,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_dfb6ff35-70d2-4ff2-af17-ff11c5b91f5a"
      decimals="0"
      id="F_6fb5a400-9e19-4997-9a31-d4074d9fb3a4"
      unitRef="U_USD">757000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
