<?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_b9f09c9b-621e-4dd6-ad37-7ea2c5250556">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_5d4bfed9-74f6-4bc7-932c-75fd12a1580b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_c95c773a-a0bc-4026-9f0e-b51715ee1918">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_0667013f-a1e8-46d4-bb09-7feb1e4ecb58">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_30449d5f-a85c-45cf-bec1-005161fb8635">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_5038b29d-9e07-44b8-b287-c0ed74d180be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_da23e489-e0aa-407f-90db-372fd39574f1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_0d6e5019-0c53-499b-b523-d489265a1efa">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_0666d87b-1ce7-4e54-80d0-569b2c66976b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_3f3ae9ac-8e01-4a90-ab56-070a09fab336">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      id="F_865eccd3-d6c0-4d64-875b-d3c1ff6e59d7">&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;787,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_b9f09c9b-621e-4dd6-ad37-7ea2c5250556"
      decimals="-3"
      id="F_f0831a34-f512-45c6-87f5-5173a971822a"
      unitRef="U_USD">787000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
