<?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_0189ae9f-1e23-4bf6-a395-46d364d379bc">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_81a7f930-b4d8-4868-abf1-ee7bb1902d6d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_ff24da8e-6ee9-4fa8-8ebc-30187695e3f8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_a65b53ce-3200-4c21-a3bc-94e44dcc75c6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_8ad4dbc2-4b9b-4c9d-ae47-e1383da7049d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_12eead18-6a61-4617-9358-d4fae7296e3c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_7b0325a9-84bc-4d69-ac3f-776c0b8aa7d9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_820d5fac-7a17-4688-80f2-8394818cd60f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_2d800911-6bf5-44c9-953a-d89598df2cc5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_0a95d337-6043-4317-97ea-960e7ac97e7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      id="F_bfc98042-af5d-41a6-9b85-545c33d29979">&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;473,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_0189ae9f-1e23-4bf6-a395-46d364d379bc"
      decimals="0"
      id="F_d9377a88-f38d-476e-b369-938b0ce007ed"
      unitRef="U_USD">473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
