<?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_40249045-950a-4543-9fa9-f2c9251cd6f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_6d03d352-b0cd-423a-a0f9-71fea20b235e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_aae16224-6a64-4d2f-8850-6451abae0fce">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_b12e6ce3-8807-4d88-be02-edc03dd36403">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_69757587-d560-4829-95f3-29c6ee7677c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_b3b1cf0d-f586-4d6c-92a6-73d33f677258">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_4d148151-b65a-4ca0-8574-46b51d472cdc">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_61f66e53-4acc-4cd9-9d7f-9cdbb1dc7478">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_3014787f-a58d-4f89-bbb6-b435177fdf47">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_6774ddc4-0759-474f-bcc6-46bc4bbd9dca">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_40249045-950a-4543-9fa9-f2c9251cd6f6"
      id="F_7ede5ffd-031a-4a67-aca8-61a37ea604f8">&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,597,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_40249045-950a-4543-9fa9-f2c9251cd6f6"
      decimals="-3"
      id="F_353edfd9-afdc-4ff3-b8f2-6f154b84d084"
      unitRef="U_USD">10597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
