<?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_6c0450bf-c452-429d-afe7-076ebc295391">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_7019cbc5-3bd7-44fc-b18f-b96a60fbdf57">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_25697cb0-a963-4cb6-90ee-11f4ab2bad85">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_1bf94dca-2d33-406a-9776-8e0658dfb1db">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_f6a517b2-a9b0-4134-a77a-9f07b62af58f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_fb90c00c-13d6-4b4d-9c5a-78dd055c76bc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_9b28a943-37bc-4648-a5f3-2b415b8479a1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_2f42edba-d452-494a-b5f7-a19628a94c86">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_5e703356-1e4c-414f-82d1-ded350003817">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_255093f2-5df0-4207-8ea1-760e078eca17">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6c0450bf-c452-429d-afe7-076ebc295391"
      id="F_f2e63fa2-e2f0-4cbf-abc8-91dbc841dd43">&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;5,642,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_6c0450bf-c452-429d-afe7-076ebc295391"
      decimals="-3"
      id="F_89026279-9581-4d18-a1b1-75d7f8bea629"
      unitRef="U_USD">5642000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
