<?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_88885cc0-9c84-4216-b676-2d8f01801160">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_fc4a52b2-c8c3-43c1-b34b-582d524f6d4b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_8c41a527-95c5-4dfd-bd34-d7800707fd3c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_cf98ac8e-9ef9-439a-a251-5fba68b64a3f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_fd428410-0abc-40dc-94d5-22f518b69a1f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_18ac5b65-3d5b-4409-aea1-a35a32c57865">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_b67ff260-2632-4d40-8503-d0346a385062">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_636dcd54-50d0-4822-9a3b-49472b020723">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_352616a9-7739-4c6d-90a0-c51f5cd1dc52">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_80965307-a978-4ef7-a003-c010bdc9ba65">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_88885cc0-9c84-4216-b676-2d8f01801160"
      id="F_79c6752a-351c-44f7-a8e4-86e0b623f1bd">&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;5,950,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_88885cc0-9c84-4216-b676-2d8f01801160"
      decimals="-3"
      id="F_e529e790-3e79-49fe-95d2-f3822080bb49"
      unitRef="U_USD">5950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
