<?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_6e2aa772-b37f-445f-8cbc-2fde73340984">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_8c4909bd-d14f-4138-99e1-b531aab811fc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_6c467d53-ea5f-45c1-814d-4dc4b1a10c87">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_bfc7ed01-195f-4848-9ef4-225e110325cc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_7e4237e1-ac01-4ec6-8479-7d82ff4f659a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_0042b279-936f-44f9-b823-efeaa285253d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_5e78b096-c2f7-4ef2-96e4-7f57bb7385b8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_2e0d6ab4-d2a9-40f1-b44d-3480d06dbe25">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_325a17a9-70bc-4ff7-a242-db8eb70bb82e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_403f999c-c9c4-4328-b5e5-1ae81aebe0ea">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6e2aa772-b37f-445f-8cbc-2fde73340984"
      id="F_b32ab3b0-fda0-450d-8e2c-190fe469f825">&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;2,089,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_6e2aa772-b37f-445f-8cbc-2fde73340984"
      decimals="0"
      id="F_5b2b4a7d-fd77-46bf-92b5-c133df537fe9"
      unitRef="U_USD">2089000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
