<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_13444538-79f9-4b8a-9144-8ebed136a1ed">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_166266cc-1587-4e6b-a5b4-2b635ade72c4">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_8c1785ab-93c2-41c8-8e44-89b9848f0e4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_5196af38-4cda-4a69-a7d6-d93a6e65ee8c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_6a25f7e6-d498-4a4f-813f-a11afe434140">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_6850ecfe-3993-4b8e-b35b-cb4d9c889678">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_dc76adfe-626a-4525-8892-20f0ded4c594">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_0557ae50-90a3-40f0-b095-6eb9faba1732">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_b5163378-4642-4da3-b9cb-fffba0856881">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_d2c3b205-265b-4669-8e8e-123930324e09">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_13444538-79f9-4b8a-9144-8ebed136a1ed"
      id="F_9b5c7eed-484c-49e9-9bd9-69eb1b3ebecf">&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;597,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_13444538-79f9-4b8a-9144-8ebed136a1ed"
      decimals="0"
      id="F_a11ce1c9-ab69-44e8-a086-f8ac385afbc7"
      unitRef="U_USD">597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
