<?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_04c92c50-1f1d-4302-b083-3a878c8d92e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_2d400337-531c-49fd-a28e-a94cd7bd6883">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_486346c0-7d3f-4249-b2f4-29f58e1fcaca">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_f594de70-c2cd-49bf-8094-ba439b8eda8d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_75000184-7f45-4295-907a-e274f8098d60">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_b0657821-badf-4a9f-b877-9cff003489a9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_7f07c49d-48ca-4e22-85f7-2df36a28844b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_cdb17a3b-4654-426b-af20-7ff66f6dcf4d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_67aa0e4d-7827-4509-82c5-36bf90706dbf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_e72e9b8a-8cdc-478d-9ab3-06fd4632fb53">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      id="F_8521c825-57e5-45cf-876c-c53021eaee79">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,300,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_04c92c50-1f1d-4302-b083-3a878c8d92e5"
      decimals="-3"
      id="F_db092210-05e9-46eb-b541-f37160098f86"
      unitRef="U_USD">3300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
