<?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_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-23</startDate>
            <endDate>2026-04-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_ce781b71-4c49-410f-aedc-0954b592605c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_1555c9bd-2a6f-4d82-8fc7-f668f64b8a2d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_844bf8cb-8fe9-4f55-bf25-5f60698b1f93">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_5ba31295-5d4a-4301-95eb-c16011b813f6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_65de2798-fc65-4afc-9e3a-abfc8466325c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_6cfa7c5e-6482-4fe5-a528-bc2c5877b95e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_6ef96274-6e40-4185-b8b2-b6321910d4cb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_76a64a54-b8e5-4ad1-aff6-5c166cd2a3e7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_a05fefff-d94b-49b8-adc6-0b5b9c6561dd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      id="F_4562a234-1bdd-4964-8c91-11d2bf6c575d">&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;2,634,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_f07ca97c-a0f7-46fe-8e2f-d9096e4403d2"
      decimals="0"
      id="F_7bdd0229-b2f7-4527-a0f4-560fea09a0f4"
      unitRef="U_USD">2634000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>