<?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_71db8ebb-c87c-4718-ad42-8447f02cc35e">
        <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:SubmissnTp
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_5de7f538-5681-4834-94bf-9500f8f03c66">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_6e7fa56b-08b7-4dc7-a720-73c211a7a265">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_ff0d50f4-d6fc-458f-8926-fc0f32508c72">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_ec1b9c2e-3e1b-43d0-9cf0-f280891b9dd9">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_e61a51a5-65b2-4038-bdac-e77afbf35271">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_14e64908-a795-4430-bc73-c38ecdb76c2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_0bdfd923-04be-46ba-a281-cb3720986856">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_9af4af57-c53a-4191-97e8-247bd43263f7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_843be4f2-50bb-4be1-94cf-16577b24d4e8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      id="F_f192d44d-3904-4843-abe2-346e1e63dbd2">&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;78,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_71db8ebb-c87c-4718-ad42-8447f02cc35e"
      decimals="-3"
      id="F_86fab8e5-86bc-42a3-ac52-fe40a39b05a9"
      unitRef="U_USD">78000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
