<?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_39d2cbbd-df4e-4322-9c85-b3bb760e3944">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_e11b226e-5fb6-434e-9856-17661589c1c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_2dc7be7f-088f-4a11-b029-85938afc9b3e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_45ac5c42-7208-4d66-8375-bb845a2bf75e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_c697e9c0-8dc1-462f-b8f8-ee3384a28959">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_5301c3c4-9c1f-491b-a42c-224669423cd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_06c57730-1440-4abc-b207-4aaeaa9b2463">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_02de8ca1-6463-4d60-b562-9df16a1bc264">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_8c06c9fd-f005-4354-9406-a271fe4dfffe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_e6e46db3-94a2-4cb7-a0c1-56b01a6148f7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      id="F_64a8d8ce-a5de-4d3b-bd7e-bfa576e2a604">&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;5,000,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_39d2cbbd-df4e-4322-9c85-b3bb760e3944"
      decimals="-6"
      id="F_9f45fed0-ff0f-42da-a043-a26d046bc99e"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
