<?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_f64bc89e-9f42-41e5-8493-7f9d553fe499">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_aa8a8d7d-01a6-4a39-ae64-b581f0b64948">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_51cf481f-d8d9-46c6-98f0-53c9785faae2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_16f790d2-6b32-4342-9584-441da9a4240f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_4ce2f71e-6ca8-4037-90f2-8374d9e7e8de">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_8b1eb255-1579-4a2c-9d01-c0db4775e9ad">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_6d99cf9b-4e3e-4620-8d37-187a57d5bb16">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_82a36427-b91f-483b-bc48-2badc94818e2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_ac1a83d5-232e-4b25-8e98-c9972fae6499">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_7d26ec52-c1df-4e18-8679-028673c7deae">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      id="F_b0137372-44a8-4285-8c69-1dcdcf79d322">&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,503,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_f64bc89e-9f42-41e5-8493-7f9d553fe499"
      decimals="-3"
      id="F_2c51f4c8-b7bf-4ca7-824c-fc5787648f1b"
      unitRef="U_USD">1503000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
