<?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_952dae43-e840-4afb-8ea2-b3d899cef473">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-23</startDate>
            <endDate>2026-01-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_d6dd9dd0-2f0e-40dc-9d4a-3dbcbcfc857e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_dca0ab71-17a3-42be-987a-70270aff3524">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_e3a72f77-0fd0-4466-8e00-508e658fe152">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_d5742c90-4415-439a-9e76-a2fbd3d5fd0b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_ebf2adf3-0eb0-471b-a3e6-caffcb809aed">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_e9ed1f52-026e-472a-a4ad-e1fd3c8c39f6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_185acbc0-c8ba-4af9-85c1-937ee396c7ce">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_cd89ba7f-9a0b-44f8-b78a-ac947f9b11e4">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_4e81114f-d8ee-42fd-9cc0-e8673c8ab3f4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_952dae43-e840-4afb-8ea2-b3d899cef473"
      id="F_5c8023de-77d5-412d-bac7-15bde9222a70">&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,600,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_952dae43-e840-4afb-8ea2-b3d899cef473"
      decimals="0"
      id="F_96e12335-7f54-49dc-b57d-26922a69e751"
      unitRef="U_USD">1600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
