<?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_510ff148-10f2-4c02-a86e-03e270b9952a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_ec1888fc-521c-47f3-be49-909e4cd3ebd1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_d544b84b-0ebb-441c-ac0f-f665490e4b37">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_fc5f6fec-2cec-458a-b8b0-97fc34b12acd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_3e312889-74b7-4a0f-a233-aa45f5bc8e41">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_493c7326-a410-492c-85f4-79852b513bec">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_9996a2fe-aa7e-438d-8e60-53a815778284">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_bb82c125-d064-48ad-b6a1-8d5aac6b2983">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_aa5e1f90-7ef1-49d7-bcdd-fcc3c9c12fab">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_7881682d-f9df-4a99-bdc8-12ed2c2edd8d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_510ff148-10f2-4c02-a86e-03e270b9952a"
      id="F_55b66e70-225f-474b-be8d-48e5881bedc0">&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;916,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_510ff148-10f2-4c02-a86e-03e270b9952a"
      decimals="0"
      id="F_3279b74e-3b6e-443d-9b55-d1882c5bfbd4"
      unitRef="U_USD">916000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
