<?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_35844a99-5e08-414f-a35c-bd8eaa6fb1f2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_14d8fb5a-49de-4188-bf0e-26c733a47512">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_b1eb1bf7-d7de-404a-b0a8-029513241e76">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_c3cf71bf-ee78-4b80-86ce-652f62a44ee7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_0000d609-59ae-45c9-8928-b476ee5bc951">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_dbee1055-8182-4ccc-b412-48c472fe1e7c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_958cb260-a875-443d-aee2-6cfabb456fa9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_85d4b7d0-389d-4437-99c2-e4721ba5a3ca">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_2cae75b8-a188-4f97-b36b-f5591cba0b4a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_d1283707-3e3e-47b9-a196-7a46c382ac7c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      id="F_11bb7039-02b6-4144-85d9-35d732e4e1ed">&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;7,629,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_35844a99-5e08-414f-a35c-bd8eaa6fb1f2"
      decimals="0"
      id="F_a70b2f81-2ae6-4feb-90b0-0c7df3fdd8fc"
      unitRef="U_USD">7629000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
