<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_a27935fb-d521-408a-8dcb-77b9eb46776c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_263f2fcd-0d9b-481e-a6cb-db8758e7b39b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_14be6457-94ad-436d-92da-63a9e417caa5">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_2140bfdb-0a16-4249-bbbe-5c8a20c8df33">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_f82dc504-f468-4828-a7dc-03747a3cdf1d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_5830fcce-b73d-4900-bf67-51b3702df5c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_21db6c04-01a4-4e8f-8102-c1e87c16dab9">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_a3cc99ba-ebd0-4bfb-9bc3-add3050d85eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_e137b257-8580-465d-bb65-2a75631cefea">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      id="F_db95919a-7ed5-47e1-9d69-906929bae796">&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;846,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_d577cc16-8dd1-4f20-905e-1f695d3bf34e"
      decimals="-3"
      id="F_11801400-d0ee-4dee-8a43-f497d7f40d5d"
      unitRef="U_USD">846000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
