<?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_851ecc89-af01-4f01-a391-720d6cab9e54">
        <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_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_43e178ae-4d80-4c40-acf9-e9b6a2957a99">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_79f896c7-c5a8-4eed-8840-45756a731d59">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_a8acd4f7-dc77-45d0-8d4e-2dc9db392260">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_5471a408-87c4-4eef-8430-ff9ae73deadf">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_685ae9c2-a53f-4031-b3a7-8b08046c14f6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_e084e6b6-2e38-4f87-b8a7-aa8831bda945">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_4b836a3f-3bab-4dd3-b8e5-4ea9fc7200ed">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_10e2e463-3b35-4082-a84e-a62add46494c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_cf0b622a-3fe3-4ad9-9a24-aac58576db15">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_851ecc89-af01-4f01-a391-720d6cab9e54"
      id="F_a44bc08f-49e6-4082-922e-2481ef87c168">&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;1,157,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_851ecc89-af01-4f01-a391-720d6cab9e54"
      decimals="-3"
      id="F_02d0a30e-43c6-4a1f-bc11-17fbad4ce5aa"
      unitRef="U_USD">1157000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
