<?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_4badd41a-3455-4a33-99c7-bc4447647ea9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_f0370aeb-5d3c-4fd4-9671-8bdcae2c09b4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_a5cd1157-f6b6-4e4c-b081-2886db33d1e8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_08ab10f0-fad7-4978-98d3-e19d13033808">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_aac12e11-ea34-453c-88b1-84cd744da8fd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_c962c565-42da-4943-8072-96acb8f6109b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_138db007-ee15-4022-ade0-024029db9f14">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_73ac48cf-379a-420a-8ef3-dbaea4809cd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_a2444b1d-d94d-42cc-9d86-c374ec3bab80">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_f850adb7-b6ab-4c6d-a4af-f48956654d47">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4badd41a-3455-4a33-99c7-bc4447647ea9"
      id="F_959b9537-f679-4674-8072-11963b36190c">&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;565,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_4badd41a-3455-4a33-99c7-bc4447647ea9"
      decimals="0"
      id="F_11154902-8cd9-4d3c-9d18-6c47e7fa4204"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
