<?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_08c2ea37-dcd2-4f3f-be0f-e22264834838">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_3ff1fd03-3d18-48d9-b954-82f636b22fd4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_c8f6bb98-e297-4967-a8b1-771a14585715">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_98b48547-cd9a-47e0-8399-c49e99eb391f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_3b60997c-3439-4263-8b21-6d83a0c21c53">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_6711962b-61a5-4842-9c8d-8dd020a8d10e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_11b2ee68-ed40-46eb-85dd-0c1f566ccf30">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_bea79357-0740-496a-850d-8331eb7f0260">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_c4d143d0-ef48-4031-a148-e45c1940f996">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_38874388-4343-47d6-8f88-ad9b0186f15d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      id="F_7e1a53ea-5483-41e5-9cef-34f22807569a">&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;482,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_08c2ea37-dcd2-4f3f-be0f-e22264834838"
      decimals="0"
      id="F_57079944-e5d8-44d7-81e2-13a6c601a8f2"
      unitRef="U_USD">482000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
