<?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_eb2e4a43-3cee-44ec-b9a7-91ae218308cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_b3d974f2-2c0b-474b-af2d-e19969018584">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_4a3307cc-e2c8-4b6f-b20e-a7e46d061a28">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_f5937f4d-3bb8-48a4-ad70-259a29938c74">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_ef854811-c37c-4fbb-8e98-1001d182a317">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_6529d004-13bc-4025-9944-2db507067f9d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_ad6f1980-25a7-4082-8dc9-89bd064c08e6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_6622cea7-e312-4cbb-abf6-ee293e21cb5e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_54e43dee-f615-4388-bd70-90348151940a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_3fa3f3cc-b7d8-4ec3-a827-c42abd73896e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      id="F_eacb1450-ed93-4a05-a619-c0748d93b2be">&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,473,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_eb2e4a43-3cee-44ec-b9a7-91ae218308cf"
      decimals="-3"
      id="F_49b2b0c1-6fcc-475e-a50f-3d017327da25"
      unitRef="U_USD">1473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
