<?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_3232a87e-6a94-46f5-8351-5b370112dce0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-27</startDate>
            <endDate>2026-11-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_b878a985-4c21-4722-a70d-fed8e39939ae">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_8bce9eb2-598f-4b7e-aa3c-0723ef5eb7f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_df275bbc-8c7d-4487-833f-a9fa29821325">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_6c71f3ca-c77e-45e4-9378-416107e21ea8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_2007046f-00a2-4f90-b9de-e29f5d04fec4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_b7616a74-72a7-479c-9751-8d53a5e34c25">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_f64b8539-66d9-4c5a-b0d9-006e8bff6a1b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_ed8c6f28-168c-407d-9830-f7da023089a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_2e7eca34-4085-42c3-984e-8a3676fd1f27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3232a87e-6a94-46f5-8351-5b370112dce0"
      id="F_ce86ff02-b396-43e4-8779-86d00c1c014c">&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,000,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_3232a87e-6a94-46f5-8351-5b370112dce0"
      decimals="-6"
      id="F_bffeb372-a274-4739-8277-d39bb07c4550"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
