<?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_c7dd6ff8-9ca8-4995-a16d-8699194af58e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-27</startDate>
            <endDate>2026-02-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_13986b91-9ae6-4b41-a1cb-b273f06a7777">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_55ebdcb5-cb2d-4f23-abcd-fe1407cb7efd">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_4bea6d27-90a2-4591-8751-c6247cb49db1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_7367c5de-c6aa-4b33-b31f-175d8815619a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_82ad067d-ef07-47d8-95db-732603e5edf0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_0472532d-acad-4937-9ad3-2177673fb4bb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_00e93bb7-1c1e-4cb8-a0d7-7ba49c7fd53f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_9c78fb92-851b-4550-b2e6-752d58b3ac80">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_8cf08a4c-ad35-4de4-9632-e630e00d72d8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      id="F_c7d381a0-bf7f-4ed7-a991-6f7c1eab78a9">&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;1,000,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_c7dd6ff8-9ca8-4995-a16d-8699194af58e"
      decimals="0"
      id="F_5e8e2251-d85e-40fd-9951-6f311f79b650"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
