<?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_15c30e0f-8b48-4160-9c00-fe6a5dd0c911">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_9aa095f3-6705-4194-98a8-2f9953d79d7d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_2a4f9c42-a69a-4394-8981-034ffdf8fd35">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_6423265f-bdc5-4efc-a70f-2ebcf3922732">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_d6d6dc6b-5a57-4be1-9e81-f8cf3c8039bf">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_bf2b438f-7c14-4ebe-a0cd-c14eb8a0759d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_b0cc4833-398c-469e-a6cc-4354391865ad">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_e7ee139c-cffd-488f-b8d3-7c036a67213f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_e282d3a4-3bee-4e8d-84bb-bab8f932f998">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_d791f9cd-09fe-482b-90a9-31ec6b681e4d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      id="F_3f612c3b-16b6-45e6-98f0-d767edc7db9d">&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;580,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_15c30e0f-8b48-4160-9c00-fe6a5dd0c911"
      decimals="-3"
      id="F_6ced1e36-c64a-47bf-9ba7-a2c2cbd94acb"
      unitRef="U_USD">580000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
