<?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_340a1453-fc1b-416a-809d-42bc61f04bc9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_3624e3ee-156b-40ee-be1e-7f3d93542b5b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_8adb9245-84e8-4245-88bf-1142dcfabeb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_69b99315-d8fe-4896-b149-7281dd6fcee7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_09d0aac2-eb38-4de2-b8da-71a487b10497">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_cc725e53-f8ed-4aff-987b-deca1e71e41e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_d8ff89c1-738e-4847-b008-f50877ddb437">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_19b1c568-b4d5-4d51-973e-a1fcc65d6b07">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_dae2bcbb-7b20-4769-bd63-c035f481287c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_ea167c10-31a3-4c35-ab67-d04b12643f96">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_340a1453-fc1b-416a-809d-42bc61f04bc9"
      id="F_da676a5a-4b71-404f-952d-4783f9552dc9">&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;9,729,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_340a1453-fc1b-416a-809d-42bc61f04bc9"
      decimals="-3"
      id="F_425293cc-2e08-4eb9-a901-3aa5f878db3c"
      unitRef="U_USD">9729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
