<?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_80d59df4-b25f-44df-ae11-f28960cfa4a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_3ecef5f6-c90f-4f02-95d7-c9ae0afa8207">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_1b3da1dc-d1f3-47eb-91a9-4f7cbb69b3d8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_b4f6bd8e-6bef-4437-9a71-24b229d5eecc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_7468246b-8c8f-48f3-ae94-256dfb95ab4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_a6ea76e9-46da-47fb-9617-7baf10e8ce9d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_bc745389-4024-4aeb-80c6-502638ce31f4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_41f67474-2f14-4482-9c78-034cc234737a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_a9b41bae-6f26-49e2-a055-536ea5e26a47">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_fca7c629-ae71-4933-9968-190bf1fedd5d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      id="F_185d85be-c3ff-4ecf-808c-1834f163369f">&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,902,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_80d59df4-b25f-44df-ae11-f28960cfa4a9"
      decimals="0"
      id="F_c4d10e48-acd9-48f4-ab91-918c9ba6da4c"
      unitRef="U_USD">6902000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
