<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_a8aa7760-7543-4848-b603-5fa11885f7fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_4ebf019c-5d6a-4ea0-bc8e-faa5f858e439">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_754154cf-f460-4a70-a7fa-e366ad6c3774">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_3733467b-bf24-4dfd-b3c1-ce3d87420442">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_027b85aa-4072-4301-b9fd-af009b80032b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_67853fe8-e334-412f-a8c7-3caa6755ad58">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_8214096a-c3d4-445d-b520-73f4b592375e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_3268deac-562e-408b-84e1-24ad67e72c3e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_a055eba5-6756-420d-bb72-a29fc5dd3ce7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_1ce9cf15-00fc-47e6-b312-fc71eb6e2911">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a8aa7760-7543-4848-b603-5fa11885f7fc"
      id="F_d66a6ed7-c05e-49ca-83d3-060869d29623">&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,707,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_a8aa7760-7543-4848-b603-5fa11885f7fc"
      decimals="0"
      id="F_f441f245-fae6-467c-9af0-e4d650d86c87"
      unitRef="U_USD">3707000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
