<?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_53d468f4-89ce-4646-8430-cd12b15c1fdd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_49c0c3af-2dbd-40a5-8124-16d4af8826f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_ed215ccc-6ad3-461f-8c11-adb15ce4bbd8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_a60546a5-b712-4b5a-8ef8-42b1bddb91fb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_5a30aeb6-df73-4e87-a5e8-e2bdeff45587">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_2b775b7f-8975-4d7e-a698-e5b5db08033c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_f8e3f5a0-e10c-4ae2-addf-18fd3625c7d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_e0aa646f-06d5-402d-801e-0940dad1b9e6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_98c61ce6-cc09-4a8a-8d2d-0afef65d29ac">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_50a8fa94-08f9-4f06-9671-9b8c641dd65c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      id="F_c3aeac3b-e1a4-4c31-a426-3b28217cd122">&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;818,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_53d468f4-89ce-4646-8430-cd12b15c1fdd"
      decimals="-3"
      id="F_141f379b-e2fc-47f2-9b0a-d9a46465fd6f"
      unitRef="U_USD">818000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
