<?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_77e376fb-128d-4624-a6ef-e75b3ce34373">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_9bb8eedb-3234-416e-8bbf-a9bb6e0233cf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_11195700-8302-4a31-8fb0-62420e9511c5">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_73ee2e62-c914-475c-805f-60155040b53d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_48f6a1e2-9664-4878-a3ec-aaaedc1d4e1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_505af28f-43f3-4d29-80b7-fb50b6d17fd1">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_85fa5406-5046-4a01-8f01-8ed80f0b032a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_26cf6b71-a32f-488b-9c1b-3d7ff59d54aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_b7aee68d-5b79-4782-b492-6af1bbec7fdf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_e697a405-8a9f-4ad8-b140-c40c7bd0e974">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_77e376fb-128d-4624-a6ef-e75b3ce34373"
      id="F_6e5a34df-875c-4ab7-b556-1d1727678f46">&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;250,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_77e376fb-128d-4624-a6ef-e75b3ce34373"
      decimals="-3"
      id="F_a0482580-bb62-462c-a299-41dedc171f97"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
