<?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_5a406a9c-97b0-44a6-8bdf-36b4295a0034">
        <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:RegnFileNb
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_72319227-2ed6-450e-b7f6-127b81a43393">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_057df6c7-6fc7-45bc-8435-850b7f414856">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_4339bf5d-b228-4eeb-99c0-fde549bb1513">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_b0473066-ebe0-4293-9111-891732d11bc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_5442988b-2646-4c98-a1ca-776dced54628">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_069fb208-f9dd-4334-9e0a-0a28f9a66c84">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_2a089e4d-5f18-434c-bc8f-4fa96b360be2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_608a863e-3ac8-4506-93b8-54e36894cfd7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_f9a71417-ec0e-4c10-95be-3f507831b50f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      id="F_428673d8-869d-46ce-aaa8-4762af45e3a3">&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;1,400,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_5a406a9c-97b0-44a6-8bdf-36b4295a0034"
      decimals="0"
      id="F_9eb62a07-e3dd-40ed-b3ab-0e567ccd32bc"
      unitRef="U_USD">1400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
