<?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_38bb488e-1de9-40f6-b5d3-f63d17894f60">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_9f869bff-e9e1-413a-a2a4-e0afc11ad678">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_df2affac-4a48-4e6f-8c5c-e8c4011b1f74">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_e3ca41d4-2a71-4a1c-a116-2e6a3468282d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_c2a76c4b-1a01-4ed7-a997-34c2c2da0fca">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_13b1e6a0-773b-4df7-8e3b-a648433e0b85">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_21e98d64-7e06-4c0e-a778-d8e062720205">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_38529996-1f90-4c69-b104-1f4658d7c8f7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_80a1a0df-a3c7-499f-afbd-ddcabb91ff45">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_84b6f821-235c-457f-8a91-b9cb513bd8ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      id="F_f537513f-2825-4d53-be58-db4677ac6948">&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;19,912,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_38bb488e-1de9-40f6-b5d3-f63d17894f60"
      decimals="0"
      id="F_bbfc8399-6762-4393-a1f2-e38671a0cf36"
      unitRef="U_USD">19912000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
