<?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_3f56fbc5-194d-4304-b283-90bc0d68a76b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_f112f69d-b43d-4ef8-b4c4-cbd6c7847670">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_67d1f811-ef58-424e-a4b3-0b796d2cb6d8">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_a510382d-21de-48c1-8a06-4b788bbb5415">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_0543314a-cd2b-45ef-a319-1b20907e65b5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_22f2dba5-00fb-422a-a6f6-1005de395b67">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_1b8de325-ad44-466c-9c4b-fb35a3b6be22">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_28165e31-c857-4b9e-a588-9988ff0eada9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_528def5d-9916-4d48-a7a2-b281980697b3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_87f54c5b-8afe-4d8d-871d-0f8b671c1460">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      id="F_7e4e6b39-6cf4-4da1-b3e0-a6a1326958e3">&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;10,000,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_3f56fbc5-194d-4304-b283-90bc0d68a76b"
      decimals="0"
      id="F_486744e3-2625-4a4f-8c2a-ae0f62d3d058"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
