<?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_4f4f9a59-73fc-4178-be35-ec486d0e516b">
        <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_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_dca7522a-0564-498e-ae0a-09d0fdeb8b09">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_41c78939-9e5f-4455-8f59-beae60029c8a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_631d24ec-bb12-4561-be4c-c8a081169d1f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_50dd8bd7-9518-46a0-ad5d-1d58aef739da">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_d36d04fa-777d-4f59-82e8-067930c6ffc9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_74340a28-751b-4522-9da5-d74194ce7b77">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_34cc49f1-1edd-4a80-ae2a-55e6b8a721c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_4628a4aa-35d7-4d6e-9c14-9e47a7042f2b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_9a827717-63dd-4015-9c13-7af47a31189d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      id="F_a5bda324-5b31-4565-9e47-81980722911e">&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;785,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_4f4f9a59-73fc-4178-be35-ec486d0e516b"
      decimals="0"
      id="F_42df0dcc-9815-4874-bcd0-d4d7848e5742"
      unitRef="U_USD">785000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
