<?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_4c191004-9279-4874-8a9c-54fb0cad34f2">
        <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_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_8c95c0df-d4a8-4bfd-9370-a0bc4337cfc0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_3f52a57c-06c0-4059-8a0e-44df67b1ae9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_c565f035-53e5-4639-aa5e-b615387196d7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_b9a2948f-27a6-43f1-8372-08c3abbe4898">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_adc37302-34ba-453c-b0cb-475d44ef7996">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_1ab1eedf-1a08-491e-a7b1-b283259475a3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_29f572ea-9652-4b9a-9b57-c859e1d994aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_53ff3acf-62b7-4673-aa7e-dd6af1167068">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_d4fabe61-2565-47f4-a510-967a1f97fde4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4c191004-9279-4874-8a9c-54fb0cad34f2"
      id="F_16dfe026-74a5-43d5-8963-1614f05e105c">&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;556,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_4c191004-9279-4874-8a9c-54fb0cad34f2"
      decimals="0"
      id="F_fd6d3f6c-f9e0-49c0-9cfd-b674be5c0c45"
      unitRef="U_USD">556000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
