<?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_6eb3340f-815e-4146-afa6-13e02715ee0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_8926f1a5-d9e2-46c0-934a-b6044cef727f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_9a4fc24a-9c8e-41fe-b2ba-531a28a91f55">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_d8444b05-c4c7-4109-87bc-9f160ea6555f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_50a53b8c-6437-4a4e-b4a0-fbbfe7340bd8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_bc67e775-78fb-40aa-b776-d9c2c7351910">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_f7664f3d-c078-40d2-b1c4-662e78e25423">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_a8b5f67b-0a14-4b5a-b801-56b0f7866ce5">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_3401b2c0-526d-47cd-ac60-d5fb61c55f6f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_01299f41-7ec9-471e-80a6-a55df6a501fe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6eb3340f-815e-4146-afa6-13e02715ee0c"
      id="F_22189675-5778-48fc-93e7-e03d5cc7b972">&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,768,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_6eb3340f-815e-4146-afa6-13e02715ee0c"
      decimals="0"
      id="F_a3d595e1-55dc-483d-af55-1a10a1a29ee3"
      unitRef="U_USD">2768000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>