<?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_2472c36c-8a89-4c66-9cf4-c052bcda3425">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_a1d3fae4-19a5-4d64-b6ef-e02d23e37dab">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_6ccc5b4e-16fe-4307-bd82-2f3007ad1d6d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_8f053542-8094-48f1-8d6d-c55c23d01e20">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_bdcf8125-7ebe-492e-8a74-ed60798b553d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_8ffa4f86-384a-4e22-a679-635b9217793a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_69dc5fc9-f2c2-465c-8837-bcd16bace6e8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_87e6a527-e7b7-45d6-810f-317372bbf25e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_cf165102-ead8-4cfa-9340-1de51077ac9b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_bb15a62f-7e19-4695-a2fc-f1ae7be711a6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      id="F_65d1fc03-b2d3-43c0-9bdb-9edbf9d9710f">&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,544,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_2472c36c-8a89-4c66-9cf4-c052bcda3425"
      decimals="-3"
      id="F_3e2898ab-d956-4f14-b411-0584bf86c1ca"
      unitRef="U_USD">2544000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
