<?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_bb383262-0f6b-46a2-8445-e5d70eb465eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_2737ebdc-ee1b-48ce-94de-cfb3c251b99d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_8d0e0681-18ec-47ad-9ddf-cb4f58fbf108">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_a87f01f6-4874-456b-b7f5-089756a3d317">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_f01b26b4-c10c-476b-a045-cfc26da58f8a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_858ba1b9-496c-4192-b885-59abb0624e50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_2df9e6b8-5965-49e9-a35a-318a32810527">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_dca81d90-7692-4ee2-bca0-504c1d15faea">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_aff90390-42ae-4f1e-94c0-8362fe657586">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_7624e5d2-2f07-4451-80b3-4b3e46481c5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      id="F_3442743e-8300-4e44-8608-ccaea029c747">&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;9,575,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_bb383262-0f6b-46a2-8445-e5d70eb465eb"
      decimals="-3"
      id="F_7de72e1e-43a6-450c-83e2-8fe9ed9e5a8c"
      unitRef="U_USD">9575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
