<?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_571863e8-d9f4-4018-969b-62996b86f28e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-12</startDate>
            <endDate>2026-03-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_77a0d3c1-6a1d-4a1b-85ac-41c6d2504f70">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_bcd69e42-3fa1-4157-9539-c3179e1bc1b1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_ef17a6ed-f64d-4a99-aabb-a77cc77bf74f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_dfc515c8-b708-4826-b742-3b855e5547be">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_2bd6b28c-4e7f-44bc-a948-3c5bdab36693">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_8d93e39a-8021-4a1b-b78a-ef2d9faa9fe9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_3a092f77-3254-4833-8b14-6f3cb750b2fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_77abfc07-5e09-42ea-8ddb-ff3530319a70">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_ae42588c-2da6-471f-afb5-2feed19c474c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_571863e8-d9f4-4018-969b-62996b86f28e"
      id="F_340d542d-8167-4e8d-b975-b356861648fc">&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,100,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_571863e8-d9f4-4018-969b-62996b86f28e"
      decimals="0"
      id="F_5ca5d1bc-fef9-4b92-a651-30d4efcdd5eb"
      unitRef="U_USD">2100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
