<?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_059c79ad-0959-46fa-a129-e6e81909f812">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_7b7bf71a-e1ab-499f-8563-0bcf25a6cc05">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_450273cb-762d-490d-bbfb-5379c08ccd2a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_a8851479-d5bd-4807-9de0-6217b696a98b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_331b7e5a-bda4-4738-ade0-f421f6d916ca">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_096cd008-7b71-434e-abd1-d6ebba1f9952">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_505e33cb-0e0f-4de1-94d2-c285be435c99">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_a0d8bed2-a57f-4edf-8afa-272d36f560ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_82d70853-77d0-4d7c-bdb4-5e328d1318c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_614674c3-2874-448b-8f7d-3451f9642478">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_059c79ad-0959-46fa-a129-e6e81909f812"
      id="F_9e703b8d-0984-4843-a198-8934ca6e3d57">&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,500,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_059c79ad-0959-46fa-a129-e6e81909f812"
      decimals="0"
      id="F_bd7b2dff-64b9-431e-a4b0-c00ef399a53a"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
