<?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_43371d6e-8d18-49bd-b6ee-c0deac06012d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_973624ad-5861-4c17-9c0f-362bd7d99e54">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_11c5e052-2be5-4f6f-9685-e2465dd2a83f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_e673ce24-fa77-4093-b5d4-868ffc5975fc">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_3ae3ce0a-0beb-40f8-be18-4fc17cf3f10f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_2434b3ec-b5f9-4d50-b07b-02cda5bbb8dd">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_3546c2b5-f507-46c1-8fa0-935865eabc2b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_b99c3d3d-7ff3-4f29-920b-1def8de460fa">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_977b5c3f-f6e4-4bc1-bd0e-b028ce004c2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_9aa3c485-07fb-4bf3-91bb-32ec86a56364">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      id="F_c9bfca00-e41a-4718-880a-21158fc57757">&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;3,289,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_43371d6e-8d18-49bd-b6ee-c0deac06012d"
      decimals="-3"
      id="F_3a3a6094-deac-44d1-9bed-da8b340db031"
      unitRef="U_USD">3289000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
