<?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_887c614c-e7f0-4d0c-bee0-be499323c034">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_71384d77-119d-4d46-a18a-2d2bf67d2ace">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_0678dc08-c225-4e78-88cd-fbd792dbdef9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_f2ec26de-1539-46c5-acaa-05b35b33ccfa">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_354dae26-734d-4c21-b26b-fd456635e4ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_e96b177e-1545-4d6c-b881-92429616bdfb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_a5b0f72e-a47e-46fa-b016-86d55c110fa6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_e08eecf6-e3fd-497a-ae1c-94f13b2b0337">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_12476724-c759-4813-bda0-dfce07c3e731">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_1ea893f2-504d-4a32-bcda-cfeeba3fe753">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_887c614c-e7f0-4d0c-bee0-be499323c034"
      id="F_c452b609-bfb7-4fce-bb95-aff86b465021">&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;330,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_887c614c-e7f0-4d0c-bee0-be499323c034"
      decimals="-3"
      id="F_31b7b08e-6f35-4546-a36d-ed7ad1df8e01"
      unitRef="U_USD">330000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
