<?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_c3897a2d-4988-4a71-876c-853add11d69c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_37e09478-724f-4ea8-9d2a-90c16dad1cab">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_f838b909-6629-46ef-9ae6-bdde9addac53">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_a7a9ef4f-6e1f-44c8-a411-3648d9ce61f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_54495bdc-da84-4f32-9915-252719da6af7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_56b01753-04b6-4529-976b-ff138f267413">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_fbf8844f-a55e-4fe5-9f9a-5989380c72f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_9697f8db-dcd3-4184-a25f-2fd2b7fb6da3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_cfbf31ed-8aa0-4eaa-ab42-1b7c1331aa59">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_3cee3487-cc31-4094-982f-8f02fec15b8f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c3897a2d-4988-4a71-876c-853add11d69c"
      id="F_28b894e4-7712-4477-8a7a-21c1695a4504">&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;321,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_c3897a2d-4988-4a71-876c-853add11d69c"
      decimals="0"
      id="F_33e0361c-f71b-4342-86a6-8f717101c884"
      unitRef="U_USD">321000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
