<?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_14764470-82f6-4d87-ae1f-46c1e0229368">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_f9ea7953-89cd-4aec-b70e-b00c562dafa5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_b8c95881-6b2c-4a1d-876d-036d717b2434">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_4874f1d9-caff-435a-9705-ba77e235efb2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_d77b8b26-5675-49fa-8544-14c31410470c">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_63a31701-3da3-469e-86d3-1c4794aba1e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_1976c4c9-9d44-4d50-9eb9-f1378dc2a3b7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_da26c088-0532-4f8b-95c8-a5913a3d0b3a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_411610fd-a1d4-47dd-bdd5-f3365fbf0625">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_919c4106-04c0-4fd2-9b24-8a08561ed6db">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_14764470-82f6-4d87-ae1f-46c1e0229368"
      id="F_9c226717-9d85-4a88-8c71-fb7f5bf4a079">&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;7,955,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_14764470-82f6-4d87-ae1f-46c1e0229368"
      decimals="0"
      id="F_c56bfa51-eb81-426c-9525-89b9430f08e2"
      unitRef="U_USD">7955000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
