<?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_bcc642d6-d75f-4082-8e35-5a7d222a08f0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_a5bd336e-4dca-4ead-8330-f4cfc4ea004e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_8fc8970a-c578-4e8a-b0e2-7b8fa321d735">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_c7c8ccc1-77dd-4088-8a1a-5731ab109ffa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_8e86f44d-8f0e-46b1-aadd-dcfb65a26d87">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_7f2d1210-6123-4884-806e-63cd5d97de09">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_887bd024-c545-4661-80f9-c4e75d9f21b5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_ec198415-9a80-406e-a784-edf64eacceb3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_9c269268-2583-42a7-b3bf-6d50a5aba1b4">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_29fecfd9-1e84-4739-b84f-4678565b488c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      id="F_dc08a843-d477-467f-a751-ab115268add3">&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;3,716,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_bcc642d6-d75f-4082-8e35-5a7d222a08f0"
      decimals="0"
      id="F_4dd0d155-c7aa-4034-b4f6-84d3b65d07e8"
      unitRef="U_USD">3716000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
