<?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_af5def8e-522a-40d6-9cef-718c1c98aeaa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-29</startDate>
            <endDate>2026-01-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_13f0d582-ffab-457d-a428-28aead6e3983">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_4e7ad9a0-059a-40c3-a278-10f792c890ff">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_7186f843-4d34-427a-aa01-f5bed0fd1e24">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_85b9699a-fff7-40ee-a0a8-3888759bc03b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_e615670b-285c-4f74-b059-0cc0c7c4a8a6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_9e3fd65a-f2d7-47a5-a860-04d3b1a6ac45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_93f51451-4368-4b85-a4e2-5774cb3bbf37">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_f6f2a88e-d4ed-4a4b-a77c-d535e9f5d9b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_2f99b1d2-e41b-4f17-a024-cd50316d9565">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      id="F_2aea8b2c-cae3-4702-bdc9-0dc157634bd5">&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;54,233,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_af5def8e-522a-40d6-9cef-718c1c98aeaa"
      decimals="0"
      id="F_e2867a1e-473c-4050-8a44-284a0138a777"
      unitRef="U_USD">54233000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
