<?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_4af62407-e19b-40ad-83c8-8c04365c5dc1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_a179c426-4853-4707-b6ab-30b1f6343ae3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_73f20ff2-9a3d-4055-af18-3ea8617964b0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_b31f51fb-4f62-4299-ac88-addd6bcb94f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_36ae09c4-25d1-46a7-8f47-2eb9e86e7371">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_b13a5182-f13a-4f50-983b-16aee0c48531">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_baa786d9-0f3a-4337-bc31-a9c3c7385f3f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_a255189c-9ce5-451b-857c-6a4ef1b8aeb6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_df2a7f12-9912-42e4-a234-ce929e241290">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_5f49bc49-e6e2-46e3-93c1-44577182347e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      id="F_c9f6df16-661c-4370-9048-53aee5c112bb">&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;18,064,400&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_4af62407-e19b-40ad-83c8-8c04365c5dc1"
      decimals="0"
      id="F_3fb9b870-55bb-4469-95a0-446d65c3d0d1"
      unitRef="U_USD">18064400</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
