<?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_2c0e9d8a-494e-4078-a3f0-b364659c0960">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_d88f1548-a960-4150-a334-8332a386a2bc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_054d7dd6-342e-41fc-a08f-482d55a60287">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_ac8ab6d6-8c21-4ff3-86ae-e7882c4fc478">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_36dbf228-e881-4728-a67e-ae0b71adbf16">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_5569f744-56e7-4ce7-85c7-e24fe274929e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_75e8d46d-1d2b-4efb-8180-3109fd84cd03">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_dad6aa90-24ab-4ef3-89b1-1b3b4f20d577">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_d9fdcfe7-cad6-4b8b-b01c-2195e2177f87">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_df6304f7-87dd-4e99-9cb1-8d96d06bef33">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      id="F_332a497e-bf25-4806-a9d0-8ce1c61e5348">&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;3,216,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_2c0e9d8a-494e-4078-a3f0-b364659c0960"
      decimals="-3"
      id="F_3f48ab0e-1edb-4e0b-bee0-efffb89968be"
      unitRef="U_USD">3216000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
