<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_e8c0d8a2-dd98-4f46-a0ce-564a97e80bed">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_3ad6195c-6207-4d7a-a3f7-4748670976af">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_8ae87714-c1d4-48d9-a61b-51ddd6e785ad">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_8d0ebfec-cadb-4a29-bfa3-84531d701c1f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_4e998db0-ec3c-4521-a95d-34f69f4f1db1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_bbe0b6c4-96d9-49a5-9047-30b164d87382">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_e28684f3-c896-4917-a6f8-2d7646cb5863">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_5644275e-cf95-4544-8131-19c81a7441fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_ab8df5e6-59d5-47be-97ba-f466004a6032">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      id="F_253fb87a-26f6-4387-ad3f-db2443247ec2">&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;603,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_f7a6af84-5e32-491a-8eab-a6e529a06bf6"
      decimals="0"
      id="F_42381f70-3f05-4cfb-8120-a8077ecd8b11"
      unitRef="U_USD">603000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
