<?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_44547adc-8fdc-4c6e-afe4-5618dfc04645">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_1cc13764-18f2-4f5b-aeaa-058449297c7f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_7f70b2c5-5685-4400-b4fb-8954a4bfbd0e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_c85004f0-484a-4c85-99fd-25ab2d37738c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_ed6c71a7-dbfc-419f-818b-608ba0275c7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_89fdf369-9f6c-47be-98ce-ac7ec46e17c0">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_9e4b702a-c9b5-4cee-a0d6-779a6106e19f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_d652be64-7988-451c-97a8-913a3b9231a3">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_182b4bbf-c950-4bdc-b695-8f099de32797">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_4d234ba7-5a45-4339-aec4-878d7e8a0e7a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      id="F_1f880ffe-3439-4d07-b07d-a65800ae2afc">&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,005,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_44547adc-8fdc-4c6e-afe4-5618dfc04645"
      decimals="0"
      id="F_be78ff34-50b1-43c1-a92c-2dfd7991a5c2"
      unitRef="U_USD">1005000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
