<?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_6148f408-82f7-4279-80c1-ab533ff83e30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_bdbb9201-7bac-47e9-8e28-76182d381e2c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_ec0716bc-5b6d-478d-914f-18c1148a2f04">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_f9966247-3121-49d1-99fc-1281296f797a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_91556b5a-b7a5-4bd2-9236-4e34d481c998">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_efb216f1-4fd3-46fc-9527-1a973e2ad315">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_7f7e7ed7-0ad9-4618-a884-eab1a1ea66c1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_55eb85dd-af67-42c2-950a-006cbb86f59e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_1542e35a-b021-48dd-b19c-098d977ff5d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_95910122-4113-4bf1-b389-f726f8ffb1af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6148f408-82f7-4279-80c1-ab533ff83e30"
      id="F_0f55a812-e738-431a-91d2-f68f4119efeb">&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;770,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_6148f408-82f7-4279-80c1-ab533ff83e30"
      decimals="0"
      id="F_61ad55c8-d2b8-4257-b570-eb68e392a71a"
      unitRef="U_USD">770000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
