<?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_d3b46d7b-abf9-4210-9bb8-986e79ba594d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_c8412e59-15fe-48cd-a31d-afb91d1d0dc8">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_61881425-8465-4629-b9ad-b61e0d79a48e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_868761a5-1124-4273-82da-85e6347fb95f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_856ad879-9edc-4b5a-8053-32a2befed585">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_0692901f-c4a7-4af0-b8d7-d035341b81a9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_4754be4b-cbc0-417b-ad6b-3044549a9bf1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_976d4181-1aa5-43f3-b49a-8f863941be42">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_1aff6e11-7d08-429d-a5a3-3a3295af026d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_ba0f68f3-cb13-4ed5-9750-9465e2d88271">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      id="F_5e3831a0-c65b-42d3-81b5-70d5a6f839f2">&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;13,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_d3b46d7b-abf9-4210-9bb8-986e79ba594d"
      decimals="0"
      id="F_b119566e-39fe-425d-bd78-d1e381e3eecb"
      unitRef="U_USD">13000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
