<?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_dc6483bb-7a76-479f-98ce-976b1601d053">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_ff5143e8-10ff-4e9c-ba68-c23a79c00e6f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_5aaf8fa5-5742-46aa-aea5-b8bafe805bb8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_46869fba-4313-49b7-8595-620976ac96d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_b47b296a-24bb-4908-a7df-47a0ce0843c5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_952a2297-e9cf-4f84-ad52-dc1324199f50">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_8a4e1f3a-1b50-44a5-a6ea-1d1f42f027eb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_39c1756c-edf0-4108-81ed-04c8e7bd8409">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_1d3b5dc8-ae0c-428f-bcc5-6698a0f667a1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_4660c4e1-490a-4cf0-ba12-096f70cf9be8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dc6483bb-7a76-479f-98ce-976b1601d053"
      id="F_cd3fa2a3-22c9-405f-8468-0436c9478ee5">&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;4,406,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_dc6483bb-7a76-479f-98ce-976b1601d053"
      decimals="-3"
      id="F_948867e7-87af-42e9-a7cd-82474ffd2897"
      unitRef="U_USD">4406000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
