<?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_ebbe42e3-64e3-41ef-a3e0-9547e56ee197">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_820852da-5a3f-4cd0-a81b-e07babf93c96">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_1ba81171-848c-4538-af3a-d662673cd0d6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_c9526315-15d5-49af-a667-4e78d70ad667">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_3256211a-e579-4464-8467-757cbec72158">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_47628693-c0bc-480d-b307-2c800ca82ae8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_c7818069-7d8a-4fb9-a307-6ef3586fbee6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_8d1d5f80-f5ad-4d64-9ce7-522282ac7be3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_2d86ee80-2f12-4118-ae72-1657757231dc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_f516a094-1afe-4596-9c7e-7f0739f261f6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      id="F_664854a8-46ff-4a64-8461-e6f18c612137">&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,015,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_ebbe42e3-64e3-41ef-a3e0-9547e56ee197"
      decimals="0"
      id="F_0626d260-8761-40d0-ac7d-86d3e43b51de"
      unitRef="U_USD">1015000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
