<?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_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388">
        <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:FeeExhibitTp
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_db87d2ff-ac45-4d7b-8317-d8dec7ea9291">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_f7ce2a9c-eeee-451c-bfa1-b5d580368c99">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_ce99381e-ed2e-49e8-ac00-7575dac8aa5f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_3af82e10-5340-4781-b120-533d2e137729">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_69a00406-62c1-45b9-8ed9-3d3976a34046">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_07c9cd40-b3a7-48cf-aedb-5d85a8202024">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_f8202000-ef53-4e61-b20c-336fee92fba5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_c6bf1b00-7a4b-4c3b-91bf-c20cb06a0c90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_5385051e-9740-4fd0-af5f-6620a074dd05">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      id="F_6c0e0831-e52f-4689-acc1-754f23385a96">&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,309,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_9bc30d5a-5b5d-4c9d-9138-e25fb8d4d388"
      decimals="-3"
      id="F_cbcc5706-7619-432c-9100-c819e26198fe"
      unitRef="U_USD">1309000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
