<?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_e070f09b-0679-467f-a307-972f09268cd0">
        <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:SubmissnTp
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_a4cbf339-a5ac-4904-9cfe-c772cb561074">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_3949bd34-c799-4d5f-bbe9-e2b71dd96f02">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_5dbceb9f-90bf-40f8-a8b4-3f807f7cf5c9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_284a4381-cfd1-4421-b5a6-5e7cf4540e9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_d493b1c1-cc8e-412c-ac15-55c0679afa43">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_f056d214-eda1-4628-baed-29d322050580">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_81776e84-aba7-45d1-b6c5-dec69209fc17">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_e1e5f32a-2af7-4a76-b201-3ff7e4618a3c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_fd66a30a-127d-4f52-94aa-c24a4bc6c502">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e070f09b-0679-467f-a307-972f09268cd0"
      id="F_024bd730-0bf9-4c49-b6ba-407b9bbb0101">&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;441,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_e070f09b-0679-467f-a307-972f09268cd0"
      decimals="0"
      id="F_8b33d94a-d07a-456f-828e-103f505bf13a"
      unitRef="U_USD">441000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
