<?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_2f22ea70-7fd0-4f82-8f14-f90db14397a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_7d42c03c-e5ee-4555-9681-d79fe13c1032">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_cca00b23-18a1-4b0c-b12d-4c9572fefe83">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_2bcf04c8-16a1-42c1-85f9-f5d329e77cad">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_1608b1e7-5184-4c8b-b2a9-c6109c9f0f53">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_c76cef45-8f94-42bd-85fc-ab9dcddccf87">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_7ad05b7c-1dd5-4823-8baa-1aec4c2531a5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_eb7c4781-2a75-4cef-aa25-8aa8348f0f72">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_eae17b66-e245-4248-a790-9ad002c21289">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_5cd0c756-e9a2-44ec-8fa8-ff08c3fa5b9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      id="F_67de1da7-1feb-4051-99e0-30e87876c1d9">&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;570,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_2f22ea70-7fd0-4f82-8f14-f90db14397a8"
      decimals="0"
      id="F_c40551d3-f283-42fc-b67a-0665bc8d507a"
      unitRef="U_USD">570000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
