<?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_17d3c3e8-732b-457a-91c9-547fb39cea4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_d0f06785-ae66-438e-ba7f-af550b3d29da">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_37bb917c-1f4d-4837-898c-50dac660b19c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_dfac0902-9e88-4428-9998-a1ea61861df3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_acf8cf5d-ed65-45a9-8f37-10f360146cfa">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_895241c1-21f2-4421-9edc-461d930eb42f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_74e8bcd8-11f4-4786-9be8-578e25b92ae5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_a94bdef9-243f-495b-8904-29fd162c2c80">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_59f115c5-06af-4c19-807c-0f5a4014289d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_f99bd782-2da4-4a83-af88-32b6004e7021">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      id="F_23707f8a-6315-4e0d-8f27-97a22de83d73">&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;5,000,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_17d3c3e8-732b-457a-91c9-547fb39cea4e"
      decimals="-6"
      id="F_24fd8709-ddae-4f87-8199-41df51b91969"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
