<?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_b994291b-d620-4ec8-aeda-0507cdbf34e0">
        <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_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_e6fcbc1d-3ca9-46cc-b073-ea8837660cc2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_083cf2db-6a1c-4ba3-adaa-30df544db436">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_f8faa5f7-8213-4f4e-ae98-1c3129434c6c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_44700add-532e-4c16-b1b8-fb5a7f61c992">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_137d8a83-3aed-494d-b6e9-78e07ae76812">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_139a63b5-cdae-4bbe-861f-4dc8f26d3a92">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_a38adeba-5f90-45b8-bfc0-e73758b7977c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_aa9fec32-37a7-4420-a158-fb1832c145ed">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_e61a6af0-c68d-42d2-8239-f2e42730f4b8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      id="F_4d387271-57df-4fab-b960-191e318b97af">&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;4,623,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_b994291b-d620-4ec8-aeda-0507cdbf34e0"
      decimals="-3"
      id="F_2132e14a-17c2-4dcf-9b91-bf2745f94964"
      unitRef="U_USD">4623000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
