<?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_9238c5fc-985d-4145-94f8-bc49f895a031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_099f75b2-3650-40ef-8ba1-dd7b84f1473f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_c6f1a400-1fea-468d-9d81-2a5dd5638450">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_1dda8430-7c85-40ee-bfab-271d9d174fed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_0f1faf14-80da-4b7e-90c9-81752285b3c9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_bc1fc5ab-61bb-43a3-b936-4123c081b949">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_c7b374cf-6911-492b-8c91-825a1f722c91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_e350f6cb-1d3d-4634-be9f-d28d93a64162">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_c89a61c3-18cb-4257-a152-2fe1bc7da598">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_60218d3d-f01a-4f3b-be2b-666e21df5de1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9238c5fc-985d-4145-94f8-bc49f895a031"
      id="F_6bac361c-bada-44c6-b15d-d5b1e8b8dff5">&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;250,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_9238c5fc-985d-4145-94f8-bc49f895a031"
      decimals="0"
      id="F_b8c5d1c8-3785-45d8-8321-36caace9cb06"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
