<?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_aa5821e1-f465-45a7-a6e8-0221bde1a063">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_e2c92226-4ee2-4125-8955-e63c47af9181">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_3f02b287-58db-483e-8bb1-b8b6beb89e63">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_95809613-d278-4364-a78b-6d63428d7849">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_a99b92e4-ccf4-488f-8ed8-0cd9c3bd8d12">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_6dab9daf-d8a9-4e85-97a2-22bd389fe9a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_3c6321bd-c01b-469a-a1f4-12457ba1654e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_c16dc35b-da4e-442f-9f04-a36241f1b544">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_99e99478-6f9c-411e-98a2-5c0726f99f77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_42c89b78-e378-4801-b920-3561efa8c3b2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      id="F_38450e16-97a7-4b16-9f87-a537e5395950">&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;205,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_aa5821e1-f465-45a7-a6e8-0221bde1a063"
      decimals="-3"
      id="F_a41ac576-9fb9-48ce-87fc-19b244647309"
      unitRef="U_USD">205000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
