<?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_c7a3a859-ebbc-4c87-b3c1-9b24700fef55">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_c79afe32-7025-47ad-8d0a-7d1cd9697c1f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_70070580-8789-4e1a-b484-0e13a47fcad3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_fb35da2e-47a5-4e7a-92f6-fa7c1f080f1d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_58d25a8e-a836-4a42-ae1e-8b8ff7fe00ba">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_0b0b46e9-f473-4033-94c2-64d0a5ed7dca">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_01b26fb0-f449-4f67-857c-28308b7b52e5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_1d6cbb9b-9b66-4d4b-b437-f6b8a2b5e1c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_d9555f5b-f6a4-4734-9ea8-92993f41ba39">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_76d00010-2c9a-4b9a-9022-b0465d4bee21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      id="F_f5ae274b-8f6f-41ed-a892-312ff17c28ce">&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;524,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_c7a3a859-ebbc-4c87-b3c1-9b24700fef55"
      decimals="0"
      id="F_c0ed5dff-219e-4f36-9790-db9d1038cd66"
      unitRef="U_USD">524000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>