<?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_d9369400-b65a-49dd-bf51-5f1344722bd0">
        <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_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_7e24abdd-1cf6-4227-9e95-a18b5f6224ac">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_230f97e2-00c5-4aca-a7f2-fccc39322b25">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_6ee9976f-cc06-49c0-8f41-009ee8e8acae">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_9f963465-7331-4ae3-adfa-61b9f6357277">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_a9b055f5-142f-42eb-97a6-6c10c4452294">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_7cd087cf-e45d-4544-95dd-157394dadc3c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_82b7fafe-505d-4091-bf55-7cdb195612b0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_a490fac7-823c-43ec-8140-b2a82a126f14">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_ba84ee26-9c5a-4812-8b0c-e08aaffbda74">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d9369400-b65a-49dd-bf51-5f1344722bd0"
      id="F_1c7a6625-0ff8-47ff-9b17-4bee261f5c90">&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;13,808,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_d9369400-b65a-49dd-bf51-5f1344722bd0"
      decimals="-3"
      id="F_7ed02fd8-2e12-4b28-a3bf-baf2a966331b"
      unitRef="U_USD">13808000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
