<?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_86ff3eb7-70e1-4b8a-af16-22984a7de9a7">
        <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:FormTp
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_b2130b9e-19c7-428c-9d23-35ee903bfb61">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_0fec3a90-4de7-4952-a7c2-1656ce11cd55">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_fdc0d587-d0ca-4d80-af08-94ba575ed04c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_75e50b43-6332-48cc-b28b-d3797faf5b79">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_94066174-97b3-458c-acc7-0ec3b83b2fb7">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_dd66fd2b-a0a2-485c-9fef-4c6152454b2f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_47c04d94-7ba8-4a63-9556-86e0c144c21d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_6a77c3b0-5ba4-469d-8969-81e4c4d10ace">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_2089ea66-19b6-4448-9a7b-a54b394e6ba4">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      id="F_27f34b14-919d-4a78-8a66-9c8af420da22">&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;21,844,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_86ff3eb7-70e1-4b8a-af16-22984a7de9a7"
      decimals="0"
      id="F_426b805a-ecd8-45e0-a4da-017056d5de13"
      unitRef="U_USD">21844000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
