<?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_1becaf53-0f92-43f7-99ed-e299bce1ee30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_4c192ea0-2838-4962-8b96-9423660cfc37">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_bab7942b-d8ae-4f26-98c1-6bbc137d5077">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_8057d7b7-1fb3-472c-a6a2-fe9dc75f075f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_a9f93978-bb31-4712-9aa3-53ef815d505d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_cf7284a3-6e7f-4043-9cf5-7ac18e70c460">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_eca75b43-b325-48d2-8af9-e13a9b9d91df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_3bf59b05-9ce1-46c6-9f67-2fbe9900c835">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_35541724-dae9-439c-be23-1f0a788c6571">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_02375e2f-346b-4bf3-86e2-d7758a8a6c43">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      id="F_de6ce639-88ce-4630-8d80-66e87baa5fcd">&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;6,790,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_1becaf53-0f92-43f7-99ed-e299bce1ee30"
      decimals="-3"
      id="F_6d0f0feb-912a-4c3d-842f-3608fd1adde9"
      unitRef="U_USD">6790000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
