<?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_35beacba-c323-483f-9a4f-a426ac919eaf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_deff0fd5-b4eb-4bb9-bf75-f4a1b071fa29">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_443a93f7-4953-4e37-a9fd-d4efd5d442d0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_960c6acf-6d85-4539-b0d8-71c1e465ef3d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_f567a212-9ce5-4f5a-ae4c-62124d7c51d5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_2fce15a1-8dfd-4af4-bba2-05d690785fd8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_1e09f2ce-df7d-4541-8a0a-db4bb0176758">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_6fbfeb8c-c190-40a5-b843-c5639b33cb95">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_fe03a1f0-9368-44d7-b9df-58d7ddb86f65">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_d77affe9-278a-49c8-8d39-dd38009c6603">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_35beacba-c323-483f-9a4f-a426ac919eaf"
      id="F_6f2720d4-dd3a-4433-83f9-8a437b01eadc">&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;924,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_35beacba-c323-483f-9a4f-a426ac919eaf"
      decimals="-3"
      id="F_13a24087-1e5d-447b-b482-e25c3ed900d9"
      unitRef="U_USD">924000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
