<?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_3954e2e3-3744-40c9-90cc-bf711f0b06df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-17</startDate>
            <endDate>2026-04-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_3ef8af3a-53d1-4263-a5b0-acf6720b180b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_c4f8903b-3efd-4793-b252-b6527c57a2fc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_76645288-ec84-4506-8de8-0084f419e489">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_706fbbc1-0831-4dde-a076-7c00dd3db5a0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_8265a1ef-3349-4146-a197-31c992ac8c5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_3c38f7c6-ff8b-488e-bfde-d67a680e0a20">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_13365463-c50e-48ad-91e3-e141c813e9b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_291d3a4a-b8fc-4929-a4b5-27427d94e802">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_0131a0b6-2304-4b4d-ac82-20c681882e0b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      id="F_137a9895-2c8e-426c-9eea-c9e67c9397f7">&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;2,437,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_3954e2e3-3744-40c9-90cc-bf711f0b06df"
      decimals="0"
      id="F_facc760a-d58e-4c19-b23e-5fd335323fb3"
      unitRef="U_USD">2437000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
