<?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_3b5b7dc7-499e-4e19-84d5-1aec6918a658">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_50b6f599-4cb3-42cc-9425-bccf959dc278">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_7c819f3d-fca5-43a2-bb50-047c363e1911">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_2b928335-6df1-4a4f-b652-246095de64f8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_04828be7-cd0d-45c5-8025-c6f0d87575d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_7fa1412f-a074-4d14-b9df-fffdc9b44c0f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_466c38a7-1cb9-48c1-8e78-5417c734caa2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_ea00f713-7fab-47bf-93d3-4c2d6a8e2154">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_a6356ced-a200-4104-9242-1f2b01c1f251">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_3e8f17b5-f942-408d-bb05-29e34d9c53c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      id="F_bf8133e8-870a-4071-84bb-7feaba4cb2e3">&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;21,320,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_3b5b7dc7-499e-4e19-84d5-1aec6918a658"
      decimals="0"
      id="F_a0f8db0d-0cec-43ad-9fdc-be3695c03b45"
      unitRef="U_USD">21320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
