<?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_6b3933b9-16ee-4eea-88dc-1cdd0844adb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_1b789a51-b574-4d0d-aae0-bf95c675894e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_e887c632-c189-4c78-b99c-f86b67148e5c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_c1e1216e-8c90-4ad4-a223-91bb6f5730be">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_bd2e2dad-343b-44e9-86b6-d6bbc884bd19">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_6a4cbe09-2571-4484-96db-b90d06247b08">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_60e4f014-3610-412c-889e-1edc07c91b02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_485f1f55-2f3b-473d-b9f5-4aeece140139">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_89b09605-a770-4d96-a631-b91d0734153a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_5f38cb54-a21d-4049-96a7-d5b52dea9cf9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      id="F_ae3d0caf-33d1-444b-b599-02da1bfb78a7">&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;24,324,180&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_6b3933b9-16ee-4eea-88dc-1cdd0844adb9"
      decimals="0"
      id="F_0b62fa4e-9063-4d6d-8837-c6d423edde03"
      unitRef="U_USD">24324180</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
