<?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_1e314578-ccc8-4d0f-9fff-5624987c5057">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_204d5152-5661-45de-934d-8fa347977b46">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_57a5b183-d1c2-450e-8336-bdda5e52bc4f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_9054c300-c4b4-486e-88ee-7f3e7a537d0f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_e7a45d2e-0989-4472-9b39-28067ec12979">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_518d0f97-673a-4dc2-8e77-5ae900d0571e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_5e952dce-00ce-4832-8883-b4dab92b71c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_96e2d45b-f006-4acb-9ac9-70b2fa5ae481">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_a8d586f9-b340-402c-8180-5ec4f71e2c50">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_ef2ddbb0-1995-413c-a90f-a3cad8362da3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1e314578-ccc8-4d0f-9fff-5624987c5057"
      id="F_23cc5162-f5ec-4f18-b5a2-3e11137c962d">&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;6,739,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_1e314578-ccc8-4d0f-9fff-5624987c5057"
      decimals="0"
      id="F_b70cd226-76fa-4ba9-8c9e-f222e7fd8def"
      unitRef="U_USD">6739000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
