<?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_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0">
        <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:OffsetTableNa
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_5c087c3a-9e7e-47b1-9a38-c3c51fb3bd97">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_f7bcb5ad-df10-46a0-b3de-4c8e9881d12e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_8e40895d-3a8f-420e-b985-e4a22cbd412f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_038332a5-654c-47eb-bd3a-d7b3d964ec21">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_f02d1e11-c0c8-45b8-9c00-b2d8b041ea0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_3be16b33-dafa-4eb9-848b-a1a5c7b43cdd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_6ceefade-62d6-4b77-9612-2a934ab14af9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_d7218a78-0850-4ec9-9438-075a02278191">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_c782db08-1dd0-4df6-862d-7d93f6d0167b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      id="F_96bda76e-9628-4bcf-b8b6-00c10d26e703">&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;550,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_198fc4a0-d27e-4f7e-a4a6-194a0c51b7e0"
      decimals="0"
      id="F_47722081-d0e1-47d9-a418-22a7472e861a"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
