<?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_3c7c5b77-5375-4ab5-8052-60c5de00d50c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_43a0d8fd-194d-4171-ae19-548b64e84f29">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_ef6e057c-f9ed-44a8-a73b-aaf889b1f6c2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_0d3ce38e-b080-4939-9a0c-5768493d5d5a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_eea692c4-3849-40a6-b907-f4accd9aa021">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_94205b20-918a-4935-ac33-ee2df61e85d4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_24178394-51d0-4bdf-8876-1a5ab77f8610">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_4899a608-ae32-412b-b92f-38bbd1cc06b0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_9ce651ba-eca4-4604-a80b-78c1c4aa7906">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_dbe05a48-135e-48ca-bb33-bf0a69b9d692">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      id="F_949f9e40-dd61-418c-b3a3-47463c583ef6">&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;746,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_3c7c5b77-5375-4ab5-8052-60c5de00d50c"
      decimals="-3"
      id="F_cfd0b1da-c637-43d6-ac46-76a6f74a0357"
      unitRef="U_USD">746000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
