<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_b72265a1-dc18-412b-835f-8b415da7fda9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_698b598e-1a6a-49fe-994f-f8eaa35a14ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_5b67083d-60ab-47fd-af90-dd9c6ecf783e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_2ab45020-7119-4106-b881-6c5f0da7b8c7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_752ae5f6-872e-4a1f-9927-691becbaee09">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_919f1c5c-cf9e-4687-8309-8abed995111f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_3c0a4d1f-9a01-4f1b-8f43-49f390feadf6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_891ca9ca-af21-4a97-9c40-6b42f1176345">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_9650df1a-1ca6-44d8-b764-0a4cb064e2d2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      id="F_bdc0c9ca-a53e-4a73-8bcf-4a832d522c85">&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;874,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_5e45e2fc-73f3-43f1-afbd-24a4379cfd2f"
      decimals="-3"
      id="F_3070e8f9-dea9-47c6-aaaa-8bb03f42e723"
      unitRef="U_USD">874000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
