<?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_49691383-83da-4e05-86e5-ecdc26a57bd8">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_bf7da415-d879-4b80-b294-d54bb3b17041">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_b82f499a-4cd6-47a4-91bc-accce84de8bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_9244509e-e159-4da9-91e4-cb1e521c19de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_f1c55f0a-1ff5-42a4-9963-1d510426e802">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_d6ba185b-a063-4534-b183-7bb6741e9ae7">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_3235f794-c174-47b2-964a-7dfe3b4ff7a5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_2abd25f0-8be6-46f8-bbfc-23a0ff4fdaa5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_8eae9839-e209-47b0-8492-d08ef7817478">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_efeb8c7b-c12f-46bc-9b93-f9a3859d6fb8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_49691383-83da-4e05-86e5-ecdc26a57bd8"
      id="F_254cac37-0ef0-42d7-bafb-6b17cf56a1d9">&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,462,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_49691383-83da-4e05-86e5-ecdc26a57bd8"
      decimals="-3"
      id="F_39ce81fc-892e-4a46-89f8-74461416b27b"
      unitRef="U_USD">1462000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
