<?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_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_dfcaa79b-93c3-4d0a-bf66-217e9848159c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_4263dd79-72c4-4802-ac52-58e1ba36b9c8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_570dbfdf-c9c5-4512-b378-43347e59b209">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_8290da72-b5ce-4235-89de-0fc7f070ba3f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_dcadc50e-333a-4bda-95a9-7828567a553d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_c3c1627d-bd51-450d-aa3f-02b64a62b3a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_dcbab4e1-9a42-490c-b8cb-a243bcaa91ac">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_dbf4d30e-14c2-42ec-b6af-f776429e4453">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_cce8dbfc-a417-4eec-8bed-20a68d4bf8ab">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      id="F_8189ddd9-c35e-4522-ae4b-523fadd1dc13">&lt;p style="font-size:10pt;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,312,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_1bf6bf1b-c1dd-42c7-8e6f-84cc27c923f7"
      decimals="-3"
      id="F_a1509fc8-328b-40fc-8596-524570dd61b1"
      unitRef="U_USD">1312000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
