<?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_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_313370a1-1677-453f-a288-084a3079b3e4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_0f097695-3c3d-4389-97b9-3760b07720f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_fa06d7e2-3508-4453-9e64-f985793843e4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_9eb10454-9359-4369-95e5-21f8dcbf05a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_dae23232-7c3f-4988-8cb5-af1769a19ec2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_ba0e2998-8410-475f-8568-7fcd9d6c51c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_5c77145d-5ae3-4d57-9b88-6fc6409883d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_8705736f-2217-4d3c-9701-25080c585f86">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_0c94a3a5-23b4-475c-947b-cfd9130a1f80">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      id="F_368d563c-fefb-49c1-bfde-c1af6445cef5">&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;6,954,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_d27662e4-af5e-4cd4-9b6a-ec0e5d3d33c4"
      decimals="0"
      id="F_ec5374b5-75ab-411e-aeaa-55610b518c36"
      unitRef="U_USD">6954000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
