<?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_79b95ec0-8f52-4e67-b85e-5d5282b3f560">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_02c6bb0f-b16c-4023-982f-7f9ecd3a8b3b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_2b69b2f8-71d6-4b1c-ad00-4f5814582ef8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_3a473a73-97de-4925-a640-af514c952df8">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_2eaa9d25-72f3-42a1-95b8-87e98cd57b05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_d0261cfb-b0fc-4c64-a036-683ed18a9229">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_f1056f3a-090b-4883-b519-e7202296dd46">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_3121132a-601c-4e34-ab06-732f75464ce4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_ff95b648-9dfb-404d-b06f-a72243a3dede">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_b3c35b81-b1a5-4410-bcbc-3a2b9a4a20ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      id="F_d224b6c3-09e5-4e39-a5af-c24ae1871069">&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,861,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_79b95ec0-8f52-4e67-b85e-5d5282b3f560"
      decimals="0"
      id="F_247ebdcf-2791-4c5e-9e9b-75b0c6f64a74"
      unitRef="U_USD">7861000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
