<?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_852b4620-c417-45f2-bb75-2f72e28315dd">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_ab06d813-2a6a-4c69-ac4b-edfaf51a811f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_89fdc2b2-7c6e-4702-a43e-605de59ec70e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_150e669c-4807-479a-a1d2-4a7cb83c36d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_169b99d8-1c82-4a9b-95dd-6d5dd87c764b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_683363e5-a2b4-49fb-83ec-4724702429d5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_729a03f2-e919-483f-a3c9-cf04383cfdf2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_003a01e3-4a2e-405d-aadf-b86326b211c9">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_9011d574-f838-4440-825c-9271219cea4e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_28920226-33ef-4a8c-8d99-a54cbc6143cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_852b4620-c417-45f2-bb75-2f72e28315dd"
      id="F_604e186b-f6f5-4d47-8a9d-a13f45c780f7">&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;1,565,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_852b4620-c417-45f2-bb75-2f72e28315dd"
      decimals="-3"
      id="F_a1889caf-ae73-4f8d-a729-3e919bad6634"
      unitRef="U_USD">1565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
