<?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_b1224cc1-533d-4768-ad78-bb15d75956bd">
        <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:RegnFileNb
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_1d3d783c-c0eb-43d2-a8b6-f3a1d8762d29">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_383912bb-ca52-4c98-96c1-027367302ad5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_ffc8486f-0454-4b1d-b473-9531cb428109">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_bb70ed6a-d1c3-4ce4-93a0-0bb26675329a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_cad0ad2a-3c21-4f7c-a967-c31eed6a383a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_7569de6d-d937-4df9-a6aa-b3e7ab38214b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_c0258675-df24-4393-9547-610a4c3f8645">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_2f085266-9295-4a42-bfd3-a1cd0ea071b3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_61c9fef7-9230-49e2-9d9d-4f7efc06f14f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b1224cc1-533d-4768-ad78-bb15d75956bd"
      id="F_182b5da5-9028-4a8c-a269-5a279cc12e3d">&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,010,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_b1224cc1-533d-4768-ad78-bb15d75956bd"
      decimals="0"
      id="F_d00d1563-fbdb-4571-9d29-4a7f61d6d43a"
      unitRef="U_USD">1010000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
