<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_8e310697-0107-4dd8-985d-edc76114b440">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_512810ef-81a1-4b87-a36e-af332a9b83f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_4967ca90-3f39-41a1-8ea7-dc2d31cc454e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_23c01c81-fa8e-4ded-9c06-6d5df73ffc4f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_d1d44dac-40c4-4569-9161-59f820d66414">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_8d5a0ad8-e93b-42d9-ba50-cbe11492473c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_9f019114-1f7d-4ce3-b5be-a921f21d6ce5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_18a7c966-5dc6-4d64-853a-c96a2c2454be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_6b4c5e7e-0594-47f4-864c-914df1334841">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_ad49c012-c26e-4281-95f7-faeea77bc012">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_8e310697-0107-4dd8-985d-edc76114b440"
      id="F_6c1395a5-8829-4f1c-8e35-5a8ab661a6cc">&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;29,186,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_8e310697-0107-4dd8-985d-edc76114b440"
      decimals="-3"
      id="F_33279502-cd68-401a-8d19-8aae5422cce4"
      unitRef="U_USD">29186000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
