<?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_7cae06d0-5952-4e07-87a8-39f6952798f4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_c312cb8b-fd57-46f3-82ec-19a053749b99">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_f7df3962-0375-4683-8ddb-e3c11c31c23d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_2e90aeff-960b-4db6-b633-fa061356d004">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_306a8b69-e9f3-40ba-88bb-7a4b2ce9035f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_c6c55239-9725-4714-a109-6aea53fe6a70">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_69db28c0-5cac-4b04-b67f-7834b7bdc95b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_58104fcd-a527-4c45-b874-6a9bc2acb068">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_428dc2c1-f1a3-4b9c-a6e4-c7d84f901418">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_3e5d9274-f7eb-472c-905b-4fe847de6c61">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7cae06d0-5952-4e07-87a8-39f6952798f4"
      id="F_d415a542-5e82-4094-947a-fd05aaecc9c4">&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;500,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_7cae06d0-5952-4e07-87a8-39f6952798f4"
      decimals="-3"
      id="F_40f35686-82a4-48d8-9e9e-6722557f1053"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
