<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_1bfabe64-10a1-40f4-9f8e-5714e458a329">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_0fafe3d5-5018-450e-ac38-c98a33563862">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_8a3ec03e-d222-49b4-801c-8184e1087ece">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_430fec4c-d38d-4b01-8d0c-fec6ec8179ec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_d12feb84-1d3c-43f7-902e-2acbc73a38e4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_3544be2b-37fc-41f6-b0e2-e79c519bbe5f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_2182049b-7210-4b7b-a1a1-02a7300e0776">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_e4aa31b9-0bfa-4df9-917d-d397e45809a6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_74d8131d-a5ed-42ff-a5ee-d31b9fff757d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      id="F_f15dce10-d1dc-4c83-a43b-8deebb9dba05">&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;2,442,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_2bdf521d-4df3-4b6f-b432-aff7219fcb62"
      decimals="-3"
      id="F_22f89691-01a0-4053-ad74-fe62f38de51a"
      unitRef="U_USD">2442000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
