<?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_1877d2cb-09e1-45f5-beab-f33fdb70a7e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_c27d3218-e9ae-486d-8bf0-e42bdbcb7f03">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_d08f9d3a-41e4-412b-b0df-428a639b21af">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_1e269f36-489e-4437-a422-5357988c99df">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_8f0c2e75-48bd-40ba-994c-a8556282c244">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_30a467f5-c47a-4799-b655-d35a587699e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_b78c7e0d-c87a-4428-8d45-c3a7eca905c9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_39cb455d-4bc3-4106-bbc6-24e111b5594a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_0522cca5-b16b-4236-b33b-d9e8dfff39f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_a7f3d553-5568-4fd7-8b8d-1af7ef133f38">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      id="F_e1aa2682-e8d9-406d-97d8-bb7a8eca994f">&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;10,633,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_1877d2cb-09e1-45f5-beab-f33fdb70a7e4"
      decimals="-3"
      id="F_11848dba-958f-429f-9b8b-46f1d8cd085a"
      unitRef="U_USD">10633000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
