<?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_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14">
        <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:FeeExhibitTp
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_c95df288-bcb9-4a37-971b-f3fb8774dabd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_b52d4729-6b02-4b98-96e1-3d1a0d8940ff">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_8027097d-e7ab-490e-b7d3-9de2e3aae938">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_5af3d5c2-2c7d-4d59-b8d4-a0f6d26c05c1">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_45376b7f-c332-4f1b-a6cf-37ec727307d6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_f5f5de4f-71f0-4ad6-a4a7-aba1f2dff9b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_f01c7161-1c37-4463-b055-fb7c39786dc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_3cb4a15c-47a2-4bb1-9d03-051f017f7b7c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_8f6fa817-ff7c-4eee-b4de-6580f7aee811">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      id="F_09b83622-093f-4817-b3f3-1869e8bb5046">&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;7,944,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_29b86dce-e4b9-4c5a-bb75-2cf4d5f75d14"
      decimals="-3"
      id="F_be272665-565e-4f98-9c14-bf65e2ba4834"
      unitRef="U_USD">7944000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
