<?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_406687d8-bfa0-4af1-81b6-201854ff0151">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_6693e30d-2c68-4fb0-8084-4d6425b64a11">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_86ebd400-ab9c-458f-8744-e279b06b75ca">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_ae79544e-b221-43bb-802f-f43194f0cebb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_5ea90f6a-e17a-445e-943e-2fc251f3ba4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_26e2afb4-fe87-425c-9dc1-412d949fc6c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_a9caffba-2595-4a14-b084-bd4fab0fc578">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_aeb889cc-a47a-448e-8345-3a3b245bb9ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_e0239ed7-40ef-417a-ac94-8769236d0604">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_9d8685ba-0658-42c9-bcaf-ba21c3bd60a1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_406687d8-bfa0-4af1-81b6-201854ff0151"
      id="F_acfc28dc-0d5b-41f8-8c3d-ee0e9fe27ef0">&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;1,000,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_406687d8-bfa0-4af1-81b6-201854ff0151"
      decimals="0"
      id="F_f52b77f6-b489-4a8a-b0e1-4998d84b1508"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
