<?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_cbbb4693-5e66-4d10-ad48-d23192632719">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_b19beae5-3a75-46b0-9749-9bd05c91f788">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_4ee0caeb-71c9-42fb-b459-e9efb26c0b5f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_4f89b197-103e-4672-bab4-ef3368176b8e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_c15a59f3-6ff5-4a7c-acf8-839920ddcec4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_3e1a57bb-cbb5-4448-89e7-94b83e048820">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_9c7d62d7-5186-402a-8b32-23f7e7b25527">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_b12b4456-1394-4f45-8730-e02b1895e503">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_07ae68b4-a90f-40b3-9bff-766a68aead24">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_2854eaf9-3c9b-47c6-878f-bfda5e845a58">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cbbb4693-5e66-4d10-ad48-d23192632719"
      id="F_2b4c34c5-0e81-424c-b1b9-568eb0c16dab">&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;4,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_cbbb4693-5e66-4d10-ad48-d23192632719"
      decimals="0"
      id="F_1193e40e-5d8e-4319-971b-133d3c9b30bf"
      unitRef="U_USD">4500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
