<?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_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc">
        <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:RegnFileNb
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_46a4510c-c390-4909-961e-81c49ae18419">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_bcad55a6-29e1-4c67-aee4-3089e15d5863">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_141070aa-6a57-41f8-ae41-b76f31cad9de">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_ad792463-4094-4733-ae68-b46e95b932b9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_1a0f814b-ff76-4dd1-8430-44f9d46a48ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_46072eb0-0fb3-4489-9a37-68dfe98a63c9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_55320e57-b0c0-4622-a884-06f72e8c113e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_597d53c1-dc28-4365-8e44-cebe81282fb2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_8e337862-5a67-421a-9e8a-1723cbcab741">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      id="F_68cdec4d-bde0-4656-8e6d-c062152f4c92">&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;13,468,670&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_942db4ef-9e7d-45e9-9588-21bf5d6ca3bc"
      decimals="0"
      id="F_9297df8d-9d33-4f03-8212-dfa6877d0f45"
      unitRef="U_USD">13468670</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
