<?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_f13a6e67-639a-4a10-b987-5cdc1cfe12a2">
        <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:CombinedProspectusTableNa
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_3780c46e-98e1-41b6-a32a-92c2640ac534">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_d6a512c2-efce-4918-8bb9-faf8e4426110">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_7845743f-199e-4272-8056-f6836edf304c">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_07a73319-f557-4c2b-9167-0edd7ccd1e37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_f3425b4e-a580-44b9-9611-02937408f0a6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_58388095-2db8-423c-be49-331acd7d4180">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_291f9258-3ae7-4af0-873a-86b1479409a7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_238294fd-29f8-4a37-944b-68a8be122f04">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_996ef4f3-3b0a-43ec-a30b-03f6599ba151">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      id="F_caf19a8a-9958-4439-b7a6-6a7c8bec6ce1">&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,250,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_f13a6e67-639a-4a10-b987-5cdc1cfe12a2"
      decimals="-3"
      id="F_41b79535-6fa5-413d-a1db-2d118a687821"
      unitRef="U_USD">2250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
