<?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_3d76b9b5-0c14-471a-80c3-a5c83446077b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_b2266464-0688-4fe0-bbbc-f0a09794cc2a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_a429cf26-07f7-47c0-aa73-b50fd5ce1710">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_b58b244d-b9fa-4929-9a7f-70d0d8999e52">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_a156f96b-d1aa-458c-9f35-ccb1b2d81c93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_cc3ab1dd-d989-431f-abde-fdcad04bb174">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_04fd7cab-4d18-434a-b8f8-3386cb12dad8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_9d69a4fd-7b8b-4b79-98b4-07865955ce50">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_f3db7060-ba00-437c-857a-992021d5b7f3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_8348288b-0350-49f7-b221-30ce018608e9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      id="F_be2bd13a-4c5b-478e-b9df-d71da9722d45">&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;1,546,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_3d76b9b5-0c14-471a-80c3-a5c83446077b"
      decimals="-3"
      id="F_7e02bda1-c4eb-45cb-967f-b96e9dae8c0d"
      unitRef="U_USD">1546000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
