<?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_dde39d03-e7c1-49b1-aaf6-55696ead4b5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_d1c8ed77-b495-496d-89ef-d0b23f118073">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_52b0f814-da6a-408e-8552-b68678d3d715">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_a319bce5-236c-4e0b-ac27-63b1b2a9f191">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_b123a5c3-d007-43d4-b156-49c18ff6bba8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_142c1447-7861-4fd3-86e8-ce8056dd24e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_6bacedec-1ece-42d9-9c13-3da326ca7b23">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_0da9749c-e3f6-434f-ad3f-26e8e70a4881">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_84f2d7d9-fe98-485b-9931-815a83ad8007">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_ea783496-c709-4184-91a7-bbcc12296199">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      id="F_f3d45ef4-c55e-45f1-80d6-02f947175d61">&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;285,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_dde39d03-e7c1-49b1-aaf6-55696ead4b5d"
      decimals="-3"
      id="F_6cc05468-ba5c-4384-9e7a-84bd3c333aac"
      unitRef="U_USD">285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
