<?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_b56f64d2-1037-49f1-bdf3-0721e0f897a4">
        <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:FeeExhibitTp
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_84dccd71-48af-4890-bbd2-3894d76bd744">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_50db4b6a-4dfa-43dc-a6ea-6620139f7076">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_731fedd8-9f1d-4b8d-a124-0fd5453d0369">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_a154d314-3d3c-4550-ae63-c9a7c47c4b06">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_3c92f913-8772-475b-8b58-298b569f39fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_31b6c59d-4fed-42dc-b759-4adc06d3efb8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_c37ef82e-aff7-423c-bd44-bad4bad8198d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_a0de7c8c-0905-4020-a386-49b89d755ec0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_f52aadd0-d351-4c01-bb1c-dade3c0c12af">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      id="F_7eb62884-869f-4143-b9a4-141ddd0a894d">&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;5,315,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_b56f64d2-1037-49f1-bdf3-0721e0f897a4"
      decimals="0"
      id="F_f9cc8884-9886-48d6-9767-7607a9fd19d5"
      unitRef="U_USD">5315000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
