<?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_ab1d465f-7bef-4e24-975e-e2657a587217">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_40cf1b57-ded7-44cd-8df7-0e72d80687c1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_0ca34a5c-0563-4803-b76c-68c8ad0b0a39">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_e516cd1f-d566-4466-a2b3-ab9363337ef3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_fc03920d-ce08-47ba-a03d-7e15f27aef2d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_b877b78a-a795-4ded-9e37-a03cac335319">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_e8210fd5-d456-40b1-9c40-de9fd95fa609">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_210467b0-e5e7-45f6-bf74-0feba0d32fda">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_89fd2274-0dc4-4dc0-a3ca-e15386a32516">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_a7e1feb7-41d2-4219-a637-c943d1f0784b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ab1d465f-7bef-4e24-975e-e2657a587217"
      id="F_a09ea8a7-fe2f-422a-8297-162bf6b6f179">&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;1,270,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_ab1d465f-7bef-4e24-975e-e2657a587217"
      decimals="-3"
      id="F_cd8c2ae0-8512-4e7b-92c6-fce151cf52c2"
      unitRef="U_USD">1270000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
