<?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_41c56652-319b-42f5-a384-81fcf1e4197b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_6f896c13-6fd5-4d4c-ab7f-d01c1fdcaaae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_262c4fcc-28b7-4b4f-a136-fb100a0e7e86">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_88561d76-7512-4db9-bfbd-daa5262e8880">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_d3382a9f-633b-4991-93c2-c747121636d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_b5948c30-49a3-4a5b-9a53-938c1859a0bf">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_1dd454a0-23d8-4ff8-ae1d-f75624a81e5d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_bbed0403-fef7-4b18-82d5-c04ad40d66fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_800bb5bf-b372-4f5d-aa12-a7782930abde">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_a43c7ff7-9fd1-42b0-9073-9102b4c631c2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_41c56652-319b-42f5-a384-81fcf1e4197b"
      id="F_762a984d-b6de-4955-9a04-0d77e6d81af7">&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;22,755,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_41c56652-319b-42f5-a384-81fcf1e4197b"
      decimals="0"
      id="F_08d9a021-ea58-494b-bb64-1e0202203b72"
      unitRef="U_USD">22755000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
