<?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_dcb01ac5-ed95-4f67-afa4-42fc855b4199">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_10632241-29b2-4f4e-a847-f8921f74df6c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_b0fa4d9d-c1d4-4af4-bf9f-761cc7eb03bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_905b83de-ad58-477b-8c2a-ce9cf34067f6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_c4b76538-e960-42f3-9625-bf81645ddc8f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_46ca0cba-a8e7-490e-ab2c-62cc67d1b921">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_69477ef6-2c7b-44bc-b33e-ec9f7b774ac5">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_9f9b40d8-20fe-46e2-9395-7339f6e8777c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_05c5a39f-2be4-495c-a49f-5e42cbdd710f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_c788d054-d634-4137-92a3-7bb66d196b3a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      id="F_63672063-011a-4964-948e-365f14fa1279">&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;654,865.77&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_dcb01ac5-ed95-4f67-afa4-42fc855b4199"
      decimals="2"
      id="F_b16a94ff-b1e5-4075-8a4d-b2f9d0f79d23"
      unitRef="U_USD">654865.77</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
