<?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_5a314549-7139-4dd8-8236-477080d8bfda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_80962812-dc6e-4dde-ba2d-bf30b06ed3cf">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_804fb38d-cff2-4936-b99e-d9fbb053a4db">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_d7bc6db1-fd72-4e12-8d4c-1a24779ba297">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_0c91e97d-7b23-4461-b18d-fa159f09852e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_76d43136-b1bd-4637-ae5c-1a4ff50bfb7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_5ff7817d-4402-4d97-bae8-fcf0d4814753">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_ab3fef0c-4ac1-4e08-ad39-737bbe39c891">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_9e7f6608-75e0-4a3f-8f72-879d199e752d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_12b73ebb-baa3-42e2-a0d1-f246d7b927f4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5a314549-7139-4dd8-8236-477080d8bfda"
      id="F_f7f16fdc-e5c6-4690-8c0b-9d6ba116c4d6">&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;500,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_5a314549-7139-4dd8-8236-477080d8bfda"
      decimals="-3"
      id="F_6feac764-a001-41d2-828a-b2fe1c8ef0a9"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
