<?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_1f642303-9214-4440-af64-889516708858">
        <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:FeeExhibitTp
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_70fdea2a-802c-4f3b-bf14-d67a25a4fe7a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_770a141a-82c6-4e61-8c79-683734446f18">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_d8e66b75-e3ef-440d-a496-d2f6efe1d0f9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_b92c7d90-37c0-4084-ba8a-7a56c71c405f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_758376c5-0150-4402-82a2-e670935ef108">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_17dab693-7e7b-4787-a527-5c28757a6b4b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_d83eb7aa-e647-48a9-914c-8768161179d8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_8d08b0db-a947-433b-8eda-5dd3a0f513dc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_105649cf-6b17-4f22-ad97-fd25aa5cf8f1">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1f642303-9214-4440-af64-889516708858"
      id="F_c98b3c2c-6ee2-42f2-8f3a-76052d36dbc5">&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;2,195,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_1f642303-9214-4440-af64-889516708858"
      decimals="-3"
      id="F_43f7f04b-8fee-48f9-8a44-39d2bd45393d"
      unitRef="U_USD">2195000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
