<?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_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_31f2b2f4-4495-4ede-af87-8f6fbffccb4d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_fe99afcf-b78c-4f06-a172-d29c722fd307">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_3f0e8b0c-566f-4a12-b58e-cced69ae439a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_90bed20d-16c8-4fbc-9997-2da48a59c970">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_f0292ef7-d40b-4c25-8a7d-e3867e592d3d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_be05e88a-bd12-485d-bad1-a37a92767be0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_1f0a5605-0c03-414d-991f-a28d240d458b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_b1920cc5-825c-4386-ab7a-ec4a6d6b6b63">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_27aa9858-7fce-4bf3-9d8e-d5315cc672be">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      id="F_012f2ef6-2ae6-40b0-913f-9f9ac64f1bc3">&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,036,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_0bcc8eec-a90e-4042-8aab-3384ffbd5ae4"
      decimals="-3"
      id="F_0e49c40d-5f9b-415e-a3b8-9ac46fb1de67"
      unitRef="U_USD">2036000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
