<?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_1f7c7b20-0f45-4020-adc0-945626994e89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_fb3eb6fe-82e7-4891-9904-663e38724bb1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_bcbe3218-bb11-4d47-b1dc-f3079317588a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_9c60fbd4-4a54-43e7-ac90-d78ccf2aef41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_4cce561b-dad9-4d67-8c6c-ce6acff6c4e9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_fbdbff09-5d46-42cb-a466-9a8b8cdf1943">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_605691df-a583-4101-b442-b7b5affddd5b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_8f314baa-fdd2-4c69-99d9-b26155255ee7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_41878b09-e6fb-418d-8376-e475f1713f2b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_51a7d59b-90df-4242-92c3-c9e69f51649c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1f7c7b20-0f45-4020-adc0-945626994e89"
      id="F_08fdff4c-bdc1-4ffd-a7b1-ff471302d057">&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,000,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_1f7c7b20-0f45-4020-adc0-945626994e89"
      decimals="0"
      id="F_c89f27c7-a26a-4479-ac75-1ec452068af1"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
