<?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_0d5a317b-2423-46ef-88cb-739f9d423aa6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_749195ed-ecfb-454a-a948-2ac5130a4dec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_6f8ccd35-5bbb-44a2-9b82-2eedca97814b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_b6b7713a-2205-49fe-8aac-f2fd3ed5086e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_27e341a1-e69d-4847-95e2-ae29fd080fe0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_8e4676ee-47ca-41a9-b56e-75eb8c1f600e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_2af7f47b-2131-45f4-978c-95120cd4d330">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_bfcad78d-539a-4cd8-8268-b6352b5e52f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_b00f7458-bdac-4ced-9ed1-34c45398aa18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_183c41c6-2266-43a7-8a05-c6929aa95256">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      id="F_63b841f7-fecf-4a97-94e3-7bb82848b04b">&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;7,694,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_0d5a317b-2423-46ef-88cb-739f9d423aa6"
      decimals="0"
      id="F_2288c708-ed6a-45b0-8fe5-479e13ad3e45"
      unitRef="U_USD">7694000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
