<?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_b07f2586-e2ec-41f1-9670-29b62983e2f9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_0d175930-4541-4d5b-a798-c4a66ec9e468">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_68d35cc9-f241-4ac1-9c70-6ff4cd0382d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_e838b0d8-c473-44d5-b1df-ed59d09bef88">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_7ce795b7-0755-48db-bd4e-be77d67e28dc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_ffbd6ab6-3ab5-409e-b6dd-33e3d42e8a7f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_008da4b3-a7b2-4556-bf9f-4bc5eb61b589">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_7d424ea8-2d7e-4eff-8fc5-cb42ca9bd48d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_b7120f9c-409f-4af8-b438-e596473b16f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_f9e083f5-3447-4047-a52a-820fd3953d50">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      id="F_169255e5-3a07-4208-a190-9901f63e727d">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,066,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_b07f2586-e2ec-41f1-9670-29b62983e2f9"
      decimals="-3"
      id="F_dfb55a12-c74a-4f31-91e4-cc9b5f87749b"
      unitRef="U_USD">3066000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
