<?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_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_96b0cb9a-92ee-4e47-8919-7b1c8b48f607">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_b8e654ce-b55e-44e2-b693-9b2ecffd6f40">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_d6df1d9d-e457-463f-90e3-6ea7a2710c69">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_1759ac79-3764-4978-b752-f011bd464c71">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_94cdb482-458b-474c-8ddc-50c2ffa0b39c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_d51c038e-b1e3-48c9-b4e2-2ec0e21c6d6a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_f1e5ab66-ae0d-4133-bea1-b61f261b5ce2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_7c43bd29-83ad-4371-a17f-a415f654a6e4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_5849b2d7-284a-433d-b768-2d6631a92f51">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      id="F_11db68ca-c008-40c0-a3e0-c5b5b2deec74">&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;17,035,580&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_f89a8e70-2c6e-4feb-a48c-b32b32fc5a70"
      decimals="0"
      id="F_ef5d988f-52d2-4080-b6fb-4350d8c6edf0"
      unitRef="U_USD">17035580</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
