<?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_8e603dd5-d738-41d3-94af-c00aaa6567ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_47e3ea11-4dd5-4e3c-9c85-31bc1938ce60">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_02d9da91-4bdd-44f5-9797-325e25c68f45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_2ba6b4c7-e1a8-408e-9734-92b3e607c61d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_5958443a-1852-4ff5-8264-f4c88bc2965e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_bcddd6e9-a778-471e-80a5-55c50e057bb9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_18cd2768-479f-4d43-9d31-8952d3ede0e8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_a2118f7d-5b12-4e3c-91a6-9905b4d699d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_13d97cb7-d15c-4c21-b06b-b8ba2f87d890">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_965dbebf-038d-4d67-a3d1-d6498acdcdf7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      id="F_b7824940-bb61-4f83-9ee4-a243caa83063">&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;1,600,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_8e603dd5-d738-41d3-94af-c00aaa6567ad"
      decimals="-3"
      id="F_31d60321-668e-4f6b-83d3-a48eededfb8a"
      unitRef="U_USD">1600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
