<?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_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_da5ab09d-90d2-49f8-97a8-4932f2751d76">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_ab672cdf-5858-45c2-ba30-09c43befa4bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_3d48ea68-b613-480c-bae9-93f852752a52">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_30349e85-1222-4f90-befe-a6b056655070">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_1927c8db-7618-4379-85d3-82ea75565ab1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_d4be0062-0e79-499e-94b2-eed2589083b7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_b2761e3b-c17e-4060-b20f-30489a02eb00">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_1fb23aa8-0526-4d29-a74f-7c590b05c411">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_3096068e-8d6b-44e8-9b67-fcfeed0dee8b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      id="F_680796d2-f1df-4e2b-82b2-8e33c6f717a0">&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;26,199,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_92f0c9d1-2765-4fe6-a16d-3dba0fd6af9b"
      decimals="0"
      id="F_842bf852-062a-488a-a7b2-af2b8b833b08"
      unitRef="U_USD">26199000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
