<?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_6fe15122-2320-49e0-be01-911ca811d48e">
        <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:CombinedProspectusTableNa
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_1d2ef4d0-6385-4bb8-8e49-96ac2885ae0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_0c55dfbe-7cc1-48f8-a639-78095ffaf0db">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_7a08c482-476c-4f59-a864-da9c00790c40">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_87f6f96f-9842-4bb9-852c-ce4df8fa476c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_2589ce31-8069-41ee-be98-9ec8a8105d3b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_020b6909-960e-49a9-8113-f609bf0ebecf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_eecce0f6-2982-4ee4-82f8-a9fd9de546d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_5f6493b5-89df-4a1c-b577-f5bf93eebcaf">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_9ec064a6-3672-46c7-bcb8-aa2a27cc31a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6fe15122-2320-49e0-be01-911ca811d48e"
      id="F_ccee0b15-f3c9-4437-b63a-1bbc7a20b0ba">&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;2,489,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_6fe15122-2320-49e0-be01-911ca811d48e"
      decimals="-3"
      id="F_7a4ef055-0376-4570-86b5-9888aa4abe7f"
      unitRef="U_USD">2489000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
