<?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_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_82112fd1-ae64-452f-89fe-e2d50183d251">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_39d5b366-18cb-4e0f-98fc-df0ddc0bdb8b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_bccec8ca-9e52-49cf-ab80-f735b94b8529">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_8431f039-460b-4118-b8e8-dcda036f53fa">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_7744c121-5b0b-4dfd-a063-3609e1c5163c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_ebbbfcf1-aa5c-436d-b214-24c5d55cb4b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_a195b8e5-ba73-4bd3-a35b-e84478c1110c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_6c018d25-c9c6-4ee2-90ad-c2d7b2e612e4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_85757ebb-2fd6-4b61-ac93-76cf292f7144">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      id="F_c420908e-6516-4749-a98e-c3e4798ca4e9">&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,725,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_6f03b343-e1b1-400e-b75e-a0ad3a4bc9ca"
      decimals="0"
      id="F_f8028131-23e7-4b2c-b546-172d73ac726f"
      unitRef="U_USD">2725000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
