<?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_8566ef62-2999-4435-97b0-a31c93a29d36">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_d01698fa-d09e-4b14-8ecd-8af2bc29a2ad">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_20fd7c42-b0b8-4f60-8990-44674c055630">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_dc1cf408-963e-45cb-8527-147077306788">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_eb50fb4f-6ace-4d3c-976c-eba24daa9c96">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_25c8352b-4c6b-44a6-9e99-f9c6dc16cc7d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_58417f61-6a94-4549-b39c-e267f6d2b8a9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_05f3c744-243d-41ec-9dea-1b9cdbbe5d00">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_e4c919ca-817d-4eb0-9918-bcc8f285c60d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_b11f8e22-4f2d-4dc3-86d3-9c379e0ec27c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8566ef62-2999-4435-97b0-a31c93a29d36"
      id="F_ce3d6fd2-6e66-4c7f-8b41-b9dd7d0c7c10">&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;470,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_8566ef62-2999-4435-97b0-a31c93a29d36"
      decimals="0"
      id="F_21a936c8-67ec-45e7-a072-fd916326a103"
      unitRef="U_USD">470000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
