<?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_5f85872c-e244-4cb1-a2ee-1e44756972df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-28</startDate>
            <endDate>2025-11-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_4a1e7ca9-4a8b-48a9-9d04-13a30350bd4d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_217a821b-119b-4010-b4b9-fb48bd4b49a8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_0b403957-3cb7-4a8c-95f0-4e84935cbbd7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_b524b130-97a3-4f8b-83a6-893b8b91e558">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_b02aac77-0891-4e63-baf2-2d61a256bfeb">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_d99a1676-38ac-4ffc-8496-83ebfaec677d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_687bb80f-b942-4fe9-bb7d-af3af5429e15">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_0050cd45-5302-434e-833a-4ebb16ee7c8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_6ca7ac3f-728a-4eec-a23d-9b6ef368cf6d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5f85872c-e244-4cb1-a2ee-1e44756972df"
      id="F_136c1b2e-0ee1-407b-a1cf-81261efb50a1">&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,608,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_5f85872c-e244-4cb1-a2ee-1e44756972df"
      decimals="0"
      id="F_bca0a264-fbc2-46f2-b017-0616edcb3e5d"
      unitRef="U_USD">1608000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
