<?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_e4c9ada8-769d-4b8b-addc-9a56c783fff3">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_6cb8be2a-29f1-42f4-bf21-86af7faa86c9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_adedbc8e-6aff-4e78-96de-41e4b69b4853">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_9d718690-342d-40e0-b4ce-a110758309e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_e7584d1a-d221-4762-9bbc-1beaa8399b28">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_f743a4d5-de44-4fd9-818d-07e7c064b7b9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_9b622617-dd34-48c8-8c2e-da7e3fc40d33">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_7d5fec3f-9007-4698-a293-7374c437ee9f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_eda77c84-ffe9-4533-9e09-634c9290fde1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_5b718978-1df5-47fd-8b2d-2cbb819edfc8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      id="F_2b280178-7c05-4d8e-a572-c495441ae13b">&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;100,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_e4c9ada8-769d-4b8b-addc-9a56c783fff3"
      decimals="0"
      id="F_c83505d6-c3a7-4be7-b6a4-ca48a95cfd59"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
