<?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_ca30c871-c5ca-4eb4-a044-7b4c17acee5a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_071d5ca4-1cef-4885-b17a-01bc923b2c9b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_40ee5741-cfd5-41d5-9f2a-b3c31863a28c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_f5a19f81-3175-4175-9b80-2743094e0762">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_8a2248a3-e3b3-4e37-8abd-89cea09b7e91">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_fa3c7fc9-71a9-47ca-9ad7-6ed59c2f2e1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_8e1f46bb-bee3-4022-92ff-38fb82655baf">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_e85119e0-ddd7-4ed8-9b40-c8305a609d1f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_75300d05-e302-4783-8354-10eb6e26bca2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_664d6945-3c4e-407d-84fb-8268c5832c45">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      id="F_d6252f87-aa8e-4991-b5f3-6f27c07f2bdd">&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;17,079,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_ca30c871-c5ca-4eb4-a044-7b4c17acee5a"
      decimals="0"
      id="F_120f0702-12fa-4d93-a146-6945e66ecf2c"
      unitRef="U_USD">17079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
