<?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_95026d8b-0901-464d-b0c0-4015ed164e73">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_3ab91838-1ad8-4e80-8a29-a458279c8cbc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_7a831c8c-9bb2-48ca-96dd-fd903f432d50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_1af3e34e-bd43-44e1-ab2e-234ebb0d26f0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_e629def7-2374-48e4-864f-a950d1c85129">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_805550cb-a0c9-4bee-a696-5d3cda30718d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_ad900e7c-70d9-4511-8c81-d7d0e2cbcfa7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_c00f11b2-3829-46e7-b1f9-8e972121e23b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_32d0e5d2-0db5-422e-a030-9a5acd7b92d2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_bfca6279-6eac-45a2-81dc-2b054c2113a5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_95026d8b-0901-464d-b0c0-4015ed164e73"
      id="F_b7ab9532-0396-42a8-90a4-a54da55b7670">&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,500,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_95026d8b-0901-464d-b0c0-4015ed164e73"
      decimals="0"
      id="F_5ccaa97d-af88-4b59-8697-23f3b0beb0be"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
