<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_7b205c07-b9d1-4f07-8d47-59ec9332e899">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_2898935d-6d5b-4632-9752-c26397e1a463">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_abd914ae-a0c2-4171-b123-3b13a0705ea4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_6c05fa91-0312-4a2d-8482-b7f8b7b215cc">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_565b58fa-32b8-4ae4-b30d-4d1f5a910084">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_3b57fe61-7126-4746-9db1-9ae4fbe3cd61">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_15464582-f3c2-43a5-8446-9931d3394419">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_a15f71fa-adee-4385-b24a-397d52703c1c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_2ef8f63c-c1c5-4555-9712-9718597a26e3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_85e2ae47-3470-453f-99b5-90b8818c5b1f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      id="F_db2cdfa0-d429-4183-9c33-c441068ed893">&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;3,358,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_7b205c07-b9d1-4f07-8d47-59ec9332e899"
      decimals="-3"
      id="F_4732012e-8600-4ba4-849b-56bb33cf50b2"
      unitRef="U_USD">3358000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
