<?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_b3227095-3417-4fce-80ea-34496ddd49f4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_ddf52fb8-df9c-4591-845d-a218a8240706">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_760d898d-c927-44de-91b1-ff6bc3e0a99c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_c5b5af0d-a137-4556-8135-6c66367873ac">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_09da0190-8326-453a-b7c7-b5c2d57f249b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_ede6ec70-0a8c-4fd5-bd08-5914adc7cef3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_a1633910-bfee-4f15-8554-11783f88a3f7">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_76bfe8b4-e816-4312-91ad-1620459426a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_c7e7f849-6bb9-45c8-bf6c-697e27e02195">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_ff2668d4-406f-4f6b-b03d-7f1b66b82094">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b3227095-3417-4fce-80ea-34496ddd49f4"
      id="F_9b6dd292-15d2-4be2-911e-d83ad17d7263">&lt;p style="tab-size:26.66px;font-size:12pt;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;7,126,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_b3227095-3417-4fce-80ea-34496ddd49f4"
      decimals="-3"
      id="F_723fd5f9-9a7b-4ee3-8c1a-7243c3a5a471"
      unitRef="U_USD">7126000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
