<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_e7aa8d65-9376-4acb-ae83-91d0ca54aec5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_84056b38-fa43-455e-8d79-ca4e194a3137">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_8e4f28c6-59a8-48d8-bfcc-3045581065f9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_ea2bcb54-5cb8-46be-9dbe-f9f6c591867e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_e445040e-136b-4287-9fbf-2c0a0f41cadd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_d6ad8ff7-de61-400d-abac-89d5fb34f85f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_6c02e9dc-0bce-435a-bf92-aff40664337d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_5d1fe141-03e2-4257-882d-0b108e9c920e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_85166222-0c9b-4504-9c28-921a306aff4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      id="F_21b69fcf-6833-4ad1-a2fd-7ea7b5702ee9">&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,712,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_69c1d80e-ecec-4847-bc22-14a4653e4b2c"
      decimals="0"
      id="F_09d64fff-420c-444d-9524-5f524800832e"
      unitRef="U_USD">1712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
